Error saving html5_push_registrations.conf

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.58.0
Python release (python3 --version):
3.5.2
Component/platform:
HTML5 Push Notifications
Description of problem:
When I try to register my android device from chrome I see the following in the log:
2017-11-21 20:59:28 ERROR (MainThread) [homeassistant.util.json] Failed to serialize to JSON: /home/homeassistant/.homeassistant/html5_push_registrations.conf
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/json.py", line 38, in save_json
    data = json.dumps(config, sort_keys=True, indent=4)
  File "/usr/lib/python3.5/json/__init__.py", line 237, in dumps
    **kw).encode(obj)
  File "/usr/lib/python3.5/json/encoder.py", line 200, in encode
    chunks = list(chunks)
  File "/usr/lib/python3.5/json/encoder.py", line 429, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/lib/python3.5/json/encoder.py", line 403, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.5/json/encoder.py", line 403, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.5/json/encoder.py", line 403, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.5/json/encoder.py", line 403, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.5/json/encoder.py", line 436, in _iterencode
    o = _default(o)
  File "/usr/lib/python3.5/json/encoder.py", line 179, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'pRNH7pFGQ18HbYmRK0motQ==' is not JSON serializable
2017-11-21 20:59:28 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/json.py", line 38, in save_json
    data = json.dumps(config, sort_keys=True, indent=4)
  File "/usr/lib/python3.5/json/__init__.py", line 237, in dumps
    **kw).encode(obj)
  File "/usr/lib/python3.5/json/encoder.py", line 200, in encode
    chunks = list(chunks)
  File "/usr/lib/python3.5/json/encoder.py", line 429, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/lib/python3.5/json/encoder.py", line 403, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.5/json/encoder.py", line 403, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.5/json/encoder.py", line 403, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.5/json/encoder.py", line 403, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.5/json/encoder.py", line 436, in _iterencode
    o = _default(o)
  File "/usr/lib/python3.5/json/encoder.py", line 179, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'pRNH7pFGQ18HbYmRK0motQ==' is not JSON serializable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web_protocol.py", line 416, in start
    resp = yield from self._request_handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiohttp/web.py", line 323, in _handle
    resp = yield from handler(request)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/ban.py", line 58, in ban_middleware
    return (yield from handler(request))
  File "/usr/lib/python3.5/asyncio/coroutines.py", line 209, in coro
    res = yield from res
  File "/usr/lib/python3.5/asyncio/coroutines.py", line 209, in coro
    res = yield from res
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/http/__init__.py", line 430, in handle
    result = yield from result
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/notify/html5.py", line 176, in post
    if not save_json(self.json_path, self.registrations):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/json.py", line 45, in save_json
    raise HomeAssistantError(error)
homeassistant.exceptions.HomeAssistantError: b'pRNH7pFGQ18HbYmRK0motQ==' is not JSON serializable

In the html5 conf file I only see 1 entry from my desktop machine. The notifications to my phone work until I restart, then they stop working until I re-register.  This seems to be related specifically to when using my android device to register.
Expected:
No errors, and html5_push_registrations.conf should have an entry for my mobile device.
Problem-relevant configuration.yaml entries and steps to reproduce:

Click the switch to turn on push notifications on my mobile device.

Traceback (if applicable):

Additional info:

I had a similar problem when my phone was unlink from the push message every couple of hours, i think it is related to the new google app updatea , after changing version the problem stopped

After changing the version of what? HASS?

No, after changing the google app on Android

I have the latest version and I get the error from the original post every time I try to subscribe.

I got the same issue using hassio (v 0.58.1), I've registered two android phones successfully after getting this error. I was trying to subscribe from Chrome MacOS Version 62.0.3202.94 (Official Build) (64-bit)
Failed to serialize to JSON: /config/html5_push_registrations.conf
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/util/json.py", line 38, in save_json
    data = json.dumps(config, sort_keys=True, indent=4)
  File "/usr/lib/python3.6/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "/usr/lib/python3.6/json/encoder.py", line 201, in encode
    chunks = list(chunks)
  File "/usr/lib/python3.6/json/encoder.py", line 430, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict
    yield from chunks
  File "/usr/lib/python3.6/json/encoder.py", line 437, in _iterencode
    o = _default(o)
  File "/usr/lib/python3.6/json/encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'bytes' is not JSON serializable

Are you saying you got the error on the Android phones and things still worked? Or you didn't get the error on Android?

Subscribing from Android was fine, the problem happened from desktop chrome, I've fixed my previous answer

Mine was the opposite, my laptop's chrome was fine but Android throws that error.  I think its some type of hash being generated and if you are unlucky you get one that causes the bug.  Now, how do we get someone to fix it :-)

I deleted the contents of html5.conf file and then re-registered the two devices in the opposite order and it worked.

Still a problem.
Mine is also adding a new "unnamed device" with the exact same values as my phone that only has another name.

Had this problem. Removed html5_push_registrations.conf. No longer get the exception (is not JSON serializable) but something else is quite wrong; When I register one new device, I get atleast 3 new "unnamed device", with the exact same values (except for the name)

One of my devices that was working fine had an issue today and I had to re-register it but I kept getting this error upon registering the device and had to make a few different attempts and restarts to get it to work.  I wonder if it is related to this issue.  I even had a case where the device was renamed.

If you have problem, does this solve it (without removing the file and start over)?
head -c -1 html5_push_registrations.conf > html5_push_registrations.conf_temp && mv html5_push_registrations.conf_temp html5_push_registrations.conf

(removes newline at end)

@bergemalm This is not solving the problem for me.
It's hard to debug, because I get strange behaviour;
Duplicate entries and sometimes stack traces.
For example I removed everything in html5_push_registrations.conf and restarted ha.
Got this in my home-assistant.log:
Traceback (most recent call last):
  File "/home/homeassistant/homeassistant/lib/python3.4/site-packages/homeassistant/util/json.py", line 19, in load_json
    return json.loads(fdesc.read())
  File "/usr/lib64/python3.4/json/__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.4/json/decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.4/json/decoder.py", line 361, in raw_decode
    raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)

This is the content of the file:
{
    "unnamed device": {
        "browser": "chrome",
        "subscription": {
            "endpoint": "https://android.googleapis.com/gcm/send/xxx",
            "expirationTime": null,
            "keys": {
                "auth": "xxx",
                "p256dh": "xxx"
            }
        }
    }
}

I'm getting similar errors, see below. I can send a notification to ALL enrolled devices, but if I send it to just one target, I get the error below.
One thing I've noticed- in the past I learned the hard way that device names were case dependent. My target name is something like "DoloresPhone".
Now that the services page looks different under developer tools (that is, now the service is notfiy.html5_doloresphone, when before it is notify.html5 and then I could choose a target in the next field), could this be causing issues, in particular with case-sensitive targets?
Error handling request
Traceback (most recent call last):
  File "/srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/homeassistant/util/json.py", line 38, in save_json
    data = json.dumps(config, sort_keys=True, indent=4)
  File "/usr/local/lib/python3.6/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "/usr/local/lib/python3.6/json/encoder.py", line 201, in encode
    chunks = list(chunks)
  File "/usr/local/lib/python3.6/json/encoder.py", line 430, in _iterencode
    yield from _iterencode_dict(o, _current_indent_level)
  File "/usr/local/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict
    yield from chunks
  File "/usr/local/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict
    yield from chunks
  File "/usr/local/lib/python3.6/json/encoder.py", line 404, in _iterencode_dict
    yield from chunks
  File "/usr/local/lib/python3.6/json/encoder.py", line 437, in _iterencode
    o = _default(o)
  File "/usr/local/lib/python3.6/json/encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'bytes' is not JSON serializable

No, you're right. It doesn't solve the problem. I can get it to work without exceptions for a while but each time you enter  the configuration ui it adds another device which is a duplicate. After a while the exceptions return (which stops additional duplicate add-ons)...
Some refactoring is needed for this component.


Create conceptual docs around everything NuGet restore performance.

What we want to cover:

What is NuGet restore at it's core.
What major factors impact a NuGet restore's performance.
What is the difference between "full" restore vs. "no-op" restore.

How can you tell what mode you're running in.
What extra modes are available such as static graph w/ no-op.

What methods can you use NuGet restore?

What are the best practices for each method? (MSBuild, dotnet CLI, nuget CLI, etc).

Does NuGet configs affect performance? If they do?

Feel free to jot down thoughts below.
References:
https://github.com/NuGet/docs.microsoft.com-nuget/issues/1941
https://github.com/NuGet/docs.microsoft.com-nuget/issues/2149
https://github.com/NuGet/docs.microsoft.com-nuget/issues/1872
//cc @nkolev92 @anangaur

Another nuance: VS always runs Solution restore

I left a lot of feedback in the teams thread. @JonDouglas do you want to start off some docs with all that info? Should I paste my thoughts here? Only problem with blind copy paste is that I was adding comments to a doc structure that's not here!


Configuration from ZK is not loaded before serving queries

Hi,
today we've seen an issue in which several client queries failed when we put an empty replica back to production. While it was replicating, it didn't seem to load configuration from ZK (at least dictionaries), but it served queries. This made queries containing dictionaries fail:
W report.go:55] query failed with DB::Exception: No such dictionary: colo

No dictionaries seem to be loaded:
:) SELECT count() FROM system.dictionaries

0

I think this affects both replicas in Distributed view and direct queries. The expected behaviour is that configuration from ZK is rendered during startup before serving queries. CC @bobrik

system.cluster_parts is also missing:
:) show tables

SHOW TABLES

