Scrollbar with ListView shows 2 scrollbars

I have a Scrollbar as an ancestor to a ListView so that I can position the scrollbar a bit further away from the list of items.
There are now 2 scrollbars painted for the same list. Also, the scrollbar that's drawn by the Scrollbar widget doesn't scroll all the way down its height. Instead, the Scrollbar widget makes its own scroll track the same pixel height as the ListView, which isn't the expected behavior. The Scrollbar widget should scroll from its top to its bottom.
https://user-images.githubusercontent.com/7259036/157140059-c40e3faf-76a2-4c3f-894d-a08745369759.mov
I copied the code from the Scrollbar docs and adjusted the code to demonstrate the issue. This code can be copied and pasted into DartPad (Flutter 2.10.3 Dart SDK 2.16.1):
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      home: Scaffold(
        appBar: AppBar(title: const Text(_title)),
        body: const Center(
          child: MyStatefulWidget(),
        ),
      ),
    );
  }
}

class MyStatefulWidget extends StatefulWidget {
  const MyStatefulWidget({Key? key}) : super(key: key);

  @override
  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
}

class _MyStatefulWidgetState extends State<MyStatefulWidget> {
  final ScrollController _firstController = ScrollController();

  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(
        builder: (BuildContext context, BoxConstraints constraints) {
      return SizedBox(
              width: constraints.maxWidth / 2,
              // Only one scroll position can be attached to the
              // PrimaryScrollController if using Scrollbars. Providing a
              // unique scroll controller to this scroll view prevents it
              // from attaching to the PrimaryScrollController.
              child: Scrollbar(
                isAlwaysShown: true,
                controller: _firstController,
                child: Padding(
                  padding: const EdgeInsets.all(48.0),
                  child: ListView.builder(
                      controller: _firstController,
                      itemCount: 100,
                      itemBuilder: (BuildContext context, int index) {
                        return Padding(
                          padding: const EdgeInsets.all(8.0),
                          child: Text('Scrollable 1 : Index $index'),
                        );
                      }),
                ),
      ),);
    });
  }
}

Hi @matthew-carroll
Can you try this to position scrollbar away from list ?
child: SingleChildScrollView(           child: Padding(             padding: const EdgeInsets.only(right: 150),             child: Column(children: [               ...List.generate(100, (index) => Padding(                 padding: const EdgeInsets.all(20.0),                 child: Text('Scrollable 1 : Index $index'),               )).toList()             ]),           ),         ),

No, I can't use that. I have a header that doesn't scroll and what you have there wouldn't support the header. Additionally, your approach makes it impossible to utilize the ListView.builder() modality.
Regardless, I believe that I'm using the widgets as intended. If that's the case, then this is a bug and should be fixed.

this can make the header fixed.
child: Column(           children: [             Text('Header Widget'),             Expanded(               child: SingleChildScrollView(                 child: Padding(                   padding: const EdgeInsets.only(right: 150),                   child: Column(children: [                     ...List.generate(100, (index) => Padding(                       padding: const EdgeInsets.all(20.0),                       child: Text('Scrollable 1 : Index $index'),                     )).toList()                   ]),                 ),               ),             ),           ],         ),

Thanks for the report and code sample @matthew-carroll. Using latest master and stable, I see the same behavior:

 stable, master flutter doctor -v

[✓] Flutter (Channel stable, 2.10.3, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 2.10.3 at /Users/dhs/documents/fluttersdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (11 hours ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

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

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

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

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

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

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.11.0-0.0.pre.831, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 2.11.0-0.0.pre.831 at
      /Users/dhs/documents/fluttersdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 3172065fba (3 hours ago), 2022-03-08 19:35:20 -0600
    • Engine revision 5c760759fe
    • Dart version 2.17.0 (build 2.17.0-182.0.dev)
    • DevTools version 2.11.1

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

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

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

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

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

! Doctor found issues in 1 category.

/cc @Piinks

Is the second scrollbar you are seeing the one that is automatically added when running on desktop (+ web on desktop)?
This guide explains where they come from and how to configure or disable:
https://docs.flutter.dev/release/breaking-changes/default-desktop-scrollbars
https://github.com/flutter/flutter/blob/e8af40f06b24a0b4bba2bd6e08679e7fc95b0153/packages/flutter/lib/src/material/app.dart#L769

Adding a ScrollConfiguration widget around the ListView and then copying an ancestor ScrollBehavior and disabling the scrollbar successfully removes the scrollbar from the ListView.
If this is the intended behavior, you can close this issue.
Updated code:
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      home: Scaffold(
        appBar: AppBar(title: const Text(_title)),
        body: const Center(
          child: MyStatefulWidget(),
        ),
      ),
    );
  }
}

class MyStatefulWidget extends StatefulWidget {
  const MyStatefulWidget({Key? key}) : super(key: key);

  @override
  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
}

class _MyStatefulWidgetState extends State<MyStatefulWidget> {
  final ScrollController _firstController = ScrollController();

  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(
        builder: (BuildContext context, BoxConstraints constraints) {
      return SizedBox(
              width: constraints.maxWidth / 2,
              // Only one scroll position can be attached to the
              // PrimaryScrollController if using Scrollbars. Providing a
              // unique scroll controller to this scroll view prevents it
              // from attaching to the PrimaryScrollController.
              child: Scrollbar(
                isAlwaysShown: true,
                controller: _firstController,
                child: Padding(
                  padding: const EdgeInsets.all(48.0),
                  // Here's the ScrollConfiguration
                  child: ScrollConfiguration(
                    behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false),
                    child: ListView.builder(
                        controller: _firstController,
                        itemCount: 100,
                        itemBuilder: (BuildContext context, int index) {
                          return Padding(
                            padding: const EdgeInsets.all(8.0),
                            child: Text('Scrollable 1 : Index $index'),
                          );
                        }),
                  ),
                ),
      ),);
    });
  }
}

Nice! Thanks for updating! I will close this then as WAI.


I have added these lines to my sensors.yaml and I restarted HA.
But I do not see one of the defined devices.
What  is wrong? Where do I find them? Is it not necessary to enter the IP-adress of the gateway?
Regards Michael
#Mobile Alerts / Dustmann

platform: mobile_alerts
phone_id:<PHONE_NUMBER>
devices:

device_id: 0844999DF095
name: Regensensor Garten
type: r
device_id: 0358957DD926
name: Temperatur Gartenhaus
type: t1
device_id: 0358957DD926
name: Luftfeuchtigkeit Gartenhaus
type: h1

Your devices are reporting to cloud correctly
curl -d "{'deviceids': '0358957DD926'}" -H "Content-Type: application/json" https://www.data199.com/api/pv1/device/lastmeasurement

{
  "devices": [
    {
      "deviceid": "0358957DD926",
      "lastseen":<PHONE_NUMBER>,
      "lowbattery": false,
      "measurement": {
        "idx": 228537,
        "ts":<PHONE_NUMBER>,
        "c":<PHONE_NUMBER>,
        "lb": false,
        "t1": 7.6,
        "h": 82.0
      }
    }
  ],
  "success": true
}

Please check logs of HA. Otherwise you should find "entities" named by provided names. Not devices.

Thank you.I found them under entities


Add noncoding region based reference datasets

This PR adds in two noncoding region reference datasets: Siwei's noncoding constraint z score and SCREEN. It also adds a general function for adding any region based reference dataset should we get one in the future. The SCREEN dataset required a little bit of manipulation so I wrote a script for writing that HT. Siwei's is a direct hl.import_bed -> write ht situation so I did not write a script for that but can add it if you think it is necessary.

You're right, I thought CADD got us around this but thinking more, that is not the case...I'm going to move this a schema class annotation

@hanars , this has been tested using the new DAG code in https://github.com/broadinstitute/seqr-pipeline-airflow/pull/88 which produced the ES index r000_test_case__wes__grch38__variants__v02__vcfv16__20220919. The two new ES fields are gnomad_non_coding_constraint_z_score, a float,  and screen_region_type, an array of strings. The test case is a small random region of the exome and is quite small.

@hanars, we only have 38 right now. We could lift over the regions to generate the resource for 37 but I think that should be another ticket which makes me think we need to change the behavior here to act more like hgmd?


Day48: Maximum Number of Vowels in a Substring of Given Length - SlidingWindow

Maximum Number of Vowels in a Substring of Given Length
https://leetcode.com/problems/maximum-number-of-vowels-in-a-substring-of-given-length/
Given a string s and an integer k, return the maximum number of vowel letters in any substring of s with length k.
Vowel letters in English are 'a', 'e', 'i', 'o', and 'u'.

Example 1:
Input: s = "abciiidef", k = 3
Output: 3
Explanation: The substring "iii" contains 3 vowel letters.
Example 2:
Input: s = "aeiou", k = 2
Output: 2
Explanation: Any substring of length 2 contains 2 vowels.
Example 3:
Input: s = "leetcode", k = 3
Output: 2
Explanation: "lee", "eet" and "ode" contain 2 vowels.


Awesome Books Project

In this Milestone We:

Create index.html, styles.css and script.js files.

Update README.md file.

Create a collection that keeps a list of books.

Create a function to add a new book to the collection, with title and author.

Display all books saved in the collection in the top part of the page.

@TedLivist  Thanks for your comments. You have not provided enough feedback on this pull request change. The live demo section clearly says "Coming soon". Please while we will proceed with these changes, can you provide enough feedback why you have requested these changes? Thank you


Create website index file

This adds an index file.

This adds an index file.

Are you sure it does? Hahahahaha

This is a comment

mark
down
table

thing
thingy
things


Update Sample Transform

Update settings when a sample transform is applied. Also, add an example to the label transforms notebook in the doc guides.

related: #61


Added hotfix check that skips merge develop

Also removed use of .m2/repository cache as it is unused in a release
Related Issue

Resolve #2468

Codecov Report

Merging #2470 (316548c) into develop (85324d9) will decrease coverage by 0.61%.
The diff coverage is 68.96%.

@@              Coverage Diff              @@
##             develop    #2470      +/-   ##
=============================================
- Coverage      66.23%   65.61%   -0.62%
+ Complexity      2397     2396       -1
=============================================
  Files            965      834     -131
  Lines          31628    26512    -5116
  Branches        3835     3193     -642
=============================================
- Hits           20948    17396    -3552
+ Misses          9041     7697    -1344
+ Partials        1639     1419     -220

Impacted Files
Coverage Δ

.../src/main/java/uk/gov/gchq/gaffer/store/Store.java
70.36% <ø> (ø)

