Delete line pushes screen to the right (even if word wrap is on)

Posted on vscode then narrowed it down to GitLens. Have created two screen recordings, one with GitLens enabled, one disabled.
Enabled:

Disabled:

GitLens Version: 7.5.8
VSCode Version: 1.19.3
OS Version: macOS Sierra 10.12.6 (16G1212)

Steps to Reproduce:

Delete line

Hi, I am having this issue now with 8.1.1. If I disable GitLens it does not occur, as in the GIFs above.


Load more than one YAML Corpus

Makes sense to load more than one YAML corpus?
Some people have asked about this, so they would be able to develop a YAML corpus specialized in some context area, our some specific subject in different files so it would be easier to develop, share and contribute.
What you think about it?

I think that would be interesting. The configuration could be through the corpus env variable, if you pass a folder you train with all YAML from it, if you pass a file you train from this single source.


Is crafting items with netherite intentional?

Most netherite equipment is simply made on the Smithing Table, so it is odd having to craft items out of the ingots, instead of just upgrading the item itself.

Fixed in 1.1.0, thanks!


Support Laravel 8

When Laravel 8 is released next week, this package should be updated, tested and released to support it.

This package can be updated after:

bjuppa/laravel-blog https://github.com/bjuppa/laravel-blog/issues/71
kontenta/kontour https://github.com/kontenta/kontour/issues/190

Both dependencies ☝ are updated now, so I can proceed with this one!

PR opened! https://github.com/bjuppa/laravel-blog-admin/pull/21
Then tag new release!

New release tagged https://github.com/bjuppa/laravel-blog-admin/releases/tag/v1.1.0


Link to librt

When building and linking to the latest SuiteSparse I found that you
needed to additionally link to librt.
Otherwise you get various errors on certain symbols not being found. I
noticed that sage and octave users where having similar problems.
Here is an example of the problems people were having https://savannah.gnu.org/bugs/?37031
I personally saw errors related to missing clock_gettime functions.

@rc fixed the commit message format.

@rc fixed whitespace / typos.


fix: issue #16

Checklist

[ ] run npm run test and npm run benchmark
[ ] tests and/or benchmarks are included
[ ] documentation is changed or added
[x] commit message and code follows the Developer's Certification of Origin
and the Code of conduct

I have made the required changes.

@Eomm  I have made changes for the scopes, can you please review.


On update a relations, data  not save

Version information

Laravel: v6.0.1
Voyager: v1.3
PHP: 7.2
Database: MySQL

Description

On update a relations, data not save,
all BREADS don't  save data on update, 2 projects same problem.
Steps To Reproduce
Steps to reproduce the behavior:
See images for details.
Screenshots

On update I select GOLBAN STEFAN

After save get null

Additional context
I changed public function insertUpdateData method
was :
            if ($row->type == 'relationship' && $row->details->type == 'belongsTo') {
                continue;
            }

now:
            if ($row->type == 'relationship' && $row->details->type == 'belongsTo') {
                $data->{$row->details->column}=$request->get($row->field);
                continue;
            }

Thank you very much for the work you do for the community

You are not telling us when did you start having the problem, so I'll try to read your mind let's see if I can get it right :grin:

You started having the problem after update from v1.2.7 to v1.3.0
you don't have edit checked for resident_id OR you have a custom relationship view

Solution:
check edit for resident_id
AND
update your custom relationship view, if you have it, and apply this change #4439
You should also revert any changed you did in vendor.
If I didn't get it right you'll have to give us more informations.

All is checked, I fihin the proble start on update, before this evryfing work fine

As mentioned in my previous comment the usual three places where you can cause this problem are:

BREAD configuration
Relationship view
insertUpdateData

BREAD configuration looks ok, now you need to check the other two things.
Of course if you extedend or altered other files problem might be somewhere else.

i have some problems, new instalations of voyager 1.3.0

working now, thanks Mr. MrCrayon for help, make sure field is checked on EDIT or ADD

@golbanstefan did you solve the problem?
If not try to:

remove /vendor/tcg/voyager
run a composer install (to be sure you don't have any code changed in vendor)
check you didn't override relationship view
check you didn't override Controller insertUpdateData method


Can we use data from intermediary databases?

Question to Vaalentyna, 5/3:
Can you use data from synthetic publications/ intermediary databases (a couple examples attached), or does each record need to be tracked to the original source? A lot of the records in ForC come from this type of source, and we can provide data much more efficiently if you can accept records from this sort of source.

from Valentyna:

One of criteria for emission factor to be accepted by the Editorial Board members for further uploading to the EFDB is documentation. If synthetic publications/ intermediary databases have transparent description on the methodology applied to derive EFs (or have a brief description and a reference to the original source) and these EFs are actually present (not modified/rounded) in such data sources, it is ok for being further considered at the EFDB meeting.

This effectively means that we can't use intermediary databases, although there may be some exceptions. I have noted this in the draft manuscript.


SSID with spaces and hotspots survey

Hi there, first of all congratulations for this incredible piece of software on a humble esp8266, very nice.
Only two questions:

When I fill the SSID name with a space character within, it then outputs a SSID with a + plus character in place. Is it possible to fix or is it a C language constrain ?
Is it possible to implement a hotspot ap survey function in web interface? (I've seen an excellent function in esp8266_deauther here on github, with some minor caveats).
Kind regards

You can enter a blank in the ssid (and any other string in the CLI) by using a backslash, e.g. 'My\ SSID' gives 'My SSID'.
That scan is somewhat more work. I'll thing about this for a future release.

Oh, great, it IS a special character.. thanks a lot for your answer and sorry for bothering as it was already written in docu. (shame on me :) )
Kind regards


Drop of packet due to invalidated neighbours

When I run some test on Windows, my ping function fails. Usually after number of nodes is ~20 or more. They are all in router states, and they're neighbours of one another.
After debugging a bit, it appeared that the reason of failure lies in Mac::ReceiveDoneTask here:
if (neighbor == NULL)
{
    otLogDebgMac("drop not neighbor");                         <<===== HERE
    ExitNow(error = kThreadError_UnknownNeighbor);
}

When I looked into why neighbor is NULL, I found out that this->mNetif->mMleRouter->mRouters has all of its records (aka neighbor routers) in an invalid state, including the sender of a packet.
It seems to me like the neighbour timeout has expired and they were invalidated. But I don't know why weren't they queried again or something.
Also, when I query neighbour using the node API, it returns that they are neighbours.
And unfortunately as for now this is all I've discovered about this issue, because this 'invalidation' happens to a random node, and before that happens it's not clear which one will fail, hence catch the moment when the neighbours are invalidated is very hard.
I was wondering if you would probably know what might be the issue, or if you could give me some pointers on where to look and what to check?

Thanks for reporting this issue.  Do you have OpenThread logging enabled?  If so, can you provide any log output?

I do have some logs, though they seem not quite complete... Anyway, I have attached output from my test along with the OpenThread logs.
logs.zip

I do have some logs, although they seem to be not complete. Anyway, I have attached output from my test along with OpenThread driver's logs.
logs.zip

Thanks for providing the logs.  I looked through them, however I am not able to make much sense of them.
Some observations:

All "drop not neighbor" log entries occur around 09:42:15.
Coincidentally, all "delete router id" log entires also occur around 09:42:15 on thread 05F8.
There is a big time gap in the log:

3/1/17 17:47:38.225     0004    1ADC                      [otCore]      ---> otPlatRadioReceiveDone kThreadError_None
3/1/17 17:47:48.479     0004    1ADC                      [otCore]      MAC Received from short address 5c00
3/2/17 09:40:45.386     0004    1ADC                      [otCore]      MAC drop not neighbor
3/2/17 09:40:55.416     0004    1ADC                      [otCore]      MAC Dropping received frame, kThreadError_UnknownNeighbor
3/2/17 09:41:16.177     0004    1ADC                      [otCore]      <--- otPlatRadioReceiveDone
3/2/17 09:42:14.955     0004    1ADC                       [otLwf]      <--- otLwfRadioReceiveFrame

Can you help provide some background on the log and test scenario?

Yes, neither could I make much sense of them. I am currently working on making them clearer, and then parsing them and separating for different nodes. Thing is that there are multiple nodes running on one machine and logs are mixed for all of them. Yes, they could be distinguished by thread id, but this is a complicated way. So, I will provide you with another log file shortly. But it takes long time for me because after merging the latest changes from master this issue seems to have become much harder to reproduce...

@vikoz, are you still running into this issue?

@vikoz, is this still an issue for you?  If not, we should close this out.

Closing this out since it's gone stale.  Please reopen if this is still an issue.


Add ui_params_text similar to existing header_text

We would like to use a custom javascript function for componentsSorter. Currently it is impossible to specify it in ui_params since it is converted to JSON. Adding a ui_params_text similar to the existing header_text would allow us to provide such a specification.

Coverage remained the same at 91.184% when pulling 4db8adaf9d163e5f126cb55a565fbeff57eab106 on xu-hao:master into 1fa781747ae580bd6012ee181e00b4c0d0b39daf on rochacbruno:master.

@javabrett Thanks for reviewing this PR. I've added an example to flasgger/examples/changelog_090.py.

Jotting down some thoughts while they are in my head.
My main hesitation with this is whether it can be done without an additional setting.  Maybe it can't, or at least can't without using JSON to go between Python dict and JavaScript object.  The Python json.JSONEncoder seems difficult to override, and there's no simple way to distinguish between the quoted string setting and the JS function.

Thanks @xu-hao ☕ 🍰 .


Change non-equality operators to XOR where possible

I know this probably would compromise the readability of the code, but if your objective is to be the fastest of them all, there will be sacrifices you will need to make.
Thank you for your consideration.

Coverage remained the same at 100.0% when pulling fb77451469b02768134e1291cefc11000015dd0a on dchan3:neq2xor into 00a6dc21d5ae279f74c2d6ef8c1276aed4978a1d on epoberezkin:master.

Coverage remained the same at 100.0% when pulling fb77451469b02768134e1291cefc11000015dd0a on dchan3:neq2xor into 00a6dc21d5ae279f74c2d6ef8c1276aed4978a1d on epoberezkin:master.

Coverage remained the same at 100.0% when pulling fb77451469b02768134e1291cefc11000015dd0a on dchan3:neq2xor into 00a6dc21d5ae279f74c2d6ef8c1276aed4978a1d on epoberezkin:master.

I'm running macOS El Capitan 64-bit on a 2014 MacBook Pro consisting of an Intel Core i5 running at 2.8 GHz with 2 cores total.

I meant what the node version? Do you see the difference consistently?

I'm running Node 10. The difference fluctuates with every run shortly after the one before it, so sometimes nano-equal will appear to be as fast or faster, although I do get fast-deep-equal as the fastest most of the time.

The results of the benchmark tests on my latest commit generally indicate that fast-deep-equal was the fastest.


Can't view tabs spaces and other hidden text???

Type: Feature Request
Seems like a pretty basic editor feature.  I'm trying to format a log for import and knowing the tab location is important.  But alas, it does not appear to be possible.
VS Code version: Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:55:25.390Z)
OS version: Windows_NT x64 10.0.22621
Modes:

