Add shield.io for active installations

Proposed Changes
Not really useful but nice to see and share the amount of active (and reported via analytics) add-on installations. This PR will show the badge on the HA add-on Info Screen depending von the used repo and shows the stable Info badge for this repos main README.
Stable installations:
Edge installations:
Related Issues

(Github link to related issues or pull requests)

Love the idea, one thing though: Do we really have 10.000 reported installations on the Stable Version? Seems a bit strange that it is such a "clean" number. Also, I do not see our add-on in this list https://analytics.home-assistant.io/add-ons/, so where does this come from?

That surprised me too, but if you search for 9074a9fa_cloudflared in https://analytics.home-assistant.io/addons.json you will find exactly this value. lucky coincidence maybe 😉

Yeah you're right. Let's merge it in and watch over the next couple of weeks, if and how the number changes.
I will also see where to open a issue / request for this list to also include our add-on :-)

For the badge in this main documentation: Do you think we should add the numbers of stable and edge on this badge (if possible in a simple way...)

After re-considering I think this is not worth it, I will merge it as is.
FYI I created a PR for the Analytics website to add Cloudflared there.


The software breaks down at example code after running for 10s normally.

Describe the issue:
I am trying your pytorch example in https://nni.readthedocs.io/zh/stable/tutorials/hpo_quickstart_pytorch/model.html
everything goes well, installation succeed, and the web page looks nice. But after about 10s, the program ends up.

[2023-01-02 01:56:47] Creating experiment, Experiment ID: 6j50nacv
[2023-01-02 01:56:47] Starting web server...
[2023-01-02 01:56:48] Setting up...
[2023-01-02 01:56:48] Web portal URLs: http://<IP_ADDRESS>:8080 http://<IP_ADDRESS>:8080
node:internal/fs/watchers:252
    throw error;
    ^

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/linux_username/nni-experiments/6j50nacv/trials/gnav8/.nni/metrics'
    at FSWatcher.<computed> (node:internal/fs/watchers:244:19)
    at Object.watch (node:fs:2251:34)
    at TailStream.waitForMoreData (/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni_node/node_modules/tail-stream/index.js:123:31)
    at TailStream.<anonymous> (/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni_node/node_modules/tail-stream/index.js:275:22)
    at FSReqCallback.wrapper [as oncomplete] (node:fs:660:5) {
  errno: -28,
  syscall: 'watch',
  code: 'ENOSPC',
  path: '/home/linux_username/nni-experiments/6j50nacv/trials/gnav8/.nni/metrics',
  filename: '/home/linux_username/nni-experiments/6j50nacv/trials/gnav8/.nni/metrics'
}
Thrown at:
    at __node_internal_captureLargerStackTrace (node:internal/errors:464:5)
    at __node_internal_uvException (node:internal/errors:521:10)
    at FSWatcher.<computed> (node:internal/fs/watchers:244:19)
    at watch (node:fs:2251:34)
    at TailStream.waitForMoreData (/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni_node/node_modules/tail-stream/index.js:123:31)
    at /home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni_node/node_modules/tail-stream/index.js:275:22
    at wrapper (node:fs:660:5)
