pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')

While running the trader, I saw this error multiple times. The situation that leads up to it is as follows,

Socket Manager receives a match for an order in the book,
ThreadHandler checks the match in the Book
In the BookManager, Order is found
Order filled size is updated
If Order filled matches order size, order is marked as filled
In the ThreadHandler, Order is again checked to see if it has been marked filled
during this check sqlalchemy runs the following query:

FROM orders
WHERE orders.id = %(param_1)s]
[parameters: {'param_1': 57768}]

pymysql engine recieves an IOExeption from MYSQL:  (2013, 'Lost connection to MySQL server during query')

After researching this error, I cant say for cetrain what it is. The query doesnt seem to be a time out, as when I ran it from mysql, it came back without issue.
One theory is that this query is in the query_cache and upon being updated and imidiately queried again, there is some issue where the query_cache is causing problems due to the update.
To address the issue, add better error handling and attempt to disconnect and reconnect from the database and try again. Enable logging for mysql in and check trading logs for occurances to cross refrence to mysql.
2019-08-12 02:49:50,415 [INFO] trader.socket.thread_handler: Checking book for matched trade
2019-08-12 02:49:50,742 [INFO] trader.socket.thread_handler: Matched trade is in book
2019-08-12 02:49:50,773 [ERROR] trader.socket.manager: Socket had a general exception, last message received 0.36115169525146484 seconds ago
Traceback (most recent call last):
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
    cursor, statement, parameters, context
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
    cursor.execute(statement, parameters)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/cursors.py", line 170, in execute
    result = self._query(query)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/cursors.py", line 328, in _query
    conn.query(q)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 517, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 732, in _read_query_result
    result.read()
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 1075, in read
    first_packet = self.connection._read_packet()
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 657, in _read_packet
    packet_header = self._read_bytes(4)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 707, in _read_bytes
    CR.CR_SERVER_LOST, "Lost connection to MySQL server during query")
pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/pi/Projects/Crypto-Liquid-Market-Maker/trader/socket/manager.py", line 121, in listen
    self.reader.new(message)
  File "/home/pi/Projects/Crypto-Liquid-Market-Maker/trader/socket/reader.py", line 31, in new
    return function_name(msg)
  File "/home/pi/Projects/Crypto-Liquid-Market-Maker/trader/socket/reader.py", line 88, in match
    self.check_book(msg)
  File "/home/pi/Projects/Crypto-Liquid-Market-Maker/trader/socket/reader.py", line 108, in check_book
    self.thread_handler.check_book_for_match(msg)
  File "/home/pi/Projects/Crypto-Liquid-Market-Maker/trader/socket/thread_handler.py", line 46, in check_book_for_match
    if order.status == "filled":
  File "/home/pi/Projects/Crypto-Liquid-Market-Maker/trader/exchange/order.py", line 106, in status
    return self._status
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/orm/attributes.py", line 276, in __get__
    return self.impl.get(instance_state(instance), dict_)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/orm/attributes.py", line 677, in get
    value = state._load_expired(state, passive)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/orm/state.py", line 660, in _load_expired
    self.manager.deferred_scalar_loader(self, toload)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/orm/loading.py", line 979, in load_scalar_attributes
    only_load_props=attribute_names,
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/orm/loading.py", line 208, in load_on_ident
    identity_token=identity_token,
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/orm/loading.py", line 282, in load_on_pk_identity
    return q.one()
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 3275, in one
    ret = self.one_or_none()
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 3244, in one_or_none
    ret = list(self)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 3317, in __iter__
    return self._execute_and_instances(context)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/orm/query.py", line 3342, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 988, in execute
    return meth(self, multiparams, params)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/sql/elements.py", line 287, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1107, in _execute_clauseelement
    distilled_params,
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
    e, statement, parameters, cursor, context
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1466, in _handle_dbapi_exception
    util.raise_from_cause(sqlalchemy_exception, exc_info)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 383, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 128, in reraise
    raise value.with_traceback(tb)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
    cursor, statement, parameters, context
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1466, in _handle_dbapi_exception
    util.raise_from_cause(sqlalchemy_exception, exc_info)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 383, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/util/compat.py", line 128, in reraise
    raise value.with_traceback(tb)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
    cursor, statement, parameters, context
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
    cursor.execute(statement, parameters)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/cursors.py", line 170, in execute
    result = self._query(query)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/cursors.py", line 328, in _query
    conn.query(q)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 517, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 732, in _read_query_result
    result.read()
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 1075, in read
    first_packet = self.connection._read_packet()
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 657, in _read_packet
    packet_header = self._read_bytes(4)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 707, in _read_bytes
    CR.CR_SERVER_LOST, "Lost connection to MySQL server during query")
sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query')
[SQL: SELECT orders.exchange_id AS orders_exchange_id, orders.pair AS orders_pair, orders.side AS orders_side, orders.price AS orders_price, orders.size AS orders_size, orders.filled AS orders_filled, orders.status AS orders_status, orders.post_only AS orders_post_only, orders.id AS orders_id, orders.created_at AS orders_created_at, orders.book_id AS orders_book_id
FROM orders
WHERE orders.id = %(param_1)s]
[parameters: {'param_1': 57768}]
(Background on this error at: http://sqlalche.me/e/e3q8)
2019-08-12 02:49:51,141 [ERROR] trader.socket.manager: last message received 0.7087192535400391 seconds ago/nTraceback (most recent call last):
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_c
ontext
    cursor, statement, parameters, context
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 552, in do_execu
te
    cursor.execute(statement, parameters)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/cursors.py", line 170, in execute
    result = self._query(query)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/cursors.py", line 328, in _query
    conn.query(q)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 517, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 732, in _read_query_re
sult
    result.read()
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 1075, in read
    first_packet = self.connection._read_packet()
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 657, in _read_packet
    packet_header = self._read_bytes(4)
  File "/home/pi/.local/share/virtualenvs/Crypto-Liquid-Market-Maker-z1bk84NN/lib/python3.5/site-packages/pymysql/connections.py", line 707, in _read_bytes
    CR.CR_SERVER_LOST, "Lost connection to MySQL server during query")
pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')```

This issues was not solved by the above merge. Upon further investigation and QA, I have discovered the cause of this. MariaDB has a default timeout for connections in the thread pool.
+--------------------------+-------+
| Variable_name            | Value |
+--------------------------+-------+
| thread_pool_idle_timeout | 60    |
+--------------------------+-------+

I was able to reproduce this issue by starting up the trader. Once trades were being listed I would use a separate test trading account to execute some trades that would be processed by the trader. This will create a few threads to process each match. Then once that processing of each thread was completed, I would wait one minute and create more trades with the other test account. Because the Mysql config was set to 60, the inactive thread pool connections were closed and the disconnect error was raised when the trader reached out again to grab the info it needed.


Adjust retroaction and salinity restoring to mixed Munday + Caneill.

The retroaction term T* from Romain (low meridional gradient at boundary) demands for negative meridional S* gradients to have a meridional surface density gradient supporting the ACC. Choosing T* from Munday with seasonal cycle and S* with adapted and asymmetric boundary values. Choose salt minimum on the equator.

Regarding the seasonal cycle in the T*:
Just changing T_n and T_s in analytical expression does not alter the changing peak at the equator, but

first need an assessment of the displacement by data
loose analytical expression of Munday (and go to s-curve interpolation)
Asymmetric seasonal change at the boundaries difficult to argue anyway


Steam Deck/Linux Support?

Any word on Steam Deck and Linux support? HamStar had a great guide for getting the old SADX Mod Manager running on Deck, but that's since gone out the window now that the new SA Mod Manager took over and the old SA2 Mod Manager got deprecated.
I tried using Bottles in a similar fashion to setting Hedge Mod Manager up, but I couldn't download the dependencies like any of the dotnets, ProtonTricks wouldn't recognize the non-Steam shortcut to select.

Officially there's no support for Linux or the Steam Deck, and there probably won't be in the observable future due to how the game, the loader and the manager are programmed. However, it is possible to run the new Manager and the game on the Steam Deck, and there are updated tutorials such as this one. While we try to not break Linux support on purpose, we cannot guarantee that unofficial tutorials will work forever (or at all). Ultimately Steam Deck and Linux compatibility is at the mercy of Proton. It's not ideal but it's probably going to get better.
We're doing some minor work on the Loader and Manager's side that may improve compatibility with Linux as well, such as getting rid of the Windows Media Player dependency.

As PkR said, there is bare bones support and we do our best to improve where there may be some issues, but that's all we can offer at this time.
In short, native Linux support is not planned at this time as it would require another rewrite to the system we use for the UI (WPF is Windows only). While it's still under consideration, there are no current plans to move to Avalonia or something else that would have native Linux Support for the Manager itself.
Additionally, use the guide PkR linked. It was updated within a couple of weeks of the initial launch for the SA Mod Manager. We also dealt with reports of Linux/Steam Deck issues when we added SA2 support and have fixed what we could from what was reported.

The guide PkR linked was the one I was referencing. And from my usage, using the SA Mod Manager via the SADX Mod Installer method doesn't support SA2 (installing mods and changing configs didn't work). I might have potentially done something wrong when trying to transition from SA2MM to SAMM, but there wasn't a guide at the time.
Also to preface I'm not expecting native Linux support or anything, was just asking about compatibility.


Crate can't build offline

Summary
Expected behavior: windows-rs builds successfully offline with a local-registry
Actual behavior: windows-rs build fails with a cryptic error message
It seems there are three sub-bugs here:

cargo metadata doesn't work offline, even if windows-rs was supplying --offline (see https://github.com/rust-lang/cargo/issues/9273).
windows-rs discards the errors from the cargo metadata invocation. This makes debugging tricky.
Given that cargo metadata doesn't currently work offline, is there another place we can get this workspace_root from?

Details
Error example
error: proc macro panicked
 --> C:\Users\some_user\.cargo\registry\src\-b20c50870c528e96\windows-0.3.1\build.rs:2:5
