Node attributes cache entries are not properly reset when attribute has already been accessed

Version:
Seen on Chef-client 12.1.1, 12.3.0
Environment:
OS: Ubuntu 12.04
Reproduction case below
Scenario:
When attempting to set a node attribute at the force_default precedence level in a cookbook attribute file, the higher level of precedence does not apply if the attribute has been accessed already in the attribute file.
Steps to Reproduce:
The only role applied to the node:
{
  "name": "test_attributes",
  "default_attributes": {
    "foo": {
      "a": "role_default",
      "b": "role_default"
    }
  },
  "chef_type": "role",
  "run_list": [
    "recipe[test]"
  ],
  "json_class": "Chef::Role"
}

The default attribute file for the test cookbook:
node["foo"]["a"]
force_default["foo"]["a"] = "force_default_value"

The default recipe for the test cookbook:
Chef::Log.info("foo.a #{node["foo"]["a"]}")

Expected Result:
It is expected that the following output be produced:
[2015-06-11T21:46:37+00:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 12.1.1
[2015-06-11T21:46:37+00:00] INFO: *** Chef 12.1.1 ***
[2015-06-11T21:46:37+00:00] INFO: Chef-client pid: 19867
[2015-06-11T21:46:38+00:00] INFO: Setting the run_list to ["role[test_attributes]"] from CLI options
[2015-06-11T21:46:38+00:00] INFO: Run List is [role[test_attributes]]
[2015-06-11T21:46:38+00:00] INFO: Run List expands to [test]
[2015-06-11T21:46:38+00:00] INFO: Starting Chef Run for test_vm
[2015-06-11T21:46:38+00:00] INFO: Running start handlers
[2015-06-11T21:46:38+00:00] INFO: Start handlers complete.
Compiling Cookbooks...
[2015-06-11T21:46:44+00:00] INFO: foo.a force_default_value
Converging 0 resources
[2015-06-11T21:46:44+00:00] INFO: Chef Run complete in 6.223329298 seconds
[2015-06-11T21:46:44+00:00] INFO: Skipping removal of unused files from the cache

Running handlers:
[2015-06-11T21:46:44+00:00] INFO: Running report handlers
Running handlers complete
[2015-06-11T21:46:44+00:00] INFO: Report handlers complete
Chef Client finished, 0/0 resources updated in 7.236680184 seconds

Actual Result:
[2015-06-11T21:46:37+00:00] INFO: Forking chef instance to converge...
Starting Chef Client, version 12.1.1
[2015-06-11T21:46:37+00:00] INFO: *** Chef 12.1.1 ***
[2015-06-11T21:46:37+00:00] INFO: Chef-client pid: 19867
[2015-06-11T21:46:38+00:00] INFO: Setting the run_list to ["role[test_attributes]"] from CLI options
[2015-06-11T21:46:38+00:00] INFO: Run List is [role[test_attributes]]
[2015-06-11T21:46:38+00:00] INFO: Run List expands to [test]
[2015-06-11T21:46:38+00:00] INFO: Starting Chef Run for test_vm
[2015-06-11T21:46:38+00:00] INFO: Running start handlers
[2015-06-11T21:46:38+00:00] INFO: Start handlers complete.
Compiling Cookbooks...
[2015-06-11T21:46:44+00:00] INFO: foo.a role_default
Converging 0 resources
[2015-06-11T21:46:44+00:00] INFO: Chef Run complete in 6.223329298 seconds
[2015-06-11T21:46:44+00:00] INFO: Skipping removal of unused files from the cache

Running handlers:
[2015-06-11T21:46:44+00:00] INFO: Running report handlers
Running handlers complete
[2015-06-11T21:46:44+00:00] INFO: Report handlers complete
Chef Client finished, 0/0 resources updated in 7.236680184 seconds

The difference is between
[2015-06-11T21:46:44+00:00] INFO: foo.a force_default_value

and
[2015-06-11T21:46:44+00:00] INFO: foo.a role_default

Running a node.reset_cache() between the first and second lines in the attribute file forces the expected result.

I'm probably going to wind up fixing this via a complete rewrite of attributes that is in-progress and which will eliminate the deep_merge_cache.

probably a dup of #4207

Hi @lamont-granquist
We are hitting that issue too much and could not find a proper work-around. I have tested with your branch which worked well.
Do we have any updates on when we can expect it to be available?
Thanks in advance.
-SNK

probably fixed by now.  probably fixed back in the chef-12 timeframe at some point.  would need to get validated on chef >= 13.7 (current master) and reopened if its still an issue.


Client reconnection takes very long in Kubernetes

Hazelcast Cpp client version: 4.0-BETA
Hazelcast server version: 4.1
Number of the clients: 1
Cluster size, i.e. the number of Hazelcast cluster members: 3
OS version (Windows/Linux/OSX): Linux
Client logs: client-logs.txt
Expected behaviour
Client reconnects to the cluster shortly after the cluster is up again
Actual behaviour
It took a long time (30 min) for the client to reconnect to the cluster.
Steps to reproduce the behaviour

Cluster of 3 members is deployed in Kubernetes (resolved with DNS hz-hazelcast)

helm repo add hazelcast https://hazelcast-charts.s3.amazonaws.com/
helm repo update
helm install hz-hazelcast hazelcast/hazelcast

The client code is available here.

#define BOOST_THREAD_VERSION 5

#include <iostream>
#include <hazelcast/client/hazelcast_client.h>
#include <thread>
#include <chrono>

int main() {
    hazelcast::client::client_config config;
    config.get_network_config().add_address(address("hz-hazelcast", 5701));
    config.get_network_config().set_connection_attempt_limit(INT32_MAX);
    hazelcast::client::hazelcast_client hz(std::move(config));

    std::cout << "Successful connection!" << std::endl;
    std::cout << "Starting to fill the map with random entries." << std::endl;

    auto map = hz.get_map("map").get();
    while (true) {
        int random_key = rand() % 100000;
        try {
            map->put("key-" + std::to_string(random_key), "value-" + std::to_string(random_key));
            if (random_key % 100 == 0) {
                std::cout << "Current map size: " + std::to_string(map->size().get()) << std::endl;
                std::this_thread::sleep_for(std::chrono::seconds(1));
            }
        } catch (const std::exception& e) {
            std::cout << e.what() << std::endl;
        }
    }

    return 0;
}

3, Client connects successfully to the cluster and start inserting data.
4. Terminate and start again all Hazelcast members (they start with different IP addresses)
kubectl delete pod hz-hazelcast-0 hz-hazelcast-1 hz-hazelcast-2

The client reconnects to the cluster but after a very long time. Please find the logs attached.

@leszko I prepared a small patch to see the logs better and a small improvement at this branch: https://github.com/ihsandemir/hazelcast-cpp-client/tree/conn_fix  The fix is on top of current master. I also prepared and attached a gzip file which I produced the lib for Linux_64 bit debug lib for latest fedora version. The lib name in the zip is libHazelcastClient4.0-SNAPSHOT_64.so, you need to change how you compile.
Can you please try this patch an share the logs with me.
hazelcast-cpp-client-4.0-HEAD.tar.gz

Thanks for the fix. Looks good and solves the issue. Thakns @ihsandemir

Update latest binary is attached for testing.
hazelcast-cpp-client-4.0-HEAD.tar.gz


MxnetR chunk-wise neural nets

Dear all,
I just now started using the mxnet R package in Windows.
I have a pretty big dataset which I need to process in chunks due to memory limits. Therefore, I split my dataset and wanted to run a feed-forward  neural net on chunk 1, and use the parameters (weights and bias) for chunk 2 , which in turn can be used for chunk 3, and so on. However, despite some examples (https://statist-bhfz.github.io/cats_dogs_finetune) I cannot figure out how to get that to work.
My model looks like that:
## set up neural network
data <- mx.symbol.Variable("data")
fc1 <- mx.symbol.FullyConnected(data, name="fc1", num_hidden=150)
act1 <- mx.symbol.Activation(fc1, name="relu1", act_type="relu")
fc2 <- mx.symbol.FullyConnected(act1, name="fc2", num_hidden=100)
softmax <- mx.symbol.SoftmaxOutput(fc2, name="sm")

prefix='Checkpoints/chkpt'
## train
system.time(model <- mx.model.FeedForward.create(softmax, X=train.x, y=train.y,
                                                 ctx=devices, num.round=20, array.batch.size=200,
                                                 learning.rate=0.09, momentum=0.9,  eval.metric=mx.metric.accuracy,
                                                 optimizer='sgd',
                                                 epoch.end.callback=mx.callback.save.checkpoint(prefix),
                                                 batch.end.callback=mx.callback.log.speedometer(200, frequency = 200)))

and now I tried to follow other posts and used
net001<- mx.model.load(prefix, iteration=20)

symbol<- net001$symbol
internals<- symbol$get.internals()
outputs<- internals$outputs

arg_params_batch1<- net001$arg.params
fc1_weights_batch1<- arg_params_batch1[["fc1_weight"]]
fc2_weights_batch1<- arg_params_batch1i[["fc2_weight"]]

But now I am unsure how to use the weights and bias for the next batch of mx.model.FeedForward.create.
Any hint would be greatly appreciated.
Thank you,
Best, Laura

I think we have a document on similar situations: https://github.com/apache/incubator-mxnet/blob/master/R-package/vignettes/CatsDogsFinetune.Rmd#load-pretrained-model
Let me know if this helps.

Thanks for your reply.
I have found that page already pretty helpful, but there are a few questions I have - maybe you or someone else could help me.
First of, I am not sure what the output named "flatten_output" is - I thought for me it could be softmax_output as well, not sure.
For mx.model.init.params: I get the error:  could not find function "mx.model.init.params"
There, I am also not sure what to put in "Input Shape". - the dimensions of the original data set? the dimensions of the neural net? I am lost...
Any help would be great!
Thanks
Laura

@train-test-laura If you are using the same model over different chunks of data, you can do something similar to below:
data(BostonHousing, package = "mlbench")

train.ind <- seq(1, 506, 3)
train.x <- data.matrix(BostonHousing[train.ind,-14])
train.y <- BostonHousing[train.ind, 14]
test.x <- data.matrix(BostonHousing[-train.ind,-14])
test.y <- BostonHousing[-train.ind, 14]

train.x2 <- train.x
train.y2 <- train.y

library(mxnet)

data <- mx.symbol.Variable("data")
fc1 <- mx.symbol.FullyConnected(data, num_hidden = 1)
lro <- mx.symbol.LinearRegressionOutput(fc1)

mx.set.seed(0)
model <- mx.model.FeedForward.create(lro,
                                     X = train.x,
                                     y = train.y,
                                     ctx = mx.cpu(),
                                     num.round = 50,
                                     array.batch.size = 20,
                                     learning.rate = 2e-6,
                                     momentum = 0.9,
                                     eval.metric = mx.metric.rmse)

model2 <- mx.model.FeedForward.create(lro,
                                      X = train.x2,
                                      y = train.y2,
                                      ctx = mx.cpu(),
                                      num.round = 50,
                                      array.batch.size = 20,
                                      learning.rate = 2e-6,
                                      momentum = 0.9,
                                      eval.metric = mx.metric.rmse,
                                      arg.params = model$arg.params,
                                      aux.params = model$aux.params)

Hi Thirdwind,
thank you very much - this seems to be exactly what I was looking for.
That is easier than I expected it to be - just taking arg.params and aux.params from model 1 (chunk 1) and take it to model 2 (chunk 2) and so on - great!


OSError: [Errno 12] Cannot allocate memory

Describe the bug
Just downloaded and extracted the zip on my pi3 b+ and got this message. streaming works over LAN. Hope I can get this software to work as it seems really awesome!
To Reproduce
downloaded the zip. extracted and ran python app.py
this is on a rpi 3
cat /etc/debian_version gives 12.5
libcamera-vid --list-cameras
Available cameras
-----------------
0 : ov5647 [2592x1944 10-bit GBRG] (/base/soc/i2c0mux/i2c@1/ov5647@36)
    Modes: 'SGBRG10_CSI2P' : 640x480 [58.92 fps - (16, 0)/2560x1920 crop]
                             1296x972 [43.25 fps - (0, 0)/2592x1944 crop]
                             1920x1080 [30.62 fps - (348, 434)/1928x1080 crop]
                             2592x1944 [15.63 fps - (0, 0)/2592x1944 crop]

Expected behavior
I expected it to run and not crash so that I could open the webapp on a browser
Screenshots
console output is probably better:
[0:31:59.202068590] [1536]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0+120-eb00c13d
[0:31:59.248394019] [1539]  WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:31:59.252915457] [1539]  INFO RPI vc4.cpp:446 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0
[0:31:59.253028375] [1539]  INFO RPI pipeline_base.cpp:1102 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:31:59.257353665] [1536]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0+120-eb00c13d
[0:31:59.302053771] [1542]  WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:31:59.306376666] [1542]  INFO RPI vc4.cpp:446 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media3 and ISP device /dev/media0
[0:31:59.306575157] [1542]  INFO RPI pipeline_base.cpp:1102 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'