/needsMoreInfo
Please describe what you are trying to achieve or provide schematic screenshot.
Have you tried to change editor.renderWhitespace setting?

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Has no default export

Hy, when i try to import in to my angular6 project:
import SecureLS from 'secure-ls'
but i receive this messages:
ERROR in node_modules/secure-ls/dist/secure-ls.d.ts(12,21): error TS1122: A tuple type element list cannot be empty.
src/app/pages/login/login.component.ts(16,8): error TS1192: Module
"node_modules/secure-ls/dist/secure-ls" has no default export.
Can anyone help me, with this?

It seems like the fix for https://github.com/softvar/secure-ls/pull/20 inadvertently broke TypeScript import, likely not capturing the SecureLS default export.
I had to rollback to<EMAIL_ADDRESS>and import like so:
import * as SecureLS from 'secure-ls';
...
const ls = new SecureLS({...});

Thank's @earthican thats work.

Any update on this?
I am getting this issue with 1.2.6 on Angular 8.
// package.json
"@angular/common": "^8.2.12"
"secure-ls": "^1.2.6",
"typescript": "~3.5.3"

// code
import * as SecureLS from 'secure-ls';
...
this.secureLS = new SecureLS({encodingType: 'aes'});

// 'ng serve' errors
my.service.ts:1599:20 - error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.

my.service.ts:8:1
    8 import * as SecureLS from 'secure-ls';
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead.

I had to revert to 1.2.3 to get working.

@LukeHartcher as long as #24 is not accepted, this issue will remain.

I still face this issue on @1.2.6

Can someone please help me, why I get this error:
import SecureLS from "secure-ls"; //error: Cannot find module 'secure-ls' or its corresponding type declarations.


I'm gonna merge it in anyways, but won't publish till next week.

Well the password import would be nice, but it's technically infeasible.
It's really strange to me that it feels like I'm the only one who cares about picking up where I left off in a thread, especially in the case of an infinite-scrolling format. Wouldn't it be a nice user experience to come to a new forum and not have to figure out where you left off in a thread, in an especially active forum that you might not have had time to visit for a while? :)
Thanks for accommodating my esoteric requests!

Well the password import would be nice, but it's technically infeasible.

not exactly, we have the _imported_MD5 hash, if you can write the same comparePassword() in node, that works exactly like the Vanilla (for example) one - you can then update the user's password with the cleartext in hand - then delete the _imported_MD5
https://community.nodebb.org/topic/2688/after-migration-passwords/13

that's the ticket for it by the way, ive been very busy to implement new feature though
https://github.com/akhoury/nodebb-plugin-import/issues/64


bucket policy details page

Closing and reopening to make sure this isn't a refresh issue.
 Not mergeable. Merge type "merge" disallowed by repo settings

/hold

/lgtm

/retest

Fix the CSS for OBC data.

Fix the CSS for OBC data.

@cloudbehl ack... will do it in separate PR.


How to run inference with dynamic shape model ?

Hi bro,
I have a model that supports dynamic shape, but tflite does not support it when converting, but it does support it from the code.
Doc from TFL
https://www.tensorflow.org/lite/guide/inference#run_inference_with_dynamic_shape_model

If you want to run a model with dynamic input shape, resize the input shape before running inference. Otherwise, the None shape in Tensorflow models will be replaced by a placeholder of 1 in TFLite models.
The following examples show how to resize the input shape before running inference in different languages. All the examples assume that the input shape is defined as [1/None, 10], and need to be resized to [3, 10].

// Resize input tensors before allocate tensors
interpreter->ResizeInputTensor(/*tensor_index=*/0, std::vector<int>{3,10});
interpreter->AllocateTensors();

How to operate with  react-native-fast-tflite

Hey - this is currently not supported in Fast TFLite. Shouldn't be too tricky to add though

Do you plan to add this or do you have a quick tip to self-implement it? I'm not that familiar with C++ and didn't find where the input tensors are fed into the interpreter/where the tensors are allocated. Thanks already so much!

The link from the docs should be a hint on how to get started, I personally don't have any plans to implement this right now unless someone pays me to :)

Interesting - yea maybe we can expose this differently by making the tensors in inputs read-write as well? Not sure if that'd be a good API design as it's probably not what users expect:
const model = loadTensorFlowModel(..)
model.inputs[0].size = 4 // resize it

Or somthing like
const model = loadTensorFlowModel(..)
model.resizeInputTensors([4])

any updates on this?


Error after updating to Home Assistant 2024.2.0 update

Description
After updating to the latest Home Assistant version, my Tuya BLE custom integration started throwing an import error on startup. Specifically, there is a failure importing CONF_ACCESS_ID from homeassistant.components.tuya.const.
Log details
Logger: homeassistant.setup
Source: setup.py:251
First occurred: 10:42:15 PM (1 occurrences)
Last logged: 10:42:15 PM

