segfault when setting starting vehicle location with PickupAndDeliveries

I was using the code from here: https://developers.google.com/optimization/routing/pickup_delivery
If I change the line:
data['depot'] = 0

to
 data['starts'] = [0, 0, 0, 0]
 data['ends'] = [0, 0, 0, 0]

(and  make this changelen(data['distance_matrix']), data['num_vehicles'], data['starts'], data['ends'])
Route for vehicle 0:
 0 ->  13 ->  15 ->  11 ->  12 -> 0
Distance of the route: 1552m

Route for vehicle 1:
 0 ->  5 ->  2 ->  10 ->  16 ->  14 ->  9 -> 0
Distance of the route: 2192m

Route for vehicle 2:
 0 ->  4 ->  3 -> 0
Distance of the route: 1392m

Route for vehicle 3:
 0 ->  7 ->  1 ->  6 ->  8 -> 0
Distance of the route: 1780m

I get the same exact result, which is expected and good.
However, if I use:
data['starts'] = [13, 0, 0, 0]

I get
Segmentation fault: 11

I intentionally used 13 because this is the first node where vehicle 0 goes anyway.
Am I missing anything?
I am using ortools==7.0.6546
and my complete code is here:
"""Simple Pickup Delivery Problem (PDP)."""

from __future__ import print_function
from ortools.constraint_solver import routing_enums_pb2
from ortools.constraint_solver import pywrapcp

def create_data_model():
    """Stores the data for the problem."""
    data = {}
    data['distance_matrix'] = [
        [
            0, 548, 776, 696, 582, 274, 502, 194, 308, 194, 536, 502, 388, 354,
            468, 776, 662
        ],
        [
            548, 0, 684, 308, 194, 502, 730, 354, 696, 742, 1084, 594, 480, 674,
            1016, 868, 1210
        ],
        [
            776, 684, 0, 992, 878, 502, 274, 810, 468, 742, 400, 1278, 1164,
            1130, 788, 1552, 754
        ],
        [
            696, 308, 992, 0, 114, 650, 878, 502, 844, 890, 1232, 514, 628, 822,
            1164, 560, 1358
        ],
        [
            582, 194, 878, 114, 0, 536, 764, 388, 730, 776, 1118, 400, 514, 708,
            1050, 674, 1244
        ],
        [
            274, 502, 502, 650, 536, 0, 228, 308, 194, 240, 582, 776, 662, 628,
            514, 1050, 708
        ],
        [
            502, 730, 274, 878, 764, 228, 0, 536, 194, 468, 354, 1004, 890, 856,
            514, 1278, 480
        ],
        [
            194, 354, 810, 502, 388, 308, 536, 0, 342, 388, 730, 468, 354, 320,
            662, 742, 856
        ],
        [
            308, 696, 468, 844, 730, 194, 194, 342, 0, 274, 388, 810, 696, 662,
            320, 1084, 514
        ],
        [
            194, 742, 742, 890, 776, 240, 468, 388, 274, 0, 342, 536, 422, 388,
            274, 810, 468
        ],
        [
            536, 1084, 400, 1232, 1118, 582, 354, 730, 388, 342, 0, 878, 764,
            730, 388, 1152, 354
        ],
        [
            502, 594, 1278, 514, 400, 776, 1004, 468, 810, 536, 878, 0, 114,
            308, 650, 274, 844
        ],
        [
            388, 480, 1164, 628, 514, 662, 890, 354, 696, 422, 764, 114, 0, 194,
            536, 388, 730
        ],
        [
            354, 674, 1130, 822, 708, 628, 856, 320, 662, 388, 730, 308, 194, 0,
            342, 422, 536
        ],
        [
            468, 1016, 788, 1164, 1050, 514, 514, 662, 320, 274, 388, 650, 536,
            342, 0, 764, 194
        ],
        [
            776, 868, 1552, 560, 674, 1050, 1278, 742, 1084, 810, 1152, 274,
            388, 422, 764, 0, 798
        ],
        [
            662, 1210, 754, 1358, 1244, 708, 480, 856, 514, 468, 354, 844, 730,
            536, 194, 798, 0
        ],
    ]
    data['pickups_deliveries'] = [
        [1, 6],
        [2, 10],
        [4, 3],
        [5, 9],
        [7, 8],
        [15, 11],
        [13, 12],
        [16, 14],
    ]
    data['num_vehicles'] = 4
    # data['depot'] = 0
    data['starts'] = [13, 0, 0, 0]
    data['ends'] = [0, 0, 0, 0]
    return data

def print_solution(data, manager, routing, assignment):
    """Prints assignment on console."""
    total_distance = 0
    for vehicle_id in range(data['num_vehicles']):
        index = routing.Start(vehicle_id)
        plan_output = 'Route for vehicle {}:\n'.format(vehicle_id)
        route_distance = 0
        while not routing.IsEnd(index):
            plan_output += ' {} -> '.format(manager.IndexToNode(index))
            previous_index = index
            index = assignment.Value(routing.NextVar(index))
            route_distance += routing.GetArcCostForVehicle(
                previous_index, index, vehicle_id)
        plan_output += '{}\n'.format(manager.IndexToNode(index))
        plan_output += 'Distance of the route: {}m\n'.format(route_distance)
        print(plan_output)
        total_distance += route_distance
    print('Total Distance of all routes: {}m'.format(total_distance))

def main():
    """Entry point of the program."""
    # Instantiate the data problem.
    data = create_data_model()

    # Create the routing index manager.
    manager = pywrapcp.RoutingIndexManager(
        len(data['distance_matrix']), data['num_vehicles'], data['starts'], data['ends'])

    # Create Routing Model.
    routing = pywrapcp.RoutingModel(manager)

    # Define cost of each arc.

    def distance_callback(from_index, to_index):
        """Returns the manhattan distance between the two nodes."""
        # Convert from routing variable Index to distance matrix NodeIndex.
        from_node = manager.IndexToNode(from_index)
        to_node = manager.IndexToNode(to_index)
        return data['distance_matrix'][from_node][to_node]

    transit_callback_index = routing.RegisterTransitCallback(distance_callback)
    routing.SetArcCostEvaluatorOfAllVehicles(transit_callback_index)

    # Add Distance constraint.
    dimension_name = 'Distance'
    routing.AddDimension(
        transit_callback_index,
        0,  # no slack
        3000,  # vehicle maximum travel distance
        True,  # start cumul to zero
        dimension_name)
    distance_dimension = routing.GetDimensionOrDie(dimension_name)
    distance_dimension.SetGlobalSpanCostCoefficient(100)

    # Define Transportation Requests.
    for request in data['pickups_deliveries']:
        pickup_index = manager.NodeToIndex(request[0])
        delivery_index = manager.NodeToIndex(request[1])
        routing.AddPickupAndDelivery(pickup_index, delivery_index)
        routing.solver().Add(
            routing.VehicleVar(pickup_index) == routing.VehicleVar(
                delivery_index))
        routing.solver().Add(
            distance_dimension.CumulVar(pickup_index) <=
            distance_dimension.CumulVar(delivery_index))

    # Setting first solution heuristic.
    search_parameters = pywrapcp.DefaultRoutingSearchParameters()
    search_parameters.first_solution_strategy = (
        routing_enums_pb2.FirstSolutionStrategy.PARALLEL_CHEAPEST_INSERTION)

    # Solve the problem.
    assignment = routing.SolveWithParameters(search_parameters)

    # Print solution on console.
    if assignment:
        print_solution(data, manager, routing, assignment)

if __name__ == '__main__':
    main()

node 13 is a pickup, so when you assign it as start route you break the following constraint:
routing.VehicleVar(manager.NodeToIndex(13)) == routing.VehicleVar(manager.NodeToIndex(12))

since 13is assigned to vehicle 0 while 12 is not yet assigned.
note: the method AddPickupAndDelivery(pickup_index, delivery_index) is here so the solver try to add both nodes at a time...

Hi @Mizux,
Thank You for the reply.
I don't think that I understand why assigning node 13 to vehicle 0, but not 12 causes the problem, for example:
routing.solver().Add(routing.VehicleVar(13) == 0)

(complete code at the end)
I am assigning 13 to 0,  but I do not assign 12, yet this runs fine.
What am I missing?
I don't believe that I can use the above idea to work around the issue, because I can't have multiple vessels start at the same location:
routing.solver().Add(routing.VehicleVar(13) == 0)
routing.solver().Add(routing.VehicleVar(13) == 1)

Will yield no solution.
Is there a way to work around?
Here is my complete code:
"""Simple Pickup Delivery Problem (PDP)."""

from __future__ import print_function
from ortools.constraint_solver import routing_enums_pb2
from ortools.constraint_solver import pywrapcp