Camera Config:
{'controls': {'LensPosition': 1.0, 'ExposureValue': 0.0, 'ExposureTime': 220417486, 'AwbMode': 0, 'AfSpeed': 0, 'AfRange': 0, 'AeMeteringMode': 0, 'AeFlickerPeriod': 1000000, 'AeFlickerMode': 0, 'AeExposureMode': 0, 'AeEnable': True, 'AwbEnable': True, 'AeConstraintMode': 0, 'Brightness': 0.0, 'Contrast': 1.0, 'Saturation': 1.0, 'Sharpness': 1.0, 'AfMode': 0, 'ScalerCrop': [0, 0, 4608, 2592]}, 'rotation': {'hflip': 0, 'vflip': 0}, 'sensor-mode': 0, 'capture-settings': {'Resize': False, 'makeRaw': False, 'Resolution': 0, 'available-resolutions': [[4608, 2592], [2304, 1296], [1920, 1080], [1280, 720], [640, 360]]}}

Camera Settings:
{'Resize': False, 'makeRaw': False, 'Resolution': 0, 'available-resolutions': [[4608, 2592], [2304, 1296], [1920, 1080], [1280, 720], [640, 360]]}

Camera Set Resolution:
[4608, 2592]

[0:31:59.322196517] [1536]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XBGR8888 (1) 640x480-SGBRG10_CSI2P
[0:31:59.322853344] [1542]  INFO RPI vc4.cpp:621 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
[0:31:59.342930100] [1536]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XBGR8888 (1) 1296x972-SGBRG10_CSI2P
[0:31:59.343579011] [1542]  INFO RPI vc4.cpp:621 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
[0:31:59.362566644] [1536]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XBGR8888 (1) 1920x1080-SGBRG10_CSI2P
[0:31:59.363198627] [1542]  INFO RPI vc4.cpp:621 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1920x1080-SGBRG10_1X10 - Selected unicam format: 1920x1080-pGAA
[0:31:59.385495815] [1536]  INFO Camera camera.cpp:1183 configuring streams: (0) 640x480-XBGR8888 (1) 2592x1944-SGBRG10_CSI2P
[0:31:59.386139570] [1542]  INFO RPI vc4.cpp:621 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 2592x1944-SGBRG10_1X10 - Selected unicam format: 2592x1944-pGAA

Video Config:
{'use_case': 'video', 'transform': <libcamera.Transform 'identity'>, 'colour_space': <libcamera.ColorSpace 'Rec709'>, 'buffer_count': 6, 'queue': True, 'main': {'format': 'XBGR8888', 'size': (4608, 2592)}, 'lores': None, 'raw': {'format': 'SGBRG10_CSI2P', 'size': (4608, 2592)}, 'controls': {'NoiseReductionMode': <NoiseReductionModeEnum.Fast: 1>, 'FrameDurationLimits': (33333, 33333)}, 'sensor': {'output_size': (640, 480), 'bit_depth': 10}, 'display': 'main', 'encode': 'main'}

Picamera2 Camera Properties:
{'Model': 'ov5647', 'UnitCellSize': (1400, 1400), 'ColorFilterArrangement': 2, 'Location': 2, 'Rotation': 0, 'PixelArraySize': (2592, 1944), 'PixelArrayActiveAreas': [(16, 6, 2592, 1944)], 'ScalerCropMaximum': (0, 0, 2592, 1944), 'SystemDevices': (20749, 20737, 20738, 20739), 'SensorSensitivity': 1.0}

INFO:picamera2.picamera2:Camera configuration has been adjusted!
[0:31:59.462097291] [1536]  INFO Camera camera.cpp:1183 configuring streams: (0) 4608x2592-XBGR8888 (1) 640x480-SGBRG10_CSI2P
[0:31:59.462659326] [1542]  INFO RPI vc4.cpp:621 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 640x480-SGBRG10_1X10 - Selected unicam format: 640x480-pGAA
INFO:picamera2.picamera2:Configuration successful!
Traceback (most recent call last):
  File "/home/tweet/picamera2-WebUI-Lite-main/app.py", line 508, in <module>
    start_camera_stream()
  File "/home/tweet/picamera2-WebUI-Lite-main/app.py", line 304, in start_camera_stream
    picam2.configure(video_config)
  File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1114, in configure
    self.configure_(camera_config)
  File "/usr/lib/python3/dist-packages/picamera2/picamera2.py", line 1097, in configure_
    self.allocator.allocate(libcamera_config, camera_config.get("use_case"))
  File "/usr/lib/python3/dist-packages/picamera2/allocators/dmaallocator.py", line 43, in allocate
    fd = self.dmaHeap.alloc(f"picamera2-{i}", stream_config.frame_size)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/picamera2/dma_heap.py", line 98, in alloc
    ret = fcntl.ioctl(self.__dmaHeapHandle.get(), DMA_HEAP_IOCTL_ALLOC, alloc)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 12] Cannot allocate memory
INFO:picamera2.picamera2:Camera closed successfully.

Desktop (please complete the following information):
Raspbian latest afaik. logged in by ssh from microsoft terminal
Additional context
might be related to https://github.com/monkeymademe/picamera2-WebUI-Lite/issues/32
I can stream the video to VLC (client) with this command:
rpicam-vid -t 0 --inline -o - | cvlc stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/stream1}' :demux=h264
just to verify that the cam works and the networking etc. Might just be the case that my pi is not powerfull enough? rpi 3 b+

Seems related to https://github.com/raspberrypi/picamera2/issues/972#issuecomment-1980573868

Hi,
I ran into the same problem with my Raspberry Pi 2B + v1 camera. I could only start the software after changing the Resolution from 0 to 2 in camera-config.json. With 0 I ran into the same memory allocation error.
Maybe 1920x1080 (2) can be the default setting.
cat /etc/debian_version
12.1

$ libcamera-vid --list-cameras
Available cameras
-----------------
0 : ov5647 [2592x1944 10-bit GBRG] (/base/soc/i2c0mux/i2c@1/ov5647@36)
    Modes: 'SGBRG10_CSI2P' : 640x480 [30.00 fps - (65535, 65535)/65535x65535 crop]
                             1296x972 [30.00 fps - (65535, 65535)/65535x65535 crop]
                             1920x1080 [30.00 fps - (65535, 65535)/65535x65535 crop]
                             2592x1944 [30.00 fps - (65535, 65535)/65535x65535 crop]

Ran into the same problem. Solved using buffer_count=2 in create_video_configuration suggested by: https://github.com/raspberrypi/picamera2/issues/972#issuecomment-1980573868
No buffer_count is included in the source code.
Raspberry Pi 3B+ ver 1.4

Yeah this is maybe something I could setup in a setting but its very breakable... picamera2's Video config requests a buffer count of 6 by default and anything lower than that can cause stream issues (jitter, missed frames) I experimented with that before and got really bad performance.
I would recommend using a pi4 or better. But in the interest of trying to keep all pi3 happy and the pi Zero2 I would maybe make this a configurable setting with huge warnings and an are you sure popup.... its in the roadmap for the next version

Going to close this issue cause the buffer_count will be addressed in this feature request: https://github.com/monkeymademe/picamera2-WebUI/issues/51


Files watcherExclude doesnt work correctly in multi root workspaces

When using multi root work-spaces, the watcherExclude doesn't work as expected, it seems to exclude the files correctly but will still watch folders and sub folders under the excluded folder.
Note: In a project with large number of files and directories, this raises the "unable to watch for file changes in this large workspace" notification, as there are still too many directories that are watched but shouldn't be.
Test workspace structure:
test_workspace1
  /bin
    /sbin
        - test_bin_file4.py
        - test_bin_file5.py
    - test_bin_file1.py
    - test_bin_file2.py
    - test_bin_file3.py
  /lib
    - test_lib_file1.py
    - test_lib_file2.py
    - test_lib_file3.py
test_workspace2
  /bin
    - test_bin_file1.py
  /lib
    - test_bin_file2.py
---

.code-workspace
{
	"folders": [
		{"path": "test_workspace1"},
		{"path": "test_workspace2"}
	],
	"settings": {
		"files.watcherExclude": {
			"**/bin/**": true,
			"**/lib/**": true
		}
	}
}

Verify watched files using Using this script
$ vscode_watched_files --path /home/savio/WORK --pid 29130

*|_  (1/3) PID:29130
  |-  /tools/VSCode/VSCode-linux-x64-1.35.1/resources/app/out/bootstrap-fork --type=watcherService
  |-  Files: 6
  |
  |-  10093575: /home/savio/WORK/workshop/test_workspace1/bin/sbin
  |-  10093501: /home/savio/WORK/workshop/test_workspace1/lib
  |-  10093498: /home/savio/WORK/workshop/test_workspace1
  |-  10093503: /home/savio/WORK/workshop/test_workspace2/lib
  |-  10093502: /home/savio/WORK/workshop/test_workspace2/bin
  |-  10093499: /home/savio/WORK/workshop/test_workspace2