Setup failed for custom integration 'tuya_ble': Unable to import component: cannot import name 'CONF_ACCESS_ID' from 'homeassistant.components.tuya.const' (/usr/src/homeassistant/homeassistant/components/tuya/const.py)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component
    component = integration.get_component()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 827, in get_component
    ComponentProtocol, importlib.import_module(self.pkg_path)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 994, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/config/custom_components/tuya_ble/__init__.py", line 17, in <module>
    from .cloud import HASSTuyaBLEDeviceManager
  File "/config/custom_components/tuya_ble/cloud.py", line 18, in <module>
    from homeassistant.components.tuya.const import (
ImportError: cannot import name 'CONF_ACCESS_ID' from 'homeassistant.components.tuya.const' (/usr/src/homeassistant/homeassistant/components/tuya/const.py)

And here!
Logger: homeassistant.config_entries
Source: config_entries.py:2247
First occurred: 11:29:28 AM (1 occurrences)
Last logged: 11:29:28 AM
Error occurred loading flow for integration tuya_ble: cannot import name 'CONF_ACCESS_ID' from 'homeassistant.components.tuya.const' (/usr/src/homeassistant/homeassistant/components/tuya/const.py)

Yeah, I came here to say the same thing

Same issue here.

There is a new code for Tuya integration. Some changes made that removed the const "CONF_ACCESS_ID" from:
https://github.com/home-assistant/core/blob/dev/homeassistant/components/tuya/const.py
What changes should be made by tuyable is unknown to me...

I have try to install a version of TUYA before 2024.2.0 as custom_componentes but still nos working. I'll keep trying.

I rolled back the update. I'm currently on 2024.1.6. rather than 2024.2.0 The good news is that my tuya_ble is working again. I realise it's something to do with the fact that the tuya integration now uses a different method to log in.  You now need to remove them from the script which is easy, just go through all the .py and remove all instances of them. Now the problem comes I think where they need new login credentials, I have no idea how to see the tuya integration's code and see how it extracts those credentials. Likely once you've identified it, it's copypaste work.

I was able to fix mine, you can take a look here:
[](url)

I was able to fix mine, you can take a look here: #112 (comment)

Good work, I still have problem installing with message:
Config flow could not be loaded: {"message":"Invalid handler specified"}

I was able to fix mine, you can take a look here: #112 (comment)

Yes you almost did it! The next thing you should look on is the CONF_COUNTRY_CODE, which is also removed from tuya/const

Thank you everyone, especially @ppcsite & @Chreece , your suggestions revived my Fingerbot back from the dead!
For Anyone curious what's the fix, this it it:

edit const.py by adding those

CONF_AUTH_TYPE = "auth_type"
CONF_PROJECT_TYPE = "tuya_project_type"
CONF_ENDPOINT = "endpoint"
CONF_ACCESS_ID = "access_id"
CONF_ACCESS_SECRET = "access_secret"
SMARTLIFE_APP = "smartlife"
TUYA_SMART_APP = "tuyaSmart"

edit config_flow.py by making sure those sections look like as follow

from homeassistant.const import (
    CONF_ADDRESS,
    CONF_COUNTRY_CODE,
    CONF_PASSWORD,
    CONF_USERNAME,
)

from homeassistant.components.tuya.const import (
    CONF_APP_TYPE,
    CONF_ENDPOINT,
    TUYA_RESPONSE_CODE,
    TUYA_RESPONSE_MSG,
    TUYA_RESPONSE_SUCCESS,
)

from .const import (
    DOMAIN,
    CONF_ACCESS_ID,
    CONF_ACCESS_SECRET,
    CONF_AUTH_TYPE,
    SMARTLIFE_APP,
    TUYA_SMART_APP,
)

edit cloud.py sections below to look the same

from homeassistant.const import (
    CONF_ADDRESS,
    CONF_COUNTRY_CODE,
    CONF_DEVICE_ID,
    CONF_PASSWORD,
    CONF_USERNAME,
)

from homeassistant.components.tuya.const import (
    CONF_APP_TYPE,
    CONF_ENDPOINT,
    DOMAIN as TUYA_DOMAIN,
    TUYA_RESPONSE_RESULT,
    TUYA_RESPONSE_SUCCESS,
)

from .const import (
    CONF_PRODUCT_MODEL,
    CONF_UUID,
    CONF_LOCAL_KEY,
    CONF_CATEGORY,
    CONF_PRODUCT_ID,
    CONF_DEVICE_NAME,
    CONF_PRODUCT_NAME,
    DOMAIN,
    TUYA_API_DEVICES_URL,
    TUYA_API_FACTORY_INFO_URL,
    TUYA_FACTORY_INFO_MAC,
    TUYA_API_DEVICES_URL,
    TUYA_API_FACTORY_INFO_URL,
    TUYA_FACTORY_INFO_MAC,
    CONF_ACCESS_ID,
    CONF_ACCESS_SECRET,
    CONF_AUTH_TYPE,
    SMARTLIFE_APP,
)

Fantastic work. I have problem as follows:
when installing I get: Error Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble
logs:
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/tuya_ble/config_flow.py:134
Integration: Tuya BLE
First occurred: 10:39:53 (1 occurrences)
Last logged: 10:39:53
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 96, in async_start
await gather_with_limited_concurrency(
File "/usr/src/homeassistant/homeassistant/util/async.py", line 188, in gather_with_limited_concurrency
return await gather(
^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 186, in sem_task
return await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 945, in async_init
flow, result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 973, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 501, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tuya_ble/config_flow.py", line 239, in async_step_bluetooth
return await self.async_step_login()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tuya_ble/config_flow.py", line 282, in async_step_login
return _show_login_form(self, user_input, errors, placeholders)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tuya_ble/config_flow.py", line 134, in _show_login_form
[country.name for country in TUYA_COUNTRIES]
^^^^^^^^^^^^^^
NameError: name 'TUYA_COUNTRIES' is not defined

"/config/custom_components/tuya_ble/config_flow.py", line 134, in _show_login_form [country.name for country in TUYA_COUNTRIES] ^^^^^^^^^^^^^^ NameError: name 'TUYA_COUNTRIES' is not defined

recheck your changes, you haven't done everything as it should... TUYA_COUNTRIES shouldn't exist

"/config/custom_components/tuya_ble/config_flow.py", line 134, in _show_login_form [country.name for country in TUYA_COUNTRIES] ^^^^^^^^^^^^^^ NameError: name 'TUYA_COUNTRIES' is not defined

recheck your changes, you haven't done everything as it should... TUYA_COUNTRIES shouldn't exist

Changes checked, but TUYA_COUNTRIES exists in config flow later in code I think.

I super appreciate all you awesome folks, my smart lock is working beautifully once again.

"/config/custom_components/tuya_ble/config_flow.py", line 134, in _show_login_form [country.name for country in TUYA_COUNTRIES] ^^^^^^^^^^^^^^ NameError: name 'TUYA_COUNTRIES' is not defined

recheck your changes, you haven't done everything as it should... TUYA_COUNTRIES shouldn't exist

Changes checked, but TUYA_COUNTRIES exists in config flow later in code I think.

Yep, I have it in 3 places. Maybe someone can post a link to the full file contents for the 3 mentioned above? Copy and replace the entire shebang.

"/config/custom_components/tuya_ble/config_flow.py", line 134, in _show_login_form [country.name for country in TUYA_COUNTRIES] ^^^^^^^^^^^^^^ NameError: name 'TUYA_COUNTRIES' is not defined

recheck your changes, you haven't done everything as it should... TUYA_COUNTRIES shouldn't exist

Changes checked, but TUYA_COUNTRIES exists in config flow later in code I think.

Yep, I have it in 3 places. Maybe someone can post a link to the full file contents for the 3 mentioned above? Copy and replace the entire shebang.

I have overcome this by removing integration and downloading it completely from:  GITHUB REPO

"/config/custom_components/tuya_ble/config_flow.py", line 134, in _show_login_form [country.name for country in TUYA_COUNTRIES] ^^^^^^^^^^^^^^ NameError: name 'TUYA_COUNTRIES' is not defined

recheck your changes, you haven't done everything as it should... TUYA_COUNTRIES shouldn't exist

Changes checked, but TUYA_COUNTRIES exists in config flow later in code I think.

Yep, I have it in 3 places. Maybe someone can post a link to the full file contents for the 3 mentioned above? Copy and replace the entire shebang.

I have overcome this by removing integration and downloading it completely from: GITHUB REPO, It must have been other changes to other files previously.

@mimikm what's the best way to use the github repo directly? I find it super annoying to navigate the actual file system to do a git clone.

@scrampker in hacs  in top right corner are three dots. There you can add custom repository. Place link I have attached and add. Then tuya_ble will be available in hacs to add.

Ah, thanks, I actually didn't notice it was a different project entirely. Though does get a bit messy since it's named exactly the same. Anyhow I'm sure the main issue will get resolved, but I'll give this a go for now.
Much appreciated.

@scrampker main repository is not supported anymore.

Gotcha, well the repo you listed does work, but despite my lock being specifically listed (ludzroix) all it can do is see if the motor state is on or off (lock/unlock.) No control. Guess I'm back to the drawing board.

Hello
I have follow the modifications all files and the integration BLE will function ...
So many thanks for the works of the contributors  (sorry for my french and my poor english...)
I am trying to add a new device in Tuya BLE but it was asked for :
COUNTRY
Tuya Iot Access ID
Tuya Iot Access Secret
Account
Password
But after typing this 5 data, the error message is :
No unconfigured devices found.
But this battery is in the cloud (visible under tuya app)
I have other battery appears....and in the Tuya BLE that I  have added there is many week
If I click on configure so I have a message  :
Device is not registered in Tuya cloud

removed the duplicates from
from .const import (
CONF_PRODUCT_MODEL,
CONF_UUID,
CONF_LOCAL_KEY,
CONF_CATEGORY,
CONF_PRODUCT_ID,
CONF_DEVICE_NAME,
CONF_PRODUCT_NAME,
DOMAIN,
TUYA_API_DEVICES_URL,
TUYA_API_FACTORY_INFO_URL,
TUYA_FACTORY_INFO_MAC,
TUYA_API_DEVICES_URL,
TUYA_API_FACTORY_INFO_URL,
TUYA_FACTORY_INFO_MAC,
CONF_ACCESS_ID,
CONF_ACCESS_SECRET,
CONF_AUTH_TYPE,
)
and all works again!
SteveW

Thank you everyone, especially @ppcsite & @Chreece , your suggestions revived my Fingerbot back from the dead!
For Anyone curious what's the fix, this it it:

edit const.py by adding those

CONF_AUTH_TYPE = "auth_type"
CONF_PROJECT_TYPE = "tuya_project_type"
CONF_ENDPOINT = "endpoint"
CONF_ACCESS_ID = "access_id"
CONF_ACCESS_SECRET = "access_secret"
SMARTLIFE_APP = "smartlife"
TUYA_SMART_APP = "tuyaSmart"

edit config_flow.py by making sure those sections look like as follow

from homeassistant.const import (
    CONF_ADDRESS,
    CONF_COUNTRY_CODE,
    CONF_PASSWORD,
    CONF_USERNAME,
)

from homeassistant.components.tuya.const import (
    CONF_APP_TYPE,
    CONF_ENDPOINT,
    TUYA_RESPONSE_CODE,
    TUYA_RESPONSE_MSG,
    TUYA_RESPONSE_SUCCESS,
)

from .const import (
    DOMAIN,
    CONF_ACCESS_ID,
    CONF_ACCESS_SECRET,
    CONF_AUTH_TYPE,
    SMARTLIFE_APP,
    TUYA_SMART_APP,
)

edit cloud.py sections below to look the same

from homeassistant.const import (
    CONF_ADDRESS,
    CONF_COUNTRY_CODE,
    CONF_DEVICE_ID,
    CONF_PASSWORD,
    CONF_USERNAME,
)

from homeassistant.components.tuya.const import (
    CONF_APP_TYPE,
    CONF_ENDPOINT,
    DOMAIN as TUYA_DOMAIN,
    TUYA_RESPONSE_RESULT,
    TUYA_RESPONSE_SUCCESS,
)

from .const import (
    CONF_PRODUCT_MODEL,
    CONF_UUID,
    CONF_LOCAL_KEY,
    CONF_CATEGORY,
    CONF_PRODUCT_ID,
    CONF_DEVICE_NAME,
    CONF_PRODUCT_NAME,
    DOMAIN,
    TUYA_API_DEVICES_URL,
    TUYA_API_FACTORY_INFO_URL,
    TUYA_FACTORY_INFO_MAC,
    TUYA_API_DEVICES_URL,
    TUYA_API_FACTORY_INFO_URL,
    TUYA_FACTORY_INFO_MAC,
    CONF_ACCESS_ID,
    CONF_ACCESS_SECRET,
    CONF_AUTH_TYPE,
    SMARTLIFE_APP,
)

Fixed it for me. You're amazing!

ikekornikh

Thanks for the synthesis! I followed your instructions and I confirm it work for me too :)

@mikekornikh
Great instructions. Confirmed working again as well.
Thanks.

I have overcome this by removing integration and downloading it completely from: GITHUB REPO, It must have been other changes to other files previously.

Any idea who setup this new repo and if it will be maintained going forward? Thanks.

Hello For all who have mod all the files, does it possible to had a new BLE Tuya device or not ?
My proxy bluetooth find new device BLE and it wa registered in to the cloud (with Tuya App) But when I want to add this and after type all info (region, ID and other account...) I stay with the error (Tuya is not registered in the cloud....
May be I must rolled back the update to 2024.1.6. appaired the new device and then reupdate to 2024.2.0 ??
Thanks for your helps

@titou4307
When I had this problem the last time it was because within the Tuya IOT platform, the "IOT Core" service needed to be applied for and/or had expired to register new devices:

@JanOstrowka still not working with your repo.... also the ne fingerbot category kg is missing....

@JanOstrowka still not working with your repo.... also the ne fingerbot category kg is missing....

Sorry, I should have added a disclaimer to the repository. It's a work in progress and unfortunately it doesn't work at the moment

Hey switching to this fork changed Integration Setup error from
Error Config flow could not be loaded: {"message":"Invalid handler specified"
to
Error Config flow could not be loaded: 500 Internal Server Error Server got itself in trouble
nice!
Just kidding...Thanks for picking this one up and also thanks to the original dev :)👍
Looking forward to a fix which will actually let me use this integration for the first time (on HA 2024.2.2) :D

Has anyone else been getting no unconfigured devices found ?

I also have the same issue :(

Me too...

See https://github.com/PlusPlus-ua/ha_tuya_ble/issues/105#issuecomment-1951566234
Maybe it helps you as well.

That's what I'm using.
Any other version just errors with invalid config flow

I managed to solve the "no unconfigured devices found" issue. Somehow the devices got disabled... perhaps HA disabled it after the integration broke. I simply re-enabled it on the UI, now it's working again.


PLATML 4532 - made changes in sample Python to absorb the XDM <IP_ADDRESS>…

… schema changes

Maybe not now, but I'm in favor of a formal changelog file to capture, document and explain changes.  The platml-xxx ticket reference is helpful, but not for anyone outside the firewall.


Example code is incomplete

Hi,
the example PowerShell code above has a localhost redirect_uri which is probably wrong. Which redirect_uri do I need to specify in order to get this working?
Regards,
Thomas

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 4916833a-183f-27a2-b110-281915b06a27
Version Independent ID: bd91aa56-2267-9eb4-de6e-53d4c97df651
Content: Activate Azure subscriptions and accounts
Content Source: articles/cost-management/activate-subs-accounts.md
Service: cost-management
GitHub Login: @bandersmsft
Microsoft Alias: banders

@SnoopyCoder Thanks for bringing this to our attention. Your feedback has been shared with the content owner for further review.

@snoopycoder Hi. I spoke with the enginnering team about this. When you successfully run the script, the operation ends with the browser showing the URL http://localhost:8080/CloudynJava. Updated the article to state that.
#please-close
@femsulu

@SnoopyCoder We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


New Scraper: Mayor- Mayor's Advisory Commission for Citizens with Disabilities

Create a new scraper for Mayor Mayor's Advisory Commission for Citizens with Disabilities
Website: https://mayors-office.cityofomaha.org/mayor-s-advisory-commission-for-citizens-with-disabilities

a list of dates but nothing else: https://humanrights.cityofomaha.org/disabilities-comm-mccd/mccd-board-meetings


local_settings.py modification for DCOS deployment

I talked with Trevor about deploying Scale into DCOS.
I believe we need to modify the local_settings.py to support Environment variables. This will make scale modifiable outside of the container as well as simplify the deployment of the containers into DCOS (Marathon).
Trevor also made the suggestion of making the default local_settings.py support environment variables as well as exporting it as a volume so we can use it as we do today.
FYI: we do have a version of DCOS on DevNet that we can test with.

This is OBE and has already been implemented in master.


Facebook Handover

Is handover only for 2 apps(chatbots) or I can also pass a thread from my chatbot to the facebook page inbox?
If I can what, How can I do that? I tried doing it this way :
 controller.api.handover.pass_thread_control(currentUser.id, '263902037438966', 'User\'s request', function (result) {
                                        // result = {"success":true}
                                        console.log("Passed successfully.");
                                     });

but it failed so I wonder iwhat I am missing.

Hi @MagSag,
Handover protocol API enables two or more fb apps to participate in a conversation by passing control of the conversation between them.
You can also pass control of the conversation to the page inbox by enabling live chat and assigning a secondary receiver role to your page inbox. Here's a step-by-step doc.
then you can use Botkit :

To take thread control:

controller.api.handover.take_thread_control('<RECIPIENT_PSID>', 'String to pass to pass to the secondary receiver', function (result) {
   // result = {"success":true}
});

To pass thread control:

controller.api.handover.pass_thread_control('<RECIPIENT_PSID>', '<TARGET_PSID>', 'String to pass to the secondary receiver app', function (result) {
   // result = {"success":true}
});

Let me know if that helps!

@MagSag I'm going to close this issue since Ouadie answered.
Feel free to re-open if you have further questions on this topic.


query.ExecuteWithoutResultsAsync destroys HttpContext.Current in ASP.net MVC Application

Hi, we are running an ASP.Net MVC application on Azure AppService using Neo4jClient <IP_ADDRESS> GraphClient (Non-Bolt).
Within the OnActionExecuted Method of an ActionFilterAttribute class, we are calling async methods from some of our own service classes. As filters are not executed async in ASP.Net, we wrap them in the RunSync-Helper shown below:
        public static void RunSync(Func<Task> func)
        {
            var cultureUi = CultureInfo.CurrentUICulture;
            var culture = CultureInfo.CurrentCulture;
            TaskFactory.StartNew(currentContext =>
            {
                HttpContext.Current = (HttpContext)currentContext;
                Thread.CurrentThread.CurrentCulture = culture;
                Thread.CurrentThread.CurrentUICulture = cultureUi;
                return func();
            }, HttpContext.Current).Unwrap().GetAwaiter().GetResult();
        }

So we are sure that the called methods will get the right HttpContext and Culture settings.
Right before calling  await query.ExecuteWithoutResultsAsync() in any of those methods invoked like this, HttpContext.Current is set as intended, but right after this call, HttpContext.Current is null, so following lines that attempt to access HttpContext will fail.
When calling the non-async query.ExecuteWithoutResults() instead, the content of HttpContext.Current persists, but that's not what we aim, as any of our service methods could be nested there and we want them to be async.
Would be grateful for any tip.

Do you have an example project / sample that is setup?
I can't think of what would be happening here, there's certainly nothing in there that is explicitly doing anything with HttpContext.Current.
Obviously the Http version uses an HttpClient - but again - that shouldn't have any effect. Especially not if the async one does. But not the sync.
Which is even more odd, as the Sync one merely wraps the async code.

Do you have an example project / sample that is setup?
I can't think of what would be happening here, there's certainly nothing in there that is explicitly doing anything with HttpContext.Current.
Obviously the Http version uses an HttpClient - but again - that shouldn't have any effect. Especially not if the async one does. But not the sync.
Which is even more odd, as the Sync one merely wraps the async code.

Hi Chris,
I just checked it again. Our own RunSync wrapper overwrites HttpContext.Current in TaskFactory.StartNew with an Context that seems to have only the scope of this task. So it get's null after returning. We now stored the Current before and wrote it back afterwards, that works. But in most cases, we switched using Autofac injected HttpContextBase that also keeps accessible longer.
I will close this issue. Thanks anyway for inspecting.
        public static void RunSync(Func<Task> func)
        {
            var cultureUi = CultureInfo.CurrentUICulture;
            var culture = CultureInfo.CurrentCulture;
            var storeContext = HttpContext.Current;  // <---- inserted
            TaskFactory.StartNew(currentContext =>
            {
                HttpContext.Current = (HttpContext)currentContext;
                Thread.CurrentThread.CurrentCulture = culture;
                Thread.CurrentThread.CurrentUICulture = cultureUi;
                return func();
            }, HttpContext.Current).Unwrap().GetAwaiter().GetResult();

            HttpContext.Current = storeContext;   // <---- inserted
        }

Hi Chris,
I just checked it again. Our own RunSync wrapper overwrites HttpContext.Current in TaskFactory.StartNew with an Context that seems to have only the scope of this task. So it get's null after returning. We now stored the Current before and wrote it back afterwards, that works. But in most cases, we switched using Autofac injected HttpContextBase that also keeps accessible longer.
I will close this issue. Thanks anyway for inspecting.
        public static void RunSync(Func<Task> func)
        {
            var cultureUi = CultureInfo.CurrentUICulture;
            var culture = CultureInfo.CurrentCulture;
            var storeContext = HttpContext.Current;  // <---- inserted
            TaskFactory.StartNew(currentContext =>
            {
                HttpContext.Current = (HttpContext)currentContext;
                Thread.CurrentThread.CurrentCulture = culture;
                Thread.CurrentThread.CurrentUICulture = cultureUi;
                return func();
            }, HttpContext.Current).Unwrap().GetAwaiter().GetResult();

            HttpContext.Current = storeContext;   // <---- inserted
        }


[Bug]: env file missing in teamsChefBot sample

Language
Javascript/Typescript
Version
latest
Description
The instructions in the README of js/samples/04.ai-apps/a.teamsChefBot tell users to modify ./env/.env.local.user file, but there's no such file under that sample.
The order of steps under "Setting up the sample" is confusing: it has two "step 1" followed by "step 4".
Reproduction Steps
1.
2.
3.
...

Is anyone still following up on this issue？

@ayachensiyuan this is a P2 bug so while it's been assigned to me, I haven't had the chance to get to it yet. Thanks for your patience.


Game's won't load

Short description of the issue
After installing python and following the instructions I set my steam game patch, it finds my steam account and I select parse community.
My steam account is set to public
Lauhdutin version
3.0 Beta 11
Rainmeter version
4.2.0 beta r3029 64-bit (Feb  8 2018)
Path: C:\Program Files\Rainmeter
IniFile: C:\Users\sassa\AppData\Roaming\Rainmeter\Rainmeter.ini
SkinPath: C:\Users\sassa\Documents\Rainmeter\Skins\
Python version
3.6.5
Windows version
Windows 10 Pro 64-bit (build 16299)
Error messages
Error: utility.lua:476: "parseVDF" encountered unexpected inpt on line 1:
Steps to reproduce the issue
After saving the game path and it says Detecting games and then the error comes up.
Python stack traceback

Not sure how to do this one.
Would appreciate any help as I'd really like to set this up for my PC.

There's an option to turn on logging at the bottom of the first page of settings. Could you enable that and try again? The skin will print a bunch of information into Rainmeter's log and should help to track down the issue. It sounds like there is an issue with the appmanifest of a Steam game. There should be a message in the log saying Processing Steam game: appmanifest_N.acf, which would point out the cause, just prior to the error.

I enabled the log in the settings went to where Rainmeter is installed and I don't see any log files there.
I also noticed the Error has changed to this now
library.lua:127:attempt to get length of local 'games' (a nil value)

It looks like appmanifest_255710.acf, which belongs to Cities: Skylines, is causing the issue as it is the last game that is mentioned prior to the error. Do you have that game installed at the moment? If you do not have it currently installed, then you can just delete the file. You should be able to find the file in \Steam\steamapps\, which could be where you have Steam installed or where you have additional Steam libraries (e.g. on another hard drive). If you do have the game installed, then you could try moving it to another folder and then force Steam to generate a new one by reinstalling the game (Steam should see that all of the game files still exist and not download anything).
This is not the first time that this issue has been reported, but I haven't gotten a clear answer as to why it happens. For example in this other instance they were able to fix the issue by deleting the appmanifests that were causing issues.

I uninstalled the games and re-run the Lauhdutin again but this time I only get this error:
NOTE (08:35:38.299) Lauhdutin.-.3.0.0.beta.11\Main.ini: Refreshing skin
ERRO (08:35:40.469) Lauhdutin.-.3.0.0.beta.11\Main.ini: Error: utility.lua:476: ''parseVDF'' encountered unexpected input on line 1:
Doesn't show anymore appmanifest or anything. I'm at a loss on what I did wrong,

Looks like you have logging disabled.

That's weird it says enabled, the only thing I can do is disable it. And even if I disable and enable it it only shows me that in the logs that I previously posted.

I decided to delete all the appmanifest files and reload the skin and right now banners are downloading, I'd have to go and reload every game through steam a bit tedious but it seems to work.
Also I had steam installed on another hard drive so maybe that might have been causing problems since I had duplicate copies of my games installed on both folders.

So it worked and then I tried to change the orientation and the animation of the launcher and it gave me this error
ERRO (20:09:10.074) Lauhdutin.-.3.0.0.beta.11\Main.ini: Error: init.lua:401: attempt to index field 'LIBRARY' (a nil value)
NOTE (20:09:11.051) Lauhdutin.-.3.0.0.beta.11\Main.ini: Refreshing skin
DBUG (20:09:11.074) : Initializing skin
DBUG (20:09:11.083) : Loading translation file
DBUG (20:09:11.095) : Initializing
ERRO (20:09:11.819) Lauhdutin.-.3.0.0.beta.11\Main.ini: Error: library.lua:127: attempt to get length of local 'games' (a nil value)

I went in and kept the cache folder and re-installed it and it detected it all fine, but every time I go to settings to change how it looks it does this.

This is indeed weird.
I just uploaded a new release, which should address the two main things that you have experienced:

The skin now skips game and writes a message to the log whenever it fails to parse an appmanifest. So the skin can continue rather than halt everything that it is doing.

For some reason the Library class is either having issues reading your copy of games.json or that file has become malformed, but I've now added a line that should deal with the issue.

I have another issue maybe I'm just not looking at the right places
I can't get my GOG galaxy's only game to show up and I've noticed that I can't search for the games that aren't installed either.
I thought I could search all my library. It has downloaded more than 800+ banners but I'm only able to see the games that have been installed on my steam library.
Has this feature been removed?
Install Steam games that are not currently installed.
Thanks again.

I can't get my GOG galaxy's only game to show up and I've noticed that I can't search for the games that aren't installed either.

Only GOG Galaxy games that are currently installed can be shown. The local files that the skin processes contain information about every game available via GOG Galaxy (regardless of the account) and the ones that have been installed on the computer. The complete list of an account's games are not stored in local files and the skin actually does not at any point know or care about the account(s) used for GOG Galaxy.

I thought I could search all my library. It has downloaded more than 800+ banners but I'm only able to see the games that have been installed on my steam library.
Has this feature been removed?
Install Steam games that are not currently installed.

You need to go to the skin's toolbar, left-click on the filter button (right-most icon), and select the Is not installed filter to show all of the detected games that are not currently installed. If you then want to apply more filters to that set of games or search among them, then you have to middle-click the icons in the toolbar.
While typing this reply I noticed that there are at least two bugs related to installing Steam games via the skin when you happen to be using the settings that I'm currently using. I'll fix those as soon as possible.

I did that, I pointed it to my GOG client folder and then I got this error
DBUG (20:01:09.401) : Starting to detect GOG Galaxy games
ERRO (20:01:09.406) Lauhdutin.-.3.0.0.beta.13\Main.ini: Error: init.lua:34: SQLite3 CLI tool is missing. Expected the path to be<EMAIL_ADDRESS>

That's because you need to download the sqlite3 executable (download from this page, look for sqlite-tools-win32-x86-) as described in the readme for version 3.0.0, which is not the same as the readme that you see by default when you navigate to this repository. The executable is then placed where the error message said it expected to find it, which in your case would mean that you need to place the executable in C:\Users\sassa\Documents\Rainmeter\Skins\Lauhdutin.-.3.0.0.beta.13\@Resources\.

Is the path pointing at the folder where the Battle.net client is installed? The tooltip (hover the mouse over the icon next to the setting title) states that the path should point to a folder containing games installed via the Battle.net client (e.g. if Destiny 2 is installed in D:\Games\Destiny 2, then the path should be D:\Games).

So in the settings I see path so instead of where the battle.net install folder is you wanted me to change it to G:\Destiny 2\ so it should be G:?

So I did do that, and I had to make sure battle.net is running in the background. But no banner was generated for it.

The website, which I used to get banners for Battle.net games in earlier versions, no longer exists and the URL redirects to another page now. Last time I checked the new pages use JavaScript to load most of the content, which Rainmeter's WebParser measure cannot access.
You'll need to provide your own banner. You can inspect a game (middle-mouse click) and hover the mouse cursor over where the banner should be in the menu that is shown. You should then see a tooltip with the path where the banner should be and the supported formats, which are separated by |. So you might see a path like e.g<EMAIL_ADDRESS>which means that you would need to place a JPEG or PNG image in the folder and rename the image StarCraft.

That worked!
Thanks :)
Another issue I have is when I do this for game shortcuts https://www.youtube.com/watch?v=dI-e_gH5iTY
For emulators it works on a shortcut itself but through the launcher it says can't load.
So instead of the emulator to load I want the game shortcut to work.
What should I do?

I just released a new version that should fix the issue with parsing the arguments of Windows shortcuts.

That worked amazingly! Love this luncher as helps me clean my desktop a lot with game shortcuts.
Thank you for all you've done <3


Feature: Add Enum Selector for Scheduled Job

Related to
Service (scheduled tasks, alerts)
Impact
nice to have
Missing Feature
It would be nice, if you can add custom variables to the scheduler.
== Detailed Explaination ==
I have one playbook, which runs different tasks, depending on the os group selected.
For example, I build an "enum" where the end user (myself) can select which hosts are going to be rebootet. For example: "Frontend" or "Backend"
It should not be restartet at the same time - but it should serve the same purpose (and it is a bit easier to maintain one playbook, instead of many!)
Now I want to restart the backend once every 2 weeks and the frontend every other week. So I would need to create two jobs and two templates for that for the same purpose - which is counterintutive in my opinion.
Implementation
While creating or edit an scheduled job, the user should be able to add default variables, which gets added to the playbook.
For now, the config option looks like that:

You can add the following option from the templates itself:

Maybe, change the option to "Available Variables" and give the use the option to select it, or just make a new field - e.g. textbox for strings ...
Then within the dropdown you can select the varaiable, and right next to it a textbox, where you can set it, whatever you want.
Design
I just have basic programming experience, and just c#, sorry for that.
But maybe grep the existing variables from the template, and give the user the option, to add them. (It sounds very simple, sorry.)

What edge-cases need to be covered?
It is way easier to maintain one single playbook, instead of multiple, which serve the same purpose, even in the enterprise environment. A playbook (in my opinion) should do anything it should to, and the end user should not care how to playbook does it.

For example:
A playbook called "reboot-service.yml" should restart the service, depending on what the user needs. If I want to restart a tomcat daily, I should be able to tell the playbook "restart service tomcat, on host xyz" - the playbook does the rest. It should not matter if the host itself is oracle linux, ubuntu, debian, or even, windows. Thats where the variables come in play.
Without the option in scheduled jobs, you have to maintain many different templates - and if thats too much, even creating another project is counter intutive - because on bigger changes, you have to maintain everything.

I hope I could explain it .. if not, please do not hesitate to contact me :)

Request along the lines of #2244
As I mentioned in that issue, this is also a core feature for me. Nowadays, it's impossible to schedule any of my playbooks.


[MIRAI] Annotate panics as either unreachable or as todos

Motivation
MIRAI complains about reachable panics. There a good reasons for this because panics are pretty pervasive and are often unexpected and indicate programming mistakes if they are reached.
This PR fixes some calls to panic! to instead be calls to unreachable!, as already suggested in the coding guidelines.
The remaining panics are replaced by a new macro unrecoverable! which just calls panic but prepends the tag "unrecoverable: " to the message. This makes it possible for MIRAI to not warn about these panics and should also make it easier to make sense of panics that show up in logs.
This PR only addressed panics that are currently complained about by MIRAI. There are many more, but I want to keep this PR as small as possible.
There a small number of additional annotations to satisfy MIRAI as well as some comments to help the reader understand why certain panics are in fact unreachable.
I've also removed an unimplemented method. It is not used and keeping it around is both a trap and another cause for a MIRAI message.
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
cargo xtest

That's a lot of TODO added :o what's the plan for them?

It would be great if someone (ahem, not me) would create an issue for each of them. They DO need to get fixed. I'll leave the priority of this up to others, but the longer this goes unfixed, the noisier the output from MIRAI will be.
On the whole I'm quite comfortable for CI to run MIRAI and for these messages to get into the faces of developers until it bubbles up in their priority list.
This is not just documentation. It is a fundamentally wrong way of implementing LIBRA and it absolutely must stop NOW.

I CC'ed a few people to look at the different TODOs.

The appropriate way to deal with expected (but rare) failures is not to panic! and terminate the process. Instead failure values should be propagated and at some point human readable output should be logged and the process terminated gracefully and restarted.

Panicking can be a graceful way to terminate the program, and restart should be figured out by some wrapper not by Libra core itself IMO. So I'm not sure I agree with this.
@bors-libra delegate+

:v: @hermanventer can now approve this pull request

There is room for different opinions on this, but will be extremely helpful to not terminate the program with the panic macro. That macro has a history of abuse and should be flagged as a code smell wherever it occurs. For the cases where the considered opinion is that disgracefully terminating the program with a text message is the best possible way to do things, please invent another macro.

"panic does provide human readable error log and backtrace"
I'm none to sure about this. If this is the case for LIBRA, because of some configuration magic, then fine. Just make sure that by logging you mean something other than spew on the command line.
process::exit(some code with meaning) is somewhat more graceful than panic. It also makes your intent clear.
By "abuse of panic" I mean not making your intent obvious to the reader.
Yes, all I am asking is for there to be coding guidelines that everyone gets to follow and that tooling can enforce.
This PR is meant to start that discussion.

I'm none to sure about this. If this is the case for LIBRA, because of some configuration magic, then fine. Just make sure that by logging you mean something other than spew on the command line.

FWIW, see https://doc.rust-lang.org/edition-guide/rust-2018/error-handling-and-panics/controlling-panics-with-std-panic.html.
I do think that for unexpected errors which indicate programming bugs, panics are the appropriate way to deal with them.

"I do think that for unexpected errors which indicate programming bugs, panics are the appropriate way to deal with them."
Yes, but by a name other than "panic". In the PR I suggest using "assume_unreachable", which is understood by MIRAI to be a considered statement by the developer that reasoning beyond what the MIRAI is capable of leads to the conclusion that this should never happen.
Good practice is to document this reasoning in a comment.

Got it, thank you for clarifying!

Yes, all I am asking is for there to be coding guidelines that everyone gets to follow and that tooling can enforce.

@hermanventer, can you please make changes to https://github.com/libra/libra/blob/master/documentation/coding_guidelines.md#error-handling as per your suggestions?  I think it would help with discussion on this PR.

I hope that I have now addressed all of the feedback in satisfactory way. Please have another look. In particular, see if you agree that panics that are marked as unreachable are in fact unreachable.

@mimoo @aching Is someone going to re-review this with the new change?

@zekun000  are the changes acceptable?

consensus related looks good, but requiring every team to stamp is hard.
usually I'd break the big refactor diff based on folders that each team owns so that can move faster

It looks good to me, so I think we shouldn't spent more time on this. Please:

take a look at what @zamsden pointed out.
let's think how we can push for unrecoverable instead, maybe by linting panics (that's on me unless there is any takers).
think about the assumes, and how that could bite us in the face later if we are too aggressive with them :)

