Getting exception  Caused by: com.google.ar.core.exceptions.UnavailableArcoreNotInstalledException

Hi, I am trying to run sample code from "ARRetail". But, I am getting the following exception.
I am using Google Pixel and also installed Arcore-preview.apk.
02-28 04:35:42.480 12594-12594/com.example.virosample.arcore E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.virosample.arcore, PID: 12594
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.virosample.arcore/com.example.virosample.ProductARActivityComplete}: com.google.ar.core.exceptions.UnavailableArcoreNotInstalledException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: com.google.ar.core.exceptions.UnavailableArcoreNotInstalledException
at com.google.ar.core.Session.throwExceptionFromArStatus(Session.java:343)
at com.google.ar.core.Session.nativeCreateSession(Native Method)
at com.google.ar.core.Session.(Session.java:87)
at com.viro.core.ViroViewARCore.init(ViroViewARCore.java:239)
at com.viro.core.ViroViewARCore.(ViroViewARCore.java:192)
at com.example.virosample.ViroActivity.onCreate(ViroActivity.java:58)
at com.example.virosample.ProductARActivityComplete.onCreate(ProductARActivityComplete.java:91)
at android.app.Activity.performCreate(Activity.java:6999)
at android.app.Activity.performCreate(Activity.java:6990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
Thank you in advance.

Hi @deshmukhrohit11 can you check that your viro version and arcore version match?
ViroCore 1.3 (pre 2/26) works with ARCore Dev Preview 2 apk
ViroCore 1.4 (release 2/26) works with ARCore 1.0 apk which is available in the Google Play store.

Maybe this is an ARCore problem? I ran into this same problem using the ViroCore 1.4 and the ARCore 1.0, but I found this ARCore issue when looking for more informations. I just disabeled the Instant Run in the project, and after this the code ran smoothly. Hope this help in any way.

Thanks @PaulohFerreira for adding this suggestion. Forgot to note that turning off instant run might help. The last comment on the ARCore Github Issue re: Instant Run is actually from the Viro team :)

Closing issue as answer provided and arcore-preview is no longer being used.


AttributeError: module 'tensorflow.python.ops.array_ops' has no attribute 'pack'

NOTE: Only file GitHub issues for bugs and feature requests.  All other topics will be closed.
For general support from the community, see StackOverflow.
To make bugs and feature requests more easy to find and organize, we close issues that are deemed
out of scope for GitHub Issues and point people to StackOverflow.
For bugs or installation issues, please provide the following information.
The more information you provide, the more easily we will be able to offer
help and advice.
What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?
Environment info
Operating System:
Installed version of CUDA and cuDNN:
(please attach the output of ls -l /path/to/cuda/lib/libcud*):
If installed from binary pip package, provide:

A link to the pip package you installed:
The output from python -c "import tensorflow; print(tensorflow.__version__)".

If installed from source, provide

The commit hash (git rev-parse HEAD)
The output of bazel version

If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)
What other attempted solutions have you tried?
Logs or other output that would be helpful
(If logs are large, please upload as attachment or provide link).

Can you please fill in the issue template. It will help with solving your issue. Most importantly, which version of Tensorflow are you running as I believe that the tf.python group was deprecated in 1.0. Please post a code snippet too so we can understand what you were trying to achieve and what function you were trying to find as the error from your title suggests that you're calling something similar to tf.python.ops.array_ops.pack instead of .pack() perhaps?


Use target specific dependencies.

This commit changes the Cargo.toml to require winapi and kernel32 only
on Windows builds, and requires libc for all other builds.

Note that this also bumps the Rust version in CI from 1.6 to 1.8, since 1.8 is required to parse target specific dependencies. You may want to increase the minor version on the next release because of this.

Changes Unknown when pulling f6a328fc82555e6550b5fea4f973b1c6ea712300 on BurntSushi:windows-only-deps into ** on softprops:master**.

Changes Unknown when pulling f6a328fc82555e6550b5fea4f973b1c6ea712300 on BurntSushi:windows-only-deps into ** on softprops:master**.

A few interesting things to note:

#7 and #9 both purport to solve this problem, but I think this PR is the only one that bumps the minimum version and sets up the target specific dependencies correctly.
All three PRs are failing on the Mac build. It's not clear why. If I run the tests locally on my Mac, then they pass.

Changes Unknown when pulling 27bdf5f24f740543100167c6a6bab9c2c521c7e2 on BurntSushi:windows-only-deps into ** on softprops:master**.

Changes Unknown when pulling 27bdf5f24f740543100167c6a6bab9c2c521c7e2 on BurntSushi:windows-only-deps into ** on softprops:master**.

Changes Unknown when pulling 6507d36882534191982c0736f03ca8c2afad94fa on BurntSushi:windows-only-deps into ** on softprops:master**.

Changes Unknown when pulling ccdc50c1ddc328547da8fc1dafc85502bf456f72 on BurntSushi:windows-only-deps into ** on softprops:master**.

Changes Unknown when pulling a9b0e4a171bfe61b2defae6788aa2f24fb565d77 on BurntSushi:windows-only-deps into ** on softprops:master**.

Changes Unknown when pulling a9b0e4a171bfe61b2defae6788aa2f24fb565d77 on BurntSushi:windows-only-deps into ** on softprops:master**.

Changes Unknown when pulling 8d1354c0a08cf2e8e958cd2865cedb62ae6fbb09 on BurntSushi:windows-only-deps into ** on softprops:master**.

Changes Unknown when pulling bcb96e4ad2da7cac812d5633531e806d4f0ccc63 on BurntSushi:windows-only-deps into ** on softprops:master**.

Changes Unknown when pulling bcb96e4ad2da7cac812d5633531e806d4f0ccc63 on BurntSushi:windows-only-deps into ** on softprops:master**.

OK, I "fixed" the broken test on darwin by simply testing for the opposite result. I'm not sure what caused the change in behavior, but I tested it locally and everything seems kosher.

@softprops Anything I can do to help get these merged? :-)

Done. I'll publish the new version tomorrow. Thanks!

published https://crates.io/crates/atty


[RFC] Recursive merge should allow unique flag in nested lists

I tried adding an additional config file to a Dynaconf instance with global merge set to True and found that a nested list was normally merged when I needed it to be unique or not merged at all as the old value was contained in the new value so the result list had duplicate items.
I thought about using a set instead but the order is important in this case
I'd like to be able to use dynaconf_merge_unique inside nested lists
Another alternative could be using the local_merge flag to allow disabling the merge for a specific nested value.
Although this alternative is more robust and general, it requires a more complex change than enabling the unique flag in nested lists
Example:
defaults.yaml
config_key:
  nested_list:
    - item_a
    - item_b

additional_config.yaml
config_key:
  nested_list:
    - item_a
    - item_b
    - item_c

Result config dictionary:
{
    "config_key":
        "nested_list": [item_a, item_b, item_a, item_b, item_c]
}

A possible solution for enabling the unique flag in nested lists is to add the following lines right before running object_merge on nested values (for Dynaconf 3.1.7 it stays in dynaconf/utils/__init__.py:77).
    unique = ("dynaconf_merge_unique" in value)

    if unique:
        value.remove("dynaconf_merge_unique")

https://github.com/dynaconf/dynaconf/pull/810


Implementing the aws_dynamodb_resource_policy resource to allow a user to set the table or stream's resource policy.

what
This minor change is to implement the aws_dynamodb_resource_policy resource, to allow a user to set the table or stream's resource policy. Two more variables are added, one for the table policy, the other for the stream. They are implemented separately (even if the resource is the same) to allow the user to set them as separate objects without adding complexity to terraform.
why
It can be useful, if you're implementing DynamoDB as a trigger for example, to set the right policy allowing that

@milldr

@Benbentwo

/terratest

Uhm.. apparently the tests are failing because there are tables with the same names deployed.

Hi guys, I've resolved the conflict, but time has passed and I don't remember if I needed to do anything else to get this merged, can you advise? Thanks :)

/terratest


location of the .pseudotv/xmltv.xml

I'm running Pseudotv on Windows but my Plex server is on a raspberry pi. How to I feed the location of the .pseudotv/xmltv.xml to the Plex server? This file is on the Windows PC, not on the raspberry pi.

Share the xmltv.xml folder from the Windows PC (eg. <IP_ADDRESS>), and point your plex server's Live TV xml location to <IP_ADDRESS>/sharedfoldername/xmltv.xml

Thanks.


this weight is only about 8k ?

https://github.com/Tetratrio/stylegan2_pytorch/blob/4440fd660d432e46cbe9ee352b8e9cdc3fa6a242/stylegan2/external_models/lpips.py#L36-L37

I download this local file by VPN it is only 8K byte？

Hey!
Yes that is correct, for me it is 7.1 KB.
It is not the weights for VGG conv layers, that is downloaded when loading the pretrained VGG in Pytorch.
The weights you downloaded are used to scale the similarity score for each layer's features before combining the score into the final score!
Hope this helps


[Gally]: master <- dev

Automatically created by Git-Ally

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


OSError on Raspberry Pi

Using a Pi 3 and following the guide at:  http://openbci.com/community/raspberry-pi-for-eeg-acquisition/
OSError: ....../site-packages/pylsl/liblsl32.so: cannot open shared object file: no such file or directory
But the file is clearly there when navigating to that location in the file explorer.

This is because pyLSL "does not come with ARM libraries" as per your link. You should either compile that library for ARM or download ARM binaries from the link provided on that page.

@mbmosher how to solve this problem？ can you give me some advice ,thank U


Update Port Moody, BC

It looks like the address points only have number on them. I didn't see an obvious useful replacement elsewhere on the Arcgis server.

Nice, thanks.


tukui - add two single addons.

So it seems like the two MAIN addons (Tuk and Elv) is actually not in API call. There are four version of them:

Tukui Retail
Tukui Classic
Elvui Retail
Elvui Classic

Both classic versions is in the call we use. So we are missing Tukui Retail and Elvui Retail. These are actually the two "main" addons where all the others are addons to these.
We can get them from these two sites:
Elvui Retail: https://www.tukui.org/api.php?ui=elvui
Tukui Retail: https://www.tukui.org/api.php?ui=tukui
I've added a jq for Tukui I think will work:
{id: .id, dateReleased: .lastupdate, websiteUrl: .web_url, name: .name, summary: "", numberOfDownloads: .downloads, categories: [.category], flavors: ["wow_retail"], gameVersions: [{game_version: .patch, flavor: "wow_retail"}], source: "tukui"}