┌─name──────────────────────────────────┐
│ .inner.clickhouse_query_stats_by_user │
│ asynchronous_metrics                  │
│ build_options                         │
│ clickhouse_query_stats_by_user        │
│ clusters                              │
│ columns                               │
│ databases                             │
│ dictionaries                          │
│ events                                │
│ functions                             │
│ graphite_retentions                   │
│ merges                                │
│ metrics                               │
│ numbers                               │
│ numbers_mt                            │
│ one                                   │
│ parts                                 │
│ processes                             │
│ query_log                             │
│ replicas                              │
│ replication_queue                     │
│ settings                              │
│ tables                                │
│ zookeeper                             │
└───────────────────────────────────────┘

Not sure if it matters, but it wasn't just a wiped replica. We removed one replica and put another one in the same spot.

Turns out our automation just silently nuked config.xml for dictionaries after upgrade.


RK3588 (0xd05) is 100% working

Have you checked the docs and existing issues?

[X] I have read all of the relevant Picovoice Porcupine docs
[X] I have searched the existing issues for Porcupine

SDK
Python
Porcupine package version
3.0.2
Framework version
Python 3.11
Platform
ARM Cortex-M
OS/Browser version
Ubuntu 24.04
Describe the bug

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/local/lib/python3.11/dist-packages/wyoming_porcupine/main.py", line 14, in
import pvporcupine
File "/usr/local/lib/python3.11/dist-packages/pvporcupine/init.py", line 12, in
from ._factory import *
File "/usr/local/lib/python3.11/dist-packages/pvporcupine/_factory.py", line 15, in
from ._util import *
File "/usr/local/lib/python3.11/dist-packages/pvporcupine/_util.py", line 78, in
_PV_SYSTEM, _PV_MACHINE = _pv_platform()
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pvporcupine/_util.py", line 71, in _pv_platform
pv_machine = _pv_linux_machine(platform.machine())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pvporcupine/_util.py", line 62, in _pv_linux_machine
raise NotImplementedError("Unsupported CPU: '%s'." % cpu_part)
NotImplementedError: Unsupported CPU: '0xd05'

In continue of https://github.com/Picovoice/porcupine/issues/1187 i hardcoded for testing on RK3588 and it's 100% working
Steps To Reproduce
bind /proc/cpuinfo with docker portainer because it's a home assistant addon.
Expected Behavior
If 0xd05 cpu code is added to the python pvporcupine all RK3588 can get is working like a raspberry pi.

@Al3XKOoL - this isn't a bug. It seems you're requesting that we officially add support for a new platform. While I'm glad that your change to our Python SDK allowed your app to function on your device, adding a new official platform for us is not a trivial undertaking. This platform is not on our roadmap at this time, however, if you are an enterprise user or wish to engage with us on that level, please contact sales.

您好，您的这个问题解决了吗？方便交流一下？

您好，您的这个问题解决了吗？方便交流一下？

They want we paid for this change.


Refactoring: Event-based architecture

As the system gets more and more complex, we should move to an event-based architecture.
Currently, lower-level components need to know higher-level components in order to forward events, but it should be the other way round.
Possible events to register callbacks for:

new compiler loaded
compilation finished
tab changed

@yann300 can this be closed?


WalkSpeed and JumpPower

so whenever i change my walkspeed and jumppower it just makes me unable to move with sliders
also im using synapse x

so whenever i change my walkspeed and jumppower it just makes me unable to move with sliders
also im using synapse x

Can I see your code. Maybe I can fix this problem...

do you need help or nah?

so whenever i change my walkspeed and jumppower it just makes me unable to move with sliders also im using synapse x

provide your code, or anyone won't be able to help you.


CLEANING: notes

lots of concerns about dropping so much data. Maybe need a disclaimer that we're not saying you should automatically do this on your data. Need to use best judgement (perhaps this is obvious? but got questions about it)
some confusion on whether the na functions work on a vector (pulled column) or dataframe (tidy grammar)
folks might have been distracted by the gif - maybe animate that onto a next slide? :)

thank you for these @avahoffman!!

[ ] add warning emojis and color to make disclaimers more emphatic
[ ] bonus for lab part 1 - clarify to use the previous dataset not the list
[ ] more clarity about piping with lab question 1 or possibly dont talk about any and is.na()?? or more clarity about how to work with it in a vector vs df and similary maybe more about str_* functions needing vectors... but people seemed to get it
[ ] possibly add a code to show percent complete across columns
[ ] possibly add starts_with function
[ ] typo start should be end for the argument of str_sub
[ ] move gif to new slide
[ ] maybe move one of the recoding questions to a bonus

Also @carriewright11 I noticed a lot of commented out text in the lecture. Is there a reason for this? I think it might confuse students if they are referring to it.

I can remove it- I changed quite a bit and wanted to leave it in case I felt like it didn't go better than last time- would you like me to remove it now?

not urgent, but maybe a to-do to clean things up for next time! I think it's still fine to have extra slides. We can always refer back to previous commits or releases if needed :)


Should 40s timeout apply to connection parameter updates?

I have a connection using a connection interval of 120, latency of 90, and timeout of 3000.  The spec says in section 6.B.5.4,

The master should allow a minimum of 6 connection events that the slave will be listening for before the instant occurs, considering that the slave may only be listening once every connSlaveLatency events.

Since a connection update isn't done until the new parameters are applied, that means in my case a parameter update will take 120 *1.25ms * 90 * 6 = 81000ms, or 1:21.
But in ble_gap.c there's a hard-coded timeout of BLE_GAP_UPDATE_TIMEOUT_MS = 40s applied to connection parameter update events.  I assume 40s was chosen because of 6.B.5.2, but that section also says there's no timeout rules for connection update procedures.
The result is that in my application, when the peripheral asks for new connection parameters, the master times out and disconnects the peripheral before the process is expected to have completed.
I think the timeout for connection parameter update events should be based on the current connection parameters rather than a hardcoded value.

Fixed with https://github.com/apache/mynewt-nimble/pull/782


Remove p=2 tensor basis from LBO kernels

Seems there are unused p=2 tensor basis kernels in LBO, left over from previous experimental stuff. These should be deleted. Large unused kernels cause long build times, specially with GPUs.

There are currently no tensor Vlasov kernels so I am closing this issue as completed (at least at some point this request was filled). There are tensor PKPM kernels but these are desired and should be there in the repo.

I removed all remaining p=2 GK kernels in the nonuniformv branch


Add Youth Event - See You at the Pole

Please add to youth events... Thank you!
See You at the Pole™, the global day of student prayer, began in 1990 as a grass roots movement with ten students praying at their school. Twenty years later, millions pray on their campuses on the fourth Wednesday in September.
See You at the Pole™ is simply a prayer rally where students meet at the school flagpole before school to lift up their friends, families, teachers, school, and nation to God. See You at the Pole™ is a student-initiated, student-organized, and student-led event.

Added to Contentful. Here is a preview: https://5b64d413fdd72a7a1c09aa6f--lifestonechurch.netlify.com/events/see-you-at-the-pole/
It will be live on the site late tonight.


Add ipv4 insert

see #126

LGTM, could u create a test for this type ?

LGTM, could u create a test for this type ?

ok , i'll create a test

@sundy-li  when query should i return string or long ?

the travis ci seems to be blocked. can you stop it and then run the test ?


fixing require path in knex adapter documentation

Fixing the require path to use the @keystone-alpha namespace in knex adapter documentation.

Also updated the path for the mongoose adapter (same issue), requesting new review!


throws when annotations are not an array full of strings.

Issue #, if available:
#340
Description of changes:
Checks that inputs for the function setAnnotations() is an array, and that each annotation within is a string while being written.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

You are only testing IonBinaryWriter#setAnnotations, please test all affect APIs:

IonBinaryWriter#addAnnotations
IonBinaryWriter#setAnnotations
IonTextWriter#addAnnotations
IonTextWriter#setAnnotations

Also add tests for:

Valid case
null
undefined
invalid types other than int

good call

tracking further progress in https://github.com/amzn/ion-js/issues/458


WS-3234 Migrate module to GH and configure GCP artifacts registry for…

… releases

I have read the CLA Document and I hereby sign the CLA


Improve consensus and add vote contract test cases.

[x] AElf.OS.Consensus.DPos test cases
[x] Vote contract testing - have completed a part.