Traceback (most recent call last):
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/__main__.py", line 85, in <module>
    main()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/__main__.py", line 61, in main
    dispatcher.run()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/runtime/msg_dispatcher_base.py", line 69, in run
    command, data = self._channel._receive()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/runtime/tuner_command_channel/channel.py", line 94, in _receive
    command = self._retry_receive()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/runtime/tuner_command_channel/channel.py", line 104, in _retry_receive
    self._channel.connect()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/runtime/tuner_command_channel/websocket.py", line 62, in connect
    self._ws = _wait(_connect_async(self._url))
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/runtime/tuner_command_channel/websocket.py", line 111, in _wait
    return future.result()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/concurrent/futures/_base.py", line 446, in result
    return self.__get_result()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/runtime/tuner_command_channel/websocket.py", line 125, in _connect_async
    return await websockets.connect(url, max_size=None)  # type: ignore
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/websockets/legacy/client.py", line 659, in __await_impl_timeout__
    return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/asyncio/tasks.py", line 479, in wait_for
    return fut.result()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/websockets/legacy/client.py", line 663, in __await_impl__
    _transport, _protocol = await self._create_connection()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/asyncio/base_events.py", line 1065, in create_connection
    raise exceptions[0]
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/asyncio/base_events.py", line 1050, in create_connection
    sock = await self._connect_sock(
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/asyncio/base_events.py", line 961, in _connect_sock
    await self.sock_connect(sock, address)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/asyncio/selector_events.py", line 500, in sock_connect
    return await fut
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/asyncio/selector_events.py", line 535, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('<IP_ADDRESS>', 8080)
Traceback (most recent call last):
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection
    raise err
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/http/client.py", line 1285, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/http/client.py", line 1331, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/http/client.py", line 1280, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/http/client.py", line 1040, in _send_output
    self.send(msg)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/http/client.py", line 980, in send
    self.connect()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connection.py", line 205, in connect
    conn = self._new_conn()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9d7c6042e0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /api/v1/nni/check-status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d7c6042e0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/linux_username/yecanming/repo/new_things_exploring/tunning_parameter/nni/nni_main.py", line 23, in <module>
    experiment.run(8080)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/experiment/experiment.py", line 183, in run
    self._wait_completion()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/experiment/experiment.py", line 163, in _wait_completion
    status = self.get_status()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/experiment/experiment.py", line 283, in get_status
    resp = rest.get(self.port, '/check-status', self.url_prefix)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/experiment/rest.py", line 43, in get
    return request('get', port, api, prefix=prefix)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/experiment/rest.py", line 31, in request
    resp = requests.request(method, url, timeout=timeout)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/requests/adapters.py", line 565, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /api/v1/nni/check-status (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d7c6042e0>: Failed to establish a new connection: [Errno 111] Connection refused'))
[2023-01-02 01:57:08] Stopping experiment, please wait...
[2023-01-02 01:57:08] ERROR: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /api/v1/nni/experiment (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d929a5c40>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/util/connection.py", line 95, in create_connection
    raise err
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/util/connection.py", line 85, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/http/client.py", line 1285, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/http/client.py", line 1331, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/http/client.py", line 1280, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/http/client.py", line 1040, in _send_output
    self.send(msg)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/http/client.py", line 980, in send
    self.connect()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connection.py", line 205, in connect
    conn = self._new_conn()
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9d929a5c40>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /api/v1/nni/experiment (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d929a5c40>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/experiment/experiment.py", line 143, in _stop_impl
    rest.delete(self.port, '/experiment', self.url_prefix)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/experiment/rest.py", line 52, in delete
    request('delete', port, api, prefix=prefix)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/nni/experiment/rest.py", line 31, in request
    resp = requests.request(method, url, timeout=timeout)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/home/linux_username/anaconda3/envs/torch/lib/python3.9/site-packages/requests/adapters.py", line 565, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /api/v1/nni/experiment (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9d929a5c40>: Failed to establish a new connection: [Errno 111] Connection refused'))
[2023-01-02 01:57:08] WARNING: Cannot gracefully stop experiment, killing NNI process...
[2023-01-02 01:57:08] Experiment stopped

Environment:

NNI version: 2.10
Training service (local|remote|pai|aml|etc): local
Client OS:  Linux qaz 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Server OS (for remote mode only):
Python version: Python 3.9.13
PyTorch/TensorFlow version: '1.13.0+cu116'
Is conda/virtualenv/venv used?: conda is used
Is running in Docker?: no

Configuration:

Experiment config (remember to remove secrets!):

experiment.config.trial_command = 'python run_nn.py'
experiment.config.trial_code_directory = '.'

experiment.config.search_space = search_space

experiment.config.tuner.name = 'TPE'
experiment.config.tuner.class_args['optimize_mode'] = 'maximize'

experiment.config.max_trial_number = 10
experiment.config.trial_concurrency = 2

experiment.config.max_experiment_duration = '1h'

Search space:

Log message:

nnimanager.log: cannot find your tutorial at "https://github.com/microsoft/nni/blob/master/docs/en_US/Tutorial/HowToDebug.md#experiment-root-director"
dispatcher.log:
nnictl stdout and stderr:

How to reproduce it?:

Maybe it is the problem with linux https://stackoverflow.com/questions/55763428/react-native-error-enospc-system-limit-for-number-of-file-watchers-reached
I found this, but I don't have admin on the server. I am asking the server admin to try it, if it works then it is not with nni.

problem solved


Establish View Framework

We need to determine what.library we want to use as our view framework. Ideally we would want to benefit of something that allows for model binding for the application and coordinated view updates in the browser.

I'm looking at Angular 2 and React at the moment. I'm leaning to Angular but cannot make a educated argument for anything in one way or another.

Polymer is pretty awesome as well with a fresh 1.0.0 release for dart.

I think we've settled on Angular at this point.


API documentation for the Kinesis commands

I'm using the Python example scripts for interacting with KCubes, and I'm having trouble adapting the code to my own purposes because I cannot seem to find documentation anywhere describing the functions, attributes, etc available in the Kinesis python packages. The dlls that are on my machine are compiled so I can't even look at the source code to understand how to interact with the python modules. Does this documentation exist somewhere?

Hello,
Thank you for your inquiry. The class and method descriptions are housed in the .chm help files in your Kinesis install location (C:\Program Files\Thorlabs\Kinesis) named Thorlabs.MotionControl.C_API.chm (if you are using ctypes) and Thorlabs.MotionControl.DotNET_API.chm (if you are using pythonnet). I hope this helps but please feel free to message us at<EMAIL_ADDRESS>if you have any questions regarding how specific commands work.

Truman Metz


v2 of the config parser

Refactor and rebuild the config parser to address many of the issues the current parser has.
It should be less strict and more resilient at the same time.
It should support:

[ ] commands
[ ] sections
[ ] comments

It should parse statements in a way it can preserve the order; back and forth, parsing a config and writing it back should produce the same order.
Commands
Commands are prefixed with @. Example:

@SET foo=bar: command name SET value foo=bar
@INCLUDE some/path.ext: command name INCLUDE value some/path.ext

Sections
Sections begin with a name between square brakets [SECTION].
Inside each section there are several nested properties.
The properties are separated by a space (whitespace or tabs).
Example:
[INPUT]
    Name dummy
    rate 10

In this case the section name is INPUT and the list of properties are Name with a value of dummy and rate with a value of 10.
Comments
Comments begin with a hash # and end with a new line \n only.

Values
We should parse values as a primitive data types. With support for integer, float, bool and string.

Bear in mind that properties support "multi lines" meaning the same property name can appear twice.
[MULTILINE_PARSER]
    name          multiline-regex-test
    type          regex
    rule         "start_state"   "/(Dec \d+ \d+\:\d+\:\d+)(.*)/"  "cont"
    rule         "cont"          "/^\s+at.*/"                     "cont"

We can go with a list of key-value pairs instead of a map.
Design proposal
The structure can be something in the lines of:
type Config struct {
  Entries []Entry
}

type Entry struct {
  Kind      EntryKind // command, section, or comment
  AsCommand *Command
  AsSection *Section
  AsComment *string
}

type Command struct {
  Name  string
  Value string
}

type Section struct {
  Name       string
  Entries []SectionEntry
}

type SectionEntry struct {
  Kind       SectionEntryKind // property or comment
  AsProperty *Property
  AsComment  *string
}

type Property struct {
  Name  string
  Value Value
}

// Value represents a one of.
type Value struct {
  Kind      ValueKind // integer, float, bool, string
  AsInteger *int64
  AsFloat   *float64
  AsBool    *bool
  AsString  *string
}

Parsing
So given this config:
# root comment
@SET foo=bar

[INPUT]
    Name dummy
    # comment inside section
    rate 10

@INCLUDE some/path.ext

[MULTILINE_PARSER]
    name          multiline-regex-test
    type          regex
    rule         "start_state"   "/(Dec \d+ \d+\:\d+\:\d+)(.*)/"  "cont"
    rule         "cont"          "/^\s+at.*/"                     "cont"

It would parse as:
Config{
  Entries: []Entry{
    {
      Kind: "comment",
      AsComment: "root comment"
    },
    {
      Kind: "command",
      AsCommand: Command{
        Name: "SET",
        Value: "foo=bar",
      }
    },
    {
      Kind: "section",
      AsSection: Section{
        Name: "INPUT",
        Entries: []SectionEntry{
          {
            Kind: "property",
            AsProperty: Property{
              Name: "Name",
              Value: Value{
                Kind: "string",
                AsString: "dummy"
              }
            }
          },
          {
            Kind: "comment",
            AsComment: "comment inside section"
          },
          {
            Kind: "property",
            AsProperty: Property{
              Name: "rate",
              Value: Value{
                Kind: "integer",
                AsInteger: 10
              }
            }
          }
        }
      }
    },
    {
      Kind: "command",
      AsCommand: Command{
        Name: "INCLUDE",
        Value: "some/path.ext",
      }
    },
    {
      Kind: "section",
      AsSection: Section{
        Name: "MULTILINE_PARSER",
        Entries: []SectionEntry{
          {
            Kind: "property",
            AsProperty: Property{
              Name: "name",
              Value: Value{
                Kind: "string",
                AsString: "multiline-regex-test"
              }
            }
          },
          {
            Kind: "property",
            AsProperty: Property{
              Name: "type",
              Value: Value{
                Kind: "string",
                AsString: "regex"
              }
            }
          },
          {
            Kind: "property",
            AsProperty: Property{
              Name: "rule",
              Value: Value{
                Kind: "string",
                AsString: "\"start_state\"   \"/(Dec \d+ \d+\:\d+\:\d+)(.*)/\"  \"cont\""
              }
            }
          },
          {
            Kind: "property",
            AsProperty: Property{
              Name: "rule",
              Value: Value{
                Kind: "string",
                AsString: "\"cont\"          \"/^\s+at.*/\"                     \"cont\""
              }
            }
          }
        }
      }
    }
  }
}

Still deciding if commands should be generic, or if we should distinguish between SET and INCLUDE.
In the case of SET it to have a key and value.
In the case of INCLUDE it to have just a path.

Btw, took inspiration from protobuf oneof type for the Value.
https://developers.google.com/protocol-buffers/docs/proto3#oneof


[#147993747] Add Michael's key to list of merge keys.

What
So that he can merge PRs against this repo.
How to review
Verify that this is indeed Michael's key.
Who can review
Anyone who currently has merge access to this repo.

Confirmed same key as alphagov/paas-cf#974


KMF's Contributor Covenant Code of Conduct

Add KMF's Contributor Covenant Code of Conduct

Thanks for taking care of this.


Fleek should have the ability to use system manager

Is your feature request related to a problem? Please describe.
I am unable to install packages system wide but there is a way to do it with system manager
Describe the solution you'd like
Fleek should be able to install packages using this here https://github.com/numtide/system-manager
Describe alternatives you've considered
Home manager can also manage the root profile too but system manager seems better
Additional context
It will make system manager easier to use too

considering. Fleek is cross platform and this is a linux-only feature.

I'd be a big +1 for an easy-ish way to use nix-darwin.  I'd love to be able to use nix-darwin's brew support to manage all my casks and Appstore applications.


UI Benchmark(Browsers, resloutions)

Supporting  browsers (with version numbers) & display resolutions (4k, desktop, desktop-LG)

UI Team to help @bommalla with inputs and KT

This problem will be addressed in cQube v5.0.

Currently we supported desktop and Desktop-LG . and Not supported in 4K

Added into the Backlog


Issue #45: Add missing spec methods to DataFactory interface

As per issue #45 the fromTerm and fromQuad DataFactory methods defined by the RDF/JS DataModel specification are not reflected in the @rdfjs/types package.
This PR adds those methods.
That said, I am unsure in which context those methods would be used and didn't find an explanation of when it would be or whether the omission is intentional.

Hi @matthieubosquet :)
Thanks for these changes! It may be worth using a mver bump to release these changes, as many RDF/JS implementations do not implement these methods (c.f. https://github.com/rdfjs/N3.js/issues/447) - and so this will either cause (1) the package to declare methods that it does not implement or (2) have type errors if the package is, e.g., written in typescript and  implements the DataFactory interface.

Thanks for the suggestions @tpluscode and @rubensworks!
I fixed up the tests after applying suggestions: https://github.com/rdfjs/types/pull/46/commits/f1879fbe4b141efacd433ef16e34883b5d65119a.
The DataFactory initialised with const dataFactory: DataFactory<BaseQuad> = <any> {}; was returning a BaseQuad, not a Quad, hence CI failure.

After @jeswr's comment, I realised that there might be a bit of inconsistency in the DataFactory method declarations and its use of generic types.
In a nutshell, with a typing such as: fromTerm<T extends NamedNode>(original: T): NamedNode;, the DataFactory would take in an extended NamedNode and produce a NamedNode.
I don't think that's what we want for DataFactory implementers.
With a typing such as: fromTerm<T extends Term>(original: T): T;, if we pass an extended NamedNode to the DataFactory, it will return the extended type which still can be cast to a NamedNode (see corresponding test).
Isn't it closer to what DataFactory implementers might want?

I tried to produce a commit that illustrates and offers a compromise to fix the issue.

Remains an inconsistency with the quad factory part:
We are currently offering to define InQuad  and OutQuad as anything that extends BaseQuad.
That allows us to be specific as to what the DataFactory consumes and produces (as far as quads are concerned).
If we allow that amount of specificity for Quads, is there a specific reason not to allow it for other Terms?

I don't think that's what we want for DataFactory implementers.

I think I see where you're going, but this solution doesn't quite work. Consider using fromTerm from @rdfjs/data-model with an input of an N3.js NamedNode. The N3.js NamedNode has an extra #toJson method that will not be available in the NamedNode output by the @rdfjs/data-model method; however the type inference you have now would suggest that the output NamedNode does have this method.
What you want to allow for is for the libraries to extend the DataFactory types such that any custom extensions they have to their terms can be included. Your original implementation should permit this.

To demonstrate the problem, here's see this playground link with the generic function.
Here's what @jeswr described. The var converted is typed as NamedNodeExt which is probably incorrect.

I think it's worth mentioning the PR #24 which could allow implementors to define concrete term subtypes returned by a data factory
@blake-regalia would you interested in picking up where we left that?

@tpluscode and any interested others in this thread; could you please review https://github.com/DefinitelyTyped/DefinitelyTyped/pull/70614

@tpluscode does that look alright to you?


docker-compose up fails with 11 errors

Tested on master and v2.2.0.
$ docker-compose up
Sending build context to Docker daemon  339.4kB
Step 1/4 : FROM rust:1
 ---> d4572ea67e7e
Step 2/4 : COPY . /app
 ---> Using cache
 ---> d97b737197ef
Step 3/4 : WORKDIR /app
 ---> Using cache
 ---> 07ba01bbe2ce
Step 4/4 : RUN cargo build
 ---> Running in 9707e2dc17f0
    Updating crates.io index
 Downloading crates ...
  Downloaded adler v1.0.2
.
.
.
Compiling pgml-dashboard v2.2.0 (/app)
error: failed to find data for query SELECT * FROM pgml.notebooks WHERE id = $1
  --> src/models.rs:89:13
   |
89 |             sqlx::query_as!(Notebook, "SELECT * FROM pgml.notebooks WHERE id = $1", id,)
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)

error: failed to find data for query INSERT INTO pgml.notebooks (name) VALUES ($1) RETURNING *
   --> src/models.rs:96:12
    |
96  |           Ok(sqlx::query_as!(
    |  ____________^
97  | |             Notebook,
98  | |             "INSERT INTO pgml.notebooks (name) VALUES ($1) RETURNING *",
99  | |             name,
100 | |         )
    | |_________^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)

error: failed to find data for query SELECT * FROM pgml.notebooks
   --> src/models.rs:106:12
    |
106 |         Ok(sqlx::query_as!(Notebook, "SELECT * FROM pgml.notebooks")
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)

error: failed to find data for query SELECT * FROM pgml.notebook_cells
                       WHERE notebook_id = $1
                       AND deleted_at IS NULL
                   ORDER BY cell_number
   --> src/models.rs:112:12
    |
112 |           Ok(sqlx::query_as!(
    |  ____________^
113 | |             Cell,
114 | |             "SELECT * FROM pgml.notebook_cells
115 | |                 WHERE notebook_id = $1
...   |
118 | |             self.id,
119 | |         )
    | |_________^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)

error: failed to find data for query UPDATE pgml.notebook_cells
                       SET
                       execution_time = NULL,
                       rendering = NULL
                   WHERE notebook_id = $1
                   AND cell_type = $2
   --> src/models.rs:125:17
    |
125 |           let _ = sqlx::query!(
    |  _________________^
126 | |             "UPDATE pgml.notebook_cells
127 | |                 SET
128 | |                 execution_time = NULL,
...   |
133 | |             CellType::Sql as i32,
134 | |         )
    | |_________^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)

error: failed to find data for query
                   WITH
                       lock AS (
                           SELECT * FROM pgml.notebooks WHERE id = $1 FOR UPDATE
                       ),
                       max_cell AS (
                           SELECT COALESCE(MAX(cell_number), 0) AS cell_number
                           FROM pgml.notebook_cells
                           WHERE notebook_id = $1
                           AND deleted_at IS NULL
                       )
                   INSERT INTO pgml.notebook_cells
                       (notebook_id, cell_type, contents, cell_number, version)
                   VALUES
                       ($1, $2, $3, (SELECT cell_number + 1 FROM max_cell), 1)
                   RETURNING id,
                           notebook_id,
                           cell_type,
                           contents,
                           rendering,
                           execution_time,
                           cell_number,
                           version,
                           deleted_at
   --> src/models.rs:187:12
    |
187 |           Ok(sqlx::query_as!(
    |  ____________^
188 | |             Cell,
189 | |             "
190 | |             WITH
...   |
215 | |             contents,
216 | |         )
    | |_________^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)

error: failed to find data for query SELECT
                           id,
                           notebook_id,
                           cell_type,
                           contents,
                           rendering,
                           execution_time,
                           cell_number,
                           version,
                           deleted_at
                       FROM pgml.notebook_cells
                       WHERE id = $1

   --> src/models.rs:222:12
    |
222 |           Ok(sqlx::query_as!(
    |  ____________^
223 | |             Cell,
224 | |             "SELECT
225 | |                     id,
...   |
237 | |             id,
238 | |         )
    | |_________^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)

error: failed to find data for query UPDATE pgml.notebook_cells
                   SET
                       cell_type = $1,
                       contents = $2,
                       version = version + 1
                   WHERE id = $3
   --> src/models.rs:252:17
    |
252 |           let _ = sqlx::query!(
    |  _________________^
253 | |             "UPDATE pgml.notebook_cells
254 | |             SET
255 | |                 cell_type = $1,
...   |
261 | |             self.id,
262 | |         )
    | |_________^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)

error: failed to find data for query UPDATE pgml.notebook_cells
                   SET deleted_at = NOW()
                   WHERE id = $1
                   RETURNING id,
                           notebook_id,
                           cell_type,
                           contents,
                           rendering,
                           execution_time,
                           cell_number,
                           version,
                           deleted_at
   --> src/models.rs:270:12
    |
270 |           Ok(sqlx::query_as!(
    |  ____________^
271 | |             Cell,
272 | |             "UPDATE pgml.notebook_cells
273 | |             SET deleted_at = NOW()
...   |
284 | |             self.id
285 | |         )
    | |_________^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)

error: failed to find data for query UPDATE pgml.notebook_cells SET rendering = $1 WHERE id = $2
   --> src/models.rs:339:9
    |
339 | /         sqlx::query!(
340 | |             "UPDATE pgml.notebook_cells SET rendering = $1 WHERE id = $2",
341 | |             rendering,
342 | |             self.id
343 | |         )
    | |_________^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)