@bors-libra delegate+

:v: @hermanventer can now approve this pull request

:v: @hermanventer can now approve this pull request

:v: @hermanventer can now approve this pull request

@bors-libra r=mimoo

:pushpin: Commit ae93d5d has been approved by mimoo

:hourglass: Testing commit ae93d5d86550b03f6a59db6bc23ad5328b56a881 with merge 163b94420bcff8bbfcdc5fc6d9a25e3fc9360f69...

:sunny: Test successful - checks-circle_commit_workflow
Approved by: mimoo
Pushing 163b94420bcff8bbfcdc5fc6d9a25e3fc9360f69 to master...

@hermanventer Since this new macro exists to please mirai, maybe it would make sense to move the macro to the mirai-annotations crate instead?

@hermanventer Since this new macro exists to please mirai, maybe it would make sense to move the macro to the mirai-annotations crate instead?

It makes sense to add it to the annotations crate and I'll do so. Meanwhile adding it as in this PR was by far the least intrusive change.
I also want to emphasize that pleasing MIRAI is not an end in itself. I contend that the changes in this PR makes the code more readable and that this is good in itself.


Update mr-dev-days-japan.md

Host non-live session videos on YouTube Channel

@suzukin : Thanks for your contribution! The author(s) have been notified to review your proposed change. @jessemcculloch


