Support for Specification Extensions in OpenApi Objects

Following Objects supports Specification Extensions which are used by some tools.

OpenAPI
Info
Contact
License
Server
ServerVariable
Paths
PathItem
OperationObject
ExternalDocumentation
StyleExamples
RequestBody
MediaType
Encoding
Responses
Response
Callback
Example
Link
Tag
Schema
XML
Security Scheme
OAUTH Flows
OAUTH Flow
SecurityRequirement

I will be able to add this support and send in a pull request if you are interested

We would be interested in extensions too, mainly x-additionalpropertiesname.

Have implemented extension support for few OpenApi objects. Kindly let me know if this approach is fine, in that case I will be complete it for rest of the object and send in a PR.
Implementation ToJSON & FromJSON instance for Schema seems to have mismatch.
In ToJSON, it is mentioned as a SubObject of items
https://github.com/biocad/openapi3/blob/master/src/Data/OpenApi/Internal.hs#L1261
Whereas in FromJSON, it is SubObject of paramSchema
https://github.com/biocad/openapi3/blob/master/src/Data/OpenApi/Internal.hs#L1398
https://github.com/biocad/openapi3/blob/master/src/Data/OpenApi/Internal.hs#L1527
Is this not a bug?
@BrechtSerckx Because of the above mentioned doubt, I was not able to add extension field for Schema Object. Once that is cleared, I will be able to add the support for the extension you have mentioned.

Hi! Thank you for this work! I will take a look in a couple of days and tell you what I think. Sorry for the delay!

Hey! Love the feature. This is precisely how I would have gone about implementing extensions, would love to see a pull request for this

Hi @Hazelfire,
I'm yet to add extension for few Objects like Schema, Responses, Callback, XML, OAUTH Flow.
Problem mainly is these object already have sub-object.
There are two ways we can handle this issue.

Change _saoSubObject in  SwaggerAesonOptions to List to support multiple subobjects.
Write custom the FromJSON & ToJSON instance like below

 instance FromJSON Responses where
   parseJSON (Object o) = Responses
     <$> o .:? "default"
-    <*> parseJSON (Object (HashMap.delete "default" o))
+    <*> parseJSON (Object (HashMap.filterWithKey (\k _ -> not $ isExt k)
+                            $ HashMap.delete "default" o))
+    <*> case HashMap.filterWithKey (\k _ -> isExt k) o of
+          exts | HashMap.null exts -> pure (SpecificationExtensions mempty)
+               | otherwise -> parseJSON (Object exts)

@maksbotan  @Hazelfire Any thoughts on this?

I would find this extremely useful - did you decide on an approach?

I would find this extremely useful

Yeah, me too! Any movement on the topic?

I'd especially appreciate the support for tags. In my previous project, we added tags to our endpoints using lenses, but we had a Swagger 2.0 API that was generated by another library. I don't know how to add tags to my OpenAPI 3.0 specs and I haven't found enough documentation for this and I've asked numerous people at different events and chatrooms about it.


Aug-15 Cumulative Updates

In this PR:

graph cleanup
add SLURM support in param-*
add bsg_manycore commit to end of test-name so we can run different versions in parallel

@yodada what's the story with this pr? it looks like a big one.

so shall we merge?


Core dump on ARMv7 when run by mdbook

I'm trying to serve an mdbook from a Raspberry Pi 4 (B) with Arch Linux ARM installed and the process exits because it can't run mdbook-katex:
$ mdbook serve [...]
2021-07-13 10:24:45 [INFO] (mdbook::book): Book building has started
2021-07-13 10:24:45 [ERROR] (mdbook::utils): Error: The "katex" preprocessor exited unsuccessfully with signal: 11 (core dumped) status

Running mdbook-katex --version is fine, however. I don't have any other information about what could be going on. It's worth noting that this doesn't happen with other preprocessors I'm using, e.g. mdbook-toc.
Steps to reproduce:

Install mdbook
Install mdbook-katex either using cargo or cross-compiling for target armv7-unknown-linux-gnueabihf
Run mdbook

The problem seems to be in quickjs. mdbook-katex uses the katex dependency which in turn uses quickjs as a backend.
This problem only seems to be reproducible on MacBooks, I did not look into the reason as to why, however the debugger points to  an empty stack frame in C code when the program tries to initialise the KATEX global variable in katex-rs.
Reproducing
If on a MacBook, you can reproduce this issue by cloning mdbook-katex and running cargo test.  The following tests will fail with a SIGSEGV invalid memory reference.

test_macros_without_argument
test_macros_with_argument
test_display_rendering

Quick Fix (locally)
The quick fix will involve using a different backend to the default quickjs one in katex-rs.

Clone mdbook-katex
The Cargo.toml file will have a katex dependency. Replace it with: katex = { version = "0.4.1", default-features = false, features = ["duktape"] }
run cargo install --path .

The second step turns off the default features which is quickjs and in turn compiles with duktape. The third line will overwrite the mdboook-katex binary with the modified version.
Note
The output from quickjs and duktape differ slightly and so you will still have a failing test test_display_rendering. It is okay to ignore this, semantically the output is the same.
Possible Solution
This seems to be a problem with katex-rs and not mdbook-katex.  A solution for this crate would be to use the duktape backend by default since it works on MacOS and I am assuming on Linux and Window.
Alternatively, you could enable quickjs by default and feature gate duktape for MacOS

Is this problem still there? I don't have a Raspberry Pi to test it.

这也可以用于修复 Android 上的 Termux 无法 cargo install mdbook-katex 的错误。

Does this problem still exist? Where? Is it on all ARM platforms?
I think we just need to specify the features for the katex crate correctly.

Using duktape is not a good solution because it cannot render some expressions.
It should only be used to mitigate the build failures on specific platforms.
It seems that both Linux ARM and Android have this problem from your reports. I can confirm neither of these because I don't have these devices.
Please post your platform information so I can make the change accordingly.

我不确定如何才能完整的描述我的平台信息，希望可以有用。
···
~ $ uname -a
Linux localhost 4.14.117-perf-g66aed98 #1 SMP PREEMPT Wed Dec 9 16:54:14 CST 2020 aarch64 Android
···
android version: 10
64-bit ABI: arm64-v8a
32-bit ABI: armeabi-v7a, armeabi

Quickjs does not support Linux on ARM, then.

I will change the build to use duktype on Linux ARM as I did with Windows.
However, duktype does not support all ECMAScript 2020 so some expressions would not be rendered correctly.
To deal with this, would a WASM build be helpful?

Would it build for you on the latest release, @hwf1324?

Would it build for you on the latest release, @hwf1324?

是的，我从 crates.io 重新安装。
目前在我的设备上以可以成功构建。

That's great. Then, I assume this is completed.
For future references, the corresponding commit is move tests to folder;complicate when to use duktape.


⚠ Bofrost.lu has degraded performance

In 74a1ed9, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1940 ms

Resolved: Bofrost.lu performance has improved in 5f65dd5 after 6 minutes.


Allow rendering one block only

Allow rendering one block only example Images, or just todo, list. etc
I tried to render this image but I can't render it
"cover": [
{
"name": "app.png",
"url": "https://www.notion.so/image/https:%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F7639505d-c659-4564-9dae-0bfd6cd92172%2Fapp.png?table=block&id=69c96a40-c579-466b-afe9-1ca7e2421cb9&cache=v2",
"rawUrl": "https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7639505d-c659-4564-9dae-0bfd6cd92172/app.png"
}
],

      <img
        v-if="article.cover && article.cover.length > 0"
        :alt="article.cover[0].name"
        class="object-cover md:w-1/3 border border-green-500 md:mr-5"
        :src="article.cover[0].url"
      />

How this library render images without the notion cookie?

Hi @yacosta738
Sorry I don't quite understand your statement. Is there any issue with the Image Block?

Sorry the Image block fail when the page is private in notion.

You could close the issue.


added --sslCA(mongo client) parameter equivalent for MongoKitten

The --sslCA (trust root certificate) is required to connect to AWS DocumentDB.
Description
Added an option to provide a path to root certificate as part of SSL setting.

@Joannis I have added ExpressibleByBooleanLiteral, and also var useSSL: Bool on the enum.  that reduced the amount of changes a bit.

I need to set up a test locally still, I can do so tomorrow and then tag it.


Windows Subsystem for Linux update setup wizard ended prematurely

Windows Build Number
Microsoft windows version 10.0.19042.928
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
No response
Distro Version
No response
Other Software
Docker version 20.10.6, build 370c289
visual studio code - 1.55.2
Repro Steps
install the docker Desktop and try to install wsl2 by downloading it .
Expected Behavior
Docker should able to run Linux containers
Actual Behavior
I have installed docker VScode now i need my cloud windows VM to run docker container on windows(10) environment. But while switching to Linux container I am getting error while installing WSL2. If we download the WSL2 from https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi and this is getting downloaded but while installing I am getting the error windows subsystem for Linux update setup wizard ended prematurely.
I have enabled these features
Microsoft-Windows-Subsystem-Linux
VirtualMachinePlatform
And also I have verified the C:\Windows\System32\lxss\tools kernel file in this folder.
Please give a solution for this issue
Diagnostic Logs
No response

me too

Please install the latest WSL version and retry this scenario. Thank you for the feedback!


Simplify build number example

Since GitHub workflow provides API to pass output variables between different jobs, there is no need to use artifacts and complicate workflows
We in https://github.com/intellij-rust/intellij-rust start using workflow with job outputs in https://github.com/intellij-rust/intellij-rust/pull/5330

Thanks 🙂. The job outputs API wasn't available at the time I made this action. However, I do consider this project to be deprecated now, since I think people are much better off using $GITHUB_RUN_NUMBER for their build number since that became available.

@einaregilsson I know at least two cases that $GITHUB_RUN_NUMBER doesn't cover:

Initial value. Of course, you may use something like $GITHUB_RUN_NUMBER + 1000 but it's not very convenient
Shared number for different workflows

Ok, good point. Well, the action will be here for those that still want to use it. I've switched to $GITHUB_RUN_NUMBER+ an offset for all my own projects :)


Pass in affiliation as gnosis safe creation param

Changes:

pass in affiliate and fingerprint to create gnosis safe
added fingerprint to gnosis safe creation.
added fingerprint (you need to yarn to get update)