VSCode Version: 1.35.1
OS Version: Ubuntu 18.04 and Centos 7.4

Steps to Reproduce:

Open a multi root workspace (one that has more than 1 folder specified)
Add files.watcherExclude rules to exclude entire folders.
Reload vscode window, to refresh all watched files.
Verify watched files, the folders will still be watched, even though they are inside the exclude rules.

Does this issue occur when all extensions are disabled?: Yes/No
Yes

/duplicate https://github.com/microsoft/vscode/issues/40898


Using OpenTelemetry layer causes hang when tokio-spawned function returns.

 I've run into an issue using the tracing_opentelemetry crate, where it seems to hang the program whenever a function returns from a task spawned with tokio::spawn().
I've managed to make a minimal reproduction project for the issue, these are the dependencies in my Cargo.toml:
[dependencies]
opentelemetry = "0.24"
opentelemetry-otlp = "0.17"
tokio = { version = "1", features = ["full", "test-util"] }
tracing = "0.1"
tracing-opentelemetry = "0.25"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

And this is what I've written:
use opentelemetry::trace::TracerProvider;
use tracing_subscriber::filter::{EnvFilter, LevelFilter};
use tracing_subscriber::{fmt, prelude::*};
use tracing::info;

#[tracing::instrument]
async fn some_function() {
    info!("some_function()");
    inner_function().await;
    info!("inner function done.");
}

#[tracing::instrument]
async fn inner_function() {
    info!("inner function!");
}

#[tokio::main]
async fn main() {
    let fmt_layer = fmt::layer().with_target(false);

    let filter_layer = EnvFilter::builder()
        .with_default_directive(LevelFilter::INFO.into())
        .from_env_lossy();

    let otlp_exporter = opentelemetry_otlp::new_exporter().tonic();

    let tracer = opentelemetry_otlp::new_pipeline()
        .tracing()
        .with_exporter(otlp_exporter)
        .install_simple()
        .unwrap()
        .tracer("test_server");

    let otel_layer = tracing_opentelemetry::layer().with_tracer(tracer);

    tracing_subscriber::registry()
        .with(filter_layer)
        .with(fmt_layer)
        .with(otel_layer)
        .init();

    info!("calling...");
    let handle = tokio::spawn(some_function());
    handle.await.unwrap();
    info!("done!");
}

If I run the code as is, this is what's output:
2024-08-29T15:13:10.063000Z  INFO calling...
2024-08-29T15:13:10.063108Z  INFO some_function: some_function()
2024-08-29T15:13:10.063138Z  INFO some_function:inner_function: inner function!

... and nothing else. I have to manually Ctrl+C to exit the program. Whereas if I either refrain from adding the otel_layer, or call some_function().await directly instead of spawning a separate task, I get the correct output without the need to interrupt the program:
2024-08-29T15:15:24.392935Z  INFO calling...
2024-08-29T15:15:24.393030Z  INFO some_function: some_function()
2024-08-29T15:15:24.393059Z  INFO some_function:inner_function: inner function!
2024-08-29T15:15:24.577040Z  INFO some_function: inner function done.
2024-08-29T15:15:24.760723Z  INFO done!

Any ideas as to what's going wrong here? Is it the opentelemetry_otlp crate causing the hang? Or is there something that I'm missing from my code to, for example, close the tracer?

Yeah, I think this is likely to be an issue with the OTLP exporter setup you've got here -- perhaps it's not timing out if it can't connect to the OTLP endpoint for some reason?

Maybe - from what I can tell, this happens regardless of whether the OTLP collector is actually running or not. I'll post an issue there as well just in case.

Closing this issue, as it looks like it is indeed an issue with the OTLP exporter.


fix: Added droppable to onDragMove handler DragEvent

Fixes #94

Adds the active droppable item to the DragEvent given to the onDragMove handler callback.

It is unclear what benefit this provides from onDragOver as they would become the same effectively. So closing for now.


Fix deprecations in travis.yaml

https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments
https://blog.travis-ci.com/2019-08-27-deployment-tooling-dpl-v2-preview-release

skip_cleanup is now deprecated, and cleanup is false by default. The default used to be true, so you had to opt out using skip_cleanup … and has been used a lot. Cleaning up the working directory from any left over build artifacts only made sense for few providers, so we have changed this default.

Coverage decreased (-0.02%) to 93.627% when pulling 24b04b6b70ee5d12997330293a835d874c85c1c4 on asherf:travis into e00af2f73cb7d27c3755f18b2161b9acbd8ca8aa on spulec:master.

Thank you!


LAEA map projection is Europe-specific

Issue
Description
The currently available occurrence cubes use the LAEA map projection (EPSG: 3035), which is specific to Europe. Given that GBIF data is global, it would probably make sense to either switch to a global projection or allow the user to choose from several options.
Reasoning

GBIF data is global in nature and not limited to Europe.
Using a global map projection would ensure consistency and accuracy when visualizing occurrence data from different regions.
Allowing users to choose from several projection options would provide flexibility and accommodate specific visualization needs.

We now have Extended Quarter Degree Grid Cells (QDGC / EQDGC) and Military Grid Reference System. Both are worldwide.
Thanks,


[DirectMLX] Fixed the local variable initialized but not referenced issue.

When DML_TARGET_VERSION is less than 0x6200.

Hi @raoanag, please help review the tiny change in your available time. Thanks!


Couldn't get BlueALSA PCM: PCM not found

Hi All, sorry for bothering you with this, but it seems my new Sony WF-1000XM3 just won't talk to bluez-alsa.
For aplay I get
aplay -v -D bluealsa:DEV=MY:MA:CA:DD:RE:SS,PROFILE=a2dp
bluealsa-pcm.c:895: Getting BlueALSA PCM: PLAYBACK 94:DB:56:19:48:14 a2dp
bluealsa-pcm.c:897:(_snd_pcm_bluealsa_open) Couldn't get BlueALSA PCM: PCM not found
aplay: main:830: audio open error: No such device
It is of course correct, because GetPCMs() does indeed return empty when I check it in dbus-monitor
bluetoothctl says that the device is connected, paired and trusted.
The controller shows the audio source and sink
UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
Yet, when I lock at the bluealsa output it ends with
Acquiring D-Bus service name: org.bluealsa Starting main dispatching loop
but does not seem to be notified of the connection of the headphones. It does show the calls to GetPCMs, though.
The system is a gentoo linux:

Linux version 5.8.11
alsa-lib <IP_ADDRESS>
bluez 5.55
dbus 1.12.18
bluez-alsa built from live-git (but 3.0.0 does the same)
no pulseaudio
no systemd (openrc 0.42.1 instead)
eudev 3.2.9

any hints would be greatly appreciated.
Thanks,
Harald

with the Sony WF-1000XM3 connected, please post the output of:
/bin/echo -e "show\ninfo MY:MA:CA:DD:RE:SS" | bluetoothctl

Thank you so much for the quick reply, here it is.
Controller XX:XX:XX:XX:XX:XX (public)
        Name: BlueZ 5.55
        Alias: BlueZ 5.55
        Class: 0x001c010c
        Powered: yes
        Discoverable: yes
        DiscoverableTimeout: 0x00000000
        Pairable: yes
        UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
        UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: IrMC Sync                 (00001104-0000-1000-8000-00805f9b34fb)
        UUID: Vendor specific           (00005005-0000-1000-8000-0002ee000001)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
        UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
        UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
        UUID: Vendor specific           (185f3df4-3268-4e3f-9fca-d4d5059915bd)
        UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
        Modalias: usb:v1D6Bp0246d0537
        Discovering: no
        Roles: central
        Roles: peripheral
Advertising Features:
        ActiveInstances: 0x00 (0)
        SupportedInstances: 0x05 (5)
        SupportedIncludes: tx-power
        SupportedIncludes: appearance
        SupportedIncludes: local-name
