[798] Improve graduation validation

Context
https://trello.com/c/fO03oOUh/798-s-improve-graduation-validation
Changes proposed in this pull request

Validations to stop a graduation year more than 1 year in future and more than 50 years in past. More precise validation messages.
Added traits to degree factory
Model tests on Degree

Guidance to review
Need for another validation, say to specify that they need to enter numbers? Though if they do it will be caught anyway.

 [S] Improve graduation validation

 [S] Improve graduation validation


Using Cupy and Numpy to access the same memory buffer

Description
I am trying to share an array between host/device on zero copy memory(Jetson Tx2). I need a way to access the memory from a numpy array and cupy array.
I have initialised memory using cupy and then created a numpy array from a ctype pointer. I get a bus error when accessing the host_np array after changing a value using the device_cp
To Reproduce
import numpy as np
import ctypes as C
from ctypes.util import find_library

libc = C.CDLL(find_library('c'))

num_elems = 1024
datatype = np.float32

cp.cuda.set_allocator(cp.cuda.malloc_managed)
mem = cp.cuda.alloc(num_elems*datatype().itemsize)
device_cp = cp.ndarray((num_elems), dtype=datatype, memptr=mem)
device_ptr = device_cp.data.ptr
#May have to manually change C type depending on datatype below
c_pointer = C.cast(device_ptr, C.POINTER(C.c_float))
host_np = np.ctypeslib.as_array(c_pointer, shape=(num_elems,))

device_cp += 1
host_np[0]

Installation
Source (pip install cupy)
Environment
OS                           : Linux-4.9.253-airstack0.5.0-rt168-tegra-aarch64-with-debian-buster-sid
Python Version               : 3.6.13
CuPy Version                 : 9.6.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.19.5
SciPy Version                : 1.5.3
Cython Build Version         : 0.29.24
Cython Runtime Version       : 0.29.24
CUDA Root                    : /usr/local/cuda
nvcc PATH                    : /usr/local/cuda/bin/nvcc
CUDA Build Version           : 10020
CUDA Driver Version          : 10020
CUDA Runtime Version         : 10020
cuBLAS Version               : (available)
cuFFT Version                : 10102
cuRAND Version               : 10102
cuSOLVER Version             : (10, 3, 0)
cuSPARSE Version             : (available)
NVRTC Version                : (10, 2)
Thrust Version               : 100907
CUB Build Version            : <unknown>
Jitify Build Version         : <unknown>
cuDNN Build Version          : 8201
cuDNN Version                : 8201
NCCL Build Version           : None
NCCL Runtime Version         : None
cuTENSOR Version             : None
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA Tegra X2
Device 0 Compute Capability  : 62
Device 0 PCI Bus ID          : 0000:00:00.0

Additional Information
No response

I have also tried creating the numpy array from the cuda_array_interface and this results in a segfault error.
import cupy as cp
import numpy as np

num_elems = 1024
datatype = np.float32

class numpy_holder(object):
    pass

cp.cuda.set_allocator(cp.cuda.malloc_managed)
mem = cp.cuda.alloc(num_elems*datatype().itemsize)
device_cp = cp.ndarray((num_elems), dtype=datatype, memptr=mem)
device_ptr = device_cp.data.ptr

host_buff = device_cp.__cuda_array_interface__
host_buff.pop('stream')
holder = numpy_holder()
holder.__array_interface__ = host_buff
host_np = np.array(holder, copy=False)

device_cp += 1
host_np[0]

I don't have an experience with zero-copy on Jetson, but it seems you need to use pinned memory for that purpose?
https://forums.developer.nvidia.com/t/zero-copy-example-in-python/144331/3

I have a work in progress for this feature, but I need to figure out what requirements Jetson users might have.

I have a work in progress for this feature, but I need to figure out what requirements Jetson users might have.

I have a numpy array image allocated in memory (say from a camera). I copy that to cupy (gpu) using cp.asarray(image), perform computations, then copy it back to numpy (cpu) using .get (to e.g. use with Pillow). What would be amazingly elegant was if I could avoid the copying on Jetson (Orin line).
On np.ndarray there is a buffer keyword, while cp.ndarray has the memptr keyword. Perhaps those two could be overloaded to support this pattern?
I'm no expert on memoryview/cuda memory pointers, but here's a concrete use case.
I have a multiprocessing setup with a camera producer. I utilize a SharedMemory manager to move an np.ndarray between processes. I perform cupy accelerated computation, before needing to compress to png (using pillow, but would love a GPU version).
block: shared_memory.SharedMemory
np_arr = np.ndarray(shape=(400, 300, 3), dtype=np.uint8, buffer=block.buf)
# np/opencv/... manipulation
cp_arr = cp.ndarray(np_arr) # copies, enforces sync
# compute on cp_arr
np_arr = cp_arr.get() #copies, enforces sync
# compress to png

Were I able to transparently use a memoryview on Jetson it could look something like
block: shared_memory.SharedMemory
np_arr = np.ndarray(shape=(400, 300, 3), dtype=np.uint8, buffer=block.buf)
# np/opencv/... manipulation
cp_arr = cp.ndarray(shape=(400, 300, 3), dtype=np.uint8, memptr=block.buf)
# compute on cp_arr, enforce sync
np_arr_final = np.ndarray(shape=(400, 300, 3), dtype=np.uint8, buffer=block.buf) # no copy
# compress np_arr_final to png

or alternatively utilizing .data to get memoryview,
block: shared_memory.SharedMemory
np_arr = np.ndarray(shape=(400, 300, 3), dtype=np.uint8, buffer=block.buf)
cp_arr = cp.ndarray(shape=(400, 300, 3), dtype=np.uint8, memptr=np_arr.data)
np_arr_final = np.ndarray(shape=(400, 300, 3), dtype=np.uint8, buffer=np_arr.data)
# compress np_arr_final  to png

Perhaps the SharedMemory aspects unnecessarily complicates the example, and something simpler can be achieved if the copy=False argument to cp.array would support not copying when running Jetson.

@martintintintin I don't have a concrete, fully worked-out example for you yet, but I do want to give you some directions.
First of you, shared memory can be pinned/page-locked using cudaHostRegister and CuPy (or CUDA Python) has a Python binding for it: cupy.cuda.runtime.hostRegister(). It allows the GPU to directly read/write the otherwise host memory at PCI-E speed without any copy. Though you do need to handle host-device synchronization explicitly to ensure data safety.
Second, it is possible to take any data pointer and wrap it as a CuPy array
https://docs.cupy.dev/en/stable/user_guide/interoperability.html#device-memory-pointers
so in theory you could wrap pinned memory too, but you'll need to understand the implication. Tools are there but you're on your own 🙂
Third, there's a new nvImageCodec library from NVIDIA offering GPU encoder/decoder of PNG format, among other image codecs, in case you need such functionality (since you mentioned pillow and PNG). https://docs.nvidia.com/cuda/nvimagecodec/samples/nvimgcodec.html


Recognize and validate CapabilityShaderDrawParameters in shaders

I've just tested this here and it's working properly (no longer get errors from shaders with CapabilityShaderDrawParameters). Will this be merged soon?

Still have this problem here.  SDK <IP_ADDRESS>/AMD 17.4.1 drivers on R9 290.


Adds support for OpenCL source-files

Adds support for OpenCL similar to the support for CUDA added in https://github.com/cppit/jucipp/issues/357.
Support includes:

auto completion for OpenCL C 2.0 standard-library functions
documentation tooltips for OpenCL standard-library functions (as long as documented in the header)

Thank you!


[EXTREME HIGH PRIORITY] VOLUNTEER PORTAL - Volunteer Requirement - Remove capability for tutor to RSVP for ORIENTATION thru Portal?

@JasonTheAdams It is awesome to be able to RSVP for an Orientation with the click of a button through the Volunteer Portal, but by doing this two of the four form entries are being bypassed and only the First/Last Name and Email Address would be logged in. Also, a lot of  detailed information on the Event Page could be potentially overlooked.
So really the "MORE INFO" and "RSVP" button would be combined so that all the details would be read and the full RSVP form would be filled out through that event page.
Let me know what you think about all of this....
https://sdrefugeetutoring.com/volunteer-portal/requirements/

Hi @dreazee!
Wow, that's a good catch. Perhaps in the future we can display the form in a modal when they click "RSVP", but for the sake of time I did something simple that I think is helpful. I left the "RSVP" button and now when you click on it you're taken to the orientation event page directly to the form. I figure if the user knows they want to attend then we can just jump them straight to the form instead of making them scroll down to find it.
Let me know if you think that's a bad user experience for some reason. 😄

@JasonTheAdams  Love this simple fix! BUT I just tested this Orientation RSVP and it is still processing the RSVP the same way - automatically instead of being redirected to the RSVP form on the Orientation Event Page.

@dreazee When you tested it your browser used the old (cached) version of the script. After loading the page make sure to refresh it again to prompt your browser to load the new scripts. I need to make improvements to how the scripts are loaded to prevent old versions from loading (called "cache busting").

As mentioned in the other Issue, this should be working now as I've added cache busting. Let me know if this is working as intended.

@JasonTheAdams  YES! This is working now! I promise I did multiple refreshes of the browser before writing my last comment :) Cache Busting saved the day.


Racer fails with certain completion - using std::io module

Hello,
I have a problem with Racer in Windows. After I type this line
let stdin = std::io::stdin(). and insert dot, then Racer stops working. If this helps I see in Sublime console following line: failed: exit_code: 255 b'PREFIX 28,28,\n'. But I don't have problem with other modules and completion works ok. I used old_io so far, but it was removed from Rust and now I must use correct io module.
Image

Hi @jaxx. Thanks for filing this, your test case helped me isolate the problem to the handling of 'super::"

Now it works great, thanks!


Timber 2.x

Ticket: #131
Issue
Timber 2.0 is coming. We need to integrate with it.
Solution
General TODO list:

[ ] Audit entire codebase for direct instantiations, deprecations, errors, etc.
[ ] Redesign/rewrite components as necessary
[ ] Update docs

Impact
This is a breaking change. We should continue to support 0.x docs version for legacy projects.
Since Timber 2.x is composer only (not to be published as a WP plugin), Conifer should follow suit.
Usage Changes
TBD
Considerations
As part of this we should adopt the WP Unit Test Framework #119.
Testing
See above.

@sdunham The revisions are ready for you to review. Thanks.

🎉 🌲 🎉


Links are not showing on graph user interface

