Semvars in an env variable throw an error in Vite

Describe the bug
When an env variable has a semantic version (e.g. "1.2.3"), Vite throws a Unexpected number in env.mjs:16:46 error, shows a blank screen, and stops loading anything. It seems that Vite tries to coerce it into a number rather than a string.

Reproduction
https://github.com/drwpow/vite-env-repro
Steps to reproduce

Install dependencies with npm i
Start the dev server with npm run dev
Visit the webpage (probably at localhost:5173)
You won’t see anything. Open the console, and you’ll see a Unexpected number error where it tried to convert "0.0.0" (string) into a number (from vite.config.js)

System Info
System:
    OS: macOS 13.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 2.41 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.13.0 - ~/Library/Caches/fnm_multishells/72903_1675125660369/bin/node
    npm: 8.19.3 - ~/Library/Caches/fnm_multishells/72903_1675125660369/bin/npm
  Browsers:
    Chrome: 109.0.5414.119
    Firefox Developer Edition: 110.0
    Safari: 16.2
  npmPackages:
    vite: ^4.0.4 => 4.0.4

### Used Package Manager

npm

### Logs

_No response_

### Validations

- [X] Follow our [Code of Conduct](https://github.com/vitejs/vite/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitejs.dev/guide).
- [X] Check that there isn't [already an issue](https://github.com/vitejs/vite/issues) that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to [vuejs/core](https://github.com/vuejs/core) instead.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/vite/discussions) or join our [Discord Chat Server](https://chat.vitejs.dev/).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

Could be mistaken but afaik this is expected behaviour, you're telling define that any instance of VITE_PACKAGE_VERSION should be replaced with the value contained in the string 0.0.0, whereas you probably are wanting to have VITE_PACKAGE_VERSION replaced with the literal characters "0.0.0", in which case you can use:

"0.0.0"
'"0.0.0"'
'${someConst}'

Yes, this is an expected behavior.
https://vitejs.dev/config/shared-options.html#define:~:text=string values will be used as raw expressions%2C so if defining a string constant%2C it needs to be explicitly quoted (e.g. with JSON.stringify).

Ah thank you! I was mistaken in assuming these all had to be JSON-serializable values. I can see how literal string injection could come in handy! Thanks for clarifying.


Add tcp support for the client

Adding tcp support for the node-statsd-client. This is being used in production and uses similar code structure and style to the EphemeralSocket. I did not clone into the company's repository because it has already been done for an expanded udp version. Figured you might be interested in having the tcp support :)

Sweet! Released as v0.1.0.
Out of curiosity: What company and mind contributing the UDP-stuff back if relevant for a larger audience?

Uber - this is the UDP fork: https://github.com/uber/node-statsd-client

Wow. I knew Uber had a branch, but I hadn't noticed you'd put that much work into it.
You've obviously made a lot of nice fixes, but as-is, I think it's too far removed to do a straight-up merge.


Update ERC-7201: Fix solidity formula

This PR fixes one formula in the ERC7201, I am not one of the authors

I don't think this change is needed. If id is a string, you can call keccak256(id) directly.
I was able to confirm (in remix) that
    bytes32 public constant MAIN_STORAGE_LOCATION =
        keccak256(abi.encode(uint256(keccak256("example.main")) - 1)) & ~bytes32(uint256(0xff));

does compile (tested with 0.8.7)

I don't think this change is needed. If id is a string, you can call keccak256(id) directly.
I was able to confirm (in remix) that
bytes32 public constant MAIN_STORAGE_LOCATION =
    keccak256(abi.encode(uint256(keccak256("example.main")) - 1)) & ~bytes32(uint256(0xff));

does compile (tested with 0.8.7)

it works with hardcoded string like "example.main" but not with a variable type string memory


Release v0.9.0

Coverage increased (+0.3%) to 89.54% when pulling 993ee6fa7657fb40004bef8ae922a7f35aa142bd on d00rman:rel/v0.9.0 into 4268e76cccc8af323a24f703bf6efbf065243375 on wikimedia:master.

Published as v0.9.0


有使用示例吗

不知道怎么玩

Do you have any examples? I don't know how to use it, including local Python or Claude for Deskop. As shown in the picture, I should have successfully started, right?


Use the file-icons API if installed

File-icons is a great package for adding a ton of file type icons. It'd be great for making the file icon in RPC more unique by using it's api if it's installed.More details here

Atom-discord USES file-icons package. But, file-icons provide image as HTMLElement, not as image file. So, atom-discord pre-renders images using icons.less in file-icons package.
You can see it at fileicons-render.


Add Test Analytics JSON import format reference

This is a WIP, a skeleton really, to show one possible approach for describing the JSON format. It breaks it down into three component types: a result object, one or more history objects, and (presumably many) span objects. Treat this as a concept and then we can proceed toward filling in all the gaps (and moving it to better format, probably YAML, to give us flexibility to change the presentation).

@blaknite @meiqimichelle if you have any more info we can use to complete this, or can point at anything that needs fixing before we can get this out we can work on it tomorrow.

@plaindocs @ddbeck -- very happy to have what you've got here as a great improvement on the existing docs! Could we ship as a v1? (Also, we're unlikely to have much time to offer significant before GA.)


Use PasswordDigest instead of PasswordHashMethod in JDBC User Stores

The document on Configuring a JDBC User Store [1], mentions about a property PasswordHashMethod. But it should be PasswordDigest. Ref [2].
[1] https://is.docs.wso2.com/en/latest/setup/configuring-a-jdbc-user-store/
[2] https://github.com/wso2/carbon-kernel/blob/40261637fea0268190c9c6633163d1703c288a18/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreManager.java#L2784

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Unexplained dashes in tables test

This came up while cleaning up some things in markdown-it.rs. Re-generating the tests over there led to this test failing.
The --- dash in line 751 is what makes this fail, but I don't understand what that dash is doing there in the first place. It was imported from this repository and references example 203 of the GFM spec, yet I don't see it there: https://github.github.com/gfm/#example-203
https://github.com/markdown-it/markdown-it/blob/2b6cac25823af011ff3bc7628bc9b06e483c5a08/test/fixtures/markdown-it/tables.txt#L744-L753

Sorry for delay in answering.
markdown-it.js tests work with all features enabled, and this is just a typographer side-effect ("---" transformed into "—").


☂ issue: Use dedicated bootstrap-tokens per shoot worker machine (instead of a long-valid shared token)

Use bootstrap-tokens for machines
Background:
When a new node of a shoot cluster is created the kubelet needs to register with the shoot api server. The kubelet uses a bootstrap-token for authentication.
New:
In the proposed new flow the worker controller (here MCM)  creates a temporary bootstrap-token for each created vm.
If the featureFlag BootstrapTokenForVMs is enabled a file with the content "<<BOOTSTRAP_TOKEN>>" is added to the operatingsystem-config. It is passed to the worker controller. The worker controller generates a temporary token for every new worker instance(node). It replaces the  "<<BOOTSTRAP_TOKEN>>" string with the created token and adds it to the user-data placed on the vm on startup.
The cloud-config-downloader(original user-data) will then refer to the new temporary bootstrap-token in the kubelet-bootstrap script.
See the depicted flow in the following graph:

For old flow see also https://github.com/gardener/gardener/blob/a62e5622facd20d70c069c17bf42947dbea427ef/docs/extensions/operatingsystemconfig.md#how-does-gardener-bootstrap-the-machines
Steps:
Adapt worker controller to add bootstrap-token on vm creation:

[x]  MCM -> merged: https://github.com/gardener/machine-controller-manager/pull/351
[x] Verify if there are other worker controllers needed to be adapted
[x] Adapt worker controller contract to include handling bootstrap-token

Test and adapt os-extensions to support passing the <<BOOTSTRAP_TOKEN>> unencoded

[x]   gardenlinux -> https://github.com/gardener/gardener-extension-os-gardenlinux/pull/29
[x]   suse-chost -> https://github.com/gardener/gardener-extension-os-suse-chost/pull/41
[x] ubuntu -> https://github.com/gardener/gardener-extension-os-ubuntu/pull/42
[x] flatcar -> https://github.com/gardener/gardener-extension-os-coreos/pull/24

Adapt g/g code to support new bootstrap-token:

[x] PR opened: https://github.com/gardener/gardener/pull/3902

Next steps:

[x] release all os-extensions.
[ ] After 3 g/g releases remove support for creating the token the old way and inform the users that with this g/g version a compatible version of the os-extension-provider and the infrastructure-extension is required.

For more information on why roll this out in multiple steps see: https://github.com/gardener/gardener/pull/3902#issuecomment-831064735
How to categorize this issue?
/area security
/kind enhancement
/priority 3

@BeckerMax I think we are ready for the last step, i.e., cleaning up the code and closing this one! 🎉


https://www.autoweek.nl

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm reporting a new site support request
[X] I've verified that I'm running yt-dlp version 2022.10.04 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that none of provided URLs violate any copyrights or contain any DRM to the best of my knowledge
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and am willing to share it if required

Region
Netherlands
Example URLs
https://www.autoweek.nl/autotests/artikel/porsche-911-gt3-rs-rij-impressie-2/
https://www.autoweek.nl/autotests/artikel/test-porsche-911-gt3-touring/
Provide a description that is worded well enough to be understood
''list'' object has no attribute ''get''
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.10.04 [4e0511f] (win32_exe)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1690 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.10.04, Current version: 2022.10.04
yt-dlp is up to date (2022.10.04)
[debug] [generic] Extracting URL: https://www.autoweek.nl/autotests/artikel/porsche-911-gt3-rs-rij-impressie-2/
[generic] porsche-911-gt3-rs-rij-impressie-2: Downloading webpage
[redirect] Following redirect to https://myprivacy.dpgmedia.nl/consent?siteKey=ujm6mv0jrqiz5syr&callbackUrl=https%3A%2F%2Fwww.autoweek.nl%2Fprivacygate-confirm%3FredirectUri%3D%252Fautotests%252Fartikel%252Fporsche-911-gt3-rs-rij-impressie-2%252F
[debug] [generic] Extracting URL: https://myprivacy.dpgmedia.nl/consent?siteKey=ujm6mv0jrqiz5syr&callbackUrl=https%3A%2F%2Fwww.autoweek.nl%2Fprivacygate-confirm%3FredirectUri%3D%252Fautotests%252Fartikel%252Fporsche-911-gt3-rs-rij-impressie-2%252F
[generic] consent?siteKey=ujm6mv0jrqiz5syr&callbackUrl=https://www.autoweek: Downloading webpage
[redirect] Following redirect to https://www.autoweek.nl/autotests/artikel/porsche-911-gt3-rs-rij-impressie-2/
[debug] [generic] Extracting URL: https://www.autoweek.nl/autotests/artikel/porsche-911-gt3-rs-rij-impressie-2/
[generic] porsche-911-gt3-rs-rij-impressie-2: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] porsche-911-gt3-rs-rij-impressie-2: Extracting information
[debug] Looking for Brightcove embeds
[debug] Looking for embeds
ERROR: 'list' object has no attribute 'get'
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1477, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1553, in __extract_info
  File "yt_dlp\extractor\common.py", line 672, in extract
  File "yt_dlp\extractor\generic.py", line 2793, in _real_extract
  File "yt_dlp\extractor\common.py", line 3881, in extract_from_webpage
  File "yt_dlp\extractor\detik.py", line 122, in _extract_from_webpage
  File "yt_dlp\extractor\common.py", line 1450, in _search_json_ld
  File "yt_dlp\extractor\common.py", line 1631, in _json_ld
  File "yt_dlp\extractor\common.py", line 1576, in traverse_json_ld
  File "yt_dlp\extractor\common.py", line 1624, in traverse_json_ld