[LE_WF-1000XM3]# info MY:MA:CA:DD:RE:SS
Device MY:MA:CA:DD:RE:SS (public)
        Name: LE_WF-1000XM3
        Alias: LE_WF-1000XM3
        Class: 0x00240404
        Icon: audio-card
        Paired: yes
        Trusted: yes
        Blocked: no
        Connected: yes
        LegacyPairing: no
        UUID: Unknown                   (00000709-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Amazon.com Services, Inc. (0000fe03-0000-1000-8000-00805f9b34fb)
        UUID: Vendor specific           (55f80aef-d89f-41a4-9e36-0ffc88dc81ce)
        UUID: Vendor specific           (5b833e05-6bc7-4802-8e9a-723ceca4bd8f)
        UUID: Vendor specific           (5b833e06-6bc7-4802-8e9a-723ceca4bd8f)
        UUID: Vendor specific           (67a846ad-de3e-451b-a6d8-7b2899ca2370)
        UUID: Vendor specific           (91c10d9c-aaef-42bd-b6d6-8a648c19213d)
        UUID: Vendor specific           (dc405470-a351-4a59-97d8-2e2e3b207fbb)
        UUID: Vendor specific           (fe59bfa8-7fe3-4a05-9d94-99fadc69faff)
        Modalias: usb:v054Cp0CE0d0300

So the device LE_WF-1000XM3 does not advertise support for A2DP, or HFP/HSP. That is why bluealsa does not respond when the device connects. I think the only service that is connected is the Generic Access Profile.
I suspect some software provided by the vendor (possibly Windows specific ?) is required for the Vendor specific services that probably provide the audio streams.

Hmm, I just looked the specs for this device, and found:
Bluetooth® Specification
      Bluetooth® version:            Version 5.0
      Effective Range:               Line of sight approx.30ft (10m)
      Frequency Range:               2.4GHz band (2.4000GHz-2.4835GHz)
      Profile:                       A2DP, AVRCP, HFP, HSP
      Supported Audio Format(s):     SBC, AAC
      Supported Content Protection:  SCMS-T

So it does claim to support A2DP, but for some reason is not adverting that on the Service Discovery Protocol. I don't know what can be done about that (but would like to learn if anyone has a solution?)

If in the device name "LE_WF-1000XM3" the LE stands for Low Energy (Bluetooth Audio 5.0), than it will not work with Linux (BlueZ does not support Low Energy Audio). Also, it might be possible that if you install proprietary mobile app for this earbuds, you will be able to switch to Bluetooth 4.0 for audio profile (non low energy). Similar case is with Sony WH1000XM3 where you can select between quality and stability (from proprietary mobile app), and in case where stability is selected you've got only SBC codec (no aptX/HD, no LDAC).

Hi, by putting them into pairing mode I can disable the low energy mode, then they identify as WF-1000XM3. Also thanks for the hint with the app, they were in a mode called stability, I tried switching them to quality but that didn't change matters at all. Seems I am out of luck for now. Thanks for your help, though.

Ok one more part of the puzzle, in the app I deactivated something called dsee-hx. Then I deleted the device in bluetoothctl and started the pairing procedure and lo, it works now. Sound output works just like it does on the phone. Have not tried the Mike yet. Anyway thank you both a lot and sorry for bothering you with that.


Complete licence

At the moment the licence looks like this (correct?):

Copyright (c) 2013 - 2014, Chris Sauvé
Use it, change it, repackage it, whatever. Try not to take credit for my work.

Do you meant to put it in the public domain? Or a BSD licence more suitable?
Either way, a proper licence makes it easier for people to use, change and repackage it.

Thanks for the issue. I've updated to use MIT, and took the opportunity to leave a note in the README that I am no longer actively maintaining the script. Hopefully this will make it easy for anyone else to change this in whatever way works best for them.

Awesome, thanks! May I ask you what the reason for not maintaining it is? Did you find a better tool/script?

I haven't used OmniFocus in a long time (nothing against OmniFocus at all, my job just ended up involving a completely separate workflow for managing most tasks). I also don't have as much time as I would like to dedicate to OSS anymore, unfortunately.


Pagekit cli PDOException

I just installed pagekit and I absolutely love it. I will definitely try to contribute on the marketplace. However, I do have an error showing up when using the commandline. It gives me the following error:
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in C:\Users\maart\Documents\Development\Web Applications\pagekit\app\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:43
Stack trace:
#0 C:\Users\maart\Documents\Development\Web Applications\pagekit\app\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php(43): PDO->__construct('mysql:host=loca...', 'homestead', 'secret', Array)
#1 C:\Users\maart\Documents\Development\Web Applications\pagekit\app\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOMySql\Driver.php(45): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=loca...', 'homestead', 'secret', Array)
#2 C:\Users\maart\Documents\Development\Web Applications\pagekit\app\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'homestead', 'secret', Array)
#3 C:\Users\maart\Documents\Development\Web Applications\pagekit\app\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php(814): Doctrine\DBAL\Co in C:\Users\maart\Documents\Development\Web Applications\pagekit\app\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\AbstractMySQLDriver.php on line 115

The website itself loads perfectly fine, it is just the command line tool.

Ok never mind, it was me being in a different vm.


upgraded packages

migrate to null safety

when will it come to master?

It's updated in version 0.2.0.
https://github.com/GeekyAnts/flick-video-player/tree/v0.2.0
And also, in this PR there were many native file changes. We missed .gitignore in commits, so it caused issues.
And please we are open for null safety PR. We need some time to work on that.
Please feel free to open if there is an issue. Thank you.


PEST + Contributing docs (preparing v1.0)

Subject:

[x] New feature

Description:
Here is my first PR to add some contributing docs, add PEST ^3.0 (which requires PHP >=8.2) and a security policy.
Related:
Discussed in #1

[x] I confirm that I have read the Contributing Guide and Security Guide

@yassinedoghri I made all the changes, however when I run composer style:fix, nothing changes. I usually use laravel/pint and not easy-coding-standard, can you have a look, or maybe we could switch to pint ?

@benjaminhaeberli I've just applied the fix! I ran composer style:fix, not sure why it didn't work for you :thinking:
I didn't know about https://github.com/laravel/pint, looks nice!

I've reset the php version to 8.2 for the quality action. Now, there's a phpstan error, I'll leave you to fix it.
I think the rest is fine by me :slightly_smiling_face:

Looks like the phpstan error should just be ignored as it's a known bug in pest: https://github.com/pestphp/pest/issues/997
I'll add a rule to ignore it!

Ok, I stop messing with your PR now :smile:
I'll leave you to it with pest! Thank you for the changes :)

Haha no problem ! I didn't have time yesterday, I'll check ASAP :)

No worries, take your time! :+1:

Here it is @yassinedoghri ! It's very basic and I'm sure it could be improved but it's a starting point.
I never used Ahc\Cli before so maybe there is a better way to write tests for it 🤷♂
I didn't use mocking to avoid too much complexity and start simple, what do you think ?

[...] I didn't use mocking to avoid too much complexity and start simple, what do you think ?

Looks good to me, thanks! :slightly_smiling_face:
Apparently there's an issue with the tests: looks like the Icons::DATA array is empty on first execution... Wondering if it's because DATA is a const :thinking:

Apparently there's an issue with the tests: looks like the Icons::DATA array is empty on first execution... Wondering if it's because DATA is a const 🤔

Yes I even tried to add a sleep(5) before the expectation, but it doesn't work 🧐
Suggestion : This would require a bit of refactoring, but wouldn't it be simpler to abandon the Icons.php file and store the icons as svg files in src/icons, using a prefix, for example: lucide_icon-name.svg?

Yes I even tried to add a sleep(5) before the expectation, but it doesn't work 🧐

Yeah, not sure what's happening there TBH!

Suggestion : This would require a bit of refactoring, but wouldn't it be simpler to abandon the Icons.php file and store the icons as svg files in src/icons, using a prefix, for example: lucide_icon-name.svg?