Hi,
I am using v2.2.3 of orientdb.
I am using ETL to port data from relational databases and I created the links using ETL I am able to see the link column and also able to query with that link. But when I see in graph UI it show 2 unrelated entities. I think I should show some relation between two linked vertex or class.

@dhirender-tyagi
can you post your a screenshot of your results set with the links?

Hi,
Please see the link "dir_ind". But in graph it don't show any relation.

@dhirender-tyagi
Graph rendering works only with Graph Domain (Vertex / Edges).  Does not render link/ linkset


"A JavaScript error occurred in the main process"

OS: Windows 7 Professional SP1
Issue Descriptions: "A JavaScript error occurred in the main process" when launching (or reinstalling)
Steps to Reproduce: For me, just launch the program, or attempt to reinstall it (after uninstalling).

Duplicate of #681


update pop ups activate and deactivate on the admin.user page

Add new controllers: getUserLang - the admin can find out. what is current user's language.
getReasonsOfDeactivation - the administrator can find out the reasons for the last deactivation of the current user.


[UCAI] Add callable support for python function creation

PR Checklist

[X] A description of the changes is added to the description of this PR.
[ ] If there is a related issue, make sure it is linked to this PR.
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added or modified a feature, documentation in docs is updated

Description of changes
This PR introduces the ability to provide a Google PyDoc formatted python function with type hints to the client's create_python_function API to generate a UC function from a base callable.
Note: generic types, Union types, class methods, instance methods, and generic collection types are not permitted for registry due to the need for strong typing within UC.

@serena-ruan @dennyglee This one's ready!

@dennyglee we're all good to merge this one


Updated code to use ConcurrentHashMap.

Task/Issue URL:
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

#4675  👈
develop

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @anikiki and the rest of your teammates on  Graphite


Does rds-controller cover read replica?

What is the URL of the document?

Which section(s) is the issue in?

What needs fixing?

Additional context

I need to append read replica instance on a db instance and need to check if rds-constroller can support this feature.
When I read dbInstnace CRD, it doesn't include read replica related property. Can you share any doc about read replica setup by rds-controller?

The RDS controller spec contains the replicationSourceIdentifier field. As per the RDS documentation, you are expected to create the master replica first, and then specify the ARN of that cluster in the replicationSourceIdentifier when creating the read replica.
The ACK controller does not have any additional logic on top of the AWS SDK Go CreateDBCluster operation when creating DB clusters.

@jamesseo-alation please see #893. Closing this as duplicate.


Add temperature conversion helper to SimpleIO

convert_temp(temp_f=None, temp_c=None) is an often used Celsius-to-Fahrenheit / Fahrenheit-to-Celsius conversion helper that would like to find a nice home, perhaps in  SimpleIO. When a value temp_f is supplied, a value in Celsius is returned; temp_c returns a value in Fahrenheit. None is returned for other input conditions.
The UI syntax is:
from simpleio import convert_temp

# Convert from Fahrenheit to Celsius
sensor_1_f = 212  # sensor temperature in degrees Fahrenheit
sensor_1_c = convert_temp(temp_f=sensor_1_f)
print("Sensor: %6.2f Fahrenheit = %6.2f Celsius" % (sensor_1_f, sensor_1_c))

# Convert from Celsius to Fahrenheit
sensor_2_c = 100  # sensor temperature in degrees Celsius
sensor_2_f = convert_temp(temp_c=sensor_2_c)
print("Sensor: %6.2f Celsius = %6.2f Fahrenheit" % (sensor_2_c, sensor_2_f))

I'm not sure I like using the kwargs to encode the units. What do you think about separate functions?
It is probably worth creating a separate unit conversion library because its purpose would be clearer than SimpleIO. (SimpleIO really is the Arduino compatible function library.) It could have a temperature module with convert_celsius_to_fahrenheit() and convert_fahrenheit_to_celsius().

I like the idea of a CircuitPython_Unit_Conversion library. Might be useful for more complicated unit conversions and formulas like AQI, too.

@brentru you mean like.... SENSORLAB!@?!

I like the unit conversion library approach. I'll close this PR and throw together some ideas. Would be surprised if something similar hadn't been done before.

I think Python's best API for this is Pint but it is pretty heavyweight: https://pint.readthedocs.io/en/latest/

Like that it contains a cornucopia of conversions, but may be too comprehensive and cryptic for a typical CircuitPython user. However, the technique of defining the temperature scale as an attribute of the value might be useful.
convert_temp(sensor)
sensor.deg_celsius = 100
print("Fahrenheit:", sensor.deg_fahrenheit)

sensor = convert_temp()

I like the conversion as an attribute of the sensor like:
sensor.deg_c
sensor.deg_f

Opens the possibility for a library of converters, as well.
from converters import convert_temp, convert_length, convert_ohms_law

Here's an example of the latest temperature converter class using the suggested unit_scale attribute.
https://github.com/CedarGroveStudios/Converters/blob/master/cedargrove_converters/temperature.py
>>> from cedargrove_converters import temperature
>>> sensor = temperature.ConvertTemperature()
>>> sensor.deg_f = 212
>>> sensor.deg_c
100.0
>>> sensor.deg_k
373.15
>>> sensor.deg_c = 0
>>> sensor.deg_k
273.15
>>> sensor.deg_f
32.0
>>>

If this is an acceptable schema, I plan to proceed with a library of converters including angle, area, energy, length, ohms_law, power, pressure, speed(velocity), time, volume, and weight/mass -- as time allows.

I don't like calling your converter, sensor. That should be reserved for the sensor itself. what about...
i2c_bus = busio.I2C(board.SCL, board.SDA)
adt = adafruit_adt7410.ADT7410(i2c_bus, address=0x48)

# initialize a new temperature conversion object
converter = Temperature()
converter.deg_c = adt.temperature

If this is an acceptable schema, I plan to proceed with a library of converters including angle, music(notes, freq), ohms_law, speed(velocity), time

I like all of these converters and will gladly add to them.
Sidebar - The primary issue I have with this approach is the converter requires the user to have knowledge of what type of data their sensor produces, instead of the code knowing the adt7410 sensor only reads the temperature in degrees celsius. This is an idea I'd like to implement in a future version of SensorLab (see: https://github.com/adafruit/Adafruit_SensorLab/blob/master/Adafruit_SensorLab.cpp#L216).

I like the first suggestion by @tannewt above. Fancier things can be done, but I think just a simple collection of converter functions would be the most beginner friendly. The default sensor units are hopefully well understood by the library docs as well as the design docs:
https://circuitpython.readthedocs.io/en/4.x/docs/design_guide.html#sensor-properties-and-units
The library layout could also follow that - module names would match property name. Then inside each would just be a bunch of unitA_to_unitB() functions.
from unit_converter.temperature import celsius_to_fahrenheit
temperature = celsius_to_fahrenheit(sensor.temperature)

Can even have conversion work on tuples:
from unit_converter.acceleration import mps_to_mph
x, y, z = mps_to_mph(sensor.acceleration)

The approach I'm using is not to create an instance of a converter, per say, but to create an instance of a sensor value with multiple inherent unit attributes. The sensor variable could be named workshop_hvac_return for example. Is that abstracting it too much?

@CedarGroveStudios I think that is basically the way Pint works. It wraps values in objects to associate a unit with them. I wouldn't do that in CircuitPython because objects take more memory than plain numbers.
I like @caternuson's suggestion. Have one file/module for every value type so that only those of use can be imported (just like temperature in the example.)

@tannewt @caternuson Ah. Memory economics. I'll take another shot at it with those suggestions. If I need more attributes for a particular project's object, I can use more converters. Cool.

Here's the current schema for temperature based on the comments. I'll expand and test it for Ohm's Law and a couple of time converters tonight. Thanks @tannewt, @caternuson, and @brentru for your ideas and suggestions!
Temperature

Celsius to Fahrenheit Converter

>>> from unit_converter.temperature import celsius_to_fahrenheit
>>> celsius_to_fahrenheit(100)
212.0
>>> celsius_to_fahrenheit(0)
32.0
>>>

Fahrenheit to Celsius Converter

>>> from unit_converter.temperature import fahrenheit_to_celsius
>>> fahrenheit_to_celsius(32)
0.0
>>> fahrenheit_to_celsius(212)
100.0
>>>


generate tezos hashing functions from ligo contract

This currently is duplicated from the contract https://github.com/marigold-dev/sidechain/blob/main/tezos_interop/tezos_interop.re#L392

Related to #6 probably


Is this this B2C?

How is this different from Azure B2C?

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

ID: 06c24fd7-43ce-1445-b734-ffd28410911f
Version Independent ID: b835d64a-a78a-95d9-11a7-8b93a23944c8
Content: Self-service or trial signup in Azure Active Directory
Content Source: articles/active-directory/users-groups-roles/directory-self-service-signup.md
Service: active-directory
GitHub Login: @curtand
Microsoft Alias: curtand

@Kasenga #
Thanks for your feedback! We will investigate and update as appropriate.

I believe you need a B2C tenant to use this. @curtand can you please confirm?

HI, @Kasenga
No, this isn't B2C. It creates B2B guest users in an ordinary Azure AD tenant, not in a B2C tenant. I hope this helps.
@MarileeTurscak-MSFT
#please-close


There was a problem setting environment variables for Safari.

Is it safari-web-extension or safari-extension ?

What did you set OLLAMA_ORIGINS to, and how did you do it?


fix: fix toc overflow not showing

short toc shouldn't be cut off, if the toc is less than the height (50px), we should hide the overflow gradient


Add method to check if authority belong to same cloud as another authority

Adding a method to compare if current authority belongs to same cloud as another authority.
Using getAutorityURL to do the comparison
getAuthorityURL returns a url with mapped preferred_network_host_name as the host part of the url
So for two authorities from same cloud getAuthorityURL should return the same host name
Tests:
Added Unit tests to verify failure and success case for the new method

Had an offline discussion with Adam and Shahzaib related to this change, I will be sending out a new PR for this change.
Closing this one.


core dumped Error with tf.raw_ops.QuantizeAndDequantizeV4

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
v1.12.1-100714-gd8e55c05473 2.15.0-dev20231005
Custom code
Yes
OS platform and distribution
Ubuntu 22.04.3 LTS (x86_64)
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
11.8
GPU model and memory
No response
Current behavior?
Description:
While using the tf.raw_ops.QuantizeAndDequantizeV4 operation, I encountered a core dumped error with specific input parameters.
Standalone code to reproduce the issue
import tensorflow as tf