def create_data_model():
    """Stores the data for the problem."""
    data = {}
    data['distance_matrix'] = [
        [
            0, 548, 776, 696, 582, 274, 502, 194, 308, 194, 536, 502, 388, 354,
            468, 776, 662
        ],
        [
            548, 0, 684, 308, 194, 502, 730, 354, 696, 742, 1084, 594, 480, 674,
            1016, 868, 1210
        ],
        [
            776, 684, 0, 992, 878, 502, 274, 810, 468, 742, 400, 1278, 1164,
            1130, 788, 1552, 754
        ],
        [
            696, 308, 992, 0, 114, 650, 878, 502, 844, 890, 1232, 514, 628, 822,
            1164, 560, 1358
        ],
        [
            582, 194, 878, 114, 0, 536, 764, 388, 730, 776, 1118, 400, 514, 708,
            1050, 674, 1244
        ],
        [
            274, 502, 502, 650, 536, 0, 228, 308, 194, 240, 582, 776, 662, 628,
            514, 1050, 708
        ],
        [
            502, 730, 274, 878, 764, 228, 0, 536, 194, 468, 354, 1004, 890, 856,
            514, 1278, 480
        ],
        [
            194, 354, 810, 502, 388, 308, 536, 0, 342, 388, 730, 468, 354, 320,
            662, 742, 856
        ],
        [
            308, 696, 468, 844, 730, 194, 194, 342, 0, 274, 388, 810, 696, 662,
            320, 1084, 514
        ],
        [
            194, 742, 742, 890, 776, 240, 468, 388, 274, 0, 342, 536, 422, 388,
            274, 810, 468
        ],
        [
            536, 1084, 400, 1232, 1118, 582, 354, 730, 388, 342, 0, 878, 764,
            730, 388, 1152, 354
        ],
        [
            502, 594, 1278, 514, 400, 776, 1004, 468, 810, 536, 878, 0, 114,
            308, 650, 274, 844
        ],
        [
            388, 480, 1164, 628, 514, 662, 890, 354, 696, 422, 764, 114, 0, 194,
            536, 388, 730
        ],
        [
            354, 674, 1130, 822, 708, 628, 856, 320, 662, 388, 730, 308, 194, 0,
            342, 422, 536
        ],
        [
            468, 1016, 788, 1164, 1050, 514, 514, 662, 320, 274, 388, 650, 536,
            342, 0, 764, 194
        ],
        [
            776, 868, 1552, 560, 674, 1050, 1278, 742, 1084, 810, 1152, 274,
            388, 422, 764, 0, 798
        ],
        [
            662, 1210, 754, 1358, 1244, 708, 480, 856, 514, 468, 354, 844, 730,
            536, 194, 798, 0
        ],
    ]
    data['pickups_deliveries'] = [
        [1, 6],
        [2, 10],
        [4, 3],
        [5, 9],
        [7, 8],
        [15, 11],
        [13, 12],
        [16, 14],
    ]
    data['num_vehicles'] = 4
    data['depot'] = 0
    return data

def print_solution(data, manager, routing, assignment):
    """Prints assignment on console."""
    total_distance = 0
    for vehicle_id in range(data['num_vehicles']):
        index = routing.Start(vehicle_id)
        plan_output = 'Route for vehicle {}:\n'.format(vehicle_id)
        route_distance = 0
        while not routing.IsEnd(index):
            plan_output += ' {} -> '.format(manager.IndexToNode(index))
            previous_index = index
            index = assignment.Value(routing.NextVar(index))
            route_distance += routing.GetArcCostForVehicle(
                previous_index, index, vehicle_id)
        plan_output += '{}\n'.format(manager.IndexToNode(index))
        plan_output += 'Distance of the route: {}m\n'.format(route_distance)
        print(plan_output)
        total_distance += route_distance
    print('Total Distance of all routes: {}m'.format(total_distance))

def main():
    """Entry point of the program."""
    # Instantiate the data problem.
    data = create_data_model()

    # Create the routing index manager.
    manager = pywrapcp.RoutingIndexManager(
        len(data['distance_matrix']), data['num_vehicles'], data['depot'])

    # Create Routing Model.
    routing = pywrapcp.RoutingModel(manager)

    # Define cost of each arc.

    def distance_callback(from_index, to_index):
        """Returns the manhattan distance between the two nodes."""
        # Convert from routing variable Index to distance matrix NodeIndex.
        from_node = manager.IndexToNode(from_index)
        to_node = manager.IndexToNode(to_index)
        return data['distance_matrix'][from_node][to_node]

    transit_callback_index = routing.RegisterTransitCallback(distance_callback)
    routing.SetArcCostEvaluatorOfAllVehicles(transit_callback_index)

    # Add Distance constraint.
    dimension_name = 'Distance'
    routing.AddDimension(
        transit_callback_index,
        0,  # no slack
        10000,  # vehicle maximum travel distance
        True,  # start cumul to zero
        dimension_name)
    distance_dimension = routing.GetDimensionOrDie(dimension_name)
    distance_dimension.SetGlobalSpanCostCoefficient(100)

    routing.solver().Add(routing.VehicleVar(13) == 0)
    # routing.solver().Add(routing.VehicleVar(13) == 1)

    # Define Transportation Requests.
    for request in data['pickups_deliveries']:
        pickup_index = manager.NodeToIndex(request[0])
        delivery_index = manager.NodeToIndex(request[1])
        routing.AddPickupAndDelivery(pickup_index, delivery_index)
        routing.solver().Add(
            routing.VehicleVar(pickup_index) == routing.VehicleVar(
                delivery_index))
        routing.solver().Add(
            distance_dimension.CumulVar(pickup_index) <=
            distance_dimension.CumulVar(delivery_index))

    # Setting first solution heuristic.
    search_parameters = pywrapcp.DefaultRoutingSearchParameters()
    search_parameters.first_solution_strategy = (
        routing_enums_pb2.FirstSolutionStrategy.PARALLEL_CHEAPEST_INSERTION)

    # Solve the problem.
    assignment = routing.SolveWithParameters(search_parameters)

    # Print solution on console.
    if assignment:
        print_solution(data, manager, routing, assignment)

if __name__ == '__main__':
    main()

I have the same problem and question...

note internally each vehicle has a specific start and end node.
that's why you need to use routing.Start(vehicle_idx) and routing.End(vehicle_idx).

Hi @Mizux,
Thank you for your explanation!
Then if a vehicle (v) and a package (p) have the same location, a way to walk around, which I tried and works, is to put them into different nodes. In the distance matrix (dm), the corresponding rows or columns would be the same values, with dm[v] = dm[p], specially dm[v][p] = dm[v][v] = dm[p][v] = dm[p][p] = 0.

@MingyiZhangQimia, Thank You. The work around is working for me.


When will the code be released?

Sorry to bother you, I want to ask when the code will be released?
Thanks.

Hi, Thanks for your interest.
I am not researching text-to-3D currently.
Since most components are outdated, the code may be released after I update the framework thoroughly.


BUG: set_variables in backends.commons loads target dataset

Problem description
In #1609 we (I) implemented a fix for appending to datasets with existing variables. In doing so, it looks like I added a regression wherein the variables property on the AbstractWritableDataStore is repeatedly queried. This property calls .load() on the underlying dataset.
This was discovered while diagnosing some problems with the zarr backend (#1770, https://github.com/pangeo-data/pangeo/issues/48#issuecomment-353223737).
I have a potential fix for this that I will post once the tests pass.
cc @rabernat, @mrocklin
Output of xr.show_versions()

INSTALLED VERSIONS
------------------
commit: 20f957db105a9348b0f7d2dac076c17c31cbccee
python: 3.6.0.final.0
python-bits: 64
OS: Darwin
OS-release: 17.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
xarray: 0.10.0+dev18.g4a9c1e3
pandas: 0.21.0
numpy: 1.13.3
scipy: 0.19.1
netCDF4: 1.3.0
h5netcdf: 0.5.0
Nio: None
zarr: 2.1.4
bottleneck: 1.2.1
cyordereddict: None
dask: 0.15.4
distributed: 1.19.3
matplotlib: 2.0.2
cartopy: 0.15.1
seaborn: 0.8.1
setuptools: 33.1.0.post20170122
pip: 9.0.1
conda: None
pytest: 3.2.3
IPython: 5.2.2
sphinx: 1.6.3

Oh my... this is a good reason why we should get ride of properties that do non-trivial computation.


Fb login popup

This implements #91
During every page rendering (when logged in) it is checked whether the current user has a name set and if not, a popup window is displayed, that prompts the user to set a name.

i have eng text when in /de/ route, pls accept my fix pr and retest if this is fixed with that
also a lot of the things here are non project standard, like using regex for validation and not zod

For the language I'll try to implement your PR. Haven't seen this during testing, so you might have to validate that also

i have eng text when in /de/ route, pls accept my fix pr and retest if this is fixed with that
also a lot of the things here are non project standard, like using regex for validation and not zod

For the language I'll try to implement your PR. Haven't seen this during testing, so you might have to validate that also.
As for "project standard" I was not aware that we have such a standard at least I feel like it was not communicated. If you have specific things I can change them

Actually, I can replicate this now (don't know when it changed) The issue persists in the sidebar as well, so it seems to be an issue with the dict. Provider. I will open a separate issue for this.

i have eng text when in /de/ route, pls accept my fix pr and retest if this is fixed with that
also a lot of the things here are non project standard, like using regex for validation and not zod

For the language I'll try to implement your PR. Haven't seen this during testing, so you might have to validate that also.
As for "project standard" I was not aware that we have such a standard at least I feel like it was not communicated. If you have specific things I can change them

we will discuss this in our next meeting, as they have been communicated and can be found in different places in this project already!

With implementing the "no special characters" requirements here, I also added it to the existing name update dialogue.

In adition to the implementation this does now also include testcases


HMR doesn't seems to work with vite_rails_legacy

[x] I have tried upgrading by running bundle update vite_ruby.
[x] I have read the troubleshooting section before opening an issue.

Description 📖
Vite is performing a full page reload instead of HMR in an app using vite_rails_legacy
Reproduction 🐞
The app is using haml and the layout look like this:
!!!
%html
  %head
    %meta{content: "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}
    %title InsightsPlatform
    = stylesheet_link_tag    "insights_platform/application", media: "all"
    = javascript_include_tag "insights_platform/application"
    = vite_client_tag
    = vite_react_refresh_tag
    = vite_javascript_tag 'insights_platform'
    = csrf_meta_tags
    %meta{content: "width=device-width, initial-scale=1, maximum-scale=1", name: "viewport"}
    %link{href: "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,400,300,700", rel: "stylesheet", type: "text/css"}
    %link{href: "https://fonts.googleapis.com/css?family=Nunito+Sans:200,300,400,500,600,700,800", rel: "stylesheet", type: "text/css"}

  %body
    = yield

:javascript
  function load (){
    var user =<EMAIL_ADDRESS>    var assets =<EMAIL_ADDRESS>    window.global.renderEntryPoint({ currentUser: user, assets: assets })
  }

  window.addEventListener('load', function () {
    load()
  }, false);

#root

Modifying any component renders this in the vite console:
6:39:31 PM [vite] page reload bundles/insights_platform/components/common/Sidebar.jsx

Vite Ruby Info
Run bin/rake vite:info and provide the output:
bin/vite present?: true
vite_ruby: 3.0.2
vite_rails_legacy: 3.0.1
rails: <IP_ADDRESS>
node: v14.17.6
npm: 6.14.15
yarn: 1.22.5
pnpm:
ruby: ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-darwin20]

installed packages:
<EMAIL_ADDRESS>/Users/alejandroleonmunoz/projects/raynor
├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>

Logs 📜
If not providing a reproduction:

Output
Run DEBUG=vite-plugin-ruby:* bin/vite dev or DEBUG=vite-plugin-ruby:* bin/vite build and provide the output:
❯ DEBUG=vite-plugin-ruby:* bin/vite dev
  vite-plugin-ruby:config {
  vite-plugin-ruby:config   base: '/vite-dev/',
  vite-plugin-ruby:config   build: {
  vite-plugin-ruby:config     emptyOutDir: true,
  vite-plugin-ruby:config     sourcemap: false,
  vite-plugin-ruby:config     assetsDir: 'assets',
  vite-plugin-ruby:config     manifest: true,
  vite-plugin-ruby:config     outDir: '../../public/vite-dev',
  vite-plugin-ruby:config     rollupOptions: { input: [Object], output: [Object] }
  vite-plugin-ruby:config   },
  vite-plugin-ruby:config   root: '/Users/alejandroleonmunoz/projects/raynor/app/javascript',
  vite-plugin-ruby:config   server: {
  vite-plugin-ruby:config     host: 'localhost',
  vite-plugin-ruby:config     https: false,
  vite-plugin-ruby:config     port: 3036,
  vite-plugin-ruby:config     strictPort: true,
  vite-plugin-ruby:config     fs: { allow: [Array], strict: true },
  vite-plugin-ruby:config     hmr: { host: 'localhost', port: 3036 }
  vite-plugin-ruby:config   },
  vite-plugin-ruby:config   entrypoints: {
  vite-plugin-ruby:config     'entrypoints/insights_platform.js': '/Users/alejandroleonmunoz/projects/raynor/app/javascript/entrypoints/insights_platform.js',
  vite-plugin-ruby:config     'entrypoints/insights_platform_loader.jsx': '/Users/alejandroleonmunoz/projects/raynor/app/javascript/entrypoints/insights_platform_loader.jsx'
  vite-plugin-ruby:config   }
  vite-plugin-ruby:config } +0ms
[dotenv][DEBUG] did not match key and value when parsing line 38:

config/vite.json file looks like this:
{
  "all": {
    "sourceCodeDir": "app/javascript",
    "watchAdditionalPaths": [
      "app/javascript/bundles/**/*",
      "app/javascript/bundles/insights_platform/**/*"
    ]
  },
  "development": {
    "autoBuild": true,
    "publicOutputDir": "vite-dev",
    "port": 3036
  },
  "test": {
    "autoBuild": true,
    "publicOutputDir": "vite-test",
    "port": 3037
  }
}

vite.config.json like this:
import { resolve } from "path";
import { defineConfig } from "vite";
import RubyPlugin from "vite-plugin-ruby";

export default defineConfig({
  plugins: [RubyPlugin()],

  resolve: {
    alias: {
      jquery: "jquery/src/jquery",
      React: "react",
      ReactDOM: "react-dom",
      Shared: resolve(__dirname, "./app/javascript/bundles/shared"),
      "@Bundles": resolve(__dirname, "./app/javascript/bundles"),
    },
  },
});

Screenshots 📷

Thanks in advance!

Just adding that ViteRuby.instance.dev_server_running? returns true.

@cicloon Based on the config you provided, it looks like the react-refresh plugin is missing.
From the docs:

vite_react_refresh_tag: Only when using @vitejs/plugin-react

Please try adding that plugin to vite.config.ts, as it's required in order to enable HMR for React:
import { resolve } from "path";
import { defineConfig } from "vite";
import RubyPlugin from "vite-plugin-ruby";
import ReactPlugin from "@vitejs/plugin-react";

export default defineConfig({
  plugins: [RubyPlugin(), ReactPlugin()],

  resolve: {
    alias: {
      jquery: "jquery/src/jquery",
      React: "react",
      ReactDOM: "react-dom",
      Shared: resolve(__dirname, "./app/javascript/bundles/shared"),
      "@Bundles": resolve(__dirname, "./app/javascript/bundles"),
    },
  },
});

Feel free to reopen if it still doesn't work after installing and adding the plugin.

Hi @ElMassimo, I tried doing that, but it results in an Max stack size error when trying to bundle. Note that the application bundles correctly, it's only react-refresh what isn't working.

If you provide a repo with a minimal reproduction, I can take a look.
Which version of vite-plugin-react did you install?


Update AdvancedWebView.java

remove unnecessary codes

Thank you very much!
While not wrong, these modifiers were definitely redundant.
Added in https://github.com/delight-im/Android-AdvancedWebView/commit/d4729c0835f0394c5dceb297942b59d7766c5abc


Add expiry parameters to prepareSwap and make it idempotent

Change prepareSwap to be ready for use of hold invoices in swaps by adding the expiry and cltvExpiry parameters and making it idempotent.

 Use absolute and relative expiration in prepareSwap, and make it idempotent

@treygriffith updated

@treygriffith updated


Issue with Xiaomi Wireless Button

This bug haven't appear until version 3.0 .
The Wireless Button won't have the information about which button did I click. The information "Button" always valued Button=1. And the Auto Script with definate button click is also invalid. Please fix this small problem.

What I want to add is that the ID of this feature is "yeelink.remote.contrl:

I also encountered the same problem

Update to the master version and try again :)

Update to the master version and try again :)

Thank you for your waiting. Due to the Important Conference in China, I had some trouble to access Github. So I was sorry to delay to reply. Thank you for your help and this problem has successfully resolved. The click information is completely correct now and the auto script is triggered normally. Thanks for the help! Have a nice day!


[Feature request] Stringify: Wrapping comments at specified width

Thanks for this wonderful library!
Would you be interested in a contribution that wraps comments at the specified with during stringify?
e.g.
foo:
  - This is an item
  # This is a very long comment in order to demonstrate wrapping at 80 characters. Isn't that beautiful?
  - That is an item

would result in
foo:
  - This is an item
  # This is a very long comment in order to demonstrate wrapping at 80
  # characters. Isn't that beautiful?
  - That is an item

@leipert Are you still interested in working on this, or does the commentString option solve the issue for you sufficiently well?

Closing as presumably resolved.


release-20.1: sql: don't write to slow query log if disabled

PR: https://github.com/cockroachdb/cockroach/pull/50941
From release notes:

CockroachDB no longer writes to slow query log unless explicitly enabled. [#50941][#50941] {% comment %}doc{% endcomment %}

This doesn't require docs, as the cockroachdb PR is a bug fix.


updated version number for v0.0.26

Codecov Report
Base: 61.37% // Head: 61.37% // No change to project coverage :thumbsup:

Coverage data is based on head (1aef1ff) compared to base (da6e25d).
 Consider uploading reports for the commit 2859c0a to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #682   +/-   ##
========================================
  Coverage    61.37%   61.37%
========================================
  Files           29       29
  Lines         3135     3135
========================================
  Hits          1924     1924
  Misses        1211     1211

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.


Improve data file generation

Solves #84  and #88

Hello @JuliaSprenger! Thanks for opening this PR.

In the file ando/tools/generator/tests/test_AnDOGenerator.py:

Line 66:46: E226 missing whitespace around arithmetic operator
Line 79:52: E226 missing whitespace around arithmetic operator
Line 79:63: E226 missing whitespace around arithmetic operator
Line 85:29: E226 missing whitespace around arithmetic operator
Line 90:28: E226 missing whitespace around arithmetic operator
Line 95:28: E226 missing whitespace around arithmetic operator

Do see the Hitchhiker's guide to code style

Pull Request Test Coverage Report for Build 766808711

0 of 53 (0.0%)  changed or added relevant lines in 2 files are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-3.5%) to 37.385%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

ando/tools/generator/AnDOGenerator.py
0
5
0.0%

ando/tools/generator/tests/test_AnDOGenerator.py
0
48
0.0%

Files with Coverage Reduction
New Missed Lines
%

ando/tools/generator/AnDOGenerator.py
2
0%

Totals

Change from base Build 766317947:
-3.5%

Covered Lines:
203

Relevant Lines:
543

💛  - Coveralls

Ok, looks good to me. @Slowblitz if you are also happy with it you can merge.

Yes we can =) \o/


Does CodeArea support multiple selection ranges?

Tried to follow MultiCaretAndSelectionDemo, but since I'm using a CodeArea, this doesn't seem to work.
Even with one selection :
Selection<String, String, String> selection;
selection = new SelectionImpl<>("selection",currentCodeArea,0,10);

Is it possible to select multiple ranges in CodeArea? Or am I doing something wrong?
Thanks!

It seems that when the range is specified with the constructor that the selection isn't displayed in the correct location. Use the following workaround in the mean time:
    Selection extra = new SelectionImpl( "extra", codeArea );
    codeArea.addSelection( extra );  // add it first
    extra.selectRange( 29, 38 );  // then set range


[Explore] Drag & Drop Adhoc Metric while the Popover is open messes things up

Screenshots

How to reproduce the bug

Add at least two metrics
Click to open the popover of the second metric
Drag & Drop to change order
Save the popover.
It should have updated the original metric but it updates the other metric at the original position instead.
Then if change the other metric, both metrics are updated.

Environment
Latest master
Checklist
Make sure to follow these steps before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[ ] I have reproduced the issue with at least the latest released version of superset.
[ ] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Add any other context about the problem here.

@junlincc I don't think this is a cosmetic issue. It's a functionally incorrect behavior.

@junlincc I don't think this is a cosmetic issue. It's a functionally incorrect behavior.

Sounds right.major refactoring work for control fields is gonna happen soon.We will address all related known issue together. But feel free to add p1 label if you consider this particular one as 1.0 release blocker @ktmud

Sounds right.major refactoring work for control fields is gonna happen soon.We will address all related known issue together. But feel free to add p1 label if you consider this particular one as 1.0 release blocker @ktmud

This behavior only happens when you have two same metrics. which means... it has been resolved by https://github.com/apache/superset/pull/12657

This behavior only happens when you have two same metrics. which means... it has been resolved by https://github.com/apache/superset/pull/12657

https://user-images.githubusercontent.com/335541/105816164-ce75db80-5f68-11eb-819c-c1fa9d1b4618.mp4
This bug is still reproducible.

https://user-images.githubusercontent.com/335541/105816164-ce75db80-5f68-11eb-819c-c1fa9d1b4618.mp4
This bug is still reproducible.

Another symptom of the same indexing/selected item IDing issue: if you delete one of the metric/adhoc filter, the popover messes up for all other items after the deleted one.
https://user-images.githubusercontent.com/335541/114465478-079f0e80-9b9c-11eb-9c1c-a730f961f2ac.mp4

I'll have a look at this

@kgabryje would you mind getting this under your wing? It looks like you have worked on this functionality heavily and you should have more context than I do. I am struggling to find the root cause.


Issue with warrior class and plate type armor

Describe
When using the warrior and having "plate" type armor (any armor that changes character to final form of armor) causes game to crash when talking to griswold or pepin.
To Reproduce
Steps to reproduce the behavior:

Get plate armor.
start a new game with character.
talk to griswold pepin and even cain will cause the game to freeze.

Expected behavior
No freezing

This could also be an issue with the "idle" movement of the player in plate armor form. I have noticed the game freezes when left in town.

I tried emptying most of my inventory but still crashes when talking in town mostly with cain and pepin the healer. This is on both the diablo and hellfire builds

@rayhern can you attach a save game?

Yes i will attach save game as soon as I get home. Seems like it could be a memory issue even as I have noticed it doesnt start happening until around character level 20

It never happens in dungeons just in towns when talking to people or standing still too long

Thanks for reporting.
As AJenbo already said, a savegame would help a lot.

This issue was resolved by using a different set of mpqs.

This issue was resolved by using a different set of mpqs.


The program attempts to download chromium upon launch

I have the requirements, I built it correctly according to the instructions, I have added tor.exe to the PATH in windows, I tried with it both tor expert running and not. Each time I run it through cmd it attempts to download chromium and whenever progress gets to 10%, it reverses into -10% and goes up again.

Edit: I downloaded a premade build from the actions tab and the progress went past 10%, we'll see how it goes.

Launching it through a build form the actions tab fixed it


[oneDNN] Fix conv3d_backprop_filter_v2_grad_test_cpu test failure when oneDNN …

…is enabled
The commit https://github.com/intel-innersource/frameworks.ai.tensorflow.private-tensorflow/commit/174c5096f303d5be7ed2ca2662b08371bff4ab88 introduced a new test case ( testBadFilterShape) in the conv3d_backprop_filter_v2_grad_test.py. This test case has a bad filter shape and expects the corresponding kernel to check for this condition. Update the mkl kernel to add the check for invalid filter shape.

Two test are failed, I am trying to look at the details, but not sure if the failure is related to this PR change. For the Code Check-Changed Files, I couldn't see what exactly failed.
For the Py+CPP Test Suite, I see //tensorflow/c/eager:c_api_test_gpu failed, not sure if it is from this PR change.
Please let me know if I miss anything. Thanks.


Files not synching

Have you read a contributing guide?

[X] I have read CONTRIBUTING.md
[X] I have searched the existing issues and didn't find any that were similar
[X] I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior
The Anytype Applications are synching and backing up to the Anytype Sync Node but only text und structure, no images, files, videos. The Files arent listened under "Remote Storage".
Expected Behavior
The Anytype Apps should sync and backup every data.
Steps To Reproduce

Create Ubuntu Server 22.04 LTS Virtual Maschine on ESXi
Add a second disk with 100GB
Mount the new disk unter /data/anytype and add it to the /etc/fstab file to mount it automatically on every boot.

I have tried to fix this issue. When the server is booted up and I run "make down" and after the containers are shutted down "make start", the sync works. But it cant to normal that I need to restart Anytype manually every time.

Github formatted the .env.common File weird. Sorry for that

See, storage is empty, even with uploaded pictures in the notes.

I also encountered the same problem with synology NAS docker deployment

I have tested with different Linux OS and have found one thing in common:
The filesync in the latest version 5.0 from last week doesnt work whatever im doing. It simply doesnt work.
The Filesync with the Pre-Release 4.1.0 works most of the time. After a Server Reboot, I still need to restart the Anytype Sync node, but the files are synchronising.

I have the same issue on Debian, no picture/file sync with the newest version. New setup on Server doesn't work.

It wrong config minio
AWS_ACCESS_KEY_ID=minio_access_key
AWS_SECRET_ACCESS_KEY=minio_secret_key
used in docker-compose user ans Login and Password
but also used in /etc/.aws/credentials   and  service create-bucket  where need access-keys  not login and password
Temp fix:

go to web interface minio with login password from .env
create access key
write to /etc/.aws/credentials  it
make restart

I also have this problem

it generate "make start"
.env from .env.common than etc/.aws/credentials
than go to minio  and create access key
than change in subfolder etc/.aws/credentials
AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY
to minio  access key (not minio user psw  in .env)
"make restart"

Thanks for your help, but I couldn't get it to work. I used the .env credentials to log in and create an access key. Then in /etc/.aws/credentials I replaced AWS_ACCESS_KEY_ID=minio_access_key and AWS_SECRET_ACCESS_KEY=minio_secret_key with the one I created and ran "make restart", but I didn't create a bucket in Minio. And the picture sync is still not working.
I looked into /etc/.aws/credentials after "make restart" and the access id and access key where not there anymore, it was again AWS_ACCESS_KEY_ID=minio_access_key and AWS_SECRET_ACCESS_KEY=minio_secret_key.

try create bucket by yourself


NIFI-12630 Fix NPE getLogger in ConsumeSlack and PublishSlack

Summary
NIFI-12630
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[X ] Apache NiFi Jira issue created

Pull Request Tracking

[X ] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[X ] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[X] Pull Request based on current revision of the main branch
[X] Pull Request refers to a feature branch with one commit containing changes

Verification
I added a new unit test to confirm the change works
Build

[X] Build completed using mvn clean install -P contrib-check

[X] JDK 21

Licensing
No new files and no new dependencies
Documentation
No documentation changes

+1 LGTM, thanks for the fix! Merging to only main until #7673 is backported to support/nifi-1x.x


KeyError: 'text_char'  on preprocessing.py

Error Description
The error is raised when you run the ludwig experiment --data_csv src/data/input/training.csv  for the second time with the same file name .csv input file. you have to change the file name every time you run the experiment. When it creates the .json and the .hdf5 for the first time it works, but when it loads the pre created .json and the .hdf5 files it raise the following error
Code
ludwig experiment --data_csv src/data/input/training.csv --model_definition_file model_definition.yaml
Error

Found hdf5 and json with the same filename of the csv, using them instead
Using full hdf5 and json
Loading data from: src/data/input/training.hdf5
Loading metadata from: src/data/input/training.json
usr/lib/python3.5/site-packages/h5py/_hl/dataset.py:313: H5pyDeprecationWarning: dataset.value has been deprecated. Use dataset[()] instead.
"Use dataset[()] instead.", H5pyDeprecationWarning)
Traceback (most recent call last):
File "/usr/local/bin/ludwig", line 11, in
load_entry_point('ludwig==0.1.0', 'console_scripts', 'ludwig')()
File "usr/lib/python3.5/site-packages/ludwig/cli.py", line 86, in main
CLI()
File "usr/lib/python3.5/site-packages/ludwig/cli.py", line 64, in init
getattr(self, args.command)()
File "usr/lib/python3.5/site-packages/ludwig/cli.py", line 67, in experiment
experiment.cli(sys.argv[2:])
File "usr/lib/python3.5/site-packages/ludwig/experiment.py", line 548, in cli
experiment(**vars(args))
File "usr/lib/python3.5/site-packages/ludwig/experiment.py", line 234, in experiment
random_seed=random_seed
File "usr/lib/python3.5/site-packages/ludwig/data/preprocessing.py", line 562, in preprocess_for_training
[training_set, validation_set, test_set]
File "usr/lib/python3.5/site-packages/ludwig/data/preprocessing.py", line 777, in replace_text_feature_level
level)
KeyError: 'text_char'

I have already solved this issue most likely. Please try to use the current version on the master branch instead of the pip package and let me know if you still have the problem. (a v0.1.1 is coming up with this fix included).

I got into same trouble when I ran the following command
ludwig predict --data_csv path/to/sample_dataset.csv --model path/to/results/experiment_run_0/model/

later I saw @w4nderlust  comment "use the current version on the master branch" , I did it but still same error KeyError: 'text_char'

Please update to the current master, delete the hdf5 and json files, retrain the model and try again to predict and let me know if the problem is still there.

I updated the Ludwig to current master and as you said removed hdf5 and json files...when I predicted it ...worked like a charm ...got results stored in result_0

Glad it worked! @HichemMaiza I'm closing the issuse, feel free to reopen in case following those instructions doesn't solve it for you.

@w4nderlust I am experiencing this same issue, when I run the experiment command when the hfd5 file had already been generated it fails with a KeyError.
If i understood, the way to bypass this issue is by deleting the hdf5 file every single time you train? this adds a lot of overhead since the same dataset needs to be processed every single time.

@manugarri no you don't need to do it, the hdf5 and yaml file exist EXACTLY to avoid preprocessing the dataset every time and removing that overhead.
You need to delete the hdf5 and json file only if you change the feature type in a yaml file and try to use the same dataset, which you shouldn't because the type of the column didn't change really, and if it did  change (meaning you modified the csv file), well then that's a different dataset and you should call it with a different name.

that is weird @w4nderlust , i am not changing the dataset but any time I try to retrain (i stop the experiment after a while for testing) it gives me that error, maybe I should open a new (and properly documented) issue?

@manugarri yes please, if you could provide a reproducible example (csv + yaml) I will gladly look into it. Also make sure you are using the current code from master and not the pip package.


Dimensional transceivers not retaining configs across logout/logins in SSP 1.12.2

Issue Description:
Dimensional transceivers loose their configuration in SSP after logging out.
What happens:
All channels previously set up are available, but nothing is shown in the "send" or "receive" categories for energy, items, and fluids. On selecting channels for each, the transceiver functions as expected. Re-opening the GUI shows the "send" and "receive" listings blank again despite the transceiver working.
Logging out of the game session (even just to the main menu) and restarting the world causes all the transceivers to revert to all channels deselected.
What you expected to happen:
The configuration to remain, as it did in 5.0.33 and earlier? 😜
Steps to reproduce:

configure a transceiver, selecting channels for "send" or "receive" in any or all categories (items, fluids, energy).
log out of the map, to main menu or quit Minecraft entirely
3.start same map again, check transceiver. Channels are no longer selected for "send" or "receive".

Affected Versions (Do not use "latest"):

EnderIO: 5.0.35
EnderCore: 0.5.41
Minecraft: 1.12.2
Forge: <IP_ADDRESS>45
SpongeForge? no
Optifine? no
Single Player and/or Server? Single player, no server.

Your most recent log file where the issue was present:
https://pastebin.com/JmiCgDyk

So quickly! @tterrag1098 , you are a magnificent code wizard. 😃


Giphy issue, gifs are not loaded at all

We currently integrated Giphy, followed the documentation, received the production API Key.
The option is available now, we can chose and sent the gifs we want, except that when sent, the gifs are not loaded at all.
This happens from different browsers : Chrome,Firefox,Edge , different OS when using the desktop app : Linux , MacOs and Windows, and also from the app from the mobile phones.

Is this issue happening to others?  We have upgraded to the latest version Zulip Server 4.3 still the same issue.
Can you help me find out why is this happening?

Are you using the S3 file storage backend?  If so, upgrade-zulip-from-git 4.x will likely fix this (see 21cedabbdfaf8a6db939c46693be8fd2982f5547).
I'm hoping to do a 4.4 release today from the current 4.x branch, so confirmation of whether this works for you would be appreciated.

Thank you for your fast reply.
Actually our issue was that camo was down because it had crashed with the error :
Jun 18 13:17:57 zulip.example.com camo[1323]: _http_outgoing.js:489
Jun 18 13:17:57 zulip.example.com camo[1323]:     throw new Error('"value" required in setHeader("' + name + '", value)');
Jun 18 13:17:57 zulip.example.com camo[1323]:     ^
Jun 18 13:17:57 zulip.example.com camo[1323]: Error: "value" required in setHeader("Accept-Encoding", value)
Jun 18 13:17:57 zulip.example.com camo[1323]:     at validateHeader (_http_outgoing.js:489:11)
Jun 18 13:17:57 zulip.example.com camo[1323]:     at ClientRequest.setHeader (_http_outgoing.js:498:3)
Jun 18 13:17:57 zulip.example.com camo[1323]:     at new ClientRequest (_http_client.js:173:14)
Jun 18 13:17:57 zulip.example.com camo[1323]:     at Object.request (http.js:38:10)
Jun 18 13:17:57 zulip.example.com camo[1323]:     at Object.request (https.js:239:15)
Jun 18 13:17:57 zulip.example.com camo[1323]:     at Object.get (https.js:243:21)
Jun 18 13:17:57 zulip.example.com camo[1323]:     at process_url (/usr/share/camo/server.js:118:25)
Jun 18 13:17:57 zulip.example.com camo[1323]:     at Server.<anonymous> (/usr/share/camo/server.js:298:18)
Jun 18 13:17:57 zulip.example.com camo[1323]:     at emitTwo (events.js:126:13)
Jun 18 13:17:57 zulip.example.com camo[1323]:     at Server.emit (events.js:214:7)

I will check it after the 4.4 upgrade if camo is running...not sure what the cause was...

Interesting, OK, that would also do it.  I'm not familiar with that exception, but it looks like some sort of bug in camo.
Probably not very interesting for us to debug, in that we're planning to move off camo to an alternative that supports thumbnailing.

The most similar upstream issue is https://github.com/atmos/camo/issues/78.
If you see that error again and can figure out what URL was involved, it'd be great to report something upstream in any case.


LED not turning off

I am testing an OpenDeck v2 (Firmware 7.5.4)  with a LED Button (single color):
Configured via USB - Web Config tool
Button is at ID 63 (R8 C8)
LED is at ID 47 (R6 C8)
Button 63 Config:
Latching
Note
Midi Channel 1
Midi ID 63
Value 127
LED 47 Config:
color testing - off
Activation ID: 63
RGB Enable OFF
Control Type Local / Note (Single value)
Activation value 127
MIDI channel 1
We would expect the LED to turn on and off when pressing the button but the Voltage only changes minimally (4.5V to 4.1V). Do you have any idea what the issue could be?
We also tried several other settings like changing the Activation Value via sending CC instead of Note but always wit the same outcome
Thanks

Which board revision exactly do you have?

We used:
OpenDeck board
Revision: 2.2.1
2022.12
We also tried LED ID 0 (R1 C1) with same results.
The only time we could observer the LED to go dark (around 1V on startup) with this general LED setting enabled:
Start-up animation ON
Enables or disables LED animation when the device is powered on.
Here is our current configuration:
OpenDeckUI-Backup-2023-09-25-14-02.zip
Rotary Encoder (ID 0) working
Analog 31 working
Button 63 working
LED 0 only jumping between 4.1V and 4.5V

Sorry for the late reply. I have just tried this and couldn't reproduce. Have you maybe tried with different LED?

It worked with a different LED, the butten with the built in LED also had an built in bridge rectifier which caused the problem.
Thank you for your help!


Add Caching for OkHttp

Description
Adds response cache to OkHttp. This will automatically handle caching based on preferences from the API, such as utilizing ETag and If-None-Match headers.
Links
SDKCF-1095
Checklist

[x] I have read the contributing guidelines.
[x] I wrote/updated tests for new/changed code
[x] I ran ./gradlew check without errors

Codecov Report

Merging #8 into master will decrease coverage by 0.41%.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
- Coverage   77.63%   77.21%   -0.42%
==========================================
  Files           6        6
  Lines          76       79       +3
  Branches        4        4
==========================================
+ Hits           59       61       +2
- Misses         16       17       +1
  Partials        1        1

Impacted Files
Coverage Δ

...ch/mobile/remoteconfig/RemoteConfigInitProvider.kt
0% <0%> (ø)
:arrow_up:

.../rakuten/tech/mobile/remoteconfig/ConfigFetcher.kt
100% <100%> (ø)
: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 f073605...5270daa. Read the comment docs.

Codecov Report

Merging #8 into master will decrease coverage by 0.41%.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
- Coverage   77.63%   77.21%   -0.42%
==========================================
  Files           6        6
  Lines          76       79       +3
  Branches        4        4
==========================================
+ Hits           59       61       +2
- Misses         16       17       +1
  Partials        1        1

Impacted Files
Coverage Δ

...ch/mobile/remoteconfig/RemoteConfigInitProvider.kt
0% <0%> (ø)
:arrow_up:

.../rakuten/tech/mobile/remoteconfig/ConfigFetcher.kt
100% <100%> (ø)
: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 f073605...5270daa. Read the comment docs.


Add game preference to use simplified graphics

I've received requests from multiple players that it's hard for them to read the numbers on the back's of cards. I don't personally have any issues reading it, but I can understand why this might cause accessibility issues for certain players.

is this done now?

Yup!


Cookie default value for path should be None, not Some("/")

The current default value for the path field for Cookie is Some("/"). I'm using this crate from a user agent perspective, and per IETF RFC 6265 Section 5.1.4, a user agent should set the path based on the request-uri if it is not set via the Path attribute; e.g. should be "/foo/bar" for a cookie resulting from a request to "http://example.com/foo/bar/" if no Path attribute is included. With the current behavior, it is impossible for client code to distinguish if the parsed cookie contained no Path attribute, or "; Path=/", and as such cannot know when to set it from the request-uri.

Oops, thanks for pointing this out!


Trouble getting group_execute_trigger to work

Hi, I've been working on this for a few days but have not gotten group_execute_trigger in GPIBInterface to work. I followed closely this thread, where this functionality was first introduced:
https://github.com/hgrecco/pyvisa/issues/67
That thread is closed now because the feature was added, and apparently worked.
*My issue is that although my four meters are INIT'd, and armed, and set to listen to the bus, when I execute group_execute_trigger(resources)
the meters do not receive the trigger.
For reference, I also closely read this thread over on the NI forums, started by the same author:
http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Executing-quot-TriggerList-quot-using-GPIB-Interactive-Control/td-p/2943028
I reproduced those same results as described there...in the NI Interactive Control, the TriggerList 1,2 command throws an error, but by first issuing set 488.2 0, the TriggerLlist is accepted.
I set a trap in my python code right before I issued the group_execute_trigger, went out to the NI Interactive Control, and issued the TriggerList command, and my meters do trigger, which tells me the meters are actually correctly armed.
I know the original thread is a bit old, but I would be grateful if someone could try to help me figure out what I'm doing wrong.
-Arthur
In case it's needed here are details of my setup:
`C:\Users\arussell>python -m visa info
Machine Details:
Platform ID:    Windows-7-6.1.7601-SP1
Processor:      Intel64 Family 6 Model 15 Stepping 11, GenuineIntel
Python:
Implementation: CPython
Executable:     C:\Python27\python.exe
Version:        2.7.10
Compiler:       MSC v.1500 32 bit (Intel)
Bits:           32bit
Build:          May 23 2015 09:40:32 (#default)
Unicode:        UCS2
PyVISA Version: 1.8
Backends:
ni:
Version: 1.8 (bundled with PyVISA)
#1: C:\Windows\system32\visa32.dll:
found by: auto
bitness: 32
Vendor: National Instruments
Impl. Version: 14680064
Spec. Version: 5243904
#2: C:\Windows\system32\visa32.dll:
found by: auto
bitness: 32
Vendor: National Instruments
Impl. Version: 14680064
Spec. Version: 5243904`

I was able to get the group execute trigger to work using ctypes to talk to the NI488.2 dll on Windows. As far as I can tell, pyvisa is using the visa dlls to send commands.
Here's a snippet of code:
import ctypes

# find and open communication with the NI488.2 dll
path = ctypes.util.find_library('ni4882')
ni4882 = ctypes.WinDLL(path)

# bus interface id
interface = 0

# 0x40 = set bus as talker
# 0x3F = unlisten
# 0x20 + device address for devices to listen, use gpib address 1 and 2 for this example
# 0x08 = GET
command = [0x40, 0x3F, 0x20 + 1, 0x20+2, 0x08]

count = len(command)

# convert command list to string of characters
command_chr = ''.join(map(chr, command))

# send the command using ibcmd
ni4882.ibcmd(interface, command_chr, count)

I'm not sure how to integrate this code into pyvisa. I could give it a shot if someone could provide some direction on where to start.


Fixes DSL Search, List lookups

This will fix an issue in the searching that we need. Also will release a new version.

Pull Request Test Coverage Report for Build 375