AttributeError: 'list' object has no attribute 'get'

Due to #5145, the generic extractor now handles the given URL. If you have examples where generic is insufficient, the issue can be reopened


I have modeled this hook in Fusion 360. Do you have any suggestions on how I can make this hook using convex pieces?

          I have modeled this hook in Fusion 360. Do you have any suggestions on how I can make this hook using convex pieces?

I am attaching a video with the convex hull for your reference.
https://github.com/user-attachments/assets/9ac738aa-5aec-4f26-90fa-8def9fadcc8f
Originally posted by @Anubhav0602 in https://github.com/google-deepmind/mujoco/issues/1868#issuecomment-2264550930

i want my hook to hang from the above horizontal bar

https://github.com/SarahWeiii/CoACD

I'd also like to mention the option of using SDFs (https://github.com/google-deepmind/mujoco/tree/main/plugin/sdf)
And also disabling collisions for your mesh, and manually or procedurally fitting invisible collision primitives. You can use replicate If your hook part has a region of constant curvature.
If you need something quick, and for only this model, then the collision primitive method may be the fastest. (And may give you better contacts then with a decomposed mesh!)

Also https://github.com/kevinzakka/obj2mjcf


Do not add "io.rancher.project.name" and "io.rancher.project_service.name" labels to containers

Server Version - V0.27.0-rc4
Containers that get deployed as part of a service have "io.rancher.project.name" and "io.rancher.project_service.name" labels  in addition to the new lables -"io.rancher.stack.name" and "io.rancher.stack_service.name".
Affinity rules that get created use - io.rancher.scheduler.affinity:container_label - io.rancher.stack_service.name=< value> as expected:
Why is there a need to have "io.rancher.project.name" and "io.rancher.project_service.name" labels  for containers that are deployed  in services created in rancher server version - V0.27.0-rc4 ?
Expected Behavior:
We should not have "io.rancher.project.name" and "io.rancher.project_service.name" labels for these containers.

@sangeethah The reason we include these is for services created prior to the "project"->"stack" name change.  An old service might have a scheduling rule that still uses the "io.rancher.project.name" or "io.rancher.project_service.name" labels.  If we don't inject these system labels, deployment of that service will be broken.
I can add logic to scan for scheduling rules within the service definition explicitly looking for references to the old labels.  And only inject these labels if they're referenced.  We can file this as a feature request (or modify this issue to be that feature request).  I'm guessing this wouldn't be a high priority feature though.

I think it's been long enough that we can stop adding these...


(Suggestion) Game Mode for iOS 17 and up

What is your question?
It basically just makes the processor run more toward the game and Bluetooth connectivity by lowering resources used by background operations. When it does this, the ram split will be more toward the game too because of these extra processes get ended.

This might help lol https://developer.apple.com/documentation/bundleresources/information-property-list/lsapplicationcategorytype?language=objc
Set this to games

This would also help with the categorization on iOS

already exists in Linux, and it does seem like a good idea, but idk how to implement it

needs to be done on my lime I think


Inaccurate speeds reported for fragmented downloads

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2021.10.22. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
See subject line: the qrong download speed is reported.
Verbose log
myhome:~$ yt-dlp -Uv  "https://www.youtube.com/watch?v=YOH1AoVjGPc"
[debug] Command-line config: ['-o', '%(title)s__%(uploader)s__%(upload_date)s_%(id)s.%(ext)s', '--no-playlist', '--restrict-filenames', '-Uv', 'https://www.youtube.com/watch?v=YOH1AoVjGPc']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8[debug] yt-dlp version 2021.10.22
[debug] Lazy loading extractors is disabled
[debug] Python version 3.9.7 (CPython 64bit) - Linux-5.14.15-arch1-1-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, keyring, mutagen, sqlite, websockets
[debug] Proxy map: {}
yt-dlp is up to date (2021.10.22)
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=YOH1AoVjGPc
[youtube] YOH1AoVjGPc: Downloading webpage
[youtube] YOH1AoVjGPc: Downloading android player API JSON
[youtube] Downloading just video YOH1AoVjGPc because of --no-playlist
[youtube] YOH1AoVjGPc: Downloading MPD manifest
[youtube] YOH1AoVjGPc: Downloading MPD manifest
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), acodec, lang, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] YOH1AoVjGPc: Downloading 1 format(s): 248+251
[debug] Invoking downloader on "https://manifest.googlevideo.com/api/manifest/dash/expire/1635833509/ei/RYKAYZOLNsKR1gLHtI6IAQ/ip/<IP_ADDRESS>/id/60e1f502856318f7/source/youtube/requiressl/yes/playback_host/r7---sn-uxax4vopj5qx-cxge.googlevideo.com/mh/Sh/mm/31%2C29/mn/sn-uxax4vopj5qx-cxge%2Csn-h0jeened/ms/au%2Crdu/mv/m/mvi/7/pl/18/tx/24008108/txs/23997970%2C24008108/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/1258750/vprv/1/mt/1635811738/fvip/5/keepalive/yes/fexp/24001373%2C24007246/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Ctx%2Ctxs%2Chfr%2Cas%2Cvprv%2Citag/sig/AOq0QJ8wRAIgfjy73Aelw-mhfIgJP_ZdCH7cUElRQANTV3HnZFYvyQkCICyzrUys45oNOUw8a17wjMXddhIpD8P_b3oGmdo4LErj/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRAIgE2afku7qPTbcEE-AwHmTcflgXkkwhDD-vhM99fP1xL8CIC8vb70N78VQ8clzfmGjeDcea-YjtFXyC90OXhdKA9IH"
[dashsegments] Total fragments: 853
[download] Destination: Eric_Random_-_A_Boy_Alone_FULL_ALBUM__Yan_Skene__20200917_YOH1AoVjGPc.f248.webm
[download]  17.8% of ~43.11MiB at  5.43MiB/s ETA 01:17^C
ERROR: Interrupted by user
[...]

Does the speed stay like that, or keep fluctuating? It is normal for the instananeous speeds to be inaccurate. The average should be correct though. If not, can u show output with --newline

One thing I've noticed (at least on Windows with -N 4) is that the download speed changes (flickers) so fast that you can't ever see accurate values (even if all you want to see if the value of 1 download thread).

@Jules-A That is unrelated, and as the warning says, "patches are welcome". I have no clue how to fix the progress in -N

@Jules-A That is unrelated, and as the warning says, "patches are welcome". I have no clue how to fix the progress in -N

Hmm.. I don't know... The download speed resets every time a new fragments starts so it shows the peak speed instead of taking in to account the download speed from the previous fragments and smoothly transitioning into it. Even without -N, with a fast download speed or on small files with many fragments (such as audio) it would still occur.

Speed_3.txt
Speed_2.txt
Speed_1.txt
I did some measurements...

Today it was fast ;-)

Looks as if it is the downloaded size per fragment,  not the speed (aka downloaded size per download time).

Histogram of the download speed as reported by yt-dlp:

Summaries in B/s:
> summary(s1)
       V1
 Min.   : 114647
 1st Qu.:1132462
 Median :2401239
 Mean   :2724520
 3rd Qu.:4299162
 Max.   :7193231
> summary(s2)
       V1
 Min.   : 386202
 1st Qu.:1239941
 Median :2642412
 Mean   :2843995
 3rd Qu.:4369940
 Max.   :7696548
> summary(s3)
       V1
 Min.   :  186102
 1st Qu.: 1226834
 Median : 2589983
 Mean   : 2779479
 3rd Qu.: 4225761
 Max.   :11418993
>

OK, one last plot...

Why has this been closed?
The data shows the output of what yt-dlp THINKS that the download speed is.
The gnome-data AFAIK shows that the download speed is lower than what yt-dlp reports.
At least the display stays at the highest value peak for longer, before the value goes down again.
As far as I can see, there is no reason to close the ticket.

This should be fixed in https://github.com/yt-dlp/yt-dlp/commit/bd93fd5d45e104561bad919d4775feba869d0145


Use OS specific line endings

\n only creates a LF, wich is not enough for Windows' CRLF (\r\n).
Fix: obtain EOL from:
System.getProperty("line.separator")

Should be fixed in latest revision.


adds speed param

adds speed to TTSOptions - already available in the TtsParams proto
follows similar patterns to other params[0] (e.g. temperature)
[0] https://docs.play.ht/reference/api-generate-audio

closing in favor of https://github.com/playht/pyht/pull/15
(easier to merge)


Correct the outline of search inputs in Chrome and Safari

After modifying search input with -webkit-appearance: textfield, the
focus outline is remaining with outline-offset: 0, but should be
-2px like other textfield inputs.
Resolves #547

Sorry, i have the (bad?) habit to use single quotes for CSS strings…

This is why we have integrated testing. :wink:

It says this is for Chrome and Safari, but in Chrome, it seems the UA style sheet contains this rule already:
input:focus,
textarea:focus,
keygen:focus,
select:focus {
    outline-offset: -2px;
}

So in my opinion the above should take care of the issue in Chrome. Isn't the case?

There is definitely something going on in Safari with [type="search"] (test on codepen)

Anyway... this looks good to me besides the fact that the comment should read:
Correct the outline of search inputs in Safari.

instead of:
Correct the outline of search inputs in Chrome and Safari.

If indeed the issue is limited to Safari only

I was able to take a real quick look, confirm what @thierryk said, and update the commit.