We should add these to tukui.json if possible.

@petergp Is this something you would like to look at somepoint? No rush.

Yes that sounds pretty straight forward

We can use this summary from their site, and just hardcode it.
Tuk
MINIMALISTIC AND LIGHTWEIGHT WORLD OF WARCRAFT USER INTERFACE!


[WIP] Pull25

There are no changes, I wanted to trigger CircleCI, and by pushing your PR though my fork, now I can ;-) I am debugging it.


get_texture_coordinate

| Camera Model                       |D415 |
| Operating System & Version |  win10 |
| Platform                                 | PC  |
| Language                            |  python   |
I've asked before about color and point cloud alignment, and I know that pc.map_to(color) and pc.calculate(depth) can get the point cloud and color images aligned, but I've found that for some points in color, the mapping to the point cloud seems to have some rotation changes, what's the reason?
Part of my program is this:
.....
pc.map_to(color_frame)
points = pc.calculate(depth_frame)
tex_coor = np.asanyarray(points.get_texture_coordinate())
pc_coor =  np.asanyarray(points.get_vertices())
....
Then I correspond the index position of some points in tex_coord to the index position of pc_coord to get the corresponding point cloud coordinates.Because I need not only the data from the point cloud, but also the data from the corresponding points.I want to ask is this the right thing to do?If not, what do you suggest?

I hope that the long Python discussion in the link below will provide useful guidance if you have not seen it already.
https://github.com/IntelRealSense/librealsense/issues/1231

My current problem is that I got the coordinates of some points in the color image ahead of time (these coordinates were obtained in the extracted 2d image, not in points.get_texture_coordinates()), and now I want to get the corresponding 3d coordinates, my idea is to find the locations of those coordinates in points.get_texture_coordinates() and then correspond to get_vertices.Is this the right approach?

The usual approach for converting 2D coordinates to 3D points would be rs2_deproject_pixel_to_point.
https://github.com/IntelRealSense/librealsense/issues/3688

I want to know if my idea is correct, because it's easier for me to manipulate other data.Here's part of my program.
...
pc.map_to(color_frame)
    # Generate the pointcloud and texture mappings
    points = pc.calculate(frame)
    tex_coord = np.asanyarray(points.get_texture_coordinates())
    pc_coord = np.asanyarray(points.get_vertices())

    width = 848
    height = 480
    tex_points = np.zeros((848*480,2))
    for l in range(848*480):

        tex_points[l][0] = int(tex_coord[l][0]*width+0.5)
        tex_points[l][1] = int(tex_coord[l][1]*height+0.5)
    for i in range(49):
        depth_pixel = []
        for j in range(2):
	    a = int(face_marks[i][j][m-1]+0.5)  #Face_marks is the two-dimensional point that I need to convert
	    depth_pixel.append(a)

        x1 = depth_pixel[0]
        y1 = depth_pixel[1]

        index = np.where((tex_points[:,0] == x1)&(tex_points[:,1] == y1)) ##Find the location of the two-dimensional point in tex_coord
	 face_3D_marks[i][0][m-1] = pc_coord[index][0][0]		#Obtain the 3d coordinates of the corresponding points
	 face_3D_marks[i][1][m-1] = pc_coord[index][0][1]
	 face_3D_marks[i][2][m-1] = pc_coord[index][0][2]

...

I am still learning RealSense programming, so I will have to refer your question to another RealSense team member.  I apologise for the wait in the meantime.
@dorodnic  Could you take a look at the points.get_texture_coordinates() code of @nevynwong above please?

@nevynwong , please elaborate what do you mean by

..but I've found that for some points in color, the mapping to the point cloud seems to have some rotation changes, what's the reason?

Specify precisely the Librealsense calls made and the results received.
It's recommended that you also provide an illustration/screenshots to substantiate this.

I first extracted the color sequence image from the.bag file, then took some markers on the human face, then read them in python and mapped them to the texture point cloud.Here are the results of my markers in 2d and 3d reconstruction.

I first extracted the color sequence image from the.bag file, then took some markers on the human face, then read them in python and mapped them to the texture point cloud.Here are the results of my markers in 2d and 3d reconstruction.

Here's my program.
-- coding: utf-8 --
import pyrealsense2 as rs
import numpy as np
import matplotlib.pyplot as plt
import cv2
import argparse
import os.path
import scipy.io as scio
pipe = rs.pipeline()
config = rs.config()
config.enable_device_from_file('/1.bag',repeat_playback=False)
config.enable_stream(rs.stream.color,848, 480,rs.format.rgb8,60)
config.enable_stream(rs.stream.depth, 848, 480, rs.format.z16, 60)
profile = pipe.start(config)
playback = profile.get_device().as_playback()
playback.set_real_time(False)
#filter
decimation = rs.decimation_filter()
decimation.set_option(rs.option.filter_magnitude,1)
spatial = rs.spatial_filter()
spatial.set_option(rs.option.filter_magnitude,5)
spatial.set_option(rs.option.filter_smooth_alpha,0.8)
spatial.set_option(rs.option.filter_smooth_delta,50)
spatial.set_option(rs.option.holes_fill,3)
temporal = rs.temporal_filter()
hole_filling = rs.hole_filling_filter()
depth_to_disparity = rs.disparity_transform(True)
disparity_to_depth = rs.disparity_transform(False)
#scale
depth_sensor = profile.get_device().first_depth_sensor()
depth_scale = depth_sensor.get_depth_scale()
print("\n\t 3D depth_sace: " + str(depth_scale))
colorizer = rs.colorizer()
align_to = rs.stream.color
align = rs.align(align_to)
#pointcloud
pc = rs.pointcloud()
points = rs.points()
pointsSet =  scio.loadmat("/pointsSet.mat")#Import the extracted 2d marker points
face_marks = pointsSet['pointsSet']
print face_marks.shape[2]
length = face_marks.shape[2]
face_3D_marks = np.zeros((49, 3, length))
m = 0
time1 = 0;
while (playback.current_status() == rs.playback_status.playing):
# when stream is finished, RuntimeError is raised, hence this
# exception block to capture this
try:
# frames = pipeline.wait_for_frames()
frames = pipe.wait_for_frames()
if frames.size() <2:
    # Inputs are not ready yet
    continue
except (RuntimeError):
print('frame count', n-1)
pipe.stop()
break

if (cv2.waitKey(1) & 0xFF) == ord('q'):
break
time2 = frames.get_timestamp()

print time2

x = np.zeros((848*480,1))
y = np.zeros((848*480,1))
m +=1
depth_frame = frames.get_depth_frame()
color_frame = frames.get_color_frame()

 ##post-processing
 frame = depth_frame
 frame = decimation.process(frame)
 frame = depth_to_disparity.process(frame)
 frame = spatial.process(frame)
 frame = temporal.process(frame)
 frame = disparity_to_depth.process(frame)
 frame = hole_filling.process(frame)
 ##depth data
 frame = frame.as_depth_frame()
 depth_image = np.asanyarray(frame.get_data())

 # Tell pointcloud object to map to this color frame
 pc.map_to(color_frame)

 # Generate the pointcloud and texture mappings
  points = pc.calculate(frame)
  tex_coord = np.asanyarray(points.get_texture_coordinates())
  pc_coord = np.asanyarray(points.get_vertices())

 width = 848
 height = 480
 tex_points = np.zeros((848*480,2))
 for l in range(848*480):

       tex_points[l][0] = int(tex_coord[l][0]*width+0.5)
       tex_points[l][1] = int(tex_coord[l][1]*height+0.5)
       for i in range(49):
        depth_pixel = []
        for j in range(2):
	    a = int(face_marks[i][j][m-1]+0.5)  ##Face_marks is the two-dimensional point that I need to convert
	    depth_pixel.append(a)
        x1 = depth_pixel[0]
        y1 = depth_pixel[1]

        index = np.where((tex_points[:,0] == x1)&(tex_points[:,1] == y1))  ###Find the location of the two-dimensional point in tex_coord
        print index
        if np.size(index):
	    face_3D_marks[i][0][m-1] = pc_coord[index][0][0]  ##Obtain the 3d coordinates of the corresponding points
	    face_3D_marks[i][1][m-1] = pc_coord[index][0][1]
	    face_3D_marks[i][2][m-1] = pc_coord[index][0][2]
        else:
	    print 10

print face_3D_marks
save_path = '/face_3D_marks.mat'
scio.savemat(save_path, {'face_3D_marks':face_3D_marks})
os._exit(0)
I wonder if it is correct to find the 3d point cloud corresponding to the color texture marker points ---face_marks that  I extracted before  in my program.

It seem that the Librealsense-related code is correct, though it could be further optimized. So when you arrive to the core algorithm segment the texture coordinates

tex_points[l][0] = int(tex_coord[l][0]*width+0.5)
tex_points[l][1] = int(tex_coord[l][1]*height+0.5)

Can be applied directly onto the depth frame to find the corresponding vertices.
For some RGB pixels the corresponding Depth data will be zero (no data) and it is normal.  So if you find too many "no data" references then I would recommend to expand the search "windows" to NxN RGB pixels or to use aggressive "hole filling" filter settings.
The content of the face marks and the way they are applied is not part of the SDK, it is up to you to verify its correctness.
Still can you explain the meaning of the "rotation changes" ?

Because I need the aligned color and point cloud data, I can only do this.I tried to directly use the depth frame to find the corresponding point cloud, but the result was not ideal. Maybe I used the function parameter of deproject incorrectly.My previous part of  program is here.
depth_intrin = depth_frame.profile.as_video_stream_profile().intrinsics
    ##post-processing
    frame = depth_frame
    frame = decimation.process(frame)
    frame = depth_to_disparity.process(frame)
    frame = spatial.process(frame)
    frame = temporal.process(frame)
    frame = disparity_to_depth.process(frame)
    frame = hole_filling.process(frame)

    ##depth data
    frame = frame.as_depth_frame()
    depth_image = np.asanyarray(frame.get_data())

    ## find 3D face marks
    for i in range(49):
		print i
 		depth_pixel = []
 		for j in range(2):

	    a = int(face_marks[i][j][m-1]+0.5)
	    depth_pixel.append(a)

	x1 = depth_pixel[1]
	y1 = depth_pixel[0]

	depth_value = depth_image[x1,y1]*depth_scale
	print("\n\t depth_value: " + str(depth_value))
        # From pixel to 3D point
	depth_point = rs.rs2_deproject_pixel_to_point(depth_intrin, depth_pixel, depth_value)
	print("\n\t 3D depth_point: " + str(depth_point))

	face_3D_marks[i][0][m-1] = depth_point[0]
	face_3D_marks[i][1][m-1] = depth_point[1]
	face_3D_marks[i][2][m-1] = depth_point[2]