2 |     windows_macros::build!();
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^

  = help: message: Cargo metadata \\?\C:\src\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe did not contain `workspace_root` key. Got stdout . Got stderr
          Updating crates.io index
          warning: spurious network error (2 tries remaining): failed to send request: The server name or address could not be resolved
          ; class=Os (2)
          warning: spurious network error (1 tries remaining): failed to send request: The server name or address could not be resolved
          ; class=Os (2)
          error: failed to get `const-sha1` as a dependency of package `windows v0.3.1 (C:\Users\some_user\.cargo\registry\src\-b20c50870c528e96\windows-0.3.1)`

          Caused by:
            failed to load source for dependency `const-sha1`

          Caused by:
            Unable to update registry `https://github.com/rust-lang/crates.io-index`

          Caused by:
            failed to fetch `https://github.com/rust-lang/crates.io-index`

          Caused by:
            failed to send request: The server name or address could not be resolved
            ; class=Os (2)

          .
   Ran from "C:\\Users\\some_user\\.cargo\\registry\\src\\-b20c50870c528e96\\windows-0.3.1"

error: aborting due to previous error

Repro steps

Create a binary crate C that depends on windows-rs.
Use cargo local-registry to create a local registry for C's dependencies.
Try to build C with the local registry replacing crates.io. The build should fail with a cryptic error from the windows-rs build. To reproduce the error message I have above, modifying this line inside the local registry's copy of windows_winmd crate. There is almost certainly a simpler repro, but a repro shouldn't be strictly necessary to verify this bug has been fixed.

Unfortunately, I'm not aware of any other way to get the workspace dir. I had hoped there would be an environment variable, as there is for OUT_DIR, CARGO_MANIFEST_DIR, and so on. Reading the result of cargo metadata is certainly not ideal, but that's all I could find.

cargo metadata has an offline flag we can pass it which will not go to the network. It still has the workspace dir available.

@rylev the original issue mentions that the offline flag doesn't work.

Whoops, sorry totally missed that!

I did however just try running cargo metadata --format-version=1 --no-deps without an internet connection and it works fine for me using cargo 1.52.0-nightly.

I have added the --offline flag for good measure, but it doesn't appear to make a difference. Anyway, I don't think there's anything else I can do from my end.

Thanks! Version 0.5.0 fixes the issue for me (the only change there seems to be adding --format-version=1 --no-deps; previously I was on 0.3.1).


Cancelling  ConsumeResult<TKey, TValue> Consume(int millisecondsTimeout)

Description
I'm looking for a way to gracefully close consumer on Ctrl+C while it's waiting for timeout. Say I do  smth like:
consumer.Consume(10000);

Looks like it's not possible. The method with cancellation token works, but you cannot set timeout at the same time.
I think having method like Consume(int Timeout,  CancellationToken ctx) would be useful.
Another unintuitive  thing with Consume method is that on initial poll, the connection may not be fully set up, so if timeout is too short you'd never get a message. Not sure if it's possible but that would be much more intuitive for ConsumerBuilder.Build method to block thread until connection is fully set up and throw error if it's broken

Nvm. I realized  msTimeout should be just short, then consumer can be closed based on some cycle counter


python3Packages.blebox-uniapi: init at 1.3.3

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes

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

[x] Fits CONTRIBUTING.md.

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
Result of nixpkgs-review pr 126975 run on x86_64-linux 1

3 packages built:

home-assistant
python38Packages.blebox-uniapi
python39Packages.blebox-uniapi


Log flooded with - Programmable Switch Event: Single Press

Phoscon-GW Button: Programmable Switch Event: Single Press
Showing this events is not helpful - is there not a way to filter these events in the plugin? They are of no use- searching different forums, many have the problem.
I have seen quite a few comments about this here, your answer is always the Wiki - which is fine for people who understand the lingo.
But please - for us people without the knowledge - could you write a short guide what exactly one should change in Homebridge to make the flooding of the log stop - by this device? As quite a few people out there, I do not even know what it ist and why I need it...
Please explain as you would to a 3 year old. Where should I change something and what exactly?
Thanks so much!
Also thanks for your great plugin,

It's described quite nicely, so do yourself a favor and read: https://github.com/ebaauw/homebridge-deconz/wiki/Configuration
And also read this post: https://github.com/ebaauw/homebridge-deconz/issues/30#issuecomment-1077885988

@MSL-DA thanks, as I have written - I have read the comment and the linked wiki article - but I do not understand it.
yes, I am that ignorant. But I am also not the only one.
It would be wonderful if you could help. Reading all the closed threads and the wiki have sadly not helped me.

I do not even know what it ist and why I need it...

https://github.com/ebaauw/homebridge-deconz/issues/30#issuecomment-1077885988 It's to enable periodic automations.

But please - for us people without the knowledge - could you write a short guide what exactly one should change in Homebridge to make the flooding of the log stop - by this device?

https://github.com/ebaauw/homebridge-deconz/wiki/Dynamic-Configuration#update-accessory-settings

I'll admit it's not straightforward, but remember that Homebridge deCONZ is under development and I'm sure Erik's goal is to make it more user-friendly/PnP

@MSL-DA just giving me the instructions that I simply do not understand again, does not help me.
Yes I have read the Wiki and no - I do not understand it.
Could just aswell be in klingon.
Help would be:
Open…
Put in…
etc
Just pretend you are writing to a rather simple 3 year old

It's under the Wiki... if you've read it and don't understand it, it won't help you if I copypaste those instructions. I have linked to specific help topics that tell you what to do.
By the way, I can't write to a 3-year-old, because I don't expect him to understand ;)
I guess I have nothing more to contribute. Hope you figure it out.

@MSL-DA  you should become a teacher, you are great at explaining ;-)). Joke aside, I guess you cannot imagine why the wiki was not helpful. Which is fine. We are on a different experience level.
for starters where would I change stuff?!? Obviously not in the config. Using the console?
thanks for trying to help

A very kind soul on a forum created a step-by-step guide for me and I could easily follow it and fix my problem.
Yes the info is in the wiki - but it is swamped with so much info, that it is overwhelming for a beginner.
Now having gone through the process, I understand the wiki  - but before, I could not make any sense of it.
Maybe a condensed version of what one should do on the Wiki would help simple users like myself?!?
It is actually all pretty easy, once you know what to do.
The big problem is, once you have all the knowledge, it is hard to imagine what it was like before one knew how to do stuff.
There may be parts that seem completely obvious - but to a beginner they are not.
all in all, I am happy - my logs are not flooded anymore.

To find your bridgeid look for this in you log

open terminal in homebridge ui
type curl -s http://xxx.x.x.x:xxxxx/gateways | jq
look for bridgeid
type curl -s -X PUT -d '{"logLevel": 0}' http://xxx.x.x.x:xxxxx/gateways/bridgeid/settings | jq

If it is too difficult, then I would recommend that you use: https://github.com/ebaauw/homebridge-hue until Erik is "finished" with Homebridge deCONZ

as I wrote before, it is actually very easy, given precise instructions. It is only 3 steps. The trouble with the Wiki is, it gives all possible info and instructions - which is great - but can be confusing.
Once I knew exactly what to do, it took me about a minute - very easy. (Look at my post above)
But in general, I still do not understand the point of Phoscon-GW Button: Programmable Switch Event: Single Press
flooding the log - it was never in the home bridge-hue plugin and I am not sure anyone missed it.

Again ... Homebridge deCONZ is under development. Not very user friendly, but if you read https://github.com/ebaauw/homebridge-deconz#work-in-progress you would have known this too.
Erik's Wiki is quite useful, maybe not for a 3 year old ... but I don't think it's relevant for someone that age ;) I'm pretty sure this section will become irrelevant as soon as he finishes the implementation.

But in general, I still do not understand the point of Phoscon-GW Button: Programmable Switch Event: Single Press
flooding the log - it was never in the home bridge-hue plugin and I am not sure anyone missed it.

It's because you don't want to read the answers you get. I have answered you twice on that question, and also linked to an answer.  https://github.com/ebaauw/homebridge-deconz/issues/30#issuecomment-1077885988
But now that you've solved your problem, you can close the thread so we don't have to spend more time on it ;)

The statement that a short 3step guide in the wiki would help, is valid.
MSL-DA your posts have actually not been helpful at all, neither to a 3 year old - nor to a 60 year old. So thanks for being so overbearing.
yes, you know your way around here better than I - I hope this made your day. Thanks

The statement that a short 3 step guide in the wiki would help is valid.
No, it's not. You're lazy, that's what you are.
But now that you've gotten help, maybe you could write your solution so that "everyone" else doesn't have to ask the same question?

I was facing same issues as Domser21, this way of doing the config was new to me, nevertheless, I learned it, not with the answers here, but from the smartapfel forum.
The really really great description can be found here: https://forum.smartapfel.de/forum/thread/9763-homebridge-deconz-in-entwicklung-beta/?postID=143589#post143589

Is there any special command I have to use to have this change of logleve in permanent memory? Because when the RapsberryPi restarts the change of the loglevel is back to 2. Thx in advance!

The log level is persisted in cachedAccessories.  If it resets after rebooting the Raspberry Pi, there's something wrong with your setup.  Most likely a corrupted uSD card, that has turned read-only.


fix(api): extend client_secret length for generic oauth and oidc providers to 1000

closes #6719
Definition of Ready

[ ] I am happy with the code
[ ] Short description of the feature/issue is added in the pr description
[ ] PR is linked to the corresponding user story
[ ] Acceptance criteria are met
[ ] All open todos and follow ups are defined in a new ticket and justified
[ ] Deviations from the acceptance criteria and design are agreed with the PO and documented.
[ ] No debug or dead code
[ ] My code has no repetitions
[ ] Critical parts are tested automatically
[ ] Where possible E2E tests are implemented
[ ] Documentation/examples are up-to-date
[ ] All non-functional requirements are met
[ ] Functionality of the acceptance criteria is checked manually on the dev system.

BTW i checked the specific providers, their secrets are all far less the 200 long


Cannot use derivative in batch queries because the query does not validate correctly