args = {
    'axis': -1,
    'input': tf.random.uniform(shape=[]),
    'input_max': tf.random.uniform(shape=[1,8,5]),
    'input_min': tf.random.uniform(shape=[0,5]),
    'name': 'not defined',
    'narrow_range': True,
    'num_bits': 2,
    'range_given': True,
    'round_mode': 'HALF_TO_EVEN',
    'signed_input': True
}

res = tf.raw_ops.QuantizeAndDequantizeV4(**args)
print(res)

Relevant log output
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-10-05 23:52:34.898354: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-10-05 23:52:38.109515: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 6826 MB memory:  -> device: 0, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:02:00.0, compute capability: 7.5
2023-10-05 23:52:38.110141: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:1 with 6826 MB memory:  -> device: 1, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:04:00.0, compute capability: 7.5
2023-10-05 23:52:38.110688: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:2 with 6826 MB memory:  -> device: 2, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:83:00.0, compute capability: 7.5
2023-10-05 23:52:38.111251: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1924] Created device /job:localhost/replica:0/task:0/device:GPU:3 with 4528 MB memory:  -> device: 3, name: NVIDIA GeForce RTX 2070, pci bus id: 0000:84:00.0, compute capability: 7.5
2023-10-05 23:52:38.268849: F tensorflow/core/framework/tensor.cc:852] Check failed: 1 == NumElements() (1 vs. 0)Must have a one element tensor
Aborted (core dumped)

@sachinprasadhs,
I was able to reproduce the issue/error on tensorflow v2.13 and tf-nightly. Kindly find the screenshot below for the reference.

@GwiHwan-Go,
I tried to execute the mentioned code on tf-nightly and the code was executed with the error and also observed that the crash did not happen. And the same has been in the respective files. Kindly find the gist for the reference.
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/quantize_and_dequantize_op.cc#L22
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/resource_variable_ops.cc#L1120
// Check data type of update and resource to scatter.
const DataType update_dtype = c->input(2).dtype();
OP_REQUIRES(c, v->tensor()->dtype() == update_dtype,
errors::InvalidArgument(
"DType of scatter resource and updates does not match."));

Thank you!

close the issue as it is not a bug


Please consider disabling fsnotify in certain architectures

Hi,
As noted in bug fsnotify/fsnotify#130, fsnotify fails to work correctly (or at all) in arm64, ppc64 and ppc64el.
This was preventing prometheus to be accepted in Debian testing, so while this is solved upstream, I hacked together a patch to disable fsnotify and rely only on refresh intervals in those architectures. You might want to consider applying something similar, so prom keeps working.

That seems sane :+1:
On Tue, Mar 29, 2016, 3:14 AM Martín Ferrari<EMAIL_ADDRESS>wrote:

Hi,
As noted in bug fsnotify/fsnotify#130
https://github.com/fsnotify/fsnotify/issues/130, fsnotify fails to work
correctly (or at all) in arm64, ppc64 and ppc64el.
This was preventing prometheus to be accepted in Debian testing, so while
this is solved upstream, I hacked together a patch to disable fsnotify
and rely only on refresh intervals in those architectures. You might want
to consider applying something similar, so prom keeps working.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/prometheus/prometheus/issues/1507

As a data point, the new Debian release with this patch applies compiles and passes tests in all arches: https://buildd.debian.org/status/package.php?p=prometheus

Do you want to send on a PR with that patch?

Sure, will do.
I see the fsnotify people are moving to fix this issue, but it might take a while, as it might involve getting fixes into golang itself.

Done.


crash on macmini m1(apple silicon)

MacOS 11.2.1
Vulkan SDK 1.2.162
Vulkan-Samples cloned and built just now
On Apple M1 platform, many samples will crash while launch.
./build/app/bin/arm64/vulkan_samples wait_idle

crash log:

[info] Logger initialized
[info] Window created
[info] Initializing Vulkan sample
[info] VK_KHR_get_physical_device_properties2 is available, enabling it
[info] Enabled Validation Layers:
[info] Found GPU: Apple M1
[info] Selected GPU: Apple M1
[info] Dedicated Allocation enabled
[info] Device supports the following requested extensions:
[info]   	VK_KHR_get_memory_requirements2
[info]   	VK_KHR_dedicated_allocation
[info]   	VK_KHR_swapchain
[info] Surface supports the following surface formats:
[info]   	VK_FORMAT_B8G8R8A8_UNORM, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_B8G8R8A8_SRGB, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_R16G16B16A16_SFLOAT, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2R10G10B10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info] Surface supports the following present modes:
[info]   	VK_PRESENT_MODE_FIFO_KHR
[info]   	VK_PRESENT_MODE_IMMEDIATE_KHR
[warning] (Swapchain) Image extent (0, 0) not supported. Selecting (1280, 720).
[info] (Swapchain) Surface format selected: VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info] (Swapchain) Image usage flags: VK_IMAGE_USAGE_TRANSFER_SRC_BIT VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT
[info] Surface supports the following surface formats:
[info]   	VK_FORMAT_B8G8R8A8_UNORM, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_B8G8R8A8_SRGB, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_R16G16B16A16_SFLOAT, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2R10G10B10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info] Surface supports the following present modes:
[info]   	VK_PRESENT_MODE_FIFO_KHR
[info]   	VK_PRESENT_MODE_IMMEDIATE_KHR
[warning] (Swapchain) Image extent (0, 0) not supported. Selecting (1280, 720).
[info] (Swapchain) Surface format selected: VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info] (Swapchain) Image usage flags: VK_IMAGE_USAGE_TRANSFER_SRC_BIT VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT
[info] (Swapchain) Present mode selected: VK_PRESENT_MODE_FIFO_KHR
[info] (Swapchain) Surface format selected: VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
2021-03-06 09:49:17.746 vulkan_samples[7958:83278] *** Terminating app due to uncaught exception 'CAMetalLayerInvalid', reason: 'invalid pixel format 0'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018283e320 __exceptionPreprocess + 240
	1   libobjc.A.dylib                     0x000000018256cc04 objc_exception_throw + 60
	2   CoreFoundation                      0x000000018283e16c +[NSException exceptionWithName:reason:userInfo:] + 0
	3   QuartzCore                          0x0000000188a506d8 -[CAMetalLayer setPixelFormat:] + 276
	4   libMoltenVK.dylib                   0x0000000109fb357c _ZN12MVKSwapchain16initCAMetalLayerEPK24VkSwapchainCreateInfoKHRj + 160
	5   libMoltenVK.dylib                   0x0000000109fb344c _ZN12MVKSwapchainC2EP9MVKDevicePK24VkSwapchainCreateInfoKHR + 236
	6   libMoltenVK.dylib                   0x0000000109f7fce8 _ZN9MVKDevice15createSwapchainEPK24VkSwapchainCreateInfoKHRPK21VkAllocationCallbacks + 268
	7   libMoltenVK.dylib                   0x0000000109f3b014 vkCreateSwapchainKHR + 80
	8   libvulkan.1.2.162.dylib             0x0000000109ebeef4 terminator_CreateSwapchainKHR + 204
	9   vulkan_samples                      0x0000000100f91570 _ZN3vkb9Swapchain6createEv + 508
	10  vulkan_samples                      0x0000000100fa4e18 _ZN3vkb13RenderContext7prepareEmNSt3__18functionIFNS1_10unique_ptrINS_12RenderTargetENS1_14default_deleteIS4_EEEEONS_4core5ImageEEEE + 104
	11  vulkan_samples                      0x0000000100f4e958 _ZN3vkb12VulkanSample22prepare_render_contextEv + 136
	12  vulkan_samples                      0x0000000100f4e6ac _ZN3vkb12VulkanSample7prepareERNS_8PlatformE + 896
	13  vulkan_samples                      0x000000010105d80c _ZN8WaitIdle7prepareERN3vkb8PlatformE + 44
	14  vulkan_samples                      0x0000000100ed1b34 _ZN3vkb13VulkanSamples18prepare_active_appENSt3__18functionIFNS1_10unique_ptrINS_11ApplicationENS1_14default_deleteIS4_EEEEvEEERKNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbb + 464
	15  vulkan_samples                      0x0000000100ed0e2c _ZN3vkb13VulkanSamples7prepareERNS_8PlatformE + 3324
	16  vulkan_samples                      0x0000000100eaf60c main + 148
	17  libdyld.dylib                       0x00000001826e1f34 start + 4
)
libc++abi.dylib: terminating with uncaught exception of type NSException
zsh: abort      ./build/app/bin/arm64/vulkan_samples wait_idle

I found that some samples will automatically destroy swapchain in the startup phase and then recreate it. These examples will not cause fatal errors on windows and MacOS (Intel platform), but on Apple M1 platform, it will cause crash(ERROR_DEVICE_LOST).
Can anybody help me to check why swapchain is destroyed automatically?
Such as wait_idle:
./build/app/bin/arm64/vulkan_samples wait_idle
[info] Logger initialized
[info] Window created
[info] Initializing Vulkan sample
[info] VK_KHR_get_physical_device_properties2 is available, enabling it
[info] Enabled Validation Layers:
[info] Found GPU: Apple M1
[warning] Couldn't find a discrete physical device, picking default GPU
[info] Selected GPU: Apple M1
[info] Dedicated Allocation enabled
[info] Device supports the following requested extensions:
[info]   	VK_KHR_get_memory_requirements2
[info]   	VK_KHR_dedicated_allocation
[info]   	VK_KHR_swapchain
[info] Swapchain::Swapchain()
[info] Surface supports the following surface formats:
[info]   	VK_FORMAT_B8G8R8A8_UNORM, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_B8G8R8A8_SRGB, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_R16G16B16A16_SFLOAT, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2R10G10B10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info] Surface supports the following present modes:
[info]   	VK_PRESENT_MODE_FIFO_KHR
[info]   	VK_PRESENT_MODE_IMMEDIATE_KHR
[warning] (Swapchain) Image extent (0, 0) not supported. Selecting (1280, 720).
[warning] (Swapchain) Surface format (VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR) not supported. Selecting (VK_FORMAT_B8G8R8A8_SRGB, VK_COLORSPACE_SRGB_NONLINEAR_KHR).
[info] (Swapchain) Image usage flags: VK_IMAGE_USAGE_TRANSFER_SRC_BIT VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT
**[info] Swapchain::~Swapchain()
[info] Swapchain::Swapchain()**
[info] Surface supports the following surface formats:
[info]   	VK_FORMAT_B8G8R8A8_UNORM, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_B8G8R8A8_SRGB, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_R16G16B16A16_SFLOAT, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2R10G10B10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info] Surface supports the following present modes:
[info]   	VK_PRESENT_MODE_FIFO_KHR
[info]   	VK_PRESENT_MODE_IMMEDIATE_KHR
[warning] (Swapchain) Image extent (0, 0) not supported. Selecting (1280, 720).
[warning] (Swapchain) Surface format (VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR) not supported.
HWCPipe [INFO] : No counters available for this platform.
[info] FPS: 0.5
[mvk-error] VK_ERROR_DEVICE_LOST: Command buffer 0x11a934380 "" execution failed (code 3): Caused GPU Address Fault Error (IOAF code 11)
[error] [framework/rendering/render_frame.cpp:67] Detected Vulkan error: ERROR_DEVICE_LOST
zsh: abort      ./build/app/bin/arm64/vulkan_samples wait_idle