...n/java/uk/gov/gchq/gaffer/store/schema/Schema.java
76.20% <0.00%> (-0.94%)
:arrow_down:

...gov/gchq/gaffer/federatedstore/FederatedStore.java
90.24% <ø> (ø)

.../gchq/gaffer/proxystore/operation/GetProxyUrl.java
56.25% <40.00%> (ø)

...affer/proxystore/operation/GetProxyProperties.java
56.25% <56.25%> (ø)

...ffer/store/operation/handler/GetTraitsHandler.java
75.00% <60.00%> (-2.42%)
:arrow_down:

...hq/gaffer/rest/controller/OperationController.java
76.05% <69.69%> (-6.88%)
:arrow_down:

...ration/handler/impl/FederatedGetTraitsHandler.java
75.00% <73.33%> (-25.00%)
:arrow_down:

...q/gaffer/federatedstore/FederatedGraphStorage.java
79.85% <83.33%> (+0.22%)
:arrow_up:

...e/operation/handler/GetProxyPropertiesHandler.java
83.33% <83.33%> (ø)

... and 147 more

Continue to review full report at Codecov.

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


encoding/csv:  multiple-quoted in a field, Unable to correctly identify

Go version
GOVERSION="go1.19.13", GOARCH="amd64"
Output of go env in your module/workspace:
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
...
GOVERSION="go1.19.13"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"