I have started out the project with storing icons in an icon directory but quickly came to some limitations.
Had the idea of having them in a class constant to allow for easier diffing from the get go (to check which icons have been added / edited / removed and show stats to the user in the CLI tool).
Moreover, I believe it is quicker to get icons this way as file IO is usually slower. It's a belief though, can't back it up unless doing a benchmark + it may not even be a question in regards to the number of icons used in projects (I'm guessing a few dozens to hundreds at most).
And in practice, it has worked pretty well thus far on adaures/castopod with 158+ icons.
Anyways, I've come up with a solution for the tests by checking the contents of the Icons.php file. I think it's a good start, let me know if you have any comment :slightly_smiling_face:
I think I can merge if everything is ok on your side, thank you for helping out! :pray:

Anyways, I've come up with a solution for the tests by checking the contents of the Icons.php file. I think it's a good start, let me know if you have any comment 🙂

I just had a look at your commit and it looks very good, Iet's merge and release a v1.0 !

I think I can merge if everything is ok on your side, thank you for helping out! 🙏

You're welcome! Working together on this is fun😉

I just had a look at your commit and it looks very good, Iet's merge and release a v1.0 !

Great, thanks! I'll merge tomorrow and work on the v1.0 release this weekend :)


Update JAX-RS to 2.1

Hi,
as requested in #49, JAX-RS was not updated to the latest version 2.1.
Do you think it brings value to do so ?
Thanks !
Francois

Anyone up to speed with the current state of JAX-RS ? Is there anything that we'd need to do, or can this one be closed?


Enable basic auth by default in CFN template

confirmed it doesn't auto-flip to true if you're updating your existing CFN stack


Build some projects in parallel with Microsoft.Build.Traversal

I am building quite a few projects, some of them are dependent on other projects. Because it is a mix of managed and native projects, i cannot always use project references to express dependencies. Is there a way to express this with Microsoft.Build.Traversal, making sure that dependent projects are built in order, while independent are built in parallel?

Microsoft.Build.Traversal does not have any other way to express dependencies at the moment.  You should be able to native projects reference managed projects and visa versa.  Perhaps we can find a way to get that to work for you?

Here's a related problem.
I have this in my dirs.proj:
<ProjectReference Condition="'$(NugetPackagingOnly)' != 'true'" Include="PackageUI\src\LanguagePackage.vcxproj"  SetPlatform="Platform=AnyCPU" />
      <ProjectReference Condition="'$(NugetPackagingOnly)' != 'true'" Include="PackageUI\src\LanguagePackage.vcxproj" SetPlatform="Platform=x64" />

Unfortunately there's a build target that lives in a shared package that I don't own which creates a temp file in $(MSBuildProjectDirectory) which is not a happy way to do things.
How can I build the same project twice and guarantee it happens serially?

@shueybubbles you should be able to set BuildInParallel=false on the <ProjectReference />:
<Project Sdk="Microsoft.Build.Traversal">
  <ItemGroup>
    <ProjectReference Condition="'$(NugetPackagingOnly)' != 'true'" Include="PackageUI\src\LanguagePackage.vcxproj" SetPlatform="Platform=AnyCPU" BuildInParallel="false" />
    <ProjectReference Condition="'$(NugetPackagingOnly)' != 'true'" Include="PackageUI\src\LanguagePackage.vcxproj" SetPlatform="Platform=x64" BuildInParallel="false" />
  </ItemGroup>
</Project>


How to exit form a function composition chain on some condition

Hi Team,
We have a case where I need to break functional composition execution on some condition for example
We have chain like FunA | FunB | FunC | FunD and there is a need to execute FunC only if result of FunB follows given condition otherwise this should stop its execution.
One solution that I came to know is by throwing exception but this does not looks elegant solution. Please help us to find some elegant and graceful handling of above scenario.
Thanks

I have explained it in the Stack Overflow question I believe you posted.
There is no chain.
There is a single function composed from multiple function using JDK provided functionality (e.g. function.andThen(..)). IN other words if you want such behavior consider filing the issue with JDK developers

I am going to resolve it as there is nothing to be done here


how to destory numerous nav instances?

I see each slider or change tab create a new navcontroller instance...
When there are lots of tab views, I want to destory one of them, I use navCtrl.pop() comes error...
Becase each tab has unique navController instance, and nav.length = 1. It can not dismiss!

You should destroy the root NavController. The one that holds the super-tabs component.

@ihadeed  Hi! I don't want to destroy the root nav. The new view will be loaded or created when I slide to the new tab, but I want to unload or destroy the view of invisible tabs...

So what you're asking for is to unload the tabs if it's not possible for the user to swipe into them?
Example, if you have 4 tabs:

the component only loads tab 1 + 2
if you swipe to tab 2, tab 3 will be loaded in case the user swipes into it
if you swipe to tab 3, tab 1 will be unloaded because the user can't swipe into it anymore, tab 4 will be loaded

So basically only keep 3 tabs loaded at a time?

@ihadeed YES! That's what I mean ! just keep 3 tabs loaded at  a time. Forgive my limited ability to express! Is there a function to solve this issue ?

Not at the moment, I'll add it in future releases.

@ihadeed     I got it....  Thanks a lot!


.eslintignore is not read

I have an .eslintignore in my project root folder, and when I open files that belongs in the ignore path, fast-eslint go ahead and performed lint regardless.
The plugin seems to accept the configuration in my .eslintrc file without a problem. So, I'm wondering if I'm missing some kind of configuration

Hi @angelathewebdev, thanks for your feedback.
Indeed .eslintignore files were not read by the CLIEngine. I've done a fix to make them works just like .gitignore files works. It's slightly different from default behavior because at the moment, eslint only take into account the "current working directory" .eslintignore (see Ignoring Files and Directories), but this notion is not really present in the context of Atom.
There is no merging logic, the first file found in the directory hierarchy is picked up and read.


feat: remove MATs, add code to reactors, deprecate formulas

Description

Title (check models not API files).
New generator version updated formatting for all comments on APIs, just formatting.

Testing required outside of automated testing?

[x] Not Applicable

Screenshots (if appropriate):

[x] Not Applicable

Rollback / Rollforward Procedure

[x] Roll Forward
[ ] Roll Back

Reviewer Checklist

[ ] Description of Change
[ ] Description of outside testing if applicable.
[ ] Description of Roll Forward / Backward Procedure
[ ] Documentation updated for Change

:tada: This PR is included in version 3.13.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Bad Format On Movie.md (template)

Hello man actually I pasted your template into movie.md file, but the format is bad which part of it should be changed, or can you send your template correctly ? (I'm new to obsidian)

Hello, on your screenshot I see that you don't close note properties, that's why it's highlighted with red color. Add "---" after banner link.
Also fix place with media_type variable and update it to the following one: {{media_type}} (without useless spaces).

Thanks.

 If you have any more questions or need further assistance, feel free to reach out anytime. Happy to help! 😊🎬


Add a mapCenterOffset option.

I ended up patching the library to do something like this for Pinterest's implementation (since we have a semi-transparent sidebar that overlaps the map and want the map to center in the actionable area, not necessarily the center of the entire map) and wanted to see what your thoughts were on bringing it upstream.
This adds the mapCenterOffset option which (false by default) can be an object that contains a paddingTopLeft L.point and a paddingBottomRight L.point (if only one is supplied, it the other will be 0). If that option is passed in to the MarkerClusterGroup, when you zoom in on a cluster, it'll offset the zoom to that delta (similar to how Leaflet's fitbounds options are).
Any thoughts?
(p.s. not sure why the whitespace changes here and here are happening but they'd be ironed out before merging.)

I have the same problem. I need to add padding to the map in order to prevent the pins to show up outside the actionable area.
The solution that @connor proposed would work great for me. But I can't see you ever merged it.
In the meantime I went with @arnoldbird solution that he wrote here; https://github.com/Leaflet/Leaflet.markercluster/issues/185#issuecomment-20206733, which is to disable zoomToBoundsOnClick and make use the event binding for clusterclick instead.
markers.on('clusterclick', function (a) {
   var bounds = a.layer.getBounds().pad(0.5);
   map.fitBounds(bounds);
});

Is there any other (better) solution to this problem? Are you thinking of merging the solution @connor proposed? ping @danzel

Hi,
Just to let you know that there are actually 2 other Leaflet plugins that override Leaflet methods related to fitBounds:

Leaflet-active-area
Leaflet.ControlledBounds

I have not tested them, but they should provide the functionality you sound to be looking for (also asked for in #515).
After one of these 2 plugins is set, MCG should behave as if the view port was the portion defined / left between controls.
The only drawback would be that removeOutsideVisibleBounds option could also remove markers / clusters which are under controls, but still visible (if transparent control, or on the edges).
To overcome this, we would need a way to differentiate the actual "view port" (which includes controls) from the "active area" (portion between controls, or whatever area determined by the application). Much more work needed, probably not worth.
It could be do-able having Leaflet directly taking into account a predefined "active area", rather than just passing options to fitBounds, so that the plugins do not need to keep track of Leaflet methods to override them properly. This could be discussed directly in Leaflet issues: Leaflet/Leaflet#859 and Leaflet/Leaflet#3553.
Hope this helps.

I believe the plugins mentioned above provide this functionality in a way that makes it not necessary in markercluster.
If I'm wrong, please reopen.


ob-php broken : repo URL does not respond

What's wrong
In DoomEmacs, running doom upgrade breaks (see https://github.com/doomemacs/doomemacs/issues/7214 )
Directions to reproduce
Error comes from the fact that ob-php repo URL does not exist anymore: Going into ~/.emacs.d/.local/straight/repos/ob-php/ and running git fetch runs forever... Then outputs:
fatal: unable to access 'https://repo.or.cz/ob-php.git/': Failed to connect to repo.or.cz port 443 after 129747

Version information

Emacs version: 28.1 / Doom  3.0.0-pre
Operating system: Ubuntu 22.04.2 LTS

Unable to reproduce sans Doom:

Test Case
(straight-bug-report
  :post-bootstrap
  (straight-use-package 'ob-php))

Test run at: 2023-05-02 14:49:36
system-type: gnu/linux
straight-version: prerelease (HEAD -> master, origin/master, origin/develop, origin/HEAD, develop) 039e5c9 2023-03-12
emacs-version: GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.17.8) of 2023-04-14

Output
Bootstrapping straight.el...
Bootstrapping straight.el...done
Looking for gnu-elpa-mirror recipe → Cloning melpa...
Looking for gnu-elpa-mirror recipe → Cloning melpa...done
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...done
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...done
Looking for emacsmirror-mirror recipe → Cloning el-get...
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...
Building straight...done

Test run with version: prerelease (HEAD -> develop, origin/master, origin/develop, origin/HEAD) 039e5c9 2023-03-12
Cloning ob-php...
Cloning ob-php...done
Building ob-php...
Building ob-php → Cloning org...
Building ob-php → Cloning org...done
Building ob-php → Building org...
Building ob-php → Building org...done
Building ob-php...
Building ob-php...done

Packages:
"straight"                n/a                  develop 039e5c9 2023-03-12
"org-elpa"                n/a                  n/a
"melpa"                   n/a                  master 86ca8d06 2023-05-02
"gnu-elpa-mirror"         n/a                  master eda4c96 2023-05-01
"nongnu-elpa"             n/a                  main 0120f3d 2023-03-14
"el-get"                  melpa                master 22c83206 2023-03-19
"emacsmirror-mirror"      n/a                  master 606c3dc 2023-05-02
"ob-php"                  melpa                master 6ebf779 2022-02-21
"org"                     org-elpa             main 5ec364a1a 2023-05-02

Are you able to reproduce the issue sans Doom or by directly trying to clone the repository from the command line?:
git clone https://repo.or.cz/ob-php.git/

Hi,
Thanks for the quick response.
Indeed, git clone is working today. And doom upgrade seems to have succeeded too.
Was apparently a network problem in the end, but I don't think it was a problem on my end, as I tested the URL with:
https://downforeveryoneorjustme.com/
which told me that it was "down for everyone".
Thanks anyway!


[WIP] Translation for _toctree, Chapter 0 and Chapter 1 in Bengali

Partially Fixes #47

_toctree.yml and Chapter 0 is done till now, currently working on Chapter 1

Hi @MKhalusova, this PR is ready for review!

Chapter 2 Added

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

CC @mishig25 Can you please take a look to see why the preview isn't working for another language? Thanks!

@susnato thanks a lot for the translation! For the language names, we use 2-letter format. Therefore, according to this table, instead of ben, it should be bn. After this change, the preview will work 😊

@susnato Please address the comments by @mishig25 so that the course is built correctly, and then we'll be able to merge

Hi @mishig25 thanks for the suggestion, the PR preview is working now. :hugs:

Hi @MKhalusova , I have pushed the changes and the PR is correctly building now!


fix: Microsoft.OneDrive v22.002.0103.0004 Architecture

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

@ryfu-msft we missed the architecture missmatch here..

@ryfu-msft we missed the architecture missmatch here..

Oops, sorry that's my mistake. Thank you for catching that :)

@ryfu-msft we missed the architecture missmatch here..

Oops, sorry that's my mistake. Thank you for catching that :)

weeeell, probably on both, and some on that damn Automation that keeps switching the Architectures around >:c


torque/current mode problem

Hi, when I'm using current mode, no matter what current value I set, the motor just keeps spinning faster and faster, until hitting the speed limit.
During the process, my power supply also showed the current started from 0.1A, and went all the way to 0.36 A.
I think the current control mode is supposed to consume the same current from the power supply, is that correct? If not, did I do something wrong?

Hi, when I'm using current mode, no matter what current value I set, the motor just keeps spinning faster and faster, until hitting the speed limit.

Yeah, that's typical.   You don't have a load on the motor so as soon as it overcomes stiction, it will accelerate to max speed.

I think the current control mode is supposed to consume the same current from the power supply, is that correct?

That is not correct.  The current drawn from the power supply will change depending on the speed of the motor.  In short, the power drawn by the motor and supplied by the PSU will match.  The PSU is constant-voltage, the motor is constant-current.

This is completely normal. Constant current = constant torque. If torque is higher than friction and load, it will accelerate. So if there is no load, it will accelerate to max speed.
If all is working as designed, current is limited on motor (which provides constant torque). Since power = speed * torque, and speed is increasing, you will see increased power consumption from power supply when at higher speed.


fix: Make sure the enumerable is a List

This allows to setup the Tags field which is a List. IEnumerable of the SelectListIterator does not convert to a List. An IEnumerable of List does.

[x] Have you signed the Contributor License Agreement?
[x] Are you working against an Issue? - No.

After PR#373 the code was introduced to Trim installer URLs, and trim these properties.
Apparently this works for these URLs that get set to a property of IEnumerable<string> but when trying to set the Tags when setting optional default locale fields, this threw an Exception:
System.ArgumentException: 'Object of type 'System.Linq.Enumerable+SelectListIterator`2[System.String,System.String]' cannot be converted to type 'System.Collections.Generic.List`1[System.String]'.'

Apparently an IEnumerable<string> can be set to a List<string> when the enumerable comes from an actual List<string> but not from a Linq based List.
Turning the Trimmed list back into a real List (it originates from Prompt.List()) it seems to work for both URLs and the Tags.
Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-create/pull/390&drop=dogfoodAlpha

/azp run

/azp run


[IC3 ACS Server Calling ] API Review

New API Review meeting has been requested.
Service Name: IC3 ACS Server Calling
Review Created By: Fariba Haghbin
Review Date: 07/19/2023 09:00 AM PT
Onboarding Record:
PR: https://github.com/Azure/azure-rest-api-specs/pull/24482
Hero Scenarios Link: Not Provided
Core Concepts Doc Link: Not Provided
Description:
Detailed meeting information and documents provided can be accessed here
For more information that will help prepare you for this review, the requirements, and office hours, visit the documentation here

Meeting updated by Fariba Haghbin
Service Name: IC3 ACS Server Calling
Review Created By: Fariba Haghbin
Review Date: 07/18/2023 01:00 PM PT
Onboarding Record:
PR:
Hero Scenarios Link: Not Provided
Core Concepts Doc Link: Not Provided
Description:
Detailed meeting information and documents provided can be accessed here
For more information that will help prepare you for this review, the requirements, and office hours, visit the documentation here

Meeting updated by Fariba Haghbin
Service Name: IC3 ACS Server Calling
Review Created By: Fariba Haghbin
Review Date: 07/05/2023 09:00 AM PT
Onboarding Record:
PR:
Hero Scenarios Link: Not Provided
Core Concepts Doc Link: Not Provided
Description:
Detailed meeting information and documents provided can be accessed here
For more information that will help prepare you for this review, the requirements, and office hours, visit the documentation here

Meeting updated by Fariba Haghbin
Service Name: IC3 ACS Server Calling
Review Created By: Fariba Haghbin
Review Date: 07/05/2023 09:00 AM PT
Onboarding Record:
PR: https://github.com/Azure/azure-rest-api-specs/pull/24482
Hero Scenarios Link: Not Provided
Core Concepts Doc Link: Not Provided
Description:
Detailed meeting information and documents provided can be accessed here
For more information that will help prepare you for this review, the requirements, and office hours, visit the documentation here

API Stewardship Board Review: 5-Jul-23
Consider modeling the kind as an anyOf and drop the Source suffix so that we are consistent in the naming, e.g. text, file, etc..

Here's a quick overview of how to refactor PlaySource into a true polymorphic model.
First we change PlaySource into a base schema by removing the properties for the variants and declare "kind" as the discriminator.
    "PlaySource": {
      "required": [
        "kind"
      ],
      "type": "object",
      "discriminator": "kind",
      "properties": {
        "kind": {
          "$ref": "#/definitions/PlaySourceType"
        },
        "playSourceCacheId": {
          "description": "Defines the identifier to be used for caching related media",
          "type": "string"
        }
      }
    },

Then create a new schema for each of the variants. For the existing "file" variant, this looks like:
    "FilePlaySource": {
      "type": "object",
      "properties": {
        "file": {
          "$ref": "#/definitions/FileSource",
        }
      },
      "required": [
        "file"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/PlaySource"
        }
      ],
      "x-ms-discriminator-value": "file"
    },

The "text" variant looks similar:
    "TextPlaySource": {
      "type": "object",
      "properties": {
        "text": {
          "$ref": "#/definitions/TextSource",
        }
      },
      "required": [
        "text"
      ],
      "allOf": [
        {
          "$ref": "#/definitions/PlaySource"
        }
      ],
      "x-ms-discriminator-value": "text"
    },

From there, I think you can see what the "ssml" variant should be -- or you can let CoPilot write it for you ;-).

We already have FilePlaySource in GA. I am not sure how to make changes to that without breaking the existing sdk versions.
Also I have seen problem with deserializing polymorphic models over the wire, which would mean we will have to add a custom deserialization logic and maintain it.
Our customer facing SDK models are polymorphic already. I would prefer the API models for play source as they are currently. The current models keep our APIs simpler and reduces maintenance of custom code for deserialization.


p2p: forever connected to lazy peer with no progress

As I was implementing the same geo peering feature, I started by peering to a single outbound peer to test that my feature was working as intended. With same geo peering, the pool of peers you fetch is much smaller. There was one peer that, any time I would connect to it, I would be stuck in the ensurePeers 30s check indefinitely. It seems there is no check to determine if a peer is "lazy", it only checks how many peers we are connected to. Just as a proof of concept I added the following logic branch to ensurePeers:
https://github.com/osmosis-labs/cometbft/blob/2c8bf088f89f6374a8eae3124060eabb4536ba60/p2p/pex/pex_reactor.go#L464-L469
When I connected to the lazy peer, we eventually disconnected, connected to a new peer, and began syncing. Obviously part of the solution here is "don't connect to only one peer", but we shouldn't be wasting peer slots on peers that do absolutely nothing in the first place.
Would like to brainstorm here on what the proper solution is. In my mind, what I did is close to what we want, but I think this Idle check should only be done on blocksync right? As in, during block sync, we really expect all the peers we are connected to to be sending us data. However, (this could be a wrong assumption), when we are caught up to the head, it would be acceptable for a peer to send us nothing for 30s, yet we would still want to be connected to them.
Please let me know your thoughts and I will be happy to upstream the desired solution.
As a side note, this does happen on the non geo peering branch, its just less likely to connect to a dead peer given the pool is every country rather than just the country the node is in.

Interesting, but needs additional triage to understand.
The connection with a peer MConnection exchanges ping/pong messages with the connected peer. If responses are not received within the configured interval, the connection is closed:
https://github.com/cometbft/cometbft/blob/8e046e2c273c0feb9f3a0586c490ebefadfd3e70/p2p/conn/connection.go#L464-L467
The default Pong timeout is 45s.

Would like to brainstorm here on what the proper solution is. In my mind, what I did is close to what we want, but this Idle check should only be done on blocksync right?

Well, not really. We want to discard lazy or outright malicious peers in all parts of the stack (block sync, state sync, consensus, mempool, etc.). There was always an idea of a peer scoring system, but we never implemented it. If I'm right, we only promote good peers (sending us block parts and other messages) and disconnect from "bad" peers, who send us invalid block parts and other stuff.

I'm not sure yet where the best place for this check is, but it's probably somewhere in Switch. @cason @sergio-mena, what do you think?

So, again, we have a transport layer level 45 seconds timeout for idle connections. This is probably longer, because this timer starts when we send a ping, and we don't send pings all the time.
A second way was to conceive at p2p level (Switch probably) some mechanism to identify peers that are too slow, or lazy like you said, or even disconnected and we are not still aware of that (because the TCP connection is still there, and the pong timeout has not expired). I don't like this approach, to be honest.
The third way is to enable this "are-you-alive?" form of check in some reactors. Understandably, since a node typically starts from state or block sync, they are good candidates. But what happens, for instance, when we have a new network to which nodes are gradually joining? And we have a start time on the genesis file. Are we disconnecting just because they don't have anything useful to send?

As part of the scoring system, I notice that we store a peers avg bytes sent to you, but not how much you have requested from the peer. In other words, we don't want to penalize a peer for having low avg bytes if we are not requesting much from them, but should get rid of them quickly if they have lower avg bytes when we are requesting, which from an initial check I don't think we currently do (obviously not the full solution, but gets us closer to this "peer ranking" that I think will solve a lot of problems)

Has there been any design docs written on how a proper peer scoring system would be in comet? If that was broken down into clear issues I would be happy to take some of those on!

Has there been any design docs written on how a proper peer scoring system would be in comet? If that was broken down into clear issues I would be happy to take some of those on!

There were in the p2p refactoring work performed several years ago, that was at the end reverted. But still there the scoring system was pretty rough: https://github.com/tendermint/tendermint/issues/5670 and https://github.com/tendermint/tendermint/pull/6277.

@cason Is it possible the connect node is sending / receiving pings / pongs, but not actually sending any block data? I ask because, I had a node in this state for over an hour, connected to the same peer, and the amount of data sent was 0.

Yes, it is possible. The ping/pong are I-am-alive messages, although also sent when we are sending data (usually, we only rely on these messages when the channel is idle, not like this in our implementation, unfortunately).
I think it is possible, as ping/pong messages are not counted as data exchanged. Probably, only full messages (all packets received) are counted.


How to integrate into actual softkeyboard.

Does anyone knows how to integrate this project into the actual softkeyboard? I mean not the stock keyboard (AOSP), but the custom softkeyboard sample provided in the legacy android sdk.

This project is deprecated, Revamped Version is HERE


⚠ BCR Bot has degraded performance

In 777e476, BCR Bot (https://bcr.alternativasinteligentes.com/BCRApi/web/chatbot) experienced degraded performance:

HTTP code: 200
Response time: 913 ms

Resolved: BCR Bot performance has improved in 100cd5f.


[chart-payments-received]: Start and end dates for chart-payments-received

Added start and end flags for chart-payments-received to get payments for a range of dates. Start and end flags take YYYY-MM-DD format.
Files changed:
bos
get_received_chart.js

what happens if days are defined and also a date range, but these values conflict

If dates are defined, days is just ignored.

if days are ignored i think it should be invalid as an argument

Fixed it.


HO: Remove redundant watch for routes

We already have routes in the managedResources list, if they are
supported:
https://github.com/openshift/hypershift/blob/e9580eea83351e81edb79e10cf6631d06afbb944/hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go#L225-L228

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #
Checklist

[ ] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

it is here https://github.com/openshift/hypershift/blob/21eb34e049bc6121dab239e7d0c6892c7787e86a/hypershift-operator/controllers/hostedcluster/hostedcluster_controller.go#L225-L228
/lgtm


Section link syntax when using # sections?

When using the underscore syntax to declare a section:

section {#section-id}
======

the format seems to hide the section ID: "1. Section"
When using the # syntax:

# section {#section-id}

the section seems to be displayed as "1. Section {#section-id}"
Linking and TOC generation seems to work fine in both cases, it just looks ugly.
I could not find anything in the bikeshed documentation on the syntax for setting an ID on a section, just on linking to it - this may be obvious to long-term users, but it wasn't obvious to me.

Currently it works if you "close" the heading, like:
# section # {#section-id}

but I'm not sure why I thought that was a reasonable restriction. It's not like letting you write a literal {#foo} at the end of your heading is a common/useful thing, and the underline syntax implicitly disallows it anyway.
I'll fix.

What is the syntax when it is a deeper heading? Is it ### section ### {#section-id}?


Create Linestring3d with variable number of Points

Hi,
Is there a posibility to create a Linestring3d with a variable number of Points?
I want to build a Linestring but I have a unknown quantity of Points in a array. Can I call the function with these or do I have to hand over each point individually to the function?
Thanks and best regards

You mean by using the constructor? You can just pass a vector of Point3d to this constructor.
Alternatively you can also use insert. That should work on any container, not only vector:
std::array<Point3d> points;
LineString3d ls;
ls.insert(ls.end(), points.begin(), points.end());

This issue has been inactive for a while. I'm assuming the original question has been answered.


Flat Route Convention route matching problem

I am having an issue with the flat directories convention.  This appears to be a bug unless I'm misunderstanding the convention.
I have the following structure
routes/
  _dashbaord/
    _index.tsx <- pathless layout route

  _dashboard.foo.index/
    _index.tsx <- index route nested in dashboard layout

  _dashboard.foo.$id/
    _index.tsx <-detail page under dashboard layout - this renders an Outlet

  _dashboard.foo.$id.delete/
    _index.tsx <- renders as a child of the above route (a delete confirmation modal)

  _dashboard.foo_.create/
    _index.tsx <- renders as a child of LAYOUT - does not next under the above Outlet

  _dashboard.foo_.$id.edit/
    _index.tsx <- SHOULD renders as a child of LAYOUT (this breaks)

What I am noticing is that the last route above (edit) matches on both of the following:
_dashboard.foo.$id/
 _dashboard.foo_.$id.edit/
Where I do not want to match on the 1st "details" route. I want "edit" to be nested inside LAYOUT. In this current scenario only the "details" route is actually rendered (so I'm not even getting the page I want) but loaders for both are being called.

I'm putting together a repo to reproduce

Thanks. I'll take a look. What does npx remix routes show?


"JAVA_HOME is not set and no 'java' command could be found in your PATH" error when both are set

Godot version
v4.2.stable.official [46dc27791]
System information
Godot v4.2.stable - Ubuntu 22.04.3 LTS 22.04 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 970 (nvidia; 535.129.03) - Intel(R) Core(TM) i9-10900K CPU @ 3.70GHz (20 Threads)
Issue description
I have a project I've added the admob plugin to which requires building with gradle. When exporting an android gradle build It errors out with "JAVA_HOME is not set and no 'java' command could be found in your PATH", even though I have set both variables in the .bashrc and tested that they are available in the terminal.

java --version
openjdk 17.0.9 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing)

when running ./gradlew build in the android/build folder, I get the following error:

compileDevJavaWithJavac FAILED
error: package org.godotengine.godot does not exist
Steps to reproduce
export with these settings (admob isn't causing the issues its just when building with gradle)

Minimal reproduction project
You can do this with an empty project. Download the android build template, set to export as gradle build and you get the error

You should ask the developers of the Admob plugin if you have issues with their build system.

You should ask the developers of the Admob plugin if you have issues with their build system.

I mentioned it to them before and they said the error is unrelated to the admob plugin. I tried disabling admob with "Use Gradle Build" still enabled and it gave the same result I am describing

Have you tried to launch Godot from within the terminal? Are you able to reproduce the issue?

Oh my gosh thank you so much! It works with and without the admob plugin now
I was stuck on this for a while. Idk why I didn't think of that. I was running the godot app through an alacarte shortcut and apparently that messes up its access to some environment variables or something

Closing the issue as it seems to be resolved.


Buffering for createCollection and dropCollection()

Right now, if you call Connection.prototype.createCollection() in the driver layer before calling openUri(), you'll get a "Cannot read property db of undefined" here: https://github.com/stargate/stargate-mongoose/blob/cd66b63bd9042b6e7b8f70626de3d7dab7e6534f/src/driver/connection.ts#L35
Mongoose unfortunately relies on this behavior: when you call mongoose.model(), that makes Mongoose call Model.init(), which calls createCollection() by default. This is why I had to disable autoCreate and autoIndex here: https://github.com/meanIT/mongoose-astra-sample-apps/commit/2085069107d926fb8be2ec51df5789a8796df565#diff-e5cca2ae504d457cacda76ef11ce3b6c53c9222701d38f080b9c1b2fc2ce8562 . This is why Mongoose has this wrapConnHelper() function.
Not a blocker for initial release, but we should make a note to recommend disabling autoCreate and autoIndex for now until we support this. Otherwise you end up with collections not being created by default, and no way to diagnose why.

Yep, let's support this.


Blog project is not loaded correctly into Solution.

When starting the solution the prompt message displayed that “One or more projects in the solution were not loaded correctly. Please see the Output Window for details.”
And The Blog project in VS is marked as (unavailable)
See in attachment:

Fixed, please test on your side.

Fixed.


2FA and Pasword Manager in a single app.

I discovered this grateful app on F-droid when I ditched all GAPPS and privative google components, so I realised that the app is so similar (in design) with Authenticator Pro, so i thinked, why don't suggest merge both apps into a New App with Password Manager and 2FA auth? both apps are similar in design, and objetive, secure our accounts sessions.
This is not a new concept, Bitwarden actually does, but it is just available for paid users, and it is more comfortable having both functions in a single app.
The app is released under GPLv3 license (so it is libre too and both licenses are compatible) and it is developed with C# and Python langs, but I really do not know about tecnical impediments, but I suppose it is possible to do something, I want to say that I am not the Authenticator Pro developer and I do not know C#, Kotlin or Python, so, I cannot help coding, but I can help trying the betas, reporting bugs, translating to spanish and giving a periodical feedback.
My intention opening these issues is to leave the suggestion under the table, joining efforts you can do more and better things, please consider the suggestion.
Here's the issue with the suggestion on Authenticator Pro repository.

Thanks, @EuriNaiz for your suggestion, I will surely look into that and implement it in near future.


Upgrade pandas, remove unnecessary tests.

Hi guys, this is my first pull request so I hope I didn't mess up anything...
Anyway, I wanted to install a newer stable of version of pandas (0.16.1 instead of 0.15.0) and I managed to do it locally.
I have noticed that there was a pre-check script modifying the pandas test files so I fixed them according to version 0.16.1. After that, all tests passed with success on my machine.
Specifically, I upgraded the name variable to match 0.16.1 and changed the sha256 to its new value. As mentionned, I removed the preCheck variable that contained the two tests that seem to be passing (at least on my machine) with this new version.
Thank you guys,
shunxing

Ping @7c6f434c

Tests fail with ImportError: html5lib not found, please install it

Also duplicate of #8288

Hey @shunxing, thanks for attempting the update btw. Please try again when next version of pandas comes along :)

@teh @domenkozar sorry but I forgot to add some dependencies in the nix file, like html5lib and some others.
I correctly installed the new version of pandas on my personal machine, adding the right dependencies but I haven't done it on the machine from where I pushed.
I will ask a new merge in few days.
Thanks for your support.

We already have the new version in master so you don't have to do anything
for this branch :)
On 23 Jun 2015 22:42, "Shunxing"<EMAIL_ADDRESS>wrote:

@teh https://github.com/teh @domenkozar https://github.com/domenkozar
sorry but I forgot to add some dependencies in the nix file, like html5lib
and some others.
I correctly installed the new version of pandas on my personal machine,
adding the right dependencies but I haven't done it on the machine from
where I pushed.
I will ask a new merge in few days.
Thanks for your support.
—
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/pull/8411#issuecomment-114649710.

@teh oh I see :) I'm a newbie in github :x I will do it for next version


sg update breaks module

https://github.com/cyberlabrs/terraform-aws-opensearch/commit/95533900ab281592548dde7e6a55ca7837b584ae var should match input sg_ids not sg_id, I am unable to create a PR to fix

My bad!
Opening a PR soon

https://github.com/cyberlabrs/terraform-aws-opensearch/pull/21
Please approve (:


Workaround for strings coming in as byte arrays

this is temporary until we understand the issue.

+1


question.json + pre_test_result [your_pre_generated_queries_file]

[UPDATE] Nevermind, your_pre_generated_queries_file is already included at ./results/DAIL-SQL+GPT-4.txt
I hope all is well, I'm attempting to re-implement this research paper, and I was wondering if there is any chance that you have a pre_generated_queries file that I could use to do some testing of the functionality. If not, no worries. Thanks and the paper is awesome, great work!
python generate_question.py
--data_type spider
--split test
--tokenizer gpt-3.5-turbo
--max_seq_len 4096
--selector_type EUCDISMASKPRESKLSIMTHR
--pre_test_result [your_pre_generated_queries_file]
--prompt_repr SQL
--k_shot 9
--example_type QA

Thank you very much.
We take Graphix as our preliminary model in our experiments in the paper. We have upload the your_pre_generated_queries_file in results/graphix_result.txt for Spider dev.

Thank you, this is super helpful. I really appreciate it!


how to insert the data does not render?

//layout.html
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{% block title %}Docs.ren{% endblock %}</title>

    <meta name="keywords" content="{% block keywords %}--(Data in the database)--{% endblock %}" />

(Data in the database)  It is the fixed data

Other pages to inherit it, but do not need to pass keyword


Relationship to AppDir specification at docs.appimage.org/reference/appdir.html?

There is no hint which one overrules the other, while some content is contradicting.
Examples:

icon file as "PNG with 256x256 or 512x512 pixels" vs. "in the best available quality, ideally a vector graphic"
"SHOULD contain exactly one $APPNAME.desktop file in its root directory with $APPNAME being the name of the payload application" vs. "The name of the file doesn’t matter, as long as it carries the .desktop extension."
"MAY contain an $APPNAME.png file in its root directory" vs. "These four types of entries MUST be contained in the AppDir" (one type being myapp.)

I am not entirely happy with the content of docs.appimage.org/reference/appdir.html since it might be (mis-)interpreted that we own the AppDir spec. Which is not the case.
https://github.com/AppImage/AppImageKit/wiki/AppDir says:

The AppDir format for application directories was first introduced by ROX Filer. http://rox.sourceforge.net/desktop/AppDirs.html

Over time, we have been habitually extending the AppDir format, for example by using files for desktop integration if they happen to be in usr/share. But this has really never been formalized so far.

By the way, the History section is more appropriate than the outdated wiki page:

History
The AppDir format has first been described by ROX Filer, and has since been extended by the AppImage project to suit their needs.

The General Description contains info on what is being used from the ROX description, and that we don't use a couple of entries but introduced our own:

These two entries have been re-used from ROX Filer’s specification. ROX Filer actually specifies additional (but optional) entries, however, AppImage doesn’t use these. Instead, the following ones have been introduced:

Therefore, my point is we actually inherited their spec and developed on it. Call it a fork or a new version, but we're not using theirs but have our own. Therefore I felt it was time to write a "specification" for it. Please show me why you think that is not the case.

My quick brainstorm take on things is this:
the content of an appimage can be possibly split in three types:

application payload (all the content needed by the app itself to run)
application metadata (info as useful for store, installation, updates)
system integration data (things which will be copied into the system, not used by app itself)

Some content might fall into more than one type, if reuse is wanted.
The type 1 depends on what structure the application software itself expects/relies on (as also prepared by AppRun), both in format of content and where to find in the appdir filesystem.
The type 2 is mainly dependent on what the AppImage spec defines, as one-sided offer to/contract with managers of AppImage instances (e.g. stores & installation managers), so no external requirements on format and filesystem location.
The type 3 is dependent in the content and format in what is needed for the systems supported, but not where things are placed inside the appdir filesystem and in which format, as long as things can be generated from it as needed for the system to integrate with.
From this, to allow flexibility for the future as well as avoid unneeded constraints on the specification of appdir/appimages, having type 2 and type 3 each in some own, separate structure and format allows to decouple things. E.g. if one day non-xdg-fs-based application software is distributed in AppDir format, metadata and integration data would not be affected, as they are independently defined and stored/accessed, so those handlers only looking at type 2 and type 3 data can work as before.
To avoid data duplication, if some app payload files can be reused for metadata & system integration, they could be sym-linked/hard-linked from the respective other locations. As it already is done often with the .DirIcon and $APP.desktop files.
When it comes to (partial) compatibility to existing self-contained application container formats, I am undecided if one should try to go for that, as it might result in also only partially working solutions if those try to do cross support.
Having an own format is fine, as long as it is well designed and easy to support. It might actually be of an advantage, if it results in solutions which work better.
Compatibility might be wanted though to be considered on formats and ontologies e.g. when it comes to metadata, so things can be easily mapped e.g. when converting/importing from other app formats, like pixel icon sizes, icon image formats, category/tag types, etc.
Then I am also a fan of release often & early, also when it comes to things others rely on, like specs. Of course this results in unavoidable breaking changes now and then when backward compatibility is not easily possible, rendering old efforts/artifacts no longer working, but that is the price of advancing.
For me it mainly boils down to proper communication and a bit orchestrated roll-out. If changes are announced in advance, if changes bring obvious advantages, if stakeholders are in the loop, if dates are met, then most people are fine with changes.  We do specify our own list of requirements for AppDirs already. You can't reject this fact. It's very important to stand behind this and actually also specify that, that way you have a document you can share with others and refer to in discussions.

We can either:

In the AppImage spec, state that into an AppImage goes a ROX AppDir, that MUST and/or SHOULD have certain additional properties (this was my original approach); or
In the AppImage spec, state that into an AppImage goes a self-defined "AppDir 2.0"

Which approach do we want to use?

The first approach is equal to the second, but less obvious and probably harder to read/understand. I'd go for the second.
By the way, I never said the AppDir spec does have to stay in that shape. I'm fine with rewriting it. We could move it into this repo even.
Why does it have to be called 2.0?

Could also be 1.x, if we break nothing from ROX's version.

To be investigated, I guess. Do you want to give writing an AppDir spec based on my work in the docs a try?

As said before, I try to avoid unnecessary work "wie der teufel das weihwasser". I think it's sufficient to slightly tweak AppImageSpec like @kossebau has started doing.

Disappointing. We really need better and more specific documentation. Specifications are documentation...


how to prepare the data ?

hello! can I ack you some questions about the data? In sls_settings_v2_FR.py file,

how to make the './new_exp_fr/embedding/embedding.bpe.big.txt' file?  And is './new_exp_fr/informal.train.rule' a txt format file? Thank you very much!

Hi,
In s2s-sls-rnn, we use fasttext to pretrain the embedding on Yahoo L6 corpus. The text is tokenized by nltk and converted to subwords by bpe encoding. The bpe codes is also produced on Yahoo Corpus.
In s2s-sls-gpt, we directly use the bpe codes and pretrained model of gpt.
"val" means validation set. "inform" is the source of the task, "formal" is the target of the task. It is a txt file, line by line. Each line is the source sentence of a sample in validation set.
Best,
Yunli
---Original---
From: @.>
Date: Thu, Feb 24, 2022 23:49 PM
To: @.>;
Cc: @.***>;
Subject: [jimth001/formality_style_transfer_with_shared_latent_space] how toprepare the data ? (Issue #2)
hello! can I ack you some questions about the data? In sls_settings_v2_FR.py file,
how to make the './new_exp_fr/embedding/embedding.bpe.big.txt' file?  And is './new_exp_fr/informal.train.rule' a txt format file? Thank you very much!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

OK, thank you very much!
------------------ 原始邮件 ------------------
发件人:                                                                                "jimth001/formality_style_transfer_with_shared_latent_space"                                                                                @.>;
发送时间: 2022年2月28日(星期一) 凌晨0:24
@.>;
<EMAIL_ADDRESS>主题: Re: [jimth001/formality_style_transfer_with_shared_latent_space] how to prepare the data ? (Issue #2)
Hi,
In s2s-sls-rnn, we use fasttext to pretrain the embedding on Yahoo L6 corpus. The text is tokenized by nltk and converted to subwords by bpe encoding. The bpe codes is also produced on Yahoo Corpus.
In s2s-sls-gpt, we directly use the bpe codes and pretrained model of gpt.
"val" means validation set. "inform" is the source of the task, "formal" is the target of the task. It is a txt file, line by line. Each line is the source sentence of a sample in validation set.
Best,
Yunli
---Original---
From: @.>
Date: Thu, Feb 24, 2022 23:49 PM
To: @.>;
Cc: @.***>;
Subject: [jimth001/formality_style_transfer_with_shared_latent_space] how toprepare the data ? (Issue #2)
hello! can I ack you some questions about the data? In sls_settings_v2_FR.py file,
how to make the './new_exp_fr/embedding/embedding.bpe.big.txt' file?  And is './new_exp_fr/informal.train.rule' a txt format file? Thank you very much!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: @.>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.>


Add config option to disable proper SSL connection verification to the JWT Auth service

WARNING: Should only be used for testing environments.

LGTM, thanks!


[Bug:] 在虚拟机 ubuntu22 中使用 brew 安装时出现了一些问题.

Bug report 🐞
Version & Environment
操作系统: Windows 10

软件: VMware 16.1

虚拟机环境: Ubuntu 22.04

HOMEBREW配置:
HOMEBREW_VERSION: 3.4.11-39-g8a5f664
ORIGIN: https://mirrors.ustc.edu.cn/brew.git
HEAD: 8a5f6645b8bde6d38b78936f23ce2acf94ff3a6a
Last commit: 19 hours ago
Core tap ORIGIN: (none)
Core tap HEAD: (none)
Core tap last commit: never
Core tap branch: (none)
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew/Homebrew
HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Homebrew/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.cloud.tencent.com/homebrew-bottles
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_DISPLAY: :0
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.8 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8/bin/ruby
CPU: quad-core 64-bit skylake
Clang: N/A
Git: 2.34.1 => /bin/git
Curl: 7.81.0 => /bin/curl
Kernel: Linux 5.15.0-30-generic x86_64 GNU/Linux
OS: Ubuntu 22.04 LTS (jammy)
Host glibc: 2.35
/usr/bin/gcc: N/A
/usr/bin/ruby: N/A
glibc: N/A
gcc@5: N/A
xorg: N/A

Expection
可以正常安装, 并且保证运行.
Actual results (or Errors)
$ brew install modern-magic/tap/grm
Warning: No remote 'origin' in /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core, skipping update!
==> Tapping modern-magic/tap
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/modern-magic/homebrew-tap'...
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 19 (delta 8), reused 12 (delta 4), pack-reused 0
Receiving objects: 100% (19/19), 6.61 KiB | 2.20 MiB/s, done.
Resolving deltas: 100% (8/8), done.
Error: Invalid formula: /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/modern-magic/homebrew-tap/grm.rb
grm: undefined method `arm' for Hardware::CPU:Class
Did you mean?  arm?
Error: Cannot tap modern-magic/tap: invalid syntax in tap!

我对 HOMEBREW 不是很了解, 或许是 HOMEBREW 的问题?

这是brew文件的错误。我会尽快进行fix。并且发布最新版本

新版本在brew上已经发布。请参考README进行安装。


Convert s3cmd to awscli.

@nahiluhmot @tlunter This uses the official AWS command line tools to interact with S3.

@bfulton @tlunter circling back on this pull.

Have you followed up on the region flag?

Yes, that's the last commit.

Can we document what version of aws cli we need? We'll need to rebase and change all the s3cmd to aws-cli. Unfortunately not two files anymore.

I don't know specifically which version fixed it, but the version in the Ubuntu repos that doesn't work is 1.2.9-2, and the version I'm installing is 1.6.10. The most recent bug fix related to s3 regions was in version 1.6.3, so it's probably safe to say we require that as a bare minimum. https://aws.amazon.com/releasenotes/CLI/1089799671891305

Instead of rebasing can we just do find/replace against a new branch? Might save some time.

Just opened: https://github.com/swipely/dockly/pull/55


add flags to prevent the configuration from persisting on local file system

For some use cases, saving WireGuard private key in plain text file will be a security concern, although kernel-native WireGuard does. File system encryption and setting proper permission could mitigate the concern, but this PR will add another way to improve the situation. In short:
$ ./soratun boostrap <cellular|sim> --dump-config | sudo ./soratun up --read-stdin

bootstrap <cellular|sim> --dump-config flag will bootstrap the virtual SIM, then output configuration (arc.json equivalent) to stdout,

Since sim and cellular based bootstrap is idemponent, we can repeatedly do that. Every bootstrap will return same virtual SIM, with new pair of WireGuard key etc.
On the other hand, authkey based bootstrap will create new virtual SIM every time when it's called, if arc.json does not exist. This means additional costs. Hence it does not make sense to support this way for authkey.

up --read-stdin flag specifies reading the configuration from stdin, then connect to the SORACOM platform

The changes will prevent the configuration from persisting on local file system.
Some notes:

Platform native tools and APIs e.g. macOS Keychain is a good way to store such secrets, but will introduce additional complexity.
--config flag will be ignored if --dump-config and --read-stdin are specified. As a start point, additionalAllowedIPs, mtu, and persistentKeepalive can be specified via respective flags. I may add others e.g. interface, logLevel, etc. based on future feature requests. (it might needs some internal refactoring.)
The tag should be v1.2.0 once merged.

@moznion Appreciate your detailed review, and really sorry for not responding to it earlier. Please have a look into the changes and give us your comments please. Thanks!

Thanks again for the help! I added some commits and reply back to your comments. Please kindly review the changes again.


Post the project description on the Stellar discord

...and announce that we have started.
Need a project role to do that.

done


Sync PR labels with closing issues

Related to #1087
Follow up to #1112

📚 Documentation preview 📚: https://pymc-marketing--1113.org.readthedocs.build/en/1113/

Might need to figure out the permissions on this but I think this might be good. Could be a trial and error

@wd60622 I think we are missing some permissions, see https://github.com/pymc-labs/pymc-marketing/actions/runs/11498688990/job/32005011527?pr=1096


[release-2.8] Update to Go v1.22

ref: https://issues.redhat.com/browse/ACM-14251

/override ci/prow/test-e2e-grc-framework
/override "security/snyk (Red Hat Advanced Cluster Management for Kubernetes)"


The 'Name' column can't be moved for one File Share & ADLS Gen2 blob container

Storage Explorer Version: 1.20.0-dev
Build Number: 202100618.7
Branch: rel/1.20.0
Platform/OS: Windows 10/ Linux Ubuntu 16.04/ MacOS Big Sur 11.4
Architecture: ia32/x64
How Found: Exploratory testing
Regression From: Not a regression
Bug Descriptions
The 'Name' column can't be moved for one File Share & ADLS Gen2 blob container.
Steps to Reproduce

Open one storage account -> File Shares.
Select one file share -> Open it.
Try to move the 'Name' column.
Check whether it can be moved.

Expected Experience
It can be moved.
Actual Experience
It can not be moved.

Addition Context
This issue doesn't reproduce for one regular blob container & resource group.

Won't fix for now. We expect this to be fixed in the future when we move to new version data tables col reorder plugin for Gen2 and File Shares.


Can't no longer pull buckets out of furnaces

In Vanilla 1.20.4, you can pull a bucket out of a furnace with a hopper below it. After installing this mod it seems that functionality was removed.

This is intentional. This mod removes that vanilla inconsistency because it:

Allows you to pull from the side of blocks using omnihoppers, and more importantly,
Adds a mechanic to let Floppers (The copper fluid hoppers) fill buckets in furnaces directly.


documentation upgrade path from beta5 to beta6

Hi,
As beta6 as been released a month ago we're looking into upgrading our project generated with beta5 to beta6.
However I can't find any upgrade documentation, it'd be helpful to have such documentation, or even just a checklist, to make sure we don't forget anything.
Having this checklist as part of the release notes would probably the best way to find it.

Hi,
this is great point, I will create some migration document for next releases, but beta6 has massive rewrite of identity model, that you should probable create new project from template and compare manually what it is changed.
Other releases should be more stable, without breaking changes - I hope. :)

Thanks! Yes creating a new project and comparing with current is a bit of a heavy upgrade path.
Also the beta 6 release is only showing 7 commits. Is it possible that either beta 5 or beta 6 is tied to the wrong commit? https://github.com/skoruba/IdentityServer4.Admin/releases/tag/1.0.0-beta6

It should be connected with correct commit.

Hum, you're right, I was a bit confused by the UI, the diff link is https://github.com/skoruba/IdentityServer4.Admin/compare/1.0.0-beta5...1.0.0-beta6

For sure, it looks correct. :)

@baywet - I am currently closing this issue, because I will release new beta version and this will be outdated. :)
Thanks for this feedback, I will create some docs about breaking changes for new release.

So you will document how to go from beta 5 to 7 or only 6 to 7?

Probable both versions. ;)