On Macbook Pro(Intel platform), the swapchain is destructed and recreated too, but it will not cause crash.
./build/app/bin/x86_64/vulkan_samples wait_idle
[info] Logger initialized
[info] Window created
[info] Initializing Vulkan sample
[info] VK_KHR_get_physical_device_properties2 is available, enabling it
[info] Enabled Validation Layers:
[info] Found GPU: AMD Radeon R9 M370X
[info] Found GPU: Intel Iris Pro Graphics
[info] Selected GPU: AMD Radeon R9 M370X
[info] Dedicated Allocation enabled
[info] Device supports the following requested extensions:
[info]   	VK_KHR_get_memory_requirements2
[info]   	VK_KHR_dedicated_allocation
[info]   	VK_KHR_swapchain
[info] Swapchain::Swapchain()
[info] Surface supports the following surface formats:
[info]   	VK_FORMAT_B8G8R8A8_UNORM, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_B8G8R8A8_SRGB, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_R16G16B16A16_SFLOAT, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2R10G10B10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info] Surface supports the following present modes:
[info]   	VK_PRESENT_MODE_FIFO_KHR
[info]   	VK_PRESENT_MODE_IMMEDIATE_KHR
[warning] (Swapchain) Image extent (0, 0) not supported. Selecting (2560, 1440).
[warning] (Swapchain) Surface format (VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR) not supported. Selecting (VK_FORMAT_B8G8R8A8_SRGB, VK_COLORSPACE_SRGB_NONLINEAR_KHR).
[info] (Swapchain) Image usage flags: VK_IMAGE_USAGE_TRANSFER_SRC_BIT VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT
[info] Swapchain::~Swapchain()
[info] Swapchain::Swapchain()
[info] Surface supports the following surface formats:
[info]   	VK_FORMAT_B8G8R8A8_UNORM, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_B8G8R8A8_SRGB, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_R16G16B16A16_SFLOAT, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info]   	VK_FORMAT_A2R10G10B10_UNORM_PACK32, VK_COLORSPACE_SRGB_NONLINEAR_KHR
[info] Surface supports the following present modes:
[info]   	VK_PRESENT_MODE_FIFO_KHR
[info]   	VK_PRESENT_MODE_IMMEDIATE_KHR
[warning] (Swapchain) Image extent (0, 0) not supported. Selecting (2560, 1440).
[warning] (Swapchain) Surface format (VK_FORMAT_UNDEFINED, VK_COLORSPACE_SRGB_NONLINEAR_KHR) not supported.
HWCPipe [INFO] : No counters available for this platform.
[info] FPS: 0.1
[info] FPS: 57.3
[info] FPS: 69.0
[info] FPS: 70.9
[info] FPS: 77.9
[info] FPS: 75.8
[info] FPS: 70.0
[info] FPS: 70.3
[info] FPS: 71.5
[info] FPS: 70.3
[info] FPS: 62.3
[info] FPS: 59.7
[info] FPS: 58.2
[info] FPS: 60.0
[info] FPS: 60.1
[info] FPS: 60.1
[info] FPS: 60.6
[info] FPS: 64.1
[info] FPS: 69.4
[info] FPS: 69.4
[info] FPS: 68.7
[info] Closing App (Runtime: 22.1)
[info] Swapchain::~Swapchain()
[info] Total device memory leaked: 0 bytes.

This appears to be a bug in how MoltenVK handles vkGetPhysicalDeviceSurfaceFormatsKHR() formats Apple Silicon.
MoltenVK issue: KhronosGroup/MoltenVK#1299

The MoltenVK repo now includes fixes to the original issue, and wait_idle runs successfully on M1 now.


HDDS-11004. Keep logs only for failed iterations in flaky-test-check

What changes were proposed in this pull request?
Keep logs only for failed iterations in flaky-test-check.
https://issues.apache.org/jira/browse/HDDS-11004
How was this patch tested?
https://github.com/adoroszlai/ozone/actions/runs/9478551418
$ unzip -t result-243-9478551418-split-2.zip
Archive:  result-243-9478551418-split-2.zip
    testing: iteration1/failures      OK
    testing: iteration1/hadoop-ozone/integration-test/TEST-org.apache.hadoop.ozone.om.TestOzoneManagerPrepare.xml   OK
    testing: iteration1/hadoop-ozone/integration-test/org.apache.hadoop.ozone.om.TestOzoneManagerPrepare-output.txt   OK
    testing: iteration1/hadoop-ozone/integration-test/org.apache.hadoop.ozone.om.TestOzoneManagerPrepare.txt   OK
    testing: iteration1/output.log    OK
    testing: iteration1/summary.md    OK
    testing: iteration1/summary.txt   OK
    testing: summary.txt              OK
No errors detected in compressed data of result-243-9478551418-split-2.zip.

$ unzip -t result-243-9478551418-split-3.zip
Archive:  result-243-9478551418-split-3.zip
    testing: iteration9/failures      OK
    testing: iteration9/hadoop-ozone/integration-test/TEST-org.apache.hadoop.ozone.om.TestOzoneManagerPrepare.xml   OK
    testing: iteration9/hadoop-ozone/integration-test/org.apache.hadoop.ozone.om.TestOzoneManagerPrepare-output.txt   OK
    testing: iteration9/hadoop-ozone/integration-test/org.apache.hadoop.ozone.om.TestOzoneManagerPrepare.txt   OK
    testing: iteration9/output.log    OK
    testing: iteration9/summary.md    OK
    testing: iteration9/summary.txt   OK
    testing: summary.txt              OK
No errors detected in compressed data of result-243-9478551418-split-3.zip.

Regular CI:
https://github.com/adoroszlai/ozone/actions/runs/9478529324

Validated:
run without failures:
https://github.com/adoroszlai/ozone/actions/runs/9480743783
run with failures:
https://github.com/adoroszlai/ozone/actions/runs/9480730726

Thanks @szetszwo for the review.


Add wasm to redirect regex getlift/lift#331

https://github.com/getlift/lift/issues/331
Currently wasm files are not loaded properly as the CloudFront function redirects them to .html. Adding wasm to redirect regex fixes this and wasm files are loaded properly.

Hi @AtteR, tests are failing, I think you will need to update them as well?

Hi @mnapoli ah, yes, should be fixed now :)

Thank you!


Misplaced "Gravatar email" field in settings page

The "Gravatar email" field in the user setting page is part of the user profile form, but there is a separate form for the avatar settings (submitted by "Update Avatar Settings").
I  think it would make sense for "Gravatar email" to be part of "Avatar Settings" instead of the profile.
In particular, it should be made part of a "Gravatar" setting which should be mutually exclusive with "Custom Avatar" choice.
This would open up the doors to more avatar plugins (like libre-avatar).
See also #3105

This would be fixed by #3115, which redesigns the forms.

This was fixed by merging the federated avatar support pr


Use apt-mk repo for bootstrap

not tested

You should use this instead:
https://launchpad.net/~salt-formulas/+archive/ubuntu/ppa


Buildings don't change appearance when they have address attributes

Description
In the non-beta version, after I add an address to a building it gets a little building icon on it.  That lets me know that I've updated the address for that building.
This is very crucial after you've uploaded your updates.  After you upload updates, all off the address features that you've used end up coming back.  Then I don't know anymore whether the building has and address or not.
Version
2.0.0 beta
What browser are you seeing the problem on? What version are you running?
chrome
The OS you're using
windows 10
Steps to reproduce
Add address features when looking at a neighborhood full of buildings.  Add an address feature for a building.  Then upload the update.  You'll see the address feature pop back and you cannot tell where you had worked.
The browser URL at the time you encountered the bug
https://mapwith.ai/rapid-v2-beta#background=Maxar-Premium&datasets=fbRoads,msBuildings,e75b56f13b404d7d8b47ef8be1c619ec&id=w1120456307&map=19.80/33.33708/-111.43465
The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)
No response

In the non-beta version, after I add an address to a building it gets a little building icon on it. That lets me know that I've updated the address for that building.

Thanks for reporting - I didn't realize that the icon was showing for tagged buildings and missing for plain buildings.  I kind of thought that showing the icon was a bug, and didn't realize anyone was using it as signal that the building might have an address.
Maybe instead of adding the icon back, we could find a better way to show the building's address housenumber at high zooms?
There is some previous discussion on this iD issue about showing more icons/colors for buildings - I'd still prefer to keep the interface clean and simple if we can.

It wasn't very messy with that building icon showing the way it did before.  I was real handy for me to come back to a neighborhood and see where I left off without having to select the building and see whether it had an address attribute.   Around zoom level 19 and above would be useable.
Maybe display the house number at zoom level 19 and above if you want to do something different than an icon.

BTW, from my perspective I'd say this is a "must have".  Without a way to quickly identify which buildings have addresses already, it would just be too many clicks and checks to make sure I don't mess things up or forget something.


Change synchronized on FileSystemContext to avoid deadlock

What changes are proposed in this pull request?
Please outline the changes and how this PR fixes the issue.
Why are the changes needed?
Please clarify why the changes are needed. For instance,

If you propose a new API, clarify the use case for a new API.
If you fix a bug, describe the bug.

Does this PR introduce any user facing changes?
Please list the user-facing changes introduced by your change, including

change in user-facing APIs
addition or removal of property keys
webui

pr-link: Alluxio/alluxio#16219
change-id: cid-f6e6af4556026e122b2e672fad6ab87a0a9f507e
What changes are proposed in this pull request?
Please outline the changes and how this PR fixes the issue.
Why are the changes needed?
Please clarify why the changes are needed. For instance,