:x: Build AElf <IP_ADDRESS>6 failed (commit https://github.com/AElfProject/AElf/commit/38fae1130f by @EricBlack)

:x: Build AElf <IP_ADDRESS>8 failed (commit https://github.com/AElfProject/AElf/commit/5feeb9b1cc by @EricBlack)

:x: Build AElf <IP_ADDRESS>6 failed (commit https://github.com/AElfProject/AElf/commit/1f4836bb44 by @EricBlack)

:x: Build AElf <IP_ADDRESS>0 failed (commit https://github.com/AElfProject/AElf/commit/57fededc15 by @EricBlack)

:x: Build AElf <IP_ADDRESS>5 failed (commit https://github.com/AElfProject/AElf/commit/09b756bb19 by @EricBlack)

:white_check_mark: Build AElf <IP_ADDRESS>7 completed (commit https://github.com/AElfProject/AElf/commit/945a406b25 by @EricBlack)


Discussion: Collaboration Accessibility

Based on all the amazing efforts by everyone on the Documentation Accessibility metric doc, I feel it is fair to start discussing the idea of a "Collaboration Accessibility" metric.
This issue would hopefully lead to a more concrete proposal for the metric, which I certainly have only my frame of reference to motivate me to work towards it.
The title chosen just follows the current structure, but it obviously does not roll off the tongue as easy as say "Accessibility in Collaboration".
The idea is to extrapolate from what we've considered around the single-user experience for documentation and consider them from a multi-user experience (ie bridging across different frames of reference) — I like to say UX versus CX (that is not yet a thing as far as I know).
There is a lot to it that comes in projects choosing (or advocating for) tools that are accessible, so this kind of runaround that is kept out of public channels does not end up being the presumed burden of those are sadly told by projects (and I quote) "we're not equipped" or "you do your thing"!

Thank you for this suggestion.


Add Tushar Sharma to Contributors

Thanks a bunch for the tutorial!

@Tusharsharma118, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added social share  to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


protractor problem: not working consistently

Hello!
I work with protractor v5.4.2, then i have a issue regarding the consistency of my scripts, the problem the same script sometimes it works the next run it doesn't.
Generaly the errors are :
-Element not interectable.
-No element found using locator.
Despite the elements are present and displayed so logicly they are selectabale correctly.
Help will be appreciated.

We have the same problems, even though we use code like the following to wait for elements to be visible and clickable. But it happens that all the checks pass and than element.click(); fails with all kinds of stuff.
export async function checkedClick(element: ElementFinder): Promise<void> {   if (!await presenceOf(element)) {     fail(element.locator() + ' is not present');   }   if (!await visibilityOf(element)) {     fail(element.locator() + ' is not visible');   }   if (!await clickabilityOf(element)) {     fail(element.locator() + ' is not interactable');   }   await element.click(); }


chore(deps): websocket-client to latest

Bump web socket to the latest release.   Should be tested prior to merge.

thanks, let me test

In case you're running HASS in Docker using the image of LinuxServer.io, this pull request is needed, else it won't install the integration properly any more. Please refer to: https://github.com/linuxserver/docker-homeassistant/issues/70#issuecomment-1583066989
Is it possible to merge this into master, @fuatakgun  ?
Thanks

@Freekers thanks for warning, merged into master


Dealing with changes of configurations (e.g. device rotation)

Hi Jason,
Following the issue I reported on 21 December 2019 (#27), I updated the tutorial to take into account all the points I mentioned (partly as an exercise to learn git and github :) )
I really hope you find this is useful.
All the best
Mohamed

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: Mohamed-Ibrahim-6b sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Thanks! I've just returned from holiday vacation, so it may be a while before I can review this.

@Mohamed-Ibrahim-6b thanks for doing this. These are all great changes that definitely improve the app.


UnboundLocalError in earthaccess.get_s3fs_session

Using the latest earthaccess=0.5.2 release
fs = earthaccess.get_s3fs_session()

raised the following error
---------------------------------------------------------------------------
UnboundLocalError                         Traceback (most recent call last)
Cell In[48], line 1
----> 1 fs = earthaccess.get_s3fs_session()
      2 fs

File ~/mambaforge/envs/earthaccess/lib/python3.9/site-packages/earthaccess/api.py:289, in get_s3fs_session(daac, provider)
    281 def get_s3fs_session(
    282     daac: Optional[str] = None, provider: Optional[str] = None
    283 ) -> s3fs.S3FileSystem:
    284     """Returns a fsspec s3fs file session for direct access when we are in us-west-2
    285
    286     Returns:
    287         class s3fs.S3FileSystem: an authenticated s3fs session valid for 1 hour
    288     """
--> 289     session = earthaccess.__store__.get_s3fs_session(daac=daac, provider=provider)
    290     return session

File ~/mambaforge/envs/earthaccess/lib/python3.9/site-packages/earthaccess/store.py:142, in Store.get_s3fs_session(self, daac, concept_id, provider)
    137 delta_minutes = now - self.initial_ts
    138 # TODO: test this mocking the time or use https://github.com/dbader/schedule
    139 # if we exceed 1 hour
    140 if (
    141     self.s3_fs is None or round(delta_minutes.seconds / 60, 2) > 59
--> 142 ) and s3_credentials is not None:
    143     self.s3_fs = s3fs.S3FileSystem(
    144         key=s3_credentials["accessKeyId"],
    145         secret=s3_credentials["secretAccessKey"],
    146         token=s3_credentials["sessionToken"],
    147     )
    148     self.initial_ts = datetime.datetime.now()

UnboundLocalError: local variable 's3_credentials' referenced before assignment

Because the s3_credentials variable may not be defined if it doesn't fall into one of the if/elif blocks:
https://github.com/nsidc/earthaccess/blob/54b688b906776f5c845483dd00676f6c681feb10/earthaccess/store.py#L129-L135
I'm not sure if we can still return an s3fs instance in this case, or if raising an informative error is the correct approach

Hi @jrbourbeau this error (earthaccess should have a better error handling) is because get_s3fs_session() requires either a DAAC or the DAAC provider as each NASA DAAC distribute their data under different AWS IAM roles and each DAAC uses their own AWS temporary credentials endpoint. If we were accessing HLS data from LPDAAC we would need
fs = earthaccess.get_s3fs_session("LPDAAC")
# fs can now open/copy data from the LPDAAC S3 buckets (for an hour)

Note: S3 (direct access) can only be used from us-west-2

If you're using earthaccess to search for data, earthaccess will use the returned metadata from CMR(NASA's search API) to select the proper set of credentials automatically.
results = earthaccess.search_data(
  short_name="HLSS30",
  bounding_box=(55.0,68.0,-48.0,71.0)
)
file_handlers = earthaccess.open(results)

if we execute this in the cloud, file_handlers will be a list of s3fs file instances initialized with the AWS temporary credentials for LPDAAC (the NASA data center that owns the S3 bucket for this dataset)

Okay, thanks for the explanation @betolink. I pushed a PR here https://github.com/nsidc/earthaccess/pull/249 that raises a more informative error for this case


Colin dev

I think the flowchart could be more clear. All those unlabelled arrows are a bit confusing

I think the flowchart could be more clear. All those unlabelled arrows are a bit confusing

Yes, very true. We can check it at the end, or make it prettier later. Maybe this demonstrates we have a lot of unused code and processes at present, or just many outputs from the wochenende process which aren't further used.


Refactor forms to use client side validations

Many forms on the site could be improved by implementing client side validations.  This can be done fairly easily using the client_side_validations gem, although on Helpy forms currently use the bootstrap_form gem, for which there is no adapter.
This gives two options- write the adapter for the bootstrap forms gem, or switch it out for the simple_form gem where needed.  I have made this change on the admin/topics/new form already and think its the right long term strategy since it has a nicer DSL.  Here are the forms that I know need to be refactored:
On the admin site:
/admin/categories/:id/edit
/admin/categories/new
/admin/docs/:id/edit
/admin/docs/new
/admin/forums/:id/edit
/admin/forums/new
On the main site:
/en/topics/new
/en/users/edit
/en/users/sign_up
There may be others, but any post type form with just one field does not need to be included since there is really no need for validations.

I havev added a https://github.com/helpyio/helpy/pull/173 PR regarding this. Please review.


northstar-nstar - README.md is missing

From the main repo there is a link to the nstar specific README.md - but there is no such file:
https://github.com/esrlabs/northstar/blob/main/northstar-nstar/README.md
In general it would be really helpful to have a README.md for each tool in their respective sub-folder. For example, the console tool has "readme"-information but it is located at https://github.com/esrlabs/northstar/blob/main/doc/console.md
Other tools don't have a dedicated README.md at all:

https://github.com/esrlabs/northstar/tree/main/northstar-client
https://github.com/esrlabs/northstar/tree/main/northstar-nstar
https://github.com/esrlabs/northstar/tree/main/northstar-runtime
https://github.com/esrlabs/northstar/tree/main/northstar-stress
https://github.com/esrlabs/northstar/tree/main/northstar-test

Hello @DocMoebiuz
The link for nstar must be fixed. Patches are welcome.
The other crates share the top level readme. Have a look at the cargo manifest where it's referenced.

Hello @DocMoebiuz
The link for nstar must be fixed. Patches are welcome.
The other crates share the top level readme. Have a look at the cargo manifest where it's referenced.

@flxo - is the README.md for nstar available in the repository? i can only see the README.md in the root directory, and the one for the sextant tool.

Not sure. nstar ist just a development tool and maybe never had a proper readme. I'll fix the link.

Fixed by d370645


Use correct page index for voting round check

fixes https://github.com/JammerCore/JammerCore/issues/1391

I'm unsure how to setup the project locally, so I have only tested the fix in the browser's debugger on minified code.

No problem. The changed version makes more sense than what's there.


Bump neuralprocesses version for bernoulli-gamma likelihood

Failures relating to Bernoulli-Gamma likelihood feature from Neural Processes with versions < 0.2.6

LGTM, thank you!!


No --help or --version

Maybe discourse-tui should use clap/structopt?

I think clap is a bit too heavy but I can add these options.

If you program Rust normally (delegating to dependencies as much as possible, etc.) then usually baseline stripped optimized executable size is around 1.5MB. Clap is around 150KB of them.


Check for unauthorised user in Collab Space

Test cases that I tried:
Unauthorised user tries to enter a room with

2 matched users in the room -> Access Denied
1 matched user in the room -> Access Denied (1 matched user exits before unauthorised user tries to enter)

Works when I tested, thanks for implementing security!


HoloLens 2 Emulator November 2019 update

Docs Build status updates of commit 4c1666e:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/MicrosoftDocs/mixed-reality, working directory: W:\jf0q-s, target branch: HEAD, target branch commit: 4f46f6bc14251c829da7e3e3882c3d3aac3c43b8, source commit: 4c1666e2fea84258aaafc698dafa28cc156ac62a.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit fc82d11:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/hololens-emulator-archive.md
:white_check_mark:Succeeded
View

mixed-reality-docs/install-the-tools.md
:white_check_mark:Succeeded
View

mixed-reality-docs/using-the-hololens-emulator.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Not a valid fromVersion: 11,toVersion:21 pair!

As shown in the figure, the document states that 11 and 21 are supported configurations, but when actually used, it prompts `Not a valid fromVersion: 11,toVersion:21 pair!`
This is my pom configuration:
            <plugin>
                <groupId>org.eclipse.emt4j</groupId>
                <artifactId>emt4j-maven-plugin</artifactId>
                <version>0.8.0</version>
                <executions>
                    <execution>
                        <phase>process-test-classes</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <fromVersion>11</fromVersion>
                    <toVersion>21</toVersion>
                    <outputFile>report.html</outputFile>
                </configuration>
            </plugin>

@immadolf
21 is not supported by 0.8.0.
Please try to install the latest code locally.

OK, thank you, but since 0.8.0 does not support 21 yet, is it misleading in the readme document? @D-D-H

Yes. I'll add a description to clarify it.

README is updated.
We'll release 0.9 as soon as possible.

Thank you for the clarification and the prompt update. I appreciate your efforts in addressing the issue. I look forward to the release of version 0.9.


Bot not loading in Modern SharePoint online IE browser

I verified #1824. I dint find any solution for this.
I'm using /webchat-es5.js/ CDN.
Is there any solution for Bot not loading in IE but the same is getting loaded in Chrome and Edge.
window.WebChat.renderWebChat({                     directLine: window.WebChat.createDirectLine({ token: '---------' }),                     userID: ID,                     username:Uer',                     locale: 'en-US',                     styleOptions:styleOptions,                     store:store,                     webSpeechPonyfillFactory: window.WebChat.createBrowserWebSpeechPonyfillFactory()                 }, document.getElementById('webchat'));
Getting Below console errors:
Unable to get property 'createStore' of undefined or null reference
Unable to get property 'renderWebChat' of undefined or null reference
I tried to Load webchat cdn through console also but not working.
Let me know is there any solution for this.
Thanks in advance.

Hi @manjunathangv, could you post all of your HTML? Based off of the errors I would say that perhaps the CDN is not linked correctly. Latest bits seem to be working fine, though not tested in SharePoint.

Hi @corinagum ,its a SPFX build. I have include the link and its working good in chrome and Edge.

This is IE11, correct? What version of Web Chat are you using?

This is IE11, correct? What version of Web Chat are you using?

Yes IE11.
I tried master, latest and 4.5.3 webchat versions.

master is deprecated, so there's no longer a need to test that CDN. :) If you want latest bits, you can build Web Chat and use any of the bundles in packages/bundles/dist/
Could you post your code so I can take a look? Thank you!

@corinagum
PFA screenshots.

Could you share the code you use to fetch the token? If that code has arrow functions, they won't work in IE11.

@manjunathangv do you see any console errors that prevents webchat-es5.js to be loaded?

@compulim I believe we've established previously that SharePoint doesn't report Web Chat's errors. However, still a good question, especially if I'm wrong and there are errors xD

Could you share the code you use to fetch the token? If that code has arrow functions, they won't work in IE11.

@corinagum , I have hard coded the token value.
Atleast, i should see window.Webchat, window.renderWebChat  in IE browser console but Chrome i can see.
I tried loading below script also,I'm seeing window object with renderWebChat & Webchat in chrome and other IE sites. but only in SharePoint site where i deployed custom bot, i'm facing this issue.
var cdnScript = document.createElement('script'); cdnScript.setAttribute('src','https://cdn.botframework.com/botframework-webchat/4.5.3/webchat-es5.js'); document.head.appendChild(cdnScript);

In the console log, do you see any warnings or errors when the script is loaded?

@compulim I'm not getting any errors and warning while loading.

Adding @dmvtech to assist. @corinagum, how can we help?

Sorry for the late reply. Thanks @CoHealer and @dmvtech We've had SharePoint problems filed in the past that dmvtech helped customers work through. Do you think you could do similar for this one? SP is not one of our test scenarios unfortunately.

@manjunathangv You mentioned modern page, but how exactly are you implementing? Is this being done in a SPFx (web part, extension)? or in a custom page? or something else?

@dmvtech , yes we build a spfx package but its not purely done in react we used webchat-es5.js .
Atleast, i should see window.Webchat, window.renderWebChat in IE browser console but Chrome i can see.


Improve User Experience by Delaying and Repositioning Interaction Buttons.

ISSUE #182

Introduction of contentLoading Prop

A new prop named contentLoading has been introduced to the feedback component. This prop serves as a trigger for determining the loading state of the content. When set to true, the feedback buttons remain hidden until the content loading process concludes

Improved Button Positioning

The position of the feedback buttons has been optimized to be closer to the answer content

ScreenShot

Nice work!


Add B3/01 buses and addresses

also adds a IMU/SUN type to distinguish between boards

would close #369


IP missing in docs: <IP_ADDRESS>

Today, I did an import in Central US and it failed because the following IP was missing in the docs: <IP_ADDRESS>

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

ID: 4fa0ebd3-8437-8508-5a8d-462186fcce80
Version Independent ID: efe892fe-387e-0a61-fe7d-33d2ac99dfa9
Content: Import migrate process from on-premises to Azure DevOps - Azure DevOps
Content Source: docs/migrate/migration-import.md
Product: devops
Technology: devops-migrate
GitHub Login: @KathrynEE
Microsoft Alias: kaelli

@NenoLoje - thank you Neno for the feedback. I just got the confirmation from the engineer and am updating the article to include the missing IP address.


Pipe workers' stdout and stderr back to original process's outputs

Maybe I'm missing something, but currently anything printed from the handler code, running in the worker processes, doesn't actually get printed out to the standard output. It'd be great if we could fix that. For logging from worker processes, this would be very useful.

Actually making Curassow's Logger public would also help, so that the request handlers could use it to log the same way that Curassow does? I'm not sure if that doesn't break the Nest principles though.

Wow, never mind. It does work. What I was seeing was that logs were not printed if they were written right before the process crashed, it's probably because it was buffered and not yet written out. Ignore me.


ui: make it clear that deletion of a volume will not delete any snapshots

While this is documented in our project docs, users must be nudged that deletion of a volume wouldn't delete any snapshots of the volume.
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[x] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[X] Trivial

@blueorangutan ui

@rohityadavcloud a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.


[Search] Rename types for better SDK code

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[x] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[ ] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the swagger is published.

[x] SDK of .NET (need service team to ensure code readiness)
[x] SDK of Python
[x] SDK of Java
[x] SDK of Js
[ ] SDK of Go
[ ] PowerShell
[ ] CLI
[ ] Terraform
[ ] No refresh required for updates in this PR

Contribution checklist:

[x] I commit to follow the Breaking Change Policy of "no breaking changes"
[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[ ] Check this box if any of the following apply to the PR so that label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.

[ ] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[ ] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

cc: @tg-msft

I discussed the failures with 'Arthur Ning' and here is his reply - "Hi Mohit, it is known issue in tools, we are fixing it. if you are urgent, you can ignore it as seems rename enum type name is not a breaking for API. it is only impact SDK client. if not urgent, you can wait for few days which we may fix it."
@lmazuel, may we go ahead and merge this PR? Any additional steps you suggest?


Open WebUI Compatibility

/v1/models endpoint - lists created chains, uses Open WebUI "name" support to show actual chain names
support for "stream: true" requests, doesn't actually perform streaming on per-token basis, just makes the output compatible in terms of chunking

Looks good 👍. I'll double-test and merge in 1-2 days. Got some salty system cleanup so I'm on very short hiatus.


golang filter: do not clear route cache in the HeaderMap.Set API

instead, add a new API ClearRouteCachein in FilterCallbacks
Reason:
Sometimes, we want to remove a prefix pattern in :path, without updating the route cache. otherwise, it may leads to route_not_found.
This is useful in API gateway scenarios when people add a base path in API spec, and we don't want other filters/backend upstream to know this base path exists.

/assign @doujiang24


Add one line for URL formatting.

Please mention users to format and remove curly brackets "{}" while adding Tenant and Issuer URLs
https://login.microsoftonline.com/{AzureAD TenantID}
https://sts.windows.net/{AzureAD TenantID}/
Azure portal is accepting the URLs with curly brackets but the P2S users get error message - [Error] Dialing VPN connection ###Vnet, Status = Server did not respond properly to VPN Control Packets. Session State: Key Material sent.
Issue resolves once the curly brackets are removed.

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

ID: 186c0697-792a-a913-1baa-0af86f7ef6de
Version Independent ID: 330e7927-57fd-75e2-26b1-05bd2e8f30c1
Content: Configure Azure AD tenant and settings for P2S VPN connections: Azure AD authentication: OpenVPN - Azure VPN Gateway
Content Source: articles/vpn-gateway/openvpn-azure-ad-tenant.md
Service: vpn-gateway
GitHub Login: @cherylmc
Microsoft Alias: cherylmc

@nthorve Thanks for your feedback.
But note that the curly braces are never expected to be added.
I shall assign this to the author cherylmc. cherylmc please add a note stating that we should use the curly braces in the actual configuration or a screenshot with example.

Thank you! I've taken a doc bug on that and it should be updated in the next few days.  #please-close


iOS: purchases not starting

Version of flutter_inapp_purchase
2.1.0
Platforms you faced the error (IOS or Android or both?)
iOS (android works perfect)
Expected behavior
User starts purchase flow
Actual behavior
FlutterInappPurchase.instance.requestPurchase(item.productId);

Dont do anything
Tested environment (Emulator? Real Device?)
Real device only with app from appstore.
Steps to reproduce the behavior
https://apps.apple.com/us/app/knowledge-base-for-wot/id1480841499?ls=1
Main screen -> settings -> donations/premium -> click any purchase -> nothing happens
Strange behavior: android works perfectly, iOS with sandbox users also works (user can start purchase flow both for onetime purchases and autorenewable subscriptions), but for app in appstore - nothing happens when user clicks donate or purchasse? app doesnt react in any way.

I have the same issue. Is there any solution?


Global variables in Custom Scripts

DRAFT need to do some further checks and fix the tests and add migration.

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

Feature

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

Global variables can't be used inside custom scripts, limiting their use cases.

What is the new behavior (if this is a feature change)?

Global variables now appear in the variable selector inside Custom Scripts.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Hopefully not. But it requires a migration script, as now the "parameter" variables use Vn as the id as opposed to just n to differentiate them from the global variables.

Other information:

This draft is built on top of #818 which should be much safer to merge before this one.

Closing since we've now merged this in #1143


SNAP-1177

Changes proposed in this pull request
In SNAP-1177, the test stops a server and restarts it after checking its status (to make sure that it is actually stopped). However while restarting the server, the test always gives exception "java.lang.IllegalStateException: A SnappyData Server is already running in directory ..."
There is an issue in POSIXNativeCalls#isProcessActive. In this function, if the call to kill() throws an exception with error code other than EPERM, the function returns false indicating that the process does not exist. However from Snappy server logs the process actually exists (the server continues to log different ops). In the test, I am always seeing error code ESRCH which is explained here-
https://unix.stackexchange.com/questions/258955/what-does-esrch-mean
http://www.virtsync.com/c-error-codes-include-errno
The process’s existence is checked in CacheServerLauncher#readStatus (line no 1444). The CacheServerLauncher#stop reads status (line 1195) and since in readStatus process is assumed to be non existent, stop() returns 0 declaring server is stopped.
As a fix returning true for the case of ESRCH
Patch testing
Ran tests from northWindHA.bt (used to fail almost every time before the fix)
Precheckin to be run prior to merge.
ReleaseNotes changes
NA
Other PRs
NA

Yes, I was also not sure why ESRCH is being returned for a running process.  Will change the code to use existence of /proc/pid/status.

Update on this-
Tried using new java.io.File("proc" + pid + "status").exists(). But the test failed again. Also tried getpgid(pid) >= 0 but that also did not work, probably returning -1 due to  ESRCH.
On further searching for ESRCH, found man pages of POSIX programmer's manual (http://man.linuxtool.net/rhel7/u2/man/3p_kill.html) that suggest that ESRCH could be set in secure implementations  in order to prevent the existence or nonexistence of a process from being used as a covert channel if the security label of process is different. Unsure this can happen in our case since the test operations are executed by the same user.

Did you miss slashes there? new java.io.File("/proc/" + pid + "/status").exists()
If not and /proc is failing then there is some other issue. I don't think it is possible that a process is running but its /proc does not exist.

Closing this as the changes are not required and this appears to be a test issue. Should have spotted the issue earlier.


Erratic behaviour when used with About Face activated

When a token with the About Face module activated has something attached to it, the attached item behaves erratically when the token is moved.
Token Attacher with About Face (used Baileywiki's Cart asset):

A temporary stopgap measure is to lock the rotation of the token which has things attached to it.

I'll have to check what the cause is

Fixed in 4.0


Added UMD (Univarsal module definition)

Improved the transitions with more easing timing functions (e.g. easeInOutExpo) with the js fallbacks
Fixed an issue of speed 0 not taking effect
Added cross browser compatible preventDefault
Added requestAnimationFrame on the animate function and changed to interval  from 4ms to 16ms to match the browser repainting rate

Are you sure the right syntax UMD? I use webpack 2 and use
import swipeJS from 'swipe-js';
When in my webpack build files plugin load jquery. But i dont want Jquery


Auto-merge fails when PR is created as a draft

https://github.com/ZPTXDev/Quaver/pull/427
https://github.com/ZPTXDev/Quaver/runs/7704902859?check_suite_focus=true
When a PR is created as a draft, auto-merge is already disabled (and I assume it's not possible to modify the state of auto-merge externally when in this state). The run fails with an error.

Another one when auto-merge is run on a draft PR:
https://github.com/ZPTXDev/Quaver/runs/7706134245?check_suite_focus=true

Thanks, @zapteryx. It seems like there was a change at some point that automatically disables auto-merge for closed and draft PRs.

Fixed in 2.1.2.


Job-DSL 1.77 introduces breaking change to ghprb-plugin

Job-DSL 1.77 has moved where they configure triggers for pipelineJob. https://github.com/jenkinsci/job-dsl-plugin/wiki/Migration#migrating-to-177
This is causing ghprb-plugin to error on our startup. Here is a gist of the error message and sample groovy snippet. For now, 1.77 is only giving a deprecation warning, but support for old syntax will eventually be removed.
https://gist.github.com/nocode99/81da87678a54241e71295b59dbc997df

Hello, could you please share any status update about Job-DSL 1.77+ support?


I need some help with pasting quick stop

So im new to programming and wanted to paste quick stop from a source. But every source i found uses Qangle and AFAIK Osiris doesn't use Qangle, so what can i use instead?

Vector

learncpp.com is the best way. instead of pasting, in my opinion


Frontend - setup connection with micro services

We should prepare two or three configurations:

kubernetes - that works on a remote kubernetes cluster
docker - that works on docker (probably the host will be gateway-service:8080)
dev - that works on localhost

Completed in #108.


OSError: Invalid cross-device link

[x] I have searched the issue tracker and believe that this is not a duplicate.

Make sure you run commands with -v flag before pasting the output.
Steps to reproduce
❯ pdm init -v
Creating a pyproject.toml for PDM...
Please enter the Python interpreter to use: 3.8
Using Python interpreter: /usr/bin/python3 (3.8.2)
Project name [zvm]:
Project version [0.0.0]:
License(SPDX name) [MIT]:
Author name [Aloxaf]:
Author email<EMAIL_ADDRESS>Python requires('*' to allow any) [>=3.8]:
Traceback (most recent call last):
  File "/home/aloxaf/.local/bin/pdm", line 8, in <module>
    sys.exit(main())
  File "/home/aloxaf/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/core.py", line 68, in __call__
    return self.main(*args, **kwargs)
  File "/home/aloxaf/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/core.py", line 100, in main
    raise err.with_traceback(traceback)
  File "/home/aloxaf/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/core.py", line 96, in main
    f(options.project, options)
  File "/home/aloxaf/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/cli/commands/init.py", line 47, in handle
    actions.do_init(project, name, version, license, author, email, python_requires)
  File "/home/aloxaf/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/cli/actions.py", line 364, in do_init
    project.write_pyproject()
  File "/home/aloxaf/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/project/core.py", line 375, in write_pyproject
    f.write(tomlkit.dumps(self.pyproject))
  File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
    next(self.gen)
  File "/home/aloxaf/.local/pipx/venvs/pdm/lib/python3.8/site-packages/pdm/utils.py", line 440, in atomic_open_for_write
    os.rename(name, filename)
OSError: [Errno 18] Invalid cross-device link: '/tmp/pdm-ebwgf6_o-atomic-write' -> '/home/aloxaf/Coding/shell/zvm/pyproject.toml'

Actual behavior
Error

Expected behavior
No Error

Environment Information
pdm version: 0.6.2
# Paste the output of `pdm info && pdm info --env` below:
Python Interpreter: /usr/bin/python3 (3.8.2)
Project Root:       /home/aloxaf/Coding/shell/zvm
{
  "implementation_name": "cpython",
  "implementation_version": "3.8.2",
  "os_name": "posix",
  "platform_machine": "x86_64",
  "platform_release": "5.5.13-zen1-1-zen",
  "platform_system": "Linux",
  "platform_version": "#1 ZEN SMP PREEMPT Wed, 25 Mar 2020 16:04:45 +0000",
  "python_full_version": "3.8.2",
  "platform_python_implementaiton": "CPython",
  "python_version": "3.8",
  "sys_platform": "linux"
}

Sorry for the bug, it is addressed in 0.6.3 release.


Add function to set seed

Fixes #1110
Added set_seed function in utils.seed.py for setting seed value to enhance reproducibility.

CI will be fixed by https://github.com/dmlc/gluon-nlp/pull/1152

@eric-haibin-lin any updates on this??

Job PR-1151/2 is complete.
Docs are uploaded to http://gluon-nlp-staging.s3-accelerate.dualstack.amazonaws.com/PR-1151/2/index.html

@eric-haibin-lin
When I analyzed the failed build log it's due to sequence_sampler.py.

@eric-haibin-lin
Please approve this PR.


Support for Generics in Parameter class

Parameter[float, int, Decimal, Fraction] or even something like numeric a => Parameter[a] would be extremely helpful for validating model constructions.

Interesting idea, but the use isn't entirely clear. Can you give a quick conceptual example of how would you use this GenericParameter?

B = TypeVar('B', a, b)
class BanditParameter(Parameter[B]):
  def __init__(self, name: str,
    subparameters: Sequence[Parameter[B]],
    domain: Sequence[Tuple[B]]
  ):
  ...

Effectively to enforce the membership of the tuple elements in their respective Parameter[B] domains. The type signature above doesn't state this constraint, it just hints at it - but that's the motivation :)


[cli]: Trailing slash in Kùzu db path causes IO exception

When creating/connecting to a Kùzu database in the CLI, adding a trailing slash in the path to the DB causes an IO exception (it shouldn't, the path is valid).
Example for creating a local DB called testdb
.$ /kuzu_shell ./testdb/
Opened the database at path: ./testdb/ in read-write mode.
Enter ":help" for usage hints.
IO exception: Failed to create directory ./testdb/ due to: IO exception: Directory ./testdb/ cannot be created. Check if it exists and remove it.

Expected behaviour is that the DB directory is created without errors.

I think it is a bug in libc++ as described here: https://github.com/llvm/llvm-project/issues/60634
Reason:
std::filesystem::create_directories("./testdb/ ") returns a failure, even when succeeding.
From strace, I can see the lib implem considers ./testdb/ to be different than ./testdb (2 mkdir, 2 stat).
It does mkdir("./testdb/"), which passes, then mkdir("./testdb") which failed (directory exists).


Bin place produced runtime by core-setup in bin folder

cc: @dagood @weshaggard

I've updated this to copy the nupkgs for the runtime so that the packages can be consumed by using the bin folder in NuGet.config and forget about the obj folder.


Some features not working on Xiaomi

Expected Behaviour
I used 'force-start', 'visible', 'style=inbox', 'summaryText', 'actions' and others. I want to use these options and to launch application when it is stopped.
Actual Behaviour
It's not working on my Xiaomi Redmi 4.  I just have standard notifications with icon, title and message. There are no buttons, no inbox messages and no summary text. Also, I can't receive a notification when the application is stopped.
Platform and Version
Android 6.0.1
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Xiaomi Redmi 4
Cordova CLI version and cordova platform version
cordova --version                                    7.0.1
cordova platform version android           6.2.3

Plugin version
cordova plugin version | grep phonegap-plugin-push   2.0.0

Sample Code that illustrates the problem
$data = [
'registration_ids' => $pushRegistrationIds,
'priority' => 'high',
'content_available' => true,
'data' => [
'title' => 'Title',
'message' => 'Message',
'priority' => 2,
'no-cache' => 1,
'force-start' => 1,
'visibility' => 1,
'style' => 'inbox',
'summaryText' => 'There are %n% notifications',
"actions" => [
[
"icon" => "emailGuests",
"title" => "EMAIL GUESTS",
"callback" => "app.test",
"foreground" => true
],
[
"icon" => "snooze",
"title" => "SNOOZE",
"callback" => "app.test",
"foreground" => false
]
],
"ledColor" => [0, 0, 255, 0],
"vibrationPattern"> [2000, 1000, 500, 500],
]
];
//Curl sending...
==========================
It's not working on my phone, but it works on other devices including other Xiaomi smartphones.
How can I find the cause of the problem?

@kirill001 well I think you've already found the problem, Xiaomi  👀  but if you reproduce the issue while running adb logcat | grep Push I might be able to tell you more.

@macdonst Unfortunately, I can't event connect my smartphone to PC. There is an empty list of devices. But if I solve this problem I'll tell you.

Closing, inactivity. Please comment/re-open if you have more details.


rustc panics when adding #[derive(Deserialize)] to pub type declaration

I already reported this to the compiler repo (rust-lang/rust#30861), but it was pointed out that it was possibly an issue in serde_macros.
Basically, I accidentally added a #[derive(Deserialize)] to a pub type _ = _; statement (instead of the struct I was intending to annotate), and instead of reporting an error the compiler panicked. I won't duplicate the entire bug report here since it's linked above, but I certainly can if that's needed.

I ought to be using a different error reporting mechanism here. I forgot all about fixing it. I'll swap them out.


mubeng: 0.15.3 -> 0.17.0

Diff: https://github.com/kitabisa/mubeng/compare/v0.15.3...v0.17.0
Changelog: https://github.com/kitabisa/mubeng/releases/tag/v0.17.0
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 341328 run on x86_64-linux 1

1 package built:

mubeng


[modify] facility node search map

Coverage decreased (-11.6%) to 71.895% when pulling 69d683e83334a2a580593a8cf3c66c198591d2a0 on ShinjiTanimoto:facility into daee091b44e92986d01e18a2e57c1034efe2d954 on shirasagi:master.


fix patch 37

While working on the current PRs we realized that patch 37 had an error in FASTA input, fixing this and some minor typos.

:+1:

@antgonza tests here time out - is this branch in sync with upstream artifact-study-pages? Your changes shouldn't have affected the running time.

What I have seen that sometime is times out and restarting solves the problem. I guess it depends on the machine we get. Anyway, it should be up to date.


SelenideElement object does not 'refresh' itself when calling get() or size()

If you store SelenideElement object in the variable like here:
ElementsCollection tasks = $$("#todo-list>li")

Then calling should will refresh elements collection object (i.e. search again for all elements matching locator on the page).
But calling get() or size will not refresh the object.
This make impossible an implementation of some "BDD style steps" when you combine action and assertion of its results in one step-method
Example:
public class BaseTest {

    public static ElementsCollection tasks = $$("#todo-list>li");

    @Test
    public void testPasses(){
        open("http://todomvc.com/examples/troopjs_require/#");

        $("#new-todo").setValue("a").pressEnter();
        tasks.shouldHave(size(1));

        $("#new-todo").setValue("b").pressEnter();
        tasks.shouldHave(size(2));

        tasks.shouldHave(texts("a", "b"));
    }

    @Test
    public void testFailes(){
        open("http://todomvc.com/examples/troopjs_require/#");

        $("#new-todo").setValue("a").pressEnter();
        assertEquals(1, tasks.size());

        $("#new-todo").setValue("b").pressEnter();
        assertEquals(2, tasks.size()); /*
            => java.lang.AssertionError: Expected :2 Actual :1
        */

        tasks.shouldHave(texts("a", "b"));
    }

    @Test
    public void testStillPasses(){
        open("http://todomvc.com/examples/troopjs_require/#");

        $("#new-todo").setValue("a").pressEnter();
        assertEquals(1, $$("#todo-list>li").size());

        $("#new-todo").setValue("b").pressEnter();
        assertEquals(2, $$("#todo-list>li").size());

        tasks.shouldHave(texts("a", "b"));
    }

    @Test
    public void testReasonWhyThisIsNeededForBDDStyle() {
        //given
        open("http://todomvc.com/examples/troopjs_require/#");

        //then
        addTask("a");

        //then
        addTask("b");
    }

    // This is kind of BDD step with action + assert in one helper
    public void addTask(String taskText){
        $("#new-todo").setValue("1").pressEnter();
        tasks.get(tasks.size() - 1).shouldHave(exactText(taskText));
        /*
            by the way, why there is no "last()" method in ElementsCollection ?
         */
    }
}

Full code: https://www.refheap.com/101119

Because loading of the entire collection can be slow, the ElementsCollection class was initially designed so that it reuses previously loaded element. That's why method tasks.size() returns the same result at every call. Otherwise tests can be very slow in case of big collections. If you need the "re-try" behaviour, use method $$.shouldHave(size(2)).
So, I am not sure it's a bug. Fixing this issue may cause performance downgrade.

What about $$.get ?
Does it work the same like size?
If yes then at least it's a consistent behaviour...
But how then the following code work:
        open("http://google.com/ncr");
        $(By.name("q")).setValue("selenium").pressEnter();
        ElementsCollection results = $$(".st");
        assert results.size() == 0;
        results.get(9).shouldHave(text("Downloading Selenium server"));

If $$.get reloads the ElementsCollection, why then not to make size to reload for consistency?
And why not to make this "optional" via Configuration for those who need this? :)

Hm... Seems like get is not like size...
$.get at least can know what to wait...  - the element index for which is passed as param...
Hm... Nevertheless... currently the only way to fix "bdd step with check" problem is to use tasks as method not variable... What is not handy and not consistent...
I think that then at least the $.refresh method should be added for manual refresh in such cases...
Though I think that make refresh configurable via Configuration (even turned off by default) - is also a good idea...
About performance... So far I can hardly imagine the drawback taking into account that "calling raw $.size" will be so often in tests... Maybe it's a good idea to do some "assessment"...

I think the "bdd step with check" problem is not a real problem.
I believe it's quite natural to create a new variable for new collection that have been changed.
It's not connected to BDD in any way.
In Selenide, it's natural to use methods tasks.shouldHave(size(1)), tasks.shouldHave(size(2)) like described in your testPasses() example. Let's use this pattern.

Sorry that I have not given up yet.
I called it "BDD" check, just becuase sometimes in BDD you want to write a "step" that does two things: action/operation + check of its result. In addition this "check" should be "general", it should work for different contexts.
I found the only way to check result of "adding item to the list" - get the last item in  the "list with added item" and check it.
Can you help to build such "step with check" (let's even forget about "bdd" word) with selenide? :)
The pattern you recommend will give something like this:
1
    public void addTask(String taskText){
        int oldSize = tasks.size
        $("#new-todo").setValue("1").pressEnter();
        tasks.get(oldSize).shouldHave(exactText(taskText));

    }

or
2
    public void addTask(String taskText){
        int oldSize = tasks.size
        $("#new-todo").setValue("1").pressEnter();
        int newSize = oldSize + 1
        tasks.shouldHave(size(newSize));
        tasks.get(newSize - 1).shouldHave(exactText(taskText));
    }

or are there better options?
And now look into these examples - 1 and 2 - once more.
IMHO the most part of users, when see such code, will gain a thought that "tasks" - are SMART and refresh themselves...
How otherwirse after
tasks.shouldHave(size(newSize));
here
tasks.get(newSize - 1)
we will have new updasted content inside tasks?
and when now we call
    tasks.size()

We will get newSize not oldSize.
Yeah, under cover, the tasks are not smart... But they look like smart - and this confuses.
I want to say that current Selenide behavior is not consistent and confuses the user.
Now about the "philosophy".
I think in the case of UI automation - it's much more obvious for the user to think about "tasks" - as not variable with collection that if changed need another variable - but "a real tasks in the browswer page" that can be updated of course.
Such approach is more "user friendly", and IMHO more "OOP" style, when we try to emulate with a code  - the real world. In real world - "tasks as entities are smart"
P.S. 1
/*
by the way, why there is no last() method in ElementsCollection ?
*/
P.S. 2
I like the Selenium's PageFactory approach. Where you will create your "tasks" with @FindBy as "smart and automatically refreshed" all the time by default, and when you want - you can "cache" the tasks, so they will be not refreshed and you can win in performance if you need this.
Seems like Selenide can't give the alternative to Selenium in this context.
P.S. 3
About performance...
You said that we will loose in performance... But think - when will we use the size ?
Very rarely, and in such contexts like tasks.get(tasks.size - 1), where we most probably in truth
need:
    tasks.shouldHave(size(newSize));
    tasks.get(newSize - 1).shouldHave(exactText(taskText));

So we definitly need to wait... And this is not a "waste of time", because we "want to wait here". We just have to do this explicitly, not like in other "selenide" contexts, when we have "implicit smart waits" by default.
When I write tests with Selenide - I really rarely use size. And when I use (like in example above) I want to wait. So... I do not see any lost in performance when we make size the same way smart as get and others. Once more - this "difference", even taking into account that get is not like size, - confuses the user (hope not only me... (: )...
When you used to see that get updates the object's content, then when you see that size does not - you are confused:)

The issue described here happened to be valuable for one more person here: http://automated-testing.info/t/pomogite-razobratsya-s-problemoj-czikla-v-selenide/10467
Here is a bit more "research" describing the problem of "ElementsCollection's size(), get(int), and iterator" being not working as expected by users (i.e. being up to date at any time we ask an ElementsCollection object about something):
import com.codeborne.selenide.ElementsCollection;
import com.codeborne.selenide.SelenideElement;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static com.codeborne.selenide.CollectionCondition.empty;
import static com.codeborne.selenide.Selenide.*;

public class IteratingElementsCollectionShouldBeUpToDateTest {

    @Before
    public void openPage(){
        open("http://todomvc4tasj.herokuapp.com/");
    }

    @After
    public void clearData(){
        executeJavaScript("localStorage.clear()");
    }

    @Test
    public void WhenUsingIterator_OfSameElementsCollectionObject(){

        $("#new-todo").setValue("a").pressEnter();
        $("#new-todo").setValue("b").pressEnter();
        $("#new-todo").setValue("c").pressEnter();

        for (SelenideElement task : $$("#todo-list>li")) {
            task.hover().find(".destroy").click();
        }

        $$("#todo-list>li").shouldBe(empty);
        /*
         * removes only a & c, leaving b, and then FAILS here with:
            ListSizeMismatch : expected: = 0, actual: 1, collection: #todo-list>li
            Elements: [

b

            ]

            Screenshot: file:/Users/ayia/projects/tmp/selenide-tests/build/reports/tests/1470479873538.0.png
            Timeout: 6 s.
         */
    }

    @Test
    public void WhenUsingGet_OnNewElementsCollectionObject(){
        $("#new-todo").setValue("a").pressEnter();
        $("#new-todo").setValue("b").pressEnter();
        $("#new-todo").setValue("c").pressEnter();

        for (SelenideElement task : $$("#todo-list>li")) {
            task.hover().find(".destroy").click();
        }

        while (!$$("#todo-list>li").isEmpty()) {
            $$("#todo-list>li").get(0).hover().find(".destroy").click();
        }

        $$("#todo-list>li").shouldBe(empty);

        /*
         * PASSED
         */
    }

    @Test
    public void WhenUsingGet_OnSameElementsCollectionObject_WithIterationBasedOnIsEmpty(){
        $("#new-todo").setValue("a").pressEnter();
        $("#new-todo").setValue("b").pressEnter();
        $("#new-todo").setValue("c").pressEnter();

        for (SelenideElement task : $$("#todo-list>li")) {
            task.hover().find(".destroy").click();
        }

        ElementsCollection tasks = $$("#todo-list>li");

        while (!tasks.isEmpty()) {
            tasks.get(0).hover().find(".destroy").click();
            /*
             * removes all and then FAILS here with java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
             */
        }

        tasks.shouldBe(empty);
    }
}

Current workaround for this issues is described in a WhenUsingGet_OnNewElementsCollectionObject test above.
The idea is to use new ElementsCollection object for any "asking collection about something". This can be achieved either via using straightforward $$ syntax or by abstracting ElementsCollection into method instead of variable, i.e using
ElementsCollection tasks() {
    return $$("#todo-list li");
}

instead of
ElementsCollection tasks = $$("#todo-list li");

Close old issue. Feel free to reopen and start disscussion again if it still needs to implement.


[logger] log packet_dropped with reason header_parse_error

Some servers add all zero padding to UDP datagrams during the handshake.
See also https://github.com/quicwg/base-drafts/issues/3333, one server with padding outside the QUIC packet is cloudflare/quiche.

OK this looks good. Let me get CI back into shape and I'll loop back to this.


Make deploy unable to find schema error

The command IMG=ghcr.io/open-feature/open-feature-operator:main make deploy current fails because it can't find the json schema. Manually copying the file into pkg/utils folder can be used as a workaround.
Error:
IMG=ghcr.io/open-feature/open-feature-operator:main make deploy
/Users/thomas.schuetz/go/src/github.com/open-feature/open-feature-operator/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
pkg/utils/schema.go:5:12: pattern flagd-definitions.json: no matching files found
Error: not all generators ran successfully
run `controller-gen rbac:roleName=manager-role crd webhook paths=./... output:crd:artifacts:config=config/crd/bases -w` to see all available markers, or `controller-gen rbac:roleName=manager-role crd webhook paths=./... output:crd:artifacts:config=config/crd/bases -h` for usage
make: *** [manifests] Error 1

Resolved by https://github.com/open-feature/open-feature-operator/pull/29/files#diff-76ed074a9305c04054cdebb9e9aad2d818052b07091de1f20cad0bbac34ffb52


Add tests for multi_index iterator cache across notifies.

Change Description

Consensus Changes

[ ] Consensus Changes

API Changes

[ ] API Changes

Documentation Additions

[ ] Documentation Additions

@swatanabe-b1 any issue with merging this? (Just asking since it has been sitting several months)

It should be good to go.


[Sprint: 60] Modifying parsing, graph and XML generation to reflect current thinking

Includes the changes to reflect the 'current thinking' around DSL > XML.  Also updated graph generation to match and graph to DSL text conversion. Includes support for $END and $FAIL transition targets.

LGTM

Rebased Squashed Merged.


When we deploy the solution, I was able to navigate "ALL" and "TYPES" under resources section. After 5 to 6 hrs, I'm not able to navigate any of them.

After 5 to 6 hrs
I no longer see explore any of resources under 'ALL' and 'TYPES'

Please advise

Are there any errors in the browser console?

No Errors in the console. It's saying discovery is in the progress even when I stop container tasks.

What does it say in the network tab when you refresh the page? Are there any 4xx or 5xx errors?

No 400 or 500 errors. All it’s saying discovery is in progress.
On Tue, Apr 27, 2021 at 9:45 AM Stefano Vozza @.***>
wrote:

What does it say in the network tab when you refresh the page? Are there
any 4xx or 5xx errors?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-perspective/issues/147#issuecomment-827618703,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJOSZAS6KXFXF4CISA7AQ23TK25YJANCNFSM43UOEXYA
.

Apologies for the late response here, just a quick question, how many accounts are you currently importing?

I am planning to import 10 accounts
On Wed, May 12, 2021 at 5:49 AM Stefano Vozza @.***>
wrote:

Apologies for the late response here, just a quick question, how many
accounts are you currently importing?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-perspective/issues/147#issuecomment-839635942,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJOSZAVY7W6MPRYQAHBVHNLTNJFKPANCNFSM43UOEXYA
.

Have you imported them all via the UI yet?

Sorry I got confused. This error went away after redeploy Solution.
I am good here.
On Thu, May 13, 2021 at 8:46 AM Stefano Vozza @.***>
wrote:

Have you imported them all via the UI yet?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-perspective/issues/147#issuecomment-840531589,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJOSZAQWF2Q5ORUI24VN7BDTNPC3RANCNFSM43UOEXYA
.

Ah good! Although, I would say that if I were you I would add accounts maybe 2-3 at a time allow the discover process to run and then when that's done, add another 2-3 etc. The version of Perspective you're using tries to make API calls for all the accounts all at once, which ends up getting rate limited by the AWS Config API. The new version has client side throttling that tries to minimise these errors.

Where can I find new version? I wish I could deploy new version if it’s
available.
Please advise
On Thu, May 13, 2021 at 8:53 AM Stefano Vozza @.***>
wrote:

Ah good! Although, I would say that if I were you I would add accounts
maybe 2-3 at a time allow the discover process to run and then when that's
done, add another 2-3 etc. The version of Perspective you're using tries to
make API calls for all the accounts all at once, which ends up getting rate
limited by the AWS Config API. The new version has client side throttling
that tries to minimise these errors.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-perspective/issues/147#issuecomment-840534877,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJOSZAUSK7PIZDXXRMBCEULTNPDTRANCNFSM43UOEXYA
.

It's not out yet, you will be able to upgrade by just using the CloudFormation Update functionality. I will reply to this thread when we have released.

Awesome, looking forward for new version.
thanks!
On Thu, May 13, 2021 at 8:57 AM Stefano Vozza @.***>
wrote:

It's not out yet, you will be able to upgrade by just using the
CloudFormation Update functionality. I will reply to this thread when we
have released.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-perspective/issues/147#issuecomment-840537173,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJOSZAXDG4QQSO2QACNYBM3TNPEEVANCNFSM43UOEXYA
.

Is there any ETA on this?
On Thu, May 13, 2021 at 9:19 AM Mahesh K Pidaparti @.***>
wrote:

Awesome, looking forward for new version.
thanks!
On Thu, May 13, 2021 at 8:57 AM Stefano Vozza @.***>
wrote:

It's not out yet, you will be able to upgrade by just using the
CloudFormation Update functionality. I will reply to this thread when we
have released.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-perspective/issues/147#issuecomment-840537173,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJOSZAXDG4QQSO2QACNYBM3TNPEEVANCNFSM43UOEXYA
.

I can't commit to dates but we're aiming for a few weeks time.

Sounds good.
On Thu, May 13, 2021 at 10:14 AM Stefano Vozza @.***>
wrote:

I can't commit to dates but we're aiming for a few weeks time.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/aws-perspective/issues/147#issuecomment-840590849,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJOSZARPCVDTRHFRKWMPMBDTNPNGDANCNFSM43UOEXYA
.

No problem! I'm going to close this issue now but I can still reply to it to give it a bump when the new version is released.


Fix I18n output for searchBar placeholder

Current result: searchBar placeholder isn’t translated
Excpected result: searchBar placeholder is a translated string

@sergejmueller I think your changes here are also in your PR - https://github.com/DeFiCh/app/pull/353/files. Can you close the other one please? Thanks!

@sergejmueller I think your changes here are also in your PR - https://github.com/DeFiCh/app/pull/353/files. Can you close the other one please? Thanks!

@sergejmueller I think your changes here are also in your PR - https://github.com/DeFiCh/app/pull/353/files. Can you close the other one please? Thanks!

You right, closed.

@sergejmueller I think your changes here are also in your PR - https://github.com/DeFiCh/app/pull/353/files. Can you close the other one please? Thanks!

You right, closed.

Closed here too. Will create a single PR for every change. Sorry for the mess ;)

Closed here too. Will create a single PR for every change. Sorry for the mess ;)


Data can't be blank

Mike - not necessarily a SDK issue but was hoping you can comment.  I have a pandora streaming device that I've created a text label to represent the currently playing album name.  However, when pandora goes to a commercial - the album name becomes blank (empty string).  The notification going to the brain is this:
{"type":"6273219938429698048:russound_source_26e9bb26_2_albumname","data":""}
However - I get the following error message back:
{"message":"Validation failed: {"data":["Data can't be blank"]}","error":{}}
Is that correct?  Can we really not send a blank to a text label (to clear it out)?
Now that I think about the SDK - does it convert a blank to a "-" to get around this?

Agreed, empty data should be allowed

Fixed upstream, i'll close as soon as we released an updated firmware


🎨 increase padding of several cards and divs

Amongst other things, this allows for the bullet points to be seen.
It also makes the content look less squished overall

[ ] We may want to DRY this, and extract a custom card class for this dashboard, with the padding pre-specified

Closes #89
FYI @MonikaFu

Portfolio view

Sector View

Company View

out of depth on how this works and what precisely to check, but I tested locally and it doesn't appear to break anything and the code seems reasonable

(In case you're interested, the p- class just changes the padding of each div/ card/ etc. So increasing the value from p-4 to p-8 gives more of a margin for the text).


VEHICLE RENTAL SYSTEM

a small and very easy to understand python project .

please review and merge it .


session action to view underlying elasticsearch document as JSON

I think it would be handy to be able to click the "Action" dropdown when a session is expanded and have an option for "View Document" or something like that. Essentially just opening another tab (similar to what you do for CSV) and show the raw Elasticsearch document in JSON format that was used to populate the session.

Minus the PCAP stuff, of course. Just the sessions2 indexed document.

You can add a right-click for it in your config.ini:
[right-click]
ESVIEW=url:http://eshost:9200/sessions2-*/_search?q=_id:%TEXT%&pretty;name:Raw Elasticsearch View;fields:id

@ahodgen  if that works that means your ES cluster isnt locked down :)  But you could do that with moloch too using a similar sessions.json?expression=id=%TEXT%   (Correct encoding left to the implementation)

Ah, this is very cool, thank you. I can make that work. Thanks.

FWIW, this works great:
[right-click]
JSON=url:sessions.json?expression=id=%TEXT%&fields=*;name:JSON Document;fields:id


Clearing container static IP in managed network does nothing

Rancher v0.56.1
Steps to reproduce:

create a container with managed network and enter "<IP_ADDRESS>" IP,
upgrade the container and remove the static IP,
the container has still the static IP, not a random one.

I have verified that this is a bug.  I removed the static IP and then went back (tried to upgrade again) after upgrading and the static IP was still there.

Tracking as part of https://github.com/rancher/rancher/issues/3707


[BUG] ValueError: time data does not match format

Hello, I have been using the DeepL (v1.18.0) to translate documents since 26/Dec/2023. But suddenly it stopped working yesterday (10/Dec/2024) after 4 am PST and our last 30 translation requests were not complete.
I have not made any changes recently. As per my investigation, I have noticed the following error in translator.get_glossary().
File "/home/guardiansofthein/py_api/helper.py", line 2222, in deepl_api_translate_doc
    my_glossary = translator.get_glossary(glossary_id)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/guardiansofthein/py_api/ve_py312/lib/python3.12/site-packages/deepl/translator.py", line 979, in get_glossary
    return GlossaryInfo.from_json(json)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/guardiansofthein/py_api/ve_py312/lib/python3.12/site-packages/deepl/api_data.py", line 154, in from_json
    datetime.datetime.strptime(
File "/usr/local/lib/python3.12/_strptime.py", line 554, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/_strptime.py", line 333, in _strptime
    raise ValueError("time data %r does not match format %r" %

ValueError: time data '0001-01-01T00:0000' does not match format '%Y-%m-%dT%H:%M:%S.%f%z'

I am just passing glossary_id in the get_glossary() function, but I have no control over the time data. So how can I fix this error now?

This is due to https://github.com/DeepLcom/deepl-api-issues/issues/37
We are on it, thanks for reporting.


Entities in Asciidoc

I admit to being defeated by this. Asciidoc can have HTML entities like   , as can RFC XML. (Yes, they are not XML entities, but they happen anyway, and IETF has them in its canonical examples of RFC XML.) Nokogiri presumably can deal with them via the NOENT option; but the DocumentFragment used to process Nokogiri in noko() does not; and as a result a line like
< (&lt;)

gets mangled into
<(lt;)

I can't work out how to get ParseOptions into DocumentFragment. @paolobrasolin, help!

I'm presuming the solution is something like passing the Nokogiri document, created with NOENT, as a parameter into each call of noko(), so that the document fragments inherit NOENT from it?

:area: Operations & Management Area

is being converted through
      def area(node, xml)
        node.attr("area")&.split(/, ?/)&.each do |ar|
          xml.area ar
        end
      end

into
<area>Operations &amp; Management Area</area>

I'm assuming this is more of the same. Maybe.

I've partly solved this issue by forcing all XML output from Nokogiri to be ASCII-only, and by making the initial noko() builder be HTML instead of XML.
Forcing all XML output from Nokogiri to be ASCII-only ensures that any non-ASCII characters are reencoded:   is converted to  .
Making the initial noko() builder be HTML instead of XML is the only way to ensure that   is recognised at all.
The pigheadedness of Nokogiri devs in tampering with entities has been in place since 2011: https://github.com/sparklemotion/nokogiri/issues/551
...
The problem now is that Nokogiri HTML is forcing all its attributes to be in lowercase, which makes the XML invalid (e.g. hangIndent attribute). This also isn't fixing the issue with entities in document header attributes. I would have to manually edit them back to the right case in post-processing.
At this stage, we may need to curtail the use of entities. Still investigating.

The issue with area entities (which I should make a separate ticket) is likely the difference between xml.area text and xml.area << text. At any case, I'll resolve the larger issue first.

Solved the entity problem. I am annoyed at the kludginess of it: it is the solution from https://stackoverflow.com/questions/36352835/disappearing-entities-in-xml-fragment-with-nokogiri , and Nokogiri isn't even letting me use a local dtd. But it works.

@paolobrasolin , leaving this open for you to review.


[clean-up] rename fks_dropped -> dropped_fks on _alter_field

It's just my suggestion.
I want to rename fks_dropped -> dropped_fks on _alter_field
I just thought it was natural for an adjective to be in front of a noun.
Please share your opinion.

@baidoosik Thanks for this patch, however we try to avoid trivial wording changes unless it's a big problem.


Missing Remarks entry (non-terminal not in 64-bit mode)

Syntax definition address non-terminal not valid in 64-bit mode—MASM for x64 (ml64.exe).

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

ID: f77f1d15-bf16-a086-40d1-e36a02e3dfc5
Version Independent ID: 649bdd1f-d642-6c15-1476-08cb0a6e0aaa
Content: END (MASM)
Content Source: docs/assembler/masm/end-masm.md
Product: visual-cpp
Technology: cpp-masm
GitHub Login: @corob-msft
Microsoft Alias: corob

Incorporated into Incomplete Syntax definition issue.

Thanks @Player1UK! Fix should appear in a day or so.


Use serde_with::skip_serializing_none macro to reduce code noise

Currently, every optional field in every struct (i.e. most fields) is annotated with #[serde(skip_serializing_if = "Option::is_none")].
We can ass a dependency for serde_with and use the skip_serializing_none macro to massively reduce the amount of noise when defining the structs.

closed by #94


Add unsafe markdown configuration

What this PR does / why we need it:
Add unsafe markdown configuration
Which issue this PR fixes:
fixes #638
Release note:
- Support the latest version of Hugo

/hold
I dislike us using an option that already is named "unsafe"...

This is a temporary fix only to add support for 0.60 a bit faster since we already don't support v0.59 and the fix is only added to the development config. I created a tracking issue for a permanent and more sane solution #646.

Fair point. As long as we remove it for the release.