When I try to use non_negative_derivative in a batch query I get an error that I need to specify the group by interval even though it looks to me like I did. Here's my TICK script:
var read_stats = batch
    |query('''SELECT non_negative_derivative(last("bytes"), 1s) as
bytes FROM "gpfs"."default"."read_stats" where fs = 'dmd' ''')
    .period(10s)
    .every(10s)
    .groupBy(time(10s), *)

read_stats | httpOut('read_stats')

Here's the error:
non_negative_derivative aggregate requires a GROUP BY interval.

I'm using Kapacitor and InfluxDB 0.13.

@aaronknister Thanks for the report. As a work around you can add in the needed GROUP BY to the query and it will be overwritten by the .groupBy property
var read_stats = batch
    |query('''
SELECT non_negative_derivative(last("bytes"), 1s) as bytes
FROM "gpfs"."default"."read_stats"
WHERE fs = 'dmd' AND time < now() + 1d GROUP BY time(1s)
''')
    .period(10s)
    .every(10s)
    .groupBy(time(10s), *)

read_stats | httpOut('read_stats')

@jsternberg Is there a way to parse a query without validating it? What's going on here is that Kapacitor wants to parse the supplied query and then modify the AST as per the specified options like .groupBy(time(10s), *) but since the query is invalid Kapacitor can't get an AST in order to modify it. Kapacitor reconstructs the query string before sending it to InfluxDB which will then perform the complete validation. Looking at the code it looks like validation and parsing are a single step and cannot be separated. Would it make sense to you to separate them?

I've wanted to separate the parsing from the validation, but I haven't had time to work on it. If you want to start the work, I can review it when you're done.

@jsternberg That was me volunteering you, not the other way around ;)
OK, I'll see what I can do. Since there is a workaround (although ugly and confusing) I may not get to this for a bit since its represent a lot of work.

I'm not sure if this is related, but when I added a derivative() node to a batch query, my task simply stopped outputting anything at all.
Here's what I think should work:
batch          |query('SELECT mean("n_containers_stopped") FROM "docker"').period(10s).every(10s).groupBy('host')           |derivative('mean').period(10s).nonNegative()           |alert().message('{{ .Fields }}').warn(lambda: 1 > 0).stateChangesOnly(10s).log('/tmp/docker.log')
However nothing happens. When I remove the derivative node, I begin getting data to my log file every 10 seconds. Thus, I'm forced to use the non_negative_derivative function within my query, which then comes with the burden of the workaround mentioned in this thread.
Is this syntax intended to be supported (aggregate inside and outside of batch query)? Or is there some intricacy around aggregations happening here?

@ElMoselYEE Not likely, the script you posted is invalid. I get this error when I try and define a task.
invalid TICKscript: line 3 char 25: no method or property "period" on *pipeline.DerivativeNode

In other words the |derivative() node does not have the period method, perhaps you meant unit?


quick accent: make the char candidates list customizable, so that arbitrary unicode chars can be added.

Description of the new feature / enhancement
an extra advanced mode, in which the char candidates list( ėéê€ě€)  of a key (such as key-E ), can be easily EDITED/modified. so that i can

add the schwa symbol (ə) to  key-E, and even ,
a CJK char(饿) to key-E
or any other arbitrary unicode symbol ◆▲★  to any key.

Scenario when this would be used?
speedy input of tailored/personalized unicode symbol has always been a headache, quick accent open a door for solving this problem, why not make it more powerful?
I have seen multiple requests for  adding extra symbols to certain key, i need schwa-(ə) add to key-E, but, why not just hand over the choice to power users?
Supporting information
No response

I agree. Customizable character sets (e.g., in the UI or even in a json file) would be a great feature. For example, for romanization (transliteration) of Arabic, there are many different styles that use characters not in quick accent (see here, for example). If it were customizable, the user could add all the missing characters on their own without requiring many updates until all the possible characters are added (I noticed the ḍ character was added in the previous update but many such as ẓ, ṭ, ṣ, ḥ, ʻ and ʼ are missing for the ALA-LC style of transliteration, not to mention others).

Similar requests have been made many times, but they all seem to be left.
#20312


Regarding adding pin_digest(keys) at run time dynamically

@omerlh how we can add dynamic pinning keys i.e. If I am getting pin_digest value from server for x domain how I can use it Because I have already initialized trustkit for different domain y with some static pin_digest.According to this lib we can't initialize trustkit again.Please reply ASAP

You should then wait to initialize TrustKit until you have all the keys.

@TyagiAmar If I am following what you suggest, you are reading the digest from a server x upon app load. If that your case, please notice that you should be careful: An attacker could compromise the request to get the digest, and then be able to override the certificate pinning configuration. That's why dynamic pinning is usually considered a bit more complicated, but possible.

Yes I would recommend not attempting dynamic SSL pinning - it is very difficult to get it right, and very easy to brick your App.

is there any update?


card-image stretches image, possibility for inline-block card?

Working on converting my site from bootstrap to materialize, just a couple of things i would like.
1). A card-inline class for card elements to make it display:inline-block and leave the image sizing alone.
2). The card reveal "title" becomes constricted in width.
3). A class to auto-show side-nav on large screens? (yes i realize that you can show the button on large screens)
4). A class to remove shadows from buttons (or conversely remove the shadows and just tell the user to add z-depth-1 to the button if they want a shadow)
5). maybe tone down the z-index classes a bit, it would be nice to have a little in between in there.
Love the framework. Keep up the good work.

 I think the user should add responsive-img class to the image if they want it to be responsive, otherwise don't touch it.
.card-inline {
    display: inline-block;
}
.card-inline .card-image img {
    position: initial!important;
    top: initial!important;
    left: initial!important;
    right: initial!important;
    bottom: initial!important;
    width: initial!important;
}
.card-inline.small .card-content {
    height: initial!important;
}
And I just thought I would let you know about these methods of centering works every time, centers perfectly, and you dont need a wrapper
.hcenter {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.vcenter {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
.bcenter {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    transform: translateX(-50%);
}

This framework needs to set less default settings, once I got to three all: inital statements i just wrote my own. its cool to have all of those settings easy to get to, but having to reset a whole class just to style it the way that I want gets old quick.

Can you give an example for when card-image stretches an image?
Also there already is a way to remove shadows from elements. Just add the class .z-depth-0

card-image sets the image width to 100%, if the card is wider than the image it stretches. As far as shadows go I got the z-depth-0 part, my real issue with this is that there should be no default shadows. The user should have to set the shadows they want rather than having to unset shadows on everything. It's all good I'm not using this anyways for the reasons stated in my last comment. The framework that I ended up writing basically just divides all of the settings into the "do one thing and do that thing well" diatribe, so my html seems like its full of classes but 1). you can see by looking at the markup what each setting applied to that element is, and 2). there are no defaults for anything. Everything gets set by the user, which is a lot easier than unsetting all of the defaults to be able to customize.

Closed due inactivity


Deploy to Function App: Reported URL is wrong

Azure Function VS Code Extension version: 0.10.0
Using the Visual Studio Code option:

Azure Functions: Deploy to Function App

After my function is successfully deployed, I see the following output in the console:
...

09:18:07 myfunction: Deployment successful.
Deployment to "myfunction" completed.

HTTP Trigger Urls:
HttpTriggerFunction: https://myfunction.azurewebsites.net/api/HttpTriggerFunction

In my particular case, I have a custom route set in function.json
{
  "bindings": [
    {
      "type": "httpTrigger",
      "methods": [
        "get"
      ],
      "authLevel": "anonymous",
      "name": "req",
      "route": "my-route"
    }
  ],
  "scriptFile": "../MyFunction.dll",
  "entryPoint": "MyFunction.HttpTriggerFunction.Run"
}

I also have the routePrefix set in host.json
{
    "http": {
        "routePrefix": ""
    }
}

This means, the reported URL of https://myfunction.azurewebsites.net/api/HttpTriggerFunction is wrong
(it returns a 404)
It should be
https://myfunction.azurewebsites.net/my-route
(which works)

The extension does a POST to a Kudu endpoint:
Kudu URL:
"https://funcappdini.scm.azurewebsites.net/api/functions/URLTesting/listsecrets"
It does not return the correct URL if you use a custom route.
We're (with @snobu) looking into this in Kudu to see why.

There is a PR for the Kudu project.

For the record, the PR is this:
https://github.com/projectkudu/kudu/pull/2821

Closing as duplicate of https://github.com/Microsoft/vscode-azurefunctions/issues/205


fix mod pull issue

About the PR

The PR that did not allow mothroach to pull was made through changing simplemob, I remade it through changing only them and returned the ability to pull things to simplemob.
Why / Balance

Solves this issue.
https://github.com/space-wizards/space-station-14/issues/22465
Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog
:cl:

fix: Fixed the inability of mobs to pull items.

Okay, I found the problem. Now I’ll open a new one, I think it will be better.
And is it normal that Rider swears at the code from EmoGarbage?

just commit it push and reopen this pr

The problem is that I did this PR using Dekstop. But I completely removed it and decided to use Git because I thought the problem was in the program.


Fixes and refactor

compiler.rs successfully gets compiled!
upgrade to LLVM-16
fix some bugs
better error handling (🎵 never gonna panic 🎵)
apply some Clippy lints
fmt

We should consider anyhow

Imagine if we were sponsored by Brilliant, lol


Refine test codes in Tree to clearly describe feature specification

Description:
Currently, test codes of CRDT play an important role in not only testing but also describing feature specifications.
However, due to increased complexity, the codes in Tree are unable to describe them clearly.
Why:
Problem

Vagueness of test names
It is often challenging to identify the purpose of the test via its name at first glance.
In addition, there are various formats of test names. For example, some of them use BDD(Behavior-driven development), but others use another format.

Inconsistency of test code format between Go SDK and JS SDK
JS SDK utilizes a hierarchy of test cases, but Go SDK doesn't.

Lack of clarity of the range definition of Merge and Split operations
Although both Merge and Split operations involve a ranged operation, the definition is not clear for the spec.