If you propose a new API, clarify the use case for a new API.
If you fix a bug, describe the bug.

Does this PR introduce any user facing changes?
Please list the user-facing changes introduced by your change, including

change in user-facing APIs
addition or removal of property keys
webui

alluxio-bot, force-merge this please

alluxio-bot, force-merge this please


minor update

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[ ] Searched the bugtracker for similar pull requests
[ ] Read adding new extractor tutorial
[ ] Read youtube-dl coding conventions and adjusted the code to meet them
[ ] Covered the code with tests (note that PRs without tests will be REJECTED)
[ ] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[ ] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Explanation of your pull request in arbitrary form goes here. Please make sure the description explains the purpose and effect of your pull request and is worded well enough to be understood. Provide as much context and examples as possible.

No, could be BSD, or other Unix-like OS that supports Python. Also, you didn't complete the template (why do you think it's there?).


Extension Permissions

Hi Micosoft,
There is no mention on this page about having the necessary permissions to perform the actions described within.
As an AL Beginner, it took me three days to discover and acquire the necessary permissions to publish an extension. Some guidance around this, perhaps mentioning the minimum permission set requirements, in order to succeed would be a massive help.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: e08e71d8-8646-47c4-31d4-b3227fa4d958
Version Independent ID: 12dcd23f-6600-b90a-7724-5d5cf3f4a5c3
Content: Get started with AL - Business Central
Content Source: dev-itpro/developer/devenv-get-started.md
Service: dynamics-365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Ok, will do, thank you.

Closing


Physics: Return deltas

Could we return the rate of change of various properties, particularly velocity and position?

This would be nice to do, but is a little fiddly.
Couple of options:

Colliders store their deltas, bit odd perhaps.
The world has a separate update method that providers a wrapper with additional metadata per object, like deltas and maybe what it collided with.

The work around is to findByTag before the updating, and calculate the delta as needed.


Bug with babelify (or the user)

Hi,
I want to compile the following two files:
A.js
import * as B from './b';

B.js
console.log('Hello');

I used the following command:
bankai a.js -j [ -t babelify ] -H

I get the following error:
events.js:160
      throw er; // Unhandled 'error' event
      ^

SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' (1:0) while parsing file: /Users/pole/Sites/pacman-mcts/a.js
    at Parser.pp$4.raise (/Users/pole/Sites/pacman-mcts/node_modules/yo-yoify/node_modules/acorn/dist/acorn.js:2549:13)
    at Parser.pp$1.parseStatement (/Users/pole/Sites/pacman-mcts/node_modules/yo-yoify/node_modules/acorn/dist/acorn.js:775:14)
    at Parser.pp$1.parseTopLevel (/Users/pole/Sites/pacman-mcts/node_modules/yo-yoify/node_modules/acorn/dist/acorn.js:684:23)
    at Parser.parse (/Users/pole/Sites/pacman-mcts/node_modules/yo-yoify/node_modules/acorn/dist/acorn.js:541:15)
    at parse (/Users/pole/Sites/pacman-mcts/node_modules/yo-yoify/node_modules/acorn/dist/acorn.js:3549:37)
    at module.exports (/Users/pole/Sites/pacman-mcts/node_modules/yo-yoify/node_modules/falafel/index.js:22:15)
    at DestroyableTransform.end [as _flush] (/Users/pole/Sites/pacman-mcts/node_modules/yo-yoify/index.js:56:13)
    at DestroyableTransform.<anonymous> (/Users/pole/Sites/pacman-mcts/node_modules/readable-stream/lib/_stream_transform.js:115:49)
    at DestroyableTransform.g (events.js:291:16)
    at emitNone (events.js:86:13)
error Command failed with exit code 1.

I had a feeling that error may be related to how the transforms are ingested. So I hacked the code and added the following line: b.transform('babelify') here: https://github.com/yoshuawuyts/bankai/blob/5c3502f7c6955f23b3d78a7f1ae383a81da299ef/index.js#L88 and it worked.
From what I can tell, the babelify transform is not picked up OR the order is incorrect.
Is this a bug or am I missing something?
Notes:
$(yarn bin)/bankai -v
8.1.1

node -v
v6.9.4

$(yarn bin)/browserify --version
14.3.0

@danielepolencic - someone pointed out to me recently on #choo that I needed to use --transform instead of -t when configuring browserify via bankai on the command line.
Does this help at all?

Lmao, we should totally fix that btw
On Sun, Jul 2, 2017, 13:00 LOUIS<EMAIL_ADDRESS>wrote:

@danielepolencic https://github.com/danielepolencic - someone pointed
out to me recently on #choo that I needed to use --transform instead of -t
when configuring browserify via bankai on the command line.
Does this help at all?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/yoshuawuyts/bankai/issues/208#issuecomment-312484736,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACWleiWklBmVNDwqwAl4Rs_sb2gmy5f9ks5sJ3hggaJpZM4OLHKJ
.

Duplicate of #115


bootstrap-treeview is not compatible with JQuery UI draggable feature

As pointed out in this StackOverflow thread, the current functionality of bootstrap-treeview is not compatible with JQuery UI draggable plugin. The tree is rendered from scratch each time a node is expanded, collapsed, selected, etc. what removes the classes added by JQuery UI draggable function.

A JSFiddle reproducing the problem can be found here. Dragging tree items is not possible after expanding any node.


Android 14: No Method getInternalDisplayToken

Android 14 android.view.SurfaceControl no method  getInternalDisplayToken .
https://github.com/Genymobile/scrcpy/blob/1ee46970e373ea3c34c3d9b632fef34982d7a52b/server/src/main/java/com/genymobile/scrcpy/wrappers/SurfaceControl.java#L96

AOSP android.view.SurfaceControl
https://cs.android.com/android/platform/superproject/+/android-14.0.0_r2:frameworks/base/core/java/android/view/SurfaceControl.java

Maybe
import com.android.server.display.DisplayControl

DisplayControl.getPhysicalDisplayToken(physicalDisplayId)

See https://github.com/Genymobile/scrcpy/issues/3784#issuecomment-1748362800 and following comments.

Don't close the issue yet .
The problem real exist.

Don't close the issue yet .
The problem real exist.

Sure, but there are already many issues about that in Android 14, I keep only one open.

@rom1v Yes, please have one post about Android 14 as it has plenty of issues, and also please put the link/s to the issue tracker, so that users here would consider to start them.

It remains 3 scrcpy features broken in Android 14:

turn screen off is tracked by #3927
crop and lock video orientation are tracked by #4011


implement concurrent connection limit

code is currently in there as a stub. should give the user a way to specify how many concurrent connections they want

fixed by #36


adding instructions for HDI

Current coverage is 80.50% (diff: 100%)

Merging #580 into master will increase coverage by 0.08%

@@             master       #580   diff @@
==========================================
  Files            80         80
  Lines          7997       7997
  Methods        1332       1332
  Messages          0          0
  Branches        987        987
==========================================
+ Hits           6431       6438     +7
+ Misses         1200       1193     -7
  Partials        366        366

Powered by Codecov. Last update edd7b7f...c25b93d


feat (); alpaca-finance-lending-fantom; added configuration & deployment

[x] This PR adds configuration & deployment for alpaca-finance-lending-fantom, as requested in #1625

Updated 2023/02/02

[x] There was a bug in setting interest rates for market and snapshots. The abnormal rates @ishraq8 found are the first rates in the market and never get updated. The bug affects both bsc and fantom subgraph. This should be reflected when the subgraph sync
[x] The PR also fixes the handleAddDebt and handleRemoveDebt, which uses the incorrect Work event. This fix requires calculating debtVal from event.params.debtShare of the Addebt and RemoveDebt event.

bsc

test deployment: https://thegraph.com/hosted-service/subgraph/tnkrxyz/alpaca-finance-lending-bsc
data validation: https://subgraphs.messari.io/subgraph?endpoint=https://api.thegraph.com/subgraphs/name/tnkrxyz/alpaca-finance-lending-bsc&tab=protocol

fantom

test deployment: https://thegraph.com/hosted-service/subgraph/tnkrxyz/alpaca-finance-lending-fantom
data validation: https://subgraphs.messari.io/subgraph?endpoint=https://api.thegraph.com/subgraphs/name/tnkrxyz/alpaca-finance-lending-fantom&tab=protocol

@tnkrxyz This is well done. 1 comment and 1 issue
Comment: The TVL is different from DefiLama and front end of alpaca, but if you calculate the deposits to value, the subgraph is actually accurate. Good work
Issue: The interest rates seem to be very high in the 4 pools could you double check. attached are images of the front end and ALPACA as an example.

For BSC the apr is a bit off but not as much as fantom

@tnkrxyz might be the issue with the rate snapshots pointing to the current rate object we have seen in the past

@tnkrxyz might be the issue with the rate snapshots pointing to the current rate object we have seen in the past

I certainly need to fix the interest rate snapshots, but it probably it is not the cause of super high interest rate on fantom.

@ishraq8 , the rates should be fixed in the latest deployment: https://thegraph.com/hosted-service/subgraph/tnkrxyz/alpaca-finance-lending-fantom . Please take a look! The bug affects bsc rates, but it will take some time to sync.

Issues  resolved @tnkrxyz you can merge.

merged. thank you both!

@tnkrxyz @ishraq8 the borrow balance is 23mm while the deposit balance is 6mm. Doesn't seem to be an issue on BSC, do you want to take a further look at this?

@tnkrxyz @ishraq8 the borrow balance is 23mm while the deposit balance is 6mm. Doesn't seem to be an issue on BSC, do you want to take a further look at this?

Looking into it rn.


Some code relies on a ticket representing a single person

Some of the code is treating a Ticket as a representation of a single person at an event. Other code is treating a Ticket as representing an order of potentially multiple people at an event.
This needs to be separated into two separate things. For the time being people should be limited to a single ticket per account so the first assumption holds.

As a temporary measure I've limited it to one ticket per account

Tickets now represent a single person, a "TicketOrder" represents a group of tickets purchased together.
Now code can distinguish between these two concepts.


Some subviews started to miss.

First of all, great work guys, new release finally fixed constrains warnings in console. But, this update broke counter label (you can simply look this in example). And another issue i just found with views which i tried to put over the AnimatedTextInput view (actually in AnimatedTextInput view stack via IB with auto layout usage), they are missed and i can't find them :). Just try it.

Hi guys I personally like that control but in old version showCharacterCounterLabel works fine now counter label goes at top left corner auto layout disturbs for multiline please fix that .