What did you do?
I want to read data from csv file and insert it into mysql, mysql table struct is:
CREATE TABLE `test` (
  `"name'"` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3

1. my csv file:
""name'""
"NULL"
"""name'"""

2. my code demo:
r := csv.NewReader(os.Stdin)
r.LazyQuotes = true
lst, err := r.Read()
logger.Warningf(context.Background(), "lst: %+v", lst)

the lst result is :
["name'"
"NULL]
What did you see happen?
My code prints the result：
["name'"
"NULL]
What did you expect to see?
My expected result should be： ["name'"]
So, is this a BUG or is there some wrongs in my code?
What should I do to get the expected result？

that doesn't look like a valid quoting of values for csv

that doesn't look like a valid quoting of values for csv

Can you explain why this is not a valid CSV value?
""name'""
"NULL"
"""name'"""

read from csv.NewReader should be?
"name'"
NULL
""name'""

LazyQuotes = true, so quotes in fields don't have to be doubled:
It's parsed as:

": start of quoted field
": free floating quote
name': text
"": doubled quote
newline: text
": free floating quote
NULL: text
" end of quoted field


fix: avoid failing if less than 3 pipelines

I found the home page was barfing with an index out of bounds error if there were less than 3 pipelines in a cluster
Signed-off-by: James Strachan<EMAIL_ADDRESS>

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign jstrachan
You can assign the PR to them by writing /assign @jstrachan in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: vbehar
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [vbehar]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Move the internal procedures calls to direct API calls

i.e. dbms.cluster.role()
This will allow to reduce the amount of queries logged inside query log
N.b. we can do it only by reflection otherwise we have to include enterprise packages

Things to watch out for:

API incompatibilities between 4.0, 4.1, 4.2

Eventual PR to 4.0+ only, no need to port to 3.5

Need verification that race condition actually improves

Problems to be solved:
-- Query log spam (dbms.role())
-- Race condition on leadership detection & writes

Things to watch out for:

API incompatibilities between 4.0, 4.1, 4.2

Eventual PR to 4.0+ only, no need to port to 3.5

Need verification that race condition actually improves

Problems to be solved:
-- Query log spam (dbms.role())
-- Race condition on leadership detection & writes


Difference between github release and pypi release

Hello,
I noticed that the github and the pypi releases of 0.10.6 are different. Why?
I am asking because with the same configuration, the github release does not seem to work, but the pypi one does.

I don't have a good answer to that, all I can say is that @posativ who is the only one who can publish to pypi is not often available and pypi package tends to stay behind… On github @jelmer and I have some write right and use it a bit more but still not super active too.


Added 'select' on trigger to handle calendar selection.

Adding 'select' on condition to modify 'start' param to add 'column' attribute. This can now determine the column on which the selection was made.
PS:  Your code is really helpful. Thanks! :)

Merged and released as version v1.10. Thanks @bnicart! 👍

Thanks @mherrmann! :D


Minor fixes

Coverage remained the same at 92.534% when pulling 22b7642f46b120c132480861651aeb04c5e5d024 on eatonphil:minor-fixes into 39825756ab15ff6ac0f5c5e2e09bf207ecbb4f08 on linode:master.

Screen? :)  A Linode's details page would be good enough.

Coverage remained the same at 92.534% when pulling 22b7642f46b120c132480861651aeb04c5e5d024 on eatonphil:minor-fixes into 39825756ab15ff6ac0f5c5e2e09bf207ecbb4f08 on linode:master.

Coverage remained the same at 92.534% when pulling 4cea7ff239d7ce4894247ed7f34a80abdb2e9d6b on eatonphil:minor-fixes into 39825756ab15ff6ac0f5c5e2e09bf207ecbb4f08 on linode:master.

Coverage remained the same at 92.534% when pulling 04bf6f440a0e1b3062ae9b43bf0fbe01cfa66b1d on eatonphil:minor-fixes into 39825756ab15ff6ac0f5c5e2e09bf207ecbb4f08 on linode:master.

Changes made, things tested.

thanks!


ANSI/VT \e[7m and \e[27m (reverse/negative) do not work correctly after 24-bit color has been used

Concerns Redstone 3 RTW / Windows 10 ver. 1709, tested on build 16299.19. Affects all WSL distros and more broadly, all Win32 CUI apps using VT.
VT escape control sequences "\x1B[7m" and "\x1B[27m" are used to turn reverse video ("negative", but not technically negative) on and off.
They work fine until the console processed a 24-bit color "\x1B[38;2;r;g;bm" or "\x1B[48;2;r;g;bm". At that point, negative off (27) has no effect or even acts erratically, even if the color has been reset ("\x1B[39m", set back to a base 16 color (\x1B[3(0-9)m"), or if SGR has been reset ("\x1B[m") in the meantime.
echo -e "\e[7m Reversed \e[27m Normal \e[38;2;250;20;40m 24-bit \e[36m 16-colors \e[7m Reversed \e[27m Normal \e[39m Default \e[7m Reversed \e[27m Normal \e[m Reset \e[7m Reversed \e[27m Normal"

This is a bug in conhost that affects all Windows CUI apps that uses VT, as the following repro code shows:
#include <windows.h>

#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif

int main()
{
	HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);

	DWORD dwMode = 0;
	GetConsoleMode(hOutput, &dwMode);
	dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
	SetConsoleMode(hOutput, dwMode);

	LPTSTR pszTestString = TEXT("\x1B[7m Reversed \x1B[27m Normal \x1B[38;2;128;5;255m Set 24-bit foreColor \x1B[7m Reversed \x1B[27m Normal \r\n");
	WriteConsole(hOutput, pszTestString, _tcslen(pszTestString), NULL, NULL);

	getchar();
	return 0;
}

Calling SetConsoleScreenBufferInfoEx or showing and OK'ing the console's properties dialog seems to reset the issue until next time 24-bit color is used.

This bug affects all Windows CUI apps that uses VT, as the following repro code shows:
`
#include <windows.h>
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif
int main()
{
HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
DWORD dwMode = 0;
GetConsoleMode(hOutput, &dwMode);
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
SetConsoleMode(hOutput, dwMode);

LPTSTR pszTestString = TEXT("\x1B[7m Reversed \x1B[27m Normal \x1B[38;2;128;5;255m Set 24-bit foreColor \x1B[7m Reversed \x1B[27m Normal \r\n");
WriteConsole(hOutput, pszTestString, _tcslen(pszTestString), NULL, NULL);

getchar();
return 0;

}
`

@zadjii-msft Thanks for looking into it and fixing it.
Do you know when the fix might appear in insider build? I'm still seeing the issue in 17093 and would hate for something to go wrong and get unnoticed until it's too late for RS4.

This issue was moved to Microsoft/console#78


Code available

Just wondering if we can see the code?

I'm afraid the code release is WIP now.

How long can we expect the great code? Thank you!


3.11 SDK does not build

3.11 sdk .deb file from here is missing device_private_ptr.h causing it to not build.
Was not able to find it in the repo either. Somebody did the big whoopsie and forgot to commit it perhaps.(I checked git logs for its deletion and found nothing)
In the meantime how do you access prior 'in-dev' versions?

Hello, apologies for the late answer. Yes, the file has recently been added to our wrapper generation, but is missing from the public includes. We'll provide a patch today addressing the issue today.
Meanwhile, please find attached the missing file below. You can add it to your openDAQ installation.
device_private_ptr.zip


Lookup Symbol isn't accurate on the first use

Godot version
7bb963e
System information
Windows 10 x64
Issue description

Notice how on the first jump the method was nowhere in focus. It worked on the second click, when the doc was already opened.
Steps to reproduce

Add code with some built-in class' method
Ctrl + Click that method
You are thrown somewhere into editor help, but the method is not in sight

Minimal reproduction project
No response

This bug is still present in v4.0.alpha7.official [3e9ead05f]

This bug is still present in v4.0.alpha7.official [3e9ead0]

Can you post the code snippet you used to trigger the issue?

I can trigger the issue using this code by Ctrl-clicking any of the functions:
func test():
	'foo'.begins_with('f')
	'foo'.ends_with('o')
	[1,2].sort()

The bug happens only once per document page (in this case String and Array pages). So the bug happens once for either begins_with or ends_with and once for sort. Any subsequent Ctrl-clicks to already opened page work and the correct location on the page is shown. Closing the page after the first use does not affect the situation, subsequent Ctrl-click still works.
At first I was going to report a new issue:

Search Help shows wrong location on first search

start Godot
press F1 to open Serch Help window
search "sort" (Array/sort)

Array's document page opens, but the page location is wrong. Instead of displaying the sort method, bottom of the page is shown. This happens always with the first search. Subsequent searches show the correct location as expected.

But my guess is that these bugs have a same root cause.

I tried the above code and can't reproduce the issue. The only problem is that the view isn't centered on the function.

This is what I see when I Ctrl-click begins_with first time. Page is scrolled to the bottom. Second Ctrl-click shows the correct page position. (I'm using Win64 version.)

Maybe this depends on the resolution/UI scale.

My monitor has 3440 x 1440 resolution, Windows 10 is using 100% scaling and also Godot is using the default 100% Display Scale. Chaging the Display Scale doesn't change how this works. The window size of Godot doesn't change anything either.
Godot v3.4.4.stable.official [419e713a2] works as expected and always shows the correct page location.

I tested different alpha versions:
v4.0.alpha3.official [256069eaf] works (also alpha1 and alpha2 work)
v4.0.alpha4.official [f47097973] bugs

This works on v4.0.beta4.official [e6751549c]. I don't know which exact version fixed this, but at least with this version you jump to the correct place on the first click.


Added two words, removed one

This one should be able to be merged properly. I've added two words and removed one word which is, by default, said correctly--my name. The accented word would be pronounced Noelle which I agree with. Non-accented, in U.S. English I'd pronounce it the default way.

@nromey Thanks for your efforts. I just merged it. It's great to know that with your assistance your name is pronounced correctly by Eloquence/IBMTTS, once again! 😁

@nromey I just made a commit, and modified one of your words:
bumsucking	[.1bHm.2sH.0kIG] bunged	[bHGd]
bunging	[.1bHG.0IG] pteromerhanophobia	[.2tEr.0x.0mR.2ha.0no.1fo.0bi.0x]
As for "pteromerhanophobia," the ph sound in "phobia" should receive the major, primary stress. This is in accordance with all English words which are relevant to phobias.
And while I was there, I added "bunged."

@nromey One more suggestion:
Please paste your additions/modifications in the comments section, I mean here, as you make a commit or commits. That way, we can see the changes faster without the need to open the Github editor or the Github Desktop app, and further modifying them becomes much easier.


Port to Android

Summary
This pull gets this repo to build natively on Android and pass all its tests.
Dependencies
None
Testing
Install the Termux app on an Android phone or tablet, install the Swift 5.5 and git packages with pkg install git swift, clone this repo, and run swift test -j 9 as you would elsewhere.
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.

[ ] Added tests - no need as the goal is to just get the existing tests running
[x] Ran the ./bin/test script and it succeeded
[ ] Updated documentation if necessary - nothing extra to be noted

Since this pull mostly consists of adding conditional compilation checks for Android where needed, let me point out where I didn't add them:

Switching to JSON here seemed to make no difference.
I don't know what this is about, but no difference again.
Concurrently rendering worked fine.
These constants appear to be unused.

In addition, I ran all the tests on Android first and only disabled the tests that failed, so three tests that are disabled for Linux in ConvertServiceTests.swift and eight tests in NavigatorIndexTests.swift are enabled for Android. There's a strange issue where if I run the tests in parallel, two LogHandle tests fail only because they're grabbing extra lines from stdout, which may be an XCTest bug.
When I run the tests serially, it reports all 976 tests passing.

@swift-ci please test

We actually have a related bug tracking supporting Android toolchain builds (https://bugs.swift.org/browse/SR-15321). Is that something we should consider addressing in this PR as well?

Yes, I was surprised to see that. 😄 I have only built this repo with the Termux Swift toolchain as detailed above, not with your Python script. I will try it with your script later and submit a separate pull for that.

DocC’s bin/test script that we encourage contributors to use runs tests in parallel so I’d prefer if we continue to disable these tests for now and file a bug to track the issue with LogHandle.

I simply modified bin/test so that step passed, and all subsequent steps passed too. No need to disable LogHandle for Android, as it passes when run serially. I cannot reproduce that issue on linux, so this may be a bug that crept into XCTest on Android. I will investigate it further, but it shouldn't affect getting this pull in.
No problem on waiting till this gets into the trunk toolchain, looks like the linux CI is broken right now.

@swift-ci please test

Thank you again @buttaface! I think we are good to merge.


Add Homebridge start delay option

Is your feature request related to a problem? Please describe:
Each time I reboot my server, I have to manually restart the Homebridge service because it starts up before a dependent service (unifi video). This causes a plugin to crash (because the service’s API is not online yet) and Homebridge to crash.
Describe the solution you'd like:
A simple delay option either in the config file or even when installing hb-service
Describe alternatives you've considered:
Before using hb-service, I added a simple wait timer to the script that launched Homebridge as a service.
Additional context:
hb-service.ts has a delay for raspberry pi zero.  I imagine we could utilize this space to add some sort of optional delay setting.

I like the idea, as I am encountering the same with my plugin homebridge-signalk.
Even more sophisticated (but bigger change) would be a load delay time per plugin.
[1] https://www.npmjs.com/package/homebridge-signalk

I like the idea, as I am encountering the same with my plugin homebridge-signalk.
Even more sophisticated (but bigger change) would be a load delay time per plugin.
[1] https://www.npmjs.com/package/homebridge-signalk

The same by me with phoscon. I need a delay to :)

The same by me with phoscon. I need a delay to :)

This is still an issue, but I was able to circumvent it by adding a script to restart the Homebridge service 15 seconds after server start.

Have same challenge loading Homebridge Music plug-in on Mac OS X

This is how I add a startup delay for homebridge service with systemd
sudo systemctl stop homebridge
sudo systemctl disable homebridge.service
sudo nano /etc/systemd/system/homebridge.timer
sudo systemctl daemon-reload
sudo systemctl enable homebridge.timer
sudo reboot
text for homebridge.timer delay in seconds
_[Unit]
Description=Delay
[Timer]
OnBootSec=60
[Install]
WantedBy=multi-user.target_


updates for CUBA9

https://github.com/tensorflow/tensorflow/issues/12052

could you show me how to add the new path (C:\cudnn-9.1-windows10-x64-v7\cuda\bin) into my environment?
Thank you


Fix use of serializers in get requests

It turns out with get requests, you can use the query_serializer parameter of swagger_auto_schema. This removes the need for us to use manual_parameters, and allows us to handle get request parameters in a similar way to that of put/post requests.

and allows us to handle get request parameters in a similar way to that of put/post requests.

Can you elaborate on what you mean by this? I don't see any changes here in how we're handling request parameters. This change seems to just affect our swagger schema generation by using serializers instead of manual parameters.

You're right, in this PR, we don't use any of the new serializers to actually serialize data, just by happenstance. Here is how we would use them
serializer = SomeGetRequestSerializer(data=request.query_params)
serializer.is_valid(raise_exception=True)

serializer.validated_data  # <-- Contains valid data

Also, I see the advantage in this approach for requests that might have several parameters. Would you suggest using this approach for endpoints that expect only one parameter? What would that look like? A serializer with a single field?

It would just be a serializer with a single field yeah. I think generally speaking it's worth using even with just one parameter, as it allows us to leverage serializers for data validation and automatic schema generation.


[BSI][20200609] NGINX Version Disclosure

Rating: Low
Description:
The Nginx web server discloses its version in the HTTP Server header field and
HTTP error pages. Disclosing version numbers of used software components could
allow attackers to prepare further attacks. For instance, an attacker could
use publicly known vulnerabilities to harm the service. They could also try to
find new vulnerabilities in the code of this exact version.
Proof of Concept:
The following request and response show the nginx version disclosure
GET / HTTP/1.1
Host: verification-2554e68b.coronawarn.app
User-Agent: curl/7.64.1
Accept: /
HTTP/1.1 404 Not Found
Server: nginx/1.16.1
Date: Tue, 09 Jun 2020 07:55:10 GMT
Content-Type: text/html
Content-Length: 153
Connection: keep-alive

404 Not Found

404 Not Found
nginx/1.16.1

Added server_tokens off to helm config


Expand tutorials of writing array blocks

With some of my recent work, I have extensively utilized the functionality of tiled.client.array.ArrayClient.write_block to write back single slices of 2d arrays to client during the result generation phase.
If needed, I am happy to tailor my codes and contribute a paragraph or two under the tutorial of writing arrays, as it might be beneficial for future developers to leverage on.
What I am thinking about to cover:

Create Array structure using ArrayStructure.from_array
Divide structure into desired chunks
Pre-allocate space as a container in Tiled client
Write blocks according to index

Does that sound like a good idea?

Great, @danielballan a small PR #696 just submitted, feel free to make changes!


I Want a Win10 Widgets!!

📝 Provide a description of the new feature
What is the expected behavior of the proposed feature?  What is the scenario this would be used?
I Want a Win10 Widgets that can show cpu-gpu-memory summary  include temperature, occupancy and so on.
If you'd like to see this feature implemented, add a 👍 reaction to this post.

Great idea, tracked in #1354


setup SciML Style

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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 91.124%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
462

Relevant Lines:
507

💛  - Coveralls


How do I use the LR Scheduler on a general task training?

Hi,
This project is sophisticated, exciting for me.
How do I use the LR Scheduler on a general task training?
As far as I saw, flash.Task is not designed to allow me to configure the LR scheduler.
Also, there is no way to set any parameters other than the LR on the optimizer (like momentum, weight_decay, etc.)
To get around this, I created a class inherited from flash.Task as follows:
class MyTask(flash.Task):
    def __init__(self, model, optimizer: torch.optim.Optimizer, scheduler: dict, *args, **kwargs):
        super().__init__(model, *args, **kwargs)
        self.optimizer = optimizer
        self.scheduler = scheduler

    def configure_optimizers(self):
        return [self.optimizer], [self.scheduler]

and use like:
model = ...
optimizer = torch.optim.SGD(model.parameters(), lr=args.lr, momentum=0.9, weight_decay=5e-4)
scheduler = {'scheduler': CosineAnnealingLR(optimizer, T_max=200), 'interval': 'epoch', 'frequency': 1}

task = MyTask(model, loss_fn=torch.nn.functional.cross_entropy, optimizer=optimizer, scheduler=scheduler)

flash.Trainer(...).fit(task, train_data_loader, val_data_loader)

(Reason why I wanted to adopt this was to get reproduction: https://github.com/kuangliu/pytorch-cifar)
Actually, I don't like this extension.
This loses the simplicity of the flash.
Is there any good ideas? Thank you.

@teddykoker

I believe, a scheduler should be exposed to the tasks as an optional argument in https://github.com/PyTorchLightning/lightning-flash/blob/master/flash/core/model.py. That would enable this to be much cleaner.


component manager pulls in and build component that is excluded by Kconfig (IDFGH-10513)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.0
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
I use component manager to manage a few custom components of a project.
One of the custom components is ble_gatt_server, which depends on esp-idf/components/bt.
I want to make the build time decision to enable or disable the component ble_gatt_server. So I added a Kconfg:
config BLE_GATT_SERVER
  bool "Enable BLE GATT server"
  depends on BT_ENABLED

In the main component CMakeLists.txt, I have:
set(priv_requires "")
if(CONFIG_BLE_GATT_SERVER)
  list(APPEND priv_requires "ble_gatt_server")
endif()
idf_component_register(SRCS "main.cpp"
    INCLUDE_DIRS "."
    PRIV_REQUIRES "${priv_requires}"
    )

In main component idf_component.yml, I have:
  ble_gatt_server:
    path: path/to/ble_gatt_server/

I would expect when I disable CONFIG_BLE_GATT_SERVER, ble_gatt_server will not be included and compiled since it is not in PRIV_REQUIRES list.
What is the actual behavior?
No matter whether I enable or disable CONFIG_BLE_GATT_SERVER, ble_gatt_server is always pulled in by component manager and get compiled.
My understanding is CMakeLists.txt specifies what components are needed. idf_component.yml specifies where to retrieve the source code of the required components.
But it seems that is not the case.
Steps to reproduce.

Step
Step
Step
...

Build or installation Logs.
No response
More Information.
No response

Hi @kylezhou, the issue you are running into happens because in IDF build system, component requirements (as passed to idf_component_register) can't depend on Kconfig options. Kconfig option values are determined after the list of components to be built has been decided, so at the time of component registration all the options are still undefined.
The sequence of events is:

component manager inspects idf_component.yml files
build system goes over the components, evaluating component requirements to decide which components should be included into the build
once the list of components had been determined, Kconfig is used to build the sdkconfig file.

It's not possible to affect the outcome of the preceding step by the result of the next one.

Thanks @igrr for the prompt reply.

component requirements (as passed to idf_component_register) can't depend on Kconfig options.

This sounds like a big constraint.
But since Kconfig comes from various components, this makes sense. We need to get all required components first before we know all configs.
So in my use case, there isn't a good way to enable/disable optional components. Any suggestions?
One option I can think of is to change the optional component's CMakeLists.txt, so that when the Kconfig is not enabled, it does not include any C source files (thus it becomes an empty component).

@kylezhou Sorry for the late response.

One option I can think of is to change the optional component's CMakeLists.txt, so that when the Kconfig is not enabled, it does not include any C source files (thus it becomes an empty component).

Yes, I'm afraid that's the only option for the time being. We are looking at improving the way the build system performs dependency tracking (following the discussion in #10579), we will try to address this problem in the future.


missed X86 Intel Comet Lake detection

missed Comet Lake detection
cpuinfo_x86.h
  INTEL_CML,           // COMET LAKE

no stepping 12 case for U Comet Lake flavor
https://github.com/google/cpu_features/blob/db9ad9fc2ccfbbb1815c1459b2151d57b773ddd3/src/impl_x86__base_implementation.inl#L536

          case 12:
            return INTEL_CML;  // https://en.wikichip.org/wiki/intel/microarchitectures/comet_lake

no case CPUID(0x06, 0xA5) for S/H Comet Lake

          case CPUID(0x06, 0xA5):
            return INTEL_CML;  // https://en.wikichip.org/wiki/intel/microarchitectures/comet_lake

@ajax16384 do you mind adding a test as well?
Something like https://github.com/google/cpu_features/commit/3c4801d12d9bec823d03a572f4f53cd42fa02b42#diff-35206f4b4b826d1011c7f40612491fcc1d480572cd4ea48e1bbd73049cf969a2

@ajax16384 do you mind adding a test as well? Something like 3c4801d#diff-35206f4b4b826d1011c7f40612491fcc1d480572cd4ea48e1bbd73049cf969a2

ok


Integrate webpack-bundle-analyzer

Integrate webpack-bundle-analyzer https://github.com/webpack-contrib/webpack-bundle-analyzer into our production build as optional argument.
In the normal configuration, the build shows a dynamic HTML page, but does not finish and has to be manually interrupted to be stopped.l
Therefore, we need to make this optional, because otherwise we might have problems in the production build.

The report is now generated with each production build (yarn webpack:prod) and saved in build/resources/main/static/report.html


What's the status of reverse proxy?

Hey,
First of all I just want to say thanks for an amazing project.
Curious whats the status for reverse proxies? Currently it feels hard to achieve and the only way I get this to work is without SSL and using my ip address to the VPS or I might be missing something but the docs is lacking around this area.
Some related issues:

https://github.com/hyperdxio/hyperdx/issues/441
https://github.com/hyperdxio/hyperdx/pull/14
https://github.com/hyperdxio/hyperdx/issues/12

@lindesvard totally hear you, this is something we're looking to address in our v2 release to make it easier to self-host with a custom domain. Fwiw for SSL it'll still require a user to set up their preferred reverse proxy for SSL certs themselves (nginx, caddy, etc) - but the v2 release should make it substantially easier to do so without re-building images and dealing with multiple containers.
In v1 you'll need to rebuild the frontend image to bake in the custom domain and host both frontend/backend containers behind a reverse proxy to achieve that. We know it's not ideal and we're looking to streamline that for v2 with a more simplified deployment method.

Thanks, looking forward to v2 🔥


:bug: isAriaDisabled deprecated in PF V5

Disable properly the row delete option (dropdown) when an application is involved in migration wave.
Note: doesn't need to be backported)

Oh sorry, I was testing the bulk dropdown and not the table row one. Hmm, this does break the tooltip but it fixes the disabled behavior. We need to figure out how to keep both -- maybe we need to custom render a KebabDropdown in a cell on each row instead of using the built in actions array? I suppose that is a big refactor.

@mturley , in which case might want to look at migrating applications pages away from the deprecated tables the new table giving us more flexibility for those complicated cases.
What do you think ?

Yeah that is definitely something we should do eventually but is probably a lot of work and should be done carefully. I would be in support though if we decided as a team that there is a good time to do it

Ideally we can find a way to fix this issue in the short term before we go for the full refactor

@mturley,
I'm trying to understand why the tooltip is now broken.
The IAction type we use for the action array is coming from "@patternfly/react-table" where the Table used (by AppTableWithControls -> AppTable) is  from "@patternfly/react-table/deprecated".
Even though the implementation of IAction hasn't changed it seems the integration of the two implies a different behavior.
If that's the case I don't see how we can make that work as there is no "deprecated" IAction version.

Yeah, I don't think that workaround will work, we want to retain the hover behavior. I think the reason this happened is because the legacy/deprecated Table in PF was refactored to render the composable Table components under the hood, so that it was easier to maintain when there were style changes to table elements. My guess is that this shared rendering code was updated to use the new dropdown components (or something like that).
The solution that comes to mind for me is to stop using the IAction objects and instead render our own column that uses our KebabDropdown in the title property of its cells. That will be a bit of a refactor but it won't be throwaway work because we'll need the dropdown to be in that format when we eventually refactor the whole table to use the composable components.

I would be happy to take a crack at that if you want me to @gildub

@mturley, in the meantime I got that tracker for the issue about tooltip support on menu for legacy dropdown: https://github.com/patternfly/patternfly-react/issues/9285

@mturley, to follow-up and answer you, I'm trying to see if PF fix is going to be addressing the issue soon enough so we don't have to refactor. In case they don't then we'll do as you described, use our own column and dropdown.

@mturley, good news, PF team is working on the issue and are hoping to fix it before PF GA.

Awesome! maybe we can revert my reverting of the upgrade to the new dropdowns in KebabDropdown after that then 😆


Error detected while processing function phpcomplete_extended  59

I have an error on loading php files. Here is the screenshot of the error.

For those with similar problems, check whether composer dump-autoload --optimize can be run manually from the root from your project. Was troubleshooting a bit too long before I realized I just a syntax error in my composer file.


"Range Added" is incorrect, and has incorrect units on the "Charges" dashboard

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
The "Range Added" column on the "Charges" dashboard is either confusingly named, or incorrect.
My assumption from the title is that this column would represent the range added by the charging session. In that case, it uses incorrect units ('mph' vs 'miles'), and the values are wrong, e.g. see the two charges below, which despite being 24.92kWh and 2.78kWh added respectively, both show as "25mph".

Drilling into the "Charge details" for each of those shows a correct "range added" figure, e.g.

vs

As I come to write this issue though, I now wonder (given the choice of units) whether the value on the "Charges" screen is actually the charging speed expressed in miles-of-range-added. That would kind of make sense (since most of my AC charging sessions show the same value - ~25mph), but doesn't match the title.
Personally, I'd find the actual range added a much more useful metric on the charges overview screen, but at the very least, the current column, if it's staying, should be renamed to better reflect what it is.
Expected Behavior
The "Range added" column is named appropriately for the data it contains.
Steps To Reproduce

View charges dashboard

Relevant log output
n/a

Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
v1.30.1

Indeed it is range added per hour. I made a PR: https://github.com/teslamate-org/teslamate/pull/4089

Hello, I'm a new user in this exact issue is something that bothered me enough to come here and search for answers. Was this issue corrected yet? I'm see the same behavior as op.
In the "range added" column, I would expect to see the number of miles that I gained during the charging session. Instead, it shows me how fast the charging occurred. This is super misleading because if I charged for 28 min and gained 20 miles of range, it displays 45 mph. If I was charged for exactly one hour, then that value would be accurate but I'd argue that most people are not charging for exactly one hour, and would rather see the number of miles worth of change during the amount of time they were plugged in and not for one hour.
Can this please be corrected or can there be an option to display the actual range added?


Concurrency and asynchronous requests

Make all requests be asynchronous and add appropriate concurrency where needed (e.g. frontend controller server).

Triage: we believe this is important technical debt. However, we don't have anyone complaining and we believe we can tackle it later.


multi: restart LND Client on setup failure

This PR adds the functionality that in case we fail to setup the LND client(s) when starting litd, we will continuously retry to connect the LND clients until we succeed to do so. This partly addresses #683, but currently only restarts the LND clients when failing to setting them up, but not in case we fail to start lnd. The lit sub-server will only be set to status Running after the lnd clients have successfully been set up.
This hopefully addresses most of the issues we've had from users that have experienced issues with the lnd sub-server erroring on the start up of litd, but likely not all of the errors.
A note to reviewers:

Currently when failing to set up and therefore now retrying to create the lnd client(s), the litcli getinfo + the litcli stop commands are blocked and are not allowed, as we currently require macaroon authentication for those calls. Should I update this PR to allow those calls by adding them to the LiT Whitelist?
To simplify the local testing of this PR, I've created a branch that very simply mocks 3 failures to set up the basic lnd client as well as 3 failures to set up the full lnd client. The full lnd client set up attempts will also fail after 30 seconds, as that's what users experience when their set up fails due to the lnrpc.GetInfo call context times out. You can use that branch to test this PR locally: https://github.com/ViktorTigerstrom/lightning-terminal/tree/2023-12-restart-lndclient-on-failure-mocked-lndclient-fails

Happy to address any feedback!

Thanks a lot for the feedback and for reviewing this so quickly @ellemouton! I've addressed your feedback with the latest push.

Thanks again for reviewing this PR so quickly @ellemouton :rocket::fire:!!! I've addressed your latest feedback with the latest push :)

@ellemouton: review reminder
@viktortigerstrom, remember to re-request review from reviewers when ready

Thanks a lot for the review @ellemouton :tada:!!
I've addressed your feedback with the latest push!

Btw - think you need to update your lndclient test branch as the current redirect commit doesn't compile.

I've now updated the branch so that it builds and can be used for testing! One thing to note though, Is that I couldn't get it to work with lndclient v0.17.0-4 for some reason. There seems to be some conflict with taproot-assets that I just couldn't figure out how to solve within a reasonable time. So In the test branch I've downgraded to v0.17.0-3, which subsequently downgraded taproot-assets as well. But it can be used to test the functionality of this PR!

saw this getting logged:  Setting the lit sub-server as errored: Error %d when creating LND Services client: %v - gotta make sure that the values are populated in the log.

Thanks! This was a pre-existing error that I've now addressed with 3b83d6e1022ce1ee5e99a929d43c88430dec1de6 :)

this is probably not related to this PR but I get this error for taproot-assets:

I hadn't seen this, but as I started downgrading the lndclient and therefore the taproot-assets version to make the test branch compile, and then upgraded again and such, I actually managed to trigger this as well! Did you do something similar before the error occurred for you as well?
However, after I removed testnet folder (my configured netwok) in the taproot-assets Application data, and restarted litd again, the error disappeared. I suspect it's some migration thing in taproot-assets going on. But as my way of making the error get triggered is probably nothing a normal user will do, I'm not sure if this is something we should actually report. Though it would be really good to get @guggero's opinion on this as well!

Thanks a lot for the review @guggero :tada::fire:!

Not exactly sure what this is referring to? Because the current version of the PR doesn't modify the lndclient version in the go.mod file, so it's currently at v0.17.0-4. What test branch of lndclient were you talking about?

Ah sorry, I should have been more clear what I was referring to. This is referring to the test branch to test the restart functionality locally, that I mentioned in the original description message of this PR above:
https://github.com/ViktorTigerstrom/lightning-terminal/tree/2023-12-restart-lndclient-on-failure-mocked-lndclient-fails

Yes, that's very likely it. If the version of taproot assets was changed between versions of PRs, a downgrade would explain the error. So all good I think.

Ok great, sounds good :rocket:!


Feedback

Good night Right Honourable Dalao!
It is my pleasure to clone and study your program.
Nevertheless, it is unfortunate that there are some problems in my use.

On account of my default color of console is not the white characters with black background. This results that it displays abnormally. I sincerely hope you can initialize the color of console.
When I exit the program, it  displays a garbled code, I believe you can fix the bug.

Sincerely,
A Mengxin from ZuojialongCambridgeUniversity

Thanks for your feedback!
For problem 1:I thought everyone use a blackbackground console until I saw your issue.. I will fix it soon.
For problem 2:Compile again with args followed:"-fexec-charset=GBK -finput-charset=UTF-8" so that the Chinese characters are encoded currectly.

So，why you two Chinese talk in English？

So，why you two Chinese talk in English？

// Tactical English
This can give people a sense of professionalism. // manual funny.

Well, as Litan-2000 opened this issue in English, I have no reason not using Eng :)

You can set the default console color now!


Update from CFN console

Would love to have ability to upgrade to latest pcluster-manager by providing new version number in CFN console:

Resource handler returned message: "Resource dependency error: The resource ARN 'arn:aws:imagebuilder:us-east-2:XXXXXXX:image/importpublicecrimage-3-1-1-YYYYYYY/3.1.1/1' has a running workflow. (Service: Imagebuilder, Status Code: 400, Request ID: ZZZZZZZ, Extended Request ID: null)" (RequestToken: ZZZZZZ, HandlerErrorCode: GeneralServiceException)

This should work, I have a 3.0.0, 3.0.3 and 3.1.1 stack running simultaneously.

ah you mean update the existing stack

Would be curious to hear your thoughts on this

Thank you @bollig , this is something we can definitely consider in the future, but right now it's not something we could whip up quickly.
This RFE is currently tracked in our board.
Will update when the time comes.


Don't be verbose in build's file operations

Make tar and zip be quiet. Without this change, hundreds of filenames are printed to the console (twice) every time make build is run. It's no big deal, but I found this tweak useful, and thought you might too.

@vogre fyi


Issue setting up correct pins for ESP8266

Hello,
Trying to use the library for RFM95_V4.0 and NodeMCU ESP8266 and having issues.
My pin config might be wrong, but this is what I use
const sRFM_pins RFM_pins = {
  .CS = D5,
  .RST = D6,
  .DIO0 = D0,
  .DIO1 = D1,
  .DIO2 = D2,
  .DIO5 = D3,
};

OOM issue
RFM95 not detected
Sending: Counter-0

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Soft WDT reset

Exception (4):
epc1=0x4010030c epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffffc70 end: 3fffffd0 offset: 0160
...
<<<stack<<<

Could you please help providing correct pin config for RFM95 module, thanks!

Hello @GRpro !
Thank you for contacting us!
Can you please try this pin configuration?
const sRFM_pins RFM_pins = { .CS = 20, .RST = 9, .DIO0 = 0, .DIO1 = 1, .DIO2 = 2, .DIO5 = 15, };
Also, please tell us What activation method are you using (ABP, OTAA)?, and sen us your code.
Can you send us a schematic of your connection?
Best regards!

Hey @Eric286, thanks for reaching back!
In your connection I don't see that SPI interface is connected fully, is that expected?
I'm using OTAA method
Here is the code
/**
 * Example of OTAA device
 * Authors:
 *        Ivan Moreno
 *        Eduardo Contreras
 *  June 2019
 *
 * This code is beerware; if you see me (or any other collaborator
 * member) at the local, and you've found our code helpful,
 * please buy us a round!
 * Distributed as-is; no warranty is given.
 */
#include <lorawan.h>

// OTAA credentials
const char *devEui = "...";
const char *appEui = "...";
const char *appKey = "...";

const unsigned long interval = 10000;    // 10 s interval to send message
unsigned long previousMillis = 0;  // will store last time message sent
unsigned int counter = 0;     // message counter

char myStr[50];
char outStr[255];
byte recvStatus = 0;

const sRFM_pins RFM_pins = {
//  .CS = 20,
//  .RST = 9,
//  .DIO0 = 0,
//  .DIO1 = 1,
//  .DIO2 = 2,
//  .DIO5 = 15,

//  .CS = D5,
//  .RST = D6,
//  .DIO0 = D0,
//  .DIO1 = D1,
//  .DIO2 = D2,
//  .DIO5 = D3,

  .CS = 20,
  .RST = 9,
  .DIO0 = 0,
  .DIO1 = 1,
  .DIO2 = 2,
  .DIO5 = 15,
};

void setup() {
  // Setup loraid access
  Serial.begin(9600);
  while(!Serial);
  if(!lora.init()){
    Serial.println("RFM95 not detected");
    delay(5000);
    return;
  }

  // Set LoRaWAN Class change CLASS_A or CLASS_C
  lora.setDeviceClass(CLASS_A);

  // Set Data Rate
  lora.setDataRate(SF9BW125);

  // set channel to random
  lora.setChannel(MULTI);

  // Put OTAA Key and DevAddress here
  lora.setDevEUI(devEui);
  lora.setAppEUI(appEui);
  lora.setAppKey(appKey);

  // Join procedure
  bool isJoined;
  do {
    Serial.println("Joining...");
    isJoined = lora.join();

    //wait for 10s to try again
    delay(10000);
  }while(!isJoined);
  Serial.println("Joined to network");
}

void loop() {
  // Check interval overflow
  if(millis() - previousMillis > interval) {
    previousMillis = millis();

    sprintf(myStr, "Counter-%d", counter);

    Serial.print("Sending: ");
    Serial.println(myStr);

    lora.sendUplink(myStr, strlen(myStr), 0, 1);
    counter++;
  }

  recvStatus = lora.readData(outStr);
  if(recvStatus) {
    Serial.println(outStr);
  }

  // Check Lora RX
  lora.update();
}

Can you please point out which connections should I make?
Not sure what is pin 20 for ESP8266
  .CS = 20, // ???
  .RST = 9, //  SD2 - GPIO 9 connect to RESET on module
  .DIO0 = 0, // D3 - GPIO0
  .DIO1 = 1, // TX - GPIO1
  .DIO2 = 2, // D4 - GPIO2
  .DIO5 = 15, // D8 - GPIO15

Attaching photos of used hardware

Hi @GRpro!
"In your connection I don't see that SPI interface is connected fully, is that expected?"
There is no pin standard; we have utilized the pins found on our development boards, however changing the pins on your devboard is a straightforward process.
Can you please point out which connections should I make?
You can change that pin if you want.
There were some previous tests with ESP8266 and a RFM96
I will try to do some tests with the RFM95 to be sure everything works ok.
do you have anther board where you can test the module to see if it is really working?
Here's a common pin mapping for the NodeMCU ESP8266 board with the RFM95 module:

const sRFM_pins RFM_pins = {
  .CS = D8,
  .RST = D4,
  .DIO0 = D1,
  .DIO1 = D2,
  .DIO2 = D3,
  .DIO5 = D5,
};

Double-check your connections and try running the code again to see if the issue persists.
Kind Regards!
Support Team

Thanks for the answer.
It looks like my module requires 5V power supply VCC, so I use the shield for ESP8266 to make it work.
RFM95PW.pdf
.CS should be connected to NSS ?
I have Arduino UNO and ESP32 to test if it works.
Could you please provide pin config for both boards above?

@Eric286 , it doesn't work.
The only output I get is
rl�l⸮r$⸮n⸮l⸮b|⸮⸮⸮rb⸮b⸮nnlnn2bbpp⸮$blrl

The print section at the beginning of setup function (which I've added) prints nothing

Hello @GRpro !
First we are going to peform a test in the Arduino UNO to see if the module it is working.
Use this pin configuration:
const sRFM_pins RFM_pins = {
    .CS = 10,
    .RST = 9,
    .DIO0 = 2,
    .DIO1 = 3,
    .DIO2 = 4,
    .DIO5 = -1,
};

It has already been tested and works correctly.
Also please make sure that the necessary voltage is reaching the module.
Kind Regards!
Support Team

@Eric286 , I've connected
For this pin configuration
const sRFM_pins RFM_pins = {
    .CS = 10,
    .RST = 9,
    .DIO0 = 2,
    .DIO1 = 3,
    .DIO2 = 4,
    .DIO5 = -1,
};

I use following wiring
All GND -> GND
3.3V -> 3.3V
NSS ->  10 (Also tried SCK -> 10)
RESET -> 9
DIO0 -> 2
DIO1 -> 3
DIO2 -> 4

Tried with a more widespread RFM95W module

Have the following issue
RFM95 not detected

Hello @GRpro!
I perform some test with the Arduino UNO and the same module that you have (RFM95W), and everything is working fine, can you please check your connections to see if there is any error.
Also, could you also send me an image of your board with the connections? to see if I can see the error.
Kind Regards!
Support Team

@Eric286 , It would be really helpful if you can post an image of your connection, or better specify them in a format
(RFM95W PIN -> Arduino PIN) as I did in my last comment.
I still don't understand if you connected SCK and NSS module outputs, also what about MOSI and MISO
Could you please elaborate? Thanks

Hello @GRpro
Due to the lack of response, we will close the issue.
If you encounter any further difficulties or wish to share any feedback, please feel free to reach out to us again. We are here to assist you.
Wishing you a fantastic day ahead!
Kind regards,


ibdknox.css: fix tab coloring

To see what this commit does do following:

Set editor theme to "ibdknox".
In new-dark.css change var-highlight-fg to #0f0. Save new-dark.css.
Connect to 'Light Table UI'.
Open multiple editors, change content in one of them. Don't save!
Switch between editors, notice color changes in tab names.
Undo/redo the change introduced by this commit. Goto step 5.

Closing as this makes this theme inconsistent with other themes. If this is a proposal to change all themes in this manner, some screenshots and a motivation for the change would be helpful

???
It's been more than 1,5 year ago... meanwhile but I lost track about what's was going on here and I assume this PR is probably not relevant anymore anyway.


metasploit: bump dependencies, add versionTest

With the current metasploit package (at least since 6.4.36) msfconsole fails to start due to:
 /nix/store/pkw4i50hi66nk6kv8a9mlgx77lwngnyc-metasploit-framework-6.4.36/share/msf/modules/payloads/singles/linux/riscv32le/reboot.rb:25:in `initialize': uninitialized constant Msf::Modules::Payload__Singles__Linux__Riscv32le__Reboot::MetasploitModule::ARCH_RISCV32LE (NameError)
Did you mean?  ARCH_PPCE500V2

This PR updates the gemfile and adds a versionTest for msfconsole to detect failing builds early
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

[x] 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
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.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.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 359998

x86_64-linux

:white_check_mark: 4 packages built:

armitage
metasploit
msfpc
social-engineer-toolkit


NavigationAgent2D does not avoid NavigationObstacle2D

Godot version
4.2-dev5
System information
Windows10
Issue description
NavigationAgent2D does not avoid NavigationObstacle2D (static or dynamic)
Steps to reproduce

Created a dynamic obstacle (by setting the radius tab)
Created a static obstacle (by adding vertices in the clockwise direction)
Make 2 NavigationAgent2D agents move from point A to B, adding the obstacle in the middle
Agents do not route around the obstacle
This is not reproducible all the time

Minimal reproduction project
Tilemap.zip
Other issues seen with the same project

[ ] NavigationAgent2D sometimes tries to avoid dynamic NavigationObstacle2D, but can get stuck behind it
[ ] Moving from one NavigationRegion2D to the other (when edge is connected) can cause NavigationAgent2D to slow down or get stuck

Agents do not route around the obstacle

The NavigationObstacle2D has scaled visuals from the inherited Node2D scale.
The actual obstacle on the navigation map created with this radius / those vertices is tiny and so it is mostly ignored by the agents.
Agents do not "route" in the sense of planning a different path around the obstacle.
The obstacle pushes back the avoidance velocity of the agent.
If the navigation path points through the obstacle, because there is still navigation mesh below it, there is only so much the avoidance can do to make agents "route" around it.

Thanks for the explanation, That makes sense.
Closing this issue


[BUG] Unable to change default admin credentials. "Resource 'admin' is read-only."

Describe the bug

Unable to change default admin credentials

A clear and concise description of what the bug is.

OpenSearch Dashboard default admin credentials is admin:admin, i want to disable the user or change that credentials for it.
Tried to change credentials from Dashboard but im greeted with Failed to reset password. {"status":"FORBIDDEN","message":"Resource 'admin' is read-only."}
Same error if i try to change from http://opensearch-dashboard:5601/app/security-dashboards-plugin#/users/edit/admin

To Reproduce

Go to 'Opensearch-Dashboard's /app/security-dashboards-plugin#/users & Edit internal user'
Select admin user
Make changes and hit Save changes
Gets Failed to reset password. {"status":"FORBIDDEN","message":"Resource 'admin' is read-only."}

Expected behavior

Admin user credentials should be changed

OpenSearch Version

2.0

Dashboards Version

2.0

Also tried with version 1.3.x for both, same error
Plugins
[opensearch@085047a98b3d bin]$ opensearch-plugin list
opensearch-alerting
opensearch-anomaly-detection
opensearch-asynchronous-search
opensearch-cross-cluster-replication
opensearch-index-management
opensearch-job-scheduler
opensearch-knn
opensearch-ml
opensearch-notifications
opensearch-notifications-core
opensearch-observability
opensearch-performance-analyzer
opensearch-reports-scheduler
opensearch-security
opensearch-sql

[opensearch-dashboards@a354e8661a71 ~]$ bin/opensearch-dashboards-plugin list
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
Screenshots

Host/Environment (please complete the following information):

OS: Windows 10
Firefox 101.0

Additional context

Docker-compose

version: '3'

volumes:
  opensearch-data:

services:
  opensearch:
    image: opensearchproject/opensearch
    container_name: opensearch
    restart: unless-stopped
    environment:
      - cluster.name=opensearch
      - node.name=opensearch
      #      - discovery.seed_hosts=opensearch
      #      - cluster.initial_master_nodes=opensearch
      - discovery.type=single-node
      - bootstrap.memory_lock=true
      - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
      nofile:
        soft: 65536
        hard: 65536
    volumes:
      - opensearch-data:/usr/share/opensearch/data
    ports:
      - 9200:9200
      - 9600:9600

  opensearch-dashboards:
    image: opensearchproject/opensearch-dashboards
    container_name: opensearch-dashboards
    restart: unless-stopped
    ports:
      - 5601:5601
    expose:
      - "5601"
    environment:
      OPENSEARCH_HOSTS: '["https://opensearch:9200"]'

[Triage] thanks filing, we are going to look into what behavior we would expect for the admin user and make appropriate changes so the interaction model is clear.

Admin password can only be changed via updating the internal_users.yml configuration file and running securityadmin.sh. See the documentation page and also this blogpost by @dblock around it.
We're actively working on providing better defaults here and eventually will get to a place where these are all around easier to configure and get started with. Closing this issue in favor of https://github.com/opensearch-project/OpenSearch/issues/1618 where we'll be tracking progress.


Doctor command should check that you have SDK constraints in your package

Use case
The min Dart SDK constraint specifically now has meaning, as it determines your language version. All packages, even non-published ones should have an SDK constraint to prevent breakage by new language features which may be breaking (ie: null safety).
Proposal
The doctor command should check that you have a min sdk constraint on the Dart SDK, and if not suggest one.
It may need to suggest two alternatives, one for null safety and one without null safety? Or it could try to see if the package is null safe already and suggest the latest in that case, and otherwise suggest 2.9?

flutter doctor checks the installation, not a project. But @pq is adding linting for pubspec.yaml right now, I think we could fairly easily add a lint for it?
We also have flutter fix that could perhaps add the missing constraint?

If that means that flutter analyze would cover it that might be enough - but note that the output of that in this scenario will be overwhelming because the package will be opted in but not migrated. So I doubt it will be very  useful?

Important to note that flutter doctor can be executed outside of a valid Flutter project so this new addition should cover that (ignore the proposed check?) as well.

Related issue: https://github.com/dart-lang/sdk/issues/44013

flutter doctor checks the installation, not a project. But @pq is adding linting for pubspec.yaml right now, I think we could fairly easily add a lint for it?

I agree that flutter doctor would not be the appropriate place for this check. @jakemac53 do we still need to add some check for this, or did the analyzer end up checking it?

It looks like pub does have a check, and it will refuse to fetch any package deps without a min SDK constraint:
$ dart pub get
Resolving dependencies...
pubspec.yaml has no lower-bound SDK constraint.
You should edit pubspec.yaml to contain an SDK constraint:

environment:
  sdk: '^3.3.0-edge.0fa13d4627c4c5874c679512fc2520ea1ac9557a'

See https://dart.dev/go/sdk-constraint


BUG: provider is trying to withdraw lease for gseq that are not belonging to it

Provider is trying to withdraw lease for gseq that are not belonging to it.
It seems it is paying for each failed withdraw-lease TX too: 5000uakt fee and ~200000uakt for gas, though as the blockchain wants more gas (around 1694uakt more), it fails.. Does gas return back in that case? The fee most likely does not. Please clarify.
Akash v0.14.1.
Provider: akash1x32axkrtkv2et7etdwh77hj9a6vnc8un9th4e9
DSEQ in question: 4433794
GSEQ belonging to the provider: 2.
Provider's point of view
Currently, provider akash1x32axkrtkv2et7etdwh77hj9a6vnc8un9th4e9 is running 4433794/2 dseq/gseq only.
root@foxtrot:~# kubectl get ns --show-labels | grep 4433794
c307tq42u7apihesh9e3nt6s4947hn7iins626hl7enpe   Active   2d23h   akash.network/lease.id.dseq=4433794,akash.network/lease.id.gseq=2,akash.network/lease.id.oseq=1,akash.network/lease.id.owner=akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj,akash.network/lease.id.provider=akash1x32axkrtkv2et7etdwh77hj9a6vnc8un9th4e9,akash.network/namespace=c307tq42u7apihesh9e3nt6s4947hn7iins626hl7enpe,akash.network=true,kubernetes.io/metadata.name=c307tq42u7apihesh9e3nt6s4947hn7iins626hl7enpe

Failed TXs
Provider akash1x32axkrtkv2et7etdwh77hj9a6vnc8un9th4e9 is trying to withdraw lease for gseq's that are not belonging to it:

https://www.mintscan.io/akash/txs/86450BA9B1F80C452B1B4F958EF6524D59438729AD4777E42C19B65814D4E5C4
https://www.mintscan.io/akash/txs/840A1A862B2B803A3EFD1E2B1910FED0D785E2EB863220C81146C6ADDEEE6C6B
https://www.mintscan.io/akash/txs/8B2C011F84EF4C2879DF50C987A3A6A1E9F5A395A0494CED17D77787B1306144

providers running 4433794 dseq
$ akash query txs --events "akash.v1.provider=akash1x32axkrtkv2et7etdwh77hj9a6vnc8un9th4e9&akash.v1.action=lease-created&akash.v1.dseq=4433794" | jq -r '["owner","dseq","gseq","oseq","provider"], (.txs[].tx.body.messages[] | [.bid_id | (.owner, .dseq, .gseq, .oseq, .provider)]) | @csv' | column -t -s","
"owner"                                         "dseq"     "gseq"  "oseq"  "provider"
"akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  "4433794"  1       1       "akash1t5akukhvtvykvch6ujy37uma6cc8qma0wkdwl7"
"akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  "4433794"  2       1       "akash1x32axkrtkv2et7etdwh77hj9a6vnc8un9th4e9"
"akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  "4433794"  3       1       "akash1vky0uh4wayh9npd74uqesglpaxwymynnspf6a4"
"akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  "4433794"  4       1       "akash14c4ng96vdle6tae8r4hc2w4ujwrsh3x9tuudk0"
"akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  "4433794"  5       1       "akash1xcclnvcl7nup95lp8tp9jzf54q8wk6t0uwjkzj"
"akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  "4433794"  6       1       "akash14c4ng96vdle6tae8r4hc2w4ujwrsh3x9tuudk0"
"akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  "4433794"  7       1       "akash14c4ng96vdle6tae8r4hc2w4ujwrsh3x9tuudk0"

4433794 on akash1x32axkrtkv2et7etdwh77hj9a6vnc8un9th4e9
One would normally see provider is withdrawing the leases for 4433794/2 dseq/gseq:
$ akash query txs --events "message.sender=akash1x32axkrtkv2et7etdwh77hj9a6vnc8un9th4e9&message.action=withdraw-lease" --page 4 --limit 100 | jq -r '["height","timestamp","owner","gseq","oseq"], (.txs[] | select(.tx.body.messages[].bid_id.dseq == "4433794") | [.height, .timestamp, (.tx.body.messages[].bid_id | .owner, .gseq, .oseq)] ) | @csv' | column -t -s","
"height"   "timestamp"             "owner"                                         "gseq"  "oseq"
"4439728"  "2022-01-25T22:17:26Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  2       1
"4448444"  "2022-01-26T14:07:59Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  2       1
"4454997"  "2022-01-27T02:08:02Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  2       1
"4461528"  "2022-01-27T14:08:01Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  2       1
"4468041"  "2022-01-28T02:07:58Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  2       1

However, failed transactions are not getting indexed, thus cannot be easily queried.
The only way to query would be scanning block by block:
let START=4467972
let END=4468041

for BLOCK in $(seq $START $END); do
  TXS=$(akash query block $BLOCK | jq -r '.block.data | if .txs != null then .txs[] else empty end' | xargs -r -I@ sh -c "echo @ | openssl base64 -A -d | sha256sum | awk '{print \$1}'")
  for TX in $TXS; do
    akash query tx $TX -o json | jq -r '(select(.tx.body.messages[].bid_id.dseq == "4424765") | [.height, .timestamp, .txhash, .code, .gas_used, .gas_wanted, (.tx.body.messages[] | ."@type", (.bid_id | .owner, .dseq, .gseq, .oseq))] ) | @csv'
  done
done

Output:
"height","timestamp","txhash","code","gas_used","gas_wanted","type","owner","dseq","gseq","oseq"
"4467972","2022-01-28T02:00:24Z","86450BA9B1F80C452B1B4F958EF6524D59438729AD4777E42C19B65814D4E5C4",11,"201694","200000","/akash.market.v1beta1.MsgWithdrawLease","akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj","4424765",8,1
"4468005","2022-01-28T02:03:56Z","840A1A862B2B803A3EFD1E2B1910FED0D785E2EB863220C81146C6ADDEEE6C6B",11,"201706","200000","/akash.market.v1beta1.MsgWithdrawLease","akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj","4424765",6,1
"4468013","2022-01-28T02:04:50Z","8B2C011F84EF4C2879DF50C987A3A6A1E9F5A395A0494CED17D77787B1306144",11,"201697","200000","/akash.market.v1beta1.MsgWithdrawLease","akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj","4424765",1,1
"4468030","2022-01-28T02:06:40Z","2E8502668EC0095F8087CBC446BBC6D88CF798BFA5C77E29CA06011D80B3914A",11,"201700","200000","/akash.market.v1beta1.MsgWithdrawLease","akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj","4424765",4,1

And interesting is that these kind of TXs, for "withdraw-lease" to gseq not belonging to the provider, are resulting in "out of gas" errors, instead of "gseq does not belong to the provider" or similar:
raw_log: 'out of gas in location: WritePerByte; gasWanted: 200000, gasUsed: 201694:

I was checking another DSEQ 4424765 in the first place.. :man_facepalming:
Please scratch that.
Though will open another issue related to the "out of gas" errors.
$ akash query txs --events "message.sender=akash1x32axkrtkv2et7etdwh77hj9a6vnc8un9th4e9&message.action=withdraw-lease" --page 3 --limit 100 | jq -r '["height","timestamp","owner","gseq","oseq"], (.txs[] | select(.tx.body.messages[].bid_id.dseq == "4424765") | [.height, .timestamp, (.tx.body.messages[].bid_id | .owner, .gseq, .oseq)] ) | @csv' | column -t -s","
"height"   "timestamp"             "owner"                                         "gseq"  "oseq"
"4433291"  "2022-01-25T10:18:12Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  4       1
"4433331"  "2022-01-25T10:22:34Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  1       1
"4433332"  "2022-01-25T10:22:41Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  6       1
"4433334"  "2022-01-25T10:22:55Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  8       1
"4439735"  "2022-01-25T22:18:12Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  4       1
"4439774"  "2022-01-25T22:22:23Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  1       1
"4439776"  "2022-01-25T22:22:36Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  6       1
"4439778"  "2022-01-25T22:22:50Z"  "akash1z73qc2wjhm7qfqyg0sn56sg36r2wuzpyku9qhj"  8       1

=> https://github.com/ovrclk/akash/issues/1508


fix(middlewares): update statsd tags and reporting

Turns out that path and status code were getting dropped for some reason.
Changelog

create tags array to hold tags in format 'key:val'
move commit and golang version to new pkg 'version' with exported variables
use new version package in metrics and in middlewares to report commit sha

Request counter with status code as a tag. Allows us to do some good error
rates (5xx/200-499)
On Wed, Sep 12, 2018 at 3:31 PM Anthony Blardo™<EMAIL_ADDRESS>wrote:

@blardo approved this pull request.
Digging the request counter being a thing.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/skuid/spec/pull/14#pullrequestreview-154808399, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA7AcJRTgTYLBZG9ZAsnuOUKrHw9-Sepks5uaWD9gaJpZM4WkEnk
.

--
Brian A Newton
Lead Software Developer - Platform · Skuid http://www.skuid.com/
423.208.9553 <423.208.9553>
605 Chestnut Street, Suite 700
Chattanooga, TN 37450
800.515.2535
Chattanooga  |  San Francisco  |  London  |  Zürich
____________________________
Skuid is transforming the process of building business apps.  Hear what
Forbes has to say about us.
https://www.forbes.com/sites/julianmitchell/2017/03/22/this-ux-platform-lets-you-create-custom-enterprise-apps-without-writing-code/#1c9cdd067bf4


(mini.ai) Fix outdated treesitter query command in comment.

While debugging mini.ai I discovered this command and saw that it is referring to a deprecated treesitter command. With this change, the documentation will be accurate again.

[x] I have read CONTRIBUTING.md
[x] I have read CODE_OF_CONDUCT.md

Thanks for the PR!
Yeah, it seems to have changed in 0.9.* version. I've merged into temporary branch for some finishing touches.


Using ActiveDirectory module with Pwsh 7.1.3 and IIS

Question
I'm putting this as a question, because I'm sure I'm just not doing it right...
I am using the latest Pode module (2.2.3), powershell core 7.1.3, dotnet-hosting-5.0.6-win
When I have the line "Import-module ActiveDirectory" or Import-podemodule activedirectory, it fails in iis, but not when run directly in powershell. both display the warning:

WARNING: Module activedirectory is loaded in Windows PowerShell using WinPSCompatSession remoting session; please note that all input and output of commands from this module will be deserialized objects. If you want to load this module into PowerShell please use 'Import-Module -SkipEditionCheck' syntax..

but IIS has the following in the stdout log: using import-module activedirectory

WARNING: Error initializing default drive: 'Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.'.
WARNING: Error initializing default drive: 'Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.'.
WARNING: Module activeDirectory is loaded in Windows PowerShell using WinPSCompatSession remoting session; please note that all input and output of commands from this module will be deserialized objects. If you want to load this module into PowerShell please use 'Import-Module -SkipEditionCheck' syntax.
ParentContainsErrorRecordException: C:\Program Files\WindowsPowerShell\Modules\Pode\2.2.3\Private\Server.ps1:114
Line |
 114 |          throw $.Exception
     |          ~~~~~~~~~~~~~~~~~~
     | Failed to import module: ActiveDirectory

WARNING: Error initializing default drive: 'Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.'.
WARNING: Error initializing default drive: 'Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.'.
WARNING: Module activeDirectory is loaded in Windows PowerShell using WinPSCompatSession remoting session; please note that all input and output of commands from this module will be deserialized objects. If you want to load this module into PowerShell please use 'Import-Module -SkipEditionCheck' syntax.
ParentContainsErrorRecordException: C:\Program Files\WindowsPowerShell\Modules\Pode\2.2.3\Private\Server.ps1:114
Line |
 114 |          throw $.Exception
     |          ~~~~~~~~~~~~~~~~~~
     | Failed to import module: ActiveDirectory

IIS stdoutlog using import-podemodule activedirectory

Exception: C:\Program Files\WindowsPowerShell\Modules\Pode\2.2.3\Public\Utilities.ps1:471
Line |
 471 |          throw "Failed to import module: $(Protect-PodeValue -Value $P .
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Failed to import module: activeDirectory

Exception: C:\Program Files\WindowsPowerShell\Modules\Pode\2.2.3\Public\Utilities.ps1:471
Line |
 471 |          throw "Failed to import module: $(Protect-PodeValue -Value $P .
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Failed to import module: activeDirectory

Hey @jhainau,
I just tried this myself, using the same versions, but for me Import-Module ActiveDirectory works under IIS each time with just the warning:
WARNING: Module ActiveDirectory is loaded in Windows PowerShell using WinPSCompatSession remoting session; please note
that all input and output of commands from this module will be deserialized objects. If you want to load this module into
PowerShell please use 'Import-Module -SkipEditionCheck' syntax.

I've got IIS running, the software version you mentioned, and RSAT AD DS/LDS Tools installed.
Would you be able to give a snippet of the script where you import AD, and of your web.config?

Server.ps1:

Import-Module -Name Pode
Import-Module -Name Pode.Web
import-Module -Name activeDirectory
import-Module -Name PCPerson #installed from custom gallery

[System.Net.ServicePointManager]::SecurityProtocol = $([System.Net.ServicePointManager]::SecurityProtocol), [System.Net.SecurityProtocolType]::Tls12

Start-PodeServer {

Add-PodeEndpoint -Address * -Port 80 -Protocol Http
    Import-PodeModule -name ActiveDirectory
    $BaseURL = "$([System.Net.Dns]::GetHostEntry($Env:ComputerName).HostName)"
Set-PodeState -Name BaseURL -Value $BaseURL | Out-Null

 New-PodeAuthScheme -Basic | Add-PodeAuth -Name 'Login' -Sessionless -ScriptBlock {
        param($username, $password)

        <# # here you'd check a real user storage, this is just for example
        if ($username -eq 'morty' -and $password -eq 'pickle') {
            return @{
                User = @{
                    'ID' ='M0R7Y302'
                    'Name' = 'Morty';
                    'Type' = 'Human';
                }
            }
        }
 #>

    $SecPassword = ConvertTo-SecureString -String $password -AsPlainText -Force
    $userCred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $SecPassword

    $ADObject = $(try { Get-ADUser -Properties memberof,SID,SamAccountName,UserPrincipalName -Identity $username -Credential $userCred -ErrorAction Stop }Catch { $false })

    if ($ADObject -ne $false) {
        # success
        # here you store some data that only gets passed server side and never over the wire
        #* I'm using this as an area to store authorizations for
        #* services that the user has permissions to...
		# Person is the name of a HR system we use. it has it's own module
        $personBasics = Get-PersonLookup -Source person -loginName $username
        $assignedSystems = Get-PersonUserSystem -Identity $username -Source person -listall | Where-Object { [string]::IsNullOrEmpty($_.stopDt) }
        $assignedRoles = Get-PersonAssignedRole -TargetUser $username -Source person | Where-Object { [string]::IsNullOrEmpty( $_.endDt) }
        return @{ User = [ordered]@{
                'ID'       = $ADObject.SID
                'Name'     = $ADObject.SamAccountName
                'UPN'      = $ADObject.UserPrincipalName
                'AdGroups' = $ADObject.memberof
                'cred'     = $userCred
                "Systems"  = $assignedSystems.system
                "roles"    = $assignedRoles
                'userInfo' = $personBasics
            }
        }
    }
        # authentication failed
        return $null
    }
Add-PodeRoute -Method Get -path '/UserInfo' -Authentication 'Login' -ScriptBlock {
    #param ($e)
    $result = $WebEvent.auth.user
    $result.remove('cred')
    $html = @"
<!DOCTYPE HTML>

<title>
Custom API Service: UserInfo
</title>

User Information

$($result |ConvertTo-Json -Depth 5)

"@
    Write-PodeHtmlResponse -Value $html
}

# GET request for web page on "localhost/"
Add-PodeRoute -Method Get -Path '/' -ScriptBlock {
	Write-PodeTextResponse -value 'hello world'
}
}

Web.config:

<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers accessPolicy="Read, Execute, Script">
        <remove name="WebDAV" />
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
        <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
        <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
        <remove name="ExtensionlessUrl-Integrated-4.0" />
        <add name="ExtensionlessUrl-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
      </handlers>

      <modules>
        <remove name="WebDAVModule" />
      </modules>

      <aspNetCore processPath="pwsh.exe" arguments=".\server.ps1" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="OutOfProcess" />

      <security>
        <authorization>
          <remove users="*" roles="" verbs="" />
          <add accessType="Allow" users="*" verbs="GET,HEAD,POST,PUT,DELETE,DEBUG,OPTIONS" />
        </authorization>
      </security>
    </system.webServer>
  </location>
</configuration>

Hey @jhainau,
Thanks!
Import-PodeModule not working makes sense here, as the way it works it'll be trying to find the ActiveDirectory module under /PowerShell not /WindowsPowerShell , thus failing. Just Import-Module like you have at the top is the better way to go 😃
With that, and removing the Import-PodeModule, the site starts in IIS without error.
Now, if I try to hit /UserInfo, I start getting a different error:
Creating a new session for implicit remoting of "Get-ADUser" command...

But I was able to get around this by change the Get-ADUser call to the following, and by moving the ActiveDirectory import as well:
$ADObject = Invoke-Command -ScriptBlock {
	param($username)
	Import-Module -Name ActiveDirectory
	try {
		Get-ADUser -Properties memberof,SID,SamAccountName,UserPrincipalName -Identity $username -ErrorAction Stop
	}
	catch {
		$false
	}
} -ArgumentList $username

Then /UserInfo worked and returned the HTML with user information.
This was the full script I had in the end:
Import-Module -Name Pode

[System.Net.ServicePointManager]::SecurityProtocol = $([System.Net.ServicePointManager]::SecurityProtocol), [System.Net.SecurityProtocolType]::Tls12

Start-PodeServer {
	Add-PodeEndpoint -Address * -Port 80 -Protocol Http
    $BaseURL = "$([System.Net.Dns]::GetHostEntry($Env:ComputerName).HostName)"
	Set-PodeState -Name BaseURL -Value $BaseURL | Out-Null

	New-PodeAuthScheme -Basic | Add-PodeAuth -Name 'Login' -Sessionless -ScriptBlock {
        param($username, $password)

		$SecPassword = ConvertTo-SecureString -String $password -AsPlainText -Force
		$userCred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $username, $SecPassword

		$ADObject = Invoke-Command -ScriptBlock {
			param($username)
			Import-Module -Name ActiveDirectory
			try {
				Get-ADUser -Properties memberof,SID,SamAccountName,UserPrincipalName -Identity $username -ErrorAction Stop
			}
			catch {
				$false
			}
		} -ArgumentList $username

		if ($ADObject -ne $false) {
			return @{ User = [ordered]@{
					'ID'       = $ADObject.SID
					'Name'     = $ADObject.SamAccountName
					'UPN'      = $ADObject.UserPrincipalName
					'AdGroups' = $ADObject.memberof
					'cred'     = $userCred
				}
			}
		}

        # authentication failed
        return $null
    }

	Add-PodeRoute -Method Get -path '/UserInfo' -Authentication 'Login' -ScriptBlock {
		$result = $WebEvent.auth.user
		$result.remove('cred')
		$html = @"
<!DOCTYPE HTML>

<title>
Custom API Service: UserInfo
</title>

User Information

$($result |ConvertTo-Json -Depth 5)

"@
		Write-PodeHtmlResponse -Value $html
	}

	# GET request for web page on "localhost/"
	Add-PodeRoute -Method Get -Path '/' -ScriptBlock {
		Write-PodeTextResponse -value 'hello world'
	}
}

Hope that helps! :)

I followed your instructions, but get the same results, unable to load the Active directory module from IIS... but works outside of iis in both pwsh ad Windows PowerShell I suspect I am not setting up the IIS portion correctly as the instructions were ... less than thorough... I am not well versed with IIS... I may just need to set my instance up as a service using NSSM... but it is also a little lacking in thorough instructions... not to mention, NSSM has not been updated in a few years... but seams to be generally well liked and trusted. sorry for my lack of knowledge in these areas.
on a side note... the reason I was using the "-credential" in the get-aduser bit was because I assume that if you have a valid ad account and password, it should be able to return some info the associated ad account... that was how I was performing the authentication... if the ad and password combo failed to return the info for the requesting account, then I assumed that the password or userID was incorrect

There isn't anything special I really do with IIS when setting up the site; I just install the software from the docs page, create a basic website and binding, and point it to the directory my script is in. When you say it's lacking, is there some extra steps you had to do in order to get IIS to work? Something we could add to the docs, or is it flesh out the part where it says "Create a site in IIS and add a binding"?
For NSSM, it's there because it is just commonly used to run things like PowerShell as a Windows Service. You don't have to use NSSM, if you've a preferred way of doing it using another tool then that's fine - maybe we could even document it here. Even a Scheduled Task is fine 😛
Loading the module in a main pwsh terminal is different to running it in IIS, when in IIS it is running in pwsh, but in an almost background remote session. A quick Google of the error AD gives when loading suggests other things that could be causing it to fail:

Firewall issue with ADWS port
ADWS isn't running on the domain server
Issues with CredSSP being enabled
Plus some others

I would says it more an issue outside of IIS, preventing it from loading; as if you take the AD module/logic out and your server loads fine, then that's IIS done and working.
As for -Credential missing that was just an artifact from my end, as I was originally testing with a PSSession. You can just add the $userCreds to the Invoke-Command -ArgumentList; I just forgot to put it back in.

Just curious, are you running the IIS App Pool using a local (non-domain) account maybe?

Yes, to the first question... Fleshing out the "Create a site in IIS and add binding" would be immensely helpful... so sorry,
as for NSSM... this does seem to be the Service Manager of choice - even in my organization... I was just surprised that such a  popular tool would be years since the last update.
as for IIS App Pool with local account... Maybe? My day job is Desktop Support. I learned PowerShell out of necessity to automate the mind numbing repetitive tasks I perform. I only just started looking into IIS and NSSM in support of my project that uses Pode.
You have been very patient and understanding, Thank you :-)

I'll look at getting that part fleshed out then! 😃
What @RobinBeismann said is likely the cause; if you followed the docs and let the site create the app-pool, and changed nothing else, the app-pool could be running as the ApplicationPoolIdentiy user. Changing that to a domain user should hopefully fix it.
I do it out of habit so much, I didn't even think about it, oops!

Got it! I had the IIS settings not quite right... I forgot to Exclude the logs folder so that it didn't restart the server on every request,
I followed the advice from you and @RobinBeismann with regards to starting the app pool with domain credentials, and the last thing was in IIS Authentication for my site, edit Basic Authentication and enter my domain in the Default domain.
everything is working as expected... for now
Thank you so much!

Resolved by entering required information into IIS

Is there any chance to get the -UseUPN flag? I have a scenario where i have 100+ different @doamin