Remove the topologically incorrect edges in grad_graph.py

E.g., there is no attn_to_res edge; attn only maps to mlp. Keep only the subset of the 36 possibilities for edges (36 with error terms) that topologically match GPT-2.

res_to_mlp edges actually needed to be preserved for double-counting correction, then skipped at graphing time. Done.


-bash: ./gtfs_realtime_json: cannot execute binary file

Hello,
I wanted to run the compiled version on mac 10.9.5 but got
-bash: ./gtfs_realtime_json: cannot execute binary file
how may I have it mac-compatible?
Thanks,
regards,
Xavier

hey @XavierPrudent  ah, thanks for letting me know! sorry, but I pretty much abandoned this project for a Golang-based rewrite. I'll ping you if I ever finish it, but it'll take a while :(

I tested it on Linux it works and it does NOT work on Windows. @harrytruong Should it work on Windows?


[Extensions] Authenticate and authorize from service account token

As a part of handling service accounts, we first refactored how internal users were represented in the code and then added a mechanism to generate an auth token representing the Basic Auth credentials of a service account. The flow diagram can be found here.
As the next step in this flow, we need to be able to authenticate and authorize based on these tokens. In the diagram, we can see that the request is expected to return to the security plugin attempting to execute its operation. To handle this, code will need to be added in the security plugin to parse the token received as a part of the request. We will then need to verify it is the correct token by decrypting it for the encoded service account name and password. The password can then be hashed and compared to the stored hash of the service account.
This flow is almost identical to a normal basic auth flow but we use the token to pass the credentials instead of encoding the information as part of the URI.
Code changes for this issue can be added to the normal REST request handler but should look for a token which matches the specification of the tokens created in #2697.
Completion of this issue will look like a PR which introduces the code changes to add this logic to the security plugin as well as associated tests. Tests can make use of the previous test format added in the UserAPITest class.

Hi,
I see that SecurityFilter uses PrivilegesEvaluators evaluate() method. From what I gathered this filtering will be applied to every rest request that's coming to the cluster. How are we gonna make sure that only service account requests are evaluated at this point? Something similar to this: InternalUsersApiAction?

@scrawfor99 bump. Also, I've found this PR by Ryan which seems to touch on similar topics: https://github.com/opensearch-project/security/pull/2672 and I got a feeling that this task might be dependent on Ryan's PR.
Sorry, but I have another 2 questions:

What's the difference between this task and that one: https://github.com/opensearch-project/security/issues/2622?
What's the reason for separating core/security layers as in the tasks diagrams? Afaik we could implement the authz/authn logic somewhere around SecurityRestFilter since it's wrapping all rest requests that get to the node.


Diminishing returns with larger sizes

As image size increases, I have diminishing returns, in terms of speed gains.
Can this be optimized ?
my system:

GTX 1070 ( 8GB VRAM )
32 GB RAM
Windows  10

FP8
( 512 * 512 )  =>  ~16 sec/it
( 512 * 768 )   =>   ~19 sect/it
( 768 * 768 )   => ~22.5 sect/it
( 1024 * 1024 )  => ~33 sec/it
( 1440 * 960 )  => ~41 sec/it

Q4_1
( 512 * 512 )  =>  ~7 sec/it ( ~128% faster )
( 512 * 768 )   =>  ~9 sect/it ( ~110% faster )
( 768 * 768 )   =>  ~12.5 sect/it ( ~80% faster )
( 1024 * 1024 )  => ~23 sec/it ( ~43% faster )
( 1440 * 960 )  => ~30 sec/it ( ~36% faster )

Also, I think the 10XX series has half speed fp16 operations.

Yeah, to even get those FP8 speeds, I need to use --force-fp32, since this commit (  https://github.com/comfyanonymous/ComfyUI/commit/8115d8cce97a3edaaad8b08b45ab37c6782e1cb4)
But, with GUFF, I have about the same speeds either way.
And also the GUFF model loads in 1 second !


fix: timeout reader cancel func call on normal read

Checklist

[x] I have read the coding guide.
[ ] My change requires a documentation update, and I have done it.
[x] I have added tests to cover my changes.
[x] I have filled out the description and linked the related issues.

Description
Fixes the case where the timeout reader cancel function is called after the normal completion of a read.

there is PR https://github.com/ethersphere/bee/pull/3894 which also fixes this issue

there is PR #3894 which also fixes this issue

PR #3894 removes context, which is undesirable.

there is PR #3894 which also fixes this issue

PR #3894 removes context, which is undesirable.

Could you point to conclusive case were implementation without context is going to cause any issues?


Aspell, Hunspell, Ispell, PHP Pspell, LanguageTools, or others?

We've recently noticed that Aspell does not come by default on Ubuntu, but worst, it does not seem to be well supported on Windows. So, potentially, we are going to need a better solution, that ideally, just works on any operating system.
Lets keep the issue open, to ear what the community thinks about this, but also, to keep track of the investigations people may have on this.

Based on the Hunspell website it comes by default with MacOS since version 10.6. Also, the Linux installation seems fine (unsure if it comes by default on some distributions). So maybe we can swap without losing too much compatibility.
However, I had two ideas to solve the problem of the different spell checkers:

Configurable Tool:
Why don't we use the new config system (from #4) to allow users to decide, which tool they want to use?
{
    "tool": "aspell",
    "ignore": {
        //...
    }
}

Auto-Detect Spell Checker:
We could also auto-detect the spell checker by checking if the tool is installed on the system and using this tool. However, this could cause inconsistencies between development environments and CI/CD pipelines.


Add hotspot info in README.md

Add info on how to connect the pupil labs phone to the backpack computer network.

We also need to put the install instructions for the FFMEG lib which would be follow the link in downloadme file in the localpackages folder ....


Problem: gaslighter incorrectly filters tests

Solution: top level state variables changed in a nested for loop must be turned on and off.

oh don't merge, I'm being silly, I'm forcing a commit.


Shiny Horses Compatability 1.20.1

I was messing around with Horseshoes and Shiny Horses in a 1.20.1 mod pack and found frost walker would not work when regular horse armor was equipped. Having only horseshoes on the horse would allow frost walker to work. Taking Shiny Horses out of the pack fixes the issue. I tested with the two mods in their own pack and the same issue occurs. I didn't test other enchantments but I could assume they may be facing the same issues.

I can confirm this is the case aswell


Remove bower.json?

I was slightly absent during the Bower days - is bower.json relevant anymore? Can it be removed? It appears Bower has been officially deprecated[1][2][3].

Definitely needs to go 👍

What's a proper deprecation method? It's technical a major bump. Would just a PR that is held off on merging until we're ready for a major release?

Sounds good. I'll update the readme.


A bug when performing lasso over data points that are filtered by labels

Selecting a specific label to filter the data points in the embedding plot works as intended. The issue arises when performing a lasso over these filtered data points, all images within the lasso are being displayed instead of the images for that specific label.

To be more specific, the issue occurs when selecting 'Color By: Ground Truth' followed by 'Filter By: Labeled and then selecting the required label'


sf package1 version create exits instead of returning in 2.42.6

Summary
sf package1 version create exits instead of returning.
For example, package_version_create_result=$(sf package1 version create --package-id <my-package-id> --managed-released --name $PACKAGE_NAME --json --wait 180) will now exit the terminal instead of waiting and returning.
This breaks CI builds.
Expected result
sf package1 version create should return
Actual result
sf package1 version create exits
System Information
{
  "architecture": "darwin-arm64",
  "cliVersion"<EMAIL_ADDRESS>  "nodeVersion": "node-v20.5.1",
  "osVersion": "Darwin 23.4.0",
  "rootPath": "/opt/homebrew/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.18 (core)",
    "@oclif/plugin-commands 3.3.4 (core)",
    "@oclif/plugin-help 6.0.22 (core)",
    "@oclif/plugin-not-found 3.1.9 (core)",
    "@oclif/plugin-plugins 5.0.21 (core)",
    "@oclif/plugin-search 1.0.24 (core)",
    "@oclif/plugin-update 4.2.12 (core)",
    "@oclif/plugin-version 2.1.2 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.19 (core)",
    "@oclif/plugin-which 3.1.10 (core)",
    "@salesforce/cli 2.42.6 (core)",
    "apex 3.1.11 (core)",
    "auth 3.6.11 (core)",
    "data 3.3.5 (core)",
    "deploy-retrieve 3.6.14 (core)",
    "devops-center 1.2.0 (user) published 259 days ago (Mon Sep 11 2023) (latest is 1.2.13)",
    "info 3.2.8 (core)",
    "limits 3.3.7 (core)",
    "marketplace 1.2.5 (core)",
    "org 4.1.10 (core)",
    "packaging 2.1.0 (user) published 139 days ago (Mon Jan 08 2024) (latest is 2.4.5)",
    "schema 3.3.6 (core)",
    "settings 2.2.6 (core)",
    "sobject 1.4.2 (core)",
    "source 3.3.12 (core)",
    "telemetry 3.3.7 (core)",
    "templates 56.2.7 (core)",
    "trust 3.6.11 (core)",
    "user 3.5.8 (core)",
    "sfdx-ext 0.1.4 (user) published 567 days ago (Mon Nov 07 2022)"
  ]
}

Hey @epavlic-revenue, you have a user installed version of plugin-packaging.
See in version logs: "packaging 2.1.0 (user) published 139 days ago (Mon Jan 08 2024) (latest is 2.4.5)",
Run sf plugins uninstall @salesforce/plugin-packaging to uninstall your user installed version and fall back to the bundled version. Afterward, you'll see something like this in the sf version --verbose --json command:
"packaging 2.4.5 (core)",
If you are still seeing this issue when the latest version of the packaging plugin. Please provide the full debug output by adding the --dev-debug flag to your command. Like so:
sf package1 version create --package-id <my-package-id> --managed-released --name $PACKAGE_NAME --json --wait 180 --dev-debug
Thanks

@iowillhoit I'm seeing the same issue on the CI system, which does not have any user plugins.

Ok, please provide the debug logs and we'll review

It happens consistently locally and in the CI when a command like package_version_create_result=$(sf package1 version create --package-id <my-package-id> --managed-released --name <my-package-name> --json --wait 180) is executed.
--dev-debug masks the issue.
Honestly, this is something that can also be tested on your end. As a client, having to prove an issue in the hopes that it might be addressed in a couple of weeks or months is not an enjoyable experience.
In less than a month, I found and reported 3 confirmed issues with basic documented commands and options being ignored or mishandled. I'm not looking to be unpaid QA.

@epavlic-revenue thanks for reporting it.
We're asking for repro help because we do test it and aren't able to reproduce this bug (there is another server-side bug I can reproduce with package1 that the packaging team is aware of (W-15837641) and I hope that when they fix it, that fixes your problem).
I agree the command shouldn't exit without returning the error, but that's not reproducible.
If someone else can provide repro steps, debug logs, etc, we can reopen this.

@mshanemc Apparently, the issue is caused when a name (stored in an environment variable here) contains spaces. The script was unchanged apart from upgrading sf 2.42.6. With SF_LOG_LEVEL=trace and DEBUG=sf, sf shows that name is split over a multiple args when calling and providing a name without quotes:
package_version_create_result=$(sf package1 version create --package-id 0336F000000B3Oh --managed-released --name $PACKAGE_NAME --json --wait 180)
  sf                      ARGS: +0ms
  sf                         0: /usr/local/bin/node +0ms
  sf                         1: /home/circleci/.local/bin/sf +0ms
  sf                         2: package1 +0ms
  sf                         3: version +0ms
  sf                         4: create +0ms
  sf                         5: --package-id +0ms
  sf                         6: 0336F000000B3Oh +0ms
  sf                         7: --managed-released +0ms
  sf                         8: --name +0ms
  sf                         9: My +1ms
  sf                        10: Test +0ms
  sf                        11: Package +0ms
  sf                        12: Name +0ms
  sf                        13: --json +0ms
  sf                        14: --wait +0ms
  sf                        15: 180 +0ms

Exited with code exit status 2
CircleCI received exit code 2

When calling quoted, the command works normally:
package_version_create_result=$(sf package1 version create --package-id 0336F000000B3Oh --managed-released --name "$PACKAGE_NAME" --json --wait 180)
sf                      ARGS: +0ms
  sf                         0: /usr/local/bin/node +0ms
  sf                         1: /home/circleci/.local/bin/sf +0ms
  sf                         2: package1 +0ms
  sf                         3: version +0ms
  sf                         4: create +0ms
  sf                         5: --package-id +0ms
  sf                         6: 0336F000000B3Oh +0ms
  sf                         7: --managed-released +0ms
  sf                         8: --name +0ms
  sf                         9: My Test Package Name +0ms
  sf                        10: --json +0ms
  sf                        11: --wait +0ms
  sf                        12: 180 +0ms

I'm glad you found your issue.
That would have never worked with spaces.  CLI commands that have values with spaces have always required quotes around them (see https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_project_commands_unified.htm?q=quotes) otherwise, how would you be able to tell the end of the value vs the start of the next flag?


'Got' dependency has security issue (dependabot)

Library Affected:
<EMAIL_ADDRESS>(npm)
Browser & Platform:
All
Issue or Feature Request Description:
Dependabot is reporting the following alert for a dependency of workbox-cli:
'got' (npm) allows a redirect to a UNIX socket
This is the dependency tree for this package:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>The earliest fixed version is<EMAIL_ADDRESS>

Any patch for this?


Google OpenID Connect

The errors :
Error 400 if I don't remove the 'nonce' param
id_token (jwt) cannot be decoded because the key required to do so is at https://www.googleapis.com/oauth2/v2/certs

Hi, I have some suggestions to help solving this issue!
Here is a list of similar issues:

1. [Google OpenID Connect](https://github.com/omab/python-social-auth/issues/477)

2. [Google OpenID Connect does not work](https://github.com/omab/python-social-auth/issues/644)

3. [GoogleOauth2 hangs mod_wsgi after multiple logins.](https://github.com/omab/python-social-auth/issues/377)

4. [extra_data not populated with access_token in the register_by_access_token example](https://github.com/omab/python-social-auth/issues/416)

5. [Google OAuth2 gives 400 error, FB 500 error](https://github.com/omab/python-social-auth/issues/364)

Also, below are some developers who made PRs to close similar issues:

cambonf

c475

mvschaik

kchange

Hope this is useful!
Cheers,
Cinnabot.


STK500 timeout if board's serialport was open prior to flashing.

ah, good catch! Your new PR's look fantastic, I'll take a closer look at it all soon!

thanks :smile:


rebalance -> Unknown format code 'd' for object of type 'float'

uname -a
Linux testnet 5.16.10-arch1-1 #1 SMP PREEMPT Wed, 16 Feb 2022 19:35:18 +0000 x86_64 GNU/Linux

git show
commit 72571f0daa41edba10c9b814277791d8b406c1e2 (HEAD -> master, origin/master, origin/HEAD)

On current master : https://github.com/bitromortac/lndmanage/commit/72571f0daa41edba10c9b814277791d8b406c1e2
lndmanage --loglevel DEBUG info<PHONE_NUMBER>388433920
> Loaded graph from file: 2270 nodes, 5478 channels.
Info represents channel id.
-------- Channel info --------
channel id:<PHONE_NUMBER>388433920  channel point: a5a8f4e3ea57c5a69e51f63de639d416b2317eeabf7bc8af9ccb3b5871b83603:0
          capacity:                 16776992 sat
          blockheight:              2191983
          open since:               2021-10-04 16:41:55
          channel age:              214.350000 days
          last update:              2022-05-06 13:40:27

-------- Channel partners --------
02f661e46cd1b9169e7abc79977977fb3154c324b82b927e3078c913bfb98ff839 | 038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9
                          bitmarkTestOne                           |                           aranguren.org
          base fee:                 1000 msat                      |           base fee:                 1000 msat
          fee rate:                 0.000001 sat/sat               |           fee rate:                 0.000001 sat/sat
          time lock delta:          40 blocks                      |           time lock delta:          40 blocks
          disabled:                 False                          |           disabled:                 False
          last update:              2022-05-06 13:40:27            |           last update:              2022-05-06 10:13:07
Disconnecting rpcs.

lndmanage --loglevel DEBUG rebalance<PHONE_NUMBER>388433920
> Loaded graph from file: 2270 nodes, 5478 channels.
Info represents channel id.
Time interval (between first and last forwarding) is  29.97 days.
Default amount due to strong unbalancedness.
>>> Trying to rebalance channel<PHONE_NUMBER>388433920 with a max rate of 0.001 and a max fee of 100 sat.
>>> This is a dry run, nothing to fear.
>>> The channel status before rebalancing is lb:16776809 sat rb:0 sat cap:16776992 sat.
>>> Commit fee 183 sat. We opened channel: True. Channel reserve: 167769 sat.
>>> The change in local balance towards the requested target (ub=0.00) is -100000 sat.
>>> Trying to change the local balance by -100000 sat.
    The expected unbalancedness target is -1.01 (respecting channel reserve)
>>> Rebalancing can take some time. Please be patient!

-------- Description --------
cid: channel id
ub: unbalancedness (see --help)
atb: amount to be balanced [sat]
aaf: amount affordable [sat]
l: local balance [sat]
r: remote balance [sat]
lbf: local base fee [msat]
lfr: local fee rate
frm: fee rate margin
a: alias
-------- Candidates in order of rebalance attempts --------
Unknown format code 'd' for object of type 'float'
Disconnecting rpcs.

Thank you for reporting! That's a bug probably because you had a recent channel, where the base fee and fee rate hasn't yet propagated into the graph. In such cases a float-type default placeholder is set causing the error, see
https://github.com/bitromortac/lndmanage/blob/72571f0daa41edba10c9b814277791d8b406c1e2/lndmanage/lib/node.py#L401
So that should have resolved as soon as the channel is a bit older.

Thank for the prompt reply. It's been three days and I am still getting the same error.
lndmanage.py listchannels | grep<PHONE_NUMBER>388433920
2410110796388433920   ✗    ✓  -1.00  16776992  16776809         0     0 0.000001 ......................... bitmarkTestOne...........

/usr/bin/lncli --network=testnet listchannels | grep<PHONE_NUMBER>388433920 -A 33 -B 4
        {
            "active": true,
            "remote_pubkey": "02f661e46cd1b9169e7abc79977977fb3154c324b82b927e3078c913bfb98ff839",
            "channel_point": "a5a8f4e3ea57c5a69e51f63de639d416b2317eeabf7bc8af9ccb3b5871b83603:0",
            "chan_id": "2410110796388433920",
            "capacity": "16776992",
            "local_balance": "16776809",
            "remote_balance": "0",
            "commit_fee": "183",
            "commit_weight": "600",
            "fee_per_kw": "254",
            "unsettled_balance": "0",
            "total_satoshis_sent": "0",
            "total_satoshis_received": "0",
            "num_updates": "30",
            "pending_htlcs": [
            ],
            "csv_delay": 2015,
            "private": false,
            "initiator": true,
            "chan_status_flags": "ChanStatusDefault",
            "local_chan_reserve_sat": "167769",
            "remote_chan_reserve_sat": "167769",
            "static_remote_key": true,
            "commitment_type": "STATIC_REMOTE_KEY",
            "lifetime": "174160",
            "uptime": "174160",
            "close_address": "",
            "push_amount_sat": "0",
            "thaw_height": 0,
            "local_constraints": {
                "csv_delay": 2015,
                "chan_reserve_sat": "167769",
                "dust_limit_sat": "354",
                "max_pending_amt_msat": "16609223000",
                "min_htlc_msat": "1",
                "max_accepted_htlcs": 483
            },

Based on the channel point and uptime this is not a new channel, it's a month old.
/usr/bin/lncli --network=testnet describegraph | grep<PHONE_NUMBER>388433920 -B 1 -A 23
        {
            "channel_id": "2410110796388433920",
            "chan_point": "a5a8f4e3ea57c5a69e51f63de639d416b2317eeabf7bc8af9ccb3b5871b83603:0",
            "last_update":<PHONE_NUMBER>,
            "node1_pub": "02f661e46cd1b9169e7abc79977977fb3154c324b82b927e3078c913bfb98ff839",
            "node2_pub": "038863cf8ab91046230f561cd5b386cbff8309fa02e3f0c3ed161a3aeb64a643b9",
            "capacity": "16776992",
            "node1_policy": {
                "time_lock_delta": 40,
                "min_htlc": "1000",
                "fee_base_msat": "1000",
                "fee_rate_milli_msat": "1",
                "disabled": false,
                "max_htlc_msat": "16609223000",
                "last_update":<PHONE_NUMBER>
            },
            "node2_policy": {
                "time_lock_delta": 18,
                "min_htlc": "1000",
                "fee_base_msat": "0",
                "fee_rate_milli_msat": "1",
                "disabled": false,
                "max_htlc_msat": "16609223000",
                "last_update":<PHONE_NUMBER>
            }

And it seems to be well included in the graph.
The error seems to happen no matter what channel I try.


kidiff installation seems to be broken

Currently I use kicad8_auto:latest and my GitLab pipeline fails very early because the docker image seems to be broken.
I install into the docker some specific tools and get the following result:
$ apt install something_else
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 kidiff : Depends: kiauto but it is not installable
          Recommends: scour but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Hi @N0cynym !
This is true for dev images where kiauto is from the GitHub repo.

Thanks for this information will commit 26229f1db2e7cd96b2313f80f5e15f93467a531c solve this for future cases or should apt --fix-broken install be keeped in local pipeline files?

I verified that the current ghcr.io/inti-cmnb/kicad7_auto_full:dev doesn't have this problem, the others should also be fixed.


Sink stops playing sound when audio output device is disconnected and reconnected.

When my audio output device that I think is using is unplugged, my terminal prints the output.:
an error occurred on output stream: The requested device is no longer available. For example, it has been unplugged.

I'm not sure where this output is being printed from, presumably inside one of the Rodeo functions. I'm unwrapping on most of the exposed lib functions, so I don't know if this is something I can catch.
Is there a way to catch when a sync has gone bad, so that I can create a fresh working one?

Part of the error comes from cpal (which runs into an issue due to the unplug): https://github.com/est31/cpal/blob/7776c6634a8e21e2a585358545141fe091c38320/src/error.rs#L154
The way we interact with this error from Rodio is by passing in a handler (the error_callback): https://github.com/RustAudio/rodio/blob/616ee267563555bf0edb803e7073dfbb27c6de9e/src/stream.rs#L211
Right that callback just prints the error. Whether to stop the stream or continue is cpal's choice. It does not seem to be something we can catch.
Feel free to re-open if you have any questions.


[Question] How to record video when render_mode is "Human"?

Question
Hello.
I move the robot using remote control using the keyboard in a gym environment with render_mode "Human".
I would like to record a video of the environment I am currently controlling remotely, but when render_mode is Human, I cannot obtain the video using env.render().
How do we get the video when render_mode is Human?

You can record your window with a program like OBS, there is nothing built-in to the Gymnasium to record  render_mode=human

OK! Thanks! @Kallinteris-Andreas


Conflicting transaction shown in home

I need to look into whether it resolves itself or we keep serving transactions that aren't in our mempool until the other gets confirmed.

(in this screen, the first and last tx are conflicting. They are spending the same UTXO, but one was send from this PC, when another one was already broadcast from another PC)

Thanks for the context.
I'm pretty sure it wouldn't stay that way but i need to check.


Update LLVM/MHLO to week of 2022/11/14

Green LLVM commit: e864ac694540342d5e59f59c525c5082f2594fb8
Green MHLO commit: eab364ba2a66bd0613efb94f8a738c1c97aaee92
The commits listed above are the green commits from Nov. 14.
This is the LLVM bump that @ljfitz mentioned in #1624. We would love to kick off a discussion about introducing a regular rotation for bumping to green commits, similar to what torch-mlir is doing.
Changelog:
mlir-hlo changed their directory structure, requiring two include_directories directives to make it buildable.
Generation of #map has changed, requiring large NFC changes to test references.
Signed-off-by: Dominik Montada<EMAIL_ADDRESS>

I hereby confirm that I abide by the DCO requirements.

Can one of the admins verify this patch?

@jenkins-droid test this please

@gargaroff Jenkins amd64, ppc64le, and s390x  failed due to lit tests for NNPA. I guess they failed because of map-related stuffs also:
Failed Tests (5):
  Open Neural Network Frontend :: accelerators/nnpa/conversion/zhigh-to-zlow/gru.mlir
  Open Neural Network Frontend :: accelerators/nnpa/conversion/zhigh-to-zlow/lstm.mlir
  Open Neural Network Frontend :: accelerators/nnpa/conversion/zhigh-to-zlow/stick-unstick.mlir
  Open Neural Network Frontend :: accelerators/nnpa/conversion/zhigh-to-zlow/stickified-constant.mlir
  Open Neural Network Frontend :: accelerators/nnpa/conversion/zhigh-to-zlow/test-datalayout.mlir

Can one of the admins verify this patch?

@tungld Thanks for pointing me to them. I didn't realize that I was building without accelerators. Locally it's passing now, so I hope this one works now.

Can one of the admins verify this patch?

@jenkins-droid test this please

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Jenkins Linux amd64 Build #8981 [push] Update LLVM/MHLO to week... started at 20:23

Jenkins Linux ppc64le Build #8047 [push] Update LLVM/MHLO to week... started at 21:27

Jenkins Linux amd64 Build #8981 [push] Update LLVM/MHLO to week... passed after 2 hr 6 min

Jenkins Linux ppc64le Build #8047 [push] Update LLVM/MHLO to week... passed after 2 hr 37 min

Jenkins Linux s390x Build #8997 [push] Update LLVM/MHLO to week... passed after 2 hr 41 min


Applying MAPIE in 'prefit' mode to catboost model exhaust all RAM

Describe the bug
Applying MAPIE(v0.6, 0.6.5) in 'prefit' mode to a catboost (v1.1, v1.2) model exhaust all RAM
To Reproduce
Steps to reproduce the behavior:

Go to "..."
Click on "..."
Scroll down to "..."
See error

Expected behavior
....fit a catboost model...
mapie = MapieRegressor(estimator=model, cv="prefit", n_jobs=1)
mapie = mapie.fit(X_calib, y_calib)
<-- Until this moment everything is fine
y_pred, y_pis = mapie.predict(X_calib, alpha=0.5) ## Here the RAM goes up from 4GB to 12GB (max) independently of how elaborate is the catboost model.

Hello @artem-math, thank you for reporting the bug you encountered.
Bug Reproduction
The bug you describe is not sufficiently well described for it to be reproduced on my machine. I invite you to share the lines of code that led you to the error you encountered (in particular by replacing the template in the "To Reproduce / Steps to reproduce the behavior" step) and to share the error you encountered in the console.
As I'll describe in the next section, I think the error is due to the size of your calibration set. But I don't have enough information to confirm this 100%. I thank you in advance for your help.
Bug Description
TL;DR: A priori, this is not a problem with prefit mode. This is a problem that can arise when the calibration set and test test have a larger number of samples. This behavior is unintended, as the predict method is generally used with a smaller number of test samples during inference.
With the elements you've shared with me, I think your problem is close to that of another issue #326 I encountered a short while ago (see this link: https://github.com/scikit-learn-contrib/MAPIE/issues/326#issuecomment-1632337436).
Concerning the behaviour of the predict method, as explained in the theoretical description of the documentation (see Fig of CV+), MAPIE needs to compute the distribution of residuals and predictions for all calibration samples for each test point. MAPIE does it in a vectorized way with two-dimensional arrays of size (n_calib_samples, n_test_samples), hence exceeding the memory when the number of calibration and test samples are high.
In your case, your calibration set and test set are the same and therefore of the same size. So, during prediction, you generate a matrix of size (n_calib_samples, n_calib_samples), which if too large, exhausts all RAM.
Conclusion
I hope these answers have helped you. Don't hesitate to share your lines of code with me to reproduce your error and better understand your bug.

Hello @thibaultcordier ! You are absolutely right, the issue was with the number of samples I have for calibration and prediction. My dataset is around 2 500 000 observations, so any typical split for train/test/validate would cause this pain =( I will consider the workaround that you have proposed here #326 (comment)
Thank you =)


Remove config import from init to fix scaffold usage

Remove config import from __init__.py (not needed and also breaks since it is there in non-scaffold scenario)
Refactor some repeated code
Add import and import config tests
Add changelog

Closes #370

not needed

The main thing that happens in config right now that is valuable to auto-execute is this bit:
https://github.com/drivendataorg/cookiecutter-data-science/blob/bbfa1511ff724731ddd482bcffcd62fb1e6b1b83/{{ cookiecutter.repo_name }}/{{ cookiecutter.module_name }}/config.py#L24-L32

The main thing that happens in config right now that is valuable to auto-execute is this bit:

Ah, that's a good point. Added back in.

Just summarizing for my own understanding / posterity:

Nailed it! 🔨


removing deprecated methods and simplifying code

ProfileManager.getActiveProfile() has been deprecated in favor of ConfigUtils.getProfiles()
Code improvement

@amatosg Can you please merge the main branch with yours to see if more CI tests pass?

@amatosg I was able to merge the main branch. Now tests are failing. Please review when you get a chance.

I'm on holidays ATM. Will do as soon as I get back
El lun, 26 de feb de 2024, 15:40, Matt Raible @.***>
escribió:

@amatosg https://github.com/amatosg I was able to merge the main
branch. Now tests are failing. Please review when you get a chance.
—
Reply to this email directly, view it on GitHub
https://github.com/jhipster/generator-jhipster-quarkus/pull/305#issuecomment-1965228844,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKHNYWLJK4WXY3QXEKAEDEDYVTXNJAVCNFSM6AAAAAA7L4IZVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRVGIZDQOBUGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@amatosg Are you still working on this?

Closing this PR since tests are failing. Please reopen if you'd still like to see improvement.


Editorial final version switch back to diff version after each autoupdate

To reproduce:

create new motion
set motion state to accepted
create editorial final version
=> error 1: text should switch to created "editorial final version" view - diff version is shown instead
select "editorial final version"
click edit button -> edit form opens
make some text changes (without saving)
Now: open 2nd tab and create an autoupdate (e.g. set a user to present)
=> error 2: motion detail view in tab 1 is switched from "editorial final version" to "diff version"! Edit form is closed without saving! Expected: should keep the selected form open

Workaround for error2:
go to motion settings and change "default text version" from "Diff version" to "Final version".
This issue is critial because you cannot work in final version editor as long as default is "diff version" (which is default during meeting). Each autoupdate breaks your work...

I can reproduce the bug.

The problem is triggered by the client commit 'd8376e603851ed4e7ae796de10fd8594e4431bc4'.
If I revert it, I don't see the problem anymore.

The os-motion-highlight-form seems to be the main component for this issue.
The last commit on it seems to cause the bug.