Possibility of the existence of more dimensions
We currently use three dimensions to describe the spec, Edit type, Range type, and Node type.
I doubt whether there are more dimensions that are not identified yet.

Solution
1. Define an universal and clear format for the test name
I suggest using BDD with three levels, each of which represents Edit type, Range type, Other dimensions(e.g. Node type, Position).
describe('Concurrent editing, insert and insert', () => {
  describe('In overlapping range', () => {
    it('With element and text At left position', function ({ task }) {

2. Make the format of test code of Go SDK consistent with that of JS SDK
Use Subtests in Go SDK to describe the hierarchy between test cases.
3. Define the exact range of Merge and Split operations
I think both Merge and Split operations can be divided into the Delete operation and the Insert operation.
After breaking down the operation, we can recognize the hidden operation range.
Split
a|b
 ->
a

b

Tree.Edit: Edit(2,2, nil, 1)
Sub-operations: Delete(2,3,nil,0) + Insert(4,4, '
b
', 0)
Actual range: (2,3)

Merge
a

b
 ->
a|b

Tree.Edit: Edit(2,4, nil, 0)
Sub-operations: Delete(3,6,nil,0) + Insert(2,2, 'b', 0)
Actual range: (3,6)

Concerning the exact range of operations, we can categorize them into Range types (e.g. overlapping, contained, side by side).
4. Find out the concealed dimensions
If there are many cases that aren't clearly defined by the current dimensions (Edit type, Range type, and Node type), we should figure out the common patterns and extract them into a new dimension.
Possible Combinations
Possible Edit Types
C: Collapsed, R: Ranged

C + C

Insert + Insert (C + C)

R + C

Delete + Insert (R + C)
Merge + Insert (R + C)
Split + Insert (R + C)

R + R

Delete + Delete (R + R)
Delete + Merge (R + R)
Delete + Split (R + R)
Merge + Merge (R + R)
Merge + Split (R + R)
Split + Split (R + R)

Possible Range Types per Edit Type

C + C

Side by Side

R + C

Side by Side
Contained (R > C)

R + R

Side by Side
Contained (R1 > R2)
Contained (R1 < R2)
Overlapping

Possible Element Types per Edit Type

Split: Element
Merge: Element
Insert: Element, Text
Delete: Element, Text

Overall
There are almost 50 possible cases, but I'm sure there will be additional cases and impossible cases among the below cases.
Therefore, it is better to use the below list as a reference.

Insert + Insert (C + C)

Side by Side

Element - Element
Element - Text
Text - Text

Delete + Insert (R + C)

Side by Side

Element - Element
Element - Text
Text - Text

Contained

Element - Element
Element - Text
Text - Text

Merge + Insert (R + C)

Side by Side

Element - Element
Element - Text

Contained

Element - Element
Element - Text

Split + Insert (R + C)

Side by Side

Element - Element
Element - Text

Side by Side

Element - Element
Element - Text

Delete + Delete (R + R)

Side by Side

Element - Element
Element - Text
Text - Text

Contained

Element - Element
Element - Text
Text - Text

Overlapping

Element - Element
Element - Text
Text - Text

Delete + Merge (R + R)

Side by Side

Element - Element
Text - Element

Contained

Element - Element (Delete > Merge)
Element - Element (Delete < Merge)
Text - Element (Delete < Merge)

Overlapping

Element - Element
Text - Element

Delete + Split (R + R)

Side by Side

Element - Element
Text - Element

Contained

Element - Element
Text - Element

Overlapping

Element - Element
Text - Element

Merge + Merge (R + R)

Side by Side

Element - Element

Contained

Element - Element

Overlapping

Element - Element

Merge + Split (R + R)

Side by Side

Element - Element

Contained

Element - Element

Split + Split (R + R)

Side by Side

Element - Element

Contained

Element - Element

Overlapping

Element - Element

Go SDK: https://github.com/yorkie-team/yorkie/pull/780
JS SDK: https://github.com/yorkie-team/yorkie-js-sdk/pull/750

This was fixed by #780


Fix a missing newline when emitting a warning diagnostic to the console.

Accidentally omitted said newline in #145. This PR restores it. Currently, we use this code path when XCTestScaffold and --enable-experimental-swift-testing are used together.
Checklist:

[x] Code and documentation should follow the style of the Style Guide.
[x] If public symbols are renamed or modified, DocC references should be updated.

@swift-ci please test


Phone number is unique

Version: 1.1.21.beta.0
Describe the bug
2 users cannot log in if both have a null as phone number
Expected behavior
Phone number should accept anyone who does not have a number

I have all the users with null phone numbers and it is working for me.
I suppose this is with SQLSERVER?

Yes, and it's annoying because I give each user a random phone number.

Okay, I will test it more and share my result.
Though the problem is I am not able to test with SQLServer 2019 on my mac.

@jerebtw I have fixed this in #279
It will be part of 1.1.21 [Will be out in next 10 min- build in process]


Add option --total-shards to flutter test command

Description
I can see in test package docs https://pub.dev/packages/test#sharding-tests that there is one param to shard the tests:
pub run test --total-shards 3 --shard-index 0 path/to/test.dart
pub run test --total-shards 3 --shard-index 1 path/to/test.dart
pub run test --total-shards 3 --shard-index 2 path/to/test.dart

And when I try to run this in my project I get:
Could not find package "test". Did you forget to add a dependency?
pub finished with exit code 65

But when I try to run the test command from flutter I can see this:
$ flutter test  --total-shards 3 --shard-index 0  path/to/test.dart
Could not find an option named "total-shards".

Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.

and when I run flutter -h:
$ flutter test -h
Run Flutter unit tests for the current project.

Global options:
-h, --help                  Print this usage information.
-v, --verbose               Noisy logging, including all shell commands executed.
                            If used with --help, shows hidden options.
-d, --device-id             Target device id or name (prefixes allowed).
    --version               Reports the version of this tool.
    --suppress-analytics    Suppress analytics reporting when this command runs.

Usage: flutter test [arguments]
-h, --help                            Print this usage information.
    --[no-]pub                        Whether to run "flutter pub get" before executing this command.
                                      (defaults to on)
    --[no-]null-assertions            Perform additional null assertions on the boundaries of migrated and unmigrated code. This
                                      setting is not currently supported on desktop devices.
    --[no-]track-widget-creation      Track widget creation locations. This enables features such as the widget inspector. This
                                      parameter is only functional in debug mode (i.e. when compiling JIT, not AOT).
                                      (defaults to on)
    --name=<regexp>                   A regular expression matching substrings of the names of tests to run.
    --plain-name=<substring>          A plain-text substring of the names of tests to run.
-t, --tags                            Run only tests associated with tags
-x, --exclude-tags                    Run only tests WITHOUT given tags
    --start-paused                    Start in a paused mode and wait for a debugger to connect.
                                      You must specify a single test file to run, explicitly.
                                      Instructions for connecting with a debugger are printed to the console once the test has started.
    --coverage                        Whether to collect coverage information.
    --merge-coverage                  Whether to merge coverage data with "coverage/lcov.base.info".
                                      Implies collecting coverage data. (Requires lcov)
    --coverage-path                   Where to store coverage information (if coverage is enabled).
                                      (defaults to "coverage/lcov.info")
    --update-goldens                  Whether matchesGoldenFile() calls within your test methods should update the golden files rather
                                      than test for an existing match.
-j, --concurrency=<jobs>              The number of concurrent test processes to run.
                                      (defaults to "10")
    --[no-]test-assets                Whether to build the assets bundle for testing.
                                      Consider using --no-test-assets if assets are not required.
                                      (defaults to on)
    --platform                        The platform to run the unit tests on. Defaults to "tester".
                                      [tester (default), chrome]
    --test-randomize-ordering-seed    The seed to randomize the execution order of test cases.
                                      Must be a 32bit unsigned integer or "random".
                                      If "random", pick a random seed to use.
                                      If not passed, do not randomize test case execution order.

I do see --test-randomize-ordering-seed that is also in the test docs https://pub.dev/packages/test#shuffling-tests.
It looks to me that this feature is missing from flutter itself or maybe I am not looking where I should.
Env
flutter: 1.22.3

dev_dependencies:
  flutter_test:
    sdk: flutter

@danielgomezrico you are looking in the right place, this would be a new feature to provide this option.

I was looking at the same thing. Is there any plan to add this to the flutter test?

I was looking at the same thing. Is there any plan to add this to the flutter test?

I am not away of anyone planning to work on this. I would happily review a PR though :)

@christopherfujino can you give some insights about which files should we look at? 🤓

@danielgomezrico here's where we forward our arguments to the test runner: https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/commands/test.dart#L296


[WIP] Enable Mixed Precision Support

Commits to be reviewed in this PR
[ Property ] Add Tensor Type property in model
This PR enables the tensor type in model property as
"tensor_type=NHWC" or "tensor_type=NCHW". This information goes to
network_grap and layer node & manager.
Then, each layer can get the model tensor type information and it can
be used to request tensor or just using temporal tensor.
Signed-off-by: jijoong.moon<EMAIL_ADDRESS>
[ Mixed Precision ] Support Mixed Precision
This PR enables the Mixed Precision computation.

Add the data_type property in Tensor : FP16, FP32
Memory_Data only handle void *
In Tensor, there were several member function with template
: getAddress() , getData<__fp16>, etc.
Need to implement Blas Interface function

[GTEST] add gtest for tensor unittest in Android
This PR enables the gtest for Android. Especially half precision
test.

Signed-off-by: jijoong.moon<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2245. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

:octocat: cibot: @jijoongmoon, test/unittest/jni/tests/googletest/scripts/common.py does not include Doxygen tags such as @file @brief @author @bug. You must include the Doxygen tags in the source code. Please refer to a Doxygen manual at http://github.com/nnstreamer/TAOS-CI/blob/main/ci/doc/doxygen-documentation.md

:octocat: cibot: @jijoongmoon, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2245-202307130859120.22571206092834-7bf39f655c169b936d17b4cdd7297a8f28bcc7a3/.


feat: set up SNS SMS in us-west-2

Set up SNS text messages in us-west-2, to be able to send text messages with long code numbers ordered through Pinpoint in the us-west-2 region.
This PR:

set SMS preferences, introducing a new variable for spending limit in the us-west-2 region
create log groups where delivery data will be stored by SNS
subscribe these 2 log groups to the Lambda in charge of processing delivery receipts
create SNS alarms in us-west-2 based on what we have in ca-central-1

I'll request spending limits in production and will add the production configuration after this PR has been merged and tested in staging

LGTM

LGTM


Handle special character for value in table

Ok, merged and published as 1.4.2
https://clojars.org/scenari/versions/1.4.2


Update to Swift 4.1

Update to swift 4.1 in reference to this PR

Can't merge this until CI is passing...  Thanks.

I'm going to reject this PR. It should be redone properly.  See the rejected PR from BlueSSLService for reasoning behind the rejection.  In this PR and the one against BlueSSLService there were many totally irrelevant changes made.  Please keep the changes restricted to the minimum required to accomplish what you're trying to do.


Split financing of services

I've paid the last year of Inexor services, all expenses can be viewed at https://opencollective.com/inexorgame/#budget
Now is the time again where I will have to "refresh" our uberspace account so it will run further.
This ticket aims to solve 2 problems

solve financing problems (who should pay what or not)
discuss wether we actually need uberspace

Currently only Inexor stuff runs on our uberspace (everything else has been migrated since Aug/2017). Namely the following services

building and serving the website from git
git-mirror of the wiki
git mirror of grpc-web (disabled because grpc-web is going beta)
aggregator.inexor.org (disabled because nobody uses it currently)
emails

Please let me know how we could resolve this.
For the services:

the website could be done with GitHub pages & Travis
free cronjob services exist for mirroring git repositories
emails will be need to be hosted somewhere..

Since now everything that once costed us money is moved this issue can be closed.


Using with single phase UK (240v) mains power

What changes would i have to make to the firmware (Arduino sketch files) to allow the split phase energy meter to correctly monitor UK 240v single phase mains power.
Im using a 9V AC 240V transformer type power supply and two CT current sensors (SCT-013-000 100A/50mA)
Any advise would be much appreciated

Hi
Yes im using the latest version from your repo :)
The EMONESP web interface shows V1 as 122v and V2 as 122v and the total voltage shows 244v, is this correct (voltage gain field = 4485). The strange thing is if i set the freq in the web interface or in energy_meter.h to 389 (50hz value) then the total voltage value is the same as V1 (122v). how to i get the v1 value to display the correct voltage (ie 244v) as the "Voltage gain" value will not go above 65535 and ive calculated i need to have a value of  (real v=244v / v1=122v * V-Gain = 38730) 77460
Thank you in advance

Hi again
That worked a treat, Voltage now shows correct 243v. one quick thing, what do i need to change to get the following setup for watts data.
Watt1
Watt2
Total Watts (Watt1)
my setup is a home with a office. a single phase 240v mains power to house which also supplies power to the office at the back, (Single power distribution board with separate circuit for office)
Thanks in advance

That sorted the EMONESP web interface, :)
I think for me it may be a better to display and track the two CT sensors independently on EMONESP and EMONCMS , make CT1 and CT2  independent (your thoughts ?)
Values in EMONESP Web and values sent to EMONCMS
Circuit1:
CT1
W1
PF1
Circuit2
CT2
W2
PF2
I  think energy_meter.cpp/h and circuitsetup_split-phase.json would need to be changed but i may be wrong (newbie to Arduino etc)
Thanks in advance
Also ive uploaded my split phase energy monitor to ESP32 adapter board to easyeda if anyone wants to use it for a 30pin ESP32S & 0.96" OLED display
https://easyeda.com/motechsolutions/Split-Phase-Energy-Monitor-ESP32-Adapter

I think ive sorted circuitsetup_split-phase.json
`{
"name": "Single Phase Energy Meter",
"category": "CircuitSetup",
"group": "Energy Monitoring",
"description": "CircuitSetup Split Single Phase Energy Meter",
"inputs": [
{
"name": "CT1",
"description": "Current CT1",
"processList": [
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "Current CT1" }
}
]
},
{
"name": "CT2",
"description": "Current CT2",
"processList": [
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "Current CT2" }
}
]
},
{
"name": "PF",
"description": "Power Factor",
"processList": [
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "Power Factor" }
}
]
},
{
"name": "temp",
"description": "Temp",
"processList": [
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "Temp" }
}
]
},
{
"name": "totV",
"description": "Voltage",
"processList": [
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "Voltage" }
}
]
},
{
"name": "W2",
"description": "Watts CT2",
"processList": [
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "Watts CT2" }
}
]
},
{
"name": "W1",
"description": "Watts CT1",
"processList": [
{
"process": "log_to_feed",
"arguments": {"type": "ProcessArg::FEEDID", "value": "Watts CT1" }
},
{
"process": "power_to_kwh",
"arguments": {"type": "ProcessArg::FEEDID", "value": "CT1 kWh" }
}
]
}
],
"feeds": [
    {
        "name": "Current CT1",
        "type": "DataType::REALTIME",
        "engine": "Engine::PHPFINA",
        "interval": "10",
        "unit": "A"
    },
    {
        "name": "Current CT2",
        "type": "DataType::REALTIME",
        "engine": "Engine::PHPFINA",
        "interval": "10",
        "unit": "A"
    },
    {
        "name": "Voltage",
        "type": "DataType::REALTIME",
        "engine": "Engine::PHPFINA",
        "interval": "10",
        "unit": "V"
    },
	{
        "name": "Watts CT1",
        "type": "DataType::REALTIME",
        "engine": "Engine::PHPFINA",
        "interval": "10",
        "unit": "W"
    },
	{
        "name": "Watts CT2",
        "type": "DataType::REALTIME",
        "engine": "Engine::PHPFINA",
        "interval": "10",
        "unit": "W"
    },
	{
        "name": "Power Factor",
        "type": "DataType::REALTIME",
        "engine": "Engine::PHPFINA",
        "interval": "10",
        "unit": ""
    },
	{
        "name": "Temp",
        "type": "DataType::REALTIME",
        "engine": "Engine::PHPFINA",
        "interval": "10",
        "unit": "°C"
    },
	{
        "name": "CT1 kWh",
        "type": "DataType::REALTIME",
        "engine": "Engine::PHPFINA",
        "interval": "10",
        "unit": "kWh"
    }
]

}
`

You can edit the device json file, but you should be able to just change or add the feeds too. When they export from EmonESP, they should appear in EmonCMS anyway.
Thanks for sharing the EasyEDA board as well. That looks good! You may need some extra power for the display though. If wifi on the ESP32 has trouble staying connected and freezes, that may be why. I would recommend having a separate 3v3 input to power the diplay and/or board.

After reading this post (https://community.hiveeyes.org/t/power-supply-for-the-esp32/1859/7)
Ive added a 47uF tantalum capacitor and a 100uF low-ESR electrolytic capacitor to the 3.3v rail next to the ESP32 3.3v pin, on testing with a scope and DVM the current pull from the ESP32 and OLed is max 175ma and the 3.3v power rail looks more stable but i need to now soak test my design.
Even if i dont use the OLed display the extra capacitors can only help the ESP32 power rail.
Ive updated my EasyEDA design so yourself and others can see the new adapter PCB design
Your thoughts?

Those caps will definitely help with the spikes. By default if a connection is lost, the esp will go into AP mode, which I've found uses the most power starting up, and then staying up.
FYI, The energy meter board has a 22uf cap on the 3v3 output from the SMPS.
If you need to reduce the power any more you can turn down the esp clock to 80mhz when EmonESP is compiled, or turn off going into AP mode when a connection is lost in web_server.cpp

Curious if you've got this up and running yet?

Hi John
Yes working great, the first CT monitors my house and the second CT monitors my office.

Very nice! I'm sure some other Europeans would benefit from your calibration settings with that AC Transformer. Do you mind sharing?

No problem at all,
AC transformer = https://www.ebay.co.uk/itm/9V-AC-AC-Adaptor-Transformer-Power-Supply-5-5mm-UK-Plug/312408988666?epid=1342924577&hash=item48bd06dbfa:g:eiIAAOSwVH9cKlL5
Calibration Settings
Voltage = 38990
CT1 & CT2 = 25758
Freq = 389
CT Gain = 21


Missing completions for code action kinds

Testing #194077
I am missing completions for code action kinds when authoring the notebook.codeActionsOnSave setting. As soon as a provider is register we do know its kinds and we can update the JSON schema accordingly. This will greatly improve the configuration experience because today configuration is manual/magic. You need to rely on well known or documented code action kinds and copy-paste them
Steps

use lastest GHINB from joh/civic-tahr
open a GHI notebook
configure notebook code actions for saving

Duplicate of #161284


Wake up threads more aggressively if there is known work to do

Upon investigating https://github.com/bevyengine/bevy/issues/6941, we've found that thread wakeup times have been a significant bottleneck when spinning up large batches of tasks, like those mentioned in #91.
Would it be possible to more aggressively wake up threads (i.e. 2+ at a time), if and only if we know there is sufficient work for all of them? Whenever a thread is stealing work from another, it has an approximation of how much remaining work is in both threads, so it may be reasonable to weigh the potential contention against the cost of sequentially context switches as threads wake up.

async-executor is generally intended to be a simple reference executor that shows how to use async-task. While I welcome performance optimizations, in this crate I want to avoid chasing diminishing returns as it would significantly complicate the implementation.
I've been working on an alternative executor implementation that implements some of the crazier strategies, however. If Bevy wants this I can prioritize the work

I'd be interested in this alternative executor. I'm currently experimenting with using async-task and rayon together to try to improve task start latency and overall compute throughput, while also supporting async tasks on the same thread pool (see https://github.com/bevyengine/bevy/pull/11995). It does seem like async_executor's idle CPU usage is lower, owing to the use of parking, and the contention on the executor as a whole seems higher with rayon. I'm wondering if there's potentially a sweet spot somewhere in between.

I've had more time to think about it, and I've changed my mind. I'm willing to do this work for async-executor to make it faster, as many projects use it an a rising tide raises all boats. So if we want to work on integrating new features into this executor I would support it.


The reference to RHEL/Centos are outdated... should I use the fedora install?

On the downloadpage a reference is made to
The ELGIS repository for RHEL, CentOS, Scientific Linux
It is marked as "Legacy".
I wonder if it is safe to install the fedora packages instead.

I wonder if it is safe to install the fedora packages instead.

@jringoot if you not yet got your answer, you better ask on qgis user mailing list (see support channels).
This repository is actually dedicated to issues related to the main website of QGIS project.

Maybe this could be closed now.

Indeed, no more rhel there. Thanks @agiudiceandrea


.so file for 64 bit architecture(arm64-v8a).

Hi,
Any idea how can we generate the libraries for arm64-v8a chipsets?

@rakeshpalivela No idea, for that, please contact the libsodium mailing list.


Controller does not start on RaspberryPI (unable to open the Badger database)

Running flux (0.6.1) in a cluster using two RasberryPI.
All but image-reflector-controller starts up fine.
Image-reflector-controller fails to allocate memory for the Badger database.
Logs:
kubectl -n flux-system logs image-reflector-controller-6bbbcc5c76-ttwcq
{"level":"info","ts":"2021-01-16T10:10:43.238Z","logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":":8080"}
badger 2021/01/16 10:10:43 INFO: All 0 tables opened in 0s
{"level":"error","ts":"2021-01-16T10:10:43.302Z","logger":"setup","msg":"unable to open the Badger database","error":"Mmap value log file. Path=/data/000000.vlog. Error=cannot allocate memory"}

Flux-system pods
kubectl get pods -n flux-system -owide
NAME                                          READY   STATUS             RESTARTS   AGE   IP           NODE   NOMINATED NODE   READINESS GATES
source-controller-bb458c944-kj76r             1/1     Running            0          15h   <IP_ADDRESS>   rpi1   <none>           <none>
helm-controller-77c9c759fb-z5f95              1/1     Running            10         15h   <IP_ADDRESS>   rpi2   <none>           <none>
notification-controller-6fbbc586b7-4kkff      1/1     Running            10         15h   <IP_ADDRESS>   rpi2   <none>           <none>
kustomize-controller-64b894fb67-8fnkq         1/1     Running            10         15h   <IP_ADDRESS>   rpi2   <none>           <none>
image-automation-controller-cd59d8b74-hh82w   1/1     Running            10         15h   <IP_ADDRESS>   rpi2   <none>           <none>
image-reflector-controller-5d98f74bc-6sxdr    0/1     CrashLoopBackOff   7647       27d   <IP_ADDRESS>   rpi2   <none>           <none>
image-reflector-controller-6bbbcc5c76-ttwcq   0/1     CrashLoopBackOff   186        15h   <IP_ADDRESS>   rpi2   <none>           <none>

Flux:
flux --version flux version 0.6.1
Cluster memory/cpus
kubectl top node
NAME   CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
rpi1   712m         17%    793Mi           81%
rpi2   491m         12%    619Mi           63%

Raspberry PI details:
uname -a
Linux rpi1 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux

uname -a
Linux rpi2 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux

Ref: https://github.com/dgraph-io/badger/issues/1229

Ref: https://github.com/dgraph-io/badger/issues/1229

@bjornmagnusson can you please test the new release with:
kubectl -n flux-system set image deployment/image-reflector-controller manager=ghcr.io/fluxcd/image-reflector-controller:v0.3.0

@bjornmagnusson can you please test the new release with:
kubectl -n flux-system set image deployment/image-reflector-controller manager=ghcr.io/fluxcd/image-reflector-controller:v0.3.0

@stefanprodan Tested it just now, but unfortunately it still does not work. However there are a bit more information now.
kubectl -n flux-system logs image-reflector-controller-d5ffcf8b7-m8mx8
{"level":"info","ts":"2021-01-18T21:21:34.362Z","logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":":8080"}
badger 2021/01/18 21:21:34 INFO: All 0 tables opened in 0s
badger 2021/01/18 21:21:34 INFO: Discard stats nextEmptySlot: 0
badger 2021/01/18 21:21:34 INFO: Set nextTxnTs to 0
badger 2021/01/18 21:21:34 ERROR: Received err: Open existing file: "/data/000001.vlog" error: while opening file: /data/000001.vlog error: cannot allocate memory
while mmapping /data/000001.vlog with size:<PHONE_NUMBER>
github.com/dgraph-io/ristretto/z.OpenMmapFileUsing
/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.4-0.20201224172411-e860a6c48e8a/z/file.go:59
github.com/dgraph-io/ristretto/z.OpenMmapFile
/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.4-0.20201224172411-e860a6c48e8a/z/file.go:86
github.com/dgraph-io/badger/v3.(*logFile).open
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210118150219-63f09c34dec1/memtable.go:556
github.com/dgraph-io/badger/v3.(*valueLog).open
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210118150219-63f09c34dec1/value.go:581
github.com/dgraph-io/badger/v3.Open
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210118150219-63f09c34dec1/db.go:334
main.main
/workspace/main.go:122
runtime.main
/usr/local/go/src/runtime/proc.go:204
runtime.goexit
/usr/local/go/src/runtime/asm_arm.s:857. Cleaning up...

@stefanprodan Tested it just now, but unfortunately it still does not work. However there are a bit more information now.
kubectl -n flux-system logs image-reflector-controller-d5ffcf8b7-m8mx8
{"level":"info","ts":"2021-01-18T21:21:34.362Z","logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":":8080"}
badger 2021/01/18 21:21:34 INFO: All 0 tables opened in 0s
badger 2021/01/18 21:21:34 INFO: Discard stats nextEmptySlot: 0
badger 2021/01/18 21:21:34 INFO: Set nextTxnTs to 0
badger 2021/01/18 21:21:34 ERROR: Received err: Open existing file: "/data/000001.vlog" error: while opening file: /data/000001.vlog error: cannot allocate memory
while mmapping /data/000001.vlog with size:<PHONE_NUMBER>
github.com/dgraph-io/ristretto/z.OpenMmapFileUsing
/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.4-0.20201224172411-e860a6c48e8a/z/file.go:59
github.com/dgraph-io/ristretto/z.OpenMmapFile
/go/pkg/mod/github.com/dgraph-io/ristretto@v0.0.4-0.20201224172411-e860a6c48e8a/z/file.go:86
github.com/dgraph-io/badger/v3.(*logFile).open
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210118150219-63f09c34dec1/memtable.go:556
github.com/dgraph-io/badger/v3.(*valueLog).open
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210118150219-63f09c34dec1/value.go:581
github.com/dgraph-io/badger/v3.Open
/go/pkg/mod/github.com/dgraph-io/badger/v3@v3.0.0-20210118150219-63f09c34dec1/db.go:334
main.main
/workspace/main.go:122
runtime.main
/usr/local/go/src/runtime/proc.go:204
runtime.goexit
/usr/local/go/src/runtime/asm_arm.s:857. Cleaning up...

Ok that's helpful thanks!
So by default Badger wants 2GB of RAM, @squaremo should we should look into Badger settings and set it to 200MB?

Ok that's helpful thanks!
So by default Badger wants 2GB of RAM, @squaremo should we should look into Badger settings and set it to 200MB?

Or maybe even make it configurable? I see there's also an option to use FILEIO mode instead of mmap, might make sense to be able to enable that for tiny machines.

Or maybe even make it configurable? I see there's also an option to use FILEIO mode instead of mmap, might make sense to be able to enable that for tiny machines.

@relu that option is gone from v3 or I haven't looked hard enough 🙃

@relu that option is gone from v3 or I haven't looked hard enough 🙃

Indeed, it seems to be documented here and looks like it's outdated. I wasn't able to find any references related to that in the v3 codebase. Controlling the size is the only option. :man_shrugging:

Indeed, it seems to be documented here and looks like it's outdated. I wasn't able to find any references related to that in the v3 codebase. Controlling the size is the only option. :man_shrugging:

In Flux v1, the tag storage max memory is set to 512MB https://github.com/fluxcd/flux/blob/master/deploy/memcache-dep.yaml#L26 I think we should do the same here as a controller flag, I guess it would work on RasberryPI.

In Flux v1, the tag storage max memory is set to 512MB https://github.com/fluxcd/flux/blob/master/deploy/memcache-dep.yaml#L26 I think we should do the same here as a controller flag, I guess it would work on RasberryPI.

We can certainly give a more modest allocation -- I don't know what the reasonable values are for the value log, but on the basis that it's the storage for the values, the same size as what we tend to recommend for memcached seems OK.

We can certainly give a more modest allocation -- I don't know what the reasonable values are for the value log, but on the basis that it's the storage for the values, the same size as what we tend to recommend for memcached seems OK.


Neovim 0.6.1 spell checking not working

I updated to 0.6.1 and I happened to notice that I no longer see any indication of misspellings when writing comments in my rust codebase. This same configuration was working fine with neovim 0.5. I didn't see any errors in the logs, how would I debug to understand what is causing the failure?

Do you have set spell set?
What is the output of :syntax?

Also, #55 might fix this.

That update + set spell seems to have fixed it, thanks!


feat: refactored ILSM to config min hellos number before going up (LIVENESS_MIN_HELLOS_UP)

Closes #106
Summary

See updated changelog file
The rational to have LIVENESS_MIN_HELLOS_UP = 2 is to increase to have at least two hellos before considering up the interface liveness state machine, just so it has a bit extra room to breath not to be closely with a dead down event (which no longer is a problem since the race has been fixed). This also helps with a similar hysteresis like topology has with the link up timer. So, by default it didn't increase it much.

Local Tests
Same as repoted on https://github.com/kytos-ng/topology/pull/227
End-to-End Tests
Same as repoted on https://github.com/kytos-ng/topology/pull/227

Great to have this feature of the minimal number of HELLOs to consider the interface as alive. For the future we can even discuss the default value to be 5, to match the LINK_UP_WAIT on the topology, please let me know if you don't think it is a good idea.

Much appreciated your review @italovalcy, yes, it can be increased. I tried to also minimize that to the minimum now, just so e2e tests wouldn't have to increase their time sleep values too, and since the value that has been used in prod and tested was low-ish I went for it. I captured in this new issue here https://github.com/kytos-ng/of_lldp/issues/109 for us to continue the discussion and set a higher value in the future once we can also explore it for longer. I expect both to work well since status reason and its hook is integrated and will respect the notifications accordingly.


Particl support

Also added new XBridge wallet connector that need to be reviewed as well.
PR for C++ connector implementation https://github.com/blocknetdx/blocknet/pull/520

@codewer  you need to update both manifest.json and manifest-latest.json
Crazy, but true!

@walkjivefly, done


VSCode extension cannot highlight the last attributify class of tag in monorepo

UnoCSS version
0.52.2
Describe the bug
While using pnpm monorepo, VScode extension cannot recognize the last className (attributify) in the tag.
In short,

This only happens when open monorepo's root folder as vscode workspace,
it works when open client folder directly.
There is a related issue #2603. So I did creating a uno.config.js file under the root folder.
Reproduction
Repo: https://github.com/CatsJuice/mir-unocss-vscode-attr-last-bug
Clone repo, install deps and open root folder in vscode, look into packages/client/src/App.vue
System Info

Silicon: Apple M1 Pro
OS: macOS Sonoma 14.0 Beta2

Validations

[X] Read the Contributing Guidelines.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

This should already been fixed


List All Features

What does this library do at this point?

Ciao, here the documentation about perfume.start() and perfume.end().
https://github.com/Zizzamia/perfume.js/tree/v0.2.2#start-measuring
Next methods coming up are: perfume.endPaint, perfume.endPaint.
And the option to enable Google Analytics.


API HTML tables should be in a table-responsive div

Also, the div should have another class name so the table can be styled by end users

Actually never mind the end users, they can add a div with a name before embedding it. We just need the responsive tables for showing them on data.gg


legend how-to

Hi. I'm just migrating to the v2 beta because of #592. I'm trying to figure out how to create a legend but as your beta docs doesn't provide an example anymore I have no clue. Here's my JSFiddle showing an excerpt of my code. Thanks!

@dylmye you can use generateLegend to generate a legend similar to v1. Alternatively, take a look at #1750

I looked at #1750 and copied the global options, then added it to the JSFiddle. Here's my "legend".

See here

@dylmye did you attach a new built version of chart.js? Since that PR hasn't been merged yet, you won't have the code to build the legend yet.

Ah right. I'll try the generateLegend method. Thanks!

Closed by<PHONE_NUMBER>1907797f341a5db7c4b7f47887b18b


Avoid native promises to support node 0.10

Saw this error in a PouchDB travis job:
/home/travis/build/pouchdb/pouchdb/node_modules/add-cors-to-couchdb/node_modules/node-fetch/index.js:40
        throw new Error('native promise missing, set Fetch.Promise to your favorite
              ^
Error: native promise missing, set Fetch.Promise to your favorite alternative
    at new Fetch (/home/travis/build/pouchdb/pouchdb/node_modules/add-cors-to-couchdb/node_modules/node-fetch/index.js:40:9)
    at Fetch (/home/travis/build/pouchdb/pouchdb/node_modules/add-cors-to-couchdb/node_modules/node-fetch/index.js:36:10)
    at addCors (/home/travis/build/pouchdb/pouchdb/node_modules/add-cors-to-couchdb/index.js:74:10)
    at Object.<anonymous> (/home/travis/build/pouchdb/pouchdb/node_modules/add-cors-to-couchdb/bin.js:27:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)

So apparently the fix is to set global.Promise to use a promise shim (in our case, lie) before we use node-fetch.

First-timer instructions:

In index.js, set global.Promise conditionally to use lie in the case where it's not already set. This will ensure that native promises are used in Node 0.12+ but a fallback is use in Node 0.10
In .travis.yml, add a Travis test to run in Node 0.10 to verify that the fix works. To do this, you'll need to set up a Travis matrix; there is a pretty good example in the PouchDB .travis file about how to do this. Testing in both Node stable and 0.10 is fine; no need to test everything in between. You can keep re-submitting a PR until the PR passes in Travis.

Related issue: https://github.com/pouchdb/pouchdb/pull/4985#issuecomment-203375310

How to solve this issue? Could you provide the updated version?

I created this issue intending for first-timers to solve it. It's fairly easy to solve - you just need to define a global.Promise in case it's not available.

Hi! I can't follow how to solve this issue - can u help with a short how-to? THX!

if (!global.Promise) {
  global.Promise = require('lie')
}

I think I'll just fix this; it's been half a year

Hah, turns out the fetch library we're using doesn't support Node 0.10 so well. So unfortunately this fix isn't even possible. Looks like we only support Node 4 and above. :/
test #1 "./bin.js http://<IP_ADDRESS>:3000" failed:
	expected "success"
	got "{ [FetchError: request to http://<IP_ADDRESS>:3000/_config/cors/headers failed, reason: socket hang up]\n  name: 'FetchError',\n  message: 'request to http://<IP_ADDRESS>:3000/_config/cors/headers failed, reason: socket hang up',\n  type: 'system',\n  errno: 'ECONNRESET',\n  code: 'ECONNRESET' }"
test #2 "curl http://<IP_ADDRESS>:3000/_config/cors/credentials" failed:
	expected ""true""
	got ""false""


Log archive size when downloading new SDK

Fails

:no_entry_sign:

Sources/carton/Toolchain/ToolchainManagement.swift#L210 - Function body should span 50 lines or less excluding comments and whitespace: currently spans 53 lines (function_body_length)

  Generated by :no_entry_sign: Danger Swift against 6bf1463ff73990c3c32c6f9bedbf379903d098b5


Expose Portuguese as a localization option

Fixes UIORG-113

No, nu-uh, nope. I don't want all that new work from master, just the change to Locale.js adding Portuguese. Branched off the wrong commit. I'll try again.


Reflect 5.8.5 on 5.9

I skipped version bump step: https://github.com/crate/distribute/issues/713#issuecomment-2441578787
so no 5.8.6 file


Extensions taking a while to load

VSCode Version: Code 1.18.1 (929bacba01ef658b873545e26034d1a8067445e9, 2017-11-16T18:32:36.023Z)
OS Version: Windows_NT x64 10.0.16299
Extensions:

Extension
Author (truncated)
Version

language-haskell
jus
2.4.0

python
ms-
0.8.0

haskelly
UCL
0.4.27

Steps to Reproduce:

Open VS Code with several extensions already installed, and several files open that the extensions operate on (e.g. .py file for the Python extensions)

Issue:
The toolbar at the bottom -- which would normally say, e.g. "Python 2.7 64-bit" -- does not contain any of the extensions' buttons until after ~1 minute.

@jrieken What are the steps to profile the extension host ?

With latest insiders this https://github.com/Microsoft/vscode/wiki/Performance-Issues#profile-startup, otherwise this https://github.com/Microsoft/vscode/wiki/Performance-Issues#profile-the-extension-process but with code --inspect-brk-extensions=9333 instead of --inspect-extensions

@zbs Since very recently, we have a way to profile the extension host start-up sequence.

Please install the VS Code Insiders version
Please install the same 3 extensions over there
Follow these steps: https://github.com/Microsoft/vscode/wiki/Performance-Issues#profile-the-extension-process
Attach CPU profile of extension host.


Add License

Currently Peep is unlicensed even though mix.exs mentions Apache 2.0. It would be nice if the license would be part of the repository.

Good catch! Fixed with https://github.com/rkallos/peep/commit/8cdd46025797b5411664c415b002834d4aaebdb6


Possible discrepancy in path of files of gitops/ inside ./ckcp/run.sh

Getting a file doesn't exist error while running ./ckcp/run.sh.

To recreate the error:
Do a ./ckckp/run.sh

Possible fixes

I can see this was due to this from last commit only.
Just changing that will do it.
@bnallapeta, or am I missing something while running run.sh.

Getting a file doesn't exist error while running ./ckcp/run.sh.

To recreate the error:
Do a ./ckckp/run.sh
Possible fixes

I can see this was due to this from last commit only.
Just changing that will do it.
@bnallapeta, or am I missing something while running run.sh.

@RAMESSESII2 Yes, I had actually commented this on the PR. Guess it was missed. Will fix this in the next PR.

Fixed with https://github.com/openshift-pipelines/pipelines-service/pull/30


[#46] Fix floorplan URL selector

Fix issue reported that finds floorplans now require a different selector

Apologies for the delay! I tried running this version and the old version on a test url and neither returned any floorplan URLs. Are you able to provide a sample URL for testing which demonstrates the new version downloading anything?


Define "Core" conformance

Updates https://github.com/kubernetes/enhancements/blob/master/keps/sig-windows/2578-windows-conformance/README.md so that "Core" has its own section
Make sure it passes in some environment
cc @tzifudzi

/assign @tzifudzi

/remove-lifecycle stale


Office Design Language

I'm submitting a feature request

Language:
TypeScript 2.2

Expected/desired behavior:
I'd like to see Office Design Language supported. I've seen "Microsoft" and "Windows" references elsewhere in this project. I think the Office Design Language is slightly distinct from those, being more specific to certain types of applications. It also has a very active set of projects including one for just the core styling, grid, etc.
I'm looking for some (probably more than some :)) guidance on how to go about this. Where do I start? What should my first steps be, since I don't think anything exists for this yet in Aurelia UX? Can you give me some kind of "Roadmap to Hello World"-type guidance (list of tasks, types of work needed, etc.)? I want to be sure not to bite off too much -- a walking skeleton with the right fonts would be a good first milestone, and then maybe I can add in a button as a milestone after that?

What is the motivation / use case for changing the behavior?
I'm developing an application wherein I'd like to combine the Office Design Language and Aurelia.

At Microsoft I've connected with the Microsoft Web Framework team and shown them Aurelia and started talking about possibilities. The MWF team makes a set of components that match Microsoft's official design language and syncs with updates in design, such as Project Neon.
I haven't connected the the Office Fabric team yet. I'll try to find the right person to talk to about that.
If you would like to help build something like this into Aurelia UX, we would certainly welcome the contribution. The place to start would be exploring some of our core primitives such as colors, designs and platforms. After that, take a look at how a few of our existing components are put together so you get the feel. Currently, we only have one design language in UX: Material Design. We'll be adding iOS next. As part of that we'll be adding some more infrastructure that allows loading different CSS and different HTML based on the design language. Once that's in place, you would take one of our existing components and determine if you can use the same HTML. If so, then you would look at the CSS and determine if you can use that by simply changing variables or if you need a new CSS file. Based on those choices, you would do one or the other and then you would be done :)

Thanks @EisenbergEffect! It sounds like I need to wait for that infrastructure to be in place before I can really contribute. That'll actually give me a chance to work with the Office Fabric and/or MWF components for now and just figure out how to data-bind them with Aurelia. That's probably enough of a challenge for right now.

Stale for almost a year
but promising

@Alexander-Taran I've tried to get Aurelia working with the Office UI Fabric React components (since I figured biting off an actual Aurelia UX-native rebuild of the components was taking on too much). Unfortunately that's hitting some roadblocks (https://discourse.aurelia.io/t/react-integration/544/17).
I would love to see Aurelia UX support the Microsoft (Windows and/or Office) design language.

@EisenbergEffect If I have understood correctly, the Microsoft Web Framework is only intended to be used for Microsoft's own products and brand; it's not being published as a design standard. I've seen some similar not-for-general-use clauses in the terms around Office UI Fabric. Do the people you've talked to see that differently, or do they really not want people to be able to use their UI conventions the way that Apple and Google, for example, have been promoting their design languages?

@LarsKemmann I attempted building an Aurelia app with Office UI Fabric 2 years ago but ended up going with a hand-rolled style. It does seem to be intended for use with Office products. To quote the front page:

The official front-end framework for building experiences that fit seamlessly into Office and Office 365

To be fair, I'm not sure if you'd even want to have an arbitrary app look like it's an Office product. Neat as it can look, you give up your own brand identity.
That doesn't mean there's no place for Office UI Fabric in Aurelia UX. Having worked at a large Microsoft partner that built custom solutions on top of SharePoint and the likes, I've seen a fairly large demand in businesses to "drag and drop" their own internal LOB UI's together. For example, managers at customer service departments love having the ability to create wizards that capture domain knowledge, so they can hire cheaper people who just click through them based on answers they get. They do this at Microsoft too.
Use cases like that is where Aurelia UX would really shine if it had a more desktop-oriented design option as opposed to the mobile-oriented Material Design. For example I could see it being integrated into SharePoint Web Parts and you could drag-and-drop pages/forms/wizards together in no-time.
There's also a huge market in add-ons and customizations for Dynamics CRM and Power BI, which are all connected to the Office 365 cloud. There are many service providers for whom making those customizations is their core business (I have also done this on occasion), and Aurelia UX components with Office UI Fabric could save huge amounts of time there.
Conclusion: whether or not MWF and Office UI Fabric are intended to be used with Microsoft products exclusively, isn't really relevant for the question whether it can be useful or not.
That said, it does make a difference in how it's "promoted" with Aurelia UX because it narrows down (or perhaps opens up?) the target audience to Microsoft B2B.

Things have changed inside Microsoft, last time I talked to the contacts I had. MWF was changing and there was new work on https://fluentweb.com/ However, the future of both of these projects seems uncertain. As is typical at Microsoft, employees that are lower on the chain want to do these things but people higher in the chain frequently don't want to invest. It's hard to say what will happen.

@EisenbergEffect Thanks for your insight. I hope we'll get some more clarity around Build.

@EisenbergEffect This sounds really promising...
https://github.com/OfficeDev/office-ui-fabric-core/issues/852#issuecomment-380170300
Note that it would have to be just the Core pieces (styling etc.) that we pull into Aurelia UX, because the React components aren't compatible (once you start to do any kind of nesting) as we recently discovered. But that should be fine since we want to reuse the control behaviors that are defined in this project, I would think.


The output is showing wrong values for slice capacity(cap)

Context: https://tour.golang.org/moretypes/15
Change the title above to describe your issue and add your feedback here, including code if necessary

No, this is correct. The runtime is free to allocate more capacity than needed to keep the amortized time to O(1).
Closing here.


[Icon Request] V Programming Language

Website: https://vlang.io/
File extensions: *.v

Closed with https://github.com/material-extensions/vscode-material-icon-theme/pull/1009.


command not found: notion-enhancer

describe the bug
When I run a command like notion-enhancer apply --help it says "zsh: command not found: notion-enhancer"
expected behaviour
I would expect it to work as described in the read-me
platform
macOS
This is my first time installing Notion Enhancer and I ran though the install steps and everything seemed successful. It also shows files inside /Applications/Notion.app/Contents/Resources However I don't see any indication that Notion Enhancer is installed in Notion and the command line items don't run.

Well now it's working. Not sure what I did differently tonight, but it's working. Yea. :)


Desktop App Code Compliation Issue

Hello, I tried to use your code in order to setup a desktop app version of the Claude AI, I really appreciate you setting that up. But I’m having trouble making it work (maybe its my computer, maybe its me, maybe I don’t have the write stuff downloaded to make this work, idk). I would gladly appreciate a hand on implementing the desktop app on my computer. Are you available sometime later on to meetup regarding this?
Thx, Akhil

Could you kindly upload a screenshot depicting the occurrence of the error? This would facilitate a more precise identification and resolution of the issue at hand.

Hello, I tried to use your code in order to setup a desktop app version of the Claude AI, I really appreciate you setting that up. But I’m having trouble making it work (maybe its my computer, maybe its me, maybe I don’t have the write stuff downloaded to make this work, idk). I would gladly appreciate a hand on implementing the desktop app on my computer. Are you available sometime later on to meetup regarding this?
Thx, Akhil

Uploaded👍
From: Zixiang @.>
Sent: Saturday, October 7, 2023 8:50 PM
To: @.>
Cc: @.>; @.>
Subject: Re: [Karenina-na/Claude-Desktop] Desktop App Code Compliation Issue (Issue #19)
Could you kindly upload a screenshot depicting the occurrence of the error? This would facilitate a more precise identification and resolution of the issue at hand.
Hello, I tried to use your code in order to setup a desktop app version of the Claude AI, I really appreciate you setting that up. But I’m having trouble making it work (maybe its my computer, maybe its me, maybe I don’t have the write stuff downloaded to make this work, idk). I would gladly appreciate a hand on implementing the desktop app on my computer. Are you available sometime later on to meetup regarding this?
Thx, Akhil
—
Reply to this email directly, view it on GitHubhttps://github.com/Karenina-na/Claude-Desktop/issues/19#issuecomment-1751890421, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AU3S2NGKSWWVAVL7OYAW5VDX6IBHXAVCNFSM6AAAAAA5XCF5TCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRHA4TANBSGE.
You are receiving this because you authored the thread.Message ID: @.***>

Upon executing the command npm run dev, an Electron window emerges instead of accessing localhost through the browser. Could you kindly inspect the displayed content by navigating to Preferences -> Control Center within the prompted Electron window?
This represents the current state of my window.

It remains on this blank screen, even after a long period of time:

It remains on this blank screen, even after a long period of time:

May I inquire if you are using any proxy, such as a VPN? It's possible that the port is being blocked, leading to this situation.

I just run the command npm run dev.

Yes, I followed all the steps. Sometimes the app acts a little slow.

It’s very strange, I have never encountered this kind of situation, I guess it might be a problem with your computer port, you can search on StackOverflow.


Help & Documentation can be clipped

This shows it being clipped by my bookmarks bar because it was displayed above and not below Help & Documentation:

Thanks for the screenshot, Brian!
PR out! https://github.com/chanzuckerberg/single-cell-data-portal/pull/1528
NOTE: I actually can't reproduce this with different window sizes, but the PR forces the popper to open at the bottom, which should be a safe assumption 👍
Thank you!

Ahh thanks, Brian! Can reproduce now too and can confirm the fix works 🙆♂ Thank you!


Event image looks distorted after selection

To Reproduce
Steps to reproduce the behavior:

Go to Explore > Regions.
Join a region, if not joined.
Tap + to create a new event.
Go through the screen.
Once on Step 5, tap + Add picture.
Select a photo and a portrait crop.

Current behavior
Observe the image looks distorted.
Expected behavior
Image is expected to maintain its aspect ratio.
Video
https://user-images.githubusercontent.com/1284706/172507398-fb271093-f22d-4c26-a563-3fca0627a3a8.mp4
Platform & App Version

Both
release/2.9.0

✅ Test Case 1

Go to Explore > Regions.
Join a region, if not joined.
Tap + to create a new event.
Go through the screen.
Once on Step 5, tap + Add picture.
Select a photo and a portrait crop.
Observe the image maintain its aspect ratio.


Hide our misuses of contexts from the public interface

Our context package is a big pile of sadness which breaks most of the context usage rules and encourages bad practices. And tragically our bad habits around contexts have leaked into a couple of our extension-point interfaces: auth.AccessController and storage.StorageDriver. Modify the interfaces such that implementations are no longer required to abuse contexts, and unexport the pile of sadness.

@corhere this needs a rebase now

Sorry, @corhere but this needs another rebase 🙃 I am aiming to review it today

I've pushed changes as fixup commits for your reviewing convenience. Don't worry about the failed DCO check: I'll autosquash the offending fixup commits away after review.

PTAL: @thaJeztah @Jamstah @squizzi