error: failed to find data for query INSERT INTO pgml.uploaded_files (id, created_at) VALUES (DEFAULT, DEFAULT)
                       RETURNING id, created_at
   --> src/models.rs:798:12
    |
798 |           Ok(sqlx::query_as!(
    |  ____________^
799 | |             UploadedFile,
800 | |             "INSERT INTO pgml.uploaded_files (id, created_at) VALUES (DEFAULT, DEFAULT)
801 | |                 RETURNING id, created_at"
802 | |         )
    | |_________^
    |
    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `pgml-dashboard` due to 11 previous errors
warning: build failed, waiting for other jobs to finish...
1 error occurred:
	* Status: The command '/bin/sh -c cargo build' returned a non-zero code: 101, Code: 101

Thanks for the report! I was finally able to reproduce this after pruning my cached docker images.


Account logging not working

Hello,
I've put the right credentials for my account and the right API but it isn't working (it says that the password is invalid)

It works with the only api key method...
Also, is 55% of similarity is enough to consider that a play is stolen?

Unfortunately download.py used the old osu website login page in order to download replays faster and with the new one it doesn't work anymore. (I guess I should update my code and remove this way of logging, although with only api key method it will slow down a lot)
55% of similarity is kind of too low for a replay to be considered stolen, the ideal percentage for a valid detection should be around at least 70%


Fix dead URL on README

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix

What is the current behavior? (You can also link to an open issue here)
Goes to dead URL

What is the new behavior (if this is a feature change)?
Goes to https://forum.vac.dev/t/waku-web-app-using-js-waku/78

Other information:
URL provided by D4nte

bors merge


Bug 2111467: Set the node internal dns address for machine

This PR contains the change to atleset set the node internal dns address even if failed to set the internal ip.
More context: Recently while testing i found that in some instances its not able to find a IP from dhcp server as there was no lease exist which leading it not to set any address for machine, Later once the machine is provisioned without any address being set, the client csr was never approved and machine never became a node.

/cherry-pick release-4.11


Ability to include source code within a comment by a annotation

E.g. use @methodname to include a certain method in a
[source,go]
....
Copy full method definition
....
It should also be templated in order to allow for overrides

This is actually already possible using asciidoc - but since code file is often in other directory than the output asciidoc file - I need to add a way to inject macros e.g. ${current} would be the current file being parsed (fully qualified path).
in this way it would be possible to use include::${goasciidoc:current:fq}[tag=the-tag,indent=0] (see asciidoc documentation abount tags).

Fixed in v0.4.1


Semaphore-based sync lock in EconomicalChatGPTTranslatorService

I believe that if you want the method to be truly asynchronous then you should not be using the synchronous lock.

I believe that if you want the method to be truly asynchronous then you should not be using the synchronous lock.

It's not always true. In these cases, lock is used for a few short operations that run on the CPU. Also, there is a re-entrance, so with SemaphoreSlim it highly likely will be broken.

It indeed would, re-entrance and asynchronous code are always a bit of a nightmare.


Update installation instructions for Linux

I have updated the readme to reflect the steps I followed to successfully configure taskcafe on my local Debian server.

Thanks for the PR, however I am going to go ahead and close this as I don't want to pollute the main README with distro specific install instructions.
I have adapted your installation instructions and added it to the wiki.
In the future, please read the contributing guide before making a PR :smile:


Update the host ABI of Wasmtime to return failure

This commit updates the "array call" ABI of Wasmtime used to transition from wasm to the host to explicitly return a bool indicating whether the call succeeded or not. Previously functions would implicitly unwind via longjmp and thus no explicit checks were necessary. The burden of unwinding is now placed on Cranelift-compiled code itself instead of the caller.
There are a few pieces of rationale for this change:

Primarily I was implementing initial integration of Pulley where the host setjmp and longjmp cannot be used to maintain the Pulley interpreter state. My initial plan for handling this was to handle traps a bit differently in Pulley where having direct access to whether a function trapped or not in the interpreter bytecode is easier to deal with.

Additionally it's generally not safe to call longjmp from Rust as it will not run on-stack destructors. This is ok today in the sense that we shouldn't have these in Wasmtime, but directly returning to compiled code improves our safety story here a bit where we just won't have to deal with the problem of skipping destructors.

In the future I'd like to move away from setjmp and longjmp entirely in the host to a Cranelift-native solution. This change would be required for such a migration anyway so it's my hope to make such a Cranelift-based implementation easier in the future. This might be necessary, for example, when implementing the exception-handling proposal for Wasmtime.

Functionally this commit does not remove all usages of call-longjmp-from-Rust. Notably all libcalls and builtins still use this helper in the trampolines generated in Rust. I plan on going through the libcalls and updating their ABIs and signatures to reflect this in follow-up commits. As a result a few preexisting functions that should go away are marked #[deprecated] for internal use in this commit. I'll be cleaning that up as follow-ups. For now this commit handles the "hard part" of host functions by ensuring that the new bool return value is plumbed in all the locations correctly.

I'll note that this has a bit of https://github.com/bytecodealliance/wasmtime/pull/9673 mixed in but doesn't depend on it.
Also to expand on:

I plan on going through the libcalls and updating their ABIs and signatures to reflect this in follow-up commits

The categories of libcalls are:

Some libcalls, but not all, need to be able to raise traps. For example we support memory.grow raising a trap because of the embedder API but we don't support table-lazy-init raising a trap.
All libcalls, however, need to catch Rust panics and do something with them.

My plan is to update the ABI of all libcalls that return traps to return some encoding of the current return value plus whether it trapped. That'll suffice for catching panics and handling traps. For all other libcalls which can't actually trap my plan is to abort the process. I plan on doing this by removing the catch_unwind entirely. That is no longer necessary for safety reasons in recent versions of Rust. That means that only libcalls which can raise a trap will have panics shepherded across them, and panics in other libcalls will abort the process.


Will this Plugin Compiled on 4.24 - 4.25?

We are waiting for updating,suki~

I just submitted a pull request to enable it for 4.26. I'm not a hardcore developer, but so far it seems to be working for me. I don't know if anyone is watching this project anymore, but hopefully they can check it out and integrate it.

I just submitted a pull request to enable it for 4.26. I'm not a hardcore developer, but so far it seems to be working for me. I don't know if anyone is watching this project anymore, but hopefully they can check it out and integrate it.


Import from an archived resource datapackage interaction is failing

Creating a new resource from a datapackage of interaction type does not work properly an shows this error:

Thank you for reporting the issue.
Yes, it can be, I didn't test that functionality for new data packages Interaction DP and Material DP (it's stable for camtraps only). I'll see whether it's easy to fix