Whether the intrinsics parameter in rs2_deproject_pixel_to_point is the depth parameter after aligned depth to color frame?

In the above program, when mapping the RGB marks points to the point cloud, I noticed that some of the points were different from the positions of the faces in RGB, so I wondered if the color I got after using pc.map_to(color_frame) and pc.calculate(depth_frame) changed with the RGB exported from rs-convert.exe?Because my marks points are marked in RGB exported from rs-convert.exe.

@nevynwong,

When deprojecting data you should use the intrinsic obtained from the frame to which the data belongs #5658. To answer whether it is used correctly in the above code you need to establish whether the data for that comes from the original or the aligned depth frame:

My previous part of program is here.
depth_intrin = depth_frame.profile.as_video_stream_profile().intrinsics

Check what is the source of  depth_frame. My understanding is that it comes from depth aligned to color , otherwise the following wouldn't make sense:

a = int(face_marks[i][j][m-1]+0.5)
depth_pixel.append(a)

and if that assumption is correct the deproject should be rectified with

current_depth_intrin = depth_aligned_to_color.profile.as_video_stream_profile().intrinsics
depth_point = rs.rs2_deproject_pixel_to_point(depth_intrincurrent_depth_intrin , depth_pixel, depth_value)

I'm sorry but I'm not sure I follow you on this. Can you post screenshots to explain it graphically?  Two notes as a basic check:

rs-convert tools export raw RGB and Depth frames, there are no manipulations on the raw data.
pc.map_to(color_frame) and pc.calculate(depth_frame) do not modify the content of the RGB frame, only depth.

I have understood the first question. Thank you for your reply.
The second question is more simply whether the RGB pixel positions after rs-convert.exe and pc.map_to(color) have not changed.


dlib:x64-windows build failure

Host Environment

OS: Windows 10
Compiler: Visual Studio 2017

To Reproduce
./vcpkg install dlib:x64-windows
Failure logs
The following packages will be built and installed:
dlib[core]:x64-windows
Starting package 1/1: dlib:x64-windows
Building package dlib[core]:x64-windows...
-- Note: dlib only supports static library linkage. Building static library.
-- Using cached D:/Application/C++/lib/vcpkg/downloads/davisking-dlib-v19.17.tar.gz
-- Using source at D:/Application/C++/lib/vcpkg/buildtrees/dlib/src/v19.17-1edcba5375
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
Command failed: D:/Application/C++/lib/vcpkg/downloads/tools/cmake-3.14.0-windows/cmake-3.14.0-win32-x86/bin/cmake.exe --build . --config Debug --target install -- -v
Working Directory: D:/Application/C++/lib/vcpkg/buildtrees/dlib/x64-windows-dbg
See logs for more information:
D:\Application\C++\lib\vcpkg\buildtrees\dlib\install-x64-windows-dbg-out.log
D:\Application\C++\lib\vcpkg\buildtrees\dlib\install-x64-windows-dbg-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:96 (vcpkg_execute_build_process)
scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
ports/dlib/portfile.cmake:51 (vcpkg_install_cmake)
scripts/ports.cmake:74 (include)
Error: Building package dlib:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: dlib:x64-windows
Vcpkg version: 2019.07.18-nohash
install-x64-windows-dbg-err.log
install-x64-windows-dbg-out.log

@fco06, from the failure 'RegularExpression::compile(): Nested *?+. RegularExpression::compile(): Error in compile.'  it seems due to '++' in your directory. See https://gitlab.kitware.com/cmake/cmake/issues/16207.

It's ok, thanks :)


Save streamed file

Hi,
Is there anyway to save streamed file permanently for later access? any suggestion how to do this?

Took a try at this bug the result made the library quite buggy so I closed the previous issue.
If you're interested, here's the branch (it hasn't been rebased in a while) https://github.com/delannoyk/AudioPlayer/tree/feature/caching


feature request: Resource but for callables that return context manager

Resource provider expects callable object that returns either Iterable or AsyncIterable that yields only one element (the result value for provider attribute in DI container).
I think it would be great to support python context managers too.
import typing

T = typing.TypeVar("T")

async def create_async_cm_resource() -> typing.AsyncContextManager[T]:
    ...

class DIContainer(BaseContainer):
    async_resource = providers.Resource(create_async_resource)

async def main() -> None
    await DIContainer.init_resources()  # CM instance got from `create_async_cm_resource` and it's `__aenter__` invoked
    cm_result = await DIContainer.async_resource()  # result is T
    ...
    await DIContainer.tear_down()  # CM instance `__aexit__` invoked

P.S. I'm ready to make a PR

I think this is a good idea, but here you are suggesting that providers.Resource accepts a Callable[P, AsyncContextManager[T]], why not just AsyncContextManager[T] directly?

@lesnik512 , @alexanderlazarev0 , if resource can accept Callable[P, AsyncContextManager[T]] , then client can use async factory methods, without extra code.
For example:
class MySender:
    @asynccontextmanager
    @classmethod
    async def create(cls, conn: AMQPConnection) -> typing.AsyncIterator[MyPublisher]:
        exchange = await conn.declare_exchange(...)
        try:
            yield cls(exchange)
        finally:
            await conn.delete_exchange(exchange)

    def __init__(self, exchange: AMQPExchange) -> None:
        self.__exchange = exchange

    async def send(self, msg: bytes) -> None:
        await self.__exchange.publish_message(msg)

class Container(BaseContainer):
    conn = providers.Resource(_connect_amqp)
    my_publisher = providers.Resource(MySender.create, conn=conn.cast)

For now it has to be done with extra code:
async def _init_my_sender(conn: AMQPConnection) -> AsyncIterator[MySender]:
    async with MySender.create(conn) as my_sender:
        yield my_sender

class Container(BaseContainer):
    conn = providers.Resource(_connect_amqp)
    my_publisher = providers.Resource(_init_my_sender, conn=conn.cast)

I think the best solution is to support both types: simple async context manager & callable that returns async context manager.

I think, that we don't need accept iterators wrapped in contectlib.contextmanager, and asynccontextmanager.
Making some experiments now. Will make PR to show

@lesnik512 I don't believe this functionality was necessary in the first place, since the above example would work by simply not wrapping the create method with a asyncontextmanager. From what I can understand @zerlok just wanted to use methods that were wrapped, not sure if implementing ContextManager or AsyncContextManager help...

@alexanderlazarev0 I agree about wrapped context managers. But about  inherited context managers, I think it can be useful. So I'm not planning to release it yet before making some changes and discussing them through PR

@lesnik512 Yes I agree it can be useful, was just mentioning that it might not resolve this issue :)

@alexanderlazarev0 A little off topic, I'm writing some alternative version for alternative universe) https://github.com/modern-python/modern-di

And there I wrote resource which accepts context manager classes https://github.com/modern-python/modern-di/commit/4582b5c9c8990a111e381ee3fd352188a95a8cb4


Have a lexicon 📒

Have a lexicon to have everyone aligned and make sure we all understand the same thing
Example for the PR checklist:
What does if mean to have (or not):

Test coverage
Atomic delivery
No breaking changes

Either update PR template or add it to the wiki


run the [youtube] tests

just checking..

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @chris48s!

  Generated by :no_entry_sign: dangerJS against 18a6ad2fd32e24f58c9d73fb92eb6e29548e57e5


InvalidCSRFTokenError

Hello,
The application using samly in dev mode is authenticating fine with Okta but when it redirects back to the app I am getting:
Plug.CSRFProtection.InvalidCSRFTokenError at POST /sso/auth/signin/okta_heimdall invalid CSRF (Cross Site Request Forgery) token, make sure all requests include a valid '_csrf_token' param or 'x-csrf-token' header
Does CSRF need to be disabled or is there a setting I am missing or possibly the redirect is wrong?

Closing this out it seems the redirect URL was setup wrong in Okta needed to post to /sp/consume route.


Add complete example

I see the animated gif has a view asking for different permissions. Can that be made available to see how  to add Permission API?

Hi @firefoxNX
But I updated the example code in d18816b7a25d533e7c10db912205ad3e5976758a
Unfortunately I deleted the example app after creating the GIF :/
Let me know if it helps!

Is it only my or ,according to your example, buttons just aren't adding to view. I'm trying on blank one view app.

Yes I set the frame, font etc in the // ... part of the example because otherwise it would have only added noise.

Oh.. Got it. Thanks for clarification.

But again what's the point of using setTitles if there isn't default font, frame etc?

Please see the setTitle method of UIButton

@delba so I've done it like in your example, I've also used autolayout to setFrame. But I don't understand why title is not changing after I allow or deny resource.

@Dudi00 can you please share fully working example? That would be awesome!

@firefoxNX I will as soon as I make it to work like on gif.

@firefoxNX If you want in my fork there is example app

Awesome @Dudi00 Thanks!


To preserve string res formatting, Builder#content(int) impl should not use getString but getText

If I have a resource
<string name='s'>Bold Italic</string>

and then I call
new MaterialDialog.Builder(context).content(R.string.s)

the formattings on the string is removed, because the implementation of content() is getString(resId) not getText(resId), which preserves formatting.
Implementations of AlertDialog.Builder, TextView#setText(int) and so on, all uses getText() instead of getString().

That formatting doesn't get preserved even with getText(), unless you wrap it in Html.fromHtml(), as far as I know.
CharSequence content = Html.fromHtml(context.getString(R.string.s));
new MaterialDialog.Builder(context).
    .content(content)
    ...
    .show();

No, it works without any Html.fromHtml. The key is that string resources
MAY contain formatting, but when we retrieve the resource, we can either
use getString, which omits all formatting, and returns a String, or
getText, which preserves all formatting, and returns a CharSequence
implementation, which has the characters plus formatting tags.
I can send you an example project if you need it.
On Apr 17, 2015 21:00, "Aidan Follestad"<EMAIL_ADDRESS>wrote:

That formatting doesn't get preserved even with getText(), unless you
wrap it in Html.fromHtml(), as far as I know.
CharSequence content = Html.fromHtml(context.getString(R.string.s));new MaterialDialog.Builder(context).
.content(content)
...
.show();
—
Reply to this email directly or view it on GitHub
https://github.com/afollestad/material-dialogs/issues/458#issuecomment-93991462
.

Code example will be awesome!

@yukuku well I use formatted char sequences quite a lot, including in 3 production apps I've made and 2 apps I've made for others.
getString() doesn't omit formatting, it returns the literal string. I wasn't aware that getText() loads the HTML formatting though.

Done

https://github.com/afollestad/material-dialogs/releases/tag/v<IP_ADDRESS>


Feature/kucoin spot

Kucoin spot trades implementation

Kucoin websocket connection requires actively pinging the exchange, or else exchange will disconnect the connection in a minute.

Closing this now we've migrated this repo to the new barter-rs monorepo:
https://github.com/barter-rs/barter-rs
Feel free to open on the new mono-repo!
I'm going to be much more active now!


leam-base.jackson-core.mid-1253.idx-113907.13.buggy

Make formatting consistent

Fix indentation LGTM!


Error on setting up Azure OpenAI credentials [Bug]

Describe the bug
I am getting the following Error message in the chat response while setting up Azure OpenAI
{
"error": {
"code": "404",
"message": "Resource not found"
}
}
To Reproduce
I have set up the Azure OpenAI settings as per the instructions in the original repository
https://github.com/ChatGPTNextWebTeam/ChatGPT-Next-Web
Using following env-variables.
AZURE_URL, AZURE_API_KEY, and AZURE_API_VERSION
Expected behavior
It should work as usual.
Screenshots
Here is the console screenshot

Deployment

[ ] Docker
[ ] Vercel
[ x] Netlify
[ ] Server

Just saw there is another way to do that with this repo. Trying cf-openai-azure-proxy


Modal v2 changes

Do you have to update it somewhere to point to the new Link V2 or Portal V2 code?

Do you have to update it somewhere to point to the new Link V2 or Portal V2 code?

Oh yah probably lol


Add Windows tests in travis

Description
Fixes #258
Checklist

[x] Added link to Github issue or Notion card
[ ] Added tests

Closing this as its stale, happy to reopen when I get some input as to how this can proceed


Add iframe titles to videos

Advice from https://web.dev/frame-title/

Additionally, best practice is to give the enclosed document a title element with content identical to the title attribute.

The videos are being reuploaded so, the title on the document will be Video Title - YouTube - we can make the iframe title match this.

@Nikomus I think we can close this. Unless you want to do a systematic check.


bash-my-aws: init at 20191231

Motivation for this change
Add bash-my-aws to nixpkgs
Things done

add package
add program module
tested on NixOS

Note: the package needs to be initialized by sourcing an alias and bash_completions for some features. Otherwise the bma script in /bin is still functional. Non-NixOS could use eval $(bma-init)  that performs the above actions, but that might be the prerogative of upstream.
Another (perhaps better) option is to incorporate into home-manager so we don't have to patch the hard-coded location away.

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

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

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

Notify maintainers
cc @

WIP: home-manager approach: https://github.com/tomberek/home-manager/blob/bash-my-aws/init/modules/programs/bash-my-aws.nix
That allows us to remove the entire postFixup phase. But that has less compatibility with non-HomeManager users.


fix rpc exception for real

Description
Flutter run app, add import of mirrors, hot restart -> crash. It seems the exception gets thrown above the location where I added the guard, so Iv've added a new one and confirm it fixes this case.

Tree shows up as green now, merging.


Remove tests from package

Could the tests be removed from the package?
This makes the packages bigger and contain unnecessary information.

And some CVE detected with the jquery file ...
CVE-2015-9251 : jQuery before 3.0.0 is vulnerable to Cross-site Scripting (XSS) attacks when a cross-domain Ajax request is performed without the dataType option, causing text/javascript responses to be executed.
Please remove them !

Another one for moment.
https://github.com/jsmreese/moment-duration-format/issues/137


support(ledgerjs-cal): 20221114 CAL update

📝 Description
CAL update
❓ Context

Impacted projects: `` LLD & LLM
Linked resource(s): `` crypto-assets repos

✅ Checklist

[x] Test coverage
[x] Atomic delivery
[x] No breaking changes

📸 Demo
n/a
🚀 Expectations to reach
n/a

this would be wise to check with @valpinkman if it's not already part of https://github.com/LedgerHQ/ledger-live/pull/1778 because it would be wise to have his PR merged first.

this would be wise to check with @valpinkman if it's not already part of #1778 because it would be wise to have his PR merged first.

yes, happy to rebase or merge develop into this branch once 1778 is merged

Well this needs to be merged for the release, so I guess @valpinkman will have to rebase his instead, sorry 🙏


自行从源码编译构建隐语安装包报错

Issue Type
Build/Install
Source
source
Secretflow Version
secretflow v0.7.18b0
OS Platform and Distribution
Anolis OS 8.6
Python version
3.8.16
Bazel version
5.1.1
GCC/Compiler version
8.5.0
What happend and What you expected to happen.
我从源代码编译构建安装包，出现报错，目标文件无法生成，因此无法进行完整的编译
输出报错如下：

_____ END BUILD LOGS _____
rules_foreign_cc: Build wrapper script location: bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/wrapper_build_script.sh
rules_foreign_cc: Build script location: bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/build_script.sh
rules_foreign_cc: Build log location: bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/CMake.log

Target //secretflow_lib/binding:_lib.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.319s, Critical Path: 0.15s
INFO: 16 processes: 16 internal.
FAILED: Build did NOT complete successfully
error: command '/usr/local/bin/bazel' failed with exit code 1

Reproduction code to reproduce the issue.
git clone https://github.com/secretflow/secretflow.git
cd secretflow

conda create -n secretflow python=3.8
conda activate secretflow

python setup.py bdist_wheel

hi, @Mingbo-Lee , 源码编译需要gcc11。你可以使用我们的开发镜像进行编译。

好的，非常感谢您！ @zhouaihui 我尽快尝试一下


Roll Flutter Engine from 2a104cdfcdf8 to 0315d0601863 (12 revisions)