@bthaile seeing the below when trying to create safes -- you see the same?

exception: "ValueError: {'code': -32016, 'message': 'The execution failed due to an exception.', 'data': 'Reverted'}"

I didnt see that. I can try again, I’ll update with newest master.

@andrewdamelio  Two items of interest:

found an issue where fingerprint wasn't passed in all the places safe address is generated. Good find
I think you are having the same addresses issue I had, where old kovan addresses were stuck in mem. I ended up yarn clean && yarn && yarn build to clear up that issue.

give that a try and test safe creation.


error while building a windows desktop app :  MSBUILD error MSB1009 project file does not exist

hi,
I tried to build the vanilla sample app got from flutter create for windows desktop, but I hit the error in the title.
System info

windows 10 pro build
visual studio 2019 with desktop development C++ workload
MSVC v142, v141, and v140 all installed
Windows 10 SDK (10.0.17134.0) installed

flutter doctor -v
[√] Flutter (Channel master, v1.6.8-pre.31, on Microsoft Windows [Version 10.0.17134.799], locale en-US)
    • Flutter version 1.6.8-pre.31 at C:\flutter
    • Framework revision 31318b0ebf (16 hours ago), 2019-06-01 15:49:19 -0700
    • Engine revision a4b7d1c289
    • Dart version 2.3.2 (build 2.3.2-dev.0.0 224f82c21c)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at C:\android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = C:\android\sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[√] Android Studio (version 3.4)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 35.3.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[√] VS Code, 64-bit edition (version 1.34.0)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.1.0

[√] Connected device (1 available)
    • Windows • Windows • windows-x64 • Microsoft Windows [Version 10.0.17134.799]

• No issues found!