3 of 5 (60.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 73.575%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

atlasclient/base.py
2
4
50.0%

Totals

Change from base Build 372:
-0.1%

Covered Lines:
813

Relevant Lines:
1105

💛  - Coveralls

Pull Request Test Coverage Report for Build 375

3 of 5 (60.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 73.575%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

atlasclient/base.py
2
4
50.0%

Totals

Change from base Build 372:
-0.1%

Covered Lines:
813

Relevant Lines:
1105

💛  - Coveralls

Pull Request Test Coverage Report for Build 375

3 of 5 (60.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 73.575%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

atlasclient/base.py
2
4
50.0%

Totals

Change from base Build 372:
-0.1%

Covered Lines:
813

Relevant Lines:
1105

💛  - Coveralls

@jpoullet2000 can you please release the new version of atlasclient on pypi ?

Done.
On Mon, Jul 8, 2019 at 2:14 PM Verdan Mahmood<EMAIL_ADDRESS>wrote:

@jpoullet2000 https://github.com/jpoullet2000 can you please release
the new version of atlasclient on pypi ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jpoullet2000/atlasclient/pull/104?email_source=notifications&email_token=AAFHEHQK2HT32RLTOLDDGHLP6MVTBA5CNFSM4H6UMXXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZM4STA#issuecomment-509200716,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFHEHUFXPLPMKTWWD2L6YDP6MVTBANCNFSM4H6UMXXA
.


experiment[yaml]: Pod-CPU-consumption

Signed-off-by: udit<EMAIL_ADDRESS>
What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Checklist

[ ] Does this PR have a corresponding GitHub issue?
[ ] Have you included relevant README for the chaoslib/experiment with details?
[x] Have you added debug messages where necessary?
[x] Have you added task comments where necessary?
[x] Have you tested the changes for possible failure conditions?
[x] Have you provided the positive & negative test logs for the litmusbook execution?
[ ] Does the litmusbook ensure idempotency of cluster state?, i.e., is cluster restored to original state?
[ ] Have you used non-shell/command modules for Kubernetes tasks?
[ ] Have you (jinja) templatized custom scripts that is run by the litmusbook, if any?
[ ] Have you (jinja) templatized Kubernetes deployment manifests used by the litmusbook, if any?
[ ] Have you reused/created util functions instead of repeating tasks in the litmusbook?
[ ] Do the artifacts follow the appropriate directory structure?
[ ] Have you isolated storage (eg: OpenEBS) specific implementations, checks?
[ ] Have you isolated platform (eg: baremetal kubeadm/openshift/aws/gcloud) specific implementations, checks?
[ ] Are the ansible facts well defined? Is the scope explicitly set for playbook & included utils?
[ ] Have you ensured minimum/careful usage of shell utilities (awk, grep, sed, cut, xargs etc.,)?
[ ] Can the limtusbook be executed both from within & outside a container (configurable paths, no hardcode)?
[ ] Can you suggest the minimal resource requirements for the litmusbook execution?
[ ] Does the litmusbook job artifact carry comments/default options/range for the ENV tunables?
[ ] Has the litmusbooks been linted?

Special notes for your reviewer:
A cpu-pod-consumption experiment is added. In this experiment we give a certain CPU input and if the pod's cpu request is more than it then it will schedule it to a new node. followings are the files added.

[X] Directory - experiments/chaos/pod_cpu_consumption

[X] File 1 - pod_cpu_consumption.yml
[X] File 2 - run_litmus_test.yml
[X] File 3 -  test.yml
[X] File 4 - test_vars.yml

Before running the experiment:
[root@master-1558702621 allfiles]# kubectl get po -n percona1 -o wide
NAME                      READY     STATUS    RESTARTS   AGE       IP             NODE
percona-fc7db745c-hs4mk   1/1       Running   0          33m       <IP_ADDRESS>   node3-1558702621.mayalabs.io

After running the experiment with the CPU-input 400m and application CPU-request 500m
[root@master-1558702621 allfiles]# kubectl get po -n percona1 -o wide
NAME                      READY     STATUS    RESTARTS   AGE       IP             NODE
percona-fc7db745c-t8kt4   1/1       Running   0          1m        <IP_ADDRESS>   node2-1558702621.mayalabs.io

Here are the logs:
For positive case:
logs.txt
For negative case:
logs.txt

https://github.com/litmuschaos/litmus/pull/830


How to get more detail logs when mongo-connector sync data from mongodb?

Any way or setting get more detail logs when mongo-connector sync data from mongodb to elasticsearch?
mongo-connector output logs for a long time like this：

2017-09-21 13:51:02,221 [ALWAYS] mongo_connector.connector:51 - Platform: Linux-3.10.0-693.2.2.el7.x86_64-x86_64-with-debian-8.9
2017-09-21 13:51:02,221 [ALWAYS] mongo_connector.connector:51 - pymongo version: 3.5.1
2017-09-21 13:51:02,240 [ALWAYS] mongo_connector.connector:51 - Source MongoDB version: 3.4.7
2017-09-21 13:51:02,240 [ALWAYS] mongo_connector.connector:51 - Target DocManager: mongo_connector.doc_managers.elastic2_doc_manager version: 0.3.0

I can't obtain more about process status.

Yes. It looks like your verbosity level is set too low. The default is warning/errors only (and ALWAYS).
See https://github.com/mongodb-labs/mongo-connector/wiki/Configuration Options#verbosity


-- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>KKiapay

when i installed kkpiay i get this error -- UNMET PEER DEPENDENCY<EMAIL_ADDRESS>anyone know how can i fixe this issue

This error is not related to KkiaPay. Assuming you want to integrate kkiapay into your reactjs frontend, I recommend you instead use the kkiapay widget method. You have very intuitive documentation at this address: https://docs.kkiapay.me/v1/plugin-et-sdk/sdk-javascript


flag to determine if image has been edited

This is a feature request for the callback to indicate whether the image has been modified from the original or not.

Anything with this?


BUG: Inconsist behavior when releasing bindings

From this config:
general {
    no_cursor_warps = false
}

# BIND     MOD                  KEY       DISPATCHER           VALUE
bind =     SUPER,               1,        workspace,           1
bind =     SUPER,               2,        workspace,           2
bind =     SUPER SHIFT,         1,        movetoworkspace,     1
bind =     SUPER SHIFT,         2,        movetoworkspace,     2

Presing super+shift+2,will move the the window to the workspace 2. (as expected)
But if without releasing SHIFT, I press super+shift+1, something weird hapens: the mouse pointer move to the monitor, but the active window doesn't.

What should hapens
Both the cursor and the window move to the need workspace.
What hapens
The window doesn't move, but the cursor does.

huh, can't repro? Are you on -git?

Yes. I made a video, probably it is not gonna be much help.
https://www.youtube.com/watch?v=c0G7-NCU16k

can't reproduce with latest commit, can you re-test if you are still using Hyprland

it's likely fixed


Error Failure to initialize swagger UI

I'm on Ubuntu Linux, I have swagger UI running from docker. When I try to render I get an error from the plugin saying "Failure to initialize swagger UI". Unsure how to go about troubleshooting it further.

This is strange, this does not happen normally. Please send the logs (plugin folder/logs)

And also check out, please, that you have downloaded resources (plugin settings - download resources button)

Also, please make sure that you have downloaded the resources by clicking the 'Download Resources' button in the plugin settings (this requires internet connection)

This resolved my issue.
Thank you!


debug/dump current state of tree

On each block, it would be awesome to be able to debug/dump the current state of the tree.
Each location on the tree should be one of 3 states.

Waiting to be solved
Solved, Waiting for Purchase
Available - spot open to enqueue new transaction
(are there other states?)

(stolen from a python binarytree module)
>>> my_bst = bst(height=4, is_perfect=True)
>>> print (my_bst)

                ___________________15_____________________
               /                                          \
        ______7_______                           __________23_________
       /              \                         /                     \
    __3__           ___11___               ____19___               ____27___
   /     \         /        \             /         \             /         \
  1       5       9         _13         _17         _21         _25         _29
 / \     / \     / \       /   \       /   \       /   \       /   \       /   \
0   2   4   6   8   10    12    14    16    18    20    22    24    26    28    30

using the fully populated bst as a model, you can reference any point just as an index location in a list.

coda client show-tree ?
(snarks are coming in all the time, so I figure the state is changing all the time?)


Views and Performance on phone (Android)

Hello guys!
Why i was swiped on my phone (defferent phones, the old model with android 4 and the young with 6 and higer) between the five views with the loaded content very sloooow?
For example, application in store: https://play.google.com/store/apps/details?id=ru.thisislogic.igtrk
Run and swipe from the right to the left.
How can i increase performance?
My code:
            <SwipeableViews index={this.state.index} onChangeIndex={this.onChangeIndex} >

                    <Swipeable onSwipeRight={this.showMenu}>

                            <Latest containerHeight={height} />

                    </Swipeable>

                    <Swipeable onSwipeRight={this.showMenu}>

                            <Russia24List scrollPos={this.state.scrollPos} containerHeight={height} />

                    </Swipeable>

                    <Swipeable onSwipeRight={this.showMenu}>

                            <VestiList scrollPos={this.state.scrollPos} containerHeight={height} />

                    </Swipeable>

                    <Swipeable onSwipeRight={this.showMenu}>

                            <NewsList scrollPos={this.state.scrollPos} containerHeight={height} />

                    </Swipeable>

                    <Swipeable onSwipeRight={this.showMenu}>

                            <VideoNewsList scrollPos={this.state.scrollPos} containerHeight={height} />

                    </Swipeable>

            </SwipeableViews>

addition to the above, application build with Cordova 6

Have a look at this section performance-on-browser.  Feel free to submit a PR to improve it if that's not clear enough.


SSM Agent won't start anymore

Hi,
First of all I love this tool, thanks for creating it!
I tried updating the factory server version to the latest version and now the SSMAgent will not start anymore. I'm using the Linux version btw.
I tried using:
docker start -ia SSMAgent1
This this wat was returned:
#-----------------------------#
#      _____ _____ __  __     #
#     / ____/ ____|  \/  |    #
#    | (___| (___ | \  / |    #
#     \___ \\___ \| |\/| |    #
#     ____) |___) | |  | |    #
#    |_____/_____/|_|  |_|    #
#-----------------------------#
# Satisfactory Server Manager #
#-----------------------------#
Installing Prereqs
Installing Docker
Using Dev build of SSM
parse error: Invalid numeric literal at line 1, column 4
parse error: Invalid numeric literal at line 1, column 4
Updating SSM  to  ...
* Downloading SSM

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
* Cleanup
SSM Service Skipped
-bash: /opt/SSM/SatisfactoryServerManager: No such file or directory

Can you help me to fix this?
Just to be sure, is there a way I can retrieve the save games if I can't restore the docker container?

Ehm sorry, it apparently fixed itself 😄


juicefs config --storage option

What would you like to be added:
juicefs config doesn't currently seem to accept a --storage parameter.
Why is this needed:
I would like to change the object storage provider (and have migrated my objects using juicefs sync). While I can specify --bucket, --access-key, and --secret-key, I can't fully change the backing storage config because I can't change the --storage config.

Good suggestion, we will support this feature in the near future, thanks for the feedback

This is an option for mount to change to storage, which is safe.

Thank you for getting back to me. If I understand correctly, until this option is released, it is safe for me to change the JSON in the metadata table jfs_setting manually by separately editing the storage key?

Yes


[SMALLFIX] Fix the recursive UFS mkdirs with permission

We should never call mkdirs with createParent=true because UFS does not know about the ancestor inode permission in Alluxio namespace. Instead, all the missing ancestor directories in UFS should be created from top to the bottom, with the corresponding permission in inode.
Currently there are two places where we set createParent to true, one is persist command, the other one is rename with creating missing dst partent directories in UFS.

@madanadit @calvinjia @gpang

@apc999

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/12191/
Test PASSed.

Merged build finished. Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/12197/
Test PASSed.

LGTM

LGTM


Can't open demo module

I try to open a demo module in tunes/demotunes such as buzzplayer-test.mmod, then bintracker crashes with the following stdout error message
focus add (welcome1331 #<procedure (a46995)> #<procedure (a47001)> #<coops instance of `<ui-welcome-buffer>'>)
focus add (repl1332 #<procedure (a46469)> #<procedure (a46475)> #<coops instance of `<ui-repl>'>)

Warning (#<thread: thread1578>): in thread: (process-execute) cannot execute process - No such file or directory: "mame64"

	Call history:

	../bt-emulation.scm:74: scheme#call-with-current-continuation
	../bt-emulation.scm:74: chicken.condition#with-exception-handler
	../bt-emulation.scm:74: ##sys#call-with-values
	../bt-emulation.scm:74: k91
	../bt-emulation.scm:73: g94
	../bt-emulation.scm:77: launch-emul-process
	../bt-emulation.scm:46: scheme#call-with-values
	../bt-emulation.scm:47: chicken.process#process	  	<--
focus add (group-fields1575 #<procedure (a44269)> #<procedure (a44275)> #<coops instance of `<ui-group-fields>'>)
focus add (group-fields1575 #<procedure (a44269)> #<procedure (a44275)> #<coops instance of `<ui-group-fields>'>)

(get-property g274 (g0 #<procedure (end-tk133)>))

An error occurred inside Tcl/Tk
 pack .g58.g59.g94.g95.g217.g220.g221.g222.g223.g224.g225.g226.g229.g231 -expand 1 -fill both -side bottom
 --> .g58.g59.g94.g95.g195 already added

Warning (#<thread: thread1333>): in thread: (display) bad argument type - not a port: #f

	Call history:

	../bt-state.scm:33: scheme#string->symbol
	../bt-state.scm:33: scheme#eval
	../bt-state.scm:32: g281
	../bt-gui.scm:60: bt-gui-lolevel#multibuffer-delete
	../bt-gui-lolevel.scm:1324: ui-children
	../bt-gui-lolevel.scm:700: coops#slot-value
	../bt-gui-lolevel.scm:1324: chicken.base#alist-ref
	../bt-gui-lolevel.scm:1325: ui-children
	../bt-gui-lolevel.scm:700: coops#slot-value
	../bt-gui-lolevel.scm:1325: chicken.base#alist-ref
	../bt-gui-lolevel.scm:1325: ui-destroy
	../bt-gui.scm:4355: module-view-emulator
	../bt-gui.scm:3851: coops#slot-value
	../bt-gui.scm:4354: g15572
	../bt-emulation.scm:86: send-command
	../bt-emulation.scm:68: scheme#display	  	<--

And a log file with the following content
#<condition: (uncaught-exception)>
Error: <condition> (uncaught-exception)
OS: linux
Architecture: x86-64
Chicken version: Version 5.2.0 (rev 317468e4)
linux-unix-gnu-x86-64 [ 64bit dload ptables ]

Revision of bintracker is db1c0fc.

OK, I went a bit further, I had to install mame (and create a symbolic link mame64). Now I'm having troubles but I think it's due to not having the right roms.  Looks like I'm gonna need to go find them in my attic.

Let me close that issue as it is the result of me not reading https://bintracker.org/documentation/setup.html till the end.

Glad to hear you were able to figure things out.
Setting the mame executable name to "mame64" by default probably isn't
the greatest of ideas, I'll try to work out a better solution for this.
Beware that Bintracker is very unstable at this stage, so prepare for
crashes left and right. If you have any questions, don't hesitate to
ask, though.


Fix final document dense layer scope for SMITH

Fixed new variables being created for the final dense layer (pre l2-norm layer), as opposed to reusing weights corresponding to the siamese architecture mentioned in SMITH (Siamese Multi-depth Transformer-based Hierarchical Encoder) model.
Verified additional variables being created in the checkpoints mentioned in the repo.
dense_1 is created incorrectly for the siamese architecture
 ('seq_rep_from_bert_doc_dense/dense/bias', [256]),
 ('seq_rep_from_bert_doc_dense/dense/kernel', [256, 256]),
 ('seq_rep_from_bert_doc_dense/dense_1/bias', [256]),
 ('seq_rep_from_bert_doc_dense/dense_1/kernel', [256, 256])

Dense layer named as dense (seq_rep_from_bert_doc_dense/dense/..) for reusing trained weights.

Hi @sabarinathh, do you mind sharing your predictions output after using the trained weight?
It does seem to me that the pretrained SMITH checkpoint is not loaded properly into the script, I am getting 0.8 to 1 for all predicted scores, and only class 1 as the predicted class.
Does the fix above give you a reasonable performance for pretrained model?


feat(bb): stack traces for check_circuit

Overview:
If you are in a scenario where you have a failing call to check_circuit and wish to get more information out of it than just the gate index, you can use this feature to get a stack trace, see example below.
Usage instructions:

On ubuntu (or our mainframe accounts) use sudo apt-get install libdw-dev to  support trace printing
Use cmake --preset clang16-dbg-fast-circuit-check-traces and cmake --build --preset clang16-dbg-fast-circuit-check-traces to enable the backward-cpp dependency through the CHECK_CIRCUIT_STACKTRACES CMake variable.
Run any case where you have a failing check_circuit call, you will now have a stack trace illuminating where this constraint was added in code.

Caveats:

This works best for code that is not overly generic, i.e. where just the sequence of function calls carries a lot of information. It is possible to tag extra data along with the stack trace, this can be done as a followup, please leave feedback if desired.
There are certain functions like assert_equals that can cause gates that occur before them to fail. If this would be useful to automatically report, please leave feedback.

Example:
[ RUN      ] standard_circuit_constructor.test_check_circuit_broken
Stack trace (most recent call last):
#4    Source "_deps/gtest-src/googletest/src/gtest.cc", line 2845, in Run
       2842:   if (!Test::HasFatalFailure() && !Test::IsSkipped()) {
       2843:     // This doesn't throw as all user code that can throw are wrapped into
       2844:     // exception handling code.
      >2845:     test->Run();
       2846:   }
       2847:
       2848:   if (test != nullptr) {
#3    Source "_deps/gtest-src/googletest/src/gtest.cc", line 2696, in Run
       2693:   // GTEST_SKIP().
       2694:   if (!HasFatalFailure() && !IsSkipped()) {
       2695:     impl->os_stack_trace_getter()->UponLeavingGTest();
      >2696:     internal::HandleExceptionsInMethodIfSupported(this, &Test::TestBody,
       2697:                                                   "the test body");
       2698:   }
#2  | Source "_deps/gtest-src/googletest/src/gtest.cc", line 2657, in HandleSehExceptionsInMethodIfSupported<testing::Test, void>
    |  2655: #if GTEST_HAS_EXCEPTIONS
    |  2656:     try {
    | >2657:       return HandleSehExceptionsInMethodIfSupported(object, method, location);
    |  2658:     } catch (const AssertionException&) {  // NOLINT
    |  2659:       // This failure was reported already.
      Source "_deps/gtest-src/googletest/src/gtest.cc", line 2621, in HandleExceptionsInMethodIfSupported<testing::Test, void>
       2618:   }
       2619: #else
       2620:   (void)location;
      >2621:   return (object->*method)();
       2622: #endif  // GTEST_HAS_SEH
       2623: }
#1    Source "/mnt/user-data/adam/aztec-packages/barretenberg/cpp/src/barretenberg/circuit_checker/standard_circuit_builder.test.cpp", line 464, in TestBody
        461:     uint32_t d_idx = circuit_constructor.add_variable(d);
        462:     circuit_constructor.create_add_gate({ a_idx, b_idx, c_idx, fr::one(), fr::one(), fr::neg_one(), fr::zero() });
        463:
      > 464:     circuit_constructor.create_add_gate({ d_idx, c_idx, a_idx, fr::one(), fr::neg_one(), fr::neg_one(), fr::zero() });
        465:
        466:     bool result = CircuitChecker::check(circuit_constructor);
        467:     EXPECT_EQ(result, false);
#0    Source "/mnt/user-data/adam/aztec-packages/barretenberg/cpp/src/barretenberg/stdlib_circuit_builders/standard_circuit_builder.cpp", line 22, in create_add_gate
         19: {
         20:     this->assert_valid_variables({ in.a, in.b, in.c });
         21:
      >  22:     blocks.arithmetic.populate_wires(in.a, in.b, in.c);
         23:     blocks.arithmetic.q_m().emplace_back(FF::zero());
         24:     blocks.arithmetic.q_1().emplace_back(in.a_scaling);
         25:     blocks.arithmetic.q_2().emplace_back(in.b_scaling);
gate number4

Benchmark results
Metrics with a significant change:

proof_construction_time_poseidon_hash_100_ms (16): 934 (+29%)
proof_construction_time_poseidon_hash_30_ms (16): 284 (+41%)
proof_construction_time_sha256_ms (16): 923 (+31%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256_ms
5,711
1,554
:warning: 923 (+31%)
855 (+13%)
817 (+6%)

proof_construction_time_sha256_30_ms
11,867 (+1%)
3,156
1,409
1,424
1,467

proof_construction_time_sha256_100_ms
44,682 (-1%)
11,742
5,427
5,431 (+1%)
5,367 (+1%)

proof_construction_time_poseidon_hash_ms
78.0
34.0
44.0 (+29%)
65.0 (+14%)
89.0 (+2%)

proof_construction_time_poseidon_hash_30_ms
1,514
419
:warning: 284 (+41%)
263 (+14%)
289 (+7%)

proof_construction_time_poseidon_hash_100_ms
5,724
1,561
:warning: 934 (+29%)
876 (+13%)
842 (+6%)

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
4 txs
8 txs

l1_rollup_calldata_size_in_bytes
1,412
1,412

l1_rollup_calldata_gas
9,476
9,460

l1_rollup_execution_gas
608,012
607,996

l2_block_processing_time_in_ms
697 (+1%)
1,286 (-1%)

l2_block_building_time_in_ms
22,492 (+1%)
45,645

l2_block_rollup_simulation_time_in_ms
22,366 (+1%)
45,297

l2_block_public_tx_process_time_in_ms
19,214 (+1%)
41,889

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 8 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
5,916 (-1%)
8,455 (-1%)

node_database_size_in_bytes
9,510,992
12,812,368

pxe_database_size_in_bytes
7,774
15,127

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
256 leaves
512 leaves
1024 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
10.5
17.0
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.7
31.7
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.610
0.523
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
48.7 (-1%)
76.0
133
246
474
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
288
543
1,055
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.498
0.468
0.455
0.447
0.444
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
58.6
112
183 (-1%)
351
629
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
107
208
355
686
1,263
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.505
0.503
0.484 (-1%)
0.480
0.472 (+1%)
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
58.9

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
101

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.551

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
79,470
665,267

Transaction size based on fee payment method
| Metric |  |
| - |  |


[Easy][Dashboard] Add disclaimer to "Open PearAI" button

Description
There is no disclaimer to indicate that PearAI must be installed for the "Open PearAI" button to work. This has confused a user shown here. Including a disclaimer would cause less confusion.

Fixed with pull request at #220


Menu bar item menu opens slowly sometimes

See: https://github.com/wulkano/Kap/pull/955#issuecomment-795744489

I've fixed this, it's working nice and quick for me now, it was previously triggering full rebuilds of context menus on every click but now does it once and caches it.
If someone wants to clean it up to try to merge it, feel free! Kap is fast again now.
https://github.com/wulkano/Kap/pull/1208


ib-tws, ib-controller: remove deprecated packages

Description of changes
These packages are using unixmacosx_latest.jar which no longer works.
They have been replaced by the offline and online installation scripts based on Install4J.
Offline:
https://www.interactivebrokers.com/en/trading/tws-offline-installers.php
Offline direct link:
https://download2.interactivebrokers.com/installers/tws/latest-standalone/tws-latest-standalone-linux-x64.sh
Online:
https://www.interactivebrokers.com/en/index.php?f=15999&ns=T
Arch Linux also uses the offline installer with bundled JRE:
https://aur.archlinux.org/packages/ib-tws
The problem is there is no official version history, only that link to the latest version and that linked script is updated ocassionally by IB.
Github user @clefru created Nix expression using the offline installer and uses oraclejre8 from nixpkgs which is probably not officially supported by IB but it appears to be working for him:
https://github.com/clefru/nur-packages/blob/master/pkgs/ib-tws/default.nix
As I didn't know about @clefru's NUR repo before, I had created my expression and attempted to include it in nixpkgs
but then I realized it would not work well because of rather high update frequency of the updates. IB updated that offline installation script twice in a week.
Already-installed, older versions continue working normally but the nix expression must be updated as soon as IB updates the install script otherwise new installations would fail with bad checksum. That appears to be impossible to achieve in the standard nixpkgs update process, therefore I think ib-tws is more suited for decentralized NUR.
My expression which uses bundled JRE 1.8.0_202 extracted from the installer script is now part of my NUR repo
and I will continue to update it as I use it daily:
https://github.com/k3a/nurpkgs/blob/main/pkgs/ib-tws/default.nix
Therefore I am changing the PR to remove these deprecated unixmacosx_latest.jar-based expressions to avoid confusion.
Fixes #40784
Replaces #8142
cc @ts468 @garbas
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Thanks for the ping, @k3a. It might be worthwhile to ping IB to provide a stable download path. ArchLinux has the same problem.

True but I am not sure what would be the best way to ping them, I am afraid big corporations like this one don't care and will just direct you to tws-latest-standalone-linux-x64.sh saying you are supposed to install the most recent version only.
Let's try pinging @lukasz74nj here as he may be the person packaging the TWS (judging from /home/lukasz in i4jparams.conf) and may be of a bigger help than a support department in India.
What we'd need is a version history with a couple of previous versions, as well as a stable URL to those versions. Nothing else.
Our goal is the same as theirs: we want to have the most up-to-date software installed, but without having to manually download and install it or rely on some kind of auto-updating install4j script, as such auto-updating software has been found to be insecure many times in the past (Adobe, Zoom) and it is often difficult to get it working in a more specific environment.


Correct validation help text.

I think the words start & end got swapped in the validation error message for "Start Date" and "End Date" for events.

+1! Can't accept from phone :-(

Also, how silly! :-p

I'll do it for you, then!


cmd/link: add support for c-shared, plugin buildmodes on ppc64le

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
This is intended for go 1.10
What operating system and processor architecture are you using (go env)?
ppc64le Ubuntu, RH
These buildmodes are currently not supported on ppc64le.  I've been working on plugin, and it seems to work but it needs some clean up.
I tried to enable c-shared but something's missing and I'm not sure what.  When I try to run the tests from testcshared, some work but the one that does a dlopen on a cshared library is getting a segv in dl_open_worker.

I found the problem with c-shared.  The code in runtime/rt0_linux_ppc64le.s for _rt0_ppc64le_linux_lib is incorrect because it computes the callee's r2 at the beginning of the function and then saves it onto the caller's stack.  This shouldn't be done because the caller should be saving and restoring its own r2 before and after the call.
Once this is corrected then c-shared works for ppc64le and can be enabled.