https://github.com/flutter/engine/compare/2a104cdfcdf8...0315d0601863
2023-02-07<EMAIL_ADDRESS>[Windows] Fix the 'engine restart resets keyboard' test (flutter/engine#39380)
2023-02-07<EMAIL_ADDRESS>Roll Skia from 1bc762cbb8ce to 7e2c9f54c0fd (23 revisions) (flutter/engine#39440)
2023-02-06<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from V9ahWWCSVIMrpc9LX... to wlbzrDXNCXQZV0QdG... (flutter/engine#39435)
2023-02-06<EMAIL_ADDRESS>Roll Fuchsia Mac SDK from f7zsdfKoUWP6RD8S_... to jD_N9MDLvRtOuBMgY... (flutter/engine#39439)
2023-02-06<EMAIL_ADDRESS>Fix cpp-wrappers archive. (flutter/engine#39400)
2023-02-06<EMAIL_ADDRESS>Use jdk 11 in the engine. (flutter/engine#39375)
2023-02-06<EMAIL_ADDRESS>Migrate engine_v2_builds to python3. (flutter/engine#39404)
2023-02-06<EMAIL_ADDRESS>Revert "Roll Dart SDK from a507a9057730 to f18aa4402c1a (3 revisions) (#39395)" (flutter/engine#39422)
2023-02-05<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from Z6Bdg2fbH4n5ptsKZ... to V9ahWWCSVIMrpc9LX... (flutter/engine#39399)
2023-02-05<EMAIL_ADDRESS>Roll Fuchsia Mac SDK from j6dhXDhI_KUUyqTSF... to f7zsdfKoUWP6RD8S_... (flutter/engine#39398)
2023-02-05<EMAIL_ADDRESS>Roll Skia from 45a4fdcc0cb0 to 1bc762cbb8ce (1 revision) (flutter/engine#39397)
2023-02-05<EMAIL_ADDRESS>Roll Dart SDK from a507a9057730 to f18aa4402c1a (3 revisions) (flutter/engine#39395)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from Z6Bdg2fbH4n5 to wlbzrDXNCXQZ
fuchsia/sdk/core/mac-amd64 from j6dhXDhI_KUU to jD_N9MDLvRtO
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC bdero@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Tracking issue for horaectl features

Describe This Problem
Collect needed features for horaectl here.
Horaemeta side

[ ] Support listing all stale table metas(generated from table creation failure)

Horaedb side

[ ] Support cleaning flush failure status

Proposal
Build them into horaectl.
Additional Context
No response

can i take Horaedb side task?

can i take Horaedb side task?

Sure, feel free to take it.

It's has been silent for a while, closing.


[h264d_umc] Remove part of Get functions inside classes

GetSliceRef(pos), GetLayerRef(pos), GetPayloadRef(pos).
These functions don't check input value "pos",
they will be used ONLY when 100% sure
that 0 <= pos < array (vector) size.
The problem was found by static code analyze
Signed-off-by: Denis Volkov<EMAIL_ADDRESS>

@dmitry-gurulev,
If I right understand, functions GetSlice(pos), GetPayload(pos), GetLayer(pos) may return nullptr only if input value "pos" is in out of array (vector) size. If 0 <= "pos" < array (vector) size - these functions always return not nullptr.
So, I replaces the functions only in the places where we checked "pos" before calling the functions - additional check is not needed. For this purpose I add special Get functions without extra check for input index.
In another places where we not 100% sure about input index "pos" we still use old Get functions with checking input index. We need to investigate these places we more carefully - if we don't 100% sure that index is valid -> function may return nullptr -> we need to check return value in this case -> skipping, reporting an error, throw an exception or some another activity before directly using and deference.
This patch is a "pilot" for resolving this problem. If all will be OK and we will get an agreement, I will continue this activity to replace reference functions for h264d and 265d and investigate possible nullptr problem which I described upper at all.

@DenWolf,

For this purpose I add special Get functions without extra check for input index.
So, is it some kind of optimization?

@dmitry-gurulev ,
I think we need to avoid extra checking and another actions when it's not needed. Also, it may confuse developers, why we have additional check where it's not necessary or why don't we check the returning result from the function before using where it's possible to return nullptr.
I will continue investigation of this case, because it's really possible that in some another places we can get nullptr and we don't check it, so we open the door to run-to-run problem (and maybe these problems already exists now).
The problem was found by static code analyze - for now it's the first priority task for Media SDK Android team.
And as I write upper, I think it's good that we get this potential problem - it's time to think about it more carefully and resolve it at all.

@DenWolf

I think we need to avoid extra checking and another actions when it's not needed.

[GetSlice and others] are public methods of classes, they are part of classes' interface and hereby are the part of public contract. They MUST check theirs preconditions.

The problem was found by static code analyze - for now it's the first priority task for Media SDK Android team.

What problem? Potential using of nullptr? Your patch doesn't resolve it . You just move explicit potential nullptr de-referencing to implicit accessing to memory that might be out of range. The latter is much more difficult to debug.

I agree with DmitryG. This just gives an impression of safety but in fact doesn't solve problems (if they exist. I don't know)

[GetSlice and others] are public methods of classes, they are part of classes' interface and hereby are the part of public contract. They MUST check theirs preconditions.

I agree that these Get functions need to check input parameter,  especially if they are pubic methods and may be used outside of classes. For this purpose I didn't touch these functions and added new special.

What problem? Potential using of nullptr? Your patch doesn't resolve it . You just move explicit potential nullptr de-referencing to implicit accessing to memory that might be out of range. The latter is much more difficult to debug.

So, I changed functions ONLY for the places where we checked input index before calling the function and didn't touch another places (for now).
For example:
size_t count = GetSliceCount();
for (size_t sliceId = 0; sliceId < count; sliceId++)
{
    H264Slice * curSlice = GetSlice(sliceId);
    .......
}

In this case input parameter "sliceId" always in array range:
0 <= sliceId < count == Size of Slice Array (Vector).
So, in this case checking for input parameter is extra, and function doesn't return nullptr, only if some array value is nullptr, but:

this is a bug and it's need to be solved by another way
current patch doesn't change behavior for this case

This patch is a proposal to resolve possible problem which was found by static code analyze and improve source code at all.
In my opinion it's easy to discuss some code changes by looking at the patch and code directly, so I prepared this patch. We can abandon or remake this patch any time to improve the code by a good way.

@DenWolf

I agree that these Get functions need to check input parameter, especially if they are pubic methods and may be used outside of classes. For this purpose I didn't touch these functions and added new special.

But your new special methods are also public.

So, in this case checking for input parameter is extra, and function doesn't return nullptr

So, you patch is just some kind of optimization, right?

This patch is a proposal to resolve possible problem which was found by static code analyze and improve source code at all.

I still don't know what problem 'found by static code analyze' u're trying to resolve. I'm guessing that it's about nullptr, but the patch doesn't fix it.

BTW, [SetOfSlices::Release] is also candidate for using [std::for_each]
Agree, but I suggest to prepare another special pull request for changing "for cycles" inside SetOfSlices class to [std::for_each], when current pull request will be approved and merged:)

@onabiull , @dmitry-gurulev ,
Thank you for review, done all needed changes


Visualisation

Hello, I run the demo of visualisation and I obtained this result, but I don't know if it is the predictions that are visualised or not ?

These are the annotations, not the predictions.
The answer to your question was in the visualization documentation, please read the provided resources before opening an issue


Support TS 4.3 noImplicitOverride compiler flag

TypeScript recently added a noImplicitOverride flag to their configuration. This flag protects from:

When working with classes which use inheritance, it’s possible for a sub-class to get “out of sync” with the functions it overloads when they are renamed in the base class.

It could be a minor but great addition to the protobuf-ts so it generates code with the override keyword to explicitly state that the method overrides another one from the base class.
Thoughts?

That's a nice addition. Birthed by C#, I'd wager.
It appears to be available since 4.3, protobuf-ts is still using 3.9. Updating is a breaking change. Does TypeScript have support timelines so we can determine a good point in time to break?

Birthed by C#, I'd wager

Sure, thanks to papa Anders Hejlsberg 😸

Does TypeScript have support timelines so we can determine a good point in time to break?

I'm not sure it even had before or planning to. These versions are not semantic versions, but just an increment. So, as I see it, there are no LTS versions or something like this.
What we could do, actually, is specify typescript as part of a peer dependency here. protobuf-ts is totally built around TypeScript and having no typescript package on the peer side seems off. So we could say "hey, we have protobuf-ts version X that require typescript version Z, please do so".

You're right about TypeScript not following SemVer. Pretty much every minor release includes some breaking changes. :raised_eyebrow:
Opening separate issue for peer dependency.

Regarding noImplicitOverride: I presume the generated code produces errors on TypeScript 4.3 if the flag is on? That would have to be fixed.
We could generate a @ts-ignore annotation with an explanatory comment so we can still support TypeScript < 4.3.

I presume the generated code produces errors on TypeScript 4.3 if the flag is on? That would have to be fixed.

Yeap, that's what is happening in our case. We want to make sure that override keyword is used for our codebase, but it breaks the build when building with the protobuf-ts code.

We could generate a @ts-ignore annotation with an explanatory comment so we can still support TypeScript < 4.3.

Better to use @ts-expect-error (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html#-ts-expect-error-comments). That way, if something will change and error is no longer, it will be a compilation error.
But, I'm not sure if that will work great with different compiler combinations. E.g. having override keyword in the code base that is being built by tsc < 4.3 will be a syntax error. I'm not sure @ts-ignore or @ts-expect-error will help here. Anyway, seems like we could just try to add override or @ts-expect-error and see how it goes.

We want to make sure that override keyword is used for our codebase, but it breaks the build when building with the protobuf-ts code.

Got it. That needs support.
Until protobuf-ts moves to TypeScript 4 (internally and for generated code), an annotation to ignore errors on TS 4 has to be generated. @ts-expect-error is not suitable because it will raise an error if the expected error is not raised.

Sorry for the long wait. https://github.com/timostamm/protobuf-ts/commit/ea11acf5d75d0faba72ac16899768b1a354069e9 adds a new plugin option:

"ts_nocheck"
Generate a @ts-nocheck annotation at the top of each file. This will become the
default behaviour in the next major release.

This will let the TypeScript compiler ignore the missing override keywords and while I'm not super happy about it, it is an appropriate fix for this issue considering that there will likely be other similar cases in the future.
I'll close this issue when it is released.

Released as v2.2.0-alpha.0 in the next channel.

Now that TypeScript is a peer dependency, can we reopen this and fix overrides properly without using @ts-ignore?

It is not possible to add 'override' with the version of typescript that does not support them.

Right, but if I do have a peer dep of TypeScript that does support them, the overrides keywords still do not appear. Thus, I believe this issue should be reopened.

The plugin has a direct dependency on TS 3.9. The compiler API had breaking changes between 3.9 and 4.x. You can't generate "override" statements with 3.9.

I see. Is there an issue that tracks the status of moving this project off of TS 3.9?

Quoting from an article on etiquette in OSS:

Avoid asking for ETAs for issues and feature requests. It’s more rude than you may realize. People working on open-source projects are not your employees. They have no obligation to implement every feature you request, to fix every issue you report, or to provide technical support that you are not even paying for.

If you want something, try contributing.


Is the model downloaded or loaded on the browser side??

Hello and have a good time
Is the model downloaded or loaded on the browser side??
In the firefox browser, when I am loading the model, the models are downloaded and remain in the loading mode

Models are downloaded in the background by the web worker. Can you provide more information?

how do you start the demo locally?
what Firefox version are you using?
can you share the output of the browser console?


JsonResult and Controller.Json() do not work without calling AddNewtonsoftJson() in 3.0 preview 6

Describe the bug
If AddNewtonsoftJson() from Microsoft.AspNetCore.Mvc.NewtonsoftJson is not called while configuring MVC in ASP.NET Core 3.0 preview 6, then rendering the result of a call to the Controller.Json() method fails with an InvalidOperationException and an HTTP 500 status.
InvalidOperationException: No service for type 'Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor`1[Microsoft.AspNetCore.Mvc.JsonResult]' has been registered.
Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService<T>(IServiceProvider provider)
Microsoft.AspNetCore.Mvc.JsonResult.ExecuteResultAsync(ActionContext context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultAsync(IActionResult result)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext<TFilter, TFilterAsync>(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResultFilterAsync<TFilter, TFilterAsync>()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext<TFilter, TFilterAsync>(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Searching for SystemTextJsonResultExecutor suggests that the built-in SystemTextJsonResultExecutor is never registered with the service collection and was missed as part of the work for #9554.
As the type is internal, it's not possible to manually register the class so the only workarounds are to provide a custom implementation or to use the Newtonsoft.Json implementation via AddNewtonsoftJson() instead.
To Reproduce
A solution that reproduces this issue is available here: https://github.com/martincostello/Missing-SystemTextJsonResultExecutor-Repro
The relevant code is:
public class HomeController : Controller
{
    public IActionResult Index()
        => Json(new { message = "Test" });
}

public class Startup
{
    public void ConfigureServices(IServiceCollection services)
    {
        var builder = services
            .AddControllersWithViews()
            .SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
            .AddJsonOptions(options => options.JsonSerializerOptions.WriteIndented = true);

        // Uncomment the line below to get the application to work
        // builder.AddNewtonsoftJson();
    }

    public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
    {
        app.UseDeveloperExceptionPage();

        app.UseRouting();

        app.UseEndpoints(endpoints =>
        {
            endpoints.MapDefaultControllerRoute();
        });
    }
}

Expected behavior
An HTTP request to http://localhost:5000 returns {"message":"Test"} with an HTTP 200 status code.
Additional context
.NET Core SDK (reflecting any global.json):
 Version:   3.0.100-preview6-012264
 Commit:    be3f0c1a03

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.0.100-preview6-012264\

Host (useful for support):
  Version: 3.0.0-preview6-27804-01
  Commit:  fdf81c6faf

Users can work around the issue with the following snippet:
services.Add(
    new ServiceDescriptor(
        typeof(IActionResultExecutor<JsonResult>),
        Type.GetType("Microsoft.AspNetCore.Mvc.Infrastructure.SystemTextJsonResultExecutor, Microsoft.AspNetCore.Mvc.Core"),
        ServiceLifetime.Singleton));

Thanks. I nearly threw my PC out of the window

Confirm the issue - experiencing the same.

is there any way to do this without NewtonSoft.Json?

@Tvde1 Yes, you can use the workaround stated above: https://github.com/aspnet/AspNetCore/issues/11246#issuecomment-502381495

Just as a FYI I am hitting this issue when trying to accept plain Object for input using System.Text.Json using ASP.Net Core 3.0 (Latest preview)
I have a controller with a method as follows:
public ActionResult PutMapData(string parameterFromUrl, [FromBody]ApiInput<Object> inputFromBody) {...}
Without the workaround posted by @martincostello I experience the same exception outlined which resulted in this issue being created.
Again, I have it working by supplying the workaround outlined by @martincostello however I feel like this should not be something I should have to do.
If I should have defined the input as something other than Object to get this to work straight out of the box then please direct me to where I can read that bit of information.
The justification for Object rather than a strongly typed Type is because that this particular end point accepts a raw json object which can be null or have a varying amount of properties and do long as the input data is valid it should be accepted.
Dot Net Core Info:
.NET Core SDK (reflecting any global.json):
Version:   3.0.100-preview6-012264
Commit:    be3f0c1a03
Runtime Environment:
OS Name:     Windows
OS Version:  6.1.7601
OS Platform: Windows
RID:         win7-x64
Base Path:   C:\Program Files\dotnet\sdk\3.0.100-preview6-012264\
Host (useful for support):
Version: 3.0.0-preview6-27804-01
Commit:  fdf81c6faf
Visual Studio Info:
Microsoft Visual Studio Enterprise 2019 Preview
Version 16.2.0 Preview 4.0
VisualStudio.16.Preview/16.2.0-pre.4.0+29111.141

Hi, it looks like you are posting on a closed issue/PR/commit!
We're very likely to lose track of your bug/feedback/question unless you:

Open a new issue
Explain very clearly what you need help with
If you think you have found a bug, include detailed repro steps so that we can investigate the problem

Thanks!

FYI this issue is fixed in preview 7, which was released today.


feat: add support for Loupedeck CT

This PR adds support for the Loupedeck CT.
Tested with LDD-1903, hardware version 02.00, firmware version 0.1.2
The upper section is compatible to the Loupedeck Live.
The buttons on the lower section have succeding indices 8...19
The big knob has the rotary id 6
The display on the knob has a new displayId 'knob' and works like the left or right strip without a button segmentation.

I was sticking with the wording from foxxyz. Given that the big knob is a rotary and a display, it makes more sense to me than wheel which I would only associate with the rotary.
But wheel isn't that bad too, I'll change it.

Done and tested again.

Published as v1.0.0


Initial implementation of C API literal pinning and literal intern cache

[x] Automatically pin the duk_hstrings looked up using C API literals when they're encountered.
[x] Add a C literal address -> duk_hstring cache ("litcache") to look up the duk_hstring matching a certain literal address quickly. Because the target duk_hstring is pinned until heap destruction, the cache doesn't need an invalidation mechanism.
[x] Some more internal call site conversion to use duk_xxx_literal() variants.
[x] Portability / warnings for litcache key computation.
[x] Make pinning+litcache configurable.
[ ] API documentation updates.
[ ] 2.3 migration note updates.
[ ] Releases entry.

Overall the pinning+litcache makes e.g. duk_get_prop_literal() about as fast as duk_get_prop_heapptr() in most cases.

With this pull once literals get pinned, they won't be unpinned and will only be freed by heap destruction; this is done because this avoids any need for an invalidation mechanism. This is typically not a huge downside because only literals actually occurring in source code, and which also get used in actual duk_xxx_literal() calls get pinned.
However, it'd be easy to perform a full flush of the literal cache on mark-and-sweep. This would unpin the strings and invalidate all cache entries. There are no borrowed pointers in play once the cache has been flushed, so mark-and-sweep would then be able to collect the strings if they're no longer referenced. Mark-and-sweep is rare enough to make the flush/invalidation cheap enough not to matter because it won't affect individual string lookups.
Added this to the #1806 backlog issue.

I don't think the permanent pinning should be an issue, any literal strings actually used by a program will remain in memory regardless of anything else you do (because they are part of the compiled code).

Right, the C literals will be in the read-only section, but that doesn't have to mean that a duk_hstring is allocated from RAM for each C literal. But, that's not an issue except for literals that are used very rarely.


The HTML to copy is actually being rendered and transformed.

In step 13 of Creating the provider we need to copy the html. However, it's not being wrapped in a code block so the rendering engine is actually embedding it into the page and removing the script elements. It's line 322-343 in https://github.com/MicrosoftDocs/windowsserverdocs/edit/master/WindowsServerDocs/identity/ad-fs/development/ad-fs-build-custom-auth-method.md that needs to be wrapped with the code block tildes.

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

ID: 432d0552-7fd9-7220-c5b2-3dd726ce54fa
Version Independent ID: fa375dbe-43da-abcc-bc52-87f48b3d0b0c
Content: Build a Custom Authentication Method for AD FS in Windows Server
Content Source: WindowsServerDocs/identity/ad-fs/development/ad-fs-build-custom-auth-method.md
Product: windows-server
Technology: identity-adfs
GitHub Login: @billmath
Microsoft Alias: billmath

Thanks. I will look into this, even though it has taken some time. I was waiting for an open PR to be merged before starting a new edit to fix several issues with this page (bulky & messy JavaScript representations, incorrectly placed MarkDown code block fences et cetera. I just hope to get the page edited and pushed to a PR during the next couple of days.

By the way, thanks for providing the line numbers, although in some cases it could also be feasible to look at the normal page by searching for the text before & after. By the way, this is how it looks at the moment:

Now for the resource file containing the html fragment. Create a new text file in your project folder with the following contents:

This content is provided by the MFA sample adapter. Challenge inputs should be presented below.
Question text

Support information

Then, select Project->Add Component... Resources file and name the file Resources, and click Add:

What it should have looked like instead:

Now for the resource file containing the html fragment. Create a new text file in your project folder with the following contents:

    <form method="post" id="loginForm">

        <input id="authMethod" type="hidden" name="AuthMethod" value="%AuthMethod%" />
        <input id="context" type="hidden" name="Context" value="%Context%" />

This content is provided by the MFA sample adapter. Challenge inputs should be presented below.

        Question text
        <input id="challengeQuestionInput" name="ChallengeQuestionAnswer" type="text" value="" class="text" placeholder="Answer placeholder" />

            <input id="submitButton" type="submit" name="Submit" value="Submit" onclick="return AuthPage.submitAnswer()" />

    </form>

Support information

Then, select Project->Add Component... Resources file and name the file Resources, and click Add:

In my upcoming PR (tomorrow or Saturday), I am hoping to be able to use a HTML formatter and JavaScript pretty-print to make the examples more readable for actual coders & scripters.

#assign:xelu86

Hey @veccsolutions,
Thanks again for contacting Microsoft. We value your feedback.
A documentation change was made over a year ago and this issue was not closed. Changes are live. We will now be closing this thread. Thank you and have a most pleasant day. #please-close


Add ability to put packaged app files in another GCS Bucket

This permits us to create a bucket with a limited lifetime for objects placed in it. We then place apk files in this additional bucket, saving on storage costs because we do not really need to store apk files for more then two hours.
Change-Id: I56a94768516494b86b3bd216753893b9b1f122d6

@ewpatton I've tested this out on (and it runs on ) jisqyvap4.appspot.com.

@ewpatton Take another look, I believe I addressed your comments


doc:default bucket path doc optimize

单机模式文档中存储默认路径"$HOME/.juicefs/local"，"/var/jfs" 或 "C:/jfs/local"，实测下来，在linux下没找到路径"$HOME/.juicefs/local"，存在歧义，提交文档优化，补充操作系统类别以便区分说明。

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


Update branches for ros_gz

At one point, the ros_gz package used the humble branch to make releases for iron and rolling. That has since changed and there' snow a branch for each ROS 2 release.

Holding for Iron sync
If you want these in faster, it's better to separate them.  Otherwise we will wait until there are no sync holds for the impacted distros.

No problem, this can wait until there are no sync holds.


Cue: don't panic!

Rewrite cue to return deterministic or nondeterministic errors, as appropriate.

What's the short explanation on what's going on with the ibig changes?


Remove the sync command as it should no longer be needed

What was the replacement?

The push command is going to be the replacement. Which is currently the request-review command.

We should definitely write down a mapping in the next release changelog. Its already a bit confusing what is going where.


Can not open multiple instances of file with the same name.

Running latest version of vscode.
I am browsing an Android app project. There are three files name AndroidManifest.xml in three different directories.
I can only open one of these at a time even though they are separate file instances.

/gifPlease


Feature Request > IP restriction

I don't think there is an option to close down one service to a certain ip range. Sure I can do it with custom templates and as global rules they are fine. Doing it service by service is cumbersome.. At least I didn't notice any acl network_allowed or white_list options. Someone might correct me if I'm wrong.

That would be difficult to accomplish with Overlay network. When a request enters a cluster, it is forwarded (through Overlay) to a service (in this case DFP). The moment it gets to Overlay it loses IP of the request that initiated it. There are a couple of issues open in Docker but, as far as I know, there is no solution yet.

There is a workaround to this issue posted in:
https://github.com/moby/moby/issues/25526
It won't use overlay networking though, the ports will be opened on the host itself.
	--publish-rm 80 \
	--publish-add "mode=host,published=80,target=80" \
	--publish-rm 443 \
	--publish-add "mode=host,published=443,target=443"

I don't think that's an acceptable workaround. It skip ingress network. That would mean that requests can enter only through nodes hosting the proxy. If that's OK, publishing it on host should work but, in that case, you'd need to constraint the proxy to run only on specific hosts. That would create problems with fault tollerance and quite a few other things.

Closing the issue due to inability to capture IP with Overlay network


Only show edition metadata for subsequent editions

https://trello.com/c/hj7RXU4S/532-content-summary-change-note-meta-data-and-fix-mobile-styles
This also fixes the metadata on the document summary page so that
we don't show the change note for minor changes, so that it's consistent
with the way we handle this on the edit page.

Closio...


Allow custom inline nodes

Disclaimer: This ticket describes Superlist specific behavior. It is expected to be split into requirements for the editor package and application-specific parts. The application-specific parts can be handled by the Superlist crew, we just need the required changes and a documentation or sample application on how to add custom nodes as described.
As a user I want to be able to tag a co-worker within a paragraph (or any text). While typing regular text, I can trigger a drop-down to select a co-worker by using a special character, the @-Symbol. The behavior is similar to the behavior in this editor.

This consist of two parts:

While editing I should be able to trigger the drop-down, limit the options while typing and auto-complete on cursor movements or with return. The options in the dropdown are all on application level of course.
After completing the editing part, the selected user should be rendered in an application-specific way, in this case linking to a resource (see below, ignore the popup).

While this is an actual requirement, it's also just one of many for custom in-line auto-complete and rendering that Superlist will require. Other examples include:

Linking to a specific task or list within the application
Setting metadata (e.g. labels) directly from within the text editor
Term recognition (e.g. times) to identify specific words, e.g. tomorrow or next week and render those differently

We will further need rendering on block-level later on as well, not only inline.
Screenshots:

@bk-one @salihgueler I think we should accumulate a set of use-cases for this ticket. The reference to "inline nodes" implies a particular logical document structure, rather than use-case goals.
I understand that there is some kind of goal here in which text patterns are recognized and then some kind of action is taken. I think we need quite a bit more detail before this is actionable.

updated the description, I hope this is more clear now

I came here to request this as well.  My use case is very similar to the @user autocompletion though I would like to also add an image inline with the text (using WidgetSpan along with the TextSpans). This would require, at a minimum, some ability for an Attribution to participate in the process of converting text into InlineSpan instances.
I'm new to this library, so there may be an easy way to accomplish what I'm after as well.

@ericmartineau can you describe why user autocompletion requires inline widgets?

This is similar to a feature that I would like to have as well. Inline text replaced with an interactable (gesture detection) Widget-esque object, similar (if not functionally identical) to extending Flutter's TextEditingController to override buildTextSpan so that specific text can be replaced with a WidgetSpan. This also ideally provides a way to create inline onTap interactions from text which is replaced as the user adds it when a specific string is added to the controller.

@ericmartineau can you describe why user autocompletion requires inline widgets? Also, what kind of images are you trying to embed within the text?

@matthew-carroll we have the same challenge. We would like to represent custom inlines (not text with style).
e.g: "Some text with a user mention" -> Display the user mention in the ParagraphNode as a Row(children: [UserAvatar, Text(username)].
or the slack emoji example from:
"text with a :custom-emoji: !" -> replace :custom-emoji: with a custom widget.
I don't see a way to achieve this with AttributedText.

Hi @BazinC - this remains something that we want to support. We understand that it's a valuable feature, and we also understand that for some use-cases, such as small inline images and animations, this feature feels fundamental, because web has made it so common.
There remain two major hurdles for us to implement this feature:

We need to determine how such content should be represented in AttributedText. Should such content simply have a placeholder with an ID? Should it have an entire data structure? Does AttributedText need to know anything about the specifics of an inline widget?

We need to implement flow-based layout. Flutter doesn't even support flow-based layout. We'd likely need to re-implement all of RenderParagraph to achieve this. I've looked into it a few times, but so far, the effort outweighs the number of requests that we receive for this feature.

That said, if any companies would like to fund this effort, we can make it a priority.

In addition to the use case that both @BazinC and @ericmartineau have described, I am looking to support inline-math.

For that I need to somehow have custom widgets Inside a TextComponent- in this case a Math.tex widget.

Is this still being worked on?

@mochar this was never being worked on.

@mochar this was never being worked on.

Ok thanks!
For others that are looking for thuis feature, I found visual editor does support it

Looking back at this ticket, the original goal (user tagging) has been implemented. However, there's a related concern, which is the ability to place arbitrary content within line-baed layout. To specifically track that issue, I've filed https://github.com/superlistapp/super_editor/issues/2359
I'm going to close this one in favor of the new ticket. Hopefully we can get a few clients to split funding for that issue and we can bring a new form of text layout to Flutter.


[Interop] [SwiftToCxx] New Throw Error Test

This PR aims to introduce the known issue of Swift functions that thrown don't be translated as such when creating the bridge header file.
Given this simple function:
public func emptyThrowFunction() throws { print("passEmptyThrowFunction") }

The Expected Signature of emptyThrowFunction():
SWIFT_EXTERN void $s9Functions18emptyThrowFunctionyyKF(void) SWIFT_CALL; // emptyThrowFunction()
...
inline void emptyThrowFunction() {
    return _impl::$s9Functions18emptyThrowFunctionyyKF();
 }

The Current Signature of emptyThrowFunction():
SWIFT_EXTERN void $s9Functions18emptyThrowFunctionyyKF(void) SWIFT_NOEXCEPT SWIFT_CALL; // emptyThrowFunction()
...
inline void emptyThrowFunction() noexcept {
  return _impl::$s9Functions18emptyThrowFunctionyyKF();
}

This test is marked as XFAIL: * since it will fail in any context due to the hardcoded attributes SWIFT_NOEXCEPT and noexcept on the Swift Compiler.

Hey @hyp, could you, please, review this PR?

@swift-ci please test


required for update and reboot

The test for updating is failing. rc is not defined:
See output:
TASK [sap-hana-preconfigure : restart machine if required] *********************
fatal: [dhcp168.coe.muc.redhat.com]: FAILED! => {"msg": "The conditional check 'sap_hana_preconfigure_reboot_after_update == true and sap_hana_preconfigure_register_reboot_required.rc == 1' failed. The error was: error while evaluating conditional (sap_hana_preconfigure_reboot_after_update == true and sap_hana_preconfigure_register_reboot_required.rc == 1): 'dict object' has no attribute 'rc'\n\nThe error appears to be in '/usr/share/ansible/roles/sap-hana-preconfigure/tasks/RedHat/installation.yml': line 85, column 9, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n      # inspired by https://support.ansible.com/hc/en-us/articles/201958037-Reboot-a-server-and-wait-for-it-to-come-back\n      - name: restart machine if required\n        ^ here\n"}
...ignoring
TASK [sap-hana-preconfigure : waiting for server to come back] *****************
fatal: [dhcp168.coe.muc.redhat.com]: FAILED! => {"msg": "The conditional check 'sap_hana_preconfigure_reboot_after_update == true and sap_hana_preconfigure_register_reboot_required.rc == 1' failed. The error was: error while evaluating conditional (sap_hana_preconfigure_reboot_after_update == true and sap_hana_preconfigure_register_reboot_required.rc == 1): 'dict object' has no attribute 'rc'\n\nThe error appears to be in '/usr/share/ansible/roles/sap-hana-preconfigure/tasks/RedHat/installation.yml': line 92, column 9, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n      - name: waiting for server to come back\n        ^ here\n"}
PLAY RECAP *********************************************************************
dhcp168.coe.muc.redhat.com : ok=11   changed=1    unreachable=0    failed=1    skipped=2    rescued=0    ignored=1
422 Client Error: Unprocessable Entity

Do we really have to reboot in between? I'd rather not reboot in the role itself at all but let the role fail if a reboot is required. Then the rebooting can be done in the playbook which is calling the role. See also the code in https://github.com/berndfinger/sap-preconfigure/blob/4a1f8c15991a4c8369ab56f7c457c49a96e76bcb/tasks/installation.yml .

Solved in pull request #82 .


Sync new collections from MongoDB with tail option

Feature Request
I need sync two mongo databases continuously (with tail option, to emulate a continuos replication backup). All is work with add/update/delete documents for collections existing in the source database, but when i added a new collection, the sink database doesn't replicate it.
Ideas?

waiting..

We build up the list of collections when the read initiates, and it does not get refreshed, even while tailing.
https://github.com/compose/transporter/blob/9e154e76b7d2977d9ac7756660779b512cace87f/adaptor/mongodb/reader.go#L61
Downstream from there you can see that we set up tailing specific to each enumerated collection.


A Tribute Webpage

I want to add a webpage specially designed to give tribute to noble people built using HTML and CSS.
Please assign me it under GSSOC'23.
@Dharmesh177 @artimanputra
Here is the screenshot of the page-

sure assign to u !! start working and complete it in 10 days
follow contributing.md guide for successful PR merge.
happy coding !!


Failed to setup Development/ Test Network

I was trying to setup development network but looks like  setup_network.sh script file is missing. Is it still in development?.

Yes Karthik.
We're integrating PBFT as well. Setup Development/Test Network will be available once PBFT is integrated

Hi Karthik,
We've added Setup Development/Test Network support on branch 2.1
You can check it out now

Ok i will check it. Thanks @rjbanner.

Welcome @karthik137. Since we've updated the image on dockerhub could you kindly take the latest pull

Sure

This feature is available on V2.1 and soon be merged to master.


Cannot Start Container Error

Error response from daemon: Cannot start container c9b993897aef9a6b48e1b18d9ee0e9a71e41b13e6cfcbac43823cf04bc7ddaec: [8] System error: exec format error
root@Storage root #

Any more updates on this?

Are you sure it isn't a problem of your Docker installation? Here the image runs smoothly

Closing since there hasn't been any response.


Fix typo in module name

fixes #11432

It should be possible to add a rule to https://github.com/openlayers/eslint-plugin to catch this.

I've created an issue in eslint-plugin


Colors with capital letter - update instructions

Using badge and naming color "Black" and get an error.  Should be "black" of course but info in instructions are wrong

Thanks for pointing that out. We've removed a few color options to consolidate the badges (black is no longer available). The instructions have now been updated to reflect this.


paritybit.ca

My site: https://www.paritybit.ca
Transferred size: 9005B according to Iridium (Chromium) browser tools
Lobste.rs to satisfy rule 5: https://lobste.rs/domain/paritybit.ca
Reddit (if it counts): https://old.reddit.com/search/?sort=top&q=site:paritybit.ca
Alternatively, blog post featured on the APNIC blog: https://blog.apnic.net/2020/09/21/why-irc-is-still-good-in-current_year/

Ping

Thank you for the reminder. I have added this website to the club now. However, the total size of this website as measured by src/refresh.js (in the source code of this project) exceeds 10240 bytes. See https://github.com/susam/10kbclub/runs/2042117697?check_suite_focus=true#step:5:361 for evidence. As a result, this website does not appear at https://10kbclub.com/.
Here is a minimal way to reproduce that result:
$ node src/metrics.js https://www.paritybit.ca/
url: https://www.paritybit.ca/
htmlSize: 7303
jsonSize: 0
imageSize: 0
base64Size: 0
videoSize: 0
cssSize: 3148
jsSize: 0
webfontSize: 0
otherSize: 0
contentSize: 7303
extraSize: 3148
totalSize: 10451

total size: 10.2 KB
content size: 7.1 KB
content ratio: 70%

Regardless of the size limit issue, I have added this website to the list. In future, if the total download size of this website as measured by the scripts in this project goes below 10240 bytes, its entry will automatically appear on https://10kbclub.com/ on the next build (typically at 01:09 UTC on Saturdays).


opt add group_array as collect_list alias

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


feat: add datepicker

CAR-6045

DatePicker is from the listings project

@ufkaya I might have missed some discussions but whats the reason to duplicate it instead of moving it to the components packge?

This is the component pkg, I will use it in the DH

This is the component pkg, I will use it in the DH

Oh lol nvm then 😂


Multiline Support

Aloha!
I love the huge amount of input formats! Just one thing: None of them seem to support multiline messages. The only one I found was in your html- and markdown-example, and those newlines are caused by the markdown renderer, not intended by the user.
I have a lot of files containing email-like messages. Your plugin is used to assemble conversation views. Except that messages are cut off after the first \n.
Do you see an option to make this work? Maybe by allowing for custom message delimiters, like a double linebreak, or other custom strings?

I was able to use multiline messages by replacing all \n with
.
Feel free to close this issue if that's good enough for you. 👍🏼

Hi @max06. Yes, using
 is the recommended way to use multiline.
The reason for that is that incorporating natural multi-line into the Chat View would significantly complicate the parsing of the Chat View - and that would mean you'd have to a lot write more in the code block to render a Chat View (delimiters separating chat bubbles, differentiating between internal new-lines and external) - which isn't what I want for my users. My goal for the plugin is that it should be dead simple to setup - and on top of that allow a lot of flexibility and customizability.
I'll see if I can come up with a multi-line format like that in the future. Thanks for writing in!

Hi @max06. Chat View has officially transitioned to the official Markdown Renderer. And thus more options may now be available. I haven't checked these as of yet. As such,
 is still the recommended way to do new-lines.

@adifyr ouh, thanks for the heads up! Gonna check it out! 👍🏼

Might it be possible to use a character such as ^ to indicate the line is attached to the conversation above?
a < how are you?
b > Great. I have 2 things I want to do today:
^- [ ] thing1
^- [ ] thing2

 breaks checkboxes and bullets from working properly since they are no longer at the start of the line.
 also might work well for pasting saved conversations but is much less pleasant if you're writing out a conversation for yourself. (I've been having fun using this plugin to have introspective conversations)


Update UG for 2101

Describe your changes
Update UG for 2101
Issue ticket number and link
Closes  #232, closes #248, closes #251, closes #254 closes #279
Checklist before requesting a review

[x] I have performed a self-review of my code.
[x] If it is a core feature, I have added thorough tests.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:


Feature Request: support custom domains

I have tried to set up a custom domain for a personal GitHub page. It works smoothly but I noticed some SEO problems because of the duplicate content at username.github.io and customdomain.com
The internet suggests the following solution:
add to the head
<meta http-equiv="refresh" content="0; URL=https://customdomain.com/">
<link rel="canonical" href="https://customdomain.com/">

I considered modifying just my fork of the theme, but I am now wondering if there are other places where
the custom domain should be added.
It is also unclear why there are two different parameters for the site URL: baseURL in hugo.yaml and openGraph.url.
Is there any case where they should differ from each other?
Since this may be a common situation, adding an option to the theme to support custom domains may be worth adding.

Hi @maiani, sorry for the late response.
I also have a custom domain, and I don't have any problems. I just added my custom domain into hugo.yaml, and followed the guide on github pages.
However, if you really wanted to add the html metadata, you can create a file into your site's layout/partials/header.html, paste the content of this file: https://github.com/hugo-toha/toha/blob/main/layouts/partials/header.html, and add your lines there.
Hope this solves the issue


Initial import

[x] Fix tests
[x] Review implementation and remove any 4.x related hacks

Is there anything else we can do before merging?


logfile path

where can i find the log-files within the docker containers?

Containers don't store any logs but they are accessible in JSON format on the host system in:
jq < /var/lib/docker/containers/<container_hash>/<container_hash>-json.log


AttributeError: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy'

Describe the bug
In linux RHEL 8 using azure cli to retrieve trigger information from datafactory, but it is failling with error
ERROR: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy'
Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
File "/home/zkhandk2/.azure/cliextensions/datafactory/azext_datafactory/generated/_client_factory.py", line 56, in cf_trigger
return cf_datafactory_cl(cli_ctx).triggers
File "/home/zkhandk2/.azure/cliextensions/datafactory/azext_datafactory/generated/_client_factory.py", line 16, in cf_datafactory_cl
return get_mgmt_service_client(cli_ctx, DataFactoryManagementClient)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/client_factory.py", line 74, in get_mgmt_service_client
**kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/client_factory.py", line 230, in _get_mgmt_service_client
client = client_type(cred, subscription_id, **client_kwargs)
File "/home/zkhandk2/.azure/cliextensions/datafactory/azext_datafactory/vendored_sdks/datafactory/_data_factory_management_client.py", line 149, in init
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
AttributeError: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy'
command used-
names = az datafactory trigger list --factory-name "xxx" --resource-group "xxx" --query "[?properties.runtimeState=='Started'].name" -o tsv --only-show-errors
Azure cli version
azure-cli                         2.38.1 *
core                              2.38.1 *
telemetry                          1.0.6 *
Extensions:
datafactory                        1.0.2
Dependencies:
msal                            1.18.0b1
azure-mgmt-resource             21.1.0b1
Python location '/usr/bin/python3.6'
Extensions directory '/home/zkhandk2/.azure/cliextensions'
Python (Linux) 3.6.8 (default, Jan  5 2024, 08:58:17)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-20)]
Legal docs and information: aka.ms/AzureCliLegal
Related command
names = az datafactory trigger list --factory-name "xxx" --resource-group "xxx" --query "[?properties.runtimeState=='Started'].name" -o tsv --only-show-errors
Errors
ERROR: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy'
Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
File "/home/zkhandk2/.azure/cliextensions/datafactory/azext_datafactory/generated/_client_factory.py", line 56, in cf_trigger
return cf_datafactory_cl(cli_ctx).triggers
File "/home/zkhandk2/.azure/cliextensions/datafactory/azext_datafactory/generated/_client_factory.py", line 16, in cf_datafactory_cl
return get_mgmt_service_client(cli_ctx, DataFactoryManagementClient)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/client_factory.py", line 74, in get_mgmt_service_client
**kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/client_factory.py", line 230, in _get_mgmt_service_client
client = client_type(cred, subscription_id, **client_kwargs)
File "/home/zkhandk2/.azure/cliextensions/datafactory/azext_datafactory/vendored_sdks/datafactory/_data_factory_management_client.py", line 149, in init
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
AttributeError: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy'
Issue script & Debug output
ERROR: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy'
Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
File "/home/zkhandk2/.azure/cliextensions/datafactory/azext_datafactory/generated/_client_factory.py", line 56, in cf_trigger
return cf_datafactory_cl(cli_ctx).triggers
File "/home/zkhandk2/.azure/cliextensions/datafactory/azext_datafactory/generated/_client_factory.py", line 16, in cf_datafactory_cl
return get_mgmt_service_client(cli_ctx, DataFactoryManagementClient)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/client_factory.py", line 74, in get_mgmt_service_client
**kwargs)
File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/client_factory.py", line 230, in _get_mgmt_service_client
client = client_type(cred, subscription_id, **client_kwargs)
File "/home/zkhandk2/.azure/cliextensions/datafactory/azext_datafactory/vendored_sdks/datafactory/_data_factory_management_client.py", line 149, in init
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
AttributeError: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy'
Expected behavior
expected behaviour, it should return trigger names
Environment Summary
azure-cli                         2.38.1 *
core                              2.38.1 *
telemetry                          1.0.6 *
Extensions:
datafactory                        1.0.2
Dependencies:
msal                            1.18.0b1
azure-mgmt-resource             21.1.0b1
Python location '/usr/bin/python3.6'
Extensions directory '/home/zkhandk2/.azure/cliextensions'
Python (Linux) 3.6.8 (default, Jan  5 2024, 08:58:17)
[GCC 8.5.0 20210514 (Red Hat 8.5.0-20)]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
this error is faced from 6th june 2024

Thank you for opening this issue, we will look into it.

Running: pip install --upgrade azure-core
Fixed the issue on my end


tour: Exported names

Context: https://tour.golang.org/basics/3
The example says that lower-cased names are not exported, so it asks to try importing math.pi instead of math.Pi to see the compiler error.
But for the beginner to grasp this further, you should ask to try them import something that actually exists which is not exported. E.g. in math, there's no "pi", only "Pi". If we could add an example, where there are lowered-case names, it would make even more sense to understand "exports".

Didn't check when the page was last updated, but I noticed that the page now says:
Run the code. Notice the error message.

But the page didn't have any error (since it's already using math.Pi). So, I think that's something that we need to update.

@ahartot IIRC, the page does show the lowercase pi. maybe you already corrected it to Pi and reopened the page. Browser storage might be in play here

you should ask to try them import something that actually exists which is not exported.
It would be problematic for more reasons I think

the internal/private structure of a library can change at any time, so the reference may not be valid
in order for the user to see that it exists we have to send them to an external page, that involves golang sources, which will lead to a lot of info to handle for a rookie.

in  order for the user to see that it exists we have to send them to an  external page, that involves golang sources, which will lead to a lot of  info to handle for a rookie.

I agree that we shouldn't depend on unexported but existent names in the standard library in a simple tour lesson.
I believe this is sufficiently clear, and that it would be hard to make it clearer without complicating it, so I'm closing this issue.