As well as adding disclosure view, view goes to wrong place or maybe i do something wrong, please check for this to.

Hello @morfey911 & @hananahmad
I will take a look today. Thank you for reporting the issue

Any feedback on this issue? Experiencing the same bug as well...

Hello everyone.
Sorry about this issue. I have it now fixed, will submit a PR + new version asap.

https://github.com/jobandtalent/AnimatedTextInput/pull/53

New release 0.5.1 fixing it will come in a few minutes


[1.10.x] Field default value as a proposed value on first edition when creating.

@sebastienros
Following our discussion just started on the text field, and need little confirmations before continuing.

So, as a proposed value, editor only and on creating, and without tokens.
So, no proposed value when editing an existing content item, even if the field has been added to the content type after the creation of this content item.

So, now all fields need to check if the content item is being created. I've seen this in some places:
if(!part.HasDraft() && !part.HasPublished())

But, regarding on these extensions, i think i can resume this with this new content extension:
    public static bool IsNew(this IContent content) {
        return content.ContentItem.VersionRecord == null;
    }

Let me know if it's ok and if the extension name is ok.
Note: because of this, for the future cloning feature, we will need to also check for all the fields (not only the boolean field) if the content item is being cloning.
Best.

Text and input fields done, todo: others + squash.

As a reminder you don't need to squash anymore, Github does it for us now.

Revert usage of lazy fields as you asked me.
Text and input fields already done.
Boolean and link fields done.
Todo: Date and enum fields

Enumeration done. Todo: Date field and resolve conflicts.

@sebastienros
Resolving conflicts, here i reverted d441d83 because setting.TextPlaceHolder is defined nowhere.
Todo: Numeric (i forgot this one) and date field.

Great, thanks, but it's late now ;)

@sebastienros
Just finished the last date time field but, before committing, i want to review it a little.
Need to leave but this PR will be ready this night.
Best.

@sebastienros
Now ready but indeed need to be checked because there have been so many changes around the default value behavior ... So, i tested again all the fields (maybe not all possible scenarios), and i ran again each individual field spec.
Best.

Warning: If someone want to check this PR, because it is based on a quite recent 1.10.x, currently there is an unrelated issue with the publish / save double clicking prevention. As soon as this is resolved, i'll rebase this PR. But you can revert the related change yourself for your tests: in TheAdmin/Scripts/admin.js around line 84, you can remove the related script.
Best.


Web profile update issue

It appears to me that if you sign into the Web tutorial then leave the page open (referring g to via a mobile that is) and go do something else for a short time, then return to the tutorial, it I dicates that your are still logged in, however your developer profile won't update unless you log out then log back in. Can be frustrating if you do x amount of pathways then realise none of them have been recorded. You then have to log out , log in, then go through each pathway and click done.
Happens on all tutorials not just this one

This has happened with me as well

@LazzaAU
@AndrewRowley
Thank you for reporting, we forwarded this issue to the concerned team.


feat: add Gotls master secrets module.

capture skb events from eBPF TC.

This is a major update that supports capturing TLS encryption for programs compiled in Go language. Especially for cloud-native architecture software developed based on the Golang language, such as Docker and K8s. If HTTPS communication is enabled, eCapture can be used for online network packet capture debugging without restarting the process or changing certificates.
@vincentmli Can you help me test it?
Use command
./ecapture gotls -e=/path/elf_filepath_compiled_by_go -w a.pcapng -i eth0


chore: release 2.2.1

:robot: I have created a release *beep* *boop*
2.2.1 (2019-06-26)
Bug Fixes

docs: link to reference docs section on googleapis.dev (#266) (f992de6)

This PR was generated with Release Please.

Release is at https://github.com/googleapis/nodejs-video-intelligence/releases/tag/v2.2.1

The release build has started, the log can be viewed here. :sunflower:

:egg: You hatched a release! The release build finished successfully! :purple_heart:


remove world/group writable perms

- What I did
Fixed files from being written with group and world writable permissions.
Signed-off-by: Eric Peterson<EMAIL_ADDRESS>

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "patch-2" git@github.com:epeterso/docker.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

ping @crosbymichael @mlaventure

LGTM

LGTM


docs: make Lua debian package version consistent

Make the Lua debian package version in CONTRIBUTING.md and
docs/INSTALL_LINUX.md the same for consistency.

awesome! thanks! :dancers:

Beautiful! Always exciting to get a first patch into a cool project.
Thanks @Etiene . Is there any low hanging fruit I could tackle?
Like #91 was


Raspberry Pi Pico + pico-debug: Failed to get information for AP ApAddress  { dp: Multidrop(11002927), ap: 0 }

Describe the bug
I'm using probe-run to debug a rust binary for the Raspberry Pi Pico/RP2040. I'm using pico-debug as a probe.
To Reproduce

Install pico-debug by flashing the provided pico-debug-gimmecache.uf2 to a Raspberry Pi Pico.
$ probe-run --chip RP2040 target/thumbv6m-none-eabi/debug/microgroove --verbose --speed 1000

Expected behavior
probe-run communicates with the pico-debug probe successfully.
Desktop (please complete the following information):

macOS Monterey

Additional context
Output from the probe-run command:
$ probe-run --chip RP2040 target/thumbv6m-none-eabi/debug/microgroove --verbose --speed 1000
(HOST) DEBUG vector table: VectorTable { initial_stack_pointer: 2003fbb8, hard_fault: 10001f53 }
└─ probe_run::elf @ /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/probe-run-0.3.5/src/elf.rs:31
(HOST) DEBUG RAM region: 0x20000000-0x2003FFFF
└─ probe_run::target_info @ /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/probe-run-0.3.5/src/target_info.rs:115
(HOST) DEBUG section `.data` is in RAM at 0x2003FBB8..=0x2003FBEF
└─ probe_run::target_info @ /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/probe-run-0.3.5/src/target_info.rs:153
(HOST) DEBUG section `.bss` is in RAM at 0x2003FBF0..=0x2003FBFB
└─ probe_run::target_info @ /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/probe-run-0.3.5/src/target_info.rs:153
(HOST) DEBUG section `.uninit` is in RAM at 0x2003FBFC..=0x2003FFFB
└─ probe_run::target_info @ /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/probe-run-0.3.5/src/target_info.rs:153
(HOST) DEBUG valid SP range: 0x20000000..=0x2003FBB4
└─ probe_run::target_info @ /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/probe-run-0.3.5/src/target_info.rs:167
(HOST) DEBUG found 1 probes
└─ probe_run::probe @ /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/probe-run-0.3.5/src/probe.rs:25
(HOST) DEBUG opened probe
└─ probe_run::probe @ /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/probe-run-0.3.5/src/probe.rs:33
Error: Failed to get information for AP ApAddress { dp: Multidrop(11002927), ap: 0 }

Other additional context
I'm a rust and embedded n00b. Any help to figure this out would be very much appreciated!

BTW, I'm aware that other probe options exist, e.g. DapperMime, but I wanted to flag that pico-debug might not be supported by probe-rs correctly right now. pico-debug has the nice property that it is a virtual probe, running on the 2nd core of a RP2040. For apps only using a single core it does not require additional hardware.

This issue should be fixed on probe-rs master. probe-run does not use master afaik. You could try with probe-rs-cli form master :)

Thanks for the speedy reply! Great to know this is fixed. I'm actually trying to use cargo-embed. I pulled the latest version and tried to build it with the master version of probe-rs, but got a stack of errors. I think I'll wait until the next releases of probe-rs and cargo-embed are cut. Thanks again for your help, and for an amazing project!

You can use --locked to make cargo-embed build :)