flutter build windows -v
[  +24 ms] executing: [C:\flutter\] git log -n 1 --pretty=format:%H
[ +125 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[   +3 ms] 31318b0ebf139e04a058bcb28db1339553429031
[        ] executing: [C:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[ +108 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[        ] v1.6.7-31-g31318b0eb
[   +9 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[  +97 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [C:\flutter\] git ls-remote --get-url origin
[  +89 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +116 ms] executing: [C:\flutter\] git rev-parse --abbrev-ref HEAD
[  +82 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[  +54 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +140 ms] Building Windows application...
[ +179 ms] **********************************************************************
[        ] ** Visual Studio 2019 Developer Command Prompt v16.1.1
[        ] ** Copyright (c) 2019 Microsoft Corporation
[        ] **********************************************************************
[+3789 ms] [vcvarsall.bat] Environment initialized for: 'x64'
[ +116 ms] Microsoft (R) Build Engine version 16.1.76+g14b0a930a7 for .NET Framework
[        ] Copyright (C) Microsoft Corporation. All rights reserved.
[        ] MSBUILD : error MSB1009: Project file does not exist.
[        ] Switch: Runner.sln
[  +12 ms] Building Windows application... (completed in 4.1s)
[   +2 ms] "flutter windows" took 4,304ms.
[        ] "flutter windows" took 4,304ms.
Build process failed

#0      throwToolExit (package:flutter_tools/src/base/common.dart:24:3)
#1      buildWindows (package:flutter_tools/src/windows/build_windows.dart:77:5)
<asynchronous suspension>
#2      BuildWindowsCommand.runCommand (package:flutter_tools/src/commands/build_windows.dart:62:11)
<asynchronous suspension>
#3      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:488:18)
#4      _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:77:64)
#5      _rootRunUnary (dart:async/zone.dart:1132:38)
#6      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#7      _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#8      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#9      Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#10     Future._complete (dart:async/future_impl.dart:473:7)
#11     _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#12     _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async-patch/async_patch.dart:33:20)
#13     _rootRun (dart:async/zone.dart:1124:13)
#14     _CustomZone.run (dart:async/zone.dart:1021:19)
#15     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#16     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#17     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#18     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:115:13)
#19     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:5)

There's no support for desktop in flutter create yet; see https://github.com/flutter/flutter/wiki/Desktop-shells#using-the-shells
#30704 tracks this for Windows.


Export Select Output Dialog Dark Theme Visibility Issues

Part of the functionality of the Coordinate Conversion pane is the ability to export. After you click export, you get the Select Output dialog.
-[ ] Select Output dialog has white text on a white back ground, so you cannot tell which option you have selected with the radio button.

(currently looks like this)

While some one is messing with this dialog there is one other issue with this dialog, however i would say it's "time permitting" and you would decide how much time it will take, as #369  is a bigger deal. If taking the time to fix the overall look of the dialog is too risky, it can be added to (insert issue).

[ ] Select Output dialog does not match dark theme dialogs from core. Dark theme dialogs use a dark background, Select Fields does not.

Also addressed in #372 - should look like this after merge:

@csmoore that is exactly how the dialog looks.... however I am unable to export the points due to the error below... i am gonna continue testing to try to get the reproduction steps and I will make another issue...


Decimal numbers not displayed

Whenever I try to display numbers somewhere between 0 (0.002, 0.02, 0.2, ...) and 1, the tool rounds the numbers to either 0 or 1. Is there a way to not let it do that?

You can use the labelFormatting function
color.labelFormat(d3.format)
Takes a d3.format and applies that styling to the legend labels. Default is set to d3.format(".01f").
You can pass it any custom function to deal with the values.


[SD-403] Map search banner component build

Issue: https://digital-vic.atlassian.net/browse/SD-403
What I did

Component build in ripple-tide-landing-page so that it can be inserted as a header comp TideLandingPageMapSearchBanner
I mocked in some props, these might need to change

{
    "uuid": "27b0781b-2533-40ba-a9da-28fefc41d83e",
    "component": "TideLandingPageMapSearchBanner",
    "id": "3434418",
    "props": {
        "title": "Search heading",
        "intro": "Introduction text",
        "searchPlaceholder": "Search for a centre",
        "image": "/placeholders/mapbg.png"
    }
}

The component itself has a slot for rendering the search input

How to test

Cypress test to demonstrate desktop and mobile builds

Checklist

For all PR's

[ ] I've added relevant changes to the project Readme if needed
[ ] I've updated the documentation site as needed
[ ] I have added tests to cover my changes (if not applicable, please state why in a comment)

For new UI components only

[ ] I have added a storybook story covering all variants
[ ] I have checked a11y tab in storybook passes
[ ] I have added cypress component tests (if the component is interactive)
[ ] Any events are emitted on the event bus using emitRplEvent

Closing in favour of https://github.com/dpc-sdp/ripple-framework/pull/1388


NTR: L-lysine:L-arginine antiporter activity

Please provide as much information as you can:

Suggested term label:
L-lysine:L-arginine antiporter activity

Definition (free text)
Enables the transfer of a solute or solutes from one side of a membrane to the other according to the reaction: L-lysine(out) + L-arginine(in) = L-lysine(in) + L-arginine(out).

**Reference, in format PMID:10903140 (fig 6A)

Gene product name and ID to be annotated to this term

Parent term(s)
solute:cation antiporter activity

Children terms (if applicable) Should any existing terms that should be moved underneath this new proposed term?

Synonyms (please specify, EXACT, BROAD, NARROW or RELATED)

Cross-references

For enzymes, please provide RHEA and/or EC numbers.

Can also provide MetaCyc, KEGG, Wikipedia, and other links.

Any other information

+[Term]
+id: GO:0106439
+name: L-lysine:L-arginine antiporter activity
+namespace: molecular_function
+def: "Enables the transfer of a solute or solutes from one side of a membrane to the other according to the reaction: L-lysine(out) + L-arginine(in) = L-lysine(in) + L-arginine(out)." [PMID:10903140, RHEA:70827]
+xref: RHEA:70827
+is_a: GO:0015298 ! solute:cation antiporter activity
+property_value: creation_date 2022-11-08T21:55:18Z xsd:dateTime
+property_value: term_tracker_item https://github.com/geneontology/go-ontology/issues/24324 xsd:anyURI
+created_by: hjd


[BRD-164] - Moved typescript to dev dependencies

Pull Request Test Coverage Report for Build 751053099

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 751011860:
0.0%

Covered Lines:
52

Relevant Lines:
52

💛  - Coveralls

Pull Request Test Coverage Report for Build 751053102
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.4%) to 99.618%

Totals

Change from base Build 751011860:
-0.4%

Covered Lines:
202

Relevant Lines:
202

💛  - Coveralls

Pull Request Test Coverage Report for Build 751053102
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.4%) to 99.618%

Totals

Change from base Build 751011860:
-0.4%

Covered Lines:
202

Relevant Lines:
202

💛  - Coveralls


MA Keeps reloading, unable to open spotify liked playlist

What version of Music Assistant has the issue?
2.1.0
What version of the Home Assistant Integration have you got installed?
2024.6.2
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
I had my spotify connected first, that worked fine. I then added Tune-In and youtube music and since then I can not load my spotify liked playlist it just keeps refreshing, please see screen recording:
https://photos.app.goo.gl/HqqVZqj69bYH2zxH7
This happens in firefox on my macos device.
How to reproduce
Link spotify, then youtube music and tune-in and see that the liked playlist is not working.
Music Providers
Spotify
Youtube music
Tune-in
Player Providers
Chromecast (n.a.)
Full log output
music-assistant.log.log
Additional information
No response
What version of Home Assistant Core are your running
2024.7.3
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Generic x86-64 (e.g. Intel NUC)

Please review the troubleshooting page again and supply all requested information

Thanks anything in specific that you are revering to? I did read it and did provide as much info I think was relevant. What I did not mention is that this is after a fresh installation this happens.

Your title suggests MA doesn’t work at all. The report though makes me think you are only having issues with Spotify. Please detail what does work and what you have done to narrow down the problem, specifically what you have tried on the troubleshooting page that hasn’t helped.

@OzGav i changed the title, did you watch the screen recording at all? It is pretty clear in my opinion what is going on. My setup is straight forward, it is home assistant OS, nothing special and no special networking stuff going on. Just plain simple, installed MA, connected spotify and I cannot open my liked playlist. I tried clearing the cache but that did not work. I removed the provider, cleared cache, reloggedin to spotify provider and did not work either. While going through the log I also found some yt music errors and posted another issue: https://github.com/music-assistant/hass-music-assistant/issues/2694

Yes but you said

Link spotify, then youtube music and tune-in and see that the liked playlist is not working.

so it seems like YouTube music and TuneIn need to be also added before this occurs. So is that the case or is it only a Spotify issue that is not dependant on any other music provider being installed,

I see what you mean, i just did a fresh installation with only spotify and still the same thing is happening... anything else I can do to debug this?

Try a different playlist, try a different browser. All my playlists load fine. I went to check your log but you have enabled debug mode which we ask that you don’t do unless asked. So you can attach the full log without debug mode.

As can be seen in the video other playlists work fine, it is just my liked playlist from spotify. I tried chrome and safari too and even the macos companion app it is all the same result. I enabled debug mode only to show case this issue, disabled it afterwards.

Then probably go to Spotify and look at what tracks are in there.
What was going on though when you looked at a different playlist and went back and it jumped back to the ADDON view of HA?

Very good question for some reason it jumped me back to the addon page instead of the ingress page... did not happen afterwards. Alright issue found, it was a specific song I guess, i just moved the order around in my spotify app and now it is working just fine... I guess a spotify error ?

Ps i think it was this song: https://open.spotify.com/track/55meeb1WffJW16DfMnWVi0?si=UFe31sQiQsycO9rPHO-FRA&nd=1&dlsi=4a6e1cbbf734427b it has some weird characters could that be it?

I’ll keep this open for Marcel to have a look at eventually as ideally MA would handle this edge case.

Hi @bruvv just wanted to check in whether this is still an issue on the latest MA version?

This is a duplicate of https://github.com/music-assistant/hass-music-assistant/issues/2704

Yes still an issue. And i think Marcel is very right. When i just use Firefox on my phone to access it. It works fine. So this looks like a websocket issue. Shall we close this one in favor of the other ticket ?

What browser is causing the issue?

It's the home assistant android app. When accessing ma via ha ingress and my playlist is more than 1300 songs it will start flashing and reloading the page. When using a browsers to access ma directly it works just fine. So it has to do something with ingress. Instead of MA.

OK then this is a duplicate and I think we can close this one?


Could use first day of...

Would be good to see examples of :
First day of week
First day of month
First day of year

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

ID: afda392a-4ba8-8b8e-692b-6a5e9b73a331
Version Independent ID: de050707-0454-e57e-78f7-7aa5ed506a48
Content: Now, Today, and IsToday functions - PowerApps
Content Source: powerapps-docs/maker/canvas-apps/functions/function-now-today-istoday.md
Service: powerapps
GitHub Login: @gregli-msft
Microsoft Alias: gregli

@akmiecik thanks for the ask. Looking into it.

@akmiecik  can you please clarify if the ask is for a Boolean true/false output for given input, or should return actual day, month or year?
e.g. are you asking for Boolean check IsTodayFirstDayOfWeek(), IsTodayFirstDayOfMonth() or IsTodayFirstDayOfYear()  or are you asking for a function to return day corresponding to first day of this week, this month and this year?
In general,you can use samples like below for Boolean check - e.g. returns true when value matches that of Today() and false when doesn't match:
Weekday(Today()) = 3
Month(Today()) = 10
Year(Today()) = 2019

The original help screen was "Now, Today, and IsToday functions in PowerApps"
I'm thinking it should include Week, Month, Year examples too (or at least a link to the proper place)
I don't remember how I got it working but here are some examples from my code, pardon if they are not syntactically correct:
Beginning of week:  Weekday(Today(), Sunday
Beginning of year:  Date(Year(Now()),Month(Now()),1))
thanks.

Thanks. The examples are in respective function documentation:
Year: https://docs.microsoft.com/powerapps/maker/canvas-apps/functions/function-datetime-parts
e.g. Weekday( Now(), StartOfWeek.Wednesday )
Month: https://docs.microsoft.com/powerapps/maker/canvas-apps/functions/function-datetime-parts
Date: https://docs.microsoft.com/powerapps/maker/canvas-apps/functions/function-date-time
Please use examples from respective function documentation to build business logic.
Closing the comment with above documentation links, please feel free to reach out if more questions.


Wrong type ascription pattern in generated F*

struct Other<'a>(&'a i32);

enum Test<'a> {
    C1(Other<'a>)
}

impl<'a> Test<'a> {
    fn test(&self) -> i32 {
        match self {
            Self::C1(c) => *c.0

        }
    }
}

Open this code snippet in the playground
The generated F* for the test method from the example is:
let impl__test (self: t_Test) : i32 =
  match self with
  | (Test_C1 c: t_Test) -> c._0

F* rejects it with Type ascriptions within patterns are only allowed on variables

Don't put any type annotations here.

As F* allows type ascription patterns only on variables, my first attempt is to remove the type ascription (and keep only the underlying pattern) except when the underlying pattern is a binding pattern.
However what I understand from the Rust doc on patterns an this canceled feature is that type ascription patterns in Rust are allowed only in let bindings so I think we could actually completely ignore them in the F* backend (even when they wrap a binding pattern) but both solutions are probably fine.


Updating Concord Metasound Nodes to UE5.1

I appreciate the pull request! However, I am sorry to say that I'm no longer actively developing Concord and don't have time to maintain the repository.


GraphQL query generated by @index directive fails with Unauthorized error when field is used as @auth groupsField

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?
No response
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
7.6.15
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Amplify Categories
auth, api
Amplify Commands
push
Describe the bug
We migrated our GraphQL model from v1 to v2 as per the migration instructions. A new error seems to have been introduced that gives Unauthorized errors when running an index query on a field that is used as a groupsField. Schema:
type Application @model @searchable @auth(rules: [{allow: groups, groupsField: "projectId"}, {allow: private, operations: [create]}]) {
  id: ID!
  projectId: ID! @index(name: "byProjectId", queryField: "applicationsByProjectId")
  applicationName: String! @index(name: "byApplicationName", queryField: "applicationByName")
  ...
}

The generated query applicationByName works fine and returns only the items that the user is authorized to see via their group membership, however, the applicationsByProjectId query fails and gives the error:
Not Authorized to access applicationsByProjectId on type ModelApplicationConnection

The only difference between these two queries is that the projectId field is used as a groupsField in the auth rule, so we assume this is causing the issue.
Expected behavior
As with before migration to the Transformer V2, both the applicationsByProjectId and applicationByName should return data and not return an unauthorized error.
Reproduction steps

Create a model with an @auth rule that contains a groupsField
Add fields to the model with @index directives containing a queryField parameter, including on the field that is the groupsField
Run the GraphQL query for the groupsField index, it will return unauthorized. The other queries will succeed.

GraphQL schema(s)

# Put schemas below this line
type Application @model @searchable @auth(rules: [{allow: groups, groupsField: "projectId"}, {allow: private, operations: [create]}]) {
  id: ID!
  projectId: ID! @index(name: "byProjectId", queryField: "applicationsByProjectId")
  applicationName: String! @index(name: "byApplicationName", queryField: "applicationByName")
  applicationType: String
}

Log output

# Put your logs below this line

Additional information
No response

Hey @Booligoosh 👋, Apologies for the delay. Are you still experiencing this issue using the latest version?


Refactor CSS/SASS/LESS imports

There are currently differences in the way CSS, LESS and SASS @import statements resolve, causing unexpected behaviour when using ~ to represent node_modules, and relative path names that don't follow the expected Webpack setting.
Needs proper testing.

Nice work on the refactor @leebenson, I've tested this by successfully integrating Grommet on #18
Adding @import '~grommet/scss/vanilla/index'; to the styles.scss works exactly as expected!
Thank you!

Have you had time to make any progress re: https://github.com/reactql/cli/issues/30 ?
If so, what would be the recommended way to import sass partials?

@Extra-lightwill - sure have, please see https://github.com/reactql/kit/issues/13
TL;DR - Put 'global' @import statements inside a style.global.css file and import that instead. It turns out that :global should only be used for 'inline' statements. See this comment for a more thorough explanation.

@Extra-lightwill - as for a recommend way to import SASS partials, this should work just like any other SASS import. e.g.:
// if you're importing locally, from your own source
@import 'src/path/to/partial;

// if you're importing from a `node_modules` npm
@import '~module/path/to/partial'


Copy/cut and paste a file to pc from a extral hard not working

Description
tryed to move folder not working
Steps To Reproduce
unstalling it and reall the program still not working
Requirements

e.g. Fix crash that occurs when...
it also crashes on one single click for it

Edition	Windows 11 Pro
Version	23H2
OS build	22635.2700
64 gb of ram
Files Version
<IP_ADDRESS>
Windows Version
22635.2700
Log File
their no log in windows 11

Thanks for the report,

Can you upload (Do not copy and paste content) the debug.log file directly to GitHub (email attachments don't work) . You can get it in Files settings > About > Open log folder.
Can you add the steps to reproduce. Like where your copying to and from, the file, any errors you see.

their is no settings > About > Open log folder. in windows 11
i was moving folder  from desktop to my external hard

In Files settings not Windows

debug.log

sorry

i need to be able to move folders from desk to extranal hard its only let copy not move it

@deadlywhitesong can you clarify the steps to repro this? Make sure to specify how you're copying the item (toolbar button, keyboard shortcut, context menu etc).

@deadlywhitesong


Misleading potential typo in iPython section of docs

Description
The Converting functions from Jupyter Notebooks into Kedro nodes section of the iPython docs contains an example for converting the some_action function into a node, but then explains that running kedro jupyter convert will result in a Python file containing the "convert_me function definition".

Context
Not a severe bug, but could be misleading/confusing to new users.
Looks like the live docs have this page in 10_tools_integration, but master has it renamed to 11_tools_integration so I can't verify my hunch that the example used contain a function called convert_me, and that one line simply wasn't updated along with the rest of the example.

Hey @josephhaaga, thanks for reporting it.
Nice catch!


Need step by step process to configure jonitor monkey in RHEL instance

Hi,
Could you please anybody provide step by step process to install and configure jonitor monkey in Redhat Linux aws instance.
And also provide how to use the same to tool to Retrieve/Manage the AWS Resources.
Regards,
Santosh

I have gone through the below link not able to configure
https://github.com/Netflix/SimianArmy/wiki/Janitor-Home
Please help me to complete my setup.
Regards,
Santosh

Hello @santoshpatha12 : Janitor Monkey is a separate project.
Please refer to the following GitHub project: https://github.com/Netflix/SimianArmy
Thank You


Improve username behavior

Fixes #29174
Closes #1

Fixes regex and readme

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!


Fixup Template sets, fix parent versions in submodules,

@vsevel I have found two more glitches when testing with https://github.com/apache/camel-quarkus/pull/2184

@ppalaga shall we release?

@ppalaga shall we release?

Yes, please!


Extract correct PDF format version from the catalog

The 'Version' field of the most recent document catalog, if present, is
intended to supersede the value in the file prologue.
This is significant for incrementally-built PDF documents and generators that
emit a low version in the prologue and later apply a format version based on
PDF features used, such as Apple's CoreGraphics/Quartz PDF backend.
Fixes the internal version variable, as well as the PDFFormatVersion reported
by the API and consumed by viewers.

Could you squash the commits into one commit (see https://github.com/mozilla/pdf.js/wiki/Squashing-Commits)? Also, do you have an example of such a PDF file?

Fix and test case are now squashed into one commit and rebased.

/botio test

Thank you for the patch.


NNW flagging read articles as unread

I opened NNW on iPad after having not opened it for probably a week or so (I mainly use another app for RSS). After it finished doing a sync with Feedbin, it was showing I had 2 older articles in my account that were unread, but no other apps / NNW clients are showing that those articles are unread.
Other apps I checked:

After a sync, Reeder 5 on iPhone / iPad considers those articles are read
After a sync, NNW on the Mac considers those articles read
Did a clean install of NNW on my iPhone, and after a full sync it considers those articles read

I tried doing a pull-to-refresh a bunch of times on iPad and it kept showing the articles were unread. I left the app for awhile and came back and the auto-refresh triggered some new articles being fetched. Along with bringing in those new articles, NNW also changed the old articles as read.

The 2 articles with arrows next to them are the old ones that were marked read a long time ago in another app, but NNW considered them unread.

I'm pretty sure that this is a duplicate of #2659 and should be fixed in the upcoming 6.0 release.


Feature: Add Backend Essentials Section with Workshops

What does this PR do?
This pull request adds a new section titled Backend Essentials, featuring a curated list of workshops designed to enhance skills in backend development, API design, and system architecture. The section includes valuable resources that cater to both beginners and experienced developers, fostering continuous learning and professional growth in the backend domain.
For resources
Description

Created a new section titled "Backend Development Workshops"
Added the following workshops:

Career in Backend Workshop
Practical Microservices Workshop
Pro Postman Workshop
REST API Design Workshop
System Design & Application Architecture Workshop

Why is this valuable (or not)?
It covers a lot of topics which is helpful for everyone who wants to build a career in the backend.
How do we know it's really free?

For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

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

Follow-up

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

this category title won't help anyone find these courses. Take a look at our subjects list, and try to find a category that fits. "software architecture" maybe

Thanks for your suggestion


Update dispatch logic in nftables

Description

Update dispatch logic in nftables mode to use verdict maps instead of a list of dispatch chains.
Using verdict maps allows us to look up the correct policy rules to execute in constant time, instead of traversing a list of chains proportional to the number of locally running pods.
I expect the savings here to be minimal in most cases - iptables mode already mitigates this by using a dispatch trie to minimize the number rules traversed. Still worthwhile, especially as the number of pods per node some users are pushing grows over time.
Related issues/PRs

Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

TBD

Reminder for the reviewer
Make sure that this PR has the correct labels and milestone set.
Every PR needs one docs-* label.

docs-pr-required: This change requires a change to the documentation that has not been completed yet.
docs-completed: This change has all necessary documentation completed.
docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

release-note-required: This PR has user-facing changes. Most PRs should have this label.
release-note-not-required: This PR has no user-facing changes.

Other optional labels:

cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

@fasaxc thanks for the reviews! I've updated to use errgroup as well as adding some new UTs for the map code + table integration.


Make list solve_order predictable

Using solve_order() on a list could cause randomization of list members in an unpredictable order (see #221). This was due to toposort using sets and unordering the dictionary passed to it. This now appends the toposorted list fields in the same order that the randset had originally.
Add testcase passing multiple lists in an ordered randset.

Thanks, @alwilson! Looks great


Create Blog “2023-05-04-hello”

Automatically generated by Netlify CMS

👷 Deploy Preview for remarkable-salamander-8b94f3 processing.

Name
Link

🔨 Latest commit
6e33dee4cda9b9f512979254cd15b2a7f0fe6bc0

🔍 Latest deploy log
https://app.netlify.com/sites/remarkable-salamander-8b94f3/deploys/6453d4752935410008a198a4


cutReceipt ignored by iOS - Ionic 3 - TSP100ECO

Greetings,
When trying to print receipts using printRasterReceipt, I found that iOS ignores cutReceipt: false, cutting each time.
Looking into StarPRINT.m, I found this line in several functions making use of the RasterObj and the cutReceipt field:
BOOL cutReceipt = ([printObj valueForKey:@"cutReceipt"]) ? YES : NO;
To fix the issue, I modified them:
BOOL cutReceipt = ([[printObj objectForKey:@"cutReceipt"]boolValue]) ? YES : NO;
This changes the way the data sent to the native side is cast and compared.
Does anyone else have this issue?

Hi @NicolaasZA,
I had the same issue. Your fix works for me. I've created a pull request to implement your solution in the next release. Hopefully the owner of this repo is still moderating.
Regards,
Peter


New version: Jackett.Jackett version 0.22.339

Pull request has been created with WinGet Releaser :blueberries:
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -1978335187
2024-07-16 23:19:35.398 [FAIL] Installer failed security check. Url: https://github.com/Jackett/Jackett/releases/download/v0.22.339/Jackett.Installer.Windows.exe Result: 0x80004005

Automated error analysis suggests -1978335187 may mean Installer failed security check. Another script should retry this every 18 hours.
(Automated response - build 886.)

🎈

/azp run


Export excel protected by password????

Hi guys, I'm starting to work with laravel and with this library for import/export excel files. I need to create a excel file from a query, which I already have done, but the user need that the xls file have been protected with a password to be opened. It is possible to do that and how could I do it or where I can have the documentation?? cause I can't found it
I'm working with:
PHP v 7.3.10
Laravel 5.8
and maatwebsite 2.1
Thanks.

Versions
PHP version: 7.3.10
Laravel version: 5.8
Package version: 2.1
Description
Steps to Reproduce
Expected behavior: I need to create the same file, but protected by a password required to open the document.
Actual behavior: currently I'm capable to create an excel file with the follow code:
return Excel::create('datos_formulario_'.$enfermedad_eno.'_'.date('d/m/Y_h:i:s', time()), function($excel) use($nombre_columnas, $filas){                                 $excel->sheet('Hoja1', function($sheet) use($nombre_columnas, $filas){                                         $sheet->row(1, $nombre_columnas);                                         $sheet->row(1, function($row) {                                                  $row->setBackground('#428bca');                                                  $row->setAlignment('center');                                                 $row->setFontWeight('bold');                                         });                                         $i=2;                                         foreach($filas as $data=>$value){                                                 $sheet->row($i, $value);                                                 ++$i;                                         }                                 });                                 })->download('xlsx');                                 return Excel::download(new DocumentsExport($nombre_columnas,$filas),'datos_formulario_'.$enfermedad_eno.'_'.date('d/m/Y_h:i:s', time()) );
THE PROBLEM:
I don't know how to proceed to create the password protected file, also I didn't find the documentation to do that.

Version 2.1 is EOL, we don't support it anymore.
In 3.1 you can call PhpSpreadsheet's security methods via an event: https://stackoverflow.com/questions/48049242/phpspreadsheet-password-protected


Feature/custom metrics

Hello!
This is a proposal for the implementation of custom metrics for this extension.  As described in #13, currently there are no custom metrics for the Diameter protocol. It would be valuable to provide metrics regarding request latency and the number of requests handled per second, as those are key results that cannot be properly expressed by the default VU metrics (specially in test scenarios where we issue multiple requests to the server, such as in a SIP authentication flow).
My proposal is to add the following metrics (I've marked the ones that are already implemented by this PR):

[X] diameter_req_count to track the number of requests handled during the test
[X] diameter_req_duration to track the response time of each individual request
[ ] diameter_req_failed to track the rate of failed requests. In this case it would be nice to provide an API similar to HTTP's setResponseCallback to allow the user to define what is a failure response

With that said, this implementation requires some refactoring in the way that we export the modules to the JavaScript runtime, and I'm not very familiar with this API.
I'd like to know what you guys think about the proposal and also the design of the implementation.
Before

After

I'm currently having an issue with this implementation. For some reason when I call console.log on the messages they are not being printed anymore. I'd guess that's something to do with the changes in the way the module is exported, but I'll look into it.
          /\      |‾‾| /‾‾/   /‾‾/
     /\  /  \     |  |/  /   /  /
    /  \/    \    |     (   /   ‾‾\
   /          \   |  |\  \ |  (‾)  |
  / __________ \  |__| \__\ \_____/ .io

  execution: local
     script: tests/example.js
     output: -

  scenarios: (100.00%) 1 scenario, 1 max VUs, 10m30s max duration (incl. graceful stop):
           * default: 1 iterations shared among 1 VUs (maxDuration: 10m0s, gracefulStop: 30s)

INFO[0004] Connected to localhost:3868
INFO[0006] UAA 1 {}                                      source=console
INFO[0006] MAA {}                                        source=console
INFO[0006] UAA 2 {}                                      source=console
INFO[0006] SAA  {}                                       source=console
INFO[0006] LIA  {}                                       source=console
INFO[0006] 2001                                          source=console
INFO[0006] 2001                                          source=console
INFO[0006] 2001                                          source=console

     ✗ Success Result-Code
      ↳  60% — ✓ 3 / ✗ 2

     checks..................: 60.00% ✓ 3        ✗ 2
     data_received...........: 0 B    0 B/s
     data_sent...............: 0 B    0 B/s
     diameter_req_count......: 5      1.96493/s
     diameter_req_duration...: avg=486.1ms min=66.46ms med=73.46ms max=2.07s p(90)=1.3s  p(95)=1.68s
     iteration_duration......: avg=2.54s   min=2.54s   med=2.54s   max=2.54s p(90)=2.54s p(95)=2.54s
     iterations..............: 1      0.392986/s
     vus.....................: 1      min=1      max=1
     vus_max.................: 1      min=1      max=1

running (00m02.5s), 0/1 VUs, 1 complete and 0 interrupted iterations
default ✓ [======================================] 1 VUs  00m02.5s/10m0s  1/1 shared iters

@luissimas Regarding diameter_req_failed, let's keep it simple by only tracking failed diameter responses in scenarios such as timeouts or invalid messages. Users can use checks(resultCode {}) to track diameter messages with unexpected result codes.

I'm currently having an issue with this implementation. For some reason when I call console.log on the messages they are not being printed anymore. I'd guess that's something to do with the changes in the way the module is exported, but I'll look into it.

I'm not sure what's happening either, but it seems to work with:
    console.log("CCA: ", cca.string())
    console.log(`CCA: ${cca}`)

@luissimas Regarding diameter_req_failed, let's keep it simple by only tracking failed diameter responses in scenarios such as timeouts or invalid messages. Users can use checks(resultCode {}) to track diameter messages with unexpected result codes.

Agreed. After some thought I think that the current checks is a better solution. I'm kinda busy at the start of this week, but I'll implement the metric for timeouts when get the time

I'm currently having an issue with this implementation. For some reason when I call console.log on the messages they are not being printed anymore. I'd guess that's something to do with the changes in the way the module is exported, but I'll look into it.

I'm not sure what's happening either, but it seems to work with:
    console.log("CCA: ", cca.string())
    console.log(`CCA: ${cca}`)

Yes, explicitly converting the object to a string seems to work on my end as well. Would you consider this a block for merging this PR?

Thank you for your contribution!


Add cmake-multi-platform.yml

Github recommends this workflow for the repository.

Now seeing what this pull request does, I realize that there should be separate C++ build checks.


Stage 2 Phase 3 shutdown

Every time I run stage 2 and it gets to phase 3 it says "error: Discription = Shutting Down" There are no error codes or anything to let me know why it's doing this. I'm going to skip de-bloat for now so it will finish but I'd really like to see this working. Let me know if there is anything I can do to expedite this issues resolution.

Hi @TyanColte, this is a known bug that I haven't found a fix for yet. Solution is just to reboot and re-run Tron.


Update openai-chat.adoc - replace withDefaultOptions()

I found the  .withDefaultOptions() is no longer found with new OpenAiChatClient  in the 0.8 SNAPSHOT while trying out the sample code, I have tried with my codebase and it responded with no errors, this is my first time contributing so please bear with me 😅 and thank you for the hard work!
Thank you for taking time to contribute this pull request!
You might have already read the [contributor guide][1], but as a reminder, please make sure to:

Sign the contributor license agreement
Rebase your changes on the latest main branch and squash your commits
Add/Update unit tests as needed
Run a build and make sure all tests pass prior to submission

thanks @koloyyee


New PR to test SignCLA at 2018-04-30 14:49:42.048757039 -0700 PDT m=+5.877530386

Body of PR

indiv-pass-fork-staging: test succeeded


HardFault due to memory alignment issue when porting to STM32F0 (Cortex M0)

Hi, first of all, thanks for your very nice and clean-code bootloader, without the typical 'embedded black magic'.
I tried to port your work to an STM32F0 microcontroller and I discovered an insidious problem, when using ARM Compiler v5.06 for µVision (Keil IDE).
In details here:
https://github.com/ferenc-nemeth/stm32-bootloader/blob/2e1a7acbb5ea8cad32c769f9cb99047387d2c291/Src/xmodem.c#L206
there is a misaligned pointer to received_data (because X_PACKET_DATA_INDEX=2), and this leads to HardFault at  HAL_FLASH_Program of flash_write, when it tries to copy the value to the flash by dereferencing the pointer.
I solved the problem by receiving XMODEM header and XMODEM data+crc into two differents uint8_t arrays, one for the header and the other one for data+crc.
The modified version of xmodem_handle_packet function is available here:
https://gist.github.com/lrodorigo/3b975205962e403b50c647728d4cef6f
I hope this hint will be useful for you and for other people that are trying to adapt this bootloader to other platforms.

Hi lrodorigo,
Thank you for your feedback. I improved my code based on your comment and sample code.
Best regards,
Ferenc Nemeth


How to set timeout call ?

Hy I new abaout nexmo and i have some question It's possible to make call and ring just 20 second in PHP code?

To make an outbound call you can use $client->calls()->create() (see https://developer.nexmo.com/voice/voice-api/building-blocks/make-an-outbound-call/php)

$keypair = new \Nexmo\Client\Credentials\Keypair(
    file_get_contents(NEXMO_APPLICATION_PRIVATE_KEY_PATH),
    NEXMO_APPLICATION_ID
);

$client = new \Nexmo\Client($keypair);

$call = $client->calls()->create([
    'to' => [[
        'type' => 'phone',
        'number' => TO_NUMBER
    ]],
    'from' => [
        'type' => 'phone',
        'number' => NEXMO_NUMBER
    ],
    'answer_url' => ['https://developer.nexmo.com/ncco/tts.json'],
]);

You'll need to keep track of the call ID somehow (e.g. $call_id = $call->getId();) and use that at a later time to hang up the call. This will result in an error if the call has already ended when you try and hang it up
$client->calls[$call_id]->put(new \Nexmo\Call\Hangup());

Ok i got it, in my question I mean ho to end call before call answer ? Simply like ringing time just 20 second after that end call. is it possible make cal like this ?

I just solve my problem. I just add 'length_timer' => 3 and 'ringing_timer' => 7 and it solved. Thanks for answering my question


docs: change recommended actions folder name

Hey, I just made a Pull Request!

:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[ ] All your commits have a Signed-off-by line in the message. (more info)

Tugboat has finished building the preview for this pull request!
Link:

https://pr4882-bqqzvuq4fhtl5izssrcgq2h041wk7qwp.tugboat.qa

Dashboard:

https://dashboard.tugboat.qa/604725e8f285af4482a4176d


Invalid Array Length when Moment Locale is set to en-gb

Problem
When using locales with the calendar we get some weird quirks & UI weirdness.
For example if we set the momentjs locale to en-gb then click the second date in the date range and you will see no dates being shown.
Additionally if you page through the calendar months into the past, some months will load & others will display the same problem of no dates for that month.
If you need further details or any steps to replicate further then please let me know.
Thanks,
Warren
JavaScript Console Stack Trace Log
Uncaught RangeError: Invalid array length
Calendar.range @ calendar.js?umb__rnd=<IP_ADDRESS>4337076:802
Calendar.calendarArray @ calendar.js?umb__rnd=<IP_ADDRESS>4337076:666
Calendar.calendarCreate @ calendar.js?umb__rnd=<IP_ADDRESS>4337076:614
Calendar.calendarOpen @ calendar.js?umb__rnd=<IP_ADDRESS>4337076:439
Calendar.$.on.click @ calendar.js?umb__rnd=<IP_ADDRESS>4337076:81
x.event.dispatch @ jquery.min.js?cdv=564337076:5
y.handle @ jquery.min.js?cdv=564337076:5

I get the following error when using the Calendar DateRange Picker when the user's moment locale is set to en-gb with moment.locale("en-gb")
Current code
//Breaks if set to en-gb (this comes from an API, that fetches the current users locale)
moment.locale("en-gb");

var dd = new Calendar({
    element: $(".daterange--double"),
    earliest_date: 'January 1, 2000',
    latest_date: moment(),
    start_date: moment().subtract(29, 'days'),
    end_date: moment(),
    same_day_range: true,
    callback: function () {

        //Date update/changed

        //Parse the dates from this component to Moment dates
        var start = moment(this.start_date);
        var end = moment(this.end_date);

        //If the item passed to this directive is an object (not string or array)
        if(angular.isObject(scope.ngModel)){
            //Set the properties on the model passed in
            scope.ngModel.startDate = start.format('YYYY-MM-DD');
            scope.ngModel.endDate = end.format('YYYY-MM-DD');
        }
        else
        {
            //If we do not have an object perhaps yet
            //We can set the dates on the filter model
            var dateFilter = {};
            dateFilter.startDate = start.format('YYYY-MM-DD');
            dateFilter.endDate = end.format('YYYY-MM-DD');
            scope.ngModel = dateFilter;
        }

        //Update scope - so anything watching it can change as needed
        scope.$apply();
    }
});

Really sorry to hear this isn't working for you. Unfortunately I didn't implement the locale feature and since we don't use it at Baremetrics you're on your own. Shouldn't be too hard to dig in and sort it out though. You might ping @RocAlayo as he submitted the PR that brought this feature in. :/

To update on this, the problem is with this piece of code moment().localeData().firstDayOfWeek()
Some locale do not use Sunday as the starting day of the week, and others use Monday.

Any news/update on the PR I have submitted for you to consider/review @tyvdh @scottrobertson @Shpigford

Sorry. Haven't had the chance to look it over yet. Maybe this weekend.

Hi, I encounter the same problem with the fr locale.
Changing the day of week format, by using the locale format worked for me.
See there #54:
http://momentjs.com/docs/#/displaying/format/
Hope this can help.


[bullet3] change order of target_link_libraries printed.

When bullet is installed it prints the following
The package bullet3:x64-linux provides CMake targets:

    find_package(Bullet CONFIG REQUIRED)
    # Note: 2 target(s) were omitted.
    target_link_libraries(main PRIVATE LinearMath Bullet3Common BulletDynamics BulletSoftBody)

This ordering can cause linker errors as bullet needs a specific order of library includes see here
Proposed solution
I suggest the printed text is changed to the following order
target_link_libraries(main  Bullet3Common   BulletDynamics BulletCollision BulletSoftBody   LinearMath)

This ordering can cause linker errors as bullet needs a specific order of library includes see here

That is an upstream issues. Targets should be defined in a way that link order doesn't matter. If it does cause link issues the targets are not defining their INTERFACE_LINK_LIBRARIES correctly!

It's a known issue with Bullet, my suggestion is that the order that things are printed out is usually cut and paste by my students and then things break. Hence requesting for a change to ensure the order is correct. I've already got it in my notes but most students don't read :-)

I submit an issue on upstream: https://github.com/bulletphysics/bullet3/issues/4380.

@LilyWangLL I don't know if the upstream issue is useful.

vcpkg has a usage file for bullet3 since 2020. So the displayed usage is from vcpkg and can be recitfied here.
upstream doesn't export targets but ${BULLET_LIBRARIES}. Targets are from a vcpkg patch, i.e. unofficial vcpkg stuff. And the patch even deals with link libraries. If it isn't enough information to resolve transitive usage requirements, it needs more work.
Upstream does provide a pkgconfig file. And of course it does use a different order. So either use that order for usage, or entirely switch usage to pkgconfig.

@LilyWangLL I don't know if the upstream issue is useful.

vcpkg has a usage file for bullet3 since 2020. So the displayed usage is from vcpkg and can be recitfied here.
upstream doesn't export targets but ${BULLET_LIBRARIES}. Targets are from a vcpkg patch, i.e. unofficial vcpkg stuff. And the patch even deals with link libraries. If it isn't enough information to resolve transitive usage requirements, it needs more work.
Upstream does provide a pkgconfig file. And of course it does use a different order. So either use that order for usage, or entirely switch usage to pkgconfig.

The usage of bullet3 is not installed and used, I don't know why it not be removed, the targets are from cmake-fix.patch. I modify the description of my upstream issue, It should as jmacey says is a reminder.
I will use a new usage for this port, and use the same link libraries order with pkgconfig from upstream.
Libs: -L${libdir} -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath

The usage of bullet3 is not installed and used,

Indeed. :disappointed:

I don't know why it not be removed, the targets are from cmake-fix.patch.

TBH I would recommend to leave the official cmake config unchanged, and provide the target-based cmake config in the proper unofficial namespace.
A usage file should still be installed because the vcpkg tool heuristics cannot tell which target out of 25 is the primary (single) one which a user should link to.

My opinion is: if link order is required, the libraries being linked should establish explicit dependencies.

My opinion is: if link order is required, the libraries being linked should establish explicit dependencies.

Building explicit dependencies should be done upstream.

My opinion is: if link order is required, the libraries being linked should establish explicit dependencies.

I agree:
"the patch even deals with link libraries. If it isn't enough information to resolve transitive usage requirements, it needs more work."

Remember that link order matters mostly for static libraries on non-windows targets.
vcpkg has a MSVC bias and sometimes fails to see that what works for windows isn't good enough for non-windows.
And remember that  upstreams with a non-MSVC bias tend to assume dynamic linkage, i.e. simply consider static linkage unsupported.


[WIP] Support phoenix liveview

This PR resolves #486

[x] add index.phoenix.ts for initializing Flowbite components in Phoenix LiveViews and regular views
[x] update configs to build for index.phoenix.ts
[ ] update the docs
[ ] similar to datepicker.turbo.js, add datepicker.phoenix.js for initializing datepicker plugin in Phoenix LiveViews and regular views

The PR is work in progress, will continue tomorrow, please leave feedback as well.

So we need both the load and phx:page-loading-stop events, right?

Yeah, that way it will work for both LiveViews and regular Views

I have added instruction for including the javascript file via CDN, though I have some questions:

How do you handle publishing the javascript files to the CDN, and are going to publish flowbite.phoenix.js to a CDN?

And also regarding building Flowbite locally, I used npm run build:npm command, it generated a dist and lib folders which I copied to the flowbite folder in assets/node_modules/flowbite, in order to test the built files, am not sure if this is a right way. My question is how do you test your Flowbite builds?

@zoltanszogyenyi  I have not added a datepicker javascript file for Phoenix, I feel it's not necessary, however I have added instructions for setting up the datepicker using flowbite-datepicker.

Hey @jmnda-dev,
Thanks for the contribution.

Files will be published by me via NPM and this will be reflected either on UNPKG or CDNJS shortly after -> everything that is generated inside the dist/ and lib/ folders go there.
That is the right way - make sure that both the minified and non minified + mapping files are correctly generated and copied over and that will work good enough -> you can change the name of the package.json file and publish it yourself on a test package and use the automatically generated UNPKG CDN links to test livewire.

Cheers,
Zoltan

Hi @zoltanszogyenyi, I make a slight change to the Phoenix docs. As for now the generated files, I have checked everything and all looks good on my end.

@jmnda-dev  - thanks for looking into this. I am actually running into the same exact problem with LiveView.
@zoltanszogyenyi - any update on this?

@jmnda-dev - thanks for looking into this. I am actually running into the same exact problem with LiveView.
@gsperka  If you haven't found a solution yet, you can look at a quick fix I mentioned in this issue #486

The work on the PR is done, waiting feedback from @zoltanszogyenyi. If you have any suggestions on this PR let me know.

Hey @jmnda-dev,
I'll try to include this in the weekend for the next release! Looks pretty good at a first glance.
Cheers,
Zoltan

Hey @jmnda-dev , thanks a lot for the work.
@zoltanszogyenyi for what it's worth I've patched our app (which is on Phoenix Liveview + Tailwind latest version) with @jmnda-dev 's work (see below) and FlowbiteJS now works for me. Until then I basically had to deactivate all your JS and kind of reimplement it with custom JS. Not ideal!
Thanks both and have a good Sunday :).
Here's what I did based on the work of this PR
In app.js
import './flowbite'

instead of directly doing import 'flowbite'
In flowbite.ts
/*
  Fetched code from https://github.com/themesberg/flowbite/pull/487
  to support LiveView re-renders and navigation.

  Without this patch, Flowbite JS is unusable within LiveView.
*/

import 'flowbite';
import Events from 'flowbite/lib/esm/dom/events';

// core components
import {
    initAccordions, initCarousels, initCollapses, initDials, initDismisses, initDrawers, initDropdowns,
    initModals, initPopovers, initTabs, initTooltips
} from 'flowbite';

const liveViewLoadEvents = new Events('phx:page-loading-stop', [
    initAccordions,
    initCollapses,
    initCarousels,
    initDismisses,
    initDropdowns,
    initModals,
    initDrawers,
    initTabs,
    initTooltips,
    initPopovers,
    initDials,
]);
liveViewLoadEvents.init();

const regularViewLoadEvents = new Events('load', [
    initAccordions,
    initCollapses,
    initCarousels,
    initDismisses,
    initDropdowns,
    initModals,
    initDrawers,
    initTabs,
    initTooltips,
    initPopovers,
    initDials,
]);
regularViewLoadEvents.init();

Merged <3.
Will release v1.6.5 soon - will let you peeps know.

Thank you @zoltanszogyenyi


无法下载2.0 for mac https://github.com/geeeeeeeeek/electronic-wechat/releases/download/V2.0/mac-osx.tar.gz

Description
First of all, thanks for your attention to open an issue for this project.
Please notice that if you are requesting a feature, then you should give a brief description of your request.
If you are reporting a bug, please follow the template below.
A bug report without detailed information required will have a very low priority and even be ignored (closed directly)!
Specifications

Version of Electron (run $ electron --version): v0.0.0
OS: <OS>
Stack trace from the error message (if any)

<Stack trace here>

Mac不是有官方版本的？


Add rbac requirements for consolequickstarts resource

Resolves error after merging https://github.com/stolostron/backplane-operator/pull/151
"error": ": error ensuring console-mce: error applying object Name: multicluster-switcher Kind: ConsoleQuickStart: consolequickstarts.console.openshift.io \"multicluster-switcher\" is forbidden: User \"system:serviceaccount:multicluster-engine:multicluster-engine-operator\" cannot patch resource \"consolequickstarts\" in API group \"console.openshift.io\" at the cluster scope"

Signed-off-by: Jakob Gray<EMAIL_ADDRESS>

/lgtm


Allow empty range in server configuration.

It's useful to be able to create a DHCP server that serves addresses only in response to "registered" MAC addresses -- in other words, to have no general address range, but serve only fixed addresses that match known hosts.  Dhcp_server.Config.t doesn't currently allow this, as range is not an option field.

I think this is useful but will require some work, I'll write it.

Implemented in 0bb4464f41dab7fadc37bdda606fe76edaefc6d3 , can't test at this time but I'm writing regression tests for it.

Thanks a lot for that implementation, @haesbaert ! :)

happy to help 👯


Cannot create a link from a subnet-routed host

I have both hosts directly on my tailnet and those connected to it via subnet routes. When I use one of the former to create a link or access link details, it works great, but if I try and use one of the latter, it fails with the error:
404 Not Found: no match for IP:port
although using the links works fine. I suspect this is because it can't find the Tailscale user from the address of indirectly connected hosts.
Is there a way around this? Perhaps by also checking the subnet route list if the host IP isn't in the tailnet range?

That's right... it can't determine a Tailscale user for the subnet-routed host, and currently go links are generally always owned by a user.  I say "generally" because we ran into a similar situation for tags created from tagged devices.  In that case (#37), we allowed the go link to be created, but to always allow a human user to take over ownership.  We could potentially do something similar here, though it likely wouldn't be as straightforward (if easily possible at all).

So, I took a quick whack at this.
Allowing for an assumption (namely, that any request that gets to golink that doesn't come from a tailnet address must be from a subnet-routed host, otherwise it couldn't have got there), detecting them isn't that hard, as I can check for just that by comparing the request address to the known tailnet prefixes. Add a "fake" user along the same lines as "tagged-devices", and I have something that seems to work, at least on my system. I submitted my changes as #61 .
(Unfortunately, what I really wanted to do - namely, find the device offering the subnet routes, then assign the user that device belongs to as the owner of golinks from that subnet route - seems to be rather more problematic, at least without making golink require an API key, and I'd prefer not to do that. The same with giving tagged devices the tag for that specific device as its user rather than the generic "tagged-devices", which is something else I'd find useful. Maybe in the future I'll have time to figure this one out.)

I'm not sure this approach really works well for this. Part of the value of services on the tailnet is that they can know identities based on the underlying tailnet.

I don't disagree with that at all; this is just my first cut to get things working.
(That's also why I would like to be able to get the identity attached to the host providing the subnet routes and the specific tags for tagged devices into this and other services, as a step in the right direction identity-wise, although at the moment this seems difficult without a separate API key.)

@cerebrate, can you say a little bit more about your use case.  Do the subnet routed devices belong to individual users or are they servers or headless machines?
I ask because, as Denton noted, there is an assumption that the application knows who the user is.  If these are user devices coming through the subnet router, the behavior is going to be that they could initially create a go link, but then never be able to manage it.  Or all subnet-routed devices would be able to manage it because they would all appear as the same user (?? I'm not sure which would happen).  Either way, it's not a great experience and at that point you could just use any other golink service that doesn't use Tailscale identities.
One scenario I could potentially imagine us supporting is that links can be created from any device that can reach the service, but if there is no identifiable user, it is saved with an "unknown user" owner (or just an empty owner?).  That would mean that subnet routed hosts could create but not edit links.  golink would treat them as unowned links and any user on the tailnet would be able to take over ownership.  This is basically what happens with links created from tagged nodes today, we would just be making it a little more generic to work with any non-user device.  I still don't love it, but it would be a single solution that handles all cases where a specific user can't be identified.

All of the above, in this case.
I have something of an odd hybrid model - for reasons involving some devices that can't run Tailscale (microcontrollers, and the like) and not wanting to be completely ridiculous with the soft limits - in which my home network is both entirely subnet-routed (via a Tailscale instance on my border router) and some devices, my primary individual-user machines, are also directly on the tailnet.
So those ones work fine, but as I bounce around between servers, containers, and IoT widgets, sometimes I want to create a quick link, [or use some other Tailscale-id service], without having to find a way to put all sixty-plus of them directly on the tailnet - especially since in most of those cases, 99% of their traffic is entirely local and doesn't need to hit the tailnet.
So for my own usage, I can live with the scenario above; I'd prefer getting the identity of the subnet router (or the tag[s] of the tagged device) on the record to keep track, but with setups like mine, I can make the assumption that "he who routes a device owns whatever it does" fairly safely.
(That would also cover likely future scenarios in which I want to share part of my network with other people, and so distinguishing between the identities of the subnet routers would be useful where devices behind the subnet routers are concerned, but in which I can deal with just knowing that those devices ultimately belong to bar@, not<EMAIL_ADDRESS>

...some of the above went a bit beyond the scope of golink, sorry, but it's given me some ideas for some services of my own and now I'm starting to think about how much identification I could theoretically get for subnet-routed and tagged devices in such a service.
(Being able to get the actual tags for a device would be really useful, for example, since I use them to distinguish containers, cloud hosts, lambda functions, GitHub actions, etal. But at that point we're really beyond the scope of this issue/project.)


how to get group position from OnChildClick ?

how to get group position from OnChildClick ?

how to get position on child click

OK done !
private fun calculateRealGroupPosition(group: ExpandableGroup<*>): Int {
val groups = groups
var index = -1
for (expandableGroup in groups) {
index ++
if (expandableGroup == group) {
return index
}
}
return index
}

getGroups().indexOf(group);

Its not working

OK done !
private fun calculateRealGroupPosition(group: ExpandableGroup<*>): Int {
val groups = groups
var index = -1
for (expandableGroup in groups) {
index ++
if (expandableGroup == group) {
return index
}
}
return index
}

This works perfectly for me. Thank you

OK done !
private fun calculateRealGroupPosition(group: ExpandableGroup<*>): Int {
val groups = groups
var index = -1
for (expandableGroup in groups) {
index ++
if (expandableGroup == group) {
return index
}
}
return index
}

how can I do this with Java?

OK done !
private fun calculateRealGroupPosition(group: ExpandableGroup<*>): Int {
val groups = groups
var index = -1
for (expandableGroup in groups) {
index ++
if (expandableGroup == group) {
return index
}
}
return index
}

How can I do this with Java?


Update to new type resolution in asc

Currently fails tests.  Looking into it.

@MaxGraey Not sure why it's failing travis.  I switched the combination operators, e.g. <<= 1, to their full forms so that it would compile. I just checked the newest fix @dcode merged to fix this issue and it still doesn't work.  Since near's production code now relies on this package, could we merge this for now (after figuring out why travis is mad) and then have a later PR when the compiler is resolved?

@willemneal In local I can't build wasm module as well:
Require stack:
- ////bignum.wasm/bignum.wasm/node_modules/assemblyscript/cli/asc.js
- ////node_modules/assemblyscript/bin/asc
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


runtime: potential issue with mips64 VDSO clock_gettime

Posting a drive by bug report after looking at the source.
Since 1.14 (https://github.com/golang/go/commit/210e3677f997fcce48e749437853203358f1b7b4) we are using VDSO instead of direct clock_gettime syscall. For mips platform it seems that VDSO implementation didn't provide fallback path until 4.13 (https://github.com/torvalds/linux/commit/180902e08f051f72c89ffa366f4e4f7a8e9c753e). I guess that, depending on available clocksource, it is possible that VDSO call silently fail with -ENOSYS on thease older kernel versions, so that needs to be checked.
@cherrymui
@ianlancetaylor

It looks to me that it does have a fallback path: https://tip.golang.org/src/runtime/sys_linux_mips64x.s#L309
Does it handle your concern? Thanks.

@cherrymui That path seems to be taken only when runtime.vdsoClockgettimeSym is zero (VDSO is not available or __vdso_clock_gettime is missing). This potential issue could happen when executing __vdso_clock_gettime while using clocksource that doesn't have VDSO support [1]. I believe that in that case the code should run the existing fallback path.
[1] https://github.com/torvalds/linux/blob/v4.12/arch/mips/vdso/gettimeofday.c#L134

This does look like an issue to me, but referenced commit (https://github.com/torvalds/linux/commit/180902e08f051f72c89ffa366f4e4f7a8e9c753e) does not add an appropriate fallback.  The ENOSYS for CLOCK_MONOTONIC when VDSO is disabled is still there.
That said, https://github.com/torvalds/linux/commit/24640f233b466051ad3a5d2786d2951e43026c9d#diff-6d421860181fa4dae9db33a72099e169 (v5.4) switches to a new generic VDSO, which does have a fallback: https://github.com/torvalds/linux/blob/458ef2a25e0cbdc216012aa2b9cf549d64133b08/lib/vdso/gettimeofday.c#L293

Thanks. So, do you think we should fall back to syscall if the VDSO call returns ENOSYS, or maybe any negative result?

From a quick look over the code, it shouldn't matter, as ENOSYS is literally the only possible error. FWIW, I'd probably stick with ENOSYS, but it really doesn't matter.
For reference glibc just falls back on ENOSYS: https://github.com/bminor/glibc/blob/bc2eb9321ec0d17d41596933617b2522c9aa5e0b/sysdeps/unix/sysv/linux/sysdep-vdso.h#L41

@prattmic Is this issue resolved?

No, we still need a fallback on ENOSYS to handle kernels prior to https://github.com/torvalds/linux/commit/24640f233b466051ad3a5d2786d2951e43026c9d#diff-6d421860181fa4dae9db33a72099e169 that have VDSO_CLOCK_NONE (https://github.com/torvalds/linux/blob/180902e08f051f72c89ffa366f4e4f7a8e9c753e/arch/mips/vdso/gettimeofday.c#L175-L176).

@draganmladjenovic  @prattmic I can't find any available kernel before 4.13, it passed the testes on 4.19/5.4.

@mengzhuo that surprises me. Is this on a machine running that has VDSO_CLOCK_NONE.
From browsing the tree at https://github.com/torvalds/linux/commit/24640f233b466051ad3a5d2786d2951e43026c9d, it seems that would be any hardware not using the "R4K" clock source:
$ grep -R clock_mode arch/mips
...
arch/mips/kernel/csrc-r4k.c:            clocksource_mips.archdata.vdso_clock_mode = VDSO_CLOCK_R4K;

Other clock sources, like "OCTEON_CVMCOUNT" (arch/mips/cavium-octeon/csrc-octeon.c) don't seem to provide a VDSO clock mode and would thus return ENOSYS.
I'm not at all familiar with MIPS hardware. Do these configurations not exist in practice?

I'm not at all familiar with MIPS hardware. Do these configurations not exist in practice?
If I remember correctly, all linux-mips*-rtrk builders happen to use OCTEON_CVMCOUNT, but the kernel was built w/o VDSO support at all because of that.

@prattmic
AFAIK It's not necessary setting clock_mode any kernel with CONFIG_HIGH_RES_TIMERS=y will got a "Constant" clocksource on mips
I did the tests on my Loongson box (linux-mips64le-mengzhuo, Linux 5.4)
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
Constant hpet

Linux 5.4 will safely fallback to syscall and ret 0 if I switch to hpet, which has no vdso support.

@mengzhuo that surprises me. Is this on a machine running that has VDSO_CLOCK_NONE.
From browsing the tree at torvalds/linux@24640f2, it seems that would be any hardware not using the "R4K" clock source:
$ grep -R clock_mode arch/mips
...
arch/mips/kernel/csrc-r4k.c:            clocksource_mips.archdata.vdso_clock_mode = VDSO_CLOCK_R4K;

Other clock sources, like "OCTEON_CVMCOUNT" (arch/mips/cavium-octeon/csrc-octeon.c) don't seem to provide a VDSO clock mode and would thus return ENOSYS.
I'm not at all familiar with MIPS hardware. Do these configurations not exist in practice?

@prattmic
@draganmladjenovic
Any updates? I think we can merge the fix in Go1.16

@prattmic
@draganmladjenovic
Any updates? I think we can merge the fix in Go1.16

@mengzhuo Sorry, I didn't have a chance to test this on the offending versions of the kernel.  Your change looks fine to me. I guess that it should also be backported to 1.14 and 1.15.

@mengzhuo Sorry, I didn't have a chance to test this on the offending versions of the kernel.  Your change looks fine to me. I guess that it should also be backported to 1.14 and 1.15.


Compiler Bug - Import ability member 38.IdentId(3) not available

Was messing around with abilities and trying to discover whether or not I could create an ability for types that implement arithmetic operations and came across this issue:
An internal compiler expectation was broken.
This is definitely a compiler bug.
Please file an issue here: <https://github.com/roc-lang/roc/issues/new/choose>
Import ability member `38.IdentId(1)` not available
Location: crates/compiler/load_internal/src/file.rs:4547:29

This was the code I was attempting to compile:
module [
    NumberAbility,
]

NumberAbility implements
    add : a, a -> a where a implements NumberAbility

I'm using roc_nightly-linux_x86_64-2024-07-13-070d14a on MX Linux

Update: Seems like this is caused by trying to expose an ability without also exposing all of the functions associated with it


dotnet: 8.0.6 -> 8.0.7

Description of changes
security update, see also: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-35264
CC @NixOS/dotnet

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[X] Fits CONTRIBUTING.md.

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

I've got #326130 going, which also includes dotnet 6 and 9.  This one should probably go in first because of the CVE/backport, and then I'll rebase on it.
I'm hitting a few problems in nixpkgs-review.  Is anyone running one on this PR?

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

25 packages failed to build:

ArchiSteamFarm
bicep
btcpayserver
btcpayserver-altcoins
celeste64
dotnet-outdated
fsautocomplete
garnet
git-credential-manager
jellyfin
kavita
lubelogger
marksman
mqttmultimeter
naps2
nbxplorer
nexusmods-app
nexusmods-app-unfree
omnisharp-roslyn
osu-lazer
roslyn-ls
ryujinx
slskd
space-station-14-launcher
xivlauncher

19 packages built:

cavalier
csharp-ls
csharprepl
denaro
discordchatexporter-cli
dotnet-aspnetcore_8 (dotnetCorePackages.aspnetcore_8_0)
dotnet-runtime_8 (dotnetCorePackages.runtime_8_0)
dotnet-sdk_8 (dotnetCorePackages.sdk_8_0 ,dotnetCorePackages.sdk_8_0_3xx)
dotnetCorePackages.dotnet_8.aspnetcore
dotnetCorePackages.dotnet_8.runtime
dotnetCorePackages.dotnet_8.sdk
dotnetCorePackages.dotnet_8.sdk.artifacts
dotnetCorePackages.dotnet_8.sdk.packages
dotnetCorePackages.dotnet_8.vmr
dotnetCorePackages.sdk_8_0_1xx
libation
parabolic
technitium-dns-server
torrentstream

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

8 packages failed to build:

dotnet-outdated
garnet
naps2
nexusmods-app
nexusmods-app-unfree
omnisharp-roslyn
roslyn-ls
space-station-14-launcher

36 packages built:

ArchiSteamFarm
bicep
btcpayserver
btcpayserver-altcoins
cavalier
celeste64
csharp-ls
csharprepl
denaro
discordchatexporter-cli
dotnet-aspnetcore_8 (dotnetCorePackages.aspnetcore_8_0)
dotnet-runtime_8 (dotnetCorePackages.runtime_8_0)
dotnet-sdk_8 (dotnetCorePackages.sdk_8_0 ,dotnetCorePackages.sdk_8_0_3xx)
dotnetCorePackages.dotnet_8.aspnetcore
dotnetCorePackages.dotnet_8.runtime
dotnetCorePackages.dotnet_8.sdk
dotnetCorePackages.dotnet_8.sdk.artifacts
dotnetCorePackages.dotnet_8.sdk.packages
dotnetCorePackages.dotnet_8.vmr
dotnetCorePackages.sdk_8_0_1xx
fsautocomplete
git-credential-manager
jellyfin
kavita
libation
lubelogger
marksman
mqttmultimeter
nbxplorer
osu-lazer
parabolic
ryujinx
slskd
technitium-dns-server
torrentstream
xivlauncher

In @326130 I'm not getting nearly so many failures (I've fixed godot3-mono since my last nixpkgs-review).
I was left with:

beatsabermodmanager
garnet

With both seems to have issues with dependencies on the wrong runtime package versions.  I haven't had a chance to fix either of them yet.

Fix for garnet is in #326408

In my other MR beatsabermodmanager is broken.  It uses a combined 6+7 sdk, and the reason it's broken is that sdk 7 has a reference to the last known 6.0 runtime:
    <!-- .NET 6.0 -->
    <KnownFrameworkReference Include="Microsoft.NETCore.App"
                              TargetFramework="net6.0"
                              RuntimeFrameworkName="Microsoft.NETCore.App"
                              DefaultRuntimeFrameworkVersion="6.0.0"
                              LatestRuntimeFrameworkVersion="6.0.31"
                              TargetingPackName="Microsoft.NETCore.App.Ref"
                              TargetingPackVersion="6.0.31"
                              RuntimePackNamePatterns="Microsoft.NETCore.App.Runtime.**RID**"
                              RuntimePackRuntimeIdentifiers="linux-arm;linux-arm64;linux-musl-arm64;linux-musl-x64;linux-x64;osx-x64;rhel.6-x64;tizen.4.0.0-armel;tizen.5.0.0-armel;win-arm;win-arm64;win-x64;win-x86;linux-musl-arm;osx-arm64;maccatalyst-x64;maccatalyst-arm64;linux-s390x;linux-bionic-arm;linux-bionic-arm64;linux-bionic-x64;linux-bionic-x86;linux-ppc64le"
                              />

I wonder if these other failures are similar problems due to 6 and 8 getting out of sync.  I'm just thinking about how to solve this sort of thing in general...

closed in favor of #326130


templates(arc): update Node version in app.arc

Duplicate of https://github.com/remix-run/remix/pull/7513


Default security group

Would you consider adding a default security group for the alb? I would think almost any app using this module would need a security group declared to actually use the alb. I'm happy to make a pull request.

Security group should not be created by this module, see this code example:
https://github.com/terraform-aws-modules/terraform-aws-alb/blob/aaa2ff19c7f5df0f4f114696d722c336ae1f85e0/examples/complete-alb/main.tf#L28-L39


Tried using this solution.  Further got error ignored explicit argument 'orge'

Issue Report Checklist

[ ] Searched the issues page for similar reports
[ ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[ ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[ ] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[ ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
What steps reproduce the problem?

What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

Spyder version:
Python version:
Qt version:
PyQt version:
Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE

Closing because this is empty and doesn't seem like an Spyder error. Instead, if it's an error that shows up when running your code, we recommend you to ask for help in
https://stackoverflow.com


Do Not Track option

Optionally set a DNT HTTP header when fetching feeds and other resources. Value of 1 means “please don’t track”, value of 0 means “I’m okay with tracking”, and no header at all means “user preference unspecified.”  As per spec, this header must not be set at all by default.
Rational: Let users specify their tracking preference in a standards-compliant way.
I’ve only seen three feed serving servers set a “Vary: DNT” response header, one of which is my own. No idea how effective it would be or what effect it would have at this point in time.

Is it really relevant for RSS feeds?

Someone other than me would have to answer that. You can compare the bodies on A and B for an example.

Liferea offers this option.

IMHO the DNT header doesn't make sense for miniflux.
Miniflux only fetches the feed and no linked images or javascripts. Furthermore, scripts and tracking pixels are filtered by miniflux by default. But even if there is a tracking pixel left, it will be loaded by your browser and therefore the DNT header is send by your browser for this request.
In the end, the only information that can be used by the feed provider, is the ip address of the machine that fetches the feed. Assuming that miniflux runs on a server somewhere outside of your network, even this ip-address doesn't match the ip-address of your client/desktop and thus is useless for the feed provider.
And finally, to my knowledge almost all big advertising networks do not take care of the DNT header (see http://donottrack.us/implementations).


Cannot use arrow keys to select matches

After running :PickerEdit and typing some keys I cannot use the arrow keys to select a match. As soon as I hit an arrow key the terminal closes and E21: Cannot make changes, 'modifiable' is off is printed.
If I run :term myself, then try to use fzy from with it I can select matches like I can when running fzy directly on the command line.
Also if I run the following manually I can also use the arrow keys:
:call term_start(["sh", "-c", "printf '%s\n' a b c | fzy"])

I found the culprit: :tmap. It seems like the arrow key key codes are interpreted as individual bytes even though I have set ttimeout ttimeoutlen=100.

Closed as stale. Please reopen as required.


Execution from a virtualenv, similar to pipsi?

Pipsi wraps virtualenv, allows scripts to be executed globally, automatically activating & deactivating the necessary virtualenv on demand. Is it possible to do something similar with click?
Right now I'm working on some scripts that use click as an interface with setuptools integration for my package. While developing, I'm using a virtual environment - so the commands are only available while that virtual environment is activated. Once the script is done, the commands should be available globally (so it'll need to be installed globally, not in the virtual environment), however this is going to install a whole lot of dependences to the OS python, and will likely collide with other stuff.
So, similar to pipsi (mentioned above) is there anyway to make the commands available globally, while keeping the dependencies for commands isolated to a virtualenv?

You don't need to activate a virtualenv to execute binaries within it, just point at the binary directly.
$ /home/david/.virtualenvs/py3/bin/my_app

Thanks, I'll give that a try.

My solution for this was installing a script likethis into /usr/local/bin/.
#!/bin/bash -e
/home/roryhart/.virtualenvs/foo/bin/foo "$@"

Closing this, not sure why this is a ticket :)


add oldQueryLimitMins option to helm chart

Adds the option to set oldQueryLimitMins in the values.yaml file.
I also bumped the chart version from 1.8.3 to 1.8.4.

@timmy59100 Thanks for submitting this. Your code changes look good. Would you mind adding a row to the README that describes this setting, similar to the other chart settings?
https://github.com/jertel/elastalert-docker/blob/master/chart/elastalert/README.md

@timmy59100 Thanks for submitting this. Your code changes look good. Would you mind adding a row to the README that describes this setting, similar to the other chart settings?
https://github.com/jertel/elastalert-docker/blob/master/chart/elastalert/README.md

I added the README entry.

I added the README entry.


Add "Show More" for metadata in details panel

Pick top n things, put everything else behind a show more.


Feature Request: support arm64 binaries for newer macs

Proposal to add and recommend a new platform entry option for the darwin OS with the arm64 architecture.

Depends upon the completion of https://github.com/cloudfoundry/cli/issues/2292


tgbot is broken

Take a look in my comment here: https://github.com/rpotter12/whatsapp-play/pull/92

@xandao6 I will fix this very soon :)

@rpotter12 fixed?