button._manual_alarm_start and button._reboot are unavailable

Description
Everything works OK but button._manual_alarm_start and button._reboot, as they appear as "unavailable".
Happens to C200 and C210 models
Reproduction Steps
Just checking the status of these two buttons.
Expected behavior
They should be available
If applicable, add error logs.
No response
Device Firmware
1.3.5 (C200) / 1.3.3 (C210)
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
HASOS
Search for similar issues
Yes
Additional information
No response

Are there any errors in the logs?

Thanks for replying. I am getting this error:
This error originated from a custom integration.
Logger: custom_components.tapo_control
Source: custom_components/tapo_control/utils.py:723
Integration: Tapo: Cameras Control (documentation, issues)
First occurred: 8:46:40 AM (13812 occurrences)
Last logged: 7:26:29 PM
Unexpected error fetching Tapo resource status data:
EventManager.async_start() missing 2 required positional arguments:
'try_pullpoint' and 'try_webhook'
Traceback (most recent call last):
File
"/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line
258, in _async_refresh
self.data = await self._async_update_data()
File
"/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line
217, in _async_update_data
return await self.update_method()
File "/config/custom_components/tapo_control/init.py", line 229, in
async_update_data
await setupOnvif(hass, entry)
File "/config/custom_components/tapo_control/utils.py", line 713, in
setupOnvif
hass.data[DOMAIN][entry.entry_id]["eventsSetup"] = await setupEvents(
File "/config/custom_components/tapo_control/utils.py", line 723, in
setupEvents
if await events.async_start():
TypeError: EventManager.async_start() missing 2 required positional
arguments: 'try_pullpoint' and 'try_webhook'
El mar, 2 may 2023 a las 18:38, Juraj Nyíri @.***>)
escribió:

Are there any errors in the logs?
—
Reply to this email directly, view it on GitHub
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/325#issuecomment-1531794692,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALKMG4VCJ4TPWTK5UVHO6NDXEEZ75ANCNFSM6AAAAAAXTHX55A
.
You are receiving this because you authored the thread.Message ID:
@.***>

Use version https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.1.6 with HA 2023.05.x
Use version https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.1.2 with HA 2023.04.x

Hi, thanks for your quick response.
I am in HA 2023.06 beta so updated integration to 5.1.6.
I got this error so I had to manually install 5.1.6:
You are running Home Assistant version '2023.5.0b6', but this repository
requires minimum version '2023.5.0' to be installed.
After rebooting HA, these two entities are still unavailable/unknown.
Any other suggestions?
Thanks
El mar, 2 may 2023 a las 21:41, Juraj Nyíri @.***>)
escribió:

Use version
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.1.6
with HA 2023.05.x
Use version
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.1.2
with HA 2023.04.x
—
Reply to this email directly, view it on GitHub
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/325#issuecomment-1532047225,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALKMG4V6QFQ4MXHS7SFEIYTXEFPN7ANCNFSM6AAAAAAXTHX55A
.
You are receiving this because you authored the thread.Message ID:
@.***>

There were breaking changes introduced yesterday to beta 6. Use beta 5 or stable for now until I fix this.

Ok, thanks for the update.
El mar, 2 may 2023 a las 22:12, Juraj Nyíri @.***>)
escribió:

There were breaking changes introduced yesterday to beta 6. Use beta 5 or
stable for now until I fix this.
—
Reply to this email directly, view it on GitHub
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/325#issuecomment-1532084455,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALKMG4UBYGZXEZIPGD4YZOTXEFTBNANCNFSM6AAAAAAXTHX55A
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi
I am afraid it is not solved in my end.
Updated to 5.1.7 but these entities are still unavailable.
HA is in 2023.05 stable version.
Do you need anything else from my side? Can I provide any additional
information?
Thanks and best regards,
José
El mar, 2 may 2023 a las 22:26, Juraj Nyíri @.***>)
escribió:

Fixed in
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/releases/tag/5.1.7
.
—
Reply to this email directly, view it on GitHub
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/325#issuecomment-1532102897,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALKMG4RRG6BI2EQKJFCDCKTXEFUVRANCNFSM6AAAAAAXTHX55A
.
You are receiving this because you authored the thread.Message ID:
@.***>

Yes, please send logs and make sure you actually updated properly.

I can confirm 5.1.7 is installed. Attached screen capture. And got these
two errors from Core log:
[image: image.png]
############# ERROR 1 ################
Logger: homeassistant.helpers.integration_platform
Source: loader.py:850
First occurred: 7:45:34 AM (7 occurrences)
Last logged: 10:37:23 AM
Unexpected error importing tapo_control/significant_change.py
Unexpected error importing tapo_control/system_health.py
Unexpected error importing tapo_control/logbook.py
Unexpected error importing tapo_control/group.py
Unexpected error importing tapo_control/hardware.py
Traceback (most recent call last):
File
"/usr/src/homeassistant/homeassistant/helpers/integration_platform.py",
line 50, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in
get_platform
cache[full_name] = self._import_platform(platform_name)
File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in
_import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in
import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in
_find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.tapo_control -
copia.diagnostics'
############# ERROR 2 ################
This error originated from a custom integration.
Logger: custom_components.tapo_control
Source: custom_components/tapo_control - copia/utils.py:723
Integration: tapo_control (documentation, issues)
First occurred: 7:46:04 AM (3436 occurrences)
Last logged: 10:37:15 AM
Unexpected error fetching Tapo resource status data:
EventManager.async_start() missing 2 required positional arguments:
'try_pullpoint' and 'try_webhook'
Traceback (most recent call last):
File
"/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line
258, in _async_refresh
self.data = await self._async_update_data()
File
"/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line
217, in _async_update_data
return await self.update_method()
File "/config/custom_components/tapo_control - copia/init.py", line
229, in async_update_data
await setupOnvif(hass, entry)
File "/config/custom_components/tapo_control - copia/utils.py", line 713,
in setupOnvif
hass.data[DOMAIN][entry.entry_id]["eventsSetup"] = await setupEvents(
File "/config/custom_components/tapo_control - copia/utils.py", line 723,
in setupEvents
if await events.async_start():
TypeError: EventManager.async_start() missing 2 required positional
arguments: 'try_pullpoint' and 'try_webhook'
El jue, 4 may 2023 a las 10:01, Juraj Nyíri @.***>)
escribió:

Yes, please send logs and make sure you actually updated properly.
—
Reply to this email directly, view it on GitHub
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/325#issuecomment-1534256326,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALKMG4VEWFIVVG6GIGXWEX3XENO6DANCNFSM6AAAAAAXTHX55A
.
You are receiving this because you authored the thread.Message ID:
@.***>

############# ERROR 2 ################
You have not installed 5.1.7, this error is fixed in it.
Unexpected error importing tapo_control/significant_change.py
Unexpected error importing tapo_control/system_health.py
Unexpected error importing tapo_control/logbook.py
Unexpected error importing tapo_control/group.py
Unexpected error importing tapo_control/hardware.py

I do not know what you have added to tapo_control folder, but these files are not part of this integration. Install it properly, ideally using HACS.

me neither because I checked the /config/custom_components/tapo_contro
folder and, as an example, "logbook.py" file is not there!
should I delete the whole folder and install the integration again? and, if
that's the case, is there any way I can keep all my cameras configuration?
[image: image.png]
El jue, 4 may 2023 a las 10:46, Juraj Nyíri @.***>)
escribió:

############# ERROR 2 ################
You have not installed 5.1.7, this error is fixed in it.
Unexpected error importing tapo_control/significant_change.py
Unexpected error importing tapo_control/system_health.py
Unexpected error importing tapo_control/logbook.py
Unexpected error importing tapo_control/group.py
Unexpected error importing tapo_control/hardware.py
I do not know what you have added to tapo_control folder, but these files
are not part of this integration. Install it properly, ideally using HACS.
—
Reply to this email directly, view it on GitHub
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/325#issuecomment-1534322732,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALKMG4UFYVE3OVBPXPHTA23XENUFNANCNFSM6AAAAAAXTHX55A
.
You are receiving this because you authored the thread.Message ID:
@.***>

remove all cameras
uninstalled integration
verified folder was deleted
reboot HA
installed integration
reboot HA
installed cameras
still same issue---
get these two errors in log:
This error originated from a custom integration.
Logger: custom_components.tapo_control
Source: custom_components/tapo_control/init.py:324
Integration: Tapo: Cameras Control (documentation, issues)
First occurred: 9:27:17 PM (54 occurrences)
Last logged: 9:30:41 PM
Unexpected error fetching Tapo resource status data: <pytapo.Tapo object at
0x7feb6cf11570>
Unexpected error fetching Tapo resource status data: <pytapo.Tapo object at
0x7feb356ec7f0>
Unexpected error fetching Tapo resource status data: <pytapo.Tapo object at
0x7feb72c00af0>
Unexpected error fetching Tapo resource status data: <pytapo.Tapo object at
0x7feb666d08b0>
Unexpected error fetching Tapo resource status data: <pytapo.Tapo object at
0x7feb72127d90>
Traceback (most recent call last):
File
"/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line
258, in _async_refresh
self.data = await self._async_update_data()
File
"/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line
217, in _async_update_data
return await self.update_method()
File "/config/custom_components/tapo_control/init.py", line 324, in
async_update_data
entity["camData"] = updateDataForAllControllers[
KeyError: <pytapo.Tapo object at 0x7feb6cf11570>
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/tapo_control/utils.py:642
Integration: Tapo: Cameras Control (documentation, issues)
First occurred: 9:27:16 PM (5 occurrences)
Last logged: 9:28:17 PM
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/config/custom_components/tapo_control/utils.py", line 642, in
update_listener
entity._host = host
AttributeError: 'dict' object has no attribute '_host'
El jue, 4 may 2023 a las 14:49, Juraj Nyíri @.***>)
escribió:

Yes, reinstall, something is wrong with your environment. camera
configurations are kept in .storage, not in custom_components folder.
—
Reply to this email directly, view it on GitHub
https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/325#issuecomment-1534721451,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALKMG4QHW43T6LCQXKQQZKDXEOQWXANCNFSM6AAAAAAXTHX55A
.
You are receiving this because you authored the thread.Message ID:
@.***>

It is a completely different issue now, the logs you posted are different. You need to fix your environment -- delete everything related to tapo from jsons in .storage. Make sure to create backup.
If you have backup before you updated and all this started it might be easier to restore. Then simply update to the newest version.


Clean out or fix flakey tests

https://github.com/reddit/baseplate.py/pull/360#issuecomment-539760238

Haven't seen this in a while. Will re-open if it crops back up.

It came back!!!! :angry:


support for "readers-writers paradigm" in m-concurrent.h

In order to maximize throughput on such thread-safe containers it would be useful to support also the above paradigm (not necessary ref: https://en.wikipedia.org/wiki/Readers–writers_problem) using locks and condition variables in order to allow multiple concurrent reads against exclusive writes. This can be alternative to the CONCURRENT_DEF macro.

Which methods do you think shall support such paradigm?
(See https://en.wikipedia.org/wiki/Readers–writer_lock for example of such lock).

If you mean, "what priority policies use?", it would depend on the application you are going to implement. Personally I would use the "Read-preferring RW lock" for my application but, again, it depends. I you want to provide a general approach you should implement both (or the three choices). It's up to you.

Do you plan to use it on complex base type or small one (like int)?

Not really small. Does it change something?

The mechanism for Read Preference presented in https://en.wikipedia.org/wiki/Readers–writer_lock can take up to 3 mutex lock/unlock for one read access. The overall cost seems quite high. So I am unsure if such solution will be faster than the simpler one of using one lock/unlock.
Maybe the solution presented in http://www.cs.unc.edu/~anderson/papers/ecrts09b.pdf which uses 2 atomic add for read will be better (but need more work for the _blocking methods).

I have pushed in master an implementation (with the 3 locks/unlocks for reading) as CONCURRENT_RP_DEF.
Can you tell me the performance compared with plain CONCURRENT_DEF?

I have pushed in master another implementation (based on atomic_add) as CONCURRENT_RP2_DEF.
Could you tell me which one is better?

I am interested in the benchmark code.

I have updated the bench at https://gist.github.com/P-p-H-d/d517ae44b74096f2cd6ea724cd68211b

by using get_copy instead of get_at_copy (get_at_copy will create a new entry if the entry is not found, so it modifies the dictionary and as such uses a write lock)
by using rand_get instead of rand (faster)
by removing the sleep.

It seems the reads with CONCURRENT_RP are a little bit faster.
I understand why CONCURRENT_RP2 doesn't work but I think I won't fix it and will remove it.

I have added some basic tests on CONCURRENT_RP_DEF. I don't plan to do anything else on this ticket.
Faster TS_DICT will need dedicated container. It is planned (see ISSUES.org) and I plan to do read without any lock and write with two CAS. But this is a lot of work of design.

Thank you. I will test it again.


Conection

Hi i like using Limerat can you do a connection like that just using raw text to connect to server using pastebin.

@0x00chad  Done.


Web interface for running/editing programs

Workaround for now is to use the Cloud9 IDE on the Beaglebone through a web browser:

Go to http://b3.local (no port 5000)
From the cog icon on the left tree, enable "Show home in favourites"
Open up the home directory ("~"), find and open "uts", then double-click "uts-programs.toml" to edit the programs
You can ignore specific programs by putting "# " at the start of each line, or just delete them. There is no limit to how many you can run. Change "loop = false" to "loop = true" at the top for it to repeat the script over and over again.
In the command line below, type the following:

UTS_PROGRAM_FILE=$HOME/uts/uts-programs.toml RUST_LOG=info uts-run

This will run your program. If you need to stop it, hit Ctrl-C.
If you stop the program and the heater is still running, you can use the web interface or CLI (command line interface) tool to stop the heater manually:
uts-cli heater -b 2 off

This turns off the heater on the board on bus "2" (which will be the bottom board), which is all the test boards at Tech Lab currently.

Not doing this for now.


[clang-tidy] Vote: Add exception checks

Voting will close on 13 September 2023 EOD HZDR time.

bugprone-exception-escape: - Link
bugprone-throw-keyword-missing: - Link
cert-err58-cpp - Link
cert-err60-cpp - Link
hicpp-exception-baseclass - Link
misc-throw-by-value-catch-by-reference - Link
modernize-use-noexcept - Link
modernize-use-uncaught-exceptions - Link

Vote template
Check | Yes | No | Comment
------|-----|----|--------
`bugprone-exception-escape` | X | X | X
`bugprone-throw-keyword-missing` | X | X | X
`cert-err58-cpp` | X | X | X
`cert-err60-cpp` | X | X | X
`hicpp-exception-baseclass` | X | X | X
`misc-throw-by-value-catch-by-reference` | X | X | X
`modernize-use-noexcept` | X | X | X
`modernize-use-uncaught-exceptions` | X | X | X

Vote

Check
Yes
No
Comment

bugprone-exception-escape
1
0
-

bugprone-throw-keyword-missing
1
0
-

cert-err58-cpp
1
0
-

cert-err60-cpp
1
0
-

hicpp-exception-baseclass
1
0
-

misc-throw-by-value-catch-by-reference
1
0
-

modernize-use-noexcept
1
0
-

modernize-use-uncaught-exceptions
1
0
-

All in favor! cert-err58-cpp may hit us in some places, but I think it's better to disable it locally and still see the warning.


python-sample is empty?

https://github.com/MicrosoftDocs/vsts-docs/blob/master/docs/pipelines/get-started-yaml.md references a yaml file within https://github.com/adventworks/python-sample , However, the repo looks empty.

Thanks for raising this issue. The issue was fixed and the topic now points to a different repo.


kafka.admin is not a function

Describe the bug
I try to use the admin from kafka.admin() and it produces the error 'kafka.admin is not a function '
To Reproduce
Please provide either a link to a:
just using the following commands is enough
const kafka = new Kafka({
  clientId: config.clientId,
  brokers: config.brokers,
  connectionTimeout: config.connectionTimeout,
  authenticationTimeout: config.authenticationTimeout,
  reauthenticationThreshold: config.reauthenticationThreshold,
});

const admin = kafka.admin();

Environment:

OS: [e.g. Mac OS 11.0.1]
KafkaJS version [e.g. 1.15.0]
Kafka version [e.g. 2.12-2.3.0]
NodeJS version [e.g. 10.16.3]

How are you importing KafkaJS and what version of KafkaJS are you using?
Running your example works just fine. The only thing I changed was to add a console.log(admin) after, to see what it returns, and as expected I get an admin client back:
❯ node examples/admin.js
{
  connect: [AsyncFunction: connect],
  disconnect: [AsyncFunction: disconnect],
  listTopics: [AsyncFunction: listTopics],
  createTopics: [AsyncFunction: createTopics],
  deleteTopics: [AsyncFunction: deleteTopics],
  createPartitions: [AsyncFunction: createPartitions],
  getTopicMetadata: [AsyncFunction: getTopicMetadata],
  fetchTopicMetadata: [AsyncFunction: fetchTopicMetadata],
  describeCluster: [AsyncFunction: describeCluster],
  events: {
    CONNECT: 'admin.connect',
    DISCONNECT: 'admin.disconnect',
    REQUEST: 'admin.network.request',
    REQUEST_TIMEOUT: 'admin.network.request_timeout',
    REQUEST_QUEUE_SIZE: 'admin.network.request_queue_size'
  },
  fetchOffsets: [AsyncFunction: fetchOffsets],
  fetchTopicOffsets: [AsyncFunction: fetchTopicOffsets],
  fetchTopicOffsetsByTimestamp: [AsyncFunction: fetchTopicOffsetsByTimestamp],
  setOffsets: [AsyncFunction: setOffsets],
  resetOffsets: [AsyncFunction: resetOffsets],
  describeConfigs: [AsyncFunction: describeConfigs],
  alterConfigs: [AsyncFunction: alterConfigs],
  on: [Function: on],
  logger: [Function: getLogger],
  listGroups: [AsyncFunction: listGroups],
  describeGroups: [AsyncFunction: describeGroups],
  deleteGroups: [AsyncFunction: deleteGroups],
  describeAcls: [AsyncFunction: describeAcls],
  deleteAcls: [AsyncFunction: deleteAcls],
  createAcls: [AsyncFunction: createAcls],
  deleteTopicRecords: [AsyncFunction: deleteTopicRecords]
}


pantheon

Does it show up in pantheons

Currently, the modded boss doesn't show up in the pantheons. However, you can make it work with the Custom Pantheon mod:
https://github.com/ygsbzr/HollowKnight.CustomPantheon
You can modify the PantheonRooms section in it's Global Settings to load the Ancient Aspid in a custom pantheon. The scene names you can use are these:
Attuned Arena Scene = "GG_Ancient_Aspid"
Ascended Arena Scene = "GG_Ancient_Aspid_V"
Radiant Arena Scene = "GG_Ancient_Aspid_RAD"

OK thanks. I was asking for the sake of custom pantheons.

Thanks, I was asking for the sake of making a custom pantheon.


As a software architect I would like to eliminate all reference to jQuery from TaxonWorks

Not a super high priority, but likely worthwhile in the long-term.
@jlpereira I think this is reasonable to assume we can remove it at this point (though it will take some work I expect)?  It has the most impact on the autocompletes I think- which we tuned to work very nicely, so there are likely considerations there.
We can confirm this is done and document by moving/ensuring the software description stack is in a new home at docs.taxonworks.org.

I've been migrating our code in the Rails pipeline to vanilla js, but we still need to migrate autocomplete and other stuff, I'm pretty sure we can do it during this year.


The 'Discord' link in the README.md doesn't work

Description
Nothing more to say

I've been redirected correctly from the README link.

On my screen (PC & Android) it redirects me to the app in a completely empty server, with no messages, no textual chats or anything, which doesn't get added to the sidebar.

The link at the bottom of the main website (https://reasonml-editor.github.io/reasonml-idea-plugin/) shows as "invalid invitation"

yep, website link is invalid. thanks.

Does the Discord server require an invitation of some kind? I asked someone else and it doesn't work for them either.

no this should be this url : https://discord.com/channels/713777184996589580

That URL doesn't work either, it leads to a group that doesn't have anything. Can you try to access it with an account that's not already in the group? It probably works for you because you're already a member.

the channel is not very active, but you're welcome 😄.
the fact is I don't where to look in discord to create a link that has a correct redirection to the channel.

Also note that, for generic subjects that are not bugs, github discussions (https://github.com/reasonml-editor/reasonml-idea-plugin/discussions) are enabled.

Replaced by #307


test bingle

see if we can't hardcode that image url to fix URL issue. suppose I could change the embed url instead. much to think about.

okay this fixes the image but not the url stuff. hmm.


Inconsistent element-wise function behavior with multiple GPUs

I have some code that produces an error when I use element-wise subtraction, but not when I use element-wise subtraction. Here is the code I used below:
# Simple test network
class test_t( chainer.Chain):
    # Initialize the network
    def __init__( self):
        super( test_t, self).__init__(
            l1 = L.Linear( 2, 2)
        )

    # Define the loss function
    def loss( self, x, y):

        # Select case to test
        case = 1

        # This doesn't work
        if case == 1:
            z = F.tanh( self.l1( x))
            d = z - y
            return F.sum( d*d)

        # This works
        elif case == 2:
            z = -F.tanh( self.l1( x))
            d = z + y
            return F.sum( d*d)

# Data to play with
x = random.randn( 1000, 2).astype( float32)

# Select the non-default GPU
GPU = 1

# Setup and get loss
model = test_t().to_gpu( GPU)
model.loss(
    chainer.Variable( chainer.cuda.to_gpu( x, GPU)),
    chainer.cuda.to_gpu( x, GPU)
)

If you change the case variable to 1 it will use an element-wise subtraction to compute the loss. In this case I get an error that Array device must be same as the current device: array device = 1 while current = 0. If I change case to 2 it negates one of the operants and then uses element-wise addition to compute the same thing as before. In this case there is no error.
In this case there is an easy workaround, but this also happens when I use LSTM layers and it doesn't feel right to go in the LSTM function and start changing signs.

Hi
Thank you for reporting the issue. The solution is to switches the current device as follows:
        if case == 1:
            with chainer.cuda.get_device(y):
                z = F.tanh( self.l1( x))
                d = z - y
                return F.sum( d*d)

I describe of the reason of this behavior in detail. Please read it if you are interested in the internal of Chainer.
The problem comes from the difference of the negate operation of chainer.Variable and cupy.ndarray.
import chainer
import cupy
import numpy

cupy.cuda.Device(0).use
with cupy.cuda.Device(1):
    data = numpy.random.randn(1000, 2).astype(numpy.float32)

-chainer.Variable(x)  # (1) OK
-x  # (2) Error

(1) invokes F.Neg.forward is invoked through Chainer.Function.__call__. When Function.__call__ is invoked, Chainer automatically switches the current device to the one which the input data are located (you can check the behavior here).
On the other hand, in (2),  only cupy.ndarray.__neg__ is invokded and does not switch the device. If the device the data is located is different from current device, the error is raised.
In your case, negation in -F.tanh(self.) in case 2 implicitly calls F.Neg.forward. Contrary to that, z - y is equivalent to F.AddConstant(-rhs)(lhs) where rhs is y and lhs is z. So cupy.ndarray.__neg__ is called before F.AddConstant.__call__ is invoked and device inconsistency happens.

Thanks for the detailed explanation, that makes sense.  My main frustration was that when I use x+y, x-y, x*y or x/y I get different behavior (- and / give errors, + and * don't) which is somewhat unexpected.


PLTBUGS-7197 - Improve DB connections recovery

Refer to this link for build results (access rights to CI server needed):
https://jenkins.airvantage.io/job/av-sched-pull-requests/145/
Integration build result

Commit: 8bffe8ac9e4a1d71493b24a106350ce20f83356d
Status: FAILURE :-1;

Refer to this link for build results (access rights to CI server needed):
https://jenkins.airvantage.io/job/av-sched-pull-requests/146/
Integration build result

Commit: 77f725d670282da9fd655ca444add6e1f23b0378
Status: SUCCESS :+1:

SonarQube analysis reported 1 issue

 ServiceLocator.java#L287: This block of commented-out lines of code should be removed.

Refer to this link for build results (access rights to CI server needed):
https://jenkins.airvantage.io/job/av-sched-pull-requests/147/
Integration build result

Commit: 83a78677969a002fec14313ad7b1ac56f3d741bd
Status: SUCCESS :+1:


Issue/2871 resources tab

Description
closes #2871
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[x] Attached issue to pull request
[x] Changelog entry
[x] Code is clear and sufficiently documented
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )

Reviewer Checklist:

[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Code is clear and sufficiently documented
[ ] Correct, in line with design

Processing this pull request

Merged into branches iso5, master in 0ae0f7928d1a562423b45d5739b96525b9422b83

Processing #2918.


Wrapping reading attributes in try-catch block.

During debugging the app, I spotted this leak:

After double-clicking on the first line I was redirected to private func setDataSync(data: NSData, key: String) method of DiskCache, specifically to:
let previousAttributes : NSDictionary? = try? fileManager.attributesOfItemAtPath(path).
I wrapped it up into try-catch block, run Instruments again and the leak was gone. Then I restored setDataSync method to original version -> leak. Again, back to try-catch -> no leak.
Now although it fixes leak it would be cool if someone could explain to me why and what is happening, because AFAIK not catched exception should not cause such situation. 🙄
Codebase of app is migrated to Swift 2.2, leak was spotted with using Xcode 7.3, iOS 9.3 on both device and simulator.

https://github.com/apple/swift/pull/1740


an error occurred when using the metrics module

when I use the following commands  to run scenario ,there will always be an error.
1.python scenario_runner.py --scenario FollowLeadingVehicle_1 --record srunner/metrics/data
_2.python3 metrics_manager.py --metric srunner/metrics/distance_between_two_vehicles.py --log srunner/metrics/data/FollowLeadingVehicle_1.log

Save the child,thank you very much!
Desktop (please complete the following information):

OS: [e.g. Windows]
CARLA Version [e.g. CARLA 0.9.12]
Python version [e.g. 3.7]
Version [e.g. 0.9.12]

I refer to what the official document says ,it can't run successfully

when I use the following commands to run scenario ,there will always be an error. 1.python scenario_runner.py --scenario FollowLeadingVehicle_1 --record srunner/metrics/data _2.python3 metrics_manager.py --metric srunner/metrics/distance_between_two_vehicles.py --log srunner/metrics/data/FollowLeadingVehicle_1.log
Save the child,thank you very much! Desktop (please complete the following information):

OS: [e.g. Windows]
CARLA Version [e.g. CARLA 0.9.12]
Python version [e.g. 3.7]
Version [e.g. 0.9.12]

es.githubusercontent.com/56059626/139816294-69a3c17c-ca7f-490d-b0a0-17beb7bbfce4.jpg)

Save the child,thank you very much! Desktop (please complete the following information):

OS: [e.g. Windows]
CARLA Version [e.g. CARLA 0.9.12]
Python version [e.g. 3.7]
Version [e.g. 0.9.12]

I successfully recorded a FollowLeadingVehilce_1 by running python scenario_runner.py --scenario FollowLeadingVehicle_1 --record srunner/metrics/data,but when I run the second command(python3 metrics_manager.py --metric srunner/metrics/distance_between_two_vehicles.py --log srunner/metrics/data/FollowLeadingVehicle_1.log), I encountered the following error, do you know how to solve it?

I imported init().py file.

When I use the Disance_between_vehilces metric for FollowLeadingVehilce_1.log, there will be AttributeError"'NoneType' object has no attribute'location',
When I use the distance_to_lane_center metric for ControlLoss_1.log, I still get AttributeError"'NoneType' object has no attribute'location'. Then I print(log.get_actor_transform(ego_id,i)) in the 56th line of the disaster_between_vehilces and the output is None? But I get ego vehicle's id through print(ego_id)
Why is this?

@glopezdiest  Thanks in advance!!!

when I use the following commands to run scenario ,there will always be an error. 1.python scenario_runner.py --scenario FollowLeadingVehicle_1 --record srunner/metrics/data _2.python3 metrics_manager.py --metric srunner/metrics/distance_between_two_vehicles.py --log srunner/metrics/data/FollowLeadingVehicle_1.log
Save the child,thank you very much! Desktop (please complete the following information):

OS: [e.g. Windows]
CARLA Version [e.g. CARLA 0.9.12]
Python version [e.g. 3.7]
Version [e.g. 0.9.12]

When I use the Disance_between_vehilces metric for FollowLeadingVehilce_1.log, there will be AttributeError"'NoneType' object has no attribute'location', When I use the distance_to_lane_center metric for ControlLoss_1.log, I still get AttributeError"'NoneType' object has no attribute'location'. Then I print(log.get_actor_transform(ego_id,i)) in the 56th line of the disaster_between_vehilces and the output is 'None' But I get ego vehicle's id through print(ego_id) Why is this?  @glopezdiest Thanks in advance!!!

I'll take a look, seems like the metrics module is broken

I'll take a look, seems like the metrics module is broken

Is the offical metrics module broken? or my metrics module is broken

Seems like the metrics module itself, but I'm not sure as I haven't used it in a while

Seems like the metrics module itself, but I'm not sure as I haven't used it in a while

Do you know how to solve this problem?

@GeneralMak I'm linking this issue with #829, as you already answered there and the error is basically the same. We'll close this when the other one is resolved too.


Support Canadian postal code with spaces, like "L8V 3Y1"

Canada Post claims that:
"The Postal Code is a six-character uniformly structured, alphanumeric
code in the form “ANA NAN” where “A” represents an alphabetic character
and “N” represents a numeric character. "
http://www.canadapost.ca/tools/pg/manual/PGaddress-e.asp?ecid=murl10006450#1413985

Thanks @apuchkov


hasClass does not work as expected

This is a (multiple allowed):

[x] bug
[x] feature-discussion (RFC)

I want to test if any (at least one) element in my list has the class .bingo.
I have a 5 li-tags and 1 tag is associated with class .bingo:
var containBingo = $$('#mylist li').hasClass('bingo');
this will always return "false", even one tag in my list is associated with class ".bingo".
I have to do this to get "containBingo" to "true"
	$$('#app_menu li').each(function() {
        if ($$(this).hasClass('bingo')) {
            console.log('BINGO');
            containBingo = true;
        }
        });

However, the f7 docs says this about hasClass():
Determine whether any of the matched elements are assigned the given class.
So according to the docs it must return true, because there is one element with class .bingo.
Is this a bug?

this will be the callback. use value
$$('#app_menu li').each(function(index, value) {
        if ($$(value).hasClass('bingo')) {
            console.log('BINGO');
            containBingo = true;
        }
});

Hey,
I don't think it's a bug!!
Though that totally depend upon your context of class "Bingo"..😁
On Tuesday, September 13, 2016, Zander<EMAIL_ADDRESS>wrote:

this will be the callback. use value
$$('#app_menu li').each(function(index, value) {
if ($$(value).hasClass('bingo')) {
console.log('BINGO');
containBingo = true;
}
});
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nolimits4web/Framework7/issues/1124#issuecomment-246718281,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVGa_AnSVKQDkch7HMTzTta0qTFdSF2sks5qpr_SgaJpZM4J7eNP
.

@virtual-vicky fairly sure it's operator error

@nimo23 Can you post your HTML or even better create a fiddle to reproduce the problem? http://www.jsfiddle.net
As ZanderBrown's already said it's most likely a minor error in your selector declaration.
.hasClass() works properly the way described in the docs.

hasClass only looks for "one" element and not for "all elements".
I guess, that was intended. I have solved that with this:
if( !document.querySelector('#mylist li.bingo') )
f7-hasClass is the actually the same as document.classList.hasClass(). So I guess, it s okay.


Output directory different to that of Vercel

When deploying to Vercel the following settings were required:

Vercel's defaults are:

Would suggest making the output directory Next.js.

Hi @maggie0002 according to Next.js documentation here: https://nextjs.org/docs/api-reference/next.config.js/setting-a-custom-build-directory the default build directory is .next.  So I don't think it is necessary to toggle the override here.   Did you have trouble when deploying?   I'm closing this issue for now, but please feel free to open if you are still having trouble.


Py313

Not sure why the bot thinks this one needs pyarrow (see the status page). Anyway, it should pass, finger crossed.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

Hi! This is the friendly conda-forge automerge bot!
I considered the following status checks when analyzing this PR:

linter: passed
azure: passed

Thus the PR was passing and merged! Have a great day!


Implement univariate prediction on sleep time vs date

As the title suggests, implement a forecast under sktime to predict the amount a user sleeps and the date.
Can be for any amount of days in the future.

Completed, for now...
817e236261cc1f28db5df7f908e12ed56c017d25


December 2024 ASF Board Report

Is your feature request related to a problem or challenge?
Per https://whimsy.apache.org/roster/committee/datafusion the DataFusion ASF board report schedule is
March, June, September, December
Describe the solution you'd like
I would like to draft a board report for the ASF board meeting, ideally with community help.
The meetings are typically in the second or third week of the month
Describe alternatives you've considered
I plan to do this in the same style that worked well in Arrow (see an example from @andygrove
here https://lists.apache.org/thread/7w4mgy98qomc6drvj2fo81gvhq6p0boc) -- make a google doc (or issue) that people can add relevant content to and then the chair (me for the time being) submits it to the board
Additional context
No response

Tracking in https://github.com/influxdata/idpe/issues/18746, so let's close this one

Here is a draft report: https://docs.google.com/document/d/1b_C8uwMJVSrw9N1Oc8_fzFdpT0YExaRiuXJ8ulAXaYs/edit?tab=t.0
@andygrove  is there any chance you can help with the Comet section?
@timsaucer  perhaps you can write a few notes about the Python subproject

40+ commits later, we have API which can make datafusion applications distributed with single line change:

Wow that is pretty amazing. Thank you @milenkovicm
I have added a link to your update in the report. very cool

I filed https://github.com/apache/datafusion/issues/13713 to track the next release and took a pass over the document today.
I plan to submit the doc tomorrow Dec 11 per the plan

Here is the final report that I submitted. Thanks to @phillipleblanc @andygrove @timsaucer @milenkovicm for the help writing it 🙏
## Description:
The mission of Apache DataFusion is the creation and maintenance of software
related to an extensible query engine

## Project Status:
Current project status: New + Ongoing (high activity)
Issues for the board: None

## Membership Data:
Apache DataFusion was founded 2024-04-16 (8 months ago)
There are currently 42 committers and 14 PMC members in this project.
The Committer-to-PMC ratio is 3:1.

Community changes, past quarter:
- No new PMC members. Last addition was Jay Zhan on 2024-08-11.
- Piotr Findeisen was added as committer on 2024-12-03
- Jax Liu was added as committer on 2024-10-18
- Ifeanyi Ubah was added as committer on 2024-11-04
- Ruiqiu Cao was added as committer on 2024-12-10
- Michael Ward was added as committer on 2024-09-13

## Project Activity:
### Overall

We have completed adopting [sqlparser crate] into the project and made our
first release as part of the Apache Software Foundation.

[sqlparser crate]: https://github.com/apache/datafusion-sqlparser-rs

### DataFusion core

https://github.com/apache/datafusion

We continue the monthly release cadence versions. The [42.0.0 release] and
[43.0.0 release] had 73 and 96 unique contributors. We continue to [discuss
 the roadmap] in the open, and gathered a collection of [DataFusion
 related articles] onto our page.

We recently finished [significant performance improvements] as well as long
standing projects to migrate documentation to code and use the same API for
all user defined window functions. We also added FFI bindings to make it
easier to use multiple versions of DataFusion.

As more people build systems using DataFusion we are beginning to focus more
on keeping the core more stable, as it is [sometimes painful] to update to new
DataFusion versions.

[42.0.0 release]: https://github.com/apache/datafusion/
 blob/main/dev/changelog/42.0.0.md
[43.0.0 release]: https://github.com/apache/datafusion/
 blob/main/dev/changelog/42.0.0.md
[roadmap ticket]: https://github.com/apache/datafusion/issues/11442
[discuss the roadmap]: https://github.com/apache/datafusion/issues/13274
[DataFusion related articles]: https://datafusion.apache.org/
 user-guide/concepts-readings-events.html
[significant performance improvements]: https://datafusion.apache.org/blog/
 2024/11/18/datafusion-fastest-single-node-parquet-clickbench/
[sometimes painful]: https://github.com/apache/datafusion/issues/13525

### Sub project: DataFusion Python

https://github.com/apache/datafusion-python

We continue the monthly release cadence versions. The [datafusion-python
41.0.0] release and [datafusion-python 42.0.0] had 5 and 6 unique
contributors. Release for version 43.0.0 is underway at the time of this
writing.

We recently added support for [user defined window functions], including
significant updates to the user documentation on how to author user defined
functions. Additionally we released a [blog post on UDFs] demonstrating how
users can incorporate custom UDFs that can lead to 10x speed improvements by
writing Rust backed Python functions.

We added support for foreign table providers via the FFI bindings in the core
project. This enables external parties to provide Python interfaced table
providers that support features such as push down filtering, including across
different versions of DataFusion.

[datafusion-python 41.0.0]: https://github.com/apache/datafusion-python
/pull/866
[datafusion-python 42.0.0]: https://github.com/apache/datafusion-python
/pull/901
[blog post on UDFs]: https://datafusion.apache.org/blog
/2024/11/19/datafusion-python-udf-comparisons/

### Sub project: DataFusion Comet

https://github.com/apache/datafusion-comet

The Comet project recently released version 0.4.0 with a focus on performance
& stability. See [Blog post]

[Blog post]: https://datafusion.apache.org/blog/
2024/11/20/datafusion-comet-0.4.0/

Much of the current development focus is on improving complex type support,
particularly the ability to read complex types from Parquet and Iceberg
sources.

### Sub project: DataFusion Ballista

https://github.com/apache/datafusion-ballista

Since the last board report, the Ballista subproject has become much more
active and added new active maintainers.

The focus has changed from "Apache DataFusion Ballista Distributed Query
Engine" to "Making Apache DataFusion Applications Distributed"

The community has simplified the project by removing unfinished features and
refocusing as a way to scale out existing DataFusion applications by providing
a tighter integration with the core DataFusion project.

See more [details here]

[details here]: https://github.com/apache/datafusion/
issues/10157#issuecomment-2514694231

### Sub project: Sqlparser

https://github.com/apache/datafusion-sqlparser-rs

The sqlparser project became part of the DataFusion project this quarter.

In addition to ongoing additions to SQL dialect support, we made our first
release as part of the Apache DataFusion project, and have started introducing
spans (source locations), a long requested feature.

## Community Health:
It is still hard to keep track of everything going on, which is a good thing.
While it is always a struggle to get enough code review capacity, we have many
active committers, and the community in general helps each other out with
reviews. We continue to actively grow our committer and PMC ranks.

We have upcoming in person meetups scheduled for Chicago, Boston, and
Amsterdam.


Additional requirements from CMG installation

SCCM Console must be run as administrator, or you can experience "Password is not correct" error when adding certificate.
Resource providers that need to be enabled on Subscription, some of which are not there by default and are not enabled automatically:
o	Microsoft.Storage
o	Microsoft.ClassicCompute
o	Microsoft.ClassicNetwork
o	Microsoft.ClassicStorage

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

ID: 778368d0-1054-678c-4d74-5dce1b5826c8
Version Independent ID: aaac7308-66e6-66f0-8248-14e1505c11a6
Content: Plan for cloud management gateway - Configuration Manager
Content Source: sccm/core/clients/manage/cmg/plan-cloud-management-gateway.md
Product: configuration-manager
GitHub Login: @aczechowski
Microsoft Alias: aaroncz

Thanks @djanny22 for the feedback. In talking with the engineering team, only the following resources should be required for CMG/CDP as an Azure Resource Manager deployment:

Microsoft.Storage
Microsoft.ClassicCompute

Also reference the following post on Twitter

@djanny22 @aczechowski  The Microsoft.ClassicCompute is mentioned in Set up Cloud Management Gateway I've created a pull request to also add Microsoft.Storage to that document.

@torontojc; @djanny22   Closing some loose ends, as I see the PR that updates the 'Set up cloud management gateway for Configuration Manager article went live some time back. Our thanks for the original question and PR that helped update the related content.


Improve assign rate to tenant UI

Improve the UI assignment rate to tenant, now that show which tenant is a subtenant of other.
That uses Patterfly treegrid-table and we can expand tenants.

TAIGA LINK : [Task 64] (https://tree.taiga.io/project/sergioocon-charging-in-manageiq/task/64)

@miq-bot add-label ui
@miq-bot add-label chargeback

@skateman please look on UI part, thanks

@aljesusg can you also add screenshot how it looks before ? thanks!

Some issues are repeated multiple times, fix all of them and the rubocop issues. I will test your code after it's done.

btw you can be inspired by also
https://github.com/ManageIQ/guides/blob/master/coding_style_and_standards.md

and :beers: for using the new pf treegrid :)

Faling rebase, reopen in #7678 Sorry.


setinfo command

It is really necessary to have setinfo in cl_interp and cl_interp_ratio commands?
Just a question.

Not sure, it's just to be safe, and make sure to send it to the server

setinfo is used to change a custom command description, but ok.

It's not actually. It sets the value of user info, which is sent to the server.

It's not actually. It sets the value of user info console variables, which are sent to the server.

If we follow this logic, we would have to use setinfo in every command.

No, because the server doesn't read every client console variable. Only user info ones.


Bump inmanta-dev-dependencies[async,core,pytest,sphinx] from 2.58.0 to 2.59.0 (#5636)

Pull request opened by the merge tool on behalf of #5636

Merged in c4849b4e43418b76ca0f64c065e2b671083d4ee9


How can I add my custom debugger?

There are tickets that cover adding adapters.
https://github.com/daveleroy/SublimeDebugger/issues/211
https://github.com/daveleroy/SublimeDebugger/issues/191
https://github.com/daveleroy/SublimeDebugger/issues/92
And obviously the adapters which are already supported https://github.com/daveleroy/SublimeDebugger/tree/master/modules/adapters


Add ArmorCode State of Software Security 2023 report

Report Link: https://8032118.fs1.hubspotusercontent-na1.net/hubfs/8032118/PBC/Files/State of Application Security 2023 - Final Report.pdf
State of Application Security 2023 - Final Report (1).pdf
Description: In the State of Application Security 2023, we surveyed over 450 companies about the state of their AppSec program today.
Data source: Survey
Data type: Industry

I was able to find the report from the URL you provided. Thanks for the contribution!!


sample post notification

Need variables for Definition_ID, Org_ID, and Field_ID section that are not pre-populated


.addColumn fail on Postgresql if the column definition has a foreignKey

The following fails
exports.up = function(db, callback) {
  db.addColumn('practices', 'primary_topic_id', {
    type: type.INTEGER,
    notNull: true,
    foreignKey: {
      name: 'primary_topic_id_fk',
      table: 'topics',
      rules: {
        onDelete: 'CASCADE',
        onUpdate: 'RESTRICT'
      },
      mapping: 'id'
    }
  }, callback);
};

[ERROR] error: no existe la relación «undefined»
    at Connection.parseE (/home/rkmax/node-project/node_modules/pg/lib/connection.js:534:11)
    at Connection.parseMessage (/home/rkmax/node-project/node_modules/pg/lib/connection.js:361:17)
    at Socket.<anonymous> (/home/rkmax/node-project/node_modules/pg/lib/connection.js:105:22)
    at Socket.emit (events.js:107:17)
    at readableAddChunk (_stream_readable.js:163:16)
    at Socket.Readable.push (_stream_readable.js:126:10)
    at TCP.onread (net.js:529:20)

I have to do the following
exports.up = function (db, callback) {
  async.series([
    db.addColumn.bind(db, 'practices', 'primary_topic_id', {
      type: type.INTEGER
    }),
    db.changeColumn.bind(db, 'practices', 'primary_topic_id', {
      type: type.INTEGER,
      notNull: true,
      foreignKey: {
        name: 'primary_topic_id_fk',
        table: 'topics',
        rules: {
          onDelete: 'CASCADE',
          onUpdate: 'RESTRICT'
        },
        mapping: 'id'
      }
    })
  ], callback);
};

I forgot mention I'm using 7bfeea1f version

@rkmax yes, I know, I do rember #237

:+1:

I opened a new branch https://github.com/db-migrate/node-db-migrate/tree/maintainedTesting
You can find there a version based on 7aeea1f with the bugfix applied.

@wzrdtales thanks

@wzrdtales with the last issue solve this still reopen :(

please provide the necessary information to reproduce and actual error logs

are you sure, you're using the right version?
https://github.com/db-migrate/node-db-migrate/blob/master/test/driver/pg_test.js#L498-L525
I have also covered this with a test and it's passing

Example adding a new column
db.addColumn.bind(db, 'topics', 'category_id', {
      type: type.INTEGER,
      foreignKey: {
        name: 'category_id_fk',
        table: 'categories',
        rules: {
          onDelete: 'CASCADE',
          onUpdate: 'RESTRICT'
        },
        mapping: 'id'
      }
})

The field was added to the table but not as foreign key. this is the DDL generated after apply the migration
CREATE TABLE topics
(
id SERIAL PRIMARY KEY NOT NULL,
name VARCHAR NOT NULL,
description VARCHAR,
category_id INT,
);
I'm using this https://github.com/kunklejr/node-db-migrate/tarball/faa55cad348d2968582cfd5811c9f540f9e58696
Let me check if I'm calling the wrong db-migrate

This would be v0.9.7 and this fix is only applied to https://github.com/db-migrate/node-db-migrate/tree/maintainedTesting yet.

Never mind, confused of the title of the tarball, just checked the hash.

Man, I'm very sorry. seems my GUI Tool is not updating the info properly, I've checked directly with psql and table information was wrong.

ok no problem. if have any problems again please don't forget to provide error messages and a proper way to reproduce so I can faster solve your problem ;)

Thanks man, much thanks for your help and quickly responses


Disambiguate link on reset page

There is a link to a UCLA Logon Service Request Form
javascript:warn_pii("/forms/service_request.pdf");

Not sure where this is coming from.

That's a Chris question, or just pull it from the current logon.ucla.edu. I kept most of the basic content / wording the same.

Got it.  Will ask him.


UserManagerEvents are not firing for expired/expiring token

Hello,
I am trying to implement token refresh, and I have tried to add an event listener on addAccessTokenExpiring, but it never gets fired. It does not seem like the expiry is ever set even though it exists within the id_token. After inspecting the user object, both "expires_in" and "expired" is undefined.
User info from storage (redacted private info):
{"id_token":"<id_token>","session_state":null,"access_token":"00D8E000000HVnk!AQ0AQBOFoyafuzoaENSL8iJbGgzm5wIpcjn9vBuHVjSJJjRDq.oibBOwvf3a_oTnhF1nx11RmvZrjE47k_ozRG5opX2u7kNk","refresh_token":"<refresh_token>","token_type":"Bearer","scope":"refresh_token custom_permissions openid api","profile":{"sub":"<sub>","zoneinfo":"Europe/Amsterdam","email_verified":true,"address":{},"profile":"<profile>","iss":"<iss>","phone_number_verified":true,"preferred_username":"<username>","given_name":"Hans","locale":"no_NO","picture":"<picture>","aud":"<audience>","updated_at":"2023-04-19T08:59:10Z","nickname":"<nickname>","name":"<name>","phone_number":"<phone>","exp":1693385964,"iat":1693385664,"family_name":"<familyname>","email":"<email>"}}

useEffect(() => {
        // the `return` is important - addAccessTokenExpiring() returns a cleanup function
        return auth.events.addAccessTokenExpiring(() => {
            auth.revokeTokens();
        });
    // eslint-disable-next-line react-hooks/exhaustive-deps
    }, [auth.events, auth.revokeTokens]);

Any idea what might cause the fields to not be populated?

See https://github.com/authts/oidc-client-ts/blob/main/src/AccessTokenEvents.ts, you will need to load an initial valid User object with valid access token in order to have that event.
Either add debug logging https://authts.github.io/oidc-client-ts/#md:logging or debug down that road...

See https://github.com/authts/oidc-client-ts/blob/main/src/AccessTokenEvents.ts, you will need to load an initial valid User object with valid access token in order to have that event. Either add debug logging https://authts.github.io/oidc-client-ts/#md:logging or debug down that road...

 I unfortunately can't modify the access token as that is managed by Salesforce.

In the user manager constructor:
        // order is important for the following properties; these services depend upon the events.
        if (this.settings.automaticSilentRenew) {
            this.startSilentRenew();
        }

This code will call down the stack addAccessTokenExpiring

The have a look into the SilentRenewService. If you have not set automaticSilentRenew then you have to deal it for your self.

Do you happen to have any example code? To me it seems like I would need to get the user info from the token endpoint and then modify the User object with the missing information such as "expiry" and "expires_in" after it has been loaded. I can't find any examples on how you would modify any of the information stored within the library.

This https://github.com/authts/oidc-client-ts/tree/main/samples/Parcel might help you.

This issue (question) staled some time ago, closing it for now.


AspectRatio still does not apply the ratio value

Description
Hey again,
I just tried the new AspectRatio pattern after the last bug, right now only the padding-bottom value is not working.
it works if I don't provide a value and it use the default one 4 / 3 but when I provide something else such as 16 / 9 or even 1 / 2, I see the generated class but it does not apply for some reason
Link to Reproduction
here
Steps to reproduce
Check Aspect Ratio component
JS Framework
React TS
Panda CSS Version
0.6.0
Browser
Latest
Operating System

[X] macOS
[ ] Windows
[ ] Linux

Additional Information
No response

my bad my bad, thanks for catching this (again)

Hey @astahmer,
I'm sorry to inform you that it's still not working 🙈
check the codesandbox here

It was ! It even is still working in the tests.. I even tried pasting your exact sample

We use ts-evaluator for those cases instead of a simple eval, as a BinaryExpression could contain TS specific syntax  like 1 + (2 as number) etc
So I tried debugging the issue using your repo and I found that the typescript node.kind (223) on the BinaryExpression (16 / 7) wasn't matching the one from your typescript version 5.1.6 (which is also the one we use in the panda repo)

Then I found out we (in panda repo) have upgraded the TS version to 5.1.6 without upgrading ts-morph to 19.0.0 which support 5.1, so there is a mismatch since our ts-morph is at 18.0.8 which only supports 5.0.2
After that I tried updating ts-morph in my local panda repo and despite having the correct node.kind (225), ts-evaluator utility function isExpression is still returning false when encoutering BinaryExpression
My final guess is that ts-evaluator fails because of the exact same reasons listed above, it only supports until typescript: 4.9.4
I'm not sure why it works in the tests tho ? also, not sure how to resolve that (and the future issues that will arise if ts-evaluator isn't updated 😢 )

@astahmer,
No worries, I just wanted to mention the issue, for now I could fixed maybe using css vars

yes ofc, and thank you as usual for reporting those, it helps a lot! 🙏

this should be fine once https://github.com/chakra-ui/panda/pull/1055 gets merged

Hey @astahmer, I can confirm that it's working now, thanks for your help


Cards can't handle very long words

As seen here, if I use a very long (longest english word in a major dictionary) the card does not know how it should handle it.

An easy solution would be to add a break-words and hyphens-auto to the title.
I would be up on fixing this problem if this solution is approved.

@FleetAdmiralJakob  Shall I work on this?

Sure, if you want. I could also do this but go for it!

Pls. show me the PR so I can review it

@FleetAdmiralJakob  is this worked upon? I just checked the same in mine, its seems to be working fine. Can you please confirm?

I thought you were working on this? I didn't work on this but I can.

This is happening because there is no space in between the text.

@MohammedAslam106 yes you are right!! It's happening only when it's a single long word

This is happening because there is no space in between the text.

@MohammedAslam106  This isn't a text. This is the longest English word.

@FleetAdmiralJakob  Yes, maybe text-ellipsis will fix it. But you have to hide the overflow content. And you will no longer be able to see the full text.

Ok let me give a try and share a screenshot for that

@FleetAdmiralJakob  Yes, maybe text-ellipsis will fix it. But you have to hide the overflow content. And you will no longer be able to see the full text.

I think that is not an acceptable solution since the user should see the full text.

Or shall we use whitespace-pre-wrap" ?

idk, can you try some things out and send me the comparison screenshots?

I applied max-w-md overflow-hidden on the card component, now the card size is fine but the text is still behaving same. Any idea how to fix that?

An easy solution would be to add a break-words and hyphens-auto to the title.

Here is my solution.

Here is my solution.

This looks good

An easy solution would be to add a break-words and hyphens-auto to the title.
NOTE: This only breaks words that are words. Not ssdssssss and so on.

To implement this, we have to fix the width of the title tag.

An easy solution would be to add a break-words and hyphens-auto to the title.
NOTE: This only breaks words that are words. Not ssdssssss and so on.

I tried this but the problem is for small devices it's not looking good.

An easy solution would be to add a break-words and hyphens-auto to the title.
NOTE: This only breaks words that are words. Not ssdssssss and so on.

There is a problem with this solution. Here is the result.

Could you reupload the image?

Could you reupload the image?

I have a question for you.
How you are using this card example in your code?
Where is the code for this card example?

I didn't use the card component because of this problem not yet, but if this problem is fixed I want to replace these cards with the better cards (with a solution for this problem).

https://github.com/The-Creative-Programming-Group/Weather-App/blob/master/apps/web/src/pages/home/index.tsx

I'm pushing this PR. Just use different classes as per your need inside the CardTitle.

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

hello, any update on this?
this is still an issue where a single word is extremely long and it breaks Card


RaytracerGraphicsPipeline Crash on RTX 2070

The system RaytracerGraphicsPipeline crashes at the line 377 (RaytracerGraphicsPipeline.cpp)
VK_CHECK(extensions->vkCreateRayTracingPipelinesNV(device.Get(), nullptr, 1, &pipelineInfo, nullptr, &pipeline),
"Create ray tracing pipeline");
Scenes, Shaders and Acceleration structures are processed correctly.
The issue only occurs on the RTX 2070 device.

The crashing situation is related to the sphere lights implementaiton

Thx, good work.


Handlebars error: Could not find property 'jqui-progress-bar' on object

I getting the error saying Handlebars error: Could not find property jqui-progress-bar on object when I try {{jqui-progress-bar}}.
Any idea?
FYI, I am using ember-cli version: 0.1.4.
Thanks.

I have same problem, I use pod structure for my app and Ember doesn't see your components.

In my experience, you must redefine the components in your own app like this:
// components/jqui-progress-bar.js

import jquiProgressBar from 'ember-cli-jquery-ui/components/jqui-progress-bar/component';

export default jquiProgressBar;

And then they work. This may have something to do with hyphenated helper names:
https://github.com/ember-cli/ember-cli/issues/1130
And as well it might be related to the way the helpers are being exported from the addon?

@artsyca As stated before this is a bug in ember-cli that has still not been fixed. See ember-cli/ember-cli#2768


24w37a ender pearls

Some new methods that have to do with ender pearl chunk loading.
This is my first contribution and I have read CONTRIBUTING.md and CONVENTIONS.md but please let me know if anything looks off.

Perfect, thanks


Arguments

[x] Make control on nothing to pushing, so it have not be an error of CI
[x] Get arguments for languages

Done


Alternative fix for CRL date mismatch due to leap year.

This is an alternative solution to the problem that #1517 solves. This only works for normal leap years, though. (A non-normal leap year will happen next in the year 2100, which is probably an okay trade-off :) )

bors try

We decided to not go with this solution :)


ggg

我的state比较复杂，然后我发现这个包就无法处理了，我对vuex-map-fields做了改造，发现就可以正常工作了。
`import Vue from "vue";
import Vuex from "vuex";
import createLogger from 'vuex/dist/logger'
// Import the getField getter and the updateField
// mutation function from the vuex-map-fields module.
import { getField, updateField } from "./lib/index";
import App from "./App";
Vue.use(Vuex);
Vue.config.productionTip = false;
const store = new Vuex.Store({
plugins: [createLogger()],
strict: true,
state: {
obj: {
users: [
{
name: 'ppx',
age: 1,
pens: [{
penName: 'paike', children:[
        ]
      },{
        penName: 'paikeffdsfad', children:[
          {cName:'12432'}
        ]
      }]
    },
    {
      name: 'zhuzhu',
      age: 2,
      pens: [{
        penName: 'paike',
        children:[
          {cName:'12432'}
        ]
      }]
    }
  ]
}

},
getters: {
getField
},
mutations: {
updateField
}
});
/* eslint-disable no-new */
new Vue({
el: "#app",
components: { App },
store,
template: ""
});
`
`

`

Hey @zhuzhuppx! Thank you for your contribution but there are a few problems with this:

The build pipeline fails, please make sure everything passes.
The description of the pull request message is not very well formatted and I don't get what this is supposed to do.

I can understand that english might not be your first (or even second) language but I fear there is no other possibility than to communicate in english because I don't understand any other language (other than my first language german).
Maybe you can find somebody to translate?

Closed because of inactivity and no response to my comment.
Feel free to open a new pull request. Thanks!


Compatility with Magento 2.2.8

I have seen that you released the fix with the 1.0.6 tag, but with magento 2.2.8 it is not compatible as the fix calls a framework class that does not exist:
Class Magento \ Framework \ Session \ SessionStartChecker does not exist
Can you fix it please?

You can keep using 1.0.5. Please specify 1.0.5 into your composer.json or run composer require command with version number.


Re-organize menus

The full options list could be:

increase margins
decrease margins
increase kerning
decrease kerning
increase leading
decrease leading
delete book

Implemented without min icons in list


Set optimum content width and text alignment for documentation

The current width is not readable as the paragraph extends beyond the optimum width of 40-50em

Fix this to be between 40-50em for example

Also justify the text

I want to work on it!!

@nehashri Working on this issue

Oops sorry, this is fixed currently on https://docs.gauge.org


Add a wiki: RayWiki (Polish)

An anonymous user has submitted a new wiki via our submission form.
Link to origin wiki: https://rayman.fandom.com/pl/wiki/Rayman_Wiki
Link to destination (independent) wiki: https://raymanpc.com/wiki/pl/Strona_główna

This has been added and will be released in v1.1.3


Prevent common DateTimeFormatter issues

Description of the problem / feature request:
Create new bug pattern which alerts if a java.time.format.DateTimeFormatter is created using capital Y (like YYYY-dd-MM) without a w indicating that it is using week based year.
https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html
Feature requests: what underlying problem are you trying to solve with this feature?
Prevent users from making a mistake with formatting for example the following code
System.out.println("Pattern: yyyy-MM-dd = " + DateTimeFormatter.ofPattern("yyyy-MM-dd").format(LocalDate.of(2019,12,31)));
System.out.println("Pattern: YYYY-MM-dd = " + DateTimeFormatter.ofPattern("YYYY-MM-dd").format(LocalDate.of(2019,12,31)));

Will Print
Pattern: yyyy-MM-dd = 2019-12-31
Pattern: YYYY-MM-dd = 2020-12-31

This can be a common mistake.
It may also be useful to alert on other patterns such as
D (day of year) in combination with M (month) where
DateTimeFormatter.ofPattern("YYYY-MM-DD").format(LocalDate.of(2019,12,31) will produce 2020-12-365
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
DateTimeFormatter.ofPattern("YYYY-MM-dd").format(LocalDate.of(2019,12,31)

What version of Error Prone are you using?
2.3.4
Have you found anything relevant by searching the web?
Somewhat of a common issue. Jodatime used x for week based year to limit confusion.
https://www.reddit.com/r/java/comments/ehucj3/important_at_this_time_of_the_year_beware_of_yyyy/

Isn't that already taken care of by https://errorprone.info/bugpattern/MisusedWeekYear?

@tbroyer Yes, I missed that and it handles the Week Based Year. Thanks.
Less common I'm sure, but maybe there should be a MisuedDayOfYear around using D in combination with M
DateTimeFormatter.ofPattern("yyyy-MM-DD").format(LocalDate.of(2019, 1, 31) Produces 2019-01-31
DateTimeFormatter.ofPattern("yyyy-MM-DD").format(LocalDate.of(2019, 2, 1) Produces 2019-02-32
DateTimeFormatter.ofPattern("yyyy-MM-dd").format(LocalDate.of(2019, 2, 1) Produces 2019-02-01
I confirmed that the following does not throw a compile warning with errorprone.
System.out.println(DateTimeFormatter.ofPattern("yyyy-MM-DD").format(LocalDate.of(2019, 2, 1)));

Nice suggestion, thanks! This has been implemented and sent out for review internally. Should be in a future version.


refactor: move test info to _test and format the rest

This took a while.
I formatted all exercises according to https://github.com/exercism/sqlite/issues/54.

reformatted every exercise to use the exact same structure
moved the case tests to the _test.sql file, so they can be read easily be the user
added a lot of newlines at the end
switched uuid and name, so it is easer to read and formatted for better readability

@BNAndras
Thanks for checking, I had to leave mid-session and could only upload some half-done work. Sorry, you had to read that state :D


3.18.0-0.2.pre → 3.19.0-0.1.pre - Web - Broke something in the HtmlElementView and InputElement

Steps to reproduce

Run provided example

Expected results
A circle with the following message should be displayed: "Ein Fehler ist aufgetreten".  Which should looks like:

Actual results
Nothing is shown after upgrading to from 3.19.0-0.1.pre.

Code sample
Code sample
import 'package:flutter/material.dart';
import 'dart:html';
import 'dart:math';
import 'dart:ui_web' as ui;

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: WorldlinePaymentHtml(),
    );
  }
}

class WorldlinePaymentHtml extends StatefulWidget {
  const WorldlinePaymentHtml({super.key});

  @override
  State<WorldlinePaymentHtml> createState() => _WorldlinePaymentHtmlState();
}

class _WorldlinePaymentHtmlState extends State<WorldlinePaymentHtml> {
  final _viewId = "${Random().nextInt(99999999)}-view";
  late final FormElement _postRequestFormElement;

  @override
  void initState() {
    super.initState();

    final redirectionVersionInput = InputElement()
      ..type = "hidden"
      ..name = "redirectionVersion"
      ..value = "IR_WS_2.0";

    final redirectionDataInput = InputElement()
      ..type = "hidden"
      ..name = "redirectionData"
      ..value = "TEST";

    _postRequestFormElement = FormElement()
      ..method = "post"
      ..action = "https://payment-web.simu.sips-services.com/payment"
      ..target = 'sips_payment_iframe'
      ..children = [redirectionVersionInput, redirectionDataInput];

    final iFrameElement = IFrameElement()
      ..id = 'sips_payment_iframe'
      ..name = 'sips_payment_iframe'
      ..width = "100%"
      ..height = "100%";

    final bodyElement = BodyElement()
      ..children = [_postRequestFormElement, iFrameElement];

    ui.platformViewRegistry.registerViewFactory(
      _viewId,
      (int id) => bodyElement,
    );
  }

  @override
  Widget build(BuildContext context) {
    return HtmlElementView(
      viewType: _viewId,
      onPlatformViewCreated: (_) {
        _postRequestFormElement.submit();
      },
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
The exact commit, which broke the view is https://github.com/flutter/engine/compare/c70f0a495ace...1b1b2a12a597 with the version: 3.18.0-18.0.pre.13.
I figured that out while doing a git bisect from the last working version 3.18.0-0.2.pre and the first bad version 3.19.0-0.1.pre.
Not working commit:
Flutter 3.18.0-18.0.pre.13 • channel [user-branch] • unknown source
Framework • revision b417fb828b (vor 6 Monaten) • 2023-12-21 17:55:07 -0500
Engine • revision 1b1b2a12a5
Tools • Dart 3.3.0 (build 3.3.0-253.0.dev) • DevTools 2.31.0-dev.0

Last official working version:
[✓] Flutter (Channel beta, 3.18.0-0.2.pre, on macOS 14.4.1 23E224 darwin-arm64 (Rosetta), locale de-DE)
    • Flutter version 3.18.0-0.2.pre on channel beta at /Users/stefanschaller/fvm/versions/3.18.0-0.2.pre
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fed06b31d9 (vor 6 Monaten), 2023-12-13 14:53:33 -0800
    • Engine revision 39c6dc9bdd
    • Dart version 3.3.0 (build 3.3.0-174.3.beta)
    • DevTools version 2.30.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/stefanschaller/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/stefanschaller/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/233.14808.21.2331.11842104/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
    • Android Studio at /Users/stefanschaller/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/233.14808.21.2331.11842104/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] Android Studio (version 2023.3)
    • Android Studio at /Users/stefanschaller/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/233.14808.21.2331.11709847/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] IntelliJ IDEA Community Edition (version 2024.1.1)
    • IntelliJ at /Users/stefanschaller/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/241.15989.150/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Community Edition (version 2024.1.2)
    • IntelliJ at /Users/stefanschaller/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/241.17011.79/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.90.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.90.0

[✓] Connected device (3 available)
    • Stefan‘s iPhone (mobile) • 00008030-0003395C1432802E • ios            • iOS 17.4.1 21E236
    • macOS (desktop)          • macos                     • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64 (Rosetta)
    • Chrome (web)             • chrome                    • web-javascript • Google Chrome 125.0.6422.142

[✓] Network resources
    • All expected network resources are available.

• No issues found!

First official version to reproduce the error:
[✓] Flutter (Channel beta, 3.19.0-0.1.pre, on macOS 14.4.1 23E224 darwin-arm64 (Rosetta), locale de-DE)
    • Flutter version 3.19.0-0.1.pre on channel beta at /Users/stefanschaller/fvm/versions/3.19.0-0.1.pre
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 1a9a60d044 (vor 5 Monaten), 2024-01-10 13:38:09 -0800
    • Engine revision bbebee1465
    • Dart version 3.3.0 (build 3.3.0-279.0.dev)
    • DevTools version 2.31.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/stefanschaller/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/stefanschaller/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/233.14808.21.2331.11842104/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3)
    • Android Studio at /Users/stefanschaller/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/233.14808.21.2331.11842104/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] Android Studio (version 2023.3)
    • Android Studio at /Users/stefanschaller/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/233.14808.21.2331.11709847/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] IntelliJ IDEA Community Edition (version 2024.1.1)
    • IntelliJ at /Users/stefanschaller/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/241.15989.150/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Community Edition (version 2024.1.2)
    • IntelliJ at /Users/stefanschaller/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/241.17011.79/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.90.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.90.0

[✓] Connected device (3 available)
    • Stefan‘s iPhone (mobile) • 00008030-0003395C1432802E • ios            • iOS 17.4.1 21E236
    • macOS (desktop)          • macos                     • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64 (Rosetta)
    • Chrome (web)             • chrome                    • web-javascript • Google Chrome 125.0.6422.142

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Thanks for the report. I was able to replicate the reported behavior on latest stable and master versions as well.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.22.2, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.22.2 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (33 hours ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.23.0-13.0.pre.149, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.23.0-13.0.pre.149 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ae47edab7a (68 minutes ago), 2024-06-07 01:34:14 -0400
    • Engine revision 087feab992
    • Dart version 3.5.0 (build 3.5.0-234.0.dev)
    • DevTools version 2.36.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

@stefanschaller due to changes needed for multi-view support, we did change the timing of this slightly, and the callback fires when the factory function is run, but slightly before it is actually injected in the DOM.
We documented this here:

https://api.flutter.dev/flutter/widgets/HtmlElementView-class.html#html-lifecycle

There's APIs in the DOM that can be used to detect when the root element of your platform view is injected into the DOM.
--
(Similar to: https://github.com/flutter/flutter/issues/143922)

I'm not able to fix the example with the provided documentation. Could take a look? @ditman

I tried it like this, with the same result:
import 'package:flutter/material.dart';
import 'dart:html';
import 'dart:math';
import 'dart:ui_web' as ui;
import 'package:web/web.dart' as web;
import 'dart:js_interop';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: WorldlinePaymentHtml(),
    );
  }
}

class WorldlinePaymentHtml extends StatefulWidget {
  const WorldlinePaymentHtml({super.key});

  @override
  State<WorldlinePaymentHtml> createState() => _WorldlinePaymentHtmlState();
}

class _WorldlinePaymentHtmlState extends State<WorldlinePaymentHtml> {
  final _viewId = "${Random().nextInt(99999999)}-view";
  final _bodyElementId = "sips_body_element_id";

  late final FormElement _postRequestFormElement;

  @override
  void initState() {
    super.initState();

    final redirectionVersionInput = InputElement()
      ..type = "hidden"
      ..name = "redirectionVersion"
      ..value = "IR_WS_2.0";

    final redirectionDataInput = InputElement()
      ..type = "hidden"
      ..name = "redirectionData"
      ..value = "TEST";

    _postRequestFormElement = FormElement()
      ..method = "post"
      ..action = "https://payment-web.simu.sips-services.com/payment"
      ..target = 'sips_payment_iframe'
      ..children = [redirectionVersionInput, redirectionDataInput];

    final iFrameElement = IFrameElement()
      ..id = 'sips_payment_iframe'
      ..name = 'sips_payment_iframe'
      ..width = "100%"
      ..height = "100%";

    final bodyElement = BodyElement()
      ..id = _bodyElementId
      ..children = [_postRequestFormElement, iFrameElement];

    ui.platformViewRegistry.registerViewFactory(
      _viewId,
          (int id) => bodyElement,
    );
  }

  @override
  Widget build(BuildContext context) {
    return HtmlElementView.fromTagName(
      tagName: _bodyElementId,
      onElementCreated: (element) => _onElementCreated(element),
    );
  }

  void _onElementAttached() {
    // To fulfil the following requirements: https://docs.sips.worldline-solutions.com/en/WLSIPS.316-UG-Sips-Paypage-JSON.html#Exemple-de-formulaire-de-redirection-vers-Paypage_
    // From the 📄:
    //
    // To redirect the customer to the payment pages, you must implement a POST form sending the two following fields: redirectionData and redirectionVersion. The POST form shall redirect the customer to the URL provided in the redirectionUrl field.
    //
    // Below is a sample form that must be submitted automatically:
    //
    // <form method="post" action=”value of redirectionURL”>
    //     <input type="hidden" name="redirectionVersion" value=”value of redirectionVersion”>
    //     <input type="hidden" name="redirectionData" value=”value of redirectionData”>
    //   </form>
    _postRequestFormElement.submit();
  }

  void _onElementCreated(Object element) {
    final htmlElement = element as web.Element;

    // Create the observer
    final web.ResizeObserver observer = web.ResizeObserver(
          (
          JSArray<web.ResizeObserverEntry> entries,
          web.ResizeObserver observer,
          ) {
        if (htmlElement.isConnected) {
          // The observer is done, disconnect it.
          observer.disconnect();
          // Call our callback.
          _onElementAttached();
        }
      }.toJS,
    );

    // Connect the observer.
    observer.observe(htmlElement);
  }
}

Flutter:
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (12 days) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3

I'm not able to fix the example with the provided documentation. Could take a look? @ditman

@stefanschaller are there any errors in the JS console of the browser? Is this browser specific?

Not a single error in Chrome, Safari.
Please just take a look by yourself. I don't know how to continue there an I need to upgrade ASAP to the newest Flutter Version, since I need some features from 3.19 and 3.22

I think I've found the issue and got your sample app working as expected.
Debugging
Here's some of the steps I took to understand what's happening with the platform view on this app:

Used the elements panel to see what actually gets injected into the DOM from the app. There's a suspicious element:

Tracked that down to the source:

The problem is that the code is mixing registerViewFactory with the fromTagName constructor:

Proposed solution
The class _WorldlinePaymentHtmlState.build method should be something like this:
  @override
  Widget build(BuildContext context) {
    return HtmlElementView(
      viewType: _viewId,
      onPlatformViewCreated: (id) {
        final element = ui.platformViewRegistry.getViewById(id);
        _onElementCreated(element);
      },
    );
  }

(With this API, we must obtain the element from its platform view id, and that's what the getViewById API does. That element can be passed to _onElementCreated as is).

[!NOTE]
You could also use HtmlElementView.fromTagName without registering the viewFactory, but in that case, you'd need to add all the elements that you're now creating in initState into the element passed into the onElementCreated callback, to customize it before it gets injected into the DOM.

I have a couple more suggestions:

(~L62) Do not use BodyElement to group the form and iframe together, instead use DivElement or something like that. Websites should not have multiple <body> tags.
Do not mix dart:html and package:web; I'd prefer the more modern (and Wasm-compatible) package:web. See the migration guide.

@stefanschaller let me know if the above helps and is enough to close the issue!

Looks good, I'm sadly not able to show the full screen, since there are some customer related data, but it's working as expected. Thank you!
I also migrated from an BodyElement to an DivElement and also removed the dart:html import.

Looks good, I'm sadly not able to show the full screen, since there are some customer related data, but it's working as expected. Thank you!
I also migrated from an BodyElement to an DivElement and also removed the dart:html import.
@ditman You could close the issue. Thank you for the great support

Closing this one! Thanks for reporting @stefanschaller, keep them coming!


Blog/mindshare - bottom CTA/form

This form content should match what is on the other pages (e.g. "Why Zesty" page)
Current:

Change to:

Ive noticed through out the code most cta are hardcoded but Mindshare is editable. Ive gone ahead and updated the text here in manager-ui https://8-aaeffee09b-7w6v22.manager.zesty.io/content/6-2346b0-2t7vcn/7-8f2cf4-450mhk

Thanks David!


Ansible Docker installation apt-key

Heya,
Thanks for all the vids and content! Helped me out loads so far!
I'm sure you were already aware, but apt-key module in Ansible is deprecated.
I've had a look for better "official" methods and whilst the Ansible team are working on it, I've done a slightly more complicated version which is a good workaround currently:
docker_install.yaml
Might be useful, might not be!
Please feel free to close this issue once you've decided either way!
Thanks again

removed the need for installing apt-key, as ubuntu 22.04 allows to install docker.io via apt

@ChristianLempa heya - that's definitely a good solution!
However, just to note, there's some discussion regarding the docker.io package vs the package directly from the Docker repo (https://www.reddit.com/r/docker/comments/tavjen/question_about_install_dockerio_or_dockerce/) that may be worth considering.
Cheers again!


Make authorize command limited to be run on auth nodes

pyrsia authorize --peer <peer_id> can be run on any node to make any other node with peer_id as authorized. This is useful when testing the network but dangerous for security. So this command needs to be limited to being run on the authorized node only by an authorized person(with a special ssh-key)

@betarelease
We should check just if the node is authorized, right?
Does by an authorized person(with a special ssh-key) have a special meaning?


Create Armstrong_Number

Description
Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change.
Fixes #430
Replace issue_no with the issue number which is fixed in this PR
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Documentation Update

Checklist:

[ ] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have created a helpful and easy to understand README.md
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works

@Sakalya100 u were not assigned with this issue


MultiBrowser testing

We should try to run our browser tests in multiple browsers - ideally using something like browserstack/saucelabs

Update: browserstack info added to md in #231, license was approved and granted.
Next steps: test setup + pipeline setup

Browserstack key will be encrypted as part of simple pipeline that will be run on master only after PR is merged (so as to avoid leaking the key publicly)

Initial setup done in #239
Next steps:

Make Web.story/WebAction.story working again :tm:
Change BrowserStackIT to load all stories from some folder instead of specifying them one by one (and move all ui stories to that folder)

Tests now run in Chrome, Firefox and Safari in special pipeline. Not entirely 100% stable, but solved with retry in pipeline.

Tests now run in Chrome, Firefox and Safari in special pipeline. Not entirely 100% stable, but solved with retry in pipeline.


Tensorboard logs AverageMeter.val instead of AverageMeter.avg

I noticed the values logged to tensorboard doesn't match the values printed in json format. I looked deeper and seems like this line should be modified to stats[key].avg instead of stats[key].val
https://github.com/pytorch/fairseq/blob/1d1e460d42486207f423ecfd8eabb26de1f09abf/fairseq/progress_bar.py#L279

This is deliberate since Tensorboard implements its own smoothing :/


How to close WebSocketClient and start a new one?

Hi i need to close a WebSocketClient and start a new one? How to do that?

Read the API documentation, sorry.

There is no close method. I checked and there is only abort method but that doesnt close the connection.

You're looking in the wrong place. You're looking at the documentation for
WebSocketClient, but you should be looking at WebSocketConnection.
WebSocketClient is what you use to initiate a connection to a websocket
server, but the object that you work with once that connection is
established is an instance of WebSocketConnection.
Here is the documentation for the close method:
https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocketConnection.md#closereasoncode-description
Brian
On Sat, May 9, 2020 at 5:19 PM Isti Ak Ahmed<EMAIL_ADDRESS>wrote:

There is no close method. I checked and there is only abort method but
that doesnt close the connection.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/theturtle32/WebSocket-Node/issues/384#issuecomment-626253374,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAM7QDJJWAQGFFGQTIUFYDRQXXJRANCNFSM4M45GFOA
.

You're looking in the wrong place. You're looking at the documentation for WebSocketClient, but you should be looking at WebSocketConnection. WebSocketClient is what you use to initiate a connection to a websocket server, but the object that you work with once that connection is established is an instance of WebSocketConnection. Here is the documentation for the close method: https://github.com/theturtle32/WebSocket-Node/blob/master/docs/WebSocketConnection.md#closereasoncode-description Brian
…
On Sat, May 9, 2020 at 5:19 PM Isti Ak Ahmed @.***> wrote: There is no close method. I checked and there is only abort method but that doesnt close the connection. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#384 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAM7QDJJWAQGFFGQTIUFYDRQXXJRANCNFSM4M45GFOA .

Wow Thanks a lot.


CB-13529: Don't run Android tests

Platforms affected
What does this PR do?
What testing has been done on this change?
Checklist

[x] Reported an issue in the JIRA database
[x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
[ ] Added automated test coverage as appropriate for this change.

The build was flaky, wasn't it?
I knew I shouldn't've added it in the first place 🐛

Yeah, and the plugin is iOS only, so it's not useful to run Android tests on it

We weren't running tests, we were just building it to make sure that project that has this plugin installed wouldn't fail Android build.
I wonder if this check makes any sense at all 😜

The plugin.xml only have iOS platform, so it shouldn't affect other platforms builds, but who knows.
It was failing, I don't remember the error, but it was previous to adding the plugin