@jonathantneal that should do it but please note that it is only because Safari seems to be broken there too as the UA style sheet contains the following rule:
input[type="search"] {
    -webkit-appearance: searchfield;
    box-sizing: border-box;
}

The above clocks at <IP_ADDRESS> versus <IP_ADDRESS> for the selector used in this commit. So technically it should not overwrite that style from the UA style sheet (even though it does).

I think that’s because UA styles have zero weight, regardless of the selector.

I think that’s because UA styles have zero weight, regardless of the selector.

I'm sure you're right (after all these years I've never noticed that, duh!).


Question regarding the evaluation

Thanks for your awesome work! I'd like to follow your work and evaluate our models. I have a quick question regarding the evaluation - which specific evaluation config file is related to the "Core" set mentioned in your paper?
Thanks,
Qian

Hi @SivilTaram , thanks for your interest in our work.
This is the config file for CORE evals (including MMLU): https://github.com/mlfoundations/dclm/blob/main/eval/mmlu_and_lowvar.yaml

Hi @Hritikbansal , thanks for your great job.
I want to know which config file should I use for Extended evals? I tried mmlu_and_lowvar.yaml, but the result was not aligned with leaderboard.


[1.13] Ensure Bouncer uses configured proxy

High-level description
Ensure Bouncer uses configured proxy. Using Auth0 from behind a web proxy does not work due tothe lack of this setting.
Corresponding DC/OS tickets (required)

DCOS_OSS-5167 Bouncer does not use proxy to access external sites

Related tickets (optional)

DCOS-ID JIRA title / short description.

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain.
We do not have a suitable test environment for testing proxy setups. See the JIRA issue for confirmation from a user that this fix works.
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot label Ready For Review


Auto Load JS File on Navigation

Hi,
First of all, thank you for this package. I have an issue that I need some help with.
Let's say I have a home page and a counter page. I added your package and included a JS file via your package component. In this JS file, we simply have an alert saying "hello world." However, when I navigate to another page, like the counter page, and then go back to the home page, the JS file does not load again. This is causing a problem.
Could you add a property to this component, such as alwaysLoad=true, to ensure that this type of script that needs to load every time will be loaded again upon navigation?
Thank you for your assistance!

Hi @AmBplus.
The script is likely not reloading because it's already been loaded in memory. It will reload only after a full page reload (F5) happens.
Could you clarify what your scenario is? Are just wanting to ensure that the script remains loaded between navigations? Or is there some code in the module that you want to execute on each page load?
If it's the former, then this is probably handled automatically assuming enhanced navigation hasn't been disabled by the app.
If it's latter, I would avoid trying to accomplish this by reloading the script. This will cause a new copy of the script to be loaded into memory on each navigation, and it's not possible to "unload" a previously-loaded script. There are some also potentially surprising side effects of this (e.g., module-level state is not shared between each copy of the script).
The recommended way to achieve this is by defining an attach handler in the script:
hello.js
export default class extends BlazorJSComponents.Component {
  attach() {
    console.log('Hello, world!');
  }
}

You can put any code you'd like in the attach function, and it will run on each navigation. The README contains more info about "JS Components".
However, if you really want to re-load the script (and this comes with all the caveats I mentioned earlier), you can do so by specifying a unique query value for each navigation. For example, you could put the following in App.razor
<JS Src="@($"./hello.js?{Guid.NewGuid().ToString("N")}")" />

But again, I would recommend the first approach, if that's an option for you.
Please let me know if this answers your question!

No, I don't really mean that it reloads every time from the server side, it's not interesting at all :),  suppose I have defined an event for a button that increments a counter when clicked, when I go from the counter page to the home page and back again, this counter is no longer running and this causes my program to have problems, for example, suppose my JS code is something like this
var counter = 0;
document.getElementById('counterbtn').addEventListener('click', () => {
    alert(counter++);
})

And my razor
@page "/myCounter"
<PageTitle>Counter</PageTitle>
<JS Src="./test.js" />
<button id="counterbtn" class="btn btn-primary m-3 mx-auto">counter</button>

When I enter the myCounter page and click on the counter button, every time it shows me the counter number and adds one to it, but the problem is when I enter another page and come back I notice that my counter button is no longer working and this is the problem I am talking about.
i want somthing that triger that you comming back and reaload code to run again , i do not mean to load from server that not a good option

Hi @AmBplus,
The reason that doesn't work is because module-level code only gets evaluated once per page load. Since enhanced navigation doesn't technically reload the page, the script does not execute again after navigating away and back. This is a browser behavior that can't be changed.
To fix this, we need to re-write the script so that it assigns the event listener each time the containing component gets re-rendered (whether that be via enhanced navigation, streaming update, or interactive re-render). That way, the callback won't stop executing if the button gets removed or replaced.
This library actually has a set of features that helps with scenarios like this. If you re-write your code to look like the following, it should work:
export default class extends BlazorJSComponents.Component {
  attach() {
    // Initialize the counter to 0 each time we navigate to the page.
    // If you want the counter value to instead persist between navigations, you can
    // Remove this attach() function and declare 'counter' at the module-level.
    this.counter = 0;
  }

  setParameters({ button }) {
    // Each time the parent component re-renders (either interactively or via
    // streaming update), attach the click listener to the button specified in
    // Razor code.
    // NOTE: 'this.setEventListener` is a helper defined in the base class that
    //       automatically prevents double-registration and removes the listener
    //       when navigating to a different page.
    this.setEventListener(button, 'click', () => alert(this.counter++));
  }
}

@page "/myCounter"

@* Allows us to collect element references to pass to the script's setParameters() function *@
@inject JSElementReferenceScope Refs

<PageTitle>Counter</PageTitle>
<JS Src="./test.js" Args="[Refs]" />
<button data-ref="@Refs["button"]" class="btn btn-primary m-3 mx-auto">counter</button>

There's actually an example in the README similar to this, and it has more of a detailed explanation.
Hope this helps! Please let me know if this addresses your scenario.

Hi @MackinnonBuck, thanks for response
Yes, in this way we can resolve the problem, but another problem arises when we don't use our own script. Many times, we want to use a ready-made template, so if we want to use this approach, we need to rewrite the whole JS file, which is really painful. If there were a wrapper for this function that we set as a component, many of these problems would be solved.
For example:
<JS Src="./test.js" alwaysExecuteOnNavigation=true />

Additionally, sometimes we need to use JS libraries for specific purposes like reporting on certain pages, and these external libraries are not intended to be used throughout the entire project. Having to wrap these libraries in a function every time we want to use them is not ideal. At least, I've realized they should be within an export function.

I hope this is clear and show the problem .

Hi @AmBplus,
Thanks for clarifying. From what I understand, your requirements can be summarized as:

On each enhanced navigation, re-evaluate the script
But don't actually reload the script (i.e., download it over the network)
And don't require any manual code changes to the script (assuming it already works with enhanced navigation disabled)

A solution supporting this scenario would be awesome, and it would likely eliminate the need for a lot of the custom abstractions that this library provides. However, AFAIK, this isn't really possible in general, and there's not much this library could do to change that.
The only way to re-execute a script after it's been loaded is by tricking the browser into thinking it's actually different script (my original comment explained this approach).
If we wanted to somehow avoid reloading the script, the only way I can think of this being theoretically achievable is if the library transformed the code in all scripts used by <JS> components so that they could be "invoked" via function call after the initial load. However, there are still numerous problems with that, the main one being that even if the script simulates a reload, other document state does not, and this discrepancy is very likely to cause the script to misbehave.
Let's consider the example from your comment:
var counter = 0;
document.getElementById('counterbtn').addEventListener('click', () => {
    alert(counter++);
})

Enhanced navigation preserves as much of the DOM as it can between navigations. So what happens if, for example, an enhanced form post preserves the existing button element but re-evaluates this script? Now you'll get two alert dialogs because each instance of the script added an event listener to the same button.
If the transformation applied by the library were sophisticated enough, it might be able to somehow remove previous event listeners when the script gets re-evaluated. For the sake of this discussion, let's assume that's possible.
There are other examples that pose greater problems. Consider:
document.addEventListener('DOMContentLoaded', () => {
  const button = document.getElementById('hello-button');
  button.addEventListener('click', () => {
    alert('Hello, world!');
  });
});

This script would work if it were added to a document that reloads on each navigation. However, since the DOMContentLoaded event only gets fired on the initial page load, the listener won't execute after an enhanced navigation. So how would we make this work? One might think the library could forcefully dispatch the DOMContentLoaded event on each enhanced navigation, but this is very problematic:

Other scripts might not account for the possibility of this event getting dispatched twice
Other invariants would get broken (for example, document.readyState would have the value 'complete' on subsequent DOMContentLoaded events, which wouldn't normally be possible)

If you follow this trail of problems far enough, we effectively end up simulating all the characteristics of a full page reload, without actually doing one. This kind of defeats the purpose of enhanced navigation while also adding a horrendous amount of complexity to the library (if it's even possible to solve all these problems, which I'm not convinced it is).
So the solution we end up converging on is doing an actual full page reload, i.e., disabling enhanced navigation 🙂  But only if it's a hard requirement that the original script can't be changed at all.
Anyway, my recommendations would be (in this order):

Best case scenario: The script is simple enough that it can be re-written to take enhanced navigation into account
Second best case: The approach I described here works without the script misbehaving in all the ways I've described so far
Last resort: Disable enhanced navigation

TL;DR: Unfortunately, I don't see a future where this library automatically makes everything "just work", because the way to do this would be to maintain all assumptions made by any script designed without enhanced navigation in mind, and this ends up requiring a full page reload.
Hopefully this makes sense - if you/others have any ideas or other proposals that would make this scenario easier, I'd be interested in hearing them!


http.proxy in settings does not work, but command line option --proxy-server= does

VSCode Version: Code 1.18.1 (929bacba01ef658b873545e26034d1a8067445e9, 2017-11-16T18:32:36.023Z)
OS Version: Windows_NT x64 6.1.7601
Extensions: none
(1 theme extensions excluded)

As in title. Thanks!

Reproduces without extensions: Yes/No

Yes. That is already documented: https://code.visualstudio.com/docs/setup/network


Remove compiled code from git repository

I think compiled code should not be included in the git repository.
Instead, it should be generated during the build and published in the release.
See also: https://kentcdodds.com/blog/why-i-dont-commit-generated-files-to-master

I see you points, cause indeed it makes code review a bit polluted, but let me think a bit about that, cause I have some concerns

@wilgert Can you clarify what exactly you are suggesting?
Cause the guy in the article first created branches for each release (which is okeish), but then switched to unpkg (which is a bit not okay)
I do have some concerns:

I'd like to start using GitHub Packages at some point along side with npm;
I do really want to be sure that the code in the npm registry is absolutely the same as the code in github. Adding some 3rd party (such as unpkg) in the middle increase the level of vulnerability. This article explains my concerns: https://medium.com/hackernoon/im-harvesting-credit-card-numbers-and-passwords-from-your-site-here-s-how-9a8cb347c5b5
I'm fearing a bit that it might add some complexity;

I suggest that the compiled version is not committed to git but only generated during the build in Github Actions/ Travis/ CircleCI (I don't care which one).

I think making this change should not hinder you in using GitHub packages
If you publish the same package as a release on GitHub and a package on npm I think you have your second concern covered.
I think you only need to add some paths to .gitignore and make sure a build is ran in a CI environment whenever you want to do a release.

@wilgert Well, don't get me wrong - that's sounds reasonable. But that means we have to setup publish process somewhere on CI/GH Actions or whatever.
That's the thing to do. Cause atm I just make releases via cli


[WIP] Unify Python and C++ TIR lower API

In this PR we removed the python version of the lower function and replaced with a call to the C++ version. We also added some functionality that was in the python version that was not previously in the C++ version.
This is a work in progress as we see what unit tests fail.
@electriclilies @jroesch

@CircleSpin @electriclilies ping me again when tests are green, left one comment that jumped out at me, otherwise looks good if we can get it to pass the test suites

cc @manupa-arm @giuseros this is worth paying attention to, we have been working on cleaning up the internal APIs and bringing everything to C++.

@manupa-arm Yeah I'm not exactly sure what the meaning of each "phase" is-- again, I'm just trying to duplicate the python code in C++. @junrushao1994 Could you weigh in about the significance of each phase?
Also, thanks for the naming suggestions, I'm going to go through and clean stuff up later and I will take them into account then! Ideally I'd like to remove flags if possible

@jroesch @junrushao1994 Tests are green, let me know if there's anything I should change

CC @Hzfengsy: Hey Lily has done great work unifying python and C++ side lowering/build APIs!! Would you love to take a look and make sure it works for TensorIR? Thanks a lot!

Thanks @tkonolige! @Hzfengsy @csullivan can you take another look and approve?

Thanks @CircleSpin and @electriclilies ! Thanks @Hzfengsy @tkonolige @csullivan @YuchenJin @manupa-arm for reviewing

Thanks @tqchen!


Form component not worked as expected

Describe the bug
Try the form component in index.html and the form don't displabed as expected
How to reproduce
<!DOCTYPE html>

  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <title> Index</title>
  <meta content="" name="description">
  <meta content="" name="keywords">
  <link rel="stylesheet"<EMAIL_ADDRESS>/>

    <form clrForm>
        <clr-input-container>
          Field 1 label
          <input clrInput type="text" name="example" />
        </clr-input-container>
        <clr-input-container>
          Field 2 label
          <input clrInput type="text" name="example" />
        </clr-input-container>
      </form>

Expected behavior
https://storybook.clarity.design/?path=/docs/forms-form--default
Versions
Clarity project:
Clarity Core
latest
Framework:
No framework

Type: MacBook
OS: iOS
Browser Firefox
103.0 (64-bit)

We've moved our websites around and that is now the ng-clarity forms page.
This is the correct url for Core forms: https://storybook.core.clarity.design/?path=/story/forms-getting-started--page


Rendering atari environment

Hi, thanks for open sourcing this framework
I was trying to visualize what the agent has learned, but I could not render the atari environment.
After the GymAtariAdapter wrapper is used when I try to render the environment I get
AttributeError: 'AtariWrapper' object has no attribute 'render'

And I can not unwrap it either
'AtariWrapper' object has no attribute 'unwrapped'

I apologize if this is the intended behavior.

Hi dcharrezt,
Thanks for pointing this out! It seems we don't have a public pointer to the unwrapped environment. For now you can use AtariWrapper._environment, we'll try to fix this soon.

This actually may be as simple as making AtariWrapper inherit from acme.wrappers.base.EnvironmentWrapper, then you'll have access to the unwrapped environment via the unprotected EnvironmentWrapper.environment instead. Can anyone confirm that this doesn't have any unwanted side effects? Otherwise I'll try to look into this next week.

Hey guys, I created a discord for this project to be able to better contribute to the issues,share training results and more,  enjoy.
https://discord.gg/Rf6EU7

This should be resolved now. Let me know if you have any other issues.


Fix Ride Request Button example in README.

The README example code for Ride Request Button contains a few errors that prevent it from working, some typos and a failure to set the client id.

@rhashimoto looks great to me. Thanks for creating this PR. Could you please sign the Uber CLA so we can get this merged? Thanks!

CLA signed.


Error: Couldn't find package "<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>on the "npm" registry

Hello oxc-project team,
Do you want to request a feature or report a bug?
Bug
I'm getting the following error when running a fresh yarn install:
Error: Couldn't find package "<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>on the "npm" registry
Steps to Reproduce
When running a fresh install with yarn, which has an npm dependency using oxc-resolver one of the sub-dependencies is failing to install when a yarn.lock file needs to be generated.
Error: Couldn't find package "<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>on the "npm" registry.
    at MessageError.ExtendableBuiltin (/usr/local/Cellar/yarn/1.22.19/libexec/lib/cli.js:721:66)
    at new MessageError (/usr/local/Cellar/yarn/1.22.19/libexec/lib/cli.js:750:123)
    at PackageRequest.<anonymous> (/usr/local/Cellar/yarn/1.22.19/libexec/lib/cli.js:36590:17)
    at Generator.throw (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.22.19/libexec/lib/cli.js:310:30)
    at /usr/local/Cellar/yarn/1.22.19/libexec/lib/cli.js:323:13
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
error Couldn't find package "<EMAIL_ADDRESS>required by<EMAIL_ADDRESS>on the "npm" registry.

Additional Info
node version: v18.20.3
yarn version: 1.22.19
OS: Monterey 12.4, Intel
My webpack version:
"webpack": "^5.92.1",
"nx: "16.3.1"
This started happening today, earlier this morning I was able to successfully yarn install without this error occurring.
This could be related to this issue:
https://github.com/oxc-project/oxc-resolver/issues/229
But the status says resolved however I'm still running into this issue. Maybe the fix hasn't propagated yet to npm?

cc @Brooooooklyn

We were able to workaround the issue by telling yarn to use the previous version using the package.json resolutions section:
  "resolutions": {
    "oxc-resolver": "1.10.0"
  }

Published v1.10.2.


graalvm8: dontFixup = true

Motivation for this change
It does not fix anything, just reduce binary diff between oraclejdk8 and derivatives jvmci8 and graalvm8
It breaks the mystical magic which allowed processing3 to work on graalvm8 only
https://github.com/NixOS/nixpkgs/pull/35643#issuecomment-372184272
@dtzWill

@GrahamcOfBorg build graalvm8

No attempt on aarch64-linux
The following builds were skipped because they don't evaluate on aarch64-linux: graalvm8
No log is available.

No attempt on x86_64-linux
The following builds were skipped because they don't evaluate on x86_64-linux: graalvm8
No log is available.

No attempt on x86_64-darwin
The following builds were skipped because they don't evaluate on x86_64-darwin: graalvm8
No log is available.

@volth could you add yourself here? https://github.com/NixOS/ofborg/pull/103

This won't build on CI, it depends on oraclejdk8 and requires allowUnfree=true


fix: broken my-profile tap after purchase

This PR resolves []
Description

PR Checklist

[ ] I have tested my changes on iOS and Android.
[ ] I hid my changes behind a [feature flag], or they don't need one.
[ ] I have included screenshots or videos, or I have not changed the UI.
[ ] I have added tests, or my changes don't require any.
[ ] I added an [app state migration], or my changes do not require one.
[ ] I have documented any follow-up work that this PR will require, or it does not require any.
[ ] I have added a changelog entry below, or my changes do not require one.

#nochangelog

Warnings

:warning:

✅ No changelog changes

  Generated by :no_entry_sign: dangerJS against c04fcba6e10c3c3df440646ee261ad6340fe878b

I had the same thing on my device as well. It's tricky to debug 😄

I will merge this as it is Sultan


Error rendering text background color on vector layer

Describe the bug
When the layer's declutter is true. Error rendering text background color on vector layer. If the declutter is false, It's OK.
Code branch: master.
To Reproduce
Steps to reproduce the behavior:

Add two vector layer to map.
Set declutter with true for each layer.
Set a different background color of the text for each layer.
Zoom the map, Error rendering text background color on vector layer.

Demo:
<!DOCTYPE html>

    <title>example_bug</title>
    <link rel="stylesheet"<EMAIL_ADDRESS>type="text/css">

See #10949  Your code works as expected with the dev version https://codesandbox.io/s/angry-currying-1cxbn?file=/main.js

See #10949 Your code works as expected with the dev version https://codesandbox.io/s/angry-currying-1cxbn?file=/main.js

Think you, Just looked at the source code, has been solved.

See #10949 Your code works as expected with the dev version https://codesandbox.io/s/angry-currying-1cxbn?file=/main.js

Think you.


Editor settings failing to update keyboard handler (i.e. vim)

I have posted this at https://github.com/swagger-api/swagger-editor/issues/834 but noticed it wasn't an issue with swagger-editor version but the version attached with swagger npm module instead?

Apparently it's not possible to change keyboard handlers on the local version of Swagger-editor. It works as expected under http://editor.swagger.io/#/
Steps to reproduce:
$ npm install swagger -g
$ swagger project create test
$ cd test/
$ swagger project edit

http://<IP_ADDRESS>:49615/#/ (Safari 9, Chrome 48.x - OSX)

Select Preferences > Editor Settings
Change Keyboard Handler option from ace to vim
Browser console outputs [Error] Failed to load resource: the server responded with a status of 404 (Not Found) (keybinding-vim.js, line 0) http://<IP_ADDRESS>:49615/bower_components/ace-builds/src-noconflict/keybinding-vim.js

Never mind, it happens there as well. Sorry.


Treasury - Stable Fund Investment (Polygon)

The amount requested to transfer:
25k in Matic on Polygon Network
The recipient of the amount. Each additional recipient will receive the specified amount in the proposal:
A Stable Fund account will need to be created and funds transferred to the wallet so these can be invested for a daily return of 1.5%.
The purpose of the transfer. This can include the allocation of the funds to delegated traders/farmers, to conduct purchases of specific assets, to perform token buybacks, or to pay external parties for services:
Stable Fund is an investment platform which provides 1.5% on initial investment which is locked for a period of 28 days, each day the rewards can be claimed and either withdrawn or reinvested (compounded), the latter will then be locked for a further 28 days (48% return on investment at this stage).
The current return on initial investment is 49 days, I would propose that the initial investment is compounded to this point and then withdrawn and placed back into the Treasury, the remaining 25k Matic should then be compounded for at least 6 months which will return 100k Matic. The Polygon network is currently full of hype and lots of talk about things happening in the near future, in the last week it has increased 48% so assuming the same over the next 6 months would result in the initial investment returning $137k and due to the initial investment being returned to the Treasury very low risk.
Crazy numbers but if this 25k Matic risk free investment was invested for 365 days it would be worth 4.3m Matic, in that period Matic could be in excess of $2 ($8.6m) so a superb return all risk free after 28 days.
I already compound my own investment daily so would be happy to do the same for another investment under a separate wallet, as above open to agree how this can be multi-sig (if possible?). The initial account will need to be made with an email and password before wallet can be added to hot wallet, although this is not required other than bridging funds.
Justification for the transfer, if one or any of the recipient addresses are not known to the team:
Pros

Dev is fully doxxed and active in the telegram, does weekly AMA and is quick to respond to any fud!
v1 of Stable One had an issue with the contract and investors were unable to rewards funds, the Dev paid all those impacted out of his own funds - I was one so can vouch for this.
StableOneGroup is a limited company in the UK (Company number: 14099508).
The trading is carried out by AI contracts which have been running three years, this is now a ponzi scheme that relies on new money.
Stable Fund live since April 2022.
The fiduciary wallet holds in excess of $23m, images shared within the last AMA (see pinned message 98 in Telegram)
In addition to Matic fund there is also BUSD

Cons

Requires someone to compound daily
Matic price could drop after investment
Relatively new to investors
Might not last 28 days (albeit now on month four with fiduciary wallet increasing exponentially)

I want to share this with everyone because from what I have heard and seen it looks and feels very legit, I have dropped all the links below so you can all do some further research. Check it out maybe invest 10 Matic and see what you think.
https://stablefund.app/
Stable Fund apps also available on Apple and Android, these are pretty impressive wallets and have a range of features currently live with more coming in the next month.
Final note - it would be good to agree a fixed period to compound and then how a percentage of these rewards are distributed to OG holders.
Any Qs let me know.

I like this idea 1.5% on stables is better than 0. Great point about treasury gets investment back after 49 days and play with profits . I also believe in 8 months time with the 2023 launch of zk roll up the value of matic should be in a good position either way we hold matic.

I like this as I am a big fan of Matic and what they have built, however I need to understand how this app works and if it's feasible to be managed daily. Also, not sure if the current price is a good entry given the recent pump and possible further market downside as this could just be a bull run within a bear market. Maybe DCA every week or so Would be a good idea. 48% guaranteed return is a no brainier and consistent, but I wonder how safe this is - we don't want another Celsius 2.0

Really interesting idea.
Let's vote for it, wait for a correction and enter this position

this is now a ponzi scheme that relies on new money.

Is this correct? If so this does not seem like a pro for the service. Please provide a clarification for this to be taken to vote.
In addition, is there a risk of assets being seized by the service (similar to Celsius stopping users from withdrawing)?

this is now a ponzi scheme that relies on new money.

Is this correct? If so this does not seem like a pro for the service. Please provide a clarification for this to be taken to vote. I have updated the proposal it should have read not a ponzi
In addition, is there a risk of assets being seized by the service (similar to Celsius stopping users from withdrawing)? This is always a risk, I can't say that it won't happen but I and many others have been withdrawing capital after 28 days since the beginning of April 2022

This Proposal is clear to move to vote.

I think - the risk is too large now to take 25k, once we make like 500k then such risk are more suitable, we don't know much about this fund and nor can we fully trust it. Lot of exchanges are getting in trouble and scamming ppl so as much as I like polygon, I would hold this for future and ask the trader , to decide or operate this.

As the amount may conflict with the allocation proposed in #10, this will be reevaluated after #10 finishes its vote.

Lenners looking at some of the feedback may be lower the amount requested.
And maybe suggest an exit strategy

Hi all, I have reviewed all the comments above and propose to invest 15k returning the initial investment to the treasury at the end of October and compounding the balance rewards daily until end of March 23 which should return approx. 200k Matic. 75% returned to treasury with 25% used for a buyback. @aggregatedfinance @Cryptobuzz1

Hi lenners. Thank you for your update on this amendment you will need to edit your main title to 15k on the first post instead of 25k.

Lastly to eliminate doubt of A.N.Other person with access to funds on this particular proposal. Now we have a delegated trader. Would he be happy to volanteer to action the duties of this proposal (compounding withdrawing etc) .

Proposal opened on snapshot:-
https://snapshot.org/#/aggregatedfinance.eth/proposal/0x41225d7e03101e27373803651b8741a1708fdd9d554b9237cf6d51a0e0acc43c

Great news @eggwards 👏

Vote closed with majority AGAINST outcome. This proposal is now closed as complete.


Support for Babel transformed es6 classes

I noticed the spyAll() method wasn't worked for es6 classes that are transformed by babel.

I need to look for obj.proto for es6 babel classes since the babel transformation doesn't add to the obj.prototype

After doing some more research, I ended up using Object.getPrototypeOf if it exists per the Mozilla docs:

Warning: While Object.prototype.proto is supported today in most browsers, its existence and exact behavior has only been standardized in the ECMAScript 6 specification as a legacy feature to ensure compatibility for web browsers. For better support, it is recommended that only Object.getPrototypeOf() be used instead.

Awesome, thanks @geoffdutton!
I made some comments, nothing serious, feel free to answer if you disagree.
Please, let me know if you don't have time to update your PR, I'll do it.

Hi @geoffdutton,
I would like to thank your for your works, that's awesome! Sadly, I can't merge that for these reasons:

Your PR contains too much things. I think that it's important to merge features one by one.
I made a very big refactoring recently to migrate the entire project to ES6 code, there are some conflicts now that needs to be fixed.
You incremented the version and I would like to update it once a new release is published.

I really appreciate what you did here. If you agree, I can cherry-pick some of your commits ?

I agree it contains too much. After using it on my own projects, the features I thought would be helpful aren't be used as much, so let me re-evaluate there.
I will fix the conflicts.
And yes, I will revert the version number to what it was. Not sure what I was thinking there ;)
I'll update early next week, I'm hoping to get to this over the weekend. Thanks!

I'm going to just open another pull request.


WIP: new router implementation compatible with regular expression

What problem does this PR solve?
implement new router that is compatible with regular expressions
Issue Number: close #4256
What is changed and how it works?
implement a new router that is compatible with regular expressions. It basically reused the filter module in tidb-tools project, which has also been used in the block-allow-list. Reusing the existing module ensures modules behaving the same across the whole project.
Check List
Tests

Unit test
Integration test

Code changes

New router implemented as a stand-alone module exporting the same interface with the old one
Using new router in modules that's dependent with the old router

Side effects
Related changes
Release note
Implement a new router that is compatible with regular expression.

https://prow.tidb.io/command-help#retest

/retest

/test ?

/test all

/pony

/retitle new router implementation compatible with regular expression

/check-dco

/run idc-jenkins-ci-ticdc/dm-compatibility-test

/run-dm-compatibility-test

/run-dm-integration-test

/run-integration-test

/run-kafka-integration-test

Codecov Report

Merging #4358 (2dcd595) into master (ab62e6b) will decrease coverage by 0.2610%.
The diff coverage is 45.3890%.

Flag
Coverage Δ

cdc
59.1375% <54.6042%> (-0.4785%)
:arrow_down:

dm
52.0021% <41.4900%> (-0.0635%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #4358        +/-   ##
================================================
- Coverage   55.5183%   55.2572%   -0.2611%
================================================
  Files           495        496         +1
  Lines         61151      61353       +202
================================================
- Hits          33950      33902        -48
- Misses        23789      24041       +252
+ Partials       3412       3410         -2

/run-integration-test

/run-dm-integration-test

/run-dm-compatibility-test

/run-dm-integration-test

/run-integration-test

/run-dm-compatibility-test

/run-kafka-integration-test

/run-integration-test

/run-integration-test /tidb=pr/30558

/run-all-tests

/run-integration-test /tidb=pr/30558

/run-kafka-integration-test /tidb=pr/30558

/run-integration-test /tidb=pr/30558

/run-all-tests

/run-verify

/run-verify

/run-verify

ping @buchuitoudegou

/run-all-tests

/run-verify

/merge


[Messaging] [Warning reporting] Making warning reporting run through the MessageControl plugin

@sebaszm Do we want to go back to EXTERNAL_HIDDEN? I don't think it had anything to do with the bounds OOP issue - should I revert it, rebuild and check whether everything still works as intended?

Yes, use EXTERNAL_HIDDEN.


Create Agate Template Starting Point

Description
We'll need a starting point for new users to be able to work from.
This starting point app template should have several components already built and displaying so new users get something more useful out of the box than just a "hello world".
Requirements
Built-in pieces to have:

An agate/Panels implementation with 2 panels and 2 tabs to switch between them

Only one of the panels needs some content, but a button or something on the second one wouldn't hurt.
Having some pre-built state management to support Panel switching, written in an idealized way, would be great for getting users started right out of the box

Include comments directly in the code for App.js or index.js that lists what "skins" are available: "carbon" and "titanium", that "carbon" is default, and how to use them.
<App skin="titanium">
Explain that carbon is a dark theme and the titanium is light, so they don't have to try them both out before they can decide.
Include some interesting looking components on one of the Panels: Button, Input, Picker, SliderButton, or Popup.

May be good to wire up one of the components to have some visible action to illustrate fundamentals of how events are passed around.

To Deliver
Either a distributable ZIP file, a standalone repo, or built-in app templates for Enact CLI will work. We just need at least one of them.

Probably ideal to put it on https://github.com/enactjs/templates and publish to npm similar to the style as the others.

Be sure to pull in the zoom prevention code from the console app.

We decided to publish the template in alpha form from a working branch (feature/agate) and then merge enactjs/templates#4 once we are satisfied it's ready.
https://www.npmjs.com/package/@enact/template-agate


Screenshots in user docs need updating

The images in this list need updating because they are wrong. However, all images probably need to be recaptured to reflect the current 3.0 version.

[x] https://github.com/Vector35/binaryninja-api/blob/dev/docs/img/status-bar.png

this image needs updating to reflect new status bar

[x] https://github.com/Vector35/binaryninja-api/blob/dev/docs/img/view-choices.png

this image needs updating to show view chooser in the pane header

[x] https://github.com/Vector35/binaryninja-api/blob/dev/docs/img/keybindings.png

this image has a weird hamburger icon on the bottom left, and doesn't show a sidebar, or any of the coloring to reflect modified keybindings

[x] https://github.com/Vector35/binaryninja-api/blob/dev/docs/img/graphview.png

this image needs updating to reflect graph view signature header, at least

[x] https://github.com/Vector35/binaryninja-api/blob/dev/docs/img/options.png

this image needs updating to reflect it's coming from the hamburger button

[ ] https://github.com/Vector35/binaryninja-api/blob/dev/docs/img/cross-reference-tree.png

this image needs updating to show the cross references pane tree view in the sidebar (would also be nice to select a reference that actually shows off that it's a tree view, and make sure the reference shows arrows going in both directions)

[ ] https://github.com/Vector35/binaryninja-api/blob/dev/docs/img/cross-reference-table.png

this image needs updating to show the cross references pane table view in the sidebar

[x] https://github.com/Vector35/binaryninja-api/blob/dev/docs/img/functionlist.png

this image needs to be replaced to show the Symbols pane instead of the defunct "Functions List"

[x] https://github.com/Vector35/binaryninja-api/blob/dev/docs/img/pseudo-c.png [does not exist yet]

need a new image showing HLIL and Pseudo C side by side (I'll leave a placeholder in the docs/getting-started.md

[ ] https://github.com/Vector35/binaryninja-api/blob/dev/docs/img/tiling-panes.png [does not exist yet]

need a new image showing tiling view panes with most of the following, with their views synced:

Hex view
Disassembly view
LLIL view
MLIL view
HLIL view
Pseudo-C view
Pinned cross references
and make sure the feature map is visible!

updated the ones I checked and added pseudoc.png from the blog.
I'm not totally sure about having a single image showing all panes sync'ed, not sure that's necessary?


added FOM University with BCW Mail

@Kglrnd Please provide us with:

the school official website URL, if different from the domain you are submitting
an URL of a page on the official website where an IT-related long-term (>1 year) course is offered by the school
an URL of a page or another proof (.pdf or a screenshot are OK) showing that the school recognizes the domain which you are submitting as an official email domain for the students.

@Kglrnd You might miss my previous comment. Please react.

@Kglrnd I am sorry, this request remains unanswered for a while. I have to close it without merging. Please reopen and comment if you have an update regarding the abovementioned issue. Thank you for the understanding!


Avoid for..in loops in JavaScript

ref https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in#Array_iteration_and_for...in

I can port the same to master if needed of course

Thanks!


added a support for empty-message slot for customization

Supports modifying the content of the empty message.

You can modify the message, which is shown when the rows are empty.


Cannot POST /MMM-HomeAutomationNotifications

Hi,
found your module and think it is something many will be interested in. Since I am new to HTTP requests and don't fully understand how it works maybe someone can help figuring out what I am doing wrong.
I am running an Openhab server on a seperate Raspberry on the same network.
var config = { 	address: "<IP_ADDRESS>", 	port: 8080, 	ipWhitelist: ["<IP_ADDRESS>", "::ffff:<IP_ADDRESS>", "::1", "::ffff:<IP_ADDRESS>/120", "<IP_ADDRESS>/24"]
I can ping and connect thru ssh from the Openhab server to MagicMirror.
I tried to post messages through openhab HTTP Actions to MagicMirror. Since I dind't get that to work I tried to send the POST request via curl from the Openhab server (<IP_ADDRESS>)  to MagicMirror (<IP_ADDRESS>).
When executing:
curl -X POST http://<IP_ADDRESS>:8080/MMM-HomeAutomationNotifications?type=WARNING&message=Test
I always get the answer:

html lang="en"
head
meta charset="utf-8"
title Error /title
/head
body
pre Cannot POST /MMM-HomeAutomationNotifications /pre
/body
/html

I have no idea what to look for. Maybe someone can point me in the right direction.
Thanks for any suggestions.

So this line is the important one:
HTTP/1.1 404 Not Found
Basically that means that it can't find the address you tried to connect to.
If you just go to <IP_ADDRESS>:8080 with a web browser do you see
anything?  That should show you what your mirror is displaying.
On Sun, Aug 23, 2020 at 11:31 AM sglock<EMAIL_ADDRESS>wrote:

Enable? You mean git pull and config file? Yes module is enabled:
{ module: "MMM-HomeAutomationNotfications", position: "bottom_right", //
This can be any of the regions. config: { // The config property is
optional. // See 'Configuration options' for more information. } },
Here are the results of
curl -v -X POST
http://<IP_ADDRESS>:8080/MMM-HomeAutomationNotifications?type=WARNING&message=Test
Trying <IP_ADDRESS>...
TCP_NODELAY set
Expire in 200 ms for 4 (transfer 0xd02880)
Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 8080 (#0)
POST /MMM-HomeAutomationNotifications?type=WARNING HTTP/1.1
Host: <IP_ADDRESS>:8080
User-Agent: curl/7.64.0
Accept: /
HTTP/1.1 404 Not Found
X-DNS-Prefetch-Control: off
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Download-Options: noopen
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Content-Security-Policy: default-src 'none'
Content-Type: text/html; charset=utf-8
Content-Length: 171
Date: Sun, 23 Aug 2020 16:15:38 GMT
Connection: keep-alive
Since I am new to this I can't make much sense of the information. Can you
tell me what that means?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/john3300/MMM-HomeAutomationNotifications/issues/1#issuecomment-678795368,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACRLEWTQEZMMYESUDJ5LK4DSCE745ANCNFSM4QIQFEDA
.

If you just go to <IP_ADDRESS>:8080 with a web browser do you see
anything?  That should show you what your mirror is displaying.

Yes, just checked ... opened address in the browser and I can see the mirror content, all modules are visible. Seems to me that I can't finde /MMM-HomeAutomationNotifications.

So that means your ipAddress, port, ipWhiteList part of your config is
definitely working.  So now the question is if the module is loading
properly.  I think the easiest way to test that is to add a header to the
module config and make sure that shows up on the mirror:
{
module: "MMM-HomeAutomationNotifications",
position: "bottom_bar",
header: " Test header"
}
Save the file and then restart the mirror so it picks up the change.
On Sun, Aug 23, 2020 at 1:15 PM sglock<EMAIL_ADDRESS>wrote:

If you just go to <IP_ADDRESS>:8080 with a web browser do you see
anything? That should show you what your mirror is displaying.
Yes, just checked ... opened address in the browser and I can see the
mirror content, all modules are visible. Seems to me that I can't finde
/MMM-HomeAutomationNotifications.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/john3300/MMM-HomeAutomationNotifications/issues/1#issuecomment-678806777,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACRLEWUJWSJIN2IYZUSFRMLSCFMFLANCNFSM4QIQFEDA
.

OK, now we are getting somewhere. The module shows with Test header if I put it in the position "bottom_bar" and I, as I use the "MMM-pages" module, I put it in the fixed section of the config.
After I try teh curl command again this is the aswer:
curl -v -X POST http://<IP_ADDRESS>:8080/MMM-HomeAutomationNotifications?type=WARNING&message=Test
type=WARNING&message=Front%20door%unlocked
Trying <IP_ADDRESS>...
TCP_NODELAY set
Expire in 200 ms for 4 (transfer 0x384880)
Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 8080 (#0)
POST /MMM-HomeAutomationNotifications?type=WARNING HTTP/1.1
Host: <IP_ADDRESS>:8080
User-Agent: curl/7.64.0
Accept: /
HTTP/1.1 400 Bad Request
X-DNS-Prefetch-Control: off
X-Frame-Options: SAMEORIGIN
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Download-Options: noopen
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Content-Type: text/html; charset=utf-8
Content-Length: 36
ETag: W/"24-mhAU2KpEuvW7EhlU8DJtWEPFXGs"
Date: Mon, 24 Aug 2020 16:37:43 GMT
Connection: keep-alive
Connection #0 to host <IP_ADDRESS> left intact
Query parameter message is required!
[1]+  Fertig                  curl -v -X POST http://<IP_ADDRESS>:8080/MMM-HomeAutomationNotifications?type=WARNING

Yes, this is better.  The HTTP/1.1 400 Bad Request means that the request was made successfully, but there was a problem with it and it was rejected.
The very end of the output shows Query parameter message is required! which is an error message from the module stating that the message query parameter was missing.  Which if you look at the curl command shown in the very last line looks to be true.

Ok got it to work with the curl command .... kind of:
curl -v -X POST "http://<IP_ADDRESS>:8080/MMM-HomeAutomationNotifications?type=WARNING&message=Front%20door%unlocked"
notice the quotation marks in the command. Only point now ist that teh message is shown without the spaces but like this:

Front%20door%unlocked

Will try to get it to work with openhab now.

Your second % needs to be %20.

Yep that was ist ... now the message is shown correctly! Thx for your help and keep up the good work!


Remove 'generating slim build' from deploy output

Now that --slim is the default, it's a little strange to print out 'generating slim build' when you deploy. It seems like we should just print 'deploying full projectif the--full` flag is provided.
Here is what it looks like now:
➜  ambient-attx4 git:(master) ✗ t2 run examples/ambient.js
INFO Looking for your Tessel...
INFO Connected to Frank over USB
INFO Generating slim build.
INFO Writing project to RAM on Frank (24.064 kB)...
INFO Deployed.
INFO Running bundled project...

Resolved https://github.com/tessel/t2-cli/commit/c7e7c2e0dce8c50ec0f40ff325611862ec419f40


python.pkgs.pytest-fixture-config: disable tests

Motivation for this change
Tests seem to fail on all recent versions even outside of our build
system. The upstream CI tests seem to somehow succeed but I wasn't able
to reproduce that locally. For not it is probably best to disable them.
/cc @dotlambda, @FRidh (re: https://github.com/NixOS/nixpkgs/pull/45792#issuecomment-417417604 ), ZHF #45960 (should be pickable as is)
Things done

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

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[X] Fits CONTRIBUTING.md.

Let's try bumping to 1.3.1 first: https://github.com/manahl/pytest-plugins/releases
(it's not yet on pypi).

Let's try bumping to 1.3.1 first

Forget it, I tried, same test failure.

Also 1.3.1 wasn't on pypi yesterday the repo is just on that version for
development IIRC.
On Tue, 4 Sep 2018, 12:02 xeji<EMAIL_ADDRESS>wrote:

Let's try bumping to 1.3.1 first
Forget it, I tried, same test failure.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/pull/46021#issuecomment-418311541, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAm_dEScQ6q43bH-d_Ercv0pR-nZ0xDbks5uXk-wgaJpZM4WYHiM
.

backported in 2c844ce13a1


[AutoRelease] t2-extendedlocation-2022-06-21-19795(Do not merge)

https://github.com/Azure/sdk-release-request/issues/2930
Live test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=2486

issue link:https://github.com/Azure/sdk-release-request/issues/2930


Add Support for Daphne

Please add Daphne support when you have some time.  The default file extension is .daphne
https://github.com/retropie/retropie-setup/wiki/Daphne
I can connect the files to TGDB when added.

According to the wiki page it looks like .daphne is a folder with things in it? Am I reading that correctly? It also looks like it also uses a strict naming scheme like dle21 is a key that tells daphne what game it is. If that is true this seems similar to scummvm and might require some special tooling.

Yep you got it. I think the main daphne page has more info on it as the .daphne folder was just a filename we chose for implementing it with RetroPie and emulationstation.
This page I think has all the games and filenames: http://www.daphne-emu.com/mediawiki/index.php/CmdLine

Thanks. So what I'll probably do is what I did for scummvm. The "key" will be dle21.daphne instead of a hash and I'll use that to match to thegamesdb. I'll play around with adding this.

@sselph Let me know if you need help with one of them to get it going.  After we have one I can do the rest from there for TGDB to CSV.

I can setup a workspace for this. @HerbFargus at http://www.daphne-emu.com/mediawiki/index.php/CmdLine there are entries like lair2_* is that * a wildcard or a literal *?

That's  good question. I haven't the slightest, seems three of them have asterisks but I don't know what they mean

Okay, If I had to guess it would be a wildcard but like mentioned, it is only 3 so not that big of a deal. I might need to add some code to handle those but will create a workspace for the non-wildcard tomorrow.

I will start building the TGDB titles, if they do not exist currently.  Most I would assume exist currently.

@sselph Here you go!  All of the Daphne titles are now entered into TGDB.  Here is a CSV mapping TGDB to the folder names from the above workspace mentioned above.
https://drive.google.com/open?id=1v1RrTyWejhBpO8UOBWhiILTHUfQyh9tZe_s7IEg4Kqc

Sorry for the delay, I was playing around with trying to import my code in to EmulationStation. I've added these so hopefully daphne works.

I added two additional folders to the above list.  Galaxy Ranger and Road Blaster both did not match the folder names generated for me which were created by Daphne.  Please add galaxyr and rb from the below file.  The other folder names still should remain as options in case others are using them.
https://drive.google.com/open?id=1VQU3GsqHoZVNELzggQiqclTMt-VWC0e3GceaDKBobpo
..............hopefully that all makes sense.

Added them anyway.

Looks great, thank you for doing all that you did!
Closing and marking as complete!


Reauthenticate request immediately after authenticating

I keep getting a request to reauthenticate just after authenticating. It has happened for about 3-4 weeks now. It seems to stay configured for minutes to hours, then I have to do it again, go thru the text process etc.. It started after updating to the latest (which was a major rev bump, I do know that).
This is what I could find in logs, not sure if it means anything?
2022-06-25 11:14:50 WARNING (MainThread) [alexapy.alexawebsocket] mac_dms not detected; websocket likely won't connect
2022-06-25 11:14:50 WARNING (MainThread) [alexapy.helpers] alexaapi.get_devices((<alexapy.alexalogin.AlexaLogin object at 0x7f2a1a2423a0>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
('Login error detected; not contacting API',)
2022-06-25 11:14:50 WARNING (MainThread) [alexapy.helpers] alexaapi.get_bluetooth((<alexapy.alexalogin.AlexaLogin object at 0x7f2a1a2423a0>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
('Login error detected; not contacting API',)
2022-06-25 11:14:50 WARNING (MainThread) [alexapy.helpers] alexaapi.get_device_preferences((<alexapy.alexalogin.AlexaLogin object at 0x7f2a1a2423a0>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
('Login error detected; not contacting API',)
2022-06-25 11:14:50 WARNING (MainThread) [alexapy.helpers] alexaapi.get_dnd_state((<alexapy.alexalogin.AlexaLogin object at 0x7f2a1a2423a0>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
('Login error detected; not contacting API',)
2022-06-25 11:14:50 WARNING (MainThread) [alexapy.helpers] alexaapi.get_authentication((<alexapy.alexalogin.AlexaLogin object at 0x7f2a1a2423a0>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
('Login error detected; not contacting API',)
2022-06-25 11:14:50 WARNING (MainThread) [alexapy.helpers] alexaapi.get_guard_details((<alexapy.alexalogin.AlexaLogin object at 0x7f2a1a2423a0>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
('Login error detected; not contacting API',)
2022-06-25 11:14:50 WARNING (MainThread) [alexapy.helpers] alexaapi.get_network_details((<alexapy.alexalogin.AlexaLogin object at 0x7f2a1a2423a0>,), {}): An error occured accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments:
('Login error detected; not contacting API',)
2022-06-25 11:14:50 WARNING (MainThread) [alexapy.helpers] alexalogin.login((<alexapy.alexalogin.AlexaLogin object at 0x7f2a1a2423a0>,), {'cookies': {'at-main': <Morsel: at-main=Atza|IwEBIBOcAZQe_cHreYBRZCPUTyEuqPqxrmujuOEFdlpDhgt2VSpDcYE0cwBrncTg4f6MT9MVOzZtRIuG27Z5QfD0Y1s7Ha2DNTzCBLDdWJbNmz-uz7SEQkqO_ZucXQiqd5OLJagt2LE3BgcIkn3LA-5UH1U9HSKxq43r2QOV-Wwz27JK47jPe6uL3iseq59tusd5FiLX_waxCFHKaQmm-sYQF4F1Xawro3hu52bAeKD9h-vtis-qe5scF2e0AzpfjWRPt7esQWyya7zV6mHWLAXhWLuQp2vuSfEUOtnrDQW0e3-ZukbQpdoYF6eHMuTExiERfh-2-dxeYwakPUxx7FVso-0NYpPbjr0Qohzl68N6-ysQaUnnzriQnisLUBTi1mW0aIU; Path=/>, 'lc-main': <Morsel: lc-main=en_US; Path=/>, 'sess-at-main': <Morsel: sess-at-main="SZDW4J45WcNJL/Ot0vKkLVXkXDAckZKDxaeZabLL97c="; Path=/>, 'session-id': <Morsel: session-id=134-1368101-4951402; Path=/>, 'session-id-time': <Morsel: session-id-time=2286892699l; Path=/>, 'session-token': <Morsel: session-token=SIq2zoAvAeNNMVrYJ01OfzXzcbNUpCFcQ0bdhrMTv3Tbnmh5k+urGTyq6tR+VBLkhR614V9LmMksE1jEO82GUD5zqwj6B4A34RbFjQIBYNA6QBP6B8Evbs8QBaGEzu/tH5xivo5T25bQR3Ew3bp3+PE2d1lweCPoJ3v02+NP/wtU+K76MesgKY0eLxwq+pIULznwV8FNJ/e3at9Gz4UfqglHiq4Wln7C; Path=/>, 'sid': <Morsel: sid=""K4gh1UXjTivEmLNc9Zz8ww==|jOWw9bhEDlHbT92+qvhG4FLzMTe0r7K1geXGDT+6FhQ=""; Path=/>, 'ubid-main': <Morsel: ubid-main=132-1494122-0047951; Path=/>, 'x-main': <Morsel: x-main="2FNY0JEYghF3kFV43V9GWIBM@rNwq4YZ"; Path=/>, 'csrf': <Morsel: csrf=1279526725; Path=/>}}): A connection error occured: An exception of type ClientConnectionError occurred. Arguments:
('Connector is closed.',)
2022-06-25 11:14:50 WARNING (MainThread) [homeassistant.config_entries] Config entry<EMAIL_ADDRESS>- amazon.com' for alexa_media integration not ready yet: Connection Error during login; Retrying in background

Please use the template and provide logs showing the initial login and forced relogin.

The same annoying Alexa authentication request.
I have been experiencing also this situation for quite some time. Sometimes the reauthentication request can be removed, but often fails and more requests are received. There are always two requests after launching Core.
Please look at the problem, the authentication request always comes through the NabuCasa link.

Please use the template and provide logs showing the initial login and forced relogin.

Okay sorry. I will later when I get a chance.

The same annoying Alexa authentication request. I have been experiencing also this situation for quite some time. Sometimes the reauthentication request can be removed, but often fails and more requests are received. There are always two requests after launching Core. Please look at the problem, the authentication request always comes through the NabuCasa link.  Home Assistant Core: 2022.6.7 Installation: HomeassistanOS 8.2 on RPi4.

This is exactly it. I get 2 reauthorization things every time. I just tried completely removing Alexa media this morning. I will check it again once I reinstall it.

The screenshot shows that two accounts have been setup. If you only need one account, remove everything and start from scratch. Obviously if you've managed to install more than one account with the same credentials, you will force yourself to log out as Amazon won't support two logins with the same account/domain and each will kick the other out.
Without logs, I can't tell what's going on.

Closing until logs are provided since it appears you may have had two duplicate accounts. Please reopen once you have it.


[WIP] The big rewrite

Summary
This is a rewrite of the JSONAPI.NET to improve compatibility with the 1.0 spec and to give API authors greater control over what goes into a response document, as well as greater access to information from the request document. This organization of the codebase is now vastly improved, with many smaller files (RIP the monolithic media type formatter). The library now fully embraces dependency injection, allowing API authors to provide their own handlers for pretty much any component in the system.
Rationale
When JSONAPI.NET was first created, the JSON API spec looked very different from how it does today. Polymorphism wasn't really well defined, nor were things like pagination and sorting. It was possible to define resource "linkage" without including the linked resources in the compound document. It was possible to query resources using multiple comma-separated ids. Attributes were found directly on the resource object root, instead of inside an attributes object. As a result of the changes that led to JSON API 1.0, some of the fundamental assumptions in JSONAPI.NET started to get in the way, and I felt that in order to move forward, we would have to break with the past.
Documents
One of the largest frustrations writing an API that uses JSONAPI.NET has been the lack of control over the response, as well as restricted access to data being sent in a PATCH or POST request. The problem is that JsonApiFormatter has been doing too much. Currently, it needs to know about all your registered types, and it determines how to serialize/deserialize them. This has the following consequences:

Every resource type has to be known at registration time (app start-up). It is not possible to create temporary resource types later or decide what fields to serialize in a response at run-time.
It is impossible to override the rules for (de)serializing a particular field.
There is no access to metadata at all. At one point we were going to inject the MetadataManager into controllers, but this would have been a hacky and brittle solution.
It is difficult to include related resources. Until this PR, this library's support for compound documents has been very poor.

My solution to these problems has been to introduce an intermediate data structure, called the Document, which is analogous to the JSON API document. There are three types of Document that JsonApiFormatter knows how to serialize or deserialize: ISingleResourceDocument, IResourceCollectionDocument, and IErrorDocument. It is now the controller action's responsibility to build these documents.
JsonApiController and IDocumentMaterializer
The generic ApiController<T> has been renamed to JsonApiController<T>, and the EntityFramework-specific ApiController<T, TDbContext> has been removed. JsonApiController defines the same actions it did before, but now it is no longer necessary to override those actions to provide your own functionality. These action methods now all delegate to methods on a new interface called IDocumentMaterializer<T>, which is the new main point of extensibility in JSONAPI.NET.
Your implementation of IDocumentMaterializer<T> is responsible for building document instances that the controller actions will return to the JsonApiFormatter. If you are using Entity Framework, there is an EntityFrameworkDocumentMaterializer<T> that should work for many use-cases. If you aren't using EF, or you need more control, you can write your own IDocumentMaterializer<T> implementation. SingleResourceDocumentBuilder, ResourceCollectionDocumentBuilder, and DefaultQueryableResourceCollectionDocumentBuilder are tools that can help you build your own document based on a registered POCO object.
Of course, you don't have to use JsonApiController if you don't want to. As long as your controller actions return ISingleResourceDocument, IResourceCollectionDocument, or IErrorDocument, then JsonApiFormatter can work with it. For POST and PATCH, your actions will have to take a parameter of ISingleResourceDocument or IResourceCollectionDocument.

Note: It is possible to return a POCO from an action like before, but this will not give you the ability to send metadata or to perform side-loading.

Configuration and Dependency injection
Previously, JSONAPI.NET has shied away from using ASP.NET Web API's DI system to supply controller constructor parameters, because we didn't want to step on the user's toes as they may have configured their own IDependencyResolver. Since the changes in this PR require services to be injected into controllers via the constructor, it's no longer possible to avoid DI inside this library. Therefore, JSONAPI.NET will start including integration packages for the most popular DI frameworks. My own project uses Autofac, so that is the first framework I have added support for. An example setup for configuring JSONAPI.NET with Autofac is in the JSONAPI.TodoMVC.API project. I am happy to accept pull requests that add support for other DI frameworks.
Registry Naming conventions
IModelManager still exists, in modified form. First off, it has been renamed to IResourceTypeRegistry. Second, the default implementation, ResourceTypeRegistry no longer concerns itself with how to name resource types and fields, but rather delegates to an INamingConventions service to do this. DefaultNamingConventions will dasherize all property names, unless those properties have a JsonProperty attribute. If you prefer camel-cased field names or something else, you can now provide your own INamingConventions.
Link templates
You can still specify link templates for relationship properties, but now there are two kinds: relationship links, and related resource links. You can now specify an ILinkConventions which decides how to format these URLs. The default implementation follows the JSON API recommendations for formatting relationship and related resource URLs.
SerializeAsAttribute
It's gone. Deciding what links or related resources to include for a particular resource's relationship is now a concern of document builders, not something to be set at compile-time by decorating properties with attributes.
Action filters
JsonApiQueryableAttribute is gone, because action filters are not meant to return IQueryable<T> anymore. Its functionality has been moved to DefaultQueryableResourceCollectionDocumentBuilder.
There are two new action filters, FallbackDocumentBuilderAttribute is responsible for the functionality that allows controller actions to return POCOs, and also ensures that the correct HTTP status code is set for error documents. JsonApiExceptionFilterAttribute catches exceptions and converts them to IErrorDocument. JsonApiHttpConfiguration will make sure that both these action filters are registered globally, along with the JsonApiFormatter
Still to do

[ ] Implement relationship actions (related resource actions already work)
[ ] Make sure there is an easy way to specify related resources when using default services.
[ ] DefaultQueryableResourceCollectionDocumentBuilder needs to send pagination links.
[ ] Ensure that BaseUrlService works with endpoints that have a path root. Such as /api/todos instead of just /todos
[ ] Update README

Anyway I can help?

@joelkallman Probably the best thing you could do would be to try out this branch in your application and see where the pain points are. Thanks!

I wanted to use this PR in my project to check if it worked. But I got lost at how to register all my model types, what I'd done:

In my webConfig I implemented this

ResourceTypeRegistrar registrar = new ResourceTypeRegistrar(new DefaultNamingConventions(new PluralizationService(pluralizationLib)));
var apiConfig = new JsonApiConfiguration(registrar);
apiConfig.RegisterResourceType<Models.Session>();

var containerBuilder = new ContainerBuilder();
containerBuilder.RegisterApiControllers(Assembly.GetExecutingAssembly());

var container = containerBuilder.Build();

apiConfig.SetupHttpConfigurationUsingAutofac(config, container);

where config is HTTPConfiguration

In my ApiController I have a Post-method which is something like:

public IJsonApiDocument Post(Session session) {
   if(ok) {
      return SingleResourceDocument(session)
   } else {
      return ErrorDocument(errorArray, null);
   }
}

Do I need to extend IResourceObject in my Session model so JSONAPI recognizes the session like:
public class Session : IResourceObject {
   // class properties
}

Because I get an error something like: Session type cannot be deserialized.
So I have no idea how I can return my Session model as a SingleResourceDocument.

@GlennGeelen  So, first I must apologize for the state of this PR. We've been furiously trying to get our product out the door and until we finish I can only contribute to JSONAPI.NET that which directly impacts our launch.
Secondly, after using the PR for a few weeks, I'm rather unhappy with the configuration and registration story. There is still far too much boilerplate required of the API developer, and writing document materializers is a real pain. I have some ideas for changes that will improve the situation, but I don't know when I'll have time to get to them.
As to solving your problem given the current state of the branch, if you look at the samples in JSONAPI.AcceptanceTests.EntityFrameworkTestWebApp, you'll see the way you're meant to set things up. I've gone with a single controller approach: all you have to do is create one controller called MainController that extends JsonApiController. That controller declares all the action methods you will need to serve up JSON API responses. The idea is that instead of writing your own action methods to return documents, you define document materializers and register them at configuration time. Startup.cs in the above-mentioned project has some good examples of how to do this, though like I said, the configuration system sucks, and as your experience makes clear, is not at all intuitive.
I should note that if you do want to use controllers with action methods, you can still do this. You can use an ISingleResourceDocumentBuilder, IResourceCollectionDocumentBuilder, or IQueryableResourceCollectionDocumentBuilder to prepare the intermediate document. Also, your action parameters for a POST or PATCH action must be of type ISingleResourceDocument, since that's all the JsonApiFormatter knows how to deserialize. If you want to convert the intermediate ISingleResourceDocument to a Session, then you need to do that yourself for now... This is one of the problem points with the current redesign.

Ok, thanks @csantero for the examples and further explanation.


Project refactoring / rename

Renames project to aiosnow

Codecov Report

Merging #80 into master will increase coverage by 0.12%.
The diff coverage is 89.47%.

@@            Coverage Diff             @@
##           master      #80      +/-   ##
==========================================
+ Coverage   63.02%   63.15%   +0.12%
==========================================
  Files          44       45       +1
  Lines        1117     1110       -7
==========================================
- Hits          704      701       -3
+ Misses        413      409       -4

Impacted Files
Coverage Δ

aiosnow/consts.py
100.00% <ø> (ø)

aiosnow/model/__init__.py
100.00% <ø> (ø)

aiosnow/model/schema/__init__.py
100.00% <ø> (ø)

aiosnow/model/schema/fields/__init__.py
100.00% <ø> (ø)

aiosnow/model/schema/fields/choice.py
100.00% <ø> (ø)

aiosnow/model/schema/fields/mapped.py
65.00% <ø> (ø)

aiosnow/model/schema/fields/utils.py
50.00% <ø> (ø)

aiosnow/model/schema/helpers/__init__.py
100.00% <ø> (ø)

aiosnow/model/schema/helpers/pluck.py
100.00% <ø> (ø)

aiosnow/model/schema/partial.py
100.00% <ø> (ø)

... and 36 more

Continue to review full report at Codecov.

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


Automatically activate traffic shaping in Calico

Expected Behavior

Since Calico v3.8 the bandwidth plugin is automatically packaged into the installation step of calico but not activated. I wanted to suggest to automatically activate the bandwidth plugin for the default installation. This means adding:
        {
          "type": "bandwidth",
          "capabilities": {"bandwidth": true}
        }

to the cni config. From my perspective there are no drawbacks but a better user experience (because as  User I don't need to activate it manually). One could argue that now the CNI chain now takes a little bit longer which can be ignored from my perspective (since it will only be called if a Pod/Container is created).
I think one main pain point is that the user doesn't know if the bandwidth limitation actually took place until he tested it.
Current Behavior

Currently I need to modify the CNI config in the Manifests files before deploying Calico or adjust it afterwards and restart all Calico nodes/pods. I also add some docs here on how to enable "traffic shaping": https://github.com/projectcalico/calico/pull/2787
Possible Solution

Add the following snippet to the CNI config :)
        {
          "type": "bandwidth",
          "capabilities": {"bandwidth": true}
        }

Steps to Reproduce (for bugs)

Context

Your Environment

Calico version: 3;8
Orchestrator version (e.g. kubernetes, mesos, rkt): kubernetes
Operating System and version: Ubuntu 18.04
Link to your project (optional):

This would be great.


Utils port to 3.4 keeping py2 compatibility

Fixed byte string formatting for hexdump.
= test session starts =
platform darwin -- Python 3.4.1, pytest-2.8.2, py-1.4.30, pluggy-0.3.1
rootdir: /Users/samc/src/python/netlib, inifile:
collected 11 items
netlib/test/test_utils.py ...........
= 11 passed in 0.23 seconds =

Good stuff, thanks. Once my comment above is resolved, this is ready to merge :-)

Thanks! Sorry for not getting back earlier, but you don't get a GitHub notification if new commits are pushed to a PR. Please feel free to add a quick comment next time. :smiley: