Toggle not working - 2.3.1

Issue description:
Hi, I tried to update from 2.3 to 2.3.1 however my toggle doesn't work in 2.3.1
Version used: 2.3.1
WordPress plug-in version
Using theme_mods or options?
theme_mods
Code to reproduce the issue (config + field(s))
It should output this code when I change the toggle:

<div class="boxed-layout">

My field to add the toggle
Kirki::add_field( 'caramelomedia', array(
'type'        => 'switch',
'settings'    => 'layout_fullwidth_boxed',
'label'       => __( 'Boxed?', 'caramelomedia' ),
'section'     => 'general_full_boxed',
'default'     => 'off',
'priority'    => 0,
'choices'     => array(
'off' => __( 'Uit', 'caramelomedia' ),
'on'  => __( 'Aan', 'caramelomedia' ),
),
) );
This code works fine in 2.3 but it doesn't work when I use kirki 2.3.1

Toggles are essentially checkboxes and their values are either 0 or 1.
on & off are not values, they are only used to set the labels.
What exactly is it that does not work? 'Cause "doesn't work" is pretty vague.

Thank you, I changed  == 'on' to == '1' which fixed my issue. What I ment was that the code within the if didn't work when I toggle on/off.


Intellisense doesn't apply to imported class

Issue Type: Feature Request
I'm using python3.8.
I creted virtual environment with flask.
I imported and run correctly flask and its class methods, but i can't visualize the method while typing.
VS Code version: Code 1.65.2 (c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1, 2022-03-10T15:36:26.048Z)
OS version: Linux x64 5.4.0-105-generic
Restricted Mode: No

/extPython


Document clearTextReporter in configuration.md

The clear-text reporter has quite a few options one can configure. However, they are undocumented in docs/configuration.md.
{
  "clearTextReporter": {
    "allowColor": true,
    "allowEmojis": false,
    "logTests": true,
    "maxTestsToLog": 3
  }
}

It would be awesome if we can document them.

I opened a pull request for this
Thank you!

Was this fixed by #3837?

Yes


[Documentation issue] - A waiting problem for mons

Hello again,
Since i wanted to make a good use of your wiki, I reseted my whole cluster and tested it. The good news is that OSDs are perfectly OK, but for the mon i'm stuck here, is it from a missing var ? Imho it could be since when I tried to enable a scenario in the var files, I never encountered that issue.

Hum weird, this shouldn't break anything.
Can you share the Ansible trace?

Sorry for the delay, here is what occurs :
TASK: [ceph-mon | wait for client.admin key exists] ***************************
<ceph.intra> ESTABLISH CONNECTION FOR USER: doo
<ceph.intra> REMOTE_MODULE wait_for path=/etc/ceph/ceph.client.admin.keyring
<ceph.intra> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/doo/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 ceph.intra /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1422867757.84-70285904946049 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1422867757.84-70285904946049 && echo $HOME/.ansible/tmp/ansible-tmp-1422867757.84-70285904946049'
<ceph.intra> PUT /tmp/tmpbmKXwN TO /root/.ansible/tmp/ansible-tmp-1422867757.84-70285904946049/wait_for
<ceph.intra> EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/home/doo/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 ceph.intra /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=zbgcjvwodjdsznlffmfsmqpcwpzmqaxz] password: " -u root /bin/sh -c '"'"'echo SUDO-SUCCESS-zbgcjvwodjdsznlffmfsmqpcwpzmqaxz; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1422867757.84-70285904946049/wait_for; rm -rf /root/.ansible/tmp/ansible-tmp-1422867757.84-70285904946049/ >/dev/null 2>&1'"'"''

it seems that it's linked to yaml  cephx: true in roles/ceph-mon/defaults/main.yml

OK, found where the error came from :
When you restart from scratch the deployment (git reset --hard), you need to also clean the fetch/* directory


Show task dependencies on button click

We want to add a button which expands the div and shows the tasks that the selected task is dependent upon

Hi @akankshadharkar , shall i pick this up?


Is there a way to prevent the FinRL model from doing any Short selling

Is there a way to prevent the model from giving negative outputs (short selling)?

yes.
you can increase the cost of selling.


feat: Add generation info for manual scoring

I noticed I wanted to rate alignment with manual scoring. Knowing which prompt generated the current image helps determining a better score in my opinion.

It does not seem to display the payloads in the right order as of right now.

Should be fixed now.


alertAreas and influenceArea properties

Hello,
I am trying to create a simple drag and drop. I have a draggable button and a drop target component, almost the same as the AlertArea example.
I can't seem to align the alertAreas and its influenceArea properties with the drop target position.
Can someone explain how this works?
The drop target components in the example are using screen size for calculations. influenceArea in the is using single values.

I see there is some connection, but how are the screen size values used in the View exactly related to the influenceArea ?

Why is 75 subtracted here?

Is there anything specific about the layout in general that can affect influenceArea positions ?

I think I figured it out.
The screen dimensions are used for consistency. The subtracted 75 compensate for device buttons at the bottom and notification area on top (In my case android).
If you have a header and content section below it you also will have to subtract the header height, so screen height correspond to the draggable area only.
influenceArea properties correspond to the center of the draggable component, but also need to be calculated using screen dimensions, so they work the same across different device sizes.
Example:
If you have a draggable component with absolute position located on bottom: 15, dragging it up creates negative Y value. It can be tested using onDrag and printing event.nativeEvent.y.
top and bottom properties of  influenceArea basically correspond to the minY and the maxY value between which the alert will be triggered.
left and right work the same way for minX and the maxX, counting from the center of the draggable component.
Please correct me if i am wrong.


DX: The type of the ui-kit component could not be resolved.

I am learning the monorepo architecture of this library.
I found that components in the ui-kit are resolved to any type.
I found that this could be caused by the exports field in ui-kit's package.json (delete this field and add /dist/ in the path in the resolver.ts will work).
I'm still learning and haven't found a solution yet. I've posed an issue(https://github.com/vitejs/vite-plugin-vue/issues/252) for the moment, but wondered if you have an elegant solution?

Commonly we do not care about these, because we use unplugin-vue-components to auto change/add the import path in
compile time.
see this


after x[ii] && ..., it should be clear that x[ii] is not falsy

Search Terms

array short circuit
falsy array

Use Cases & Example
If you have an array with falsy holes, it's handy to be able to do short-circuit checks like this...
const x = ["hi", null, false];
for (let ii = 0; ii < x.length; ii++) {
  console.log(x[ii] && x[ii].toUpperCase());
}

But currently TS complains that after the check that x[ii] could still be falsy, which it can't.
If your array is (string | null | undefined)[] you can use x[ii]?.toUpperCase(). However if you have other falsy values it would be nice if it could be made to work with the short-circuit operator. I note that if you do x_ii = x[ii]; and then x_ii && x_ii.toUppserCase() it's ok, but that can sometimes be unnecessarily verbose.
Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

Duplicate #10530 (somewhat). Type narrowing does not occur for indexed access forms e[k] where k is not a literal.

Arguments about whether ii is actually the same between two references aside (this is much more subtle than you'd think), we haven't found a way to track this that isn't terrible for performance.

You can solve it with functional decomposition
const list = ["hi", null, false]

const isString = (x: any): x is string => typeof x === "string"

const seq = list.filter(isString).map(x => x.toUpperCase())


Make Net::LDNS thread safe

Net::LDNS is not currently thread safe, due to its handling of the data structures.

Should be fixed with release v0.73.


[BUG] Icon names on website do not match actual CSS classes

Describe the bug
The HTML/CSS snippet offered for each icon does not show the correct class name. For example, for the Arrow Down icon, the real CSS classname is ai-arrow-down, but the class shown is ai-ArrowDown.
To Reproduce
Steps to reproduce the behavior:

Go to https://akaricons.com
Find and click on an icon
Look at class

Expected behavior
The correct classname should come up.
Screenshots

Desktop (please complete the following information):

Windows 10
Chrome
92

@jwu56 Good catch! It's fixed. Thanks!


File ".\sublime_plugin.py", line 154, in run_timed_function
ret = f()
File ".\sublime_plugin.py", line 174, in
run_timed_function(lambda: callback.on_load(v),
File ".\LineEndings.py", line 25, in on_load
AttributeError: class Pref has no attribute 'alert_when_line_ending_is'
Unable to auto detect encoding, using fallback encoding Western (Windows 1252)
Traceback (most recent call last):
File ".\sublime_plugin.py", line 175, in on_load
callback.module, "on_load", EVENT_TIMEOUT)
File ".\sublime_plugin.py", line 154, in run_timed_function
ret = f()
File ".\sublime_plugin.py", line 174, in
run_timed_function(lambda: callback.on_load(v),
File ".\LineEndings.py", line 25, in on_load
AttributeError: class Pref has no attribute 'alert_when_line_ending_is'
Unable to auto detect encoding, using fallback encoding Western (Windows 1252)
Traceback (most recent call last):
File ".\sublime_plugin.py", line 175, in on_load
callback.module, "on_load", EVENT_TIMEOUT)
File ".\sublime_plugin.py", line 154, in run_timed_function
ret = f()
File ".\sublime_plugin.py", line 174, in
run_timed_function(lambda: callback.on_load(v),
File ".\LineEndings.py", line 25, in on_load
AttributeError: class Pref has no attribute 'alert_when_line_ending_is'
Unable to auto detect encoding, using fallback encoding Western (Windows 1252)
Traceback (most recent call last):
File ".\sublime_plugin.py", line 175, in on_load
callback.module, "on_load", EVENT_TIMEOUT)
File ".\sublime_plugin.py", line 154, in run_timed_function
ret = f()
File ".\sublime_plugin.py", line 174, in
run_timed_function(lambda: callback.on_load(v),
File ".\LineEndings.py", line 25, in on_load
AttributeError: class Pref has no attribute 'alert_when_line_ending_is'
Unable to auto detect encoding, using fallback encoding Western (Windows 1252)
Traceback (most recent call last):
File ".\sublime_plugin.py", line 175, in on_load
callback.module, "on_load", EVENT_TIMEOUT)
File ".\sublime_plugin.py", line 154, in run_timed_function
ret = f()
File ".\sublime_plugin.py", line 174, in
run_timed_function(lambda: callback.on_load(v),
File ".\LineEndings.py", line 25, in on_load
AttributeError: class Pref has no attribute 'alert_when_line_ending_is'
Unable to auto detect encoding, using fallback encoding Western (Windows 1252)
Traceback (most recent call last):
File ".\sublime_plugin.py", line 175, in on_load
callback.module, "on_load", EVENT_TIMEOUT)
File ".\sublime_plugin.py", line 154, in run_timed_function
ret = f()
File ".\sublime_plugin.py", line 174, in
run_timed_function(lambda: callback.on_load(v),
File ".\LineEndings.py", line 25, in on_load
AttributeError: class Pref has no attribute 'alert_when_line_ending_is'
Traceback (most recent call last):
File ".\sublime_plugin.py", line 185, in on_pre_save
callback.module, "on_pre_save", EVENT_TIMEOUT)
File ".\sublime_plugin.py", line 154, in run_timed_function
ret = f()
File ".\sublime_plugin.py", line 184, in
run_timed_function(lambda: callback.on_pre_save(v),
File ".\LineEndings.py", line 29, in on_pre_save
AttributeError: class Pref has no attribute 'auto_convert_line_endings_to'
Writing file /D/kingsoft/jx3/bin/zhcn/interface/MY/.Framework/src/MY.lua with encoding UTF-8
Reloading /D/kingsoft/jx3/bin/zhcn/interface/MY/.Framework/src/MY.lua
Unable to auto detect encoding, using fallback encoding Western (Windows 1252)

Sublime Text 2 v2.0.2 2221

从上面的日志看来是你安装的LineEndings这个插件不支持ST2，麻烦禁用后试试。

禁用之后是这样的
Traceback (most recent call last):
File ".\ParseLua.py", line 22, in
File ".\ParseLua.py", line 34, in parse
File ".\subprocess.py", line 701, in communicate
File ".\subprocess.py", line 911, in _communicate
IOError: [Errno 32] Broken pipe
Package Control: No updated packages
Traceback (most recent call last):
File ".\ParseLua.py", line 22, in
File ".\ParseLua.py", line 34, in parse
File ".\subprocess.py", line 701, in communicate
File ".\subprocess.py", line 911, in _communicate
IOError: [Errno 32] Broken pipe
Writing file /D/kingsoft/jx3/bin/zhcn/interface/Moon_FontModify/a.lua with encoding UTF-8
Traceback (most recent call last):
File ".\ParseLua.py", line 22, in
File ".\ParseLua.py", line 34, in parse
File ".\subprocess.py", line 701, in communicate
File ".\subprocess.py", line 911, in _communicate
IOError: [Errno 32] Broken pipe
Reloading /D/kingsoft/jx3/bin/zhcn/interface/Moon_FontModify/a.lua
Unable to auto detect encoding, using fallback encoding Western (Windows 1252)
Traceback (most recent call last):
File ".\ParseLua.py", line 22, in
File ".\ParseLua.py", line 34, in parse
File ".\subprocess.py", line 701, in communicate
File ".\subprocess.py", line 911, in _communicate
IOError: [Errno 32] Broken pipe
Reloading /D/kingsoft/jx3/bin/zhcn/interface/Moon_FontModify/a.lua
Unable to auto detect encoding, using fallback encoding Western (Windows 1252)
Traceback (most recent call last):
File ".\ParseLua.py", line 22, in
File ".\ParseLua.py", line 34, in parse
File ".\subprocess.py", line 701, in communicate
File ".\subprocess.py", line 911, in _communicate
IOError: [Errno 32] Broken pipe

这些错误提示不是本插件产生的，建议把其他插件先临时禁用，看看是否会出现乱码。如果不会，再一一把其他插件启用测试看看是哪个插件引起的。


enroot-nsenter: failed to create user namespace: Invalid argument

I'm trying to build a deepops test environment with 2 KVM worker VMs (CentOS 7) with 1 V100D-8Q vGPU and 64G RAM each. I don't know if that makes sense, but for Kubernetes it worked mostly. For slurm I followed https://github.com/NVIDIA/deepops/blob/master/docs/deepops/dgx-pod.md#7-deploy-slurm, which also worked (with some modifications because of different NVIDIA driver for vGPU).
Now I want to "Verify Pyxis and Enroot can run GPU jobs across all nodes." (https://github.com/NVIDIA/deepops/tree/master/docs/slurm-cluster). The command that's run by ansible is:
srun -N 2 -G 2 --ntasks-per-node=1 --mpi=pmix --exclusive  --container-image=deepops/nccl-tests-tf20.06-ubuntu18.04:latest all_reduce_perf -b 1M -e 4G -f 2 -g 1
It fails with:
pyxis: creating container filesystem ...
pyxis: starting container ...
slurmstepd: error: pyxis: container start failed with error code: 1
slurmstepd: error: pyxis: printing contents of log file ...
slurmstepd: error: pyxis:     enroot-nsenter: failed to create user namespace: Invalid argument
slurmstepd: error: pyxis: couldn't start container
slurmstepd: error: pyxis: if the image has an unusual entrypoint, try using --no-container-entrypoint
slurmstepd: error: spank: required plugin spank_pyxis.so: task_init() failed with rc=-1
slurmstepd: error: Failed to invoke spank plugin stack
srun: error: deepops-node1: task 0: Exited with exit code 1
I'm very new to Slurm/pyxis/enroot, so I don't know what to make of "enroot-nsenter: failed to create user namespace: Invalid argument" and how to debug this. Any help appreciated, thank you very much.

Your kernel is probably not configured properly, on Centos 7 there are things you need to turn on and I don't think Deepops does it automatically.
Refer to the following: https://github.com/NVIDIA/enroot/blob/master/doc/requirements.md

Thanks for pointing me to this, setting the right kernel parameters and sysctls solved the problem.


CircleCI 2.0 update (deadline Aug 31 2018)

There was an email from CircleCI about their sunsetting CircleCI 1.0
Here is a blog post with a deadline of August 31st. https://circleci.com/blog/sunsetting-1-0/
They offer a transition page with some tools and documentation at https://circleci.com/sunset1-0/
Basically, it seems that the transition requires a {{config.yml}} update which can be at least partially automated.
The email I got contains a link which however is a 404 if you are not logged in to Circle: http://go.circleci.com/Mk0H0A0RZ071200TG0IM062 but contrary to what the wording in the email suggested, I can't see whether we are currently on 1.0 or 2.0 (or I'm blind).  I assume we have work to do here.

We're on 1.0, I checked after I got the email. Definitely work to do.

https://circleci.com/api/v1.1/project/github/Charcoal-SE/SmokeDetector/config-translation gives me a 505, not sure if I misunderstand the instructions.

@tripleee I bet it's because Python isn't a supported platform for that translation tool (from the top of https://circleci.com/docs/2.0/config-translation/).

See https://github.com/Charcoal-SE/SmokeDetector/tree/circle-config


Converting Places to Address

Hey,
When I am selecting  "Times Square NY" from dropdown, it is getting converted to "Manhattan, NY 10036, United States" .
But i want to display "Times Square NY" only. Please help.

Trying to solve the same problem...Did you get anywhere with this?

Figured it out.
In the directive's format(modelValue) function the viewValue is set.
Simply change the value in the else if clause like so:
viewValue = modelValue.name; (line 225)
.name can be changed to any other place attribute you may want to set it as.

I verify this solution. I've changed the whole block to look like this:
if (isString(modelValue)) {
    viewValue = modelValue;
} else if (isObject(modelValue)) {
    if (isString(modelValue.name)) {
        viewValue = modelValue.name;
    } else {
        viewValue = modelValue.formatted_address;
    }
}

I've seen this code too, but is there a hook to configure this? I don't want to rewrite the code. I just want to pass in an option to the angular-google-places-autocomplete directive to tell it what field on the 'place' to use.
Is it possible to configure it for this? If so, how?

I issued a merge request to address this issue, but it hasn't been merged yet.
You can grab my version from here: https://github.com/nbpayne/angular-google-places-autocomplete

This feature should really be merged. It's essential.

Just ran into the same issue. Seems like this fix should be the default - confusing for the user to have the input value not show the name of the place that was selected.


Windows: --hostname support

This passes through the container hostname to HCS, which in Windows Server 2016 TP4 will set the container's hostname in the registry before starting it. This will be silently ignored by TP3.

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

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

The change looks good to me, but I don't know the implications of it.
/cc @jhowardmsft, @swernli

Now that we have several windows specific fields, I wonder if it's the right time to separate the command in CommandUnix and CommandWindows. Not necessarily in this PR.

Yeah, that separation sounds like a good task for @jhowardmsft :)

Sign me up ;) Yeah, I already tagged it with a "TODO Windows" for exactly that reason. I've been gradually addressing them as time permits.

@calavera Refactor is sitting in the queue - #16779. Depending on what gets merged first, one of them will require a rebase.

LGTM


WPRDC data: Code violations

Just like the 311 and city police data, the WPRDC offers a dataset for code violations for establishments, available here: https://data.wprdc.org/dataset/pittsburgh-pli-violations-report/resource/4e5374be-1a88-47f7-afee-6a79317019b4. Like the city police and 311 data, we just want the results from the past month.

@brandonp728 , do you want to take a crack at this one now? You did that other one so quickly

@vonbearshark yeah, I'd like to!


Permissions on server.key

I'm using Portus RPM Version<PHONE_NUMBER>0209, Release 1.1.
In #611 I explained how I set up Portus with my own keys/certs. In doing so, I ensured that the target of /srv/Portus/config/server.key (which is /etc/apache2/ssl.key/portus.example.com.key) was owned by root, and readable only by root (0400). This is a security best-practice; private keys shouldn't be visible to other users of the system.
However, this setup causes the following error to appear in production.log:
 INFO -- : Started GET "/v2/token?account=portus&scope=registry..."
...
FATAL -- :
Errno::EACCES (Permission denied @ rb_sysopen - /srv/Portus/config/server.key):
  lib/portus/jwt_token.rb:43:in 'binread'
  lib/portus/jwt_token.rb:43:in 'private_key'
  lib/portus/jwt_token.rb:20:in 'encoded_hash'
  app/controllers/api/v2/tokens_controller.rb:16:in 'show'

Apache handles this problem, by having the parent process, (running as root) read the SSL keys, and the forked child processes run as wwwrun (presumably "inheriting" the keys).
I'm not familiar with Passenger, but I'm assuming it is the Passenger RubyApp: /srv/Portus (production) process, running as wwwrun, who is trying to access this key. Is there some way that Passenger can work the same way, so that the key doesn't need to be readable by wwwrun?

I'm not familiar with Passenger either :( Let me take a look at this. In the meantime, @jordimassaguerpla or @flavio could take a look into this ?

@jordimassaguerpla AFAIK this is going to solved with v2. Am I right?

Yes this is solved in v2. It is a permission problem. You can workaround it by removing the symlinks and instead copying the keys.

Closing then. @JonathonReinhart, if you have any more problems with this, please, feel free to re-open this.

I'll just wait for v2 then. Thanks again. Seems like I should just wait for v2 RPMs before reporting any more bugs :-)


int32_wifi_publisher on ST Disco L475 IOT01 (Zephyr)

Hello,
i try to get my first micro-ROS application running with wifi. I want to use the example application "int32_wifi_publisher".
I have following setup:
PC: Ubuntu 20.04.1 LTS (running ROS2)
Micro-ROS board: ST Disco L475 IOT01 (running Zephyr)
I configure the micro-ROS application with following parameter:
ros2 run micro_ros_setup configure_firmware.sh int32_wifi_publisher --transport udp --ip <IP_ADDRESS> --port 8888
Insert my Wifi and PSK:
cnx_params.ssid = "<myWIFI>";
cnx_params.ssid_length = strlen(cnx_params.ssid);
cnx_params.channel = 0;
cnx_params.psk = "<myPSK>";
cnx_params.psk_length = strlen(cnx_params.psk);
cnx_params.security = WIFI_SECURITY_TYPE_PSK;

build it:
ros2 run micro_ros_setup build_firmware.sh
and flash it on the board:
ros2 run micro_ros_setup flash_firmware.sh
But after starting the agent via:
ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888
the agent stock in the init state and get never a connection to the Micro-ROS.
Note:
I can see the board in my Wifi overview of my router.
Is there anything more to do to get it running?
Thanks!

I'll check the behavior of this app.

@pablogs9 Yes, this is the IP of my PC where ROS2 is running.

I have been testing the app and it seems that once it connects to wifi it starts to print trash in the serial port... Do you have this same behavior in the UART attached to the STLink?
I also have tested the same application with serial-usb transports and it works smoothly... I'm wondering if there is any kind of error in the networking handling of micro-ROS for Zephyr, I'll take a look when I have some time.

Greetings,
I'm working together with @Eric7797 on the same project.
@pablogs9 I had the same Problem that after the boards connects to wifi, it prints a lot of trash to the serial port.
Through debugging the main.c I figured out that the Application crashes in the rclc_support_init function.
Stepping through this function leads me to the Micro-XRCE-DDS-Client function uxr_init_udp_platform in the udp_transport_posix.c file. https://github.com/eProsima/Micro-XRCE-DDS-Client/blob/master/src/c/profile/transport/ip/udp/udp_transport_posix.c.
In the switch/case statement the funciton socket gets called with the third parameter set to zero. This leads to an error. I changed the 0 into 17, which equals to the enum-value IPPROTO_UDP in net_ip.h (line 66) https://github.com/zephyrproject-rtos/zephyr/blob/master/include/net/net_ip.h
I did this because of a check on this third parameter in the __eswifi_socket_new function where a value of 0 would lead to an error (line 281ff.) https://github.com/zephyrproject-rtos/zephyr/blob/master/drivers/wifi/eswifi/eswifi_socket.c
After this change, the connection to the agent worked fine, but (sadly) the rcl_publish function didn't publish anything (in timer_callback).
This is a dirty fix and I don't know if this is the right way to do it, so further help is appreciated :)

Hello, @Hiskias super cool that you found this! I guess that Zephyr does not have the same BSD Sockets as plain POSIX Linux... micro-ROS can be configured with external transports so maybe we can write a network transport for Zephyr.
Let me check this I will come back in a while.
Just by curiosity, how are you debugging the ST Disco?

Using your fix it is not publishing because this line should be:
ROSIDL_GET_MSG_TYPE_SUPPORT(std_msgs, msg, Int32),

I'm preparing a PR to the zephyr apps repo fixing this wifi application.
Thanks a lot for the help and the feedback!

I have updated our repos to fix this, please check:

https://github.com/micro-ROS/zephyr_apps/pull/32
https://github.com/micro-ROS/micro_ros_setup/pull/249

I have tested this in a clean environment and I'm able to publish Int32 over Wi-Fi in the ST Disco.
Please close if resolved or provide feedback if not.

Hello again,
lot of thanks for your support :)
How can we update our current uROS environment? Or should we use a new one?
We followed the Eclipse Debugging for zephyr documentation. For creating the eclipse project file, we edited the uROS build script for zephyr located in /home/<username>/microros_ws/install/micro_ros_setup/config/zephyr/generic in our environment. We changed line 80 from -G'Unix Makefiles' to -G'Eclipse CDT4 - Unix Makefiles'. This will generate a .project file for eclipse in /home/<username>/microros_ws/firmware/build folder when using the uROS Toolchain (running ros2 run micro_ros_setup build_firmware.sh).
After this we imported the project in Eclipse and configured a debugger (pyOCD) as described in the zephyr documentation.
There are a few problems sometimes, but it's good enough for debugging our first applications.
Sadly, there is no description (or we didn't found any) how to implement a uROS project into an IDE, so we went this way.

I think that the best way to update is to use a new uROS environment.
I'm closing since resolved. Do not hesitate in reopening if there is any other problem.
BTW, we are also looking to hear about user projects related to micro-ROS. Could you tell us something about your use case?


unexpected layer filename in remote storage: A-B__C.0.old

Steps to reproduce
Found for old project created on staging in May 2022
Expected result
No error during reconcile with remote, and probably no such files in remote storage
Actual result
2022-12-07T11:58:49.445040Z ERROR could not load tenant 46eb16d232d1e747af7b59e64b4b39a8: load local timeline 35765cf4546bea869078c6f1082f8ed9
Caused by:
    0: failed to reconcile with remote
    1: unexpected layer filename in remote storage: 000000067F000040020000C0AE0000014000-030000000000000000000000000000000002__0000001145498F20.0.old

And indeed this file (and a bunch of others with similar .old suffix are included in the index file and exist as files
Environment
staging
Logs, links

First we should check that we dont upload such files anymore. For dealing with existing files I think we have two options. Skip such files during sync (which can be ok if thats really old thing) or completely fix it with some migration that removes such files from index and from the storage. Will inspect how many of those we have in other places
cc @hlinnaka @problame

Is this .old file referenced from the IndexPart ?

I think, that could be a combination of https://github.com/neondatabase/neon/blob/a46a81b5cbb0f4b9022152c609428247e288804d/pageserver/src/tenant/timeline.rs#L2757-L2759, some abrupt restart and a logic in remote storage that considered every file around as layer on start and attempted to upload it.

For the long-term solution, what if we attempt to fix this with https://github.com/neondatabase/neon/pull/2993#issuecomment-1337126725 ?

Looks good to me.

Is this .old file referenced from the IndexPart ?

Yes

Here's code from before storage_sync2 that caused the .old files to be uploaded & become part of IndexPart
https://github.com/neondatabase/neon/blob/c7093545794e5a1072fa358d1aa38c87031bce7e/pageserver/src/storage_sync.rs#L1467-L1489
During download, these files would be downloaded as well, but the code that loads the layer map would then ignore it.
:+1: if you agree with this root-cause analysis.

Re: root-cause analysis, happened to look since that was one of the first commit I wrote here. I don't think I managed to create a bug there, but it would appear to be that we never filtered out the rotated files when collecting timeline files: https://github.com/neondatabase/neon/blob/c7093545794e5a1072fa358d1aa38c87031bce7e/pageserver/src/tenant_mgr.rs#L693-L699
Now filtering is done first by Timeline::load_layer_map which is now used as a basis for "local files" in Timeline::reconcile_with_remote. Timeline::load_layer_map knows about the .{nth_backup}.old naming strategy so the files are just ignored. I am unsure how were those kind of files produced in the first place.

don't think I managed to create a bug there

Yep, I agree, I think we always had this problem and it originated from decoupling we had previously. I mean the strategy that sync module lives separately and treats layers as opaque files

Yes we do

Leaving this open until we clean up the files in remote storage for existing environments

Done by the older layer removal


removing instance variables from class definition (3.0.92)

Say you have a class with two instance variables, each with accessor methods, and you realize you just added them to test something or another, so you edit the class definition to remove those instance variables.
You get a methods failing recompile... only one; but we'll see.

But now, if I attempt to remove this method using the menu item Remove Method (s) I get an error:

So I cannot just remove the method.
I can edit the method to just return self.
And then, I have to go back and try to save the class definition AGAIN and repeat this entire process for EACH method with a reference.
I don't think this is critical for December but it's sure unattractive...

Fixed in Oscar 3.1.0 (dolphin port version)

It does not walkback; but the need to re-run the method save for each method is still present.  File that as new issue #757.


feat: add footer & home UI

Description
add footer
add homepage
Type(s) of changes

[ ] Bug fix
[x] New feature
[ ] Update to an existing feature

Motivation for PR
#10 #8
How Has This Been Tested?

Applicable screenshots
https://www.loom.com/share/7f2b07b5caaf47598bc61b688403f40c?sid=0b2b7cd6-8f1d-4712-aec8-54b48f7081fa
Follow-up PR

@limsohee1002 requested few more things after checking the preview!!

@nahbee10 I will handle those in following PR! I am working off of this right now to make sure everything renders correctly. I don't want to create too much conflict 🙏


Clarification: which JS implementation to use?

I saw there's two implementations of TypeID linked:

official version
community version

Is there any guidance on which one to use, and why you might choose one over the other?

Hi @dbalatero, at a glance both implementation uses Typescript, but the method signatures are different. The official version is maintained by the Jetify Team, as we also maintain the overall typeid spec.
There's a v3 spec coming out addressing https://github.com/jetify-com/typeid/issues/7, which we will follow in the upcoming releases. I'm not super aware of the community version, but the official version will stay up-to-date with the overall spec.

Makes sense! It's probably worth updating the README to clarify. Is this something you'd want a PR for, or would you prefer to have more control over the style/formatting of the README?


[pixeldata] API extension to support multi-frame images

The idea is to extend the pixel data retrieval API so that multi-frame images may be obtained efficiently.
Relevant criteria:

Considering the possiblity of objects loaded on-demand (so not all frames will be in memory), the API should enable the efficient retrieval of frames one by one.
More methods may exist, such as one for retrieving a specific frame by index.
Should apply for both dynamic_image and ndarray.

Resolved by #152.


vimPlugins.nvim-dap-ui: add dependencies nvim-dap and nvim-nio

Description of changes
Add dependencies nvim-dap and nvim-nio to nvim-dap-ui.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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


question: should a machine purge remove it from provider?

I've successfully created (with 0.39.0) some hosts on Azure using the Other and azure driver.
A host wen't broken, containers were kept onto a deleting stage, reboot didn't fixed so I tried to purge it.
As host configs wasn't working with my local docker-machine, I've deactivated, removed and purged using the UI.
Went to check if host was running on my provider and it was. Here's my question: Shouldn't a Delete/Purge on UI remove host on provider trough its driver?

It should, yes.  @aruneli can you see if this is just Azure, all generic drivers, or if the first-class ones are broken too?

@vincent99 @aruneli I had no issues purging DO machines using the UI.

Forgot to mention because i was writing while talking to a co-worker about internal issues. Hosts were created with 0.39.0 but were purged with 0.40.0-rc1.

@cusspvz Please reopen if you are still seeing this issue. We haven't been able to reproduce and I'm wondering if it's related to the other issues you were seeing with Azure hosts.

@deniseschannon deal! :)

Tested now with 0.40.0, and it is deleting correctly.
Removed machine using UI, it took about 40sec. Host was displayed as Removed and it was purged after a page refresh.
Entered into Azure Manager and related cloud and machine were still running.
Waited for about 5 minutes, just to ensure, and cloud changed into deleting stage.
For those who get on this issue, it may took a while to Azure apply cloud deletion.

@cusspvz Thanks for the update!


Install libgthread to the Python base image

Opening issue to gauge traction. The current recommendation is to work around the limitation using a custom image on Linux.

Added


[Fetch] How to get all data from all dt

Hi
I have 4 datetime picker field, after selecting all for there is a "create" button which bind with function. I wanted to parse all four #dt1, #dt2, #dt3. #dt4 all date and time to function.
How can i do, Please help?

This is not an issue from the picker. Please use other platform to ask general question.


Follow Apache Pulsar isAllowAutoTopicCreation configuration.

Motivation
Currently, MOP always creates a topic if it is missing when publishing or subscribing. It does not follow Apache Pulsar's isAllowAutoTopicCreation configuration.
Modifications

Follow Apache Pulsar's isAllowAutoTopicCreation configuration.
Refactor some code.

Verifying this change

[x] Make sure that the change passes the CI checks.

Documentation

[x] no-need-doc

@Technoboy-  PTAL :)

Codecov Report

Merging #532 (f75b814) into master (8c3c395) will increase coverage by 0.30%.
The diff coverage is 35.29%.

@@             Coverage Diff              @@
##             master     #532      +/-   ##
============================================
+ Coverage     74.25%   74.56%   +0.30%
- Complexity      598      602       +4
============================================
  Files            84       83       -1
  Lines          2777     2791      +14
  Branches        194      195       +1
============================================
+ Hits           2062     2081      +19
+ Misses          589      586       -3
+ Partials        126      124       -2

Impacted Files
Coverage Δ

...s/mqtt/proxy/MQTTProxyProtocolMethodProcessor.java
59.65% <0.00%> (ø)

...lsar/handlers/mqtt/support/Qos1PublishHandler.java
58.33% <14.28%> (-3.08%)
:arrow_down:

...tt/support/DefaultProtocolMethodProcessorImpl.java
77.33% <43.47%> (-0.02%)
:arrow_down:

...e/pulsar/handlers/mqtt/utils/PulsarTopicUtils.java
76.36% <100.00%> (+1.81%)
:arrow_up:

.../streamnative/pulsar/handlers/mqtt/Connection.java
86.50% <0.00%> (+1.58%)
:arrow_up:

.../mqtt/messages/codes/mqtt3/Mqtt3SubReasonCode.java
100.00% <0.00%> (+11.11%)
:arrow_up:

...mqtt/messages/factory/MqttSubAckMessageHelper.java
91.17% <0.00%> (+11.76%)
:arrow_up:

Continue to review full report at Codecov.

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

Namespace policies could over broker config by autoTopicCreationOverride. Please also add related check.


Fixed dictionary lookups. Graceful exit when rank unavailable and fix typos

What does this PR do?
Fixes #16 and #17

Changed key lookups to use .get()
Exit with error message and with traceback when rank is unavailable.
Fixed typos in README

Before submitting

[x] Was this discussed/approved via a Github issue? (no need for typos, doc improvements)

[ ] N/A

[x] Did you make sure to update the docs?

[ ] N/A

[x] Did you write any new necessary tests?

[ ] N/A

Codecov Report
Base: 87.05% // Head: 87.06% // Increases project coverage by +0.01% :tada:

Coverage data is based on head (87814e9) compared to base (c0de7b1).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #19      +/-   ##
==========================================
+ Coverage   87.05%   87.06%   +0.01%
==========================================
  Files          26       26
  Lines        2032     2034       +2
==========================================
+ Hits         1769     1771       +2
  Misses        263      263

Impacted Files
Coverage Δ

hta/analyzers/cuda_kernel_analysis.py
82.00% <100.00%> (ø)

hta/analyzers/trace_counters.py
96.25% <100.00%> (ø)

hta/common/trace_file.py
75.94% <100.00%> (+0.62%)
:arrow_up:

tests/test_trace_analysis.py
99.22% <100.00%> (ø)

tests/test_trace_file.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Tlauncher wont launch minecraft 1.17

Describe the bug
Minecraft 1.17 crashes after trying to launch it from tlaucnher. All previous versions work fine. The drivers are also up to date
To Reproduce
Steps to reproduce the behavior: Not sure if it will be able to reproduce easily. Since prev versions of Minecraft work I'm not sure what is the actual problem. I checked the drivers, they are up to date. My pc model is from 2016 so i suppose they don't give updates on drivers anymore

Open the tlauncher
Select ver 1.17
click enter game
See error

Expected behavior
Launcher disappears and after a while fails to launch the game and shows an error screen.
Screenshots

Desktop (please complete the following information):

OS: windows 10
Browser Chrome

Additional context

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff803763760, pid=13148, tid=11224

JRE version: OpenJDK Runtime Environment Microsoft-22300 (16.0.1+9) (build 16.0.1+9)
Java VM: OpenJDK 64-Bit Server VM Microsoft-22300 (16.0.1+9, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
Problematic frame:
C  0x00007ff803763760
[error occurred during error reporting (printing problematic frame), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff803763f10]
No core dump will be written. Minidumps are not enabled by default on client versions of Windows

If you would like to submit a bug report, please visit:
https://github.com/microsoft/openjdk/issues
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.

Exact same problem here

Exact same problem here

You're getting the same problematic frame?

@manan75 - Are you able to submit this issue over at https://bugs.mojang.com/projects/MC/issues/ - the Mojang folks will take the first pass at Triage.  For the others on the thread, I'd recommend upvoting @manan75's issue over on the Mojang issue tracker :-)

@manan75 - Are you able to submit this issue over at https://bugs.mojang.com/projects/MC/issues/ - the Mojang folks will take the first pass at Triage. For the others on the thread, I'd recommend upvoting @manan75's issue over on the Mojang issue tracker :-)

How do i submit the issue to mojang. I could not find any way to report there.

@manan75 - Thanks!  There's a Login in the top right-hand corner.  You may need to create an account first to see the issue submission option.

@manan75 - How did you get on?

TLauncher is a pirated version of Minecraft and not supported by Mojang in any way. Please purchase Minecraft if you want to play it.


Add fullstops to some language items for consistency

Description of the PR
Most of them have fullstops, some didn't that look like they should - example:

Changes Proposed in this Pull Request (List new items in CHANGELOG.MD)

Semver Classification

[X] This PR only includes documentation or non-code changes.
[ ] This PR fixes a bug and does not change the (intended) framework interface.
[ ] This PR adds methods or properties to the framework interface.
[ ] This PR removes or renames methods or properties in the framework interface.

bump, requested changes 2 weeks ago.


Add conda recipes

Current
Only pip compatible packages are built
Expected
INclude conda recipes to build conda packagees too.

@romainsacchi figured out how to do this in CI in Premise.


PROD-397: Refactor QuestionCard, PreviewCard, and NoQuestionsCard

Description
Added a common layout for question related cards instead of using same style and images in multiple places.
What are the steps to test that this code is working?
There should not be any changes in the UI
Screen shots or recordings for UI changes
N/A

@danijel-radomiljac @AndrejRadomiljac can you please review? I'm not in the code enough to have a strong opinion.


Dalliance on react

I've been trying to get a working genome browser within my react project. I tried installing the npm of the biodalliance, but it hasn't been updated in a very long time and it seems to not work properly in my environment. I'm currently using pileup, but I just wanted to see if there was a method to use biodalliance in my project. I've tried a number of work-arounds, but nothing seems to work properly.
Any help would be much appreciated, whether it's a way to install Biodalliance in my environment properly, or a way to include the biodalliance package in a react environment. I've tried searching for a solution but nothing seems to work properly..

The current package on NPM was uploaded by someone else.  I do now have the permissions needed to update it, and hope to do so once I get a chance to cut a new release.  For now, my recommendation would be to install from Git.
React integration is definitely doable.  You'll need the normal little bit of boilerplate to wrap direct-DOM-manipulating code as a React component.  Roughly:
       class DallianceBrowser extends React.Component {
              render() {
                    return (

Browser goes here...

                    );
              }

              componentDidMount() {
                    this.dalliance = new Browser({
                         injectionPoint: ReactDOM.findDOMNode(this)
                         // Lots more options...
                         ...this.props
                    });
              }

              componentWillUnmount() {
                    this.dalliance.destroy();
              }
        }

Sorry for the late reply, I've been trying to test a number of things myself. How would I go about installing from git? One of the issues I have is that with the existing framework, I'm unable to access the HTML reliably. I'm not sure how to word it better, but please let me know if there's anything I can clarify.

For development purposes, npm link should do the trick.  Or you can build a package with npm run compile && npm pack.
I'm afraid I'm not sure what you mean by "unable to access the HTML reliably".


Detect self equivocation and self-censor

If an SP runs multiple lotus nodes, these nodes may end up equivocating. We should be able to detect this pretty quickly in F3 and censor ourselves. We probably want:

GPBFT to indicate that it has seen an equivocating message from some specific participant.
The client integration to watch this stream for keys it's responsible for. If it sees one, we should either bow out entirely or detect if we should continue/stop based on our peer ID? Maybe?

WAL will facilitate the knowledge of the messages we send. It could trigger tracking of IDs for which we participate. Not sure what should be the strategy when we detect it but I will think about it.

I don't think we need WAL for this. We know the identities we're signing for.

Discussed sync:

We may not catch all equivocations in GPBFT itself, need to check this.
We can't just use the WAL + pubsub because we won't propagate equivocations(?).

Hm. The fact that we don't propagate them is actually a bit of an issue... really, the best answer here is to find a better way to avoid equivocations in the first place.

Kind of a dumb solution but we could use pubsub for this by broadcasting our leases (likely on a different channel). That would "solve" this issue, albeit at the cost of sending a message to literally everyone (not a huge deal, TBH).

It also reveals the pubsub <-> minerID mapping which is not that great

The integration of WAL: https://github.com/filecoin-project/go-f3/issues/392 will complete this ticket.


Create PDF document without the navigation pane

I love your library, thank you!
I am using Rotativa v1.6.4 to create a PDF document based on a Razor view:
return new ViewAsPdf("GetPrintableBennies", bennies)     {         PageSize = Size.Letter,         PageMargins = { Left = 0, Right = 0, Top = 0, Bottom = 0 }     };
I display the resulting PDF embedded in a browser. My problem is that the navigation pane on the left side of the document is always open (bookmarks, search, comments...). This navigation pane is irrelevant in a one-page document and takes up too much space! My research tells me that whether the navigation pane is initially opened or closed is determined by the document.
My question is: how can I generate the PDF document with the navigation pane closed? Any assistance would be greatly appreciated. -RS

setup a @print Style sheet. that hides any unwanted elements on the page.
then pass " --print-media-type " as part of your CustomSwitches.


Add fold_mutref

I've wanted this function a couple times in the past, so i thought I'd suggest adding it here. Feel free to bikeshed the name-- I also considered fold_mut.

Warning, I'm thinking aloud.. It's not bad:
let element_freq = iterable.fold_mut(HashMap::new(), |map, c| *map.entry(c).or_insert(0) += 1);

In a way it seems redundant with for_each (finally it's coming!). We have closure environments, so we don't really need to pass map, the reason for that is mostly the expression oriented way we want to code. And the expression oriented way is most natural with the existing fold, the by value version.
(Examples for unfold 0.6.0 and unfold 0.6.2 stabs at trying both of those.. the way it's expressed with closure captures is far superior for this case.)

It is kind of redundant with for_each, agreed.

Note that some of the nastiness comes from having to use * and ref mut to unwrap the multiple bits of state. That'll be a lot cleaner once match-ergo lands.

it's a bit similar to this method as well: rayon's for_each_with, but there is nothing quite like it in rayon.

Ok, sorry for letting this wait for a bit. I think it seems this offers too little in terms of a new feature, that we don't want to include it. Let me know if you have other use cases or users that change the perspective on that.

Seems fine to me!


Prevent mouse cursor from being hidden when catched using GLFW_CURSOR_CAPTURED

I'm not sure if this is intentional but when calling setCursorCatched(), the cursor is hidden, requiring the user to implement laggy software cursors: https://github.com/libgdx/libgdx/issues/6687
However GLFW supports GLFW_CURSOR_CAPTURED which keeps the cursor captured, but not hidden. Is there a reason libgdx uses GLFW_CURSOR_DISABLED and not GLFW_CURSOR_CAPTURED?
A workaround is to extend your Lwjgl3Application like so:
	private static class BetterLwjgl3Input extends DefaultLwjgl3Input {

		private final Lwjgl3Window window;

		public BetterLwjgl3Input(Lwjgl3Window window) {
			super(window);
			this.window = window;
		}

		@Override
		public void setCursorCatched (boolean catched) {
			// change from Default input: use GLFW_CURSOR_CAPTURED not GLFW_CURSOR_DISABLED
			// so that the captured cursor is not invisible
			GLFW.glfwSetInputMode(window.getWindowHandle(), GLFW.GLFW_CURSOR,
				catched ? GLFW.GLFW_CURSOR_CAPTURED : GLFW.GLFW_CURSOR_NORMAL);
		}

		@Override
		public boolean isCursorCatched () {
			// change from Default input: use GLFW_CURSOR_CAPTURED not GLFW_CURSOR_DISABLED
			// so that the captured cursor is not invisible
			return GLFW.glfwGetInputMode(window.getWindowHandle(), GLFW.GLFW_CURSOR) == GLFW.GLFW_CURSOR_CAPTURED;
		}

	}

This may not work on Cocoa Mac OS X (I'm not sure if that's relevant): https://github.com/glfw/glfw/blob/master/src/cocoa_window.m#L1647

The idea of setCursorCatched() is the mouse cursor gets reset to the middle of the window each frame. You can then check the mouse deltas for use with games where you want the user to be able to move the mouse in a direction infinitely, such as for first-person shooters. Having it be visible while it's snapping back to centre would be unpleasant and it sounds like you've got confused as to the purpose of this method.
That said, it would be useful if we can confine the mouse cursor to the window when the cursor is "catched" as extremely fast movements can currently cause it to momentarily be visible outside the window boundaries.

OK, that's good to know! I'm creating a 2D game so I don't need the cursor position to be reset.
Maybe a separate setCursorCaptured() would be better, although I'm sure an enum would be even betterer?

Sure, the enum idea went down well in the issue you linked.


[Bug] Fail to disable steam remote debugging when uninstalling

Before Reporting

[X] I found no existing issues matching my bug
[X] My issue is not caused by a theme

Describe the Bug
When running the uninstall script; it fails to remove the .cef-enable-remote-debugging file in the steam directory. Making steam always take up port 8080 which a lot of other applications also tend to use. I'm unsure if there is a real security risk as I don't know if steam limits connections to host or not.
Expected Behavior
When uninstalling; remove the .cef-enable-remote-debugging file so steam don't keep remote debugging port open.
Steps To Reproduce

Install Steam (and login)
Follow the install instructions to install Millennium

iwr -useb "https://raw.githubusercontent.com/SteamClientHomebrew/Millennium/main/scripts/install.ps1" | iex

Uninstall Millennium

iwr -useb "https://steambrew.app/uninstall.ps1" | iex

Operating System
Windows
Anything else?
No response

yes this is a requirement for steam and theming, millennium requires port 8080 to work

That is true, it should be removed I'll change it. But no, it isnt a security risk.

Fixed, https://github.com/SteamClientHomebrew/Millennium/commit/a923e2aca843c44ff8063db5169f33be8bce8ef7!


Add: I LO im. T. Kościuszki

@RevelGaming I have to close this request without merging, because you requested to add a non-existent domain to this repository: Host almalo.pl.edu not found: 3(NXDOMAIN) Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for understanding!


”Homorodu de Sus”, ”Necopoi”, ”Solduba” are listed in the drop-down menu

Description:
When user writes ”Homorodu de Sus”, ”Necopoi”, ”Solduba” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Homorodu de Sus"

Expected results
The location appears in the drop-down menu as "Sat Homorodu de Sus, SATU MARE (Homoroade)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Necopoi"

Expected results
The location appears in the drop-down menu as "Sat Necopoi, SATU MARE (Homoroade)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Solduba"

Expected results
The location appears in the drop-down menu as "Sat Solduba, SATU MARE (Homoroade)".


blocksync: run process proposal when verifying new blocks

Description
Closes: #926
This is a possible solution to the problem outlined in the issue where the integrity of the Data struct which is relied upon by the application isn't checked at all in blocksync.
I have looked into ways of testing this but this is ridiculously hard (even going across multiple repos). The best solution I can think of is to refactor the blocksync v0 to use interfaces for the BlockExecutor so I am able to hook up a mock to check that the methods are called.

Out of curiosity, do we expect a performance impact for calling ProcessProposal on each block synced during block sync?

Unfortunately I would expect a performance hit. I haven't benchmarked ProcessProposal but we could explore that if we wanted to. I'd assume that blocksync still processes blocks at an order of magnitude faster than block production (at 15 seconds)


Using size feedback in the Allocator interface for flat_hash_map

Consider implementing P0401R3 Providing size feedback in the Allocator interface for flat_hash_map and friends. I've been using flat_hash_map with huge pages and P0401R3 can prevent wasting memory. I added support to my own library SPSCQueue and it can be done unobtrusively in C++17: https://github.com/rigtorp/SPSCQueue/blob/master/include/rigtorp/SPSCQueue.h#L37

It is unlikely that flat_hash_map can take advantage of this API effectively.
It does not have much flexibility in allocation sizes, like you would for a vector/queue. It has very specific sizes it can use derived from power-of-two requirements on the number of slots.
If the allocator gives us a little bit more than what we ask for it would be ignored. It would have to give us enough for double the capacity, and that is unlikely.
Do you have evidence that P0401R3 can help here?

I agree using default heap allocator it's unlikely to help. It becomes useful when you are using a custom allocator that returns huge pages. Quite nice when you want to place a huge hash table on a 1GiB page. Of course you can reach inside the implementation and calculate the appropriate argument to reserve(). Keep it in mind and let me know if you end up implementing it. Any industry use helps it get through the standards committee.

I see. It is a special allocator that will give very large allocations to begin with. I agree that it makes a lot of sense in that case. We can jump directly to a large capacity to use the huge page that the allocator gave us.

I'm one of the authors of P0401.  When drafting this (and P0901), I had primarily anticipated a use case for types like std::vector, std::string, etc.--basically, array-like types.
So that I can better understand the use case:   If you were to call reserve() with a size that'd be 2.1MBs (ordinarily), just over a single x86_64 huge page, would you anticipate your allocator to return 1GB of memory (a full huge-huge page) so that it can reside on a single TLB entry?

@ckennelly I think it's a great proposal. I believe there are additional more niche use cases. I spoke to Jonathan Wakely about how I use it for concurrent ring buffers (https://github.com/rigtorp/SPSCQueue/blob/master/include/rigtorp/SPSCQueue.h#L37).

So that I can better understand the use case: If you were to call reserve() with a size that'd be 2.1MBs (ordinarily), just over a single x86_64 huge page, would you anticipate your allocator to return 1GB of memory (a full huge-huge page) so that it can reside on a single TLB entry?

Yes exactly. In my specific real time type workload I would also have further allocations fail and handle it as a failed insert() instead (not sure yet if this would actually work as is in flat_hash_map). The allocator would look something like this  but for 1GiB pages and with size feedback (https://rigtorp.se/hugepages/):
#include <sys/mman.h> // mmap, munmap

template <typename T> struct huge_page_allocator {
  constexpr static std::size_t huge_page_size = 1 << 21; // 2 MiB
  using value_type = T;

  huge_page_allocator() = default;
  template <class U>
  constexpr huge_page_allocator(const huge_page_allocator<U> &) noexcept {}

  size_t round_to_huge_page_size(size_t n) {
    return (((n - 1) / huge_page_size) + 1) * huge_page_size;
  }

  T *allocate(std::size_t n) {
    if (n > std::numeric_limits<std::size_t>::max() / sizeof(T)) {
      throw std::bad_alloc();
    }
    auto p = static_cast<T *>(mmap(
        nullptr, round_to_huge_page_size(n * sizeof(T)), PROT_READ | PROT_WRITE,
        MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, -1, 0));
    if (p == MAP_FAILED) {
      throw std::bad_alloc();
    }
    return p;
  }

  void deallocate(T *p, std::size_t n) {
    munmap(p, round_to_huge_page_size(n * sizeof(T)));
  }
};

I think the good news here is that P0401 is now part of C++23.
That said, I don't think this is currently practical in the implementation of flat_hash_map, since it typically works with a power-of-2 number of elements.  Changing that is a bit tricky, since integer division (and various alternatives) tend to slow down an otherwise very fast lookup path.

That's fantastic news!
Well, maybe there is a case during a 2x growth the allocator actually gives
you a 4x growth. Or if the allocator always gives you 1GiB pages, it still
make sense to use all the returned memory?
Anyway this is a nice improvement to the allocator api.
On Sat, Oct 30, 2021 at 3:47 AM Chris Kennelly @.***>
wrote:

I think the good news here is that P0401 is now part of C++23.
That said, I don't think this is currently practical in the implementation
of flat_hash_map, since it typically works with a power-of-2 number of
elements. Changing that is a bit tricky, since integer division (and
various alternatives) tend to slow down an otherwise very fast lookup path.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/abseil/abseil-cpp/issues/808#issuecomment-955124656,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABLO2YEP5ZPWYQBSFX5ZZTUJNFDRANCNFSM4SG6IGFQ
.


Add cluster liveliness check in create-k8s-cluster.yml

Add cluster_health_check.py file, that halts the playbook until cluster is ready to use
Add this check at the end of creating cluster in the playbook
Move all common files used by all platforms to common directory, i.e. k8s/utils/

Signed-off-by: harshvkarn<EMAIL_ADDRESS>

@harshvkarn , thanks for the changes! Can you also paste a sample o/p of the cluster liveness script output

Create Cluster Ansible Logs

ansible-playbook create-k8s-cluster.yml --extra-vars="project=openebs-ci vpc_name=openebs-e2e k8s_version=1.10.6 nodes=4" -vv
ansible-playbook 2.6.2
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/karn/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.12 (default, Dec  4 2017, 14:50:18) [GCC 5.4.0 20160609]
Using /etc/ansible/ansible.cfg as config file
 [WARNING]: provided hosts list is empty, only localhost is available.   It should be ready in a few minutes.\n\nSuggestions:\n * validate cluster: kops validate cluster\n * list nodes: kubectl get nodes --show-labels\n * ssh to the master: ssh -i ~/.ssh/id_rsa<EMAIL_ADDRESS>* the admin user is specific to Debian. If not using Debian please use the appropriate user based on your OS.\n * read about installing addons at: https://github.com/kubernetes/kops/blob/master/docs/addons.md.", "stdout_lines": ["kops has set your kubectl context to angry-joliot.k8s.local", "", "Cluster is starting.  It should be ready in a few minutes.", "", "Suggestions:", " * validate cluster: kops validate cluster", " * list nodes: kubectl get nodes --show-labels", " * ssh to the master: ssh -i ~/.ssh/id_rsa<EMAIL_ADDRESS>" * the admin user is specific to Debian. If not using Debian please use the appropriate user based on your OS.", " * read about installing addons at: https://github.com/kubernetes/kops/blob/master/docs/addons.md."]}

TASK [Logging Cluster Name inside] ************************************************************************************************************
task path: /home/karn/Desktop/workspace/github.com/harshvkarn/litmus/k8s/gcp/k8s-installer/create-k8s-cluster.yml:40
 [WARNING]: Consider using the file module with state=directory rather than running mkdir.  If you need to use command because file is
insufficient you can add warn=False to this command task or set command_warnings=False in ansible.cfg to get rid of this message.

changed: [localhost] => {"changed": true, "cmd": "mkdir -p ~/logs/ && touch ~/logs/clusters", "delta": "0:00:00.026574", "end": "2018-08-03 16:34:25.056176", "rc": 0, "start": "2018-08-03 16:34:25.029602", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [lineinfile] *****************************************************************************************************************************
task path: /home/karn/Desktop/workspace/github.com/harshvkarn/litmus/k8s/gcp/k8s-installer/create-k8s-cluster.yml:43
changed: [localhost] => {"backup": "", "changed": true, "msg": "line added"}

TASK [Checking Cluster availability] **********************************************************************************************************
task path: /home/karn/Desktop/workspace/github.com/harshvkarn/litmus/k8s/gcp/k8s-installer/create-k8s-cluster.yml:49
changed: [localhost] => {"changed": true, "cmd": "python ../../utils/health/cluster_health_check.py -n 4", "delta": "0:03:44.634064", "end": "2018-08-03 16:38:10.275392", "rc": 0, "start": "2018-08-03 16:34:25.641328", "stderr": "2018-08-03 16:35:29,326 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdadd0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:29,663 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdae90>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:29,892 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdad90>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:35,365 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdafd0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:35,597 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39910>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:35,827 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88690>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:41,359 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdadd0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:41,590 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdad90>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:41,821 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccda910>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:47,299 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39a50>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:47,531 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdacd0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:47,762 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88810>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:53,232 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39590>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:53,464 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdab10>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:53,695 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdae10>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:59,165 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39910>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:59,396 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdaf10>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:35:59,640 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88610>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:05,140 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39a90>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:05,369 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdac10>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:05,603 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc888d0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:11,112 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39a50>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:11,344 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdae10>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:11,574 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88950>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:17,038 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39590>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:17,268 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdacd0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:17,500 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88490>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:22,966 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39910>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:23,197 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88090>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes\n2018-08-03 16:36:23,479 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88590>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "stderr_lines": ["2018-08-03 16:35:29,326 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdadd0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:29,663 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdae90>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:29,892 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdad90>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:35,365 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdafd0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:35,597 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39910>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:35,827 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88690>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:41,359 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdadd0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:41,590 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdad90>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:41,821 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccda910>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:47,299 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39a50>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:47,531 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdacd0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:47,762 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88810>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:53,232 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39590>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:53,464 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdab10>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:53,695 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdae10>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:59,165 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39910>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:59,396 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdaf10>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:35:59,640 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88610>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:05,140 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39a90>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:05,369 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdac10>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:05,603 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc888d0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:11,112 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39a50>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:11,344 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdae10>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:11,574 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88950>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:17,038 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39590>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:17,268 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccdacd0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:17,500 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88490>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:22,966 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcd39910>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:23,197 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88090>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes", "2018-08-03 16:36:23,479 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88590>: Failed to establish a new connection: [Errno 111] Connection refused',)': /api/v1/nodes"], "stdout": "error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccda7d0>: Failed to establish a new connection: [Errno 111] Connection refused',))\nerror occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88890>: Failed to establish a new connection: [Errno 111] Connection refused',))\nerror occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc886d0>: Failed to establish a new connection: [Errno 111] Connection refused',))\nerror occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88090>: Failed to establish a new connection: [Errno 111] Connection refused',))\nerror occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88750>: Failed to establish a new connection: [Errno 111] Connection refused',))\nerror occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88190>: Failed to establish a new connection: [Errno 111] Connection refused',))\nerror occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88210>: Failed to establish a new connection: [Errno 111] Connection refused',))\nerror occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc884d0>: Failed to establish a new connection: [Errno 111] Connection refused',))\nerror occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88350>: Failed to establish a new connection: [Errno 111] Connection refused',))\nerror occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88550>: Failed to establish a new connection: [Errno 111] Connection refused',))\nCluster is Up and Running", "stdout_lines": ["error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bccda7d0>: Failed to establish a new connection: [Errno 111] Connection refused',))", "error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88890>: Failed to establish a new connection: [Errno 111] Connection refused',))", "error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc886d0>: Failed to establish a new connection: [Errno 111] Connection refused',))", "error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88090>: Failed to establish a new connection: [Errno 111] Connection refused',))", "error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88750>: Failed to establish a new connection: [Errno 111] Connection refused',))", "error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88190>: Failed to establish a new connection: [Errno 111] Connection refused',))", "error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88210>: Failed to establish a new connection: [Errno 111] Connection refused',))", "error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc884d0>: Failed to establish a new connection: [Errno 111] Connection refused',))", "error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88350>: Failed to establish a new connection: [Errno 111] Connection refused',))", "error occured while getting nodes: HTTPSConnectionPool(host='<IP_ADDRESS>', port=443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f72bcc88550>: Failed to establish a new connection: [Errno 111] Connection refused',))", "Cluster is Up and Running"]}

TASK [Test Passed] ****************************************************************************************************************************
task path: /home/karn/Desktop/workspace/github.com/harshvkarn/litmus/k8s/gcp/k8s-installer/create-k8s-cluster.yml:51
ok: [localhost] => {"ansible_facts": {"flag": "Test Passed"}, "changed": false}
META: ran handlers
META: ran handlers

PLAY RECAP ************************************************************************************************************************************
localhost                  : ok=10   changed=7    unreachable=0    failed=0

kubectl get nodes

kubectl get nodes
NAME                        STATUS    ROLES     AGE       VERSION
master-us-central1-a-tbsb   Ready     master    2m        v1.10.6
nodes-2qkg                  Ready     node      1m        v1.10.6
nodes-9w27                  Ready     node      1m        v1.10.6
nodes-bqw8                  Ready     node      1m        v1.10.6
nodes-jxjr                  Ready     node      1m        v1.10.6

Delete Cluster Playbook logs

ansible-playbook delete-k8s-cluster.yml
 [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [localhost] ******************************************************************************************************************************

TASK [Gathering Facts] ************************************************************************************************************************
ok: [localhost]

TASK [Fetching Cluster Name] ******************************************************************************************************************
changed: [localhost]

TASK [set_fact] *******************************************************************************************************************************
ok: [localhost]

TASK [Deleting Cluster] ***********************************************************************************************************************
changed: [localhost]

TASK [Deleting Bucket] ************************************************************************************************************************
changed: [localhost]

TASK [Deleting SSD/Disks] *********************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "gcloud compute disks delete a-etcd-events-condescending-mcnulty-k8s-local --zone=us-central1-a -q\n gcloud compute disks delete a-etcd-main-condescending-mcnulty-k8s-local --zone=us-central1-a -q", "delta": "0:00:04.211951", "end": "2018-08-03 16:31:23.858516", "msg": "non-zero return code", "rc": 1, "start": "2018-08-03 16:31:19.646565", "stderr": "ERROR: (gcloud.compute.disks.delete) Could not fetch resource:\n - The resource 'projects/openebs-ci/zones/us-central1-a/disks/a-etcd-events-condescending-mcnulty-k8s-local' was not found\n\nERROR: (gcloud.compute.disks.delete) Could not fetch resource:\n - The resource 'projects/openebs-ci/zones/us-central1-a/disks/a-etcd-main-condescending-mcnulty-k8s-local' was not found", "stderr_lines": ["ERROR: (gcloud.compute.disks.delete) Could not fetch resource:", " - The resource 'projects/openebs-ci/zones/us-central1-a/disks/a-etcd-events-condescending-mcnulty-k8s-local' was not found", "", "ERROR: (gcloud.compute.disks.delete) Could not fetch resource:", " - The resource 'projects/openebs-ci/zones/us-central1-a/disks/a-etcd-main-condescending-mcnulty-k8s-local' was not found"], "stdout": "", "stdout_lines": []}
...ignoring

TASK [Removing Cluster Name entry from log] ***************************************************************************************************
changed: [localhost]

TASK [Test Passed] ****************************************************************************************************************************
ok: [localhost]

PLAY RECAP ************************************************************************************************************************************
localhost                  : ok=8    changed=5    unreachable=0    failed=0

@kmova did few changes as suggested.

Resending the PR!


COMP: Disable Eigen3 warning Wused-but-marked-unused

Triggered using clang with std>=17
The warning is correct, in Eigen/x/arch/SSE the functions are used.
However in other archs the functions might be unused.
This patch hacks CMake to ignore it while waiting for resolution upstream.
Reported here: https://gitlab.com/libeigen/eigen/-/issues/2416
Another option to explore suggested by @seanm:
If we assume that ITK would only use the SSE arch we could remove the unused attribute.

So seems this did not work?
https://open.cdash.org/viewBuildError.php?type=1&buildid=7683217

Ok, I think compiler id Clang does not include AppleClang since this policy.
https://cmake.org/cmake/help/latest/policy/CMP0025.html
Do you have any machine with an upstream Clang to see if the warnings were solved there?

So, if that warning is introduced in c++17, and we are compiling with c++14, I assumed it shouldn't trigger.


Integration documentation for Android and iOS is missing

Can you be more precise please with this issue? at the moment it is not actionable.

No doc found for integrating new application. That's why I arise this issue. If there any doc for proper guideline then close this issue.

@mdaslamHossin There's no real documentation at the moment, usually people start from https://github.com/readium/r2-workspace-kotlin and look at https://github.com/readium/r2-testapp-kotlin for an example of integration.
However, we are currently improving the architecture to simplify the integration and will write a proper documentation and user guides once this is done.
In the meantime, you can take a look at https://github.com/readium/architecture for an overview of the architecture.

@mickael-menu - There is mention of " Audiobook support" - is there an demo example ?
Also what does Audiobook support mean - we don't want the text to speech conversion one, we have audiobooks created and we want to use that, is that possible to play using existing Readium app for iOS ?

@mooka-ventures At the moment, R2 Kotlin is supporting Readium Audiobooks packages: https://readium.org/webpub-manifest/extensions/audiobook.html
This is basically a ZIP archive (or exploded directory on the web) of audio files, with a manifest.json describing the publication and the reading order. Here's an example.
We extended this support for simple ZAB (Zipped Audio Books) in the alpha branches. ZABs are ZIP archives of audio files, which will be read in the order of their filenames. What kind of audiobook format are you using?
For iOS, audiobooks support is not yet available but should be later this summer. Would you be interested in doing some beta–testing? You can get in touch with me on our Slack channels.

@mickael-menu  thanks. we are using normal mp3 files and we split the chapters in different mp3 files. but since the urls for the mp3 are generated dynamically we dont use a zipped archive of audio files style. manifest is a nice way to represent, we are doing part of such structure via our backend APIs.
We will get back to you about your question on iOS audiobooks beta-testing.

Once audiobooks are available, you will be able to play:

A Readium Audiobook (packaged or from a single manifest)
A ZIP archive with a list of audio files, sorted by filename (recursive)
A directory containing audio files, sorted by filename (recursive)
A single audio file

That should answer your needs. If you are serving the files from an HTTP server though, consider adding an Audiobook RWP Manifest too. This way your app will be able to read the audio files remotely just from the manifest URL, e.g. https://readium.org/webpub-manifest/examples/Flatland/manifest.json


Incorrect bark returned by stone axe recipe for jungle logs

AsterTM wrote on Discord:

Hello, I'm playing on CE 1.1.7 and I think I found a bug: when crafting shafts with a stone axe and jungle logs, it gives me shafts, saw dust and oak barks instead of jungle barks.
I tried with an iron axe and it gives me jungle barks though, so the problem is only for the stone axe
https://discord.com/channels/252863009590870017/252940065804648448/899232549186986016

Chisels produce the correct Bark item.

Fixed for next release