OK, thanks! I'm afraid I'm not sure how to do that. I tried updating Cargo.toml to point only to git for probe-rs and running cargo update. I tried doing cargo build --locked. Both gave the following error output:
warning: skipping duplicate package `binary_project` found at `/Users/ben/.cargo/git/checkouts/probe-rs-92d520f86d5696fc/7fb6255/probe-rs-cli-util/tests/data/binary_project`
warning: skipping duplicate package `library_project` found at `/Users/ben/.cargo/git/checkouts/probe-rs-92d520f86d5696fc/7fb6255/probe-rs-cli-util/tests/data/library_with_example_project`
    Updating crates.io index
  Downloaded iana-time-zone v0.1.45
  Downloaded utf8-width v0.1.5
  Downloaded serde_yaml v0.9.11
  Downloaded bitvec v1.0.0
  Downloaded paste v1.0.7
  Downloaded semver v1.0.10
  Downloaded parking_lot v0.12.0
  Downloaded yansi v0.5.0
  Downloaded regex-syntax v0.6.26
  Downloaded unicode-linebreak v0.1.2
  Downloaded unicode-segmentation v1.9.0
  Downloaded libc v0.2.126
  Downloaded unsafe-libyaml v0.2.2
  Downloaded uncased v0.9.6
  Downloaded clap_derive v3.1.2
  Downloaded clap v3.1.3
  Downloaded camino v1.0.7
  Downloaded byte-unit v4.0.13
  Downloaded hidapi v1.3.3
  Downloaded rusb v0.9.0
  Downloaded console v0.15.0
  Downloaded lock_api v0.4.6
  Downloaded io-lifetimes v0.7.2
  Downloaded pkg-config v0.3.24
  Downloaded signal-hook v0.3.13
  Downloaded mio v0.8.0
  Downloaded parking_lot_core v0.9.1
  Downloaded once_cell v1.13.0
  Downloaded regex v1.5.6
  Downloaded syn v1.0.92
  Downloaded time v0.3.11
  Downloaded libusb1-sys v0.6.0
  Downloaded rustix v0.35.7
  Downloaded jep106 v0.2.6
  Downloaded gimli v0.26.1
  Downloaded gdbstub v0.6.2
  Downloaded 36 crates (4.4 MB) in 1.60s
   Compiling proc-macro2 v1.0.36
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.92
   Compiling libc v0.2.126
   Compiling memchr v2.4.1
   Compiling pkg-config v0.3.24
   Compiling itoa v1.0.1
   Compiling ryu v1.0.9
   Compiling regex-syntax v0.6.26
   Compiling hashbrown v0.12.3
   Compiling unsafe-libyaml v0.2.2
   Compiling rusb v0.9.0
   Compiling once_cell v1.13.0
   Compiling unicode-width v0.1.9
   Compiling parking_lot_core v0.9.1
   Compiling io-lifetimes v0.7.2
   Compiling signal-hook v0.3.13
   Compiling rustix v0.35.7
   Compiling yansi v0.5.0
   Compiling smallvec v1.8.0
   Compiling semver v1.0.10
   Compiling camino v1.0.7
   Compiling termcolor v1.1.2
   Compiling either v1.6.1
   Compiling paste v1.0.7
   Compiling utf8-width v0.1.5
   Compiling textwrap v0.14.2
   Compiling dunce v1.0.2
   Compiling unicode-segmentation v1.9.0
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling uncased v0.9.6
   Compiling gimli v0.26.1
   Compiling lock_api v0.4.6
   Compiling itertools v0.10.3
   Compiling byte-unit v4.0.13
   Compiling libusb1-sys v0.6.0
   Compiling hidapi v1.3.3
   Compiling indexmap v1.9.1
   Compiling bitvec v1.0.0
   Compiling iana-time-zone v0.1.45
   Compiling aho-corasick v0.7.18
   Compiling object v0.29.0
   Compiling os_str_bytes v6.0.0
   Compiling quote v1.0.15
   Compiling atty v0.2.14
   Compiling signal-hook-registry v1.4.0
   Compiling terminal_size v0.1.17
   Compiling num_threads v0.1.6
   Compiling time v0.1.44
   Compiling errno v0.2.8
   Compiling proc-macro-error-attr v1.0.4
   Compiling regex v1.5.6
   Compiling colored v2.0.0
   Compiling time v0.3.11
   Compiling parking_lot v0.12.0
   Compiling console v0.15.0
   Compiling sanitize-filename v0.4.0
   Compiling terminal_size v0.2.1
   Compiling indicatif v0.17.1
   Compiling unicode-linebreak v0.1.2
   Compiling proc-macro2-diagnostics v0.9.1
   Compiling proc-macro-error v1.0.4
   Compiling textwrap v0.15.1
   Compiling serde_derive v1.0.145
   Compiling scroll_derive v0.11.0
   Compiling thiserror-impl v1.0.30
   Compiling enum-primitive-derive v0.2.2
   Compiling pear_codegen v0.2.3
   Compiling clap_derive v3.1.2
   Compiling git-version-macro v0.3.5
   Compiling git-version v0.3.5
   Compiling scroll v0.11.0
   Compiling pear v0.2.3
   Compiling thiserror v1.0.30
   Compiling clap v3.1.3
   Compiling serde v1.0.145
   Compiling log v0.4.17
   Compiling serde_yaml v0.9.11
   Compiling jep106 v0.2.6
   Compiling bincode v1.3.3
   Compiling serde_json v1.0.86
   Compiling toml v0.5.8
   Compiling chrono v0.4.22
   Compiling cargo-platform v0.1.2
   Compiling jaylink v0.3.0
   Compiling mio v0.8.0
   Compiling defmt-json-schema v0.1.0
   Compiling env_logger v0.9.1
   Compiling simplelog v0.12.0
   Compiling goblin v0.5.4
   Compiling gdbstub v0.6.2
   Compiling probe-rs-target v0.13.0 (https://github.com/probe-rs/probe-rs#7fb62550)
   Compiling signal-hook-mio v0.2.3
   Compiling crossterm v0.25.0
   Compiling cargo_toml v0.12.4
   Compiling cargo_metadata v0.15.0
   Compiling defmt-decoder v0.3.3
   Compiling figment v0.10.8
   Compiling tui v0.19.0
   Compiling probe-rs v0.13.0 (https://github.com/probe-rs/probe-rs#7fb62550)
   Compiling probe-rs-rtt v0.13.0 (https://github.com/probe-rs/probe-rs#7fb62550)
   Compiling gdb-server v0.13.0 (https://github.com/probe-rs/probe-rs#7fb62550)
   Compiling probe-rs-cli-util v0.13.0 (https://github.com/probe-rs/probe-rs#7fb62550)
   Compiling cargo-embed v0.13.0 (/Users/ben/Desktop/cargo-embed)
error[E0599]: the method `clone` exists for enum `std::result::Result<ProgressStyle, TemplateError>`, but its trait bounds were not satisfied
   --> src/main.rs:321:47
    |
321 |                 fill_progress.set_style(style.clone());
    |                                               ^^^^^ method cannot be called on `std::result::Result<ProgressStyle, TemplateError>` due to unsatisfied trait bounds
    |
   ::: /Users/ben/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/result.rs:504:1
    |
504 | pub enum Result<T, E> {
    | --------------------- doesn't satisfy `_: Clone`
    |
   ::: /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.17.1/src/style.rs:590:1
    |
590 | pub struct TemplateError {
    | ------------------------ doesn't satisfy `TemplateError: Clone`
    |
    = note: the following trait bounds were not satisfied:
            `TemplateError: Clone`
            which is required by `std::result::Result<ProgressStyle, TemplateError>: Clone`
note: the method `clone` exists on the type `ProgressStyle`
   --> /Users/ben/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/clone.rs:123:5
    |
123 |     fn clone(&self) -> Self;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^
help: use the `?` operator to extract the `ProgressStyle` value, propagating a `Result::Err` value to the caller
    |
321 |                 fill_progress.set_style(style?.clone());
    |                                              +

error[E0599]: the method `clone` exists for enum `std::result::Result<ProgressStyle, TemplateError>`, but its trait bounds were not satisfied
   --> src/main.rs:333:44
    |
333 |             erase_progress.set_style(style.clone());
    |                                            ^^^^^ method cannot be called on `std::result::Result<ProgressStyle, TemplateError>` due to unsatisfied trait bounds
    |
   ::: /Users/ben/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/result.rs:504:1
    |
504 | pub enum Result<T, E> {
    | --------------------- doesn't satisfy `_: Clone`
    |
   ::: /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.17.1/src/style.rs:590:1
    |
590 | pub struct TemplateError {
    | ------------------------ doesn't satisfy `TemplateError: Clone`
    |
    = note: the following trait bounds were not satisfied:
            `TemplateError: Clone`
            which is required by `std::result::Result<ProgressStyle, TemplateError>: Clone`
note: the method `clone` exists on the type `ProgressStyle`
   --> /Users/ben/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/clone.rs:123:5
    |
123 |     fn clone(&self) -> Self;
    |     ^^^^^^^^^^^^^^^^^^^^^^^^
help: use the `?` operator to extract the `ProgressStyle` value, propagating a `Result::Err` value to the caller
    |
333 |             erase_progress.set_style(style?.clone());
    |                                           +

error[E0308]: mismatched types
   --> src/main.rs:338:40
    |
338 |             program_progress.set_style(style);
    |                              --------- ^^^^^ expected struct `ProgressStyle`, found enum `std::result::Result`
    |                              |
    |                              arguments to this function are incorrect
    |
    = note: expected struct `ProgressStyle`
                 found enum `std::result::Result<ProgressStyle, TemplateError>`
note: associated function defined here
   --> /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.17.1/src/progress_bar.rs:134:12
    |
134 |     pub fn set_style(&self, style: ProgressStyle) {
    |            ^^^^^^^^^

error[E0308]: mismatched types
   --> src/main.rs:364:61
    |
364 |                         program_progress.enable_steady_tick(100);
    |                                          ------------------ ^^^ expected struct `std::time::Duration`, found integer
    |                                          |
    |                                          arguments to this function are incorrect
    |
note: associated function defined here
   --> /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.17.1/src/progress_bar.rs:152:12
    |
152 |     pub fn enable_steady_tick(&self, interval: Duration) {
    |            ^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
   --> src/main.rs:368:59
    |
368 |                         erase_progress.enable_steady_tick(100);
    |                                        ------------------ ^^^ expected struct `std::time::Duration`, found integer
    |                                        |
    |                                        arguments to this function are incorrect
    |
note: associated function defined here
   --> /Users/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/indicatif-0.17.1/src/progress_bar.rs:152:12
    |
152 |     pub fn enable_steady_tick(&self, interval: Duration) {
    |            ^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `join` found for struct `MultiProgress` in the current scope
   --> src/main.rs:420:32
    |
420 |                 multi_progress.join().unwrap();
    |                                ^^^^ method not found in `MultiProgress`

Some errors have detailed explanations: E0308, E0599.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `cargo-embed` due to 6 previous errors

--locked only works with install :) You can try: https://github.com/probe-rs/cargo-embed/pull/386

Wow! Loving the full service. 😆
From the cargo-embed clone root, I did:
$ git pull
$ git co 054841e3d672aee858f1446d098783f6ec4c85fa
$ cargo uninstall cargo-embed
$ cargo install --locked --path .

Back in my project running cargo embed still spits out the same error. I can see from the Cargo.lock that its pulling in probe-rs version 7fb62550, so this is surprising.
    Finished dev [optimized + debuginfo] target(s) in 0.07s
      Config default
      Target /Users/ben/Desktop/microgroove-rs/target/thumbv6m-none-eabi/debug/microgroove
        WARN probe_rs::probe::cmsisdap > Giving up on TARGETSEL, too many retries.
       Error failed attaching to target

             Caused by:
                 Failed to get information for AP ApAddress { dp: Multidrop(11002927), ap: 0 }

probe-rs-cli list finds the pico-debug probe:
The following devices were found:
[0]: CMSIS-DAP (VID: 1209, PID: 2488, Serial: E661410403292C32, CmsisDap)

I’ll close this issue since a fix is in master. I’ll reopen if I bump into this issue again later. Thanks so much for your help @Yatekii!

This issue should be fixed on probe-rs master. probe-run does not use master afaik. You could try with probe-rs-cli form master :)

That's great news that this is already fixed! We had some people report that issue. Is is possible to get a patch release with the fix?

@Urhengulas Yes, I am trying to get up to speed again with all development things and once I am I will release a minor release even :)

@Urhengulas Yes, I am trying to get up to speed again with all development things and once I am I will release a minor release even :)

That sounds great. Thank you!


[Suggestion] Add the log "Created a function..." in output when executing the function query

OS: All
Build Version: 20200522.22
Repro Steps:

Drill down PostgreSQL->One database->Right click Functions node and select "Create Function Query"->Provide a function name->Select return type.
Execute this function query.
Check the output log.

Actual:
The output log is always "Successfully executed 'CREATE' query".

Suggestion:
Add the log "Created a function..." in output, it's very clear to check which function is created.

The only info returned from the QueryResult object when a function is created via a query is the command used (in this case "CREATE"). You could also create a table or stored procedure using a create query and the same object would be returned.
Is it worth parsing the query ourselves to determine the type of resource created?

Is it worth parsing the query ourselves to determine the type of resource created?

I vote no


Update MarcCleanup

The current release is 0.9.0 and our version in use is 0.7.0.
The version we're using includes a bug that overrides map for NilClass. It seems like that's been resolved, or at least the method has been renamed. This is the source of the weird f arrays that are added to each response in the bib items endpoint.
I'm not sure what parts of this gem are used in bibdata, but we'll need to identify them and check for backwards incompatabilities
[4] pry(#<BibliographicController>)> show-source NilClass.map

From: .asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/bundler/gems/marc_cleanup-523cf5432c14/lib/marc_cleanup/rubymarc_methods.rb @ line 1731:
Owner: MarcCleanup
Visibility: public
Number of lines: 3

def map
  %w[ea eb ec ed ei em es fa fb fc fd fi fm fs]
end

related issue https://github.com/pulibrary/marc_liberation/issues/724


IE9 returns "on" for radio value after Vue has mounted

Vue.js version
2.1.4
Reproduction Link
https://jsfiddle.net/86m9vwad/11/
Steps to reproduce
Open JsFiddle in native IE9 (neither IE10, nor IE11 in compatibility mode will produce this error).
Klick get value => As you can see, the values of both radio buttons are read properly (first, second).
Klicking on "mount vue" and afterwards "get value" will return "on" for both radios.
What is Expected?
After mounting Vue the radio value should still be "first" and "second" in Internet Explorer 9.
What is actually happening?
I do not exactly now what Vue does when mounting an element, but it seems that the element is somehow processsed which leads to this IE error.
I've found the following StackOverflow entry: http://stackoverflow.com/a/13288980
It states if an radio element is created by JavaScript and the value is set BEFORE the type is set to "radio", IE will return the default value "on" instead the given value.
In my application I'm not able to tell which radio button was selected when submitting the form with jQuery AJAX Post request, as both inputs will send "on".
It would be great if someone with more Vue insights has some idea what could causing this issue.
I'm aware that in my example Vue itself is not needed at all, but I tried to create the most minimalistic code as possible which is able to reproduce the issue. In real live this is part of a website where the radio buttons are inside a container which is mounted in Vue. On another place jQuery reads the selected radio button value which works in all browser but IE9.
Kind regards and many thanks in advance
Andreas

Hi,
here is a short update after digging deeper and deeper into Vue.js:

Calling invokeCreateHooks AGAIN after the new element is created seems to fix the problem, i.e. (about line 4015 in 2.1.4):

if (isDef(data)) {
	invokeCreateHooks(vnode, insertedVnodeQueue);
}
insert(parentElm, vnode.elm, refElm);
// call invoieCreateHooks again as the values need to be applyied AFTER the element has been created (IE9 would discard the value as the element is not of type radio yet)
if (isDef(data)) {
	invokeCreateHooks(vnode, insertedVnodeQueue);
}

I've updated the fiddle with this change to demonstrate it:
https://jsfiddle.net/86m9vwad/12/
Leaving the first invokeCreateHook out did not work for me!
For know I think this issue is exatly related to the issue posted on Stack Overflow.
There is a new elemente created (which defaults to a input type text). The value is applied BEFORE the type is changed to radio and therefore IE9 does not get the correct value on the newly created element which defaults to "on".
I hope you can follow my explanations.
Kind regards
Andreas


copy pointer to a new instance

type B struct {
	id string
}

type A struct {
	InsB *B
}

func main() {
	insB1 := &B{"test"}
	insA1 := &A{insB1}
	insA2 := &A{}
	deepcopier.Copy(insA1).To(insA2)

	fmt.Printf("%+v", insA1)
	fmt.Printf("%+v", insA2)
}

I want insA2.InsB is insB2

Did you find any generic deep-copier in golang?

It seems like https://github.com/mohae/deepcopy has the behaviour you want:
package main

import (
	"fmt"
	"github.com/mohae/deepcopy"
)

type B struct {
	Id string
}

type A struct {
	InsB *B
}

func main() {
	insB1 := &B{"test"}
	insA1 := &A{insB1}
	insA2 := deepcopy.Copy(insA1)

	fmt.Printf("insA1: %+v | %s\n", insA1, insA1)
	fmt.Printf("insA2: %+v | %s\n", insA2, insA2)
}

Console output:
insA1: &{InsB:0xc42000e1f0} | &{%!s(*main.B=&{test})}
insA2: &{InsB:0xc42000e210} | &{%!s(*main.B=&{test})}

Note that I changed the changed the id field to be exported, as you can only set exported fields via reflection.


fix a dashboard bug - [closed]

In GitLab by @luotian-github on Sep 20, 2017, 08:51
Merges devs -> dev
fix a dashboard bug

In GitLab by @wknet123 on Nov 13, 2019, 10:00
closed


log format of ACK controllers

Describe the bug
I installed the iam-controller with helm chart and I'm trying to find a way to get json log from the container to monitor the iam changes. but seems no matter which value I set for ACK_ENABLE_DEVELOPMENT_LOGGING or ACK_LOG_LEVEL, the log still shows as:
2023-04-06T20:56:02.935Z        INFO    ackrt   desired resource state has changed      {json}

which is a combination of plain string and json, extremely hard to parse
Steps to reproduce
install iam-chart from oci://public.ecr.aws/aws-controllers-k8s with version v1.1.2 with all default values
Expected outcome
a switch to enable pure json log
Environment
iam chart version v1.1.2

Kubernetes version
1.22

Using EKS (yes/no), if so version?
yes, v1.22.17-eks-48e63af

AWS service targeted (S3, RDS, etc.)
IAM

Hi @bin3377! I removed the IAM part of the issue summary since all ACK controllers have the same logging infrastructure and format. This logging infrastructure is the same as all binaries that use the standard upstream kubernetes controller-runtime logging setup (which all ACK controllers do). The log format is always {TIMESTAMPZ}\t{LOG_LEVEL_STRING}\t{LOG_MESSAGE}\t{STRUCTURED_LOG_TAGS}
The {STRUCTURED_LOG_TAGS} is always a JSON object containing a set of key/value pairs that provide more detailed context information about the resources being operated on during that log line. Common structured log keys are "kind", where the corresponding value is the Kind of the resource, "name" where the corresponding value is the name of the resource, etc.


chore(main): release 0.1.2

:robot: I have created a release beep boop
0.1.2 (2024-12-31)
Features

Apply parent template v0.1.4 (f1caec5)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.1.2
:sunflower:


New environment variables : DISABLE_HEALTHCHECK_LOGGING and DEFAULT_LISTEN_PORT

@compleatang Seems OK for you? :)

Yup. all ok from my side @gulien !!!


Firebase Database Query hangs

Hello!
Enviroment

Operating System version: Windows 8.1u1
Firebase SDK version: 5.3.0
Firebase Product: Database

Issue
When  I trying to get some info from the database and the query contains some of startAt, endAt, equalTo the query hangs and the thread keeps workings and my method cant return anything...
Event Listeners removed for simplicity, can be reproduced with or without them
example: only the String "before query" is printed, then the nothing happens, it hangs
FirebaseDatabase db = FirebaseDatabase.getInstance();
System.out.println("before query");
db.getReference("/some/path/").orderByChild("pending").equalTo(true);
System.out.println("after query");

But, if I remove the "equalTo" condition the mehtod executes normally
example: both strings are printed and the data is retreived without any problem.
FirebaseDatabase db = FirebaseDatabase.getInstance();
System.out.println("before query");
db.getReference("/some/path/").orderByChild("pending");
System.out.println("after query");

edit: I don't know if this is useful, but if I try the same query on the node.js  enviroment it works and my data is retrieved without any problem

Most likely, you haven't set up an index on the remote path and it's attempting to download all data to the client. You will need to add an error handler as described in the docs to get the exact error condition, but the query is likely timing out after a read limit is reached.
One quick way to test this would be to run the same query against a sample path with only a few records. If you can reproduce it there, and you can demonstrate that you've added proper error handlers to the query and still aren't making progress, then please resubmit this issue with a minimal and complete repro of the problem, including sample data and security rules, we can run locally.


Documentation

Any links to decent documentation for installation of this and other related plugins. Been trying to install (and I am usually pretty good) but I've been going round in circles getting to work with 2.1.0 - and failing miserably

Hello @rchavik ,
i am also having an issue installing Assets on croogo 2.2.3. I successfully activated Imagine, now I'm trying to add Assets. I extracted the contents of the zip under croogo/Assets/. this shows in the admin panel under http://localhost/croogo/admin/extensions/extensions_plugins/
when i try to activate it, i get an error thrown from Imagine Behavior:

Fatal Error
Error: Class 'Cake\ORM\Behavior' not found
File: C:\wamp\www\test\croogo\Vendor\croogo\croogo\Imagine\Model\Behavior\ImagineBehavior.php
Line: 21

am i missing something?


mpich: optional pmix support

Description of changes
This way mpich can be used with srun, e.g. in nixosTests.slurm
CC @markuskowa and maybe @posch?

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Hi @markuskowa,
will need your revised review to unblock merging

@GrahamcOfBorg build mpich mpich-pmix
@GrahamcOfBorg eval


Fixed: Re-clicking on Upload file button & cancelling it gives error (#85zrhfp4c)

Related Issues

Closes #121
Short Description and Why It's Useful

Unwanted error is removed, also if we decide not to upload a file, current file says selected.
Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to add changelog entry
Contribution and Currently Important Rules Acceptance

[ ] I read and followed contribution rules

After discussion, it is concluded that we'll not implement the functionality to show the toast even after not selecting the file for the first time. The toast will appear only for the first time.


fix: prioritize parser used in the project

Summary

Fixes https://github.com/facebook/jest/issues/12929
Right know Jest prioritize prettier deciding the parser who is going to be used for the snapshot and let the parser used in the project as a fallback.
I simple change the logic to prioritize the parser found in the projects prettier config file or editors config. If not found prettier will decide which parser is going to be used.
Test plan

You can test using the reproduction repo from the issue.

https://github.com/facebook/jest/releases/tag/v29.1.0


Update github checkout action to v4

Issue #, if available:
Description of changes:
Hello muya,
I will try to update this action to Node.js v20. This pull request is for preparation.
Ref. https://github.com/actions/checkout
Could you merge this? Thanks!
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Hi @muya, I hope you're doing well. Any updates on this pull request? I'm looking forward to your feedback. Thank you!