Add a friendly error page

Replace the default Flask error page.
Tutorial: https://realpython.com/flask-logging-messages/
Related #32

Hi!
Can I work on this. I am a bit new to Github, but I am interested in this, and I was just wondering in order to reproduce the environment, is there anything I should know other than following the ReadMe?
Thanks!

Hi @abant07! Thanks for being interested in contributing, I've assigned you. Check out CONTRIBUTING.md for some additional development setup steps. The main points are forking the repo and doing the work in a new branch. For this issue I don't think having the database is necessary, so you may try skipping that if you like.

Sounds good!

Hey do you know why I am getting import errors in the python files for like Flask and sqlalchemy. I had both of them preinstalled before I cloned the repo in VSCode.

Never mind, I was able to figure it out. I just had to change my python interpreter

I was able to get all the packages to work, but I still get that error when I flask --app bcitflex run

Also, I was curious to know, which file is the main .py file that is running the web server. Like the one with all the routes that redirect to certain html pages

Hey @abant07, can you confirm you are using poetry to install the dependencies?

Clone your fork of the repo locally.
poetry install
poetry run flask --app bcitflex run

The app uses Flask's factory pattern. __ init__.py is the entry point for the app. The routes are defined in their relative top level .py files, course.py for example. Likewise I think the route to the error page should also go in it's own file: error.py.

Yup I am using poetry

Hey @abant07, I was able to replicate the error. It occurs when the app attempts to make a connection with the database. Unfortunately almost all pages of the site display data from the database, however some should still work. For example try http://<IP_ADDRESS>:5000/account to get to the login page. To get the current default error page you can navigate to any invalid route, http://<IP_ADDRESS>:5000/error for example.

Oh yes! You are right. I was able to get the /account page to load. Ok, then I will just create an error.py file, and create a errors.html file in the template folder and then route all 404 traffic errors to the /error page.
Thanks!

I also wanted to clarify, do I need to write any tests for this specific issue?

Awesome! Yes, please add a test to confirm the new error page is being displayed. Please create a new file for the test: tests/app/test_error.py

I was able to finish a simple error page, with a test file, but when I tried to commit to my forked repo I got this error
alembic-check............................................................Failed

hook id: alembic-check
exit code: 1

Traceback (most recent call last):
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 145, in init
self._dbapi_connection = engine.raw_connection()
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 3288, in raw_connection
return self.pool.connect()
^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 452, in connect
return _ConnectionFairy._checkout(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 1267, in _checkout
fairy = _ConnectionRecord.checkout(pool)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 716, in checkout
rec = pool._do_get()
^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/impl.py", line 284, in _do_get
return self._create_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 393, in _create_connection
return _ConnectionRecord(self)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 678, in init
self.__connect()
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 902, in __connect
with util.safe_reraise():
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/util/langhelpers.py", line 147, in exit
raise exc_value.with_traceback(exc_tb)
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 898, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/create.py", line 637, in connect
return dialect.connect(*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 615, in connect
return self.loaded_dbapi.connect(*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/psycopg2/init.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
psycopg2.OperationalError: connection to server at "localhost" (::1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" (<IP_ADDRESS>), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/bin/alembic", line 8, in
sys.exit(main())
^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/alembic/config.py", line 630, in main
CommandLine(prog=prog).main(argv=argv)
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/alembic/config.py", line 624, in main
self.run_cmd(cfg, options)
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/alembic/config.py", line 601, in run_cmd
fn(
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/alembic/command.py", line 289, in check
script_directory.run_env()
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/alembic/script/base.py", line 578, in run_env
util.load_python_file(self.dir, "env.py")
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/alembic/util/pyfiles.py", line 93, in load_python_file
module = load_module_py(module_id, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/alembic/util/pyfiles.py", line 109, in load_module_py
spec.loader.exec_module(module)  # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 994, in exec_module
File "", line 488, in _call_with_frames_removed
File "/Users/amoghbantwal/Documents/GitHub/BCIT-Flex/bcitflex/alembic/env.py", line 90, in
run_migrations_online()
File "/Users/amoghbantwal/Documents/GitHub/BCIT-Flex/bcitflex/alembic/env.py", line 75, in run_migrations_online
with connectable.connect() as connection:
^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 3264, in connect
return self._connection_cls(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 147, in init
Connection._handle_dbapi_exception_noconnection(
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2426, in _handle_dbapi_exception_noconnection
raise sqlalchemy_exception.with_traceback(exc_info[2]) from e
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 145, in init
self._dbapi_connection = engine.raw_connection()
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 3288, in raw_connection
return self.pool.connect()
^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 452, in connect
return _ConnectionFairy._checkout(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 1267, in _checkout
fairy = _ConnectionRecord.checkout(pool)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 716, in checkout
rec = pool._do_get()
^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/impl.py", line 284, in _do_get
return self._create_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 393, in _create_connection
return _ConnectionRecord(self)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 678, in init
self.__connect()
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 902, in __connect
with util.safe_reraise():
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/util/langhelpers.py", line 147, in exit
raise exc_value.with_traceback(exc_tb)
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/pool/base.py", line 898, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/create.py", line 637, in connect
return dialect.connect(*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 615, in connect
return self.loaded_dbapi.connect(*cargs, **cparams)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/amoghbantwal/Library/Caches/pypoetry/virtualenvs/bcitflex-Q0AGhald-py3.12/lib/python3.12/site-packages/psycopg2/init.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (::1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" (<IP_ADDRESS>), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
(Background on this error at: https://sqlalche.me/e/20/e3q8)

Hi @abant07, that's annoying, sorry. The Alembic hook expects a database and fails otherwise. I suggest running the lint, formatting and testing separately and skipping the pre-commit altogether. You can skip pre-commit by passing the --no-verify flag to the git commit command. For example:
git commit -m "my wonderful message" --no-verify

Alright sounds good. Will do.
Thanks

Ok looks good, I just submitted a PR
Thanks!


Running CAEVO-plus on raw documents

Hi,
Can you list the procedure or provide some bash script for running CAEVO-plus on a directory or file, as it was provided for the earlier version of CAEVO?
Thanks in advance
Shikhar

@forkunited
Even if you don't have the time to create a script that can run CAEVO-PLUS on raw files, do you think you'd be able to update the README (or another doc) with steps, or pointers on how to go about processing raw text etc like @svjan5 asked above (as opposed to writing a script for it).
I am hoping if you can point me at the preprocessors and other things, I can try putting them together in a script.
I want to report on top of the 5-8% gain CAEVO-PLUS got over the original.
Ved

@vedmathai
Sorry I never got around to doing the raw text thing (I forgot someone had requested this last year).  I might have some time to get it done this week.  However, if you're trying to report on top of the gain of CAEVO-plus over the original, that shouldn't require running on raw text.  The numbers in both the original CAEVO and CAEVO plus papers are reported for predicting tlinks over a fixed set of timexes and events in TimeBank dense (i.e. none of the reported results relies on predicting the timexes and events prior to the tlinks).  Maybe I misunderstand what you're trying to do though?

I am trying to club the concept of cross-doc event coreference along with dense event relations to create even denser tlinks across documents.
I am trying to use the gold standard ECB+ dataset for the coreference parts. So I thought I could use this CAEVO plus code to tag dense tlinks, since ECB+ doesn't have that.
You can probably help me: You had alluded to using event coreferences in the 'future work' part of your paper. Have you or do you know any work that has already implemented this?

Ah I think I actually tried something similar, but with ACE2005 a few years ago.  I had a sieve that did both event coref and temporal ordering jointly (and cross-document, I think), but I didn't end up with any significant results, so didn't end up publishing.    The actual scripts for it are in this repo that CAEVO-plus is actually based on (https://github.com/forkunited/micro-event). But I don't recommend trying to use them---they are undocumented, confusing, and unnecessarily complicated.
I'll still attempt getting CAEVO-plus setup on raw text sometime soon (hopefully this week).  Sorry for the delay.  I also noticed that I had forgotten to add the scripts necessary for reproducing the results to the repo, so the current run.sh script is broken.  So thanks for inadvertently helping me to notice that.  I'll add those too.

@vedmathai and @svjan5
I just added an option for running on a raw text file.  Hopefully that should work, but let me know if you run into any weird issues or bugs, or if you have any questions.  It's a bit hacked together, so sorry in advance for that.  As I mentioned above, for many purposes, it may also just be sufficient to resort to the original CAEVO system if the CAEVO-plus version is too clunky.
Also, sorry @svjan5 that it took me more than a year to get around to this---I realized you've probably moved on by now.  I was very busy when you asked, and I hoped it would probably be fine for you to use the original CAEVO, and then I totally forgot about getting around to it.


Unhandled exception during collect

Crash during collect stage with unhandled exception: there is no file or directory: 'account-data/./prod/me-south-1/ecs-list-clusters.json'

It looks like you don't have the necessary permissions to run CloudMapper.

Hi, it runs well on centos. But ubuntu crashes with this exception. I surely have all the necessary permissions

От: Scott Piper<EMAIL_ADDRESS>Отправлено: вторник, октября 1, 2019 7:03 PM
Кому: duo-labs/cloudmapper
Копия: Илья Брыков; Author
Тема: Re: [duo-labs/cloudmapper] Unhandled exception during collect (#564)
It looks like you don't have the necessary permissions to run CloudMapper.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/duo-labs/cloudmapper/issues/564?email_source=notifications&email_token=AHRNRBATYZDWYWGQSSS23Q3QMNYDVA5CNFSM4I4GVVYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEABZTFA#issuecomment-537106836, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHRNRBFZKQX4MO7NBFDBZGTQMNYDVANCNFSM4I4GVVYA.

I'm referring to AWS privileges.  I can see in your screenshot the line authorized to perform ecs:ListClusters on resource: * with an explicit deny which is saying that an API call was denied because you do not have the necessary privileges.


Seesaw Loss

do you have any plan for releash seesaw loss paper code ?

Duplicates https://github.com/open-mmlab/mmdetection/issues/4443


Add cashocs to example gallery

This PR adds "cashocs" to the example gallery of sites using the pydata sphinx theme.

needs discussion; see #1121.

@sblauth , thanks for your patience, would you mind updating your branch so that cashocs get into the list ? Note that you should set your site in alphabetical order.

Thanks, @12rambau. I have updated the branch and added cashocs to the gallery.

thanks for the patience @sblauth!


add schema_from_csv() to address issue #108

sorry I messed up my fork
readding feature from a clean branch

addresses #108
Added a pretty barebones implementation of this. Example is documented in the readme.
Please let me know if you have any feedback!

Here's the current test data:
name,type,nullable,metadata
person,string,FALSE,{"description":"The person's name"}
address,string,TRUE,{"description":"The person's address"}
phoneNumber,string,TRUE,{"description":"The person's phone number"}
age,int,FALSE,{"description":"The person's age"}

Can we update it to be something like this:
name,type,nullable,metadata
person,string,false,{"description":"The person's name"}
address,string,TRUE,
phoneNumber,string,TRUE,{"description":"The person's phone number"}
age,int,FALSE,{"description":"The person's age"}

That way we can verify that nullable isn't case sensitive and that this doesn't blow up if metadata is empty.
I think nullable and metadata should both be completely optional.  Does this function work if those columns are missing from the CSV?

@MrPowers updated the schema test file and schema_from_csv() function to handle missing nullable and metadata fields.
null_str.lower() handled upper case and title case boolean values.
One thing I noticed during testing, the test file and expected schema threw a SchemasNotEqual error (because of differences in the optional metadata), but the helper dataframe didn't visualize that. I'm down to work on adding that  to chispa unless that was an intentional design choice.

@jeffbrennan - yea, that'd be a great addition to chispa.  Another user asked for this last week as well.  Thank you!

@jeffbrennan - here's a PR to add this option to chispa: https://github.com/MrPowers/chispa/pull/74

I am going to merge this and then push up some test cleanup.  Thanks for this contribution.


feat: add 1.2 tag for latest 1.2.x changes

/hold

@flacatus why do you hold it? Is there any reason for it?

/unhold

/lgtm


Require Bitcoin Core 27.0.0 or newer

Closes #3781

Thanks for the PR!
I think I was wrong on that issue (or at least imprecise). We don't need any new features from Bitcoin Core and it would be best to keep that backwards compatibility with 24.0.0.
When I wrote that issue I was just thinking: What would happen if you run ord with a newer version. Do RPC calls break? Stuff like that. I'll close the issue.


Cluster

Would it work in a NodeJs cluster?

Hello there!
To be honest, I didn't test it with cluster, but i have a project which is working on child_process which is pretty much the same.
Yes, it works, but be ready that child processes will not share queue with master process. There is a potential option to store queue somewhere not in memory (in db for example) so queue can be shared between threads, but at current release there is no such functionality, unfortunately.

Got it. Still a very very cool implementation. I'm going to use it for my
messenger chatbot, and when the time comes, I'll see if I can add some
Reddis or RabbitMQ queue implementation.
On Tue, 06 Aug 2019, 20:57 energizer91<EMAIL_ADDRESS>wrote:

Hello there!
To be honest, I didn't test it with cluster, but i have a project which is
working on child_process which is pretty much the same.
Yes, it works, but be ready that child processes will not share queue
with master process. There is a potential option to store queue somewhere
not in memory (in db for example) so queue can be shared between threads,
but at current release there is no such functionality, unfortunately.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/energizer91/smart-request-balancer/issues/5?email_source=notifications&email_token=AGDA5IO6QGZNAA5JXQBWUYDQDHCSZA5CNFSM4IJKGMZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3WEAYY#issuecomment-518799459,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGDA5IL2PDSEH2TDJEW4BM3QDHCSZANCNFSM4IJKGMZA
.

Thank you so much! Me myself is using it in Telegram chatbot and it works like a charm


Alpha

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/tmo-orb/semver?version=dev:8eb5461ed56a943633b70c5a2c426ea6bd839e98

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/tmo-orb/semver?version=dev:d9b52c409a44547f8a17459975836138f5d4daad

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/tmo-orb/semver?version=dev:d9b52c409a44547f8a17459975836138f5d4daad

Your orb has been published to the CircleCI Orb Registry.
You can view your published orb on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/tmo-orb/semver?version=1.5.2


Main menu will be displayed even if it has no items

Suppose you put all your menu items into the library menu, you'll still end up with a "Nickel menu" (ie. the main menu) in the bottom tab bar. Is there a way to hide it?

First thing I did, I do not like the 5th menu element item so I've put my item in Library and expected the menu to disapear.
Would be nice to be able to put element in the native "More" menu #127


There are expressions about Lreg in the paper

Hi，I did not find an expression for Lreg loss. Can you provide or explain the loss function in detail?

Hey there,
Thanks for your interest in our work. We've just updated the arxiv paper today morning. We will announce the changes very soon either on LI or on Twitter, and will release the code.


[libs/movex] Remove the getReducerApplicator method

Where
libs/movex/src/lib/tools/dispatch.ts
What
The getReducerApplicator function isn't used anymore, and can be removed!
Why
To reduce file size and improve readability
Definition of done

the method isn't there anymore
all the tests are passing yarn test

Hi again ^^ I created a PR for this (#49)


What is your development environment and tools ？

Linux  ubuntu and pycharm ?

Yup :)

Yours?

win7 +　pycharm

win11 + Pycharm


Diameter of a tree using BFS/DFS

Just suggesting, you can add this one too in your repo.

Yes, that would be good. I'll add it once the Tree class and the implementations of BFS and DFS are added. Thanks for the suggestion!

Adding similar problem link in code of algorithm for better understanding is also helpful and pls reply for the issue#86


Bracket coloring inconsistent

Describe the bug
I've noticed that some highlighting is inconsistent: Sometimes a bracket gets highlighted, sometimes it doesn't, sometimes the order of colors is not what is expected. So far I've tested this on TypeScript (+ TSReact) and Rust files.
(also it seems the magenta color is actually more greenish but that's out of scope for this problem)
Steps to reproduce
Steps to reproduce the behavior.
I've defined some custom colors:
vim.api.nvim_set_hl(0, "TSRainbowYellow", { fg = "#FFD700" })
vim.api.nvim_set_hl(0, "TSRainbowMagenta", { fg = "#DA70D6" })
vim.api.nvim_set_hl(0, "TSRainbowBlue", { fg = "#87CEFA" })

and then set the plugin up like so:
local opts = {
	rainbow = {
		enable = true,
		strategy = require("ts-rainbow").strategy.global,
		hlgroups = {
			"TSRainbowYellow",
			"TSRainbowMagenta",
			"TSRainbowBlue",
		},
		query = {
			"rainbow-parens",
			tsx = "rainbow-tags",
		},
	},
}
require("nvim-treesitter.configs").setup(opts)

Expected behavior
All brackets shoudlbe highlighted, and cycle through the defined colors yellow -> magenta -> blue -> yellow etc.
Screenshots
Rust

TypeScript

The Rust snippet looks fine on my machine and I don't see what is supposed to be the problem in your screenshot (except for the colours being different).

The Typescript query was missing some patterns, I have added them now. I have no idea why your colours are off like that. What do you see when you execute :highlight TSRainbowYellow?

@HiPhish regarding the Rust screenshot: on my machine it seems like the colors don't get cycled correctly, e.g. on the third line, at the match statement, I would expect the {..} to be TSRainbowMagenta, but they are uncolored.
Regarding the off color, it seems to be an issue with the way I've set up TSRainbowMagenta. :highlight TSRainbowMagenta prints out:
TSRainbowMagenta xxx cleared

I assume that the plugin just falls back on a default color, but this also seems to stop the color cycling.

I also found the tsx files are missing some highlights for components with children. I showcased it here: https://github.com/HiPhish/nvim-ts-rainbow2/compare/master...benediktms:nvim-ts-rainbow2:showcase-missing-brackets-highlights?expand=1

I guess you mean to the { ... } in React? I have added it now, can you please test?
As for the original issue, is the way the screenshot above looks what you expect?

I've tested this again with the same colors I mentioned above, but the bracket highlight still does not seem to like my colors:

Where and when are you defining your highlight groups? What happens if you set your highlight groups manually while the buffer is open (e.g. :hi TSRainbowRed guifg=#ff0000 or whatever colour you want)
Colour schemes usually clear all highlight groups, so if you define your own highlight groups before Vim set the colour scheme your settings will be wiped out.

ahh thanks for pointing that out! I didn't even take that into consideration. It works now, for the most part, however the color rotation still sometimes does not work correctly, see screenshow below of a .tsx file:

The type declaration File[] is missing the brackete highlights, as well as brackets for the for (...) loop

This plugin is now deprecated because of upcoming changes to nvim-treesitter. The new rainbow plugin is here: rainbow-delimiters.nvim (GitHub mirror). Please file an issue over there if the problem still persists.


Merge API markdown files into Readme

Docs are currently stored in docs/markdown/*.md. I want to merge all those .md files and embed the markdown in the root README under the API section.

Hello Subhash. You have an awesome project here. Implementing NNs from scratch is one of my cherished goals.
I would like to handle this issue. This is my first time contributing to an open source project. It would be great if you could elaborate me if the task is just to adding the contents on docs folder to the readme file?

Thanks a lot for checking out this repo @sawradip.
Yes, I want the docs/markdown/*.md files to be merged and written into the README file. But, I want to automate this process.
Here is what I mean:

The markdown files in docs/markdown are generated by  nicedoc/generate_markdown_api.py.
I want to create another script that can merge those .md files and write the contents into the README under the API section.
So, the readme would look something like:

..............
..............
# API
(Merged contents of docs/markdown/*.md)
...............
...............

I am looking into this @Subhash3

Checkout the fix here


[Feature] Use canary flatpak from beta flathub branch

Is your feature request related to a problem? Please describe.
When setting up betterdiscord I am unable to specify and use the canary build that's on flatpak. Have to downgrade to normal discord for it to work.
Describe the feature you'd like
After adding:
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
On a system, we should be able to use betterdiscord on that. Yes, I know I can install it from my repos, but I've gotten used to installing things in flatpak or otherwise to keep it contained and prevent stuff from interacting and/or breaking the system.  Plus, it's no different from the normal canary, so it should just work.
The remote add should also be specified in instructions for other users wanting to do the same.

See #1269

Oh. My bad…IDK why I clicked on this one instead of installer.


Micrometer gauges not visible in prometheus endpoint

Environment
HikariCP version: 2.7.4
JDK version     : 1.8.0_144
Database        : Oracle
Driver version  : <IP_ADDRESS>.0

Problem
In my prometheus endpoint I do not see any gauge defined in MicrometerMetricsTracker.java (i.e. total, idle, active, pending gauge).
however if i remove all class gauge properties and replace gauge registration with the code below it works (I copied the MicrometerMetricsTracker and made my changes, and registred my tracker instead of the one included in this lib).
I'd tried to debug it a bit, but I did not see why the current code in hikaricp does not work for me. it looks perfeclty valid for me.
Feel free to close this ticket, a soon micrometer is not in rc-mode, I'will test this again.
MicrometerMetricsTracker.java
      this.totalConnectionGauge = Gauge.builder(METRIC_NAME_TOTAL_CONNECTIONS, poolStats, PoolStats::getTotalConnections)
         .description("Total connections")
         .tags(METRIC_CATEGORY, poolName)
         .register(meterRegistry);

      this.idleConnectionGauge = Gauge.builder(METRIC_NAME_IDLE_CONNECTIONS, poolStats, PoolStats::getIdleConnections)
         .description("Idle connections")
         .tags(METRIC_CATEGORY, poolName)
         .register(meterRegistry);

      this.activeConnectionGauge = Gauge.builder(METRIC_NAME_ACTIVE_CONNECTIONS, poolStats, PoolStats::getActiveConnections)
         .description("Active connections")
         .tags(METRIC_CATEGORY, poolName)
         .register(meterRegistry);

      this.pendingConnectionGauge = Gauge.builder(METRIC_NAME_PENDING_CONNECTIONS, poolStats, PoolStats::getPendingThreads)
         .description("Pending threads")
         .tags(METRIC_CATEGORY, poolName)
         .register(meterRegistry);

MicrometerMetricsTracker.java (my change)
        Gauge.builder(METRIC_NAME_TOTAL_CONNECTIONS, Integer.class, (i) -> poolStats.getTotalConnections())
                .description("Total connections")
                .tags(METRIC_CATEGORY, poolName)
                .register(meterRegistry);
        Gauge.builder(METRIC_NAME_IDLE_CONNECTIONS, Integer.class, (i) -> poolStats.getIdleConnections())
                .description("Idle connections")
                .tags(METRIC_CATEGORY, poolName)
                .register(meterRegistry);
        Gauge.builder(METRIC_NAME_ACTIVE_CONNECTIONS, Integer.class, (i) -> poolStats.getActiveConnections())
                .description("Active connections")
                .tags(METRIC_CATEGORY, poolName)
                .register(meterRegistry);
        Gauge.builder(METRIC_NAME_PENDING_CONNECTIONS, Integer.class, (i) -> poolStats.getPendingThreads())
                .description("Pending threads")
                .tags(METRIC_CATEGORY, poolName)
                .register(meterRegistry);

I had a similar problem with my own implementation.
Micrometer gauges wrap their obj  input with a WeakReference.  So by the time the gauge gets read,  PoolStats was already Garbage Collected and the gauge returns a default of NaN.
The fix is to store PoolStats as a field in MicrometerMetricsTracker  so that it stays alive.  Your fix works because it keeps a strong reference around by binding to the lambda.

I experience the same issue with Spring Boot 2.0.0.Release ( HikariCP:2.7.8, micrometer-registry-prometheus:1.0.1). The code for registering the gauges look the same as the code snippet at the top of the issue:
this.totalConnectionGauge = Gauge.builder(METRIC_NAME_TOTAL_CONNECTIONS, poolStats, PoolStats::getTotalConnections)
         .description("Total connections")
         .tags(METRIC_CATEGORY, poolName)
         .register(meterRegistry);

Is there anything that needs to be done manually in the code to get this working as there is no code change for this issue?

The fix would look something like this.  Sorry that I don't have time to make a PR.
public class MicrometerMetricsTracker implements IMetricsTracker {

  /// ... other fields

  @SuppressWarnings("unused")
  // Must keep a reference to pool stats because gauges uses WeakReference.
  // See implementations of micrometer's `MeterRegistry::newGauge` for details
  private final PoolStats poolStats;

   MicrometerMetricsTracker(final String poolName, final PoolStats poolStats, final MeterRegistry meterRegistry)
   {
      // Save strong reference to pool stats here because micrometer gauges wrap the input in a WeakReference
      this.poolStats = poolStats;

      // Rest of constructor
   }

I experience the same with Spring Boot 2.0. Some Metrics like "hikaricp.connections" have a value of NaN. If I try to use Spring Boots Feature to send the metrics to New Relic, it will not work because NaN is not a valid json value.
Are there plans to fix this?

This was fixed with #1108. Sorry I missed linking this issue when I opened the pull request.
@brettwooldridge it would be nice for Micrometer users if there were a patch release including the fix.


CLI: Deploying a contract should fail and warn if the interface version is incorrect

What problem does your feature solve?
I deployed a contract, but have to call it to see if the interface version it was built with is correct.
What would you like to see?
We could check that and fail the deployment if that is the case.
What alternatives are there?

Don't do that.
Warn, but not fail.

We can check this by loading the contract into the Vm (without invoking it) before saving it. Should be a simple addition of 2 lines of code.


D455 Invalid Value in rs2_get_option_range and Invalid Value in rs2_get_option

Required Info

Camera Model
D455

Firmware Version
<IP_ADDRESS>

Operating System & Version
{Win (10)

Platform
PC

SDK Version
2.54

Segment
others

I can't use camera, and when i open the viewer this give me this 2 errors :
Invalid Value in rs2_get_option_range(options:000001F754646B70,
option:Depth Units, min:0, max:1, step:1, def:0):
hwmon command 0x2c( 9 1 0 0 ) failed (response -9= No expected user action)
Invalid Value in rs2_get_option(options:000001F754646B70, option:Depth
Units):
hwmon command 0x2c( 9 0 0 0 ) failed (response -9= No expected user action)
and when i try hardware reset  give me this :
sensor.cpp:661 - acquire_power failed: MFCreateDeviceSource(_device_attrs, &_source) returned: HResult 0x80070003: "The specified path cannot be found."
error-handling.cpp:96 - Error during polling error handler: MFCreateDeviceSource(_device_attrs, &_source) returned: HResult 0x80070003: "The specified path cannot be found."
i try whit Intel.Realsense.CustomRW.exe -g
give success, but nothing is change.
The result :
CustomRW for Intel RealSense D400, Version: <IP_ADDRESS>
Device PID: 0AD1
Device name: Intel RealSense D400
Serial number: ffffffffffff
Firmware version: <IP_ADDRESS>
Type: 3.2
Physical port: \?\usb#vid_8086&pid_0ad1&mi_00#6&b56e917&0&0000#{e5323777-f976-4f5b-9b55-b94699c46e44}\global
Calibration on device successfully reset to default gold factory settings.
if i use rs-terminal give me this :
Commands XML file not provided.
you still can send raw data to device in hexadecimal
separated by spaces.
Example GVD command for the SR3XX:
14 00 ab cd 3b 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Example GVD command for the D4XX:
14 00 ab cd 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
#>
there are some gvd command for trying to reset ?
if i launch command  Intel.Realsense.CustomRW.exe -r -ex this give me :
CustomRW for Intel RealSense D400, Version: <IP_ADDRESS>
Device PID: 0AD1
Device name: Intel RealSense D400
Serial number: ffffffffffff
Firmware version: <IP_ADDRESS>
Type: 3.2
Physical port: \?\usb#vid_8086&pid_0ad1&mi_00#6&b56e917&0&0000#{e5323777-f976-4f5b-9b55-b94699c46e44}\global
Calibration parameters from the device:
resolutionLeftRight: 1280 800
FocalLengthLeft: 642.883606 641.290710
PrincipalPointLeft: 648.096863 395.258362
DistortionLeft: -0.057186 0.065042 -0.001520 -0.000451 -0.021088
FocalLengthRight: 644.842163 643.287781
PrincipalPointRight: 633.595459 401.630127
DistortionRight: -0.058808 0.067831 -0.000607 0.001017 -0.022140
RotationLeftRight: 0.999903 -0.000022 -0.013903
0.000020 1.000000 -0.000153
0.013903 0.000152 0.999903
TranslationLeftRight: -95.042084 0.103101 -0.421945
HasRGB: 0
Extra calibration information:
World to left rotation matrix (inverse rotation of the left camera in rectified coordinate system):
0.999955  0.001106  0.009464
-0.001106  0.999999  0.000075
-0.009464  -0.000085  0.999955
World to right rotation matrix (inverse rotation of the right camera in rectified coordinate system):
0.999990  0.001084  -0.004440
-0.001085  0.999999  -0.000078
0.004440  0.000082  0.999990
hasRgb is 0, is  not normal right ? there are some commands for writing hasRgb to 1?

Hi @immensivevr  The serial number ffffffffffff in the CustomRW output indicates that there is a problem.  This is a highly rare one.  At https://github.com/IntelRealSense/librealsense/issues/7337 a RealSense user with this incorrect serial number found that it was caused by damage to the USB cable in their particular case.
Are you using the official 1 meter USB cable supplied with the camera or a cable of your own choice?
hasRgb should be detected as 1 on a camera model such as D455 which has an RGB sensor.  A value of 0 would indicate that the RGB sensor cannot be detected.  In that case, setting hasRGB to 1 manually would not cause RGB to be detected.
The list of calibration parameters with accompanying correct-looking values suggests that the depth is being detected even if RGB is not.

is there anything i can do with the rs-terminal or other? ?
i not use the official  cable, i use one USB 3.1 gen 1

The main difference between 3.1 Gen 1 and Gen 2 is that Gen 1 allows speeds of up to 5 Gbps (gigabits per second) whilst Gen 2 allows speeds of up to 10 Gbps.
Is your cable an old one?  If it is then it could have developed damage over time through bending of the cable or the connector.  If it is a new cable then the quality of the cable can cause problems if it is not high quality or is an inexpensive cable designed for device charging rather than data transfer.
Do you still have the official cable to test the camera with?

in this moment i cant' test with officiale cable, is it possible to buy a replacement with specific features?

The official cable is not available for separate purchase but a cable of equivalent quality that has been validated for use with RealSense cameras is available from a supplier called Newnex.
https://www.newnex.com/realsense-3d-camera-connectivity.php

Hi @immensivevr  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


ILLEGAL MODE FOR THIS TRACK on multisession disc in Plextor PX-712A drive

Version
Used latest test version
Describe the bug
One of my multisession discs is throwing an ILLEGAL MODE FOR THIS TRACK message even though I am using a PX-712A drive to dump such discs. The problem is only with this disc
Screenshots
Paste command-line text.
Disc title
Max Kids 3/2006
Disc ringcode
VEGCD 4311  MAX KIDS 3-2006 PL  Vegart  www.vegart.pl
URL
Isn't available on auctions, sorry
Log file
Max Kids.zip

DiscImageCreator_test.zip

added: repeat 5 times at max when the lead-in & out can't be read correctly

It works thx


DX-2182 Update client to include updated specs

The specification is now pulled from api-specification which should be cloned alongside this repo.
Will publish it as 2.0.0 because it seems the response types changed for some of the endpoints.

@simpikkle is it correct to use main branch of api-specific or should we use a different one to generate the client?

The OAS in the main branch can have draft endpoints that we don't want to expose (including the ones that are not implemented yet).  That's why we have a script that cleans them up before publishing.
I think we should publish the files somewhere after cleaning up and take them from there. Plus, api-specification is a company internal repo, while this one is marked as public, is it a good idea to mix them?

Merged in https://github.com/miroapp/api-clients/pull/188


Java Operator JUnit Extension is unusable from Quarkus

Trying to use the Java Operator JUnit Extension from a project using the Quarkus Operator SDK results in multiple errors and, currently, is impossible to run the tests.
Here you can find a minimal reproducer:
https://github.com/andreaTP/operator-junit-repro
Additional considerations:

despite having set quarkus.operator-sdk.start-operator=false seems that there are 2  operators started:

2022-04-26 17:42:17,222 INFO  [io.jav.ope.Operator] (main) Operator SDK unknown is shutting down...
...
2022-04-26 17:42:17,271 INFO  [io.jav.ope.Operator] (main) Operator SDK 2.1.4 is shutting down...

and there are consistently duplicated logs.

the JUnit extension relies on the fact that CRDs are generated in a specific location maybe we should consider adding the crd-generator-apt as a transitive dependencies (or make the location more easily configurable)

the current blocking issue seems to be the fact the framework is unable to load the configuration for the reconciler:

2022-04-26 17:59:29,711 WARN  [Default ConfigurationService implementation] (main) Configuration for reconciler 'examplereconciler' was not found. Known reconcilers: None.

cc. @DGuhr @metacosm @csviri

Do you need both Local and Remote support ? Remote would require the image to be built but I'm not sure quarkus do it before running the tests. Like the OLM testing, it  could not be a mvn one liner as with josdk.
For local, I think that what you are asking can interest Quarkus k8s development more broadly as part of Dev Service experience. Maybe with quarkus-kind or quarkus-minikube extension, a cluster can be created if not detected during dev and tests.
Nonetheless, what about a custom QuarkusTestResourceLifecycleManager that can wrap an AbstractOperatorExtension to just prepare the cluster and let quarkus run the app normally. Meaning, the JOSDK JUnit extension is not responsible of creating and running the operator instance because it should not in the first place.

I forgot to give more context to this issue.
We do have a working setup for local/remote testing in the Keycloak operator:
https://github.com/keycloak/keycloak/blob/9541852a9bf7d36647d4723d3420556f4b75ac92/operator/src/test/java/org/keycloak/operator/ClusterOperatorTest.java#L39
And that's the reason why I contributed this functionality to the JOSDK.
To pay tech debt, we have attempted to use the JUnit extension and failed.
But it's definitely possible to do it!

Nonetheless, what about a custom QuarkusTestResourceLifecycleManager that can wrap an AbstractOperatorExtension to just prepare the cluster and let quarkus run the app normally. Meaning, the JOSDK JUnit extension is not responsible of creating and running the operator instance because it should not in the first place.

That's the approach we decided to take: we will write a Quarkus test resource that deals with setting up the cluster, though I'm not sure how much code we'll be able to reuse from the JOSDK JUnit extension…


Lab 3 setup failures ( Failed to connect to MSI)

Lab 3
Description of issue
The setup script runs with an error on step "Granting permissions on the datalake  storage account..."
Repro steps:
Run the cloudshell setup
Chose my MSDN subscription
ERROR: Failed to connect to MSI. Please make sure MSI is configured correctly.
Get Token request returned: <Response [400]>

Could you help me with this error?

I am also attaching the entire execution log
setup_log.txt

Hi @romshe
I tried reproducing this issue and I couldn´t get it to appear. The setup ran without any issues.
From what I see, it seems to have something to do with the Managed Service Identity (MSI) in Azure. This kind of error sometimes appears when there are multiple user accounts logged in azure(lets say one personal and a work one). One way to fix this would be to run "az login" first and connect to the correct one (or the one that needs to be used for this exercise).  This will allow you to authenticate to Azure using the Azure CLI.

Thanks @Mihai-Ac  - I couldn't see a problem either. Note: as Mihai noted, this should be run from Cloudshell.
JH

Hi all
Running "az login" before deploying helps me
Maybe this should be added to the deployment guide, for people who use multiple accounts a lot.
Thanks for the help!


Search function is not pulling results correctly - see issue #106

I'm thinking there might be a key search index that isn't matching the documentation as we can't find items easily.
I'm adding some notes that the new documentation does not find items that the old Wiki search did find. There are many examples - I provided two below:
NOTE: I'm unable to search for topics that exist in the Wiki Documentation today. Example: searching for "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED" and it gives you unrelated links.
On Wiki it gives you this : https://rdhpcs-common-docs.rdhpcs.noaa.gov/wiki/index.php?title=FAQs_-_Frequently_Asked_Questions#WARNING:_REMOTE_HOST_IDENTIFICATION_HAS_CHANGED!
And it doesn't give a lot of false links. This will make users unable to find simple things in the documentation. Overall, I could probably provide 100 examples if I had enough time to add them all here.
Another good one is "reset passphrase" - it should take you right to the spot in the documentation where we reset the passphrase, but it does not and I think users will get lost.

Searching for 'identifiation has changed' provides accurate results: https://docs.rdhpcs.noaa.gov/search.html?q=identification+has+changed#gsc.tab=0&gsc.q=identification has changed&gsc.page=1
Searching for 'reset passphrase' provides accurate results: https://docs.rdhpcs.noaa.gov/search.html?q=reset+passphrase#gsc.tab=0&gsc.q=reset passphrase&gsc.page=1
Need some clear examples of what is not being found.

I gave an example of exactly what does not work.   It’s in quotes in my
message to you
*Renn Valo *NOAA Affiliate
NOAA Systems Engineer
RIVA
1(508)-495-2303
On Wed, Sep 18, 2024 at 4:20 PM Chan Wilson @.***>
wrote:

Searching for 'identifiation has changed' provides accurate results:
https://docs.rdhpcs.noaa.gov/search.html?q=identification+has+changed#gsc.tab=0&gsc.q=identification has changed&gsc.page=1
Searching for 'reset passphrase' provides accurate results:
https://docs.rdhpcs.noaa.gov/search.html?q=reset+passphrase#gsc.tab=0&gsc.q=reset passphrase&gsc.page=1
Need some clear examples of what is not being found.
—
Reply to this email directly, view it on GitHub
https://github.com/NOAA-RDHPCS/noaa-rdhpcs.github.io/issues/207#issuecomment-2359503358,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7YZFEYKQYMD23K3S3HRVGLZXH4EDAVCNFSM6AAAAABOMLET7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJZGUYDGMZVHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Searching for 'WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED' provides the page with that text on it: https://docs.rdhpcs.noaa.gov/search.html?q=WARNING%3A+REMOTE+HOST+IDENTIFICATION+HAS+CHANGED#gsc.tab=0&gsc.q=WARNING%3A REMOTE HOST IDENTIFICATION HAS CHANGED&gsc.page=1
I am not seeing the search issue here, please advise.

Hi Chan,
It was not working on my side, but it worked this morning ?  No idea?
[image: image.png]
*Renn Valo *NOAA Affiliate
NOAA Systems Engineer
RIVA
1(508)-495-2303
On Wed, Sep 18, 2024 at 7:52 PM Chan Wilson @.***>
wrote:

Searching for 'WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED' provides
the page with that text on it:
https://docs.rdhpcs.noaa.gov/search.html?q=WARNING%3A+REMOTE+HOST+IDENTIFICATION+HAS+CHANGED#gsc.tab=0&gsc.q=WARNING%3A REMOTE HOST IDENTIFICATION HAS CHANGED&gsc.page=1
I am not seeing the search issue here, please advise.
—
Reply to this email directly, view it on GitHub
https://github.com/NOAA-RDHPCS/noaa-rdhpcs.github.io/issues/207#issuecomment-2359813676,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7YZFE3YAOQBVXKRNCB2MRTZXIU5FAVCNFSM6AAAAABOMLET7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJZHAYTGNRXGY
.
You are receiving this because you authored the thread.Message ID:
@.***>


Japanese Translation

Hi, I'm Hiroshi from Japan.
Would you mind if I translate this repo into Japanese?

we have long hanging discussion about translation https://github.com/ReactiveX/rxjs/issues/4388 and honestly, I don't think we made a concrete decision on this. /cc @niklas-wortmann for visibility.

Is there anyone still willing to dig into this issue?

Right now there is no-one working towards this. Mainly for the reason that this requires a lot of initial effort but it basically increase also ever other doc change later on as we have to ensure that all translations stay in sync. If anyone has any good idea on how to tackle this problem in general, I am very happy to discuss approaches

there are more and more community translations popping up these days, maybe we want to consider linking those maybe with some kind of disclaimer or whatever


Sprint 4 - Team 7 task ticket 3: Design sound effects according to situations or actions

Description
Task: Design sound effects according to situations or actions (pop up the prompt box/clue window)
Feature: Improve features based on the win/lose logic and eviction menu: Goal 3
After analysing the feedback gathered from user survey, our team determinded where we should add a sound effect to make the game more "juicy" by collecting the ideas of studio. In terms of design, since there are many elements containing "action" in the eviction menu, such as "select button"; "eviction card"; "mouseover", etc., adding sound effects to too many elements may negatively optimize the user's experience. Therefore, we will only add sound effects to some "actions", such as when the clue window and prompt window pop up.
Example

Sound effect of clue window: When the user clicks the npc card to view the clue, the sound of "fliping the page" will be triggered along with the clue window popping up.
Sound effect of prompt boxes: After judging whether the result selected by the user is correct or incorrect, the corresponding prompt box will pop up and trigger cheering or frustrated sounds.

Dependencies

[x] Win/lose condition for selecting the traitor (#122   ).
[x] Npc infomation and storyline (#64 ).
[x] Display styles relies on feedback gathered form the studio (#191   ).

Milestones
Steps that need to be completed for this task:

[x] Step 1: Find inspiration in life to design foundational sounds (Oct. 12)
[ ] Step 2: Further optimize the sound to match the game scene. (Oct. 14)

Completion Deadline: Oct. 14
Documentation

Eviction menu
Storyline
Sprint4 - Polishing-tasks: User survey (Team 7)

Member

Qiansen Jin (@QiansenJhin )

Find inspiration from life to capture sources for audio production.

Modify the audio format to fit libgdx, and add new sound effects for cluewindow and promptBox.

Implementation that relate to sound effects have been finished:
Related task ticket:
Related commit: https://github.com/UQdeco2800/2022-ext-studio-1/commit/786fd01fde45e3495c109d716874e7a38286c807 https://github.com/UQdeco2800/2022-ext-studio-1/commit/5326765583e781afcbe7c5b36130c2138f2b1628 https://github.com/UQdeco2800/2022-ext-studio-1/commit/704fb16908896c0a8113030b8ffc5e9c3888066b


Throw error when DB file is missing or is empty

When starting the server, if the provided DB file is either empty or not existant an error will be thrown.

Thank you for the PR, another approach has been implemented.
If there's no db, a default one is set up instead so that beginners can have something to start with.


As a User Interface element to organize notes

It would be nice to the user to have a quick way to sort through/organize and or display some notes.
They could either be part of the imported notes, or something specific to Foundry.
Our game group does a lot of "Magic as Powers" spells, which usually requires a 4x5 card of information about the spell.   It would be nice if we could represent this in Foundry.
I thought of the old address books (with tabs from A to Z).   Maybe we could interpret the import notes, and  if it starts with a special character (maybe * or : or !), treat the first line of each note as the title.
And if the player notes contain notes that start with a special character we could shunt them aside and display this in a tabbed folder kind of view.

I'm okay with the idea -- I don't particularly care for the idea that we'd add yet-another special delimiter instead of something more obvious and usable.


Does not work on Ubuntu 22.04

I installed gcc and compiled mergeinputs on a freshly installed Ubuntu 22.04 LTS.
If I run following command in terminal "sudo mergeinputs /dev/input/by-id/-kbd" my keyboard is not working anymore. I have to close the terminal. (Also tried with "sudo mergeinputs /dev/input/by-path/-kbd")
With Ubuntu 20.04 everything was working
Has anyone an idea how to get merginputs running on Ubuntu 22.04?

couple questions, though I dont have an ubuntu install to test against nor a system where it seems to reproduce not working.

what's connected to your system, anything weird that might not like it?
ls /dev/input/by-id/*-kbd
can you see anything complaining in syslog when you run mergeinput and your keyboard disappears?
dmesg -w in another terminal before running mergeinputs
does it still occur when you only try a couple? or even just one keyboard device
you might be able to isolate it to a device that causes it to not work

Thank you for your help.
So far I tried following:

What's connected to your system, anything weird that might not like it?
sudo ls /dev/input/by-id/*kbd /dev/input/by-id/usb-0911_2188-event-kbd  /dev/input/by-id/usb-Hantick_USB_Keyboard_HID_Composite_device-event-kbd

I use the r-go split keyboard.
usb-0911_2188-event-kbd is the left part of the keyboard
usb-Hantick_USB_Keyboard_HID_Composite_device-event-kbd is the right part
When I run sudo mergeinputs /dev/input/by-id/usb-0911_2188-event-kbd the left part of the keyboard is no more recognized. Same applies for the right part.

Output of dmesg -w when I run mergeinputs is:
input: merged input as /devices/virtual/input/input59
the number behind input gets incremented each time I run mergeinputs

The keyboard is fully functional without mergeinputs, but if I type quickly with both parts (e.g. 1919191) the display gets laggy / freezes shortly.
With Ubuntu 20.04 LTS on same machine this behavior was fixed by simply running mergeinputs (Thank you so much btw <3 )

hm, so it did work on an older ubuntu, not suspecting any userspace things capable of ruining such functionality the only thing left to blame would be the kernel in that case. I never had issues with the input devices.
the input device does get created it seeems as noted by your dmesg. really only leaves uinput.. but thats also strange on its own as it'd be crucial to alot of other things.
kinda stumped at this point, would also make debugging useless as on the mergeinput side everything looks alright. I'd be tempted to say a new kernel makes it outright not work.. but I'm on an up to date system where it still works (5.19.1 kernel). the only thing I could suggest at this point is trying to see if its limited to this kernel and if you can get around it with some alternative kernels, though thats not a great experience with ubuntu either.

bit of an overly obvious question, and it shouldnt matter anyway.
but I didnt specifically ask it..
did you recompile on your new ubuntu or use the binary from the old one?

now it seems to for some #4 so maybe its something within your userspace, I'm afraid I cant think of anyway to debug it further from the mergeinputs side though as everything comes up fine (not a single error on failing to get the input, or the file, or creating the output)

Also in the same boat! let's figure this out. will be posting if I find a solution

since this hooks in at uinput level, before any xinput or whatnot drivers can get to it. can you confirm it does or doesnt work in another tty without graphics? just logging into a tty (ctrl alt f3 or some other one you dont use).
if this is the case its something within whatever the new ubuntu ships there.
also I never asked but are any of you using wayland? I dont see why it would break on wayland since again its before any other input handling but you never know

I've been at it since I made the comment 5 hours ago. broke my OS while trying to get wayland to work on Pop-os. tried again after a system recovery and gave up on it. In my case I had no issues with input lag on fedora that uses wayland by default. and also the manufacturer of R-go split keyboard recommended using it before x11 so that must be the issue.
Funny thing is that ubuntu 22.04 uses wayland by default also. so @Bastien-mva  I would check if you are using wayland on the desktop by running echo $XDG_SESSION_TYPE, if you are using x11 then there should be a cog in the login screen where you can select what you wish to use.
I'm moving back to fedora for now. nvim and input lag does not match well

Hello,
I tried to enable wayland but it does not seem to be working. I have nvidia drivers, blocking wayland. I am trying to switch to wayland anyway.
It does seem to be x11 the issue.

I just managed to enable wayland and it is now working just fine, but mergeinputs did not change anything.

It does seem to be x11 the issue.

I use x11, the entire point of this thing was it sits before any userspace drivers. just regular x11 systems are completely fine with it.
I dont know what ubuntu started doing in this version. if anything my question if people were using wayland was because I expected it to not work there.

its just arch with a simple wm, on x11 since forever.
I'd be surprised if its debian, as mentioned before the only way I can see correlations if it'd be something in the kernel. but it cant be the kernel version as I also usually update.

I'm planning on rolling out debian for some people in the near future, I'll try to test it there to see if I find any issues similar to this

Thanks for going that extra mile!

Hi, i have the same issue (r-go split keyboard, ubuntu 22.04, x11, on wayland keyboard doesn't get laggy) and after typing
sudo mergeinputs /dev/input/by-id/usb-0911_2188-event-kbd
the console freezes, keyboard freezes (left part) and command tail -f /var/log/syslog outputs:
Sep 18 21:42:59 PL-MCALUS kernel: [ 2063.363890] input: merged input as /devices/virtual/input/input45
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (II) config/udev: Adding input device merged input (/dev/input/event264)
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (**) merged input: Applying InputClass "libinput pointer catchall"
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (**) merged input: Applying InputClass "libinput keyboard catchall"
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (II) Using input driver 'libinput' for 'merged input'
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (EE) systemd-logind: failed to take device /dev/input/event264: No such device
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (**) merged input: always reports core events
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (**) Option "Device" "/dev/input/event264"
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (EE) xf86OpenSerial: Cannot open device /dev/input/event264
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: #011Permission denied.
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (II) event264: opening input device '/dev/input/event264' failed (Permission denied).
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (II) event264 - failed to create input device '/dev/input/event264'.
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (EE) libinput: merged input: Failed to create a device for /dev/input/event264
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (EE) PreInit returned 2 for "merged input"
Sep 18 21:42:59 PL-MCALUS /usr/libexec/gdm-x-session[16580]: (II) UnloadModule: "libinput"

Could be related: pressing a key from different keyboard than previous (f-j-f-j, or even the same key but between notebook and external keyboard) gives this logs:
Sep 18 21:44:19 PL-MCALUS gnome-shell[17104]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
Sep 18 21:44:19 PL-MCALUS gnome-shell[17104]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
Sep 18 21:44:19 PL-MCALUS gnome-shell[17104]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
Sep 18 21:44:19 PL-MCALUS gnome-shell[17104]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
Sep 18 21:44:19 PL-MCALUS gnome-shell[17104]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
Sep 18 21:44:19 PL-MCALUS gnome-shell[17104]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
Sep 18 21:44:19 PL-MCALUS gnome-shell[17104]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
Sep 18 21:44:19 PL-MCALUS gnome-shell[17104]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
Sep 18 21:44:19 PL-MCALUS gnome-shell[17104]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).

But i think it's not the issue, because uninstalling the package gnome-shell-extension-ubuntu-dock makes warnings go away without resolving the keyboard lag issue.

ah this is slightly more insightful, I might have an idea whats going on. in the lands of less managed desktop setups without much management software those /dev/input/ symlinks are all owned by root. so it doesnt harm much to open them as root.
I think it might be the case ubuntu has these under some 'input' group other software expects to be able to use, which it cant when its opened by something running as root.
to confirm this is that:

post the output of ls -l /dev/input/by-id
try adding yourself to the input group, or whatever non root thing those are owned by on your system
relog
start mergeinput the same way without sudo
alternatively if its not just a non root group but also a non root user you could use sudo -u thisuser with merginputs

I'm planning on rolling out debian with xfce for some people in the near future, I'll try to test it there to see if I find any issues similar to this

I ended up going with a rolling distro for those people as someone convinced me suse tumbleweed is stable enough these days. it doesnt have the issue with the xfce flavor

Unfortunately it's not that, all inputs are owned by root:
$ ls -l /dev/input/by-id
total 0
lrwxrwxrwx 1 root root 11 wrz 27 14:09 usb-0911_2188-event-if01 -> ../event257
lrwxrwxrwx 1 root root 10 wrz 27 14:09 usb-0911_2188-event-kbd -> ../event31
lrwxrwxrwx 1 root root 11 wrz 27 14:09 usb-0911_2188-if01-event-mouse -> ../event256
lrwxrwxrwx 1 root root  9 wrz 27 14:09 usb-0911_2188-if01-mouse -> ../mouse4
lrwxrwxrwx 1 root root  9 wrz 27 13:32 usb-1ea7_2.4G_Mouse-event-if00 -> ../event9
lrwxrwxrwx 1 root root 10 wrz 27 13:32 usb-1ea7_2.4G_Mouse-event-mouse -> ../event10
lrwxrwxrwx 1 root root  9 wrz 27 13:32 usb-1ea7_2.4G_Mouse-mouse -> ../mouse3
lrwxrwxrwx 1 root root 10 wrz 27 13:32 usb-CN0V976R8LG00145DY9KA01_Integrated_Webcam_HD_200901010001-event-if00 -> ../event30
lrwxrwxrwx 1 root root 11 wrz 27 14:09 usb-Hantick_USB_Keyboard_HID_Composite_device-event-if01 -> ../event263
lrwxrwxrwx 1 root root 11 wrz 27 14:09 usb-Hantick_USB_Keyboard_HID_Composite_device-event-kbd -> ../event259
lrwxrwxrwx 1 root root 11 wrz 27 14:09 usb-Hantick_USB_Keyboard_HID_Composite_device-if01-event-mouse -> ../event260
lrwxrwxrwx 1 root root  9 wrz 27 14:09 usb-Hantick_USB_Keyboard_HID_Composite_device-if01-mouse -> ../mouse5
lrwxrwxrwx 1 root root 10 wrz 27 13:32 usb-Logitech_Logitech_Wireless_Headset-event-if03 -> ../event12

well damn, that wouldve worked out explainably

I'm having a similar issue to https://github.com/Ckath/mergeinputs/issues/3#issuecomment-1250375536 on KDE Wayland (Arch)
Whenever I run mergeinputs with one input device (or more) kwin throws an error:
oct 07 22:20:00 laptop kernel: input: merged input as /devices/virtual/input/input64
oct 07 22:20:00 laptop systemd-logind[1065]: Watching system buttons on /dev/input/event18 (merged input)
oct 07 22:20:00 laptop kwin_wayland[1429]: kwin_core: Failed to open /dev/input/event18 device (No such device)

But I think I found something that may fix it, or at least get us closer to a solution.
ydotool makes use of uinput in a similar way to this tool. The only difference is the way in which the keycodes are set with ioctl.
It uses a predefined list taken in part from /usr/include/linux/input-event-codes.h
Looking into input-event-codes.h it can be seen that not all codes are defined, so the way that it iterates sequentially over all possible key codes could be the culprit.
I've tried it locally myself and it works.

looking at what is defined in /usr/include/linux/input-event-codes.h I wonder if even going with a predefined list would solve it for everyone, what if its different for another distribution and it goes over an undefined keycode again?
what if instead its an issue with it for example starting at 0, which seems KEY_RESERVED or some other very specific key which shouldnt be set.
that said, I have created a branch related to this issue which now at least has this change to be the same as ydotool, give it a spin if you feel like it

Your branch solution is working for me! on Ubuntu 22.04 using x11

despite being pretty sure its going to screw me over at least somewhere when I use a weird key thats not in this list, it seems to be the easiest solution for now so I'm just going to merge it in and see if people keep having the same problems.
if any of the original people with the issue can confirm it does work I'll close it

what a journey :o
The workaround fixed it on my Ubuntu 22.04 with X11 too :)
@Ckath Thank you so much!!


Failed to get authorization code. Bad TOTP Key?

I know I copied the secret correctly from the QR code, I tried replacing it with capital letters where it was lowercase, to no avail. Tried a new v4 uuid, same error. Any ideas? It worked on gm website w mobile authenticator app, so I don't think it's actually a failure with the TOTP key.

[00:19:04] INFO: Starting OnStar2MQTT for Vehicle1...

<EMAIL_ADDRESS>start
node src/index.js
info: OnStar Config: {"onstarConfig":{"allowCommands":true,"checkRequestStatus":true,"deviceId":"10da774f-4dea-4d11-8b1d-a83c9902b7e5","onStarPin":"####","onStarTOTP":"","password":"","refreshInterval":1800000,"requestPollingIntervalSeconds":6,"requestPollingTimeoutSeconds":90,"tokenLocation":"","username":"","vin":"realVINhere"},"timestamp":"2024-12-24 00:19:08"}
info: MQTT Config: {"mqttConfig":{"host":"myhomeassistant:1883","listAllSensorsTogether":false,"namePrefix":"","password":"****","pollingStatusTopic":"","port":1883,"prefix":"homeassistant","rejectUnauthorized":true,"tls":false,"username":"mqtt-user"},"timestamp":"2024-12-24 00:19:08"}
info: !-- Starting OnStar2MQTT Polling --! {"timestamp":"2024-12-24 00:19:08"}
info: Requesting vehicles {"timestamp":"2024-12-24 00:19:08"}
Authentication failed: Error: Failed to get authorization code. Bad TOTP Key?
at GMAuth. (/app/node_modules/onstarjs2/dist/index.cjs:40614:23)
at Generator.next ()
at fulfilled (/app/node_modules/onstarjs2/dist/index.cjs:43:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
error: Main function error: {"error":{"message":"Failed to get authorization code. Bad TOTP Key?"},"timestamp":"2024-12-24 00:19:15"}
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started

It passed the checks that made the configuration accept it. As either lower case as it originally came, or capitalized letters.

I believe my system time is broken. Trying to find the way to set it back to the truth.

Do you know how to (re)set HA system time? I've just read about 20 search results, and gotten nowhere.

Restarted, was 30s wrong, got a different error. Installed chrony add-on, now need to figure out hostname for MQTT. What do you recommend to set for that? It's all set up with Mosquitto, but localhost and the hostname for my HA didn't work.

It works, had to change hostname to "core-mosquitto".

Install chronyd add-on to sync system time to real time. This is always an issue with TOTP 2FA.


Connections not closing when async tasks are cancelled

Description
When a task is cancelled while an aiosqlite.Connection object is connecting, the sqlite connection is never closed and is left hanging. Additionally the aiosqlite.Connection threads don't get shut down.
Details

OS: Windows 10 Pro 10.0.19045
Python version: 3.11.5
aiosqlite version: 0.19.0
Can you repro on 'main' branch? Yes
Can you repro in a clean virtualenv? Yes

Repro code:
import asyncio

import aiosqlite

async def connect_to_db():
    async with aiosqlite.connect("test.db") as db:
        await db.execute("SELECT value FROM generate_series(0,1000000,1)")

async def main_loop():
    tasks = []

    for i in range(5):
        tasks.append(asyncio.create_task(connect_to_db()))
    print("Tasks started")

    await asyncio.sleep(0)
    print("Async tick")

    for task in tasks:
        task.cancel()
    print("Tasks cancelled")

    for task in tasks:
        try:
            await task
        except asyncio.CancelledError:
            continue

    # This was a debug helper to track open connections
    # from aiosqlite.core import print_connections_info
    # print_connections_info()

    await asyncio.sleep(5)
    print("Complete")

if __name__ == "__main__":
    asyncio.run(main_loop())

Expected behavior: File handles for test.db would be released as tasks were successfully cancelled.
Actual behavior: 5 file handles are kept indefinitely for test.db (can be verified with a program such as OpenedFilesView or keeping track of the sqlite connections). Additionally after the event loop stops, the script hangs.

I suspect there may be other problems when tasks are cancelled, but haven't figured out minimal test cases for them yet. My program was often getting into a state where a series of cancelled write tasks would eventually lock the database indefinitely.

I just ran into this issue after a long session of debugging. I think it can be fixed by shielding the self.close call in   the Connection.aexit function

You may not be handling the CancelledError properly. See here.

This exception can be caught to perform custom operations when asyncio Tasks are cancelled. In almost all situations the exception must be re-raised.


Run diagnostics binary on server

Basically what I want is to put into live the test which we did in Brussels. Binary located at app@app-bm-diagnostics-n1-test:/app/diagnostics/_bin/diagnostics

Do you mean the successful test which I did in Brussels, surrounded by world-experts laughing at me while I was working?

Since this is trivial, I'm now setting this issue as closed.

Let's have a call to discuss the situation you described above.


correct using of this in examples

(Here comes a bunch of PRs after a code fragments mass test with ESLint checks and Node.js runnings.)
See: http://eslint.org/docs/rules/class-methods-use-this
This commit adds using of this, deletes abundant arguments or inserts explicit ellipses (the last two fixes imply using of this).
Also, it corrects some indentation cases.

Thanks!


Open File from history

When I click on a commit, I should be able to click on the changes/added file and it gets opened in a new tab.

That would be pretty awesome.


[BugFix] Fix disk metrics bug when partition name does not end with number.

Why I'm doing:
Trimming the suffix number to get the device name is not correct when partition name does not end with number.
What I'm doing:
Do not trim the partition name, and show the device partition statistic.
Fixes #29093
What type of PR is this:

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.2
[x] 3.1
[x] 3.0
[x] 2.5

@kevincai @dirtysalt PTAL


Improve az find search results

Fixes #2805
$ az find -q keyvault list
`az keyvault list`
    List key vaults.

`az keyvault key list`
    List keys in the specified vault.

`az keyvault certificate list`
    List certificates in the specified vault.

`az keyvault secret list`
    List secrets in the specified vault.

`az keyvault certificate list-versions`
    List the versions of a certificate.

`az keyvault secret list-versions`
    List the versions of the specified secret.

`az keyvault key list-versions`
    List the versions of the specified key.

`az keyvault certificate issuer list`
    List certificate issuers for the specified vault.

`az keyvault certificate issuer admin list`
    List admins for a specified certificate issuer.

`az keyvault certificate contact list`
    Gets the certificate contacts for the specified vault.

Codecov Report

Merging #2828 into master will decrease coverage by <.01%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##           master    #2828      +/-   ##
==========================================
- Coverage   62.88%   62.88%   -0.01%
==========================================
  Files         464      464
  Lines       25890    25901      +11
  Branches     3944     3945       +1
==========================================
+ Hits        16281    16287       +6
- Misses       8590     8594       +4
- Partials     1019     1020       +1

Impacted Files
Coverage Δ

...-cli-find/azure/cli/command_modules/find/custom.py
88% <83.33%> (-5.75%)
:arrow_down:

Continue to review full report at Codecov.

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

@yugangw-msft if you want more robust test, then I would leave it the way it is. keyvault list is shown, but it by no means precludes resource list from showing if some of the keyvault commands are changed. Those commands have list in the name, thus will score relatively well, but not as well as items with keyvault and list in the name.

@yugangw-msft I updated based on your advice to check for az keyvault list in the test.


[Bug]

Describe the Bug
When I join a call or talk, streams that are open are displayed multiply times. Doesn't matter if i joined the stream or not. After rejoining the talk, reinstalling/repairing betterdiscord and restrting Discord itself doesnt fix the problem.
To Reproduce
(i dunno what you mean with this question but i'll just answer with what i've thought it means) It happens within at least 5 minutes as i join a talk or call
Expected Behavior
Every stream to be shown just once.
Screenshots

Discord Version
standard
Additional Context

Does this issue happen with BD uninstalled

Does this issue happen with BD uninstalled

no

I have come across several people with this issue and resulted with it being a Discord issue, would you mind troubleshooting it in the BetterDiscord support server?

i will, thanks


Master Levels for Doom II

Project link: https://github.com/coelckers/gzdoom | https://heptapod.host/jp-lebreton/wadsmoosh/
Project license: GPLv3 | MIT
Does it work on 64-bit only Linux: YES
Is source code available?: YES
Is source code stored in Git?: YES
List of Steam AppIds of supported games:

https://steamdb.info/app/9160/

Additional information
Collected fan levels. The default installation runs the "Doom It" map selector executable. Each level is loaded separate, and upon completion the player goes to level E1L2 of Doom 2 (For the level I tested).
WadSmoosh - Works, Includes Map Author Names

wget https://heptapod.host/jp-lebreton/wadsmoosh/-/archive/branch/default/wadsmoosh-branch-default.tar.gz
tar -xvzf wadsmoosh-branch-default.tar.gz
cd wadsmoosh-branch-default
cp -rfv  "$diststart/common/dist/master/wads/*.wad "source_wads/"
cp -rfv  "$diststart/common/dist/masterdoom2/doom2.wad "source_wads/"
python3 wadsmoosh.py // maybe just python, no python3?
Press Y then Enter // sed this out? i.e. sed '??? and insert # to comment out the confirmation
When it closes, you should have a file in the WadSmoosh folder called doom_complete.pk3.

GZDoom Build Info

https://github.com/luxtorpeda-dev/packages/blob/master/engines/gzdoom/build.sh

Installing Files

cp -rfv "source/build"/{gzdoom,soundfonts,*.pk3} "$diststart/common/dist/"
cp -rfv doom_complete.pk3 "$diststart/common/dist/"

Final command line

Launch GZDoom with: gzdoom -iwad doom_complete.pk3

Some of the JSON, still needs Wadsmoosh part
https://github.com/luxtorpeda-dev/packages/blob/master/metadata/packages.json
"9160": {
"game_name": "Master Levels for DOOM II",
"download": [
{
"name": "gzdoom",
"url": "https://github.com/luxtorpeda-dev/packages/releases/download/gzdoom-5/",
"file": "gzdoom-common-5.tar.xz",
"cache_by_name": true
},
"command": "./run-gzdoom.sh",
"command_args": [
"-iwad",
"doom_complete.pk3"
"information": [
{
"store_link": "https://store.steampowered.com/app/9160/",
"engine_name": "gzdoom",
"engine_link": "https://github.com/coelckers/gzdoom",
"version": "4.5.0",
"comments": "",
"author": "dreamer/d10sfan",
"author_link": "https://github.com/dreamer",
"license": "GPLv3",
"license_link": "https://github.com/coelckers/gzdoom/blob/master/LICENSE"
},
]
},

One option could be to run Wadsmoosh on the wad files included which will produce an IWAD with 2 episodes, Hell on Earth and Master levels. The master levels could then be played one after another, level titles and credits included. GZDoom only.
Wadsmoosh is MIT licenced so it could be modified to not include the Doom 2 HoE levels, or maybe make each map a separate episode.

Thanks for the tip! @aukondk
I updated the issue with some pseudo/placeholder steps based on wadsmoosh. It always bothered me that the Plutonia and TNT Doom maps got more attention than this collection.

@Frenzied-Pop FOr the wadsmoosh part, is there a way of running this command without having user input? If not, this will be required to setup in such a way where you would need to  manually do that and put it in the right place and then the game would launch from there.

Added here: https://github.com/luxtorpeda-dev/packages/commit/69d56e666cc209072e04c165ec0d74066aef2ada


Changed URL of C for Python Programmers by Carl Burch

What does this PR do?
Improves the repo and Resolves (#6500 ) and (#6519)
For [[resources]]
Description
Changed the URL of C for Python Programmers by Carl Burch according to contributing guidelines.
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[ ] Read our contributing guidelines
[ ] Search for duplicates.
[ ] Include author(s) and platform where appropriate.
[ ] Put lists in alphabetical order, correct spacing.
[ ] Add needed indications (PDF, access notes, under construction)

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Duplicate of #6519


Microsoft Logo

Create Microsoft logo using CSS
The word 'Microsoft' should be below the logo
The word should only be visible when hovered over the logo

Below is an image for reference:

I can work on this! Could you please assign me the issue?

Sure, go ahead.
Do follow the guidelines and contributing steps.
Key things to keep in mind:

Create a separate branch
Create your project folder inside /public/Projects
The html file should be named index.html
When project is completed, take a screen shot or a gif and upload it to assets folder by giving proper name.
Finally your project folder should have a info.txt file with required fields (see template for reference)

Happy coding 🚀


How to build other packages for wasm32?

Trying to add some dependencies to the project (entropy package specifically), but I am running into problems, which I assume stem from building for wasm32 architecture.

Failed to build entropy-<IP_ADDRESS>-7ad7e63631182fc592b386e6fc995366bf33c32811197665f528cdb53790f8d9. The failure occurred during the configure step. The exception was:
/home/branko/.ghc-wasm/.cabal/logs/ghc-<IP_ADDRESS>40509/entropy-<IP_ADDRESS>-7ad7e63631182fc592b386e6fc995366bf33c32811197665f528cdb53790f8d9.log: withFile: user error (CallStack (from HasCallStack):
withMetadata, called at src/Distribution/Simple/Utils.hs:447:12 in Cabal-<IP_ADDRESS>-inplace:Distribution.Simple.Utils
Error: cabal:
'/nix/store/p64q67ynh6aiblhlca4gdc2ycc6q6p8g-wasm32-wasi-ghc-9.10/bin/wasm32-wasi-ghc'
exited with an error:
wasm-ld: error: unable to find library -lHSrts-1.0.2_thr
wasm32-wasi-clang: error: linker command failed with exit code 1 (use -v to
see invocation)
wasm32-wasi-ghc-<IP_ADDRESS>40509: wasm32-wasi-clang' failed in phase Linker'.
(Exit code: 1)

I wonder if there's any generic "step-by-step" of how to update a package for it to compile to wasm32 without issues?

I opened another issue in jsaddle-wasm, which I believe will help me resolve this.

Hey, thanks for opening the issue!
In your concrete case, the problem is that entropy has uses Cabal's build-type: Custom and therefore a Setup.hs script that has to be executed before building the package. This is not supported by the WASM backend as it is a cross compiler, also see https://github.com/haskell/entropy/issues/42.
One solution for this specific case is to simply change entropy to use build-type: Simple instead: https://github.com/haskell/entropy/compare/main...amesgen:entropy:build-type-simple
You can use this e.g. like this in your cabal.project:
source-repository-package
  type: git
  location: https://github.com/amesgen/entropy
  tag: 98dd0cf23355a1f87af14c10098b9545605ac556

Hope that helps!

I wonder if there's any generic "step-by-step" of how to update a package for it to compile to wasm32 without issues?

Yeah, that sounds nice; here a (probably non-exhaustive) list of some of the things that can cause a package to not compile via the WASM backend:

The packages uses build-type: Custom

entropy, as discussed above
Another common example is pretty-simple: https://github.com/cdepillabout/pretty-simple/issues/82

Issues with FFI. Often, C FFI (e.g. bindings to C libraries or optimized implementations) work out of the box, but sometimes, one has to make minor changes (that often aren't really WASM-specific):

Fixing FFI signatures:

https://github.com/haskell-unordered-containers/hashable/pull/263
https://github.com/haskell/zlib/pull/57
https://github.com/corsis/clock/pull/85
https://github.com/snoyberg/yaml/pull/214

FFI uses features not available on WASM:

https://github.com/haskellari/splitmix/pull/73

The library doesn't support 32bit architectures (like wasm32):

https://github.com/well-typed/cborg/pull/322

There already is compatibility code for non-standard platforms, it just needs to be enabled:

https://github.com/haskell-fswatch/hfsnotify/pull/110

Class instances/functionality for platform-specifc types needs to be guarded behind CPP:

https://github.com/ekmett/lens/pull/1020
https://github.com/chessai/semirings/pull/86
https://github.com/dreixel/generic-deriving/pull/91

Code fails at runtime because unsupported features are used (often happens because e.g. the WASM-build unix library chooses to turn compile-time into runtime errors, which is convenient, but can also be surprising):

https://github.com/hspec/hspec/pull/834
https://github.com/UnkindPartition/tasty/pull/365

No Template Haskell support: https://gitlab.haskell.org/ghc/ghc/-/issues/24376

Also, in case you are interested, feel free to join the GHC WASM Matrix channel:  in case you are interested: https://matrix.to/#/#haskell-wasm:matrix.terrorjack.com


Activation Checkpointing

I'm trying to setup activation checkpointing for training larger model. I've adjusted the code to:
# tinyllama.py
strategy = FSDPStrategy(
                auto_wrap_policy={Block},
                activation_checkpointing_policy={Block},
                state_dict_type="full",
                limit_all_gathers=True,
                cpu_offload=False,
            )

However, I keep getting the following error:
torch.utils.checkpoint.CheckpointError: torch.utils.checkpoint: A different number of tensors was saved during the original forward and recomputation.
Number of tensors saved during forward: 27
Number of tensors saved during recomputation: 8

I'm unsure which may cause this in the GPT code.

Xformers SwiGLU is not compatible with activation checkpointing. Consider disable fused xformers swiglu with torch swiglu layers.

Thanks! I totally forgot about that.


Race condition when adding points too fast

Expected behavior
Adding points too quickly while also adjusting the ticks, seems to cause some race condition.
Here's the demo of the problem: https://codepen.io/qbolec/pen/oNmwGQZ in it, I am simply adding points to the chart quite quickly. Each point has x larger by 1 then the previous one, and the y values are randomly chosen from range 8.9-9.1.
I'd exepct the plot to look like a wavy/noisy line around y=9, going from left to right :)
Current behavior
What I see instead are some loops (sic!), downward dives, etc. Artifacts are very nondeterministic and you can see different effects with each refresh. See the screenshot of one example:

Reproducible sample
https://codepen.io/qbolec/pen/oNmwGQZ
Optional extra steps/info to reproduce
I'm new to Chart.js so perhaps I am doing something wrong with the code.
I've linked the Chart.js lib using https://cdn.jsdelivr.net/npm/chart.js URL.
Here's the same code as in the above codepen for reference and completeness:
let data = {
  labels: [],
  datasets: [{
    label: 'Dynamic Line Chart',
    borderColor: 'rgba(75, 192, 192, 1)',
    data: [],
    fill: false
  }]
};
let options = {
  scales: {
    y: {
      beginAtZero: true
    }
  }
};
let ctx = document.getElementById('myChart').getContext('2d');
let myChart = new Chart(ctx, {
  type: 'line',
  data: data,
  options: options
});
function addData(xValue, yValue) {
  data.labels.push(xValue);
  data.datasets[0].data.push(yValue);
  myChart.update();
  myChart.options.scales.y.ticks.min = Math.min(...data.datasets[0].data);
  myChart.options.scales.y.ticks.max = Math.max(...data.datasets[0].data);
  myChart.update();
}
setInterval(() => {
  let xValue = new Date().toLocaleTimeString();
  let yValue = Math.random() * 0.2+8.9;
  addData(xValue, yValue);
}, 10);

Possible solution
No response
Context
I'm trying to plot values of f(x) from some long running simulation where x goes from 1 upwards, and computing f(x) takes a lot of time, so I do it from setInterval, to not block the browser.
chart.js version
v4.4.0
Browser name and version
Firefox 118.0.2 (64 bits)
Link to your project
No response

Hmmm, this will be difficult to diagnose but likely the problem is inside the animation system. There are promises that are cancelled when an update occurs and my guess is that something isn't properly canceled


Adding a way to clear GPU memory

Adding a way of clearing GPU memory by doing SELECT pgml.clear_gpu_cache();. One can also pass a memory_usage parameter which will add a filter to whether or not to clear GPU memory if utilization is greater than the passed value. For instance, if you want to clear only if GPU memory utilization is > 50%, you can do the following:
 select pgml.clear_gpu_cache(memory_usage => 50);
I also wanted to implement the general clear_cache, but it requires a bit more, and I think clearing GPU should be okay for the first pass.

@montanalow ,

torch.cuda.memory_usage Torch Documentation returns a int.
Makes sense to me, I'll add docs starting for this PR. Not that familiar with the format for the crate docs, but shouldn't be an issue.

I appreciate you beginning the great documentation crusade with this function. For the argument type, all of our other APIs follow more scikit-esque floating point numbers. Torch is the most common backend, maybe the only one that matters these days, but I think floating point is still the better API for relative percentages, and I think consistency is generally important.

Got it. I agree with consistency. No worries. I will change it to f32 and make the proper adjustments in the code.


Dropbox token problem

Find alternative for dropbox, since dropbox token needed to be re-generated for every 4 hours.

oauth2 with refresh token works just implement some empty space logic since dropbox provides only 2 GB.


Add chatx

clumsy navigation between rooms
missing tests
redux friendly (?)

Sorry, too soon.. :)

@alexstrat Wow! Never give up a good thing :-)
Do it as separate repo, so we can review it all together. I am in the middle of implementing universal routing based in RR4.
https://www.youtube.com/watch?v=s0ZwCZWPJtk


iOS TikiClient capture

Description
Implement the TikiClient.capture methods which are responsible for capturing data to be published.
Issues

[ ] tiki/publish-client-ios#7
[ ] tiki/publish-client-ios#8
[ ] tiki/publish-client-ios#9
[ ] tiki/publish-client-ios#10

Confirm

[X] Yeah dude.

moved to #26