I've fixed this, will deploy shortly

Thank you very much @mike-podolskiy90, it creates a new resource but without uploading the metadata:

Also metadata profile for Interaction is still not working properly, in never saves the contributors and only have one section instead of several like camtrapDP, we did a test in a 3.0.3 version:

As far as I remember metadata is not quite decided yet for the interaction dp, so it displays a bare minimum. I'll have a look


AxisError

Your issue may already be reported! Please make sure to search all open and closed issues before starting a new one.
Please fill out the sections below so we can understand your issue better and resolve it quickly.
Problem description
when I runned the TrainModel.ipynb, it raised this error:
AxisError                                 Traceback (most recent call last)
Problem details
 in ()
24     plt.show()
25 #%pdb on
---> 26 [sample_batch_train_data, sample_batch_test_data] = next(train_generator)
27 #for i in range(0, 3, 1):
28     #draw_image_with_label(sample_batch_train_data[0][i], sample_batch_test_data[i])
~\Anaconda3\envs\tensorflow\lib\site-packages\keras\preprocessing\image.py in next(self, *args, **kwargs)
858
859     def next(self, *args, **kwargs):
--> 860         return self.next(*args, **kwargs)
861
862     def _get_batches_of_transformed_samples(self, index_array):
C:\AirSimE2EDeepLearning\Generator.py in next(self)
240         # so it can be done in parallel
241
--> 242         return self.__get_indexes(index_array)
243
244     def __get_indexes(self, index_array):
C:\AirSimE2EDeepLearning\Generator.py in __get_indexes(self, index_array)
262                 x_images = x_images[self.roi[0]:self.roi[1], self.roi[2]:self.roi[3], :]
263
--> 264             transformed = self.image_data_generator.random_transform_with_states(x_images.astype(K.floatx()))
265             x_images = transformed[0]
266             is_horiz_flipped.append(transformed[1])
C:\AirSimE2EDeepLearning\Generator.py in random_transform_with_states(self, x, seed)
138             x = image.random_channel_shift(x,
139                                      self.channel_shift_range,
--> 140                                      img_channel_axis)
141         if self.horizontal_flip:
142             if np.random.random() < 0.5:
~\Anaconda3\envs\tensorflow\lib\site-packages\keras\preprocessing\image.py in random_channel_shift(x, intensity, channel_axis)
177
178 def random_channel_shift(x, intensity, channel_axis=0):
--> 179     x = np.rollaxis(x, channel_axis, 0)
180     min_x, max_x = np.min(x), np.max(x)
181     channel_images = [np.clip(x_channel + np.random.uniform(-intensity, intensity), min_x, max_x)
~\Anaconda3\envs\tensorflow\lib\site-packages\numpy\core\numeric.py in rollaxis(a, axis, start)
1470     """
1471     n = a.ndim
-> 1472     axis = normalize_axis_index(axis, n)
1473     if start < 0:
1474         start += n
AxisError: axis 3 is out of bounds for array of dimension 3
Exepriment/Environment details

Tutorial used:  AirSimE2EDeepLearning
Environment used: **
Versions of artifacts used (if applicable): Python 3.5, Keras 2.1.5 etc.)

Is there anybody can help me! thanks!

Please check old issues before you open a new one. This has been addressed here: #1


update packages

:white_check_mark: Build TheIdServer 7.0.3-fix-dependencies1-0009 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/ecc82e188a by @)


Bug: Your page is down

Description

See the screenshot
Expected Behavior

Screenshots

Enviroment:

OS: Mac Linux Windows
Browser: Chrome Safari Firefox
Version:
Device: Desktop Mobile

@bhaskarkumar1 Actually we are creating a new website, and will be up next week!


pod install fails

I get the following error:

[!] The react-native-static-server pod failed to validate due to 1 error:
- ERROR | attributes: Missing required attribute homepage.
- WARN  | source: Git sources should specify a tag.
- WARN  | description: The description is equal to the summary.

but seems to work when I add the key to the package.json:
  "homepage": "http://"

what's odd is that if I look at the package on the repo it contains the required field but the file npm install puts on my project doesn't have it

The current (0.4.2) version published to NPM is missing the inclusion of the homepage attribute from #75
The maintainer needs to release a new patch version (0.4.3) and publish that to NPM. There are workarounds -- using npm 6.x seems to resolve the issue automatically for me but yarn does not. You can also tell your package.json to install from the github repo instead of npm registry https://docs.npmjs.com/files/package.json#repository
Related
https://github.com/futurepress/react-native-static-server/pull/75

@nnyath thanks for suggesting about the package.json.  I can use that for other reasons.  for now I'll leave this open until the maintainer fixes the issue

Im facing same issue


Enabling VK_AMD_shader_info extension crashes the application

Description
Enabling VK_AMD_shader_info extension crashes the application when trying to debug with RenderDoc. RenderDoc doesn't crash.
Steps to reproduce
Enabling and disabling VK_AMD_shader_info without any changes to the code.
Environment

RenderDoc version: 1.5 (6b3dc39b)
Operating System: Linux 5.0.0-32-generic
API: Vulkan 1.1.125
GPU: AMD RX 480 8GB
Driver: AMDVLK 2.0.117

Your application is behaving invalidly if you are enabling VK_AMD_shader_info at all under RenderDoc. You must correctly query to determine what extensions are available before enabling them. When running under RenderDoc the VK_AMD_shader_info extension will be removed from the list of available extensions because it is not supported.
If you enable the extension anyway RenderDoc will cause the vkCreateDevice call to fail with VK_ERROR_EXTENSION_NOT_PRESENT which may lead to a crash in your code if you do not check for error return codes.


Support for full duplex test

Its possible to do a fullduplex test, download and uploading at same time?

It is not. As the flash version doesn't do this, I can't see it being added here either

I understand. Its a technical limitation by Speedtest servers or it only to maintain the same rules of the Flash version?


How to add vocab

Hello,thank you for this great implementation.I want to use different vocab and init checkpoint.But in DynamicBatchSizeParams() methods there is only 'decode_vocab_file' method.Is it about adding vocab?

Hi, the vocabulary table comes with the initial checkpoint (official bert
checkpoint). So you can change that directly.
On Sun, Sep 15, 2019, 11:46 PM cszer<EMAIL_ADDRESS>wrote:

Hello,thank you for this great implementation.I want to use different
vocab and init checkpoint.But in DynamicBatchSizeParams() methods there is
only 'decode_vocab_file' method.Is it about adding vocab?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/JayYip/bert-multitask-learning/issues/26?email_source=notifications&email_token=ADS2OTA7W2INVY2AYLOLEQ3QJZKGXA5CNFSM4IW3B362YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLOCVZQ,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADS2OTEP2E32JWKQ2SWRY2TQJZKGXANCNFSM4IW3B36Q
.

thanks,i am trying to train custom ner on english,i have written my own preprocessing,but need i create function like NER in ner_data.py or i shold only create preprocessing?

i have already done it,yahoo! If you want i can add to master my function to train on medcine english data.


1090 FA stream is broke

I have been trying to set up the FA version, I noted a fetch head error during the 3.5.3  setup.  I am left with a page, showing flight details but no planes showing on map.  Also for what ever reason, it is not logging with FA, I do not get a new site ID. Now I have loaded the stock standard version from FA and works perfectly and get a new site id.

Further, whilst the heywhatsthat data is in the right spot, the range rings are based over FA's headquarters in the USA.  I have seen this before years ago. During the install process, there was no requested input of the location via lat long, where the site was, as is in the mutability version.

Need some further information.
Operating system distribution, version...
Once I have said information I can troubleshoot things.
FYI there are issues with Ubuntu 17.10 and PiAware.

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
So...... there is a problem with the FA branch at the moment??  But great to see you have raised the issue with FA. Do you think the problems with Ubutnu and PiAware will be overcome??  I believe David Baxter said there was an upgrade coming with PiAware in relation to the new model PI3 B+ and its, inabliilty at the moment to boot with current PiAware software.

PiAware will not build on Ubuntu 17.10. What you are running there should no problem. Wo9rking through making sure my socat path is correct and will look into if the ring issue has anything to do with the code found here which I highly doubt it does.

I was wondering, to overcome the current issue, of whether you can update a Flightaware version, which is working, with your upgrades.  First thing I noted was that to start with, you have 2 directories, piaware(FA)  and ADSB-receiver after trying to do that.

Question. Did you, after claiming your receiver on flightaware.com, set you position via their website? If you log in and look at your receiver settings on their page you should see an option to set your receivers position. There is no way in dump1090-fa I can via the scripts allow you to set you position during setup. You must do so via their website.

I thought of that, but you cant do that until you can claim your new PiAware Ground Station and presently using the FA version, their system is not picking up the new feed.  Catch 22. I have sent an email re their auto system not working, but have heard nothing back yet.  I have even tried different PI's for the setup, to see if different mac's would trigger being given a new station, but no.  Do the same thing with the mutability version, new station each time you re do a card.

My experience dump1090-fa unlike dump1090-mutabilty needs its postion setup on their website. I am gussing this is your issue and out of my hands. Might want to try asking on their forum. There are many people there willing to point you into the right direction if in fact you are unable to set your position.
https://discussions.flightaware.com/c/flightaware/ads-b-flight-tracking

Update per Sunday.  Downloaded FA image, format sd, load image, raspi config.
Installing  got to portal install, with a fatal error here:
Installing packages needed to fulfill dependencies...
Checking if the package lighttpd is installed... [OK]
Checking if the package bc is installed... [OK]
Checking if the package php7.0-cgi is installed... [OK]
Checking if the package php7.0-json is installed... [OK]
Checking if the package collectd-core is installed... [OK]
Checking if the package rrdtool is installed... [OK]
Checking if the package postfix is installed... [NOT INSTALLED]
Installing the package postfix...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postfix is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'postfix' has no installation candidate
Checking if the package postfix is installed...  [INSTALLATION ATTEMPT FAILED]
Attempting to Install the package postfix again in 5 seconds (ATTEMPT 2 OF 5)...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postfix is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'postfix' has no installation candidate
Checking if the package postfix is installed...  [INSTALLATION ATTEMPT FAILED]
Attempting to Install the package postfix again in 5 seconds (ATTEMPT 3 OF 5)...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postfix is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'postfix' has no installation candidate
Checking if the package postfix is installed...  [INSTALLATION ATTEMPT FAILED]
Attempting to Install the package postfix again in 5 seconds (ATTEMPT 4 OF 5)...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postfix is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'postfix' has no installation candidate
Checking if the package postfix is installed...  [INSTALLATION ATTEMPT FAILED]
Attempting to Install the package postfix again in 5 seconds (ATTEMPT 5 OF 5)...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package postfix is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'postfix' has no installation candidate
INSTALLATION HALTED!
UNABLE TO INSTALL A REQUIRED PACKAGE.
SETUP HAS BEEN TERMINATED!
The package "postfix" could not be installed in 5 attempts.
IMAGE SETUP HAS BEEN TERMINISTED. #########

Ok..... 3rd attempt, got past the postfix glitch (had caps lock on after setting up heywhatsthat???))  anyway got through the whole FA set up, set up portal, still no planes showing in map, all currently tacked flights from site showing in FA table?????

More info, Planefinder is working fine of that install and is showing the planefinder map and current tracked A/C.  Now this is interesting, the following script entered with the strange reply:
pi@raspberrypi:~/adsb-receiver $ sudo /etc/init.d/dump1090-fa restart
sudo: /etc/init.d/dump1090-fa: command not found
?????

Got the 2.6.1 FA to work, with circles centred over me.  Haven't tried the 2 6 2 version but suspect it should be also ok :)


Implement the Strategy Pattern for the ChainlinkContractsMonitor

Technical Story
When you have a multiprocessing system you have to watch out how many processes you are going to spawn. There are two reasons why you need to do this:

If the number of processes becomes a lot bigger than the number of CPUs then the Operating System will spend most of its time context switching between processes which is time consuming
Processes take a lot of memory, therefore if you spawn a lot of processes you may eventually run out of memory

If we only focus on the Monitors, currently we are creating a manager process for every type of monitorable and a monitor process for every monitorable. For example, suppose that the user added 4 cosmos nodes and 1 DokerHub repo for monitoring. On startup PANIC is going to start a ContractsMonitorsManager, NetworkMonitorsManager, NodeMonitorsManager, SystemMonitorsManager, DockerHubMonitorsManager and a GitHubMonitorsManager all in a separate process. In addition to this, PANIC will start 4 CosmosNodeMonitors and 1 DockerHubMonitor in a separate process. As a result we are creating a lot of processes which will portentially increase as the node operator adds more monitorables. At a larger scale we might end up having a slow system and/or run out of memory.
To solve this it is being proposed that we start reducing the number of processes by using a combination of processes and threads. We can start by first focusing on the Monitors, benchmark the implementation and if there is benefit we would incorporate these changes to other components. The idea is to have a single MonitorsManager which spawns a thread for each monitorable. As per the resources below, threads are more memory efficient and lightweight to handle. When implementing the threaded monitor we have two options:

To implement a long-lived thread which connects to rabbit once and performs work every 10 seconds.
To implement a thread whose work is to connect to rabbit, do work, disconnects from rabbit and terminates.

It is suggested that we perform implementation 1 because according to the RabbitMQ docs the rabbit server works better with long-lived connections
For this huge task to be completed we need to tackle the following:

Implement the Strategy Pattern for every type of monitor to have a code-base of higher quality.
Implement a single MonitorsManager that is able to receive configurations and use the appropriate strategy to start a monitor in a separate thread based on the routing key
Add the monitorables store functionality that we already have in present managers.
Add the heartbeats functionality that we already have in present managers.

Therefore to easily handle this large change we will break the task described above into granular tickets.
The aim of this ticket is to develop the Strategy Pattern requirments for the ChainlinkContractsMonitor
Resources:

https://www.indeed.com/career-advice/career-development/multithreading-vs-multiprocessing
https://timber.io/blog/multiprocessing-vs-multithreading-in-python-what-you-need-to-know/
https://towardsdatascience.com/multithreading-multiprocessing-python-180d0975ab29
https://refactoring.guru/design-patterns/strategy/python/example
https://auth0.com/blog/strategy-design-pattern-in-python/

Requirements
The aim of the Strategy Pattern is to make it easy to encapsulate the tasks needed to be done by the MonitorsManager in order to start the ChainlinkContractsMonitor, namely:

Parsing the ChainlinkContractsConfig
Starting the ChainlinkContractsMonitor using threads with the appropriate fields.

Some code snippets that might be useful:
class MonitorStarter:
    """
    This is the Context class,  it defines the interface of interest to clients.
    """

    def __init__(self, strategy: MonitorStarterStrategy) -> None:
        """
        Usually, the Context accepts a strategy through the constructor, but
        also provides a setter to change it at runtime.
        """

        self._strategy = strategy

    @property
    def strategy(self) -> MonitorStarterStrategy:
        """
        The Context maintains a reference to one of the Strategy objects. The
        Context does not know the concrete class of a strategy. It should work
        with all strategies via the Strategy interface.
        """

        return self._strategy

    @strategy.setter
    def strategy(self, strategy: MonitorStarterStrategy) -> None:
        """
        Usually, the Context allows replacing a Strategy object at runtime.
        """

        self._strategy = strategy

    def parse_and_start(self, config: ConfigDict) -> None:
        """
        The Context delegates some work to the Strategy object instead of
        implementing multiple versions of the algorithm on its own.
        """

        parsed_config = self._strategy.parse(config)
        self._strategy.start(parsed_config)

class MonitorStarterStrategy(ABC):
    """
    The Strategy interface declares operations common to all supported versions
    of some algorithm.

    The Context uses this interface to call the algorithm defined by Concrete
    Strategies.
    """

    @abstractmethod
    def parse(self, config: ConfigDict) -> Config:
        pass

   @abstractmethod
    def start(self, config: Config) -> None:
        pass

class ChainlinkContractsMonitorStarterStrategy(Strategy):
    def parse(self, config: ChainlinkContractsConfigDict) -> ChainlinkContractsConfig:
        return ChainlinkContractsConfig(config['parent_id'], config['evm_node_urls'])

    def start(self, config: ChainlinkContractsConfig) -> None:
        redis = Redis('localhost')
        monitor = ChainlinkContractsMonitor(config, redis)
        thread.start(monitor.start())

Some Notes:

Objects such as data sources may be shared between threads, this means that although the bulk of the ChainlinkContractsMonitor implementation should not be effected we might require a lock to access shared objects such as the list of EVMNodes to be used as data sources. This needs further investigation, however, if we create new objects from dictionaries for a particular thread we might not need locks because each object would be unique. However, with this approach whenever there is a config update/removal we need to restart a long-lived thread.
Since we are able to use shared memory we can use a single Monitors logger for both the manager and the individual monitors running in separate threads. This will help us to reduce the number of log files that are currently being generated by PANIC. However we must make sure that we are able to do so in a safe manner. According to this thread it seems that the logging module is thread safe https://stackoverflow.com/questions/2973900/is-pythons-logging-module-thread-safe
Each thread must have its own Rabbit connection as Pika is not thread safe
Each thread must be set as daemon just in case the parent process needs to exit.
Each monitor must handle the thread stopping criteria possibly using exit flags or exceptions.

Acceptance criteria
Scenario: The ChainlinkContractsMonitor starting procedure should satisfy the Strategy pattern
Given: The ChainlinkContractsMonitor accesses shared memory then it is able to access shared resources without any Race Condition
Then: It can do so without any race conditions / errors

@simplyrider Also suggested another approach for implementing the Monitors architecture:
To make sure that the system never runs out of memory and CPU processing power is kept to a low we must make sure that as the user adds more monitorables there aren't a lot of threads/processes running at the same time. A good approach to manage this is to implement a queue which manages how many threads execute at the same time. Therefore we can have the following:

We would have 1 MonitorsManager that has 1 thread listening for all type of monitorable configs and the other thread executing a batch of tasks from a multiprocessing queue every X seconds (X should vary according to how many monitorables we have).
When a configuration is received, the MonitorManager adds a task on a multiprocessing queue for each configuration. In this task we must specify the monitor strategy to execute, and the corresponding configuration.
Once 5 seconds elapse for the task thread, the task thread grabs Y tasks from the queue(Y should very according to how many monitorables we have), checks that their configurations were not updated by the user and if not it starts a monitor thread for that configuration. Afterwards it puts the same task to the end of the queue for another monitoring round later on.
The monitor process needs to connect to rabbit with a separate connection, retrieve data, send it and disconnect from rabbit.

Some Notes:

It is best to stress test multiple approaches to see which once performs best. We need to test the multiprocessing approach (The one we have currently), multithreading approach, and the queue approach.
Another important thing we must need to think about is the heartbeat mechanism. The queuing approach may require us to re-design the heartbeat mechanism, modify it for the MonitorsManager or remove it altogether if deemed not useful.

Some resources:

https://medium.com/omarelgabrys-blog/threads-vs-queues-a71e8dc30156
https://testdriven.io/blog/developing-an-asynchronous-task-queue-in-python/
http://pymotw.com/2/Queue/
https://developer.apple.com/library/archive/documentation/General/Conceptual/ConcurrencyProgrammingGuide/OperationQueues/OperationQueues.html#//apple_ref/doc/uid/TP40008091-CH102-SW1


Missing '--recursive or -rc' flag in the new release.

Getting this error when I use --recursive flag. Apparently, it's missing in the new release.

isort v4.3.21 woked perfectly
-rc, --recursive      Recursively look for Python files of which to sort imports

That's correct. https://github.com/timothycrosley/isort/blob/develop/CHANGELOG.md#500-penny---july-4-2020 The --recurisive option doesn't mean anything any more as directories passed in are automatically recursively sorted - in line with other popular formatters

@timothycrosley , Thanks for the clarification. Also, I tried to run isort using the new recursive command, isort . along with other flags but the command seems to not work. But when I run it without the additional flags, it works perfectly. Is that the intended behaviour?
Here's the command;
 isort . --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --check-only --thirdparty fastapi --thirdparty fastapi --thirdparty pydantic --thirdparty starlette
And heres my output:

Your output implies that it's working but finding errors (note that --check-only means isort wont make any changes just let you know if it would have if not in check-only mode). To get more info, you can add --diff which will let you know what changes isort wants to make with your given config. I went ahead and cloned the fast api and used the given command with isort 5.0.0 and it only identified one incorrectly sorted file, adding --diff I got:
(isort-5f3Bw38m-py3.8) timothy@pop-os:~/Projects/fastapi/docs_src$ isort . --multi-line=3 --trailing-comma --force-grid-wrap=0 --combine-as --line-width 88 --check-only --thirdparty fastapi --thirdparty fastapi --thirdparty pydantic --thirdparty starlette --diff
ERROR: /home/timothy/Projects/fastapi/docs_src/nosql_databases/tutorial001.py Imports are incorrectly sorted and/or formatted.
--- /home/timothy/Projects/fastapi/docs_src/nosql_databases/tutorial001.py:before       2020-07-04 21:53:12.800632
+++ /home/timothy/Projects/fastapi/docs_src/nosql_databases/tutorial001.py:after        2020-07-04 21:54:16.780226
@@ -1,11 +1,10 @@
 from typing import Optional
-
-from fastapi import FastAPI
-from pydantic import BaseModel

 from couchbase import LOCKMODE_WAIT
 from couchbase.bucket import Bucket
 from couchbase.cluster import Cluster, PasswordAuthenticator
+from fastapi import FastAPI
+from pydantic import BaseModel

 USERPROFILE_DOC_TYPE = "userprofile"

Which looks correct to me (unless the intention here was to make couchbase a first party?)

Yes. I see my mistake, my initial goal was to format without checking. Therefore, I don't need the --check-only flag in my command. Thanks.

No worries! Just glad I can help!

Quick question, how could I check recursively for python files by specifying the folder as an argument to the command? For example; isort --check-only folder1 folder2 folder3.

That's exactly right! isort --check-only folder1 folder2 folder3 should check recursively all 3 folders for any Python file.

I actually ran the same command as I posted in the comment with the specific folders and it did the check. Without the dot.

Maybe it's worth to add back --recursive as a no-op and print a deprecation warning instead?
I guess the current behaviour will break quite some CI setups where --recursive was used.

+1 on breaking CIs. Although it really is a small fix, but would be a nice gesture to warn first.

Thanks for reporting! This is fixed in the just release 5.0.4 patch release. isort will warn people if the option is encountered and point to the upgrade guide: https://timothycrosley.github.io/isort/docs/upgrade_guides/5.0.0/

Is it intentional new behavior that this walks down "hidden" paths (example: .venv) now?


NPC/Medibot exceptions

From grafan:
System.Collections.Generic.KeyNotFoundException: The given key 'Dead' was not present in the dictionary.
   at Content.Server.NPC.HTN.PrimitiveTasks.Operators.Specific.MedibotInjectOperator.Update(NPCBlackboard blackboard, Single frameTime) in /home/runner/work/space-station-14/space-station-14/Content.Server/NPC/HTN/PrimitiveTasks/Operators/Specific/MedibotInjectOperator.cs:line 50
   at Content.Server.NPC.HTN.HTNSystem.Update(HTNComponent component, Single frameTime) in /home/runner/work/space-station-14/space-station-14/Content.Server/NPC/HTN/HTNSystem.cs:line 335
   at Content.Server.NPC.HTN.HTNSystem.UpdateNPC(Int32& count, Int32 maxUpdates, Single frameTime) in /home/runner/work/space-station-14/space-station-14/Content.Server/NPC/HTN/HTNSystem.cs:line 247
   at Robust.Shared.GameObjects.EntitySystemManager.TickUpdate(Single frameTime, Boolean noPredictions) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/GameObjects/EntitySystemManager.cs:line 306
 Catcher=entsys Sawmill=runtime

bruh that should never happen


Add united hatzala accidents filter

Once the איחוד הצלה data is integrated we would like to be able to filter it.
This would be implemented by filtering Marker.model.get("subtype") == 21
@LironRS  - Please add a UI option for that.

Please prioritize this, I think it would be helpful.

I just noticed - this added a filter for case type 1/3, but United accidents have case type 2. This should be an option (that's the whole idea of #434). Preferably a more friendly name than "1"/"2"/"3" should be shown.

@LironRS Please take care of the UI and I'll hook it up

@omerxx @LironRS still on this?
The "סוג תיק" filter should be expanded to allow filtering United markers.
The naming should also be more transparent, for it to be clearer that this is filtering for the data source.

I just need a button.
I'll do the rest
עומר
ב-8 בפבר 2016, בשעה 21:27, Daniel Hershcovich<EMAIL_ADDRESS>כתב/ה:

@omerxx @LironRS still on this?
The "סוג תיק" filter should be expanded to allow filtering United markers.
The naming should also be more transparent, for it to be clearer that this is filtering for the data source.
—
Reply to this email directly or view it on GitHub.

@omerxx what is the status on this? The button is still not very informative:

Rather than 1/3 the filter should be למ"ס (which is code 1 OR 3) and איחוד הצלה (which is code 2).

@danielhers I think I've started working on it but I can't recall.
Can get back with an answer in the evening unless there's someone ready to start working on it now..

There should still be an option to choose between 1 or 3 (סוג תיק 1, סוג תיק 3) and איחוד הצלה.
It could look something like that:
הכל
הלשכה המרכזית לסטטיסטיקה: מס׳ תיק 1/מס׳ תיק 3
איחוד הצלה

On 28 May 2016, at 12:38, Omer Hamerman<EMAIL_ADDRESS>wrote:
@danielhers https://github.com/danielhers I think I've started working on it but I can't recall.
Can get back with an answer in the evening unless there's someone ready to start working on it now..
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/hasadna/anyway/issues/434#issuecomment-222299727, or mute the thread https://github.com/notifications/unsubscribe/ADNleJXNtEDa-xtIpf_tE-TwGl2GIWY6ks5qGA0sgaJpZM4F9B-O.

Right, if someone wants to filter by file type then it should be possible, but the usual case is to filter by source (CBS/United) and it should be possible.
Some people have expressed interest in this task but they are still not done setting up the environment.

@simonaho can anyone else take this?

@danielhers Can I still help?
What's the status?
Is there anyone that can help with the UI?

If you have time, sure, thanks!
I just saw there was no activity for a long time in this and some other issues.

Hi, @omerxx great to have you back. Can you come to the meeting this evening?
I will ask someone to make the UI more informative.
Will update you when the UI is ready.

@simonaho I was never away :) just had a lot of trouble lately doing anything but work
Will do my best, if not I'll try getting to this from home, didn't see the code for a while so it would probably take some more time than usual


Create sitemap

Create sitemap of JSON-LD documents for harvesting by OIH.

@pieterprovoost  feedback on the generated sitemap & its script :

the sitemap is invalid because it lacks the proper 2 header lines:

taken from a similar sitemap script<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9/">
  ...
</urlset>

@jmckenna Should be ok now.

@jmckenna Just realized that I already have a sitemap generated as part of the validation report, I updated ODISCat.


The preset buttons (worker, dmg) apply to random pals in addition to the selected one

As the title states, I noticed that when I applied the "worker" preset to change the traits of a couple of pals, it also applied to a very large number (~20) of pals in my box and even affected the pals of other players on my server as well. They ended up with around 20 pals with the exact same traits.

I also encountered the same bug. I set four properties for "Zoe&Grizzbolt". After saving the changes, I found that many pals were set with the same properties in the game

I haven't used the preset buttons but I have experienced this issue. I don't know the cause for sure (and I had backups as recommended, thankfully), but I think it's 1 of 2 things.

Applying passive skills to a Pal that didn't have any to start with.
Applying a passive skill to the "wrong" slot. As in a Pal has 1 skill and you assign one to Slot 4. The UI will move this to Slot 2 automatically, however.

I've only seen the bug after doing one (or both) of these actions. When I avoid them, there aren't any problems.

I haven't used the preset buttons but I have experienced this issue. I don't know the cause for sure (and I had backups as recommended, thankfully), but I think it's 1 of 2 things.

Applying passive skills to a Pal that didn't have any to start with.
Applying a passive skill to the "wrong" slot. As in a Pal has 1 skill and you assign one to Slot 4. The UI will move this to Slot 2 automatically, however.

I've only seen the bug after doing one (or both) of these actions. When I avoid them, there aren't any problems.

Same issue. Not even with the present, changing pals abilities as usual also gives this problem. The former (pals with no skills get skills) happens to me, and a lot of pals at that

Same issue, didn't use presets....

Will investigate this. Thanks for your report :) A lot of people forget that we're not at v1 yet. We're still v0.4/v0.5 so things are still WIP.

applying passive skills to any Pal who doesn't  have any passive skills will affect other Pal without passive skills

This issue seems to persist in latest update.


feat: Implement mysql connection attributes

Implements the support for connection attributes for mysql.
Up for discussion

The default could be changed that the default is to not send any connection attributes.
The library default attribute keys/values
The ergonomics/names on the MySqlConnectOptions struct (.attribute(..), no_default_attributes(..), clear_custom_attributes

WIP, needs more tests but wanted to get some initial feedback

No worries I also forgot about it
Making it opt-in sounds like a good idea, done (0a644fd257087028dbc119a7ed7ffb40772ecc88).
I like the simplified approach with only with_default_attributes and attribute(...) but maybe it would also need clear_attributes because the user can also define the connection attribute via the connection string.
Otherwise it would not be possible to disable attributes from code, or is this not desired?

I like the simplified approach with only with_default_attributes and attribute(...) but maybe it would also need clear_attributes because the user can also define the connection attribute via the connection string.
Otherwise it would not be possible to disable attributes from code, or is this not desired?

I don't really care, my gut says "YAGNI" but if you think it should be there then whatever.

I don't really care, my gut says "YAGNI" but if you think it should be there then whatever.

You are right I don't need it myself so keep it simple

Just make Attributes a struct wrapping BTreeMap and have it default to empty. It'd be a lot simpler.

Yeah looks way better now


Link to docs.rs and embed readme in it

This embeds the readme in the module docstring, so that it appears on docs.rs. Here's what it looks like:

It also adds a badge to the readme linking to the docs.

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


[ENH] Add fixed-width C integer types as known types to the language

Is your feature request related to a problem? Please describe.
Fixed-width C integer types are somewhat system / C-compiler specific and thus not entirely trivial to use. However, Cython is not C. They fill a common need and should be easy to use.
Describe the solution you'd like.
Instead of requiring cimports from stdint.h, Cython should just know about common types like uint32_t etc.
These need to be added to both PyrexTypes.py (plain C types) and Shadow.py (cython.*).
Describe alternatives you've considered.
No response
Additional context
Originally proposed in https://github.com/cython/cython/pull/4980#issuecomment-1217554257

I will try to implement this issue.

Only thing to say is: stdint.h is a C99/C++11 feature. So it should fall into the category of "the header will be required if the user uses these types, but not if the user doesn't". I think that should happen fairly naturally though.


feature.jiraIssueTypeNames values do not support chinese?

feature.jiraIssueTypeNames=Story,缺陷
but jira support chinese in url。

Can you make a PR for this enhancement?

PR

SORRY,I can't program.


Fix typo in documentation

Coverage remained the same at 100.0% when pulling 1269d1d988a8a55f64967847766fe59a45b31f2a on baileylo:patch-1 into eb6d81a27429ff4052ac46d8dd09774bfc903765 on aol:master.


remove retainLines from coverage instrumentation

Summary
In theory, this shouldn't be needed anymore. Committing from GitHub, trusting CI to yell at me if something is wrong.

Test plan
All should be green

Codecov Report

Merging #5692 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5692   +/-   ##
=======================================
  Coverage   63.16%   63.16%
=======================================
  Files         216      216
  Lines        7913     7913
  Branches        3        3
=======================================
  Hits         4998     4998
  Misses       2914     2914
  Partials        1        1

Impacted Files
Coverage Δ

packages/jest-runtime/src/script_transformer.js
85.96% <ø> (ø)
:arrow_up:

packages/jest-editor-support/src/Runner.js
68.29% <0%> (ø)
: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 4037b79...89d8ea3. Read the comment docs.

Woohoo!


In version upper than 1.9.2 searching by code not work. And please add feature download from page xxx to page xxx because many doujin in one tittle have more than one story.

I hope i can search again with code and download Page by page.
Thx

Great feature,user don't have to download whole gallery.

Fixed using id for searching, the bulk downloading will be added in future updates with #27

Thank you very much its very fast


feature: add apollo secret key configuration

Ⅰ. Describe what this PR did
add apollo secret key configuration
Ⅱ. Does this pull request fix one issue?

fixs #2940
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #2941 into develop will decrease coverage by 0.11%.
The diff coverage is 25.00%.

@@              Coverage Diff              @@
##             develop    #2941      +/-   ##
=============================================
- Coverage      50.26%   50.14%   -0.12%
  Complexity      3047     3047
=============================================
  Files            599      599
  Lines          19415    19393      -22
  Branches        2381     2336      -45
=============================================
- Hits            9758     9724      -34
+ Misses          8679     8669      -10
- Partials         978     1000      +22

Impacted Files
Coverage Δ
Complexity Δ

...gure/properties/config/ConfigApolloProperties.java
41.17% <25.00%> (-4.98%)
3.00 <0.00> (ø)

...obuf/convertor/BranchRegisterRequestConvertor.java
90.47% <0.00%> (-9.53%)
3.00% <0.00%> (ø%)

...otobuf/convertor/BranchReportRequestConvertor.java
90.90% <0.00%> (-9.10%)
3.00% <0.00%> (ø%)

...obuf/convertor/BranchRollbackRequestConvertor.java
92.00% <0.00%> (-8.00%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalBeginResponseConvertor.java
92.59% <0.00%> (-7.41%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalCommitRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalStatusRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...obuf/convertor/GlobalRollbackRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...protobuf/convertor/RegisterTMRequestConvertor.java
94.73% <0.00%> (-5.27%)
3.00% <0.00%> (ø%)

...protobuf/convertor/RegisterRMRequestConvertor.java
90.47% <0.00%> (-4.77%)
3.00% <0.00%> (ø%)

... and 25 more

LGTM


Browser compatible .min.js builds?

These ones look minified, and work for me in the browser (tested Firefox & Chrome):

<EMAIL_ADDRESS><EMAIL_ADDRESS>
What exactly are you missing?


Add Gist support in the editor

First of all I want to thank you for the great platform! I am using it for my blog and it is very cool.
Now to the PR description.
Problem.
Currently if you want to embed a gist in your wink blog (like on medium) you have to embed it as an HTML.

This causes several problems:

Since for security reasons Quill does not render embed JS code, you see blank line like nothing happened after you paste the code. Moreover if you later on want to come back and edit/delete some rows, you can't see for sure if you deleted or not the row with the gist since it is not visible.
In FE the markup is this:

Since it is regular html block it has class inline_html. This causes ...

... if you haven't set width: 100% to your inline_html class like I do. So either you have to set this for all inline_html classes or to take extra step when pasting the code into Quill and always wrap the JS with another wrapper and class that you can style differently in FE.
This is tedious.
Solution

This solves the following issues:

Provides nice shortcut to embed your gists.
Displays visual feedback in Quill (still we can't render the gist there because of restrictions), so you can see where your gist block is and format/delete it properly if required.
In FE we have dedicated markup now that can be styled properly and is different from inline_html blocks

@themsaid Any news on that PR?


Replace chat/tooltip typeface

Chat font is standard blizzard and looks out of place. sInterface uses Francois One, but Francois is  wayyy too heavy for a chat font. Look for a suitable replacement

Fixed by https://github.com/sBaildon/sInterface/commit/d3e934345b60892bef3ddca66222fd040a7b0283 (or a commit near this one ;-))


OmniSharp Agenda » Meeting Thursday November 15th @ 18:00 UTC

PST (UTC-8)
EST (UTC-5)
London (UTC)
Zürich (UTC+1)
Helsinki (UTC+2)
Sydney (UTC+11)

11:00 AM
2:00 PM
7:00 PM
8:00 PM
9:00 PM
6:00 AM

Meeting info
TBD
Agenda
General catch up, to figure out what needs to be worked on next (plus more!)
If you can think of any more agenda items, feel free to edit the issue (if you have permissions) or just comment on this thread and we'll make sure to group them up before the meeting.
Also feel free to discuss any agenda items early as part of this issue, we can make sure to recap during the start of the meeting, and may cut down on the time we have to spend on some of them.
Razor

Alpha 1 is out!
@NTaylorMullen @danroth27

Language Server Protocol

Latest library is updated
Need to update OmniSharp roslyn with the latest version

project.json support

Discuss

OmniSharp-atom
OmniSharp-node-client
OmniSharp-vscode
@DustinCampbell @rchande
C# scripting
@filipw

RSP file support, custom host object support
next: improved #r nuget

cc @OmniSharp/all
Additional agenda items?

analyzers support PR
NuGet packages release (plugin support)

proposal: should we mark everything as internal and release only the basic API surface only (i.e. IProjectSystem and few other absolutely core friends), and go from there?

Either update the issue, or add them in the comments below!

Also make sure I have the times correct. (I think I double checked them)

I forgot to send out the calendar invite, everyone is still welcome to join!

Skype link:
https://meet.lync.com/microsoft/rchande/4D9N3LT7
Skype web app:
https://meet.lync.com/microsoft/rchande/4D9N3LT7?sl=1

Notes:
Attendees:

Ravi
Filip
Dan  Roth
Drew
Taylor
Kevin P

David's TODO's:

Automate Release Notes
Azure Pipelines
LSP
NuGet Packages

Internalize the api surface
(copy roslyn)

.NET Foundation
vscode incremental buffer changes

Areas / Issues:

Workspace events: multi threaded -> single threaded

Task Scheduler

Update to .net472

Update embedded mono
Ensure the latest mono is installed

Update to Roslyn beta (when released)

Microsoft to look internally to determine if this makes sense.
Look at different release pipelines

master
next / stable / release


FancyZones zones resets when switching between SDR and HDR

Microsoft PowerToys version
v0.47.0
Running as admin

[X] Yes

Area(s) with issue?
FancyZones, FancyZones Editor
Steps to reproduce
I'm using an LG C1 55" as a primary monitor and a 27" gaming monitor as a secondary monitor.
After configuring my FancyZones for both monitors I toggled on HDR in Windows to play some games, however to my surprise my custom zones on both monitors got reset to the default priority zones preset.
I chose a hotkey for my custom preset but holding down Win + CTRL + Alt and pressing the designated number doesn't change the current FancyZone preset to the one I'd like to use.
✔ Expected Behavior
My FancyZones should be kept when switching between SDR and HDR modes in Windows on both monitors.
❌ Actual Behavior
FancyZones resets on both monitors after switching between SDR and HDR output on primary monitor
Other Software
No response

@Asplund1337 can you try 0.51.1  we've done a few fixes.
If it doesn't, can you please attach a "report bug" zip?


KRACK_ATTACK Vulnerable HostApd

Found today a security patch for the well known KRACK_ATTACK readed by thehackernews.com
https://thehackernews.com/2017/10/wpa2-krack-wifi-hacking.html
Also I found some patches for hostapd to solve this problem.
https://w1.fi/security/2017-1/
I don't know if OpnSense uses HostApd but in case here is the patch for this vulnerable.
Hope this can be fixed as soon as possible.

I checked what version off HostApd is installed on OpnSense, but there is version 2.5 installed. Should this be upgraded to version 2.6 with the security patches init?

I would rather take the official freebsd variant for 11.x, but I'm trying my luck with 2.6 rebased patches on 2.5 now because the former will take longer

nope, no easy backport. can't verify these findings. don't want to leave things vulnerable by shipping flawed patches...

You mean these patches are not working properly?

rebased-v2.6-0001-hostapd-Avoid-key-reinstallation-in-FT-handshake.patch does not apply, functions were refactored

Ah okay. What does this mean?

we wait for freebsd
https://lists.freebsd.org/pipermail/freebsd-current/2017-October/067198.html

I hope they will fix this soon.

So FreeBSD at least updates wpa_supplicant in ports, I’ve added both this and hostapd to the package build and a test for using installed ports instead of the vulnerable base files. If we male this fix manual for users or migrate to the ports directly I something we cannot say today, for today that is a small win over doing nothing.

@squadramunter  if you have time, the CFT for our fix is here https://forum.opnsense.org/index.php?topic=6183.0

shipped :)


Refactor tests

Coverage: 94.04%. Remained the same when pulling ef0c9f479aa0471024ad4373af8c8d17b90cb533 on gavv:tests into da750349054a63fe45587938e65ccc87fb8668b5 on roc-streaming:main.


Update spark dependency to spark 3.2

Current xgboost4j released version built with spark 3.0, but the binary jar is incompatible with spark 3.2
This PR update the spark dependency to be spark 3.2

@trivialfis, looks like we can close this PR

Thanks you both!


Not able to get Kind = Modern usage details

Package Name:

Package Name:  azure.mgmt.consumption

Operating System:
Win 10

Python Version:
3.9

Describe the bug

Usage details for scope = Enrolment returns only data for one subscription.
We are not able to get columns that listed in kind = Modern (we got list from REST API page and from Portal).

To Reproduce
Steps to reproduce the behavior:
SCOPE = '/providers/Microsoft.Billing/enrollmentAccounts/{}/providers/Microsoft.Billing/billingPeriods/{}'.format(BILLING_ACC_ID, BILLING_PERIOD)
bill_consumption = consumption_client.usage_details.list(SCOPE)
Expected behavior
When we specify Enrollment as scope we expect to receive data for all subscriptions.
We expect more columns:
BillingPeriodEndDate | BillingProfileId | BillingProfileName | AccountOwnerId | AccountName | SubscriptionId | SubscriptionName | Date | Product | PartNumber | MeterId | ServiceFamily | MeterCategory | MeterSubCategory | MeterRegion | MeterName | Quantity | EffectivePrice | Cost | UnitPrice | BillingCurrency | ResourceLocation | AvailabilityZone | ConsumedService | ResourceId | ResourceName | ServiceInfo1 | ServiceInfo2 | AdditionalInfo | Tags | InvoiceSectionId | InvoiceSection | CostCenter | UnitOfMeasure | ResourceGroup | ReservationId | ReservationName | ProductOrderId | ProductOrderName | OfferId | IsAzureCreditEligible | Term | PublisherName | PlanName | ChargeType | Frequency | PublisherType | PayGPrice | PricingModel
received cols:
type | tags | billing_period_id | usage_start | usage_end | instance_name | instance_id | instance_location | currency | usage_quantity | pretax_cost | is_estimated | meter_id | subscription_guid | subscription_name | account_name | department_name | product | consumed_service | cost_center

Thanks for the report @dejan-shuki!
Adding @msyyc to take a look :)

hi @dejan-shuki Could you provide a more detailed example about it？

@dejan-shuki I apologize for the confusion here. We have two types of usage details records, "legacy" and "modern". The kind of record is related to the agreement you have signed with Microsoft. Since you have an Enterprise Agreement, your usage details records will always come in the legacy format. Only customers who have signed a Microsoft Customer Agreement will receive usage details of kind "modern".

@dejan-shuki We are closing this issue now as it has been > 1 week since my last reply here. If you are still having issues you can reopen as needed.

Closing this based on above comment from @adwise3 . @dejan-shuki  we will be happy to help if above guidance does not work. Please free free to re-open the thread if more help is needed.


www.nd4j.org is unavailable

Hello. Looks like http://www.nd4j.org/ is down for many days already.

Use deeplearning4j.konduit.ai instead now


Built Unfinished Dev Branch

Not much to say here, just starting this so that we can get a live dev site when we want to.

Do not merge, broken