Relative xpath not working

Selecting with xpath doesn't work when selecting from an element in this case.
HTML:

VT
Hostname
IP Address
Operating System
Memory
Disk

Masked
Masked1
Masked1
Masked1
Masked1
<input class="btn btn-small btn-primary" name="manage" type="button" value="Manage" onclick="window.location='Masked1'">

Masked2
Masked2
Masked2
Masked2
Masked2
<input class="btn btn-small btn-primary" name="manage" type="button" value="Manage" onclick="window.location='Masked2'">

Code:
private Dictionary<string, string> ScrapeServerList()
         {
             var response = _httpClient.GetAsync(_urls.HomeUrl);
             var home = response.Result.Content.ReadAsStringAsync().Result;
             var homeDoc = new HtmlDocument();
             homeDoc.LoadHtml(home);
             var table = homeDoc.DocumentNode.SelectSingleNode("//*[@id='vmlist']");
             var servers = new Dictionary<string, string>();
             var rows = table.SelectNodes("//tbody/tr");
             foreach(var row in rows)
             {
                 Console.WriteLine(row.InnerHtml);
                 var hostname = row.SelectSingleNode("//td[2]/a").InnerText;
                 var serverId = row.SelectSingleNode("//td[7]/input").GetAttributeValue("onclick", "fail");

                 servers.Add(hostname, serverId);
             }
             return servers;
         }

But it works just fine when I append the xpath of the elements to the relative selection, so now it's the full path manually instead of the buggy relative path:
         private Dictionary<string, string> ScrapeServerList()
         {
             var response = _httpClient.GetAsync(_urls.HomeUrl);
             var home = response.Result.Content.ReadAsStringAsync().Result;
             var homeDoc = new HtmlDocument();
             homeDoc.LoadHtml(home);
             var table = homeDoc.DocumentNode.SelectSingleNode("//*[@id='vmlist']");
             var servers = new Dictionary<string, string>();
             var rows = table.SelectNodes( table.XPath + "//tbody/tr");
             foreach(var row in rows)
             {
                 Console.WriteLine(row.InnerHtml);
                 var hostname = row.SelectSingleNode(row.XPath + "//td[2]/a").InnerText;
                 var serverId = row.SelectSingleNode(row.XPath + "//td[7]/input").GetAttributeValue("onclick", "fail");
                 servers.Add(hostname, serverId);
             }
             return servers;
         }

For the first code I posted the expected behaviour is to select different hostnames for 2 different rows, but what happens is that it selects the same hostname twice (because it doesn't take into the account that I'm selecting from an element and not source document). It should automatically append the element's xpath or do it in some other way so it's relative and not always from the document root. Because then the option to select from elements is useless if it will select from root anyway.
Version: 1.8.10 on .net standard 2.0 with C# 7.3
Environment: Windows 10 64bit

Hello @Warix3 ,
When selecting from a node, you must use the . (dot) to specify it should start from the current node
That's how XPath work.

//: selects all nodes starting from the root
.//: selects all nodes starting from the current node

That look to be the issue in your case, you need to use .//
Best Regards,
Jonathan

Performance Libraries
context.BulkInsert(list, options => options.BatchSize = 1000);
Entity Framework Extensions • Entity Framework Classic • Bulk Operations •  Dapper Plus •  LinqToSql Plus
Runtime Evaluation
Eval.Execute("x + y", new {x = 1, y = 2}); // return 3
C# Eval Function • SQL Eval Function

Thank you for the clarification. I was confused by this, because I had the same code in python with the requests library and it's xpath function and it was working fine without the dot. I guess their implementation is just different then.


CDK-949. Dataset partition-config and mapping-config commands should all...

...ow nested field names.

+1

Merged in https://github.com/kite-sdk/kite/commit/a0867cc685dd31d9e09cc76b76472ed165a884ae


Improve usage examples in README

Add improved usage examples covering the full API,
and link to the detailed API documentation.
Connects to: #4

Not sure if it adds anything (just brainstorming), but maybe we should clarify and showcase that since Pipeline extends stream.Duplex, it inherits all the NodeJS APIs from readable/writable streams?
Apart from that, everything looks great.
As a side note (not asking to have it on this PR), let's extend the README to include the project license and other information like other resin modules.

@jviotti I mended the introduction in an attempt to clarify its inheritance from stream.Duplex – what do you think, does that get it across, or would it need more detailing?

Looks good to me!


jdk8 support

i got to compile the project using a jkd8 and i got lots of problems. This is just a simple workaround in gradle

This solves my problem too, it would be nice that the author accept this pull request!
thanks @fagossa!


hello_world app from the sample is not able to run it

Got this issue:
"Because every version of flutter_test from sdk depends on vector_math 2.1.0 and hello_world depends on vector_math 2.1.1, flutter_test from sdk is forbidden"
Fixed with:
YAML FILE
vector_math: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
Executing:
flutter update-packages --force-upgrade
Got other issue and had to correct in build.gradle to add version:
compileSdkVersion = 26
minSdkVersion 24
targetSdkVersion 26
Now I`m getting:
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Did not resolve 'androidx.tracing:tracing:1.0.0' which is part of the dependency lock state

Isn`t supposed to be a straight forward hello_world sample app??

cotfas@Vlads-MacBook-Pro Desktop % flutter doctor -v
[✓] Flutter (Channel stable, 2.5.3, on Mac OS X 10.15.7 19H1519 darwin-x64, locale en-RO)
    • Flutter version 2.5.3 at /usr/local/Caskroom/flutter/2.5.3/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (5 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/work/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version openjdk version "11.0.10" 2021-01-19
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.11.2

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

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version openjdk version "11.0.10" 2021-01-19

[✓] IntelliJ IDEA Community Edition (version 2021.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.61.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • Android SDK built for x86 (mobile) • emulator-5554                        • android-x86    • Android 11 (API 30) (emulator)
    • iPhone 8 (mobile)                  • 44009020-EC5D-4161-BBDA-A63C4554C4AE • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
    • Chrome (web)                       • chrome                               • web-javascript • Google Chrome 95.0.4638.69

• No issues found!
cotfas@Vlads-MacBook-Pro Desktop %

The same from terminal:
cotfas@Vlads-MacBook-Pro hello_world % flutter run
Multiple devices found:
Android SDK built for x86 (mobile) • emulator-5554                        • android-x86    • Android 11 (API 30) (emulator)
iPhone 8 (mobile)                  • 44009020-EC5D-4161-BBDA-A63C4554C4AE • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
Chrome (web)                       • chrome                               • web-javascript • Google Chrome 95.0.4638.69
[1]: Android SDK built for x86 (emulator-5554)
[2]: iPhone 8 (44009020-EC5D-4161-BBDA-A63C4554C4AE)
[3]: Chrome (chrome)
Please choose one (To quit, press "q/Q"): 1
Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Did not resolve 'androidx.tracing:tracing:1.0.0' which is part of the dependency lock state

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 9s
Running Gradle task 'assembleDebug'...                             10.6s
Exception: Gradle task assembleDebug failed with exit code 1
cotfas@Vlads-MacBook-Pro hello_world %

Removed the *.lock files from the android subproject
And got into other issue:
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     /Users/work/.gradle/caches/transforms-2/files-2.1/40791b22a71c70fa8e059bd5e0d7b7a9/core-1.1.0/res/values/values.xml:142:5-173:25: AAPT: error: resource android:attr/fontVariationSettings not found.

     /Users/work/.gradle/caches/transforms-2/files-2.1/40791b22a71c70fa8e059bd5e0d7b7a9/core-1.1.0/res/values/values.xml:142:5-173:25: AAPT: error: resource android:attr/ttcIndex not found.

Changed minSDK and compileSDK/targetSDK to 31 and it is working.


How to add facet display?

I am trying to make a blog instantsearch page where you can use the search bar to search by title or use facet (Filter) by tags. However, I could not find any facet being mentioned on the documentation page and my VSCode is not helpful because IntelliSense kept saying it could not resolve the module while Nuxt runs perfectly fine with no errors.

Hey Buddy,
I think you have two cases/questions:

Using facets -> Have you tried https://algolia.nuxtjs.org/getting-started/usage#usealgoliafacetedsearch?
The error is related to the fact that Vue Instantsearch library provides both cjs and es imports and in order to make it work, I had to import it this way. This is strange but I cannot make it work any other way.

Hope that I helped :)

Oh I guess that slipped from my eyes, I'll try that then I will tell how it goes. And secondly, there's really no way to make vscode recognize the import as valid? It annoys me a bit

@Baroshem so I decided to use useAlgoliaSearch because the useAlgoliaFacetedSearch is only for getting the Facets. However, I am having trouble applying the Facet filter as the Algolia official documentation shows, it still lists other object that does not have specified facet
const { result, search } = useAlgoliaSearch("PUBLIC_BLOGS_REGISTRY");

let hits: any[];

onBeforeMount(async () => {
    await search({ query: "", facetFilters: [["tags:happy"]] });
    hits = result.value.hits;
    console.table(result.value.hits);
})

Regarding first question. I dont think there is. Unless maybe there is some tsconfig that I am not aware off.
Regarding second. Have you tried using request options of search method as explained here https://algolia.nuxtjs.org/getting-started/usage/#usealgoliasearch

so after some messing around trying to find a solution, I finally understand how it works so now it works. Just gonna close this with my code so other people won't be as confused as me
const { result, search } = useAlgoliaSearch("INDEX_NAME");
await search({ query: input_string, requestOptions: {facetFilters: ["tags:happy"]} });
console.table(result.value.hits);

This really needs to be added to the docs somewhere. Took me a while to hunt this down.

@JMKelley added in 42ba62813d35f2b3583fb77c964e181f05523eb3 :)


Remove obsolete hello world example rego

It's trivial and should be zero risk, hence I'm gonna instamerge.


it just saves an url folder

Ripme version:
Java version:
Operating system:

Exact URL you were trying to rip when the problem occurred: any reddit link in fact
Please include any additional information about how to reproduce the problem:

Expected Behavior
It should save the images in the folder.
Actual Behavior
All it saves is just an URL folder.

Go to configuration, you probably have "Save URLs only" enabled.


Delete old Zarr entries in a single git rm call

Closes #31.

Looks good to me! Thank you @jwodder!  Let's merge and try it out.


Script breaks when Wrapper-VASTAdTagURI fails

If VAST is a wrapper, and the VASTAdTagURI fails (e.g. due to missing CORS), onLoaded breaks, consequently the queryVAST onFetched callback is never called. onLoaded expects ads to be populated, there is no error checking in there.
(Possible solution, and workaround for me locally: If ads arrives as null in onLoaded, this.loaded is be set to true anyway and onAdAvailable is called, so errors could still be tracked, but I'm not sufficiently familiar with the recursion mechanism to actually decide this.)

This is partially fixed by 018ba4f9d4be4215526e614cd13646f29094106f / #13 in that a callback is at least called. There's currently no reporting of what the error was, though that should be fairly straightforward to add.


Support for editing tasks in the new To-do list editor

Thank you for adding support for viewing O365 tasks in the new To-do list UX in Home Assistant! While I can see all of my tasks, they seem to be read-only. I can't check any of them off, edit them, or add a new task. Is this on the roadmap?

Assuming you have enabled update permissions for tasks (and if you have been able to rename one, it should be enabled), then you need to raise the query with the core. I don't control the new UI at all. You can also check if you can update using the services in the developer tools.

It all works fine for me, so I suspect it's permissions on your O365 setup.

Ah, yes, that was it! Apparently I was missing enable_update for tasks (somehow I thought the one further up in YAML applied to everything). Thanks for the pointer! I'm glad I checked rather than waiting for editing support to be added. I would have waited forever. 😬


replace StringBuffer with StringBuilder in local variable and delete …

…useless code

Ⅰ. Describe what this PR did

replace StringBuffer with StringBuilder in local variable
remove useless init code in PreparedStatementProxy, which is duplicate in super class
Change some comment

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
unit test is cover by now
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #1619 into develop will decrease coverage by <.01%.
The diff coverage is 37.03%.

@@              Coverage Diff              @@
##             develop    #1619      +/-   ##
=============================================
- Coverage      46.75%   46.75%   -0.01%
  Complexity      1730     1730
=============================================
  Files            353      353
  Lines          12949    12941       -8
  Branches        1619     1618       -1
=============================================
- Hits            6054     6050       -4
+ Misses          6244     6238       -6
- Partials         651      653       +2

Impacted Files
Coverage Δ
Complexity Δ

.../seata/rm/datasource/sql/druid/BaseRecognizer.java
50% <ø> (ø)
3 <0> (ø)
:arrow_down:

...io/seata/rm/datasource/PreparedStatementProxy.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...source/undo/mysql/keyword/MySQLKeywordChecker.java
98.58% <ø> (ø)
7 <0> (ø)
:arrow_down:

...tasource/undo/oracle/OracleUndoInsertExecutor.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

.../druid/oracle/OracleSelectForUpdateRecognizer.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...tasource/undo/oracle/OracleUndoDeleteExecutor.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...ource/sql/druid/oracle/OracleUpdateRecognizer.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...ource/sql/druid/oracle/OracleDeleteRecognizer.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...tasource/undo/oracle/OracleUndoUpdateExecutor.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...ource/sql/druid/oracle/OracleInsertRecognizer.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

... and 5 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 031a99f...302d87b. Read the comment docs.


Prepare the Launch Plan for CTI

Overview
We need to plan how to do the Launch.
Action Items

[x] Launch Timeline

[x] Phase 1-  Pre-launch Checklist

[x] Phase 2 - UAT and Fix Bugs

[ ] Phase 3 - Alpha website launch (Soft Launch)!
Get Brigade Owners to Site to Tag Projects
User Testing
Google Analytics Benchmarking

[ ] Phase 4 - connect and promote
Attend events
Bugs fixing, finish pending stuff
Invite people to the official launch party

[ ] Phase 5 - Official Launch!
Launch Party

Resources/Instructions
Google Sheet of Details
Audit Spreadsheet

SSL cert: Works http://civictechindex.org
Does not work https://civictechindex.org
Cookies and

Cookies message has button that does not match the design system

cookies is coming back after having been dismissed when you do the following
Go to website
https://civictechindex.org/home
Accept cookies
visit radical collaboration page http://civictechindex.org/support/collaborate
Click on http://civictechindex.org/about/contact
its back


If gaia init failes app doesn't recover

On starting the gaia we have to init. currently init breaks in some cases with a hash mismatch. In this case we procede to starting gaia but get an error that we need to init gaia first. On consecutive start of the app we never init gaia again.

Just experienced it again:

how do we get around this in the mean time?

The user can remove the config folder. This "resets" the application.
My idea to simply solve this is to react to the specific error and init Gaia again.

closed by #438


Add attachments by API

It's possible attach a pdf document by API? I dont find any reference about this and it can be very useful for create a custom page with a external softwares.

@geysonsantana It's not possible at this time but we are open to requests for the API assuming there's a BookStack-focused use case.
It would be good to know the following:

Are you already using BookStack or are you currently scoping it out for potential use?
Can you provide details about your intended use of such an API endpoint?

I think once the API is more developed this will be a great addition to integrate Bookstack into processes and automated workflows that we also have.
For example push config changes or things like that into Bookstack via an automated way.

We are using the BookStack integrated with other system. Our idea is as follows, centralize and automate the criation of shelves, chapters, books and pages for a knowledge base. Some pages have an attachment and our workaround was create uns href in the page for other apache repository. For a while, its working good, but will be more interesting work at the bookstack by api.

It's a great idea to expand the API for uploading attachments. Maybe also pictures. When we are getting to URL of an uploaded picture we could automatically upload new articles with pictures.
Similar situation as @geysonsantana


Results UNKNOWN on Server 2019

Describe the bug
I'm attempting to use this for the first time, and I am not getting any results back.  After taking a before-and-after snapshot and running an analysis, the UI does not let me select a result type to view, and if I export, it returns:
{
  "results": {
    "UNKNOWN": 0
  },
  "metadata": {
    "compare-version": "2.2.76+68c0dfa092",
    "compare-os": "WINDOWS",
    "compare-osversion": "Microsoft Windows NT 10.0.17763.0"
  }
}

To Reproduce
I used the following steps:

Download and install ASA from github
Run asa.exe gui
Run a static scan
Add an unsigned EXE to the /Downloads folder
Run a static scan
Run an analysis on the two results

If I export, I get a file with the contents above.  The shell also lists this:
[07:03:01 INF] Begin ?02?/?24?/?21? ?07?:?02?:?58? ?AM.
[07:03:01 INF] Starting 9 Collectors.
[07:03:01 INF] Starting FileSystemCollector.
[07:03:01 INF] Scanning root C:\
[07:04:54 INF] Completed FileSystemCollector in 00h:01m:52s:817ms.
[07:04:54 INF] Starting OpenPortCollector.
[07:04:54 INF] Completed OpenPortCollector in 00h:00m:00s:086ms.
[07:04:55 INF] Starting ServiceCollector.
[07:04:56 INF] Completed ServiceCollector in 00h:00m:01s:458ms.
[07:04:56 INF] Starting UserAccountCollector.
[07:05:00 INF] Completed UserAccountCollector in 00h:00m:03s:999ms.
[07:05:00 INF] Starting RegistryCollector.
[07:06:23 INF] Completed RegistryCollector in 00h:01m:23s:342ms.
[07:06:24 INF] Starting CertificateCollector.
[07:06:24 INF] Completed CertificateCollector in 00h:00m:00s:051ms.
[07:06:24 INF] Starting FirewallCollector.
[07:06:24 INF] Completed FirewallCollector in 00h:00m:00s:093ms.
[07:06:24 INF] Starting ComObjectCollector.
[07:06:34 INF] Completed ComObjectCollector in 00h:00m:09s:786ms.
[07:06:34 INF] Starting EventLogCollector.
[07:06:39 INF] Completed EventLogCollector in 00h:00m:04s:736ms.
[07:08:15 INF] Exporting UNKNOWN
[07:08:34 INF] Completed Comparing in 00h:00m:25s:753ms.
[07:08:34 INF] Loaded Analyses from Embedded.
[07:08:34 INF] Completed Analysis in 00h:00m:00s:054ms.
[07:08:36 INF] Exporting UNKNOWN
[07:08:42 INF] Completed Flushing in 00h:00m:07s:858ms.

Expected behavior
I'd expect some results from my scan
System Configuration (please complete the following information):

OS: Microsoft Windows Service 2019 Standard.  On a VM, if that makes any difference.
OS Version: 10.0.17763
Application Version: 2.2.76
CLI or GUI: GUI

Thanks for the report Nathan.  I'll start taking a look today.  This is indeed unexpected.

I can't reproduce this using the CLI the version published to nuget.  Testing the GUI now.
The workaround to do what you were doing in the Cli is

asa collect -a
Run your targeted operation
asa collect -a
asa export-collect

PS C:\Users\gstocco> asa collect -f --directories Downloads
[13:30:41 INF] AttackSurfaceAnalyzer v.2.2.76+68c0dfa092
[13:30:42 WRN] Attack Surface Analyzer should be run as Administrator. Results will not be complete.
[13:30:42 INF] Begin 2021-02-24T13:30:42.2567714-08:00.
[13:30:42 INF] Starting 1 Collectors.
[13:30:42 INF] Starting FileSystemCollector.
[13:30:42 INF] Scanning root Downloads
[13:31:06 INF] Completed FileSystemCollector in 00h:00m:23s:715ms.
PS C:\Users\gstocco> copy .\Documents\GitHub\RecursiveExtractor\RecursiveExtractor\bin\Debug\net5.0\RecursiveExtractor.dll .
PS C:\Users\gstocco> move .\RecursiveExtractor.dll .\Downloads\RecursiveExtractor.dll
PS C:\Users\gstocco> asa collect -f --directories Downloads
[13:32:13 INF] AttackSurfaceAnalyzer v.2.2.76+68c0dfa092
[13:32:14 WRN] Attack Surface Analyzer should be run as Administrator. Results will not be complete.
[13:32:14 INF] Begin 2021-02-24T13:32:14.1957657-08:00.
[13:32:14 INF] Starting 1 Collectors.
[13:32:14 INF] Starting FileSystemCollector.
[13:32:14 INF] Scanning root Downloads
[13:32:23 INF] Completed FileSystemCollector in 00h:00m:08s:958ms.
PS C:\Users\gstocco> asa export-collect
[13:32:32 INF] AttackSurfaceAnalyzer v.2.2.76+68c0dfa092
[13:32:32 INF] Provided null run Ids using latest two runs.
[13:32:32 INF] Comparing 2021-02-24T13:30:42.2567714-08:00 vs 2021-02-24T13:32:14.1957657-08:00.
[13:32:33 INF] Completed Comparing in 00h:00m:00s:388ms.
[13:32:33 INF] Loaded Analyses from Embedded.
[13:32:33 INF] Completed Analysis in 00h:00m:00s:388ms.
[13:32:33 INF] Completed Flushing in 00h:00m:00s:000ms.
[13:32:33 INF] Output written to: C:\Users\gstocco\2021-02-24T13_30_42.2567714-08_00_vs_2021-02-24T13_32_14.1957657-08_00_summary.json.txt

Can't reproduce this on the GUI either on Windows 10.  This might be a compatibility issue with Server 2019.

Even I'm facing the same issue.
In GUI, we are unable to export results for a specific type.

@ritwik-20198 are you also on server 2019?

I've tested on server and get results successfully on the command line but something does seem strange in the GUI on server.
The GUI was completely rewritten for 2.3 in Blazor so any issues you're seeing in the old GUI wouldn't carry over.
2.3 is currently in Beta.


Extra newline added to cells after formatting with any formatter

Thanks so much for the native notebook experience: it's awesome!
One niggle that keeps biting me and my team: formatting cells (with autopep8, or yapf, or black) adds an empty line after each cell.
Steps to reproduce

create a cell in a Jupyter notebook
add any code in it, as long as it does not finish with a blank line
format cell (e.g. with Shift+Alt+F)

Expected behaviour

the number of lines in the cell stays unchanged, same as if you ran e.g. black on the notebook or autopep8 on the notebook.

Observed behaviour

an empty new line is added at the end of the cell.

Cause
This is because VSCode formats cells by, quite cleverly, saving their content to a tempfile then running the formatter on that tempfile. All good formatters ensure the last line of the file finishes with a new line \n char: this is entirely expected for Python files, but not for notebook cells.
Indeed adding such a newline at the end of the last line of a Jupyter notebook cell adds it to the cell's JSON and is then interpreted as an actual new blank line displayed in the cell.  In every single cell :/
This is why for example black for notebooks removes that newline when called on notebooks and so do autopep8 callers on notebooks.
See e.g. discussion in Black issue with @MarcoGorelli.
Suggested minimum fix
I think there's a simple way to keep the common formatting-a-tempfile logic while still fixing this bug: modifying BaseFormatter.provideDocumentFormattingEdits() to, at line https://github.com/microsoft/vscode-python/blob/3698950c97982f31bb9dbfc19c4cd8308acda284/src/client/formatters/baseFormatter.ts#L78 or after applying the pach in https://github.com/microsoft/vscode-python/blob/3698950c97982f31bb9dbfc19c4cd8308acda284/src/client/formatters/baseFormatter.ts#L84 insert a promise that calls isNotebookCell(document) (like createTempFile does ) then if true removes the final newline.
I'm looking at making a PR to help, but never coded in TS, so filing this as an issue first.
Environment data

VS Code version: 1.61.0
Extension version (available under the Extensions sidebar): v2021.10.1317843341
OS and version: Windows 10 20H2 with a WSL remote to an Ubuntu 20.04 (not that it matters for this bug :) )
Python version (& distribution if applicable, e.g. Anaconda): All, but in this case 3.9.5 64bit
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda with micromamba
Relevant/affected Python packages and their versions: All
Relevant/affected Python-related VS Code extensions and their versions: vscode-python
Value of the python.languageServer setting: Default (with pylance installed)

@jucor Can you try the black formatter extension we have? https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter

Any temporary fix?

Any temporary fix?

@karthiknadig mentions to use the black formatter https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter, it works for me.

works for me too!
VSC Version: 1.73.1 (Universal)
jupyter: v2022.9.1202862440
black formatter: v2022.6.0

Thank for try the black formatter extension. Going forward that will be the way we provide formatting feature. We have started the process of migrating users over from current experience to the new extensions.


Intellisense not working at all

Issue Description
Intellisense does not work at all. It has not worked since I downloaded Visual Studio Code.
Steps to Reproduce
Downloaded Unity, Downloaded Visual Studio Code, Installed C# Extension and recommended .NET SDK, Intellisense not working.
Expected Behavior
Expected underlines, suggestions, etc. All features of Intellisense.
Actual Behavior
Some suggestions, no descriptions, no underlines. Visual Studio is basically unusable.
Logs
OmniSharp log
Post the output from Output-->OmniSharp log here
C# log
Post the output from Output-->C# here
Environment information
VSCode version: 1.38.1
C# Extension: 1.21.3
Dotnet Information
.NET Core SDK (reflecting any global.json):
 Version:   2.2.402
 Commit:    c7f2f96116
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.18362
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\2.2.402\
Host (useful for support):
Version: 2.2.7
Commit:  b1e29ae826
.NET Core SDKs installed:
2.2.402 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

csharp
ms-vscode
1.21.3

I am not getting Intellisense as well. I have C# extension version 1.21.3, and .NET Core SDK version 3.0.100.
VSCode Info:
Version: 1.38.1 (user setup)
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:35:15.005Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

@MRosari0 Since you're on windows, you can use a small workaround. You can download the visual studio 2019 build tools here https://visualstudio.microsoft.com/downloads. You'll need to scroll down and expand the section called "Tools for Visual Studio 2019". You only need to install the ".NET Core build tools" under Workloads. Once installed, add an Environment variable for your user with name: MSBUILD_EXE_PATH and value C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin. Close and reopen your project in vs code and it should work.
You can confirm its using the new ms build directory by looking at the omnisharp debug log and looking for this entry:
[dbug]: OmniSharp.MSBuild.ProjectSystem
        MSBuild environment:
Mode: VisualStudio
RunningTests: False
RunningInVisualStudio: False
MSBuildToolsDirectory32: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
MSBuildToolsDirectory64: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\amd64
MSBuildSDKsPath: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Sdks
CurrentMSBuildConfigurationFile: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe.config
CurrentMSBuildExePath: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
CurrentMSBuildToolsDirectory: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
VisualStudioInstallRootDirectory: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
MSBuildExtensionsPath: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild

It should be using msbuild the new build tools you just installed rather than the one shipping with omnisharp.
The reason for this workaround is apparently this: https://github.com/OmniSharp/omnisharp-vscode/issues/3287#issuecomment-534838413

I believe this is due to Omnisharp, not shipping with the correct version of MSBuild for .Net Core 3. Omnisharp ships with MSBuild 15. Dotnet Core 3 uses version 16. If you can install vs2019, that will install msbuild version 16, and everything should work as expected.
This is why downgrading to 2.2 works fine. 2.2 uses msbuild 15.
Sadly, linux and mac are still SOL for now.

The reason for this workaround is apparently this: #3287 (comment)

The linked comment is not correct. OmniSharp ships with MSBuild 16 since April (https://github.com/OmniSharp/omnisharp-roslyn/pull/1444) - that's why .NET Core 3.0 previews worked with OmniSharp before. It's just MSBuild 16 has assembly version 15.x which is why it shows up in the paths in a misleading way, with 15. There are several other issues that cause certain problems though - especially with .NET Core 3.0 RTM.
If you install VS 2019 or VS 2019 Build Tools (or Mono 6+ on *nix), OmniSharp will automatically pick it up instead of the embedded MSBuild and use that for language services - there should be no need to export any additional variables. It has always worked like that (for all VS versions) and it's the safest bet to resolve any issues.
For the embedded runtime - without VS/VS Build Tools/Mono - at the moment the best workaround would be to try https://github.com/OmniSharp/omnisharp-vscode/issues/3290#issuecomment-536199648 or https://github.com/OmniSharp/omnisharp-vscode/issues/3290#issuecomment-534537270. The latter will always be better though as the support in the built-in MSBuild in VS2019 / Mono will be always better than in the built in instance running on embedded Mono.
Hope this clarifies this a bit.

@MRosari0 Since you're on windows, you can use a small workaround. You can follow the directions from here: #3289 (comment)
You can confirm its using the new ms build directory by looking at the omnisharp log (with debug on) and looking for this entry:
[dbug]: OmniSharp.MSBuild.ProjectSystem
        MSBuild environment:
Mode: VisualStudio
RunningTests: False
RunningInVisualStudio: False
MSBuildToolsDirectory32: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
MSBuildToolsDirectory64: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\amd64
MSBuildSDKsPath: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Sdks
CurrentMSBuildConfigurationFile: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe.config
CurrentMSBuildExePath: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe
CurrentMSBuildToolsDirectory: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
VisualStudioInstallRootDirectory: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
MSBuildExtensionsPath: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild

It should be using msbuild from the new build tools you just installed rather than the one shipping with omnisharp.
I think the problem is basically this #3290
Hopefully fixed for windows with OmniSharp/omnisharp-roslyn#1606
Linux and mac can try installing mono 6 or newer per this comment #3290 (comment)
Edit:
@filipw thanks for the clarification! I've updated my comment to better reflect the facts. My apologies for the initial misinformed linking.

If you install VS 2019 or VS 2019 Build Tools (or Mono 6+ on *nix), OmniSharp will automatically pick it up instead of the embedded MSBuild and use that for language services - there should be no need to export any additional variables. It has always worked like that (for all VS versions) and it's the safest bet to resolve any issues.

I actually have VS Enterprise 2019 installed so it sounds like I don't need to pick up the build tools.
This is what's showing in my OmniSharp Log. I have debugging on but didn't get the output you had referenced. Would these lines work as confirmation?
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator         Located 2 MSBuild instance(s)             1: Visual Studio Enterprise 2019 16.3.29326.143 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin"             2: StandAlone 16.0 - "C:\Users\my_username\.vscode\extensions\ms-vscode.csharp-1.21.3\.omnisharp\1.34.4-beta.7\.msbuild\Current\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator         Registered MSBuild instance: Visual Studio Enterprise 2019 16.3.29326.143 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin"

I followed the tutorial from Microsoft for VS Code with Unity and it seemed to finally do the trick... https://code.visualstudio.com/docs/other/unity
Steps I took:

Installed https://dotnet.microsoft.com/download
Installed https://www.mono-project.com/download/stable/
Installed C# extension in VS Code.
Unity > Preferences (cmd + , on Mac) > External Tools (left toolbar) > External Script Editor > Visual Studio Code.
Then this is the trick I found to work after doing all of this...  I open up VS Code prior to starting my Unity Project and manually go into the Unity Project folder and open up everything in VS Code FIRST. Then, with that project already open and working in VS Code with Intellisense, I double click the script in Unity and it will open it up in the already opened VS Code editor and have Intellisense already working! Do my normal workflow for the day and close everything down... then when I start up the next time, just be sure to open the project in VS Code FIRST and then VS Code will recognize it's a C# project and initiate Intellisense and all that jazz.

Hope this helps!

I'm no longer using VS 2019 so no further point of troubleshooting for me.

I've run into this before.  In my case, it was simply because the project was not added to the solution in the directory root. Appears that OmniSharp looks in their to determine which projects to provide intellisense for.

One thing to be aware of when working with C# scripts in Unity is that you don't want to double click the script from Unity to open it. When this happens, only the file is opened which doesn't pull in the Project references and other information needed to provide intellisense and analysis. It is better to use Assets -> Open C# Project, since that will open the full project in VS Code.

@JAMJAR64 does this still reproduce for you? How did you open the C# file, as @JoeRobich describes?

Bro, i have the answer for you. the solution is super SIMPLE you just have to make sure that you already downloaded these tools :

Unity Code Snippets by Kleber Silva
Debugger for Unity by Unity Technologies
Unity Tools by Tobiah Zarlez

which you can find them all on VSCode, after installing it, close the VSCode and reopen. That's all of it.
I've been strolling to any possible solutions I could find for the same problems as yours, but the answer is just as away as your right-hand to your mouse.

@paulusuluap Bro, I have installed these tools for ages, but still it won't work in Unity 2020.

Update: I found a workaround on the Unity forum that actually worked:
https://forum.unity.com/threads/intellisense-not-working-for-visual-studio-code.812040/#post-5858986
I have no idea why it helped, because I was already running a blank Unity project and Unity should have set everything up already. But it worked.

Closing out as there was no repro given.


Update Katalon developers

Description
Github repository: https://github.com/jenkinsci/katalon-plugin
Hosting request: https://github.com/jenkins-infra/repository-permissions-updater/pull/960
Maintainer: @devalex88
Newly added: @hainguyenkatalon, @duyluonganh
Submitter checklist for adding or changing permissions
Always

[x] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[x] Add link to resolved HOSTING issue in description above

For a new permissions file only

[x] Make sure the file is created in permissions/ directory
[x] artifactId (pom.xml) is used for name (permissions YAML file).
[x] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[x] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[x] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[x] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[x] Make sure to @mention the users being added so their GitHub account names are known if they require GitHub merge access (see below).
[x] All newly added users have logged in to Artifactory at least once

Reviewer checklist (not for requesters!)

[x] Check this if newly added person also needs to be given merge permission to the GitHub repo (please @ the people/person with their GitHub username in this issue as well). If needed, it can be done using an IRC Bot command
[x] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @Wadeck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it

You also need to check the approprate checkboxes in the pull request template, and cc the existing maintainer.

Thank you @halkeye. I've updated PR according to your comment.

Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name

Did you do this?

All newly added users have logged in to Artifactory at least once

Or this? The build is failing cause  hainguyenkatalon isn't in the list of artifactory users

@halkeye He did that yesterday. I'm sorry I think it's because I had saved the file before that.

Looks like there's a backlog for running the CI job.
Considering its not yet approved by the original maintainer its not really in a rush.

I do see them in https://reports.jenkins.io/artifactory-ldap-users-report.json so that part should at least pass

It seems all checks have passed. Please let me know if there is anything else needed. Thank you all!

Thank you @timja! When would new developers be able to work on the plugin repository?

now? they need to accept the invite at https://github.com/jenkinsci


Update build.sh: include x86_64 support

Forgot to include a comment, sorry.
On my x86_64 mac (a dying breed) the code fails at the very end when copying the files.  To combat this, I added an if statement to assign the correct folder location based on your machine's architecture.

Excellent, thanks!


Improve portal teleportation behavior (entities)

Especially improve the following:

Minecarts should travel through portals correctly, the end-gateway block seems to interfere with this behavior (teleports them to 0 0 0 presumably)
Riding a horse or minecart when travelling should work as expected
Any other entity (villager, items, ...) should be able to travel through as expected.

This addresses part of issue #33 and all of #19.

Implementation should also include #91.


/user/username/submitted

https://www.reddit.com/dev/api#GET_user_{username}_submitted

80ccf65fec3d4a1b4b465d33999cd3f23d3e036a


Add compleasm

Description of feature
Tool feature: Faster and more accurate than BUSCO: https://github.com/huangnengCSU/compleasm
Requirement: Adding as an alternative to BUSCO

Thank you @christinawu2008
This is related to miniBUSCO issue https://github.com/Plant-Food-Research-Open/assemblyqc/issues/59
I think compleasm is still in beta development and does not support all the BUSCO modes yet.


Typescript support?

Any plan to support Typescript?

There is a .d.ts file
that gives a few type hints for the library, but it's not exhaustive by any means.
PRs welcome if you can see opportunity to improve it.


Members decorated with EditorBrowsableState.Never should be treated like Hidden

Summary of the new feature/enhancement
Member binding should respect EditorBrowsable(EditorBrowsableState.Never), hiding them from member completion and Get-Member (when -Force is not specified).
Currently it has no effect, which could give the illusion that an API is supported when it isn't (e.g. System.Runtime.CompilerServices.CallSiteOps)
Proposed technical implementation details (optional)
Check for EditorBrowsableAttribute when looking for HiddenAttribute (here and here)

@SeeminglyScience Here is my thought process on this. This attribute is used to hide properties from the graphical property editor in Visual Studio. They are, however, still public properties that can be accessed in code. Given that they are public they are in fact supported so if you are using PowerShell to investigate an object with such properties you probably want to see them.  That said, given the scenario, i don't think many people will ever encounter them so it probably doesn't matter much. But, implementing such checks will probably  add overhead (a cost) to the property handling code for every member reference. So in the end, this seems like a pervasive cost for little benefit. Have i missed something?

This attribute is used to hide properties from the graphical property editor in Visual Studio.

And also from intellisense (in VSCode at least, haven't checked VS)

Given that they are public they are in fact supported

Well not necessarily, but I will admit on second look EditorBrowsableState.Never doesn't neccessarily mean it's not supported.  I could have sworn it decorated members were excluded by roslyn for member resolution period,  but the one I tested must have been a special case (or I was mistaken 🤷♂)
Though, I think that makes a stronger case for it to be treated as Hidden since they seem to work the exact same way.

But, implementing such checks will probably add overhead (a cost) to the property handling code for every member reference.

I admit I don't know off hand exactly how heavy it is to check for an attribute.  Would it be of concern to check for that attribute once during PSMethod/PSProperty creation? (It wouldn't be every binding, isHidden is an arg on the constructors)
If it is a concern though, does that check necessarily need to happen at PSMemberInfo creation?  I think you'd agree that checking for the attribute would be a non-issue during completion analysis and/or Get-Member invocation.

I also would really appreciate this feature and hope you could reconsider this. We integrated the Powershell as a consoleinterface via the SDK into our programm. Since our programm is pretty modular it consist of many solutions and projects. To hide specific Members from the Powershell every project would need the SDK as a dependency only to get access to the Hidden-Attribute. It would feel way better if the PowerShell also supported an Attribute of the framework to avoid this unnecessary dependency and I think the EditorBrowsableAttribute would be a good choice for this.


Strange starting directory when launched from explorer.exe's address bar

Windows Terminal version
1.4.201119003-release1.4
Windows build number
10.0.19042.685
Other Software
No response
Steps to reproduce
Config the starting directory of the default profile
{
            "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "commandline": "cmd.exe",
            "startingDirectory": "%__CD__%",

Run wt from the win+r dialog:

Run wt from  explorer.exe's address bar when cwd of explorer is something like %userprofile%\Downloads:

view the %__cd__%
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.4.3243.0_x64__8wekyb3d8bbwe>echo %cd%
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.4.3243.0_x64__8wekyb3d8bbwe

C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.4.3243.0_x64__8wekyb3d8bbwe>echo %cd%\
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.4.3243.0_x64__8wekyb3d8bbwe\

C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.4.3243.0_x64__8wekyb3d8bbwe>echo %__cd__%
C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.4.3243.0_x64__8wekyb3d8bbwe\

Config the starting directory of the default profile
{
            "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "commandline": "cmd.exe",
            "startingDirectory": "%CD%",

Run wt from the win+r dialog:

Run wt from  explorer.exe's address bar, still not same as cwd:

Config startingDirectory to %CD%\ or remove it from the profile:
the same as "%CD%".
Maybe related #7204 #12602
Expected Behavior
In some previous version which cannot figure out, the terminal is launched the same path as the explorer.
Actual Behavior
I've not updated to the latest build because of a problem related to #6591, the .msixbundle file itself will cause a file system error,
but I can reproduce the problem on some other computers with new builds.

Additional problem:
The wt launched by explorer differs from that launched by win+r dialog not only in starting directory. There's also a special environment variable when launched from explorer.
Run !peb in WinDbg will get

This is the one launched from win+r

And the entry =::=::\ is added to explorer's environment after the terminal process is spawned.

Correction:
"win+r dialog metioned above is actually taskmgr's "File - Run new task".
I assumed it the same as win+r, but the runfile dialog hehaves more like explorer.exe

Currently, __CD__, __APPDIR__, FIRMWARE_TYPE, and NUMBER_OF_PROCESSORS are dynamic variables provided by GetEnvironmentVariableW() and ExpandEnvironmentStringsW() and implemented by the NT runtime library function RtlQueryEnvironmentVariable(). If they're set as real variables via SetEnvironmentVariableW(), the value from the environment block is ignored by GetEnvironmentVariableW() and ExpandEnvironmentStringsW(). The latter isn't necessarily the case for language runtimes, particularly those that work from a copy of the process environment block (e.g. C _wenviron, _wgetenv(), etc).
When a process is spawned via CreateProcess[AsUser]W() , if lpCurrentDirectory is set, it must name an existing directory (off-topic note: long paths aren't supported), else the call fails with ERROR_DIRECTORY. Passing "%CD%" for lpCurrentDirectory is resolved as a literal filename relative to the current working directory of the spawning process (e.g. wt.exe). CD is a dynamic variable in the CMD shell, so it's only reasonable to use it in a command line that's evaluated by CMD, such as cmd.exe /k echo %cd%.


Does not work with specific .gitignore

It doesn't work with following .gitignore (for ignoring files without extension)
*
!*/
!*.*

Environment:
Version: 0.31.0
OS: Ubuntu 16.04.2 LTS

See #1113

Mmh, doesn;t yet seem to work with unignoring directories.


Fixing some styling issues, some bugs and increasing performans during reminder loops.

@mertyildiran hello mister, I created test files for take_note.py submodule and takenote.py submodule of dragonfire taking note ability with if-else structure.

@MCYBA please do the following changes:

Rename dragonfire.commands.takenote_submodules module to dragonfire.commands.takenote.
Do not use numbers in module names. Try to combine these two files: check_take_compare1.py and check_take_compare2.py into a single file.
There is an inconsistency on the naming of take_note and takenote choose one of them and stick with it.
I'm still unsure about the functionality of the note taking feature. I will look further into it. The unit tests that you have wrote are not so meaningful. Why did you add two different test files for the same functionality? Please try to combine test_dragonfire_takenote.py and test_take_note.py into a single file. There is already test_dragonfire.py for testing Dragonfire as a whole. If your purpose is testing the imports of the note taking feature into the top level module then write those tests into test_dragonfire.py do not create another file.

I divided code blocks into these files( check_take_compare1.py and check_take_compare2.py) for managing the code better. İf you want to see these files into a single one, I will, or maybe I can rename both?
For this file test_dragonfire_takenote.py, İf I put codes into the test_dragonfire.py, file was become waste. Please, verify for the last time, should I do this?

@MCYBA please combine these two files: check_take_compare1.py and check_take_compare2.py into a single file. Shorter file does not mean more manageable/maintainable. A long but well written file can also be easily maintained. You should create a new module only if it serves a completely different purpose and that's not your case right now. Functions of (actually) the same class on multiple files is unacceptable.

After what you say, I wrote new classes for fixing the styling issue. What do you think about this correction?

@MCYBA oops this time Travis CI build failed. Again this is not what I'm asking. There should be one file, one or maybe two classes and the functions go under that class. There is no such thing as "Add new classes instead functions". Also please don't use numbers anywhere like in module, class or function names.
Travis CI failure might now related to this PR and just a failed to download issue. I'm restarting the build...

By the way don't forget to squash your last commits since no one wants to see unnecessary amount of commits. You should also squash unnecessary commits into a single one like https://github.com/DragonComputer/Dragonfire/pull/103/commits/1922f9f48bde2512d07f04425f9c6bdc659b912a and https://github.com/DragonComputer/Dragonfire/pull/103/commits/666a8b64341c3107eb1ee3c527149d0098914ac8 .
 Correction as a commit message is unacceptable and also it's not descriptive enough. correction takenote.py check submodules explanation lines is also not an imperative sentence. Fix your grammar and punctuation.
Last but not least, do not use dot [.] at the end of the first lines of the commit messages. Since the first line of a commit message is actually serves as the title of the commit.

@mertyildiran Mister, I am confused little bit about git jobs but I think mission completed. :)
There is just one file I did not change like your wants: test_dragonfire_takenote.py. Should I merge it with test_dragonfire.py?

@MCYBA you should rename test_dragonfire_takenote.py as test_takenote.py and fix the commit message
::white_check_mark: add test file for testing dragonfire taking note ability.  to
:white_check_mark: Add tests for Dragonfire's note taking ability

All requirements passed mister?


fix infrastructure

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#372  👈
#371
#370
#368
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @chrisaddy and the rest of your teammates on  Graphite


Change settings

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
It would be nice to have the ability to also change settings on f the heat pump within settings.
Describe the solution you'd like
There was a way (using a rooted android device) to get an access token to be able to change settings of the heat pump rather than only gain insights. It would be amazing to, for example, dynamically change electricity and gas prices based on current prices for those with a dynamic energy contract.
Describe alternatives you've considered
None
Additional context
None

I would really like this feature and I initially was exploring the use of the mobile API. Especially since I have a dynamic energy contract as well. But, as you mentioned, it requires a rooted phone, and currently I don't have one lying around. I tried an emulator but that doesn't work with the firebase app check.
I hope they will either add functionality to the local API or add support for dynamic energy prices in the app. But currently I have the diyless thermostat connected to the Quatt CIC and integrated in Home Assistant. This allows me to automate changing the target temperature based on the daily gas price, hourly electricity prices and our presence and work schedules.

Hi Marco, I am really interested in also using diyless as thermostat. Can you confirm this works with Quatt, I am assuming since you use it, it works?  Also, is there a different forum where we could discuss (tweakers?) without misusing this thread?

So, over the last few days it has been clear that the diyless thermostat works really well! I see frequent room temperature updates. It gives a control setpoint that sometimes goes a little mad but the Quatt seems to ignore that and use the room setpoint correctly, which is in line with what was communicated from Quatt about only using the room temperature and setpoint and decides on modulation by itself. I have also been able to use 0.5 degrees increments without causing it to use gas, even with these temps and living in an old house. Thats helps me to lower the temps and going to a lower modulation during peak hours or at nights (not usefull with current temps/prices).

Any update on this?


Validate all strings

For security reasons, we should be validating all JSON strings coming into our services (IDs, descriptions, etc.) so as to prevent XSS, SQL injection and other types of attack.

Closing as 💀


What information should be included in the tracking ADO WorkItem

Based in our conversations currently ADO items are only for services that are in scope for APEX. If the wokitem is closed, it means that they have cocluded the APEX work.
Once they are out of APEX the workitem doesn't make sense and we shouldn't touch it in any of our cloud flows.
cc: @ladonnaq

This is covered by the design described in https://github.com/Azure/azure-sdk-tools/issues/5932


Blink Invalid Configuration

Home Assistant release with the issue:
Version 0.93.2
Last working Home Assistant release (if known):
Version 0.93.2
Operating environment (Hass.io/Docker/Windows/etc.):
Version 163 of Hass.io
Component/platform:
https://www.home-assistant.io/components/blink/
Description of problem:
No changes to version or configuration, HA is no longer able to set up the blink cameras and an "invalid config" notification is displayed on the UI with the message:
The following components and platforms could not be set up:
blink
Please check your config.
Appears to be an Endpoint issue.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
blink:
username: USERNAME
password: PASSWORD
Traceback (if applicable):
2019-05-31 07:22:31 ERROR (SyncWorker_8) [blinkpy.helpers.util] Endpoint https://rest.u002.immedia-semi.com/api/v3/accounts/None/homescreen failed. Possible issue with Blink servers.
2019-05-31 07:22:32 ERROR (MainThread) [homeassistant.setup] Error during setup of component blink
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 156, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/blink/init.py", line 93, in setup
hass.data[BLINK_DATA].start()
File "/usr/local/lib/python3.7/site-packages/blinkpy/blinkpy.py", line 95, in start
camera_list = self.get_cameras()
File "/usr/local/lib/python3.7/site-packages/blinkpy/blinkpy.py", line 202, in get_cameras
for camera in response['cameras']:
TypeError: 'NoneType' object is not subscriptable
Additional information:
This started happening on May 29, 2019.

This looks like a problem with the cert expiring today:

Would need to be fixed by blink themselves or by the underlying lib used by this (blinkpy) to ignore SSL verification which is less than ideal.

It seems there is a URL https://rest.u003.immedia-semi.com/api/v3/accounts/None/homescreen which has valid cert. Could this be used for API Access?

I believe that first part is some region code. I only glanced over the blinkpy code. There is also the None bit in the URL which seems wrong as well.

I believe that first part is some region code. I only glanced over the blinkpy code. There is also the None bit in the URL which seems wrong as well.

My account seems to be working normally. I was able to log out and login, watch live video and recorded ones from Android App.

Hello @fronzbot,
My account is working correctly within the Blink app as well (iOS).
I agree with @awiddersheim, the SSL certificate has expired and this is causing the connection issue. Is there any way to try using the other end point as @finnysamuel had suggested?
Thank you very much!

Someone should reach out to Blink and complain. It should be on them to fix.

I was saying they should fix the cert not the python lob.

If the app is using these endpoints with an expired cert I would be pretty afraid.

Good Morning @fronzbot,
Thank you very much for all the research on this issue! I'll wait until the next released version of HA comes out (I suspect it will be soon) instead of installing the current beta.
I'll keep you posted on the results.
Thanks again for everyone's help and input.
-Rodney

Good Morning @fronzbot,
I just installed HA 0.94.0 and the Blink cameras are working again! It also appears that the issue with the secondary sync module automatically disarming has been resolved as well. Woohoo! 😀
Thanks again for resolving these issues!!
Best regards,
Rodney

Done! :)
On Thu, Jun 6, 2019 at 10:40 AM Kevin Fronczak<EMAIL_ADDRESS>wrote:

Awesome! Since it's fixed, could you close this issue? Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/24221?email_source=notifications&email_token=AAJ76EFUSU2KKTUCNE5235LPZEOUFA5CNFSM4HR37ZA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXDBYYA#issuecomment-499522656,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ76EC2CVPHRCRL2PRHJDTPZEOUFANCNFSM4HR37ZAQ
.


(Do not merge) (CPU) aggregation of few recent fixes/optimizations

This PR is aggregation of a few recent fixes inorder to support customer.  This PR contains the following PRs with some other minor fixes:

Support autotp with attention heads  not divisible by number of ranks https://github.com/microsoft/DeepSpeed/pull/4011
AutoTP on lm_head https://github.com/microsoft/DeepSpeed/pull/3962
Fix CPU loading OOM issue https://github.com/microsoft/DeepSpeed/pull/4353
Fix lm_head checkpoint loading issue with meta tensor https://github.com/microsoft/DeepSpeed/pull/4206

This looks to have been merged already so we can close this PR?

Hi @loadams This PR has some new changes that is working on merge into master.  Can you help reopen this PR with draft mode?   Thanks!
We get AutoTP support request for new model from time to time or get bug reports, so sometimes we need to submit new PRs to DeepSpeed for supporting, and add these changes to this PR for early customer access before these changes goes to master.  Hope this helps.

Close as most pending PRs in this list is merged.  We will create an issue as to track current open PRs.


Regression in Ruff's ordering of import aliases with force-sort-within-sections

It looks like #7963 introduced a regression in Ruff's ordering of certain import aliases when force-sort-within-sections is enabled. In version 0.1.3 and prior, Ruff and isort produced identical output under this setting.
Example

Ruff version 0.1.5
isort version 5.12.0

Given pyproject.toml:
[isort]
force_sort_within_sections = true

[tool.ruff.isort]
force-sort-within-sections = true

And example.py:
import encodings
from datetime import timezone as tz
from datetime import timedelta
import datetime as dt
import datetime

isort produces the following:
$ cat example.py | isort -

import datetime
import datetime as dt
from datetime import timedelta
from datetime import timezone as tz
import encodings

...while Ruff now places import datetime as dt out of order:
$ cat example.py | ruff check --fix --no-cache --select="I001" --stdin-filename="-"

import datetime
from datetime import timedelta
from datetime import timezone as tz
import datetime as dt
import encodings

Found 1 error (1 fixed, 0 remaining).

Thanks! @bluthej, are you able to take a look at this? If not, I understand and can investigate myself, but thought I would ask first since it's likely related to your recent refactor.

Regardless, @cmsetzer, will make sure this is fixed for the next release. Thanks for the clear write-up.

@charliermarsh sure I'll take a look at it!

@bluthej - Thank you!

Ok so what happens is the from imports don't have an "asname", so they have a None that places them before the import ... as.
Looks like inverting the last two fields of ModuleKey fixes it, and all the tests pass, but before submitting a PR I'd like to look at the code before my refactor to make sure that this is how the ordering took place.


ROS One release?

Hi there Giang, greetings from Hamburg.
I just found this project :medal_sports: and am somewhat surprised that you did not release it into rosdistro / ROS noetic via bloom. Could you possibly do that or is there a reason why you did not?
I'm wondering whether it makes sense to include it in ROS-O sources lists, e.g., [0,1].

Hi, grüß dich :) I could do it, but I didn't because I didn't think about it and noone complains :) Besides, ROS noetic is almost deprecated so I'm working in another project since a while. Please check out if you're interested https://github.com/Multiverse-Framework/Multiverse

Thank you, let me know when you finish it or have any issues.


Stop randomly changing error codes!!

How frequently does the bug occur?
Always
Description
A recent upgrade of the library broke my app's registration flow, simply because you guys decided, once again, to change error codes.
That happened in the past, I mentioned this issue here (and got no answer at all).
The error code for the "confirmation required" error changed from 47 to 24 to 5. The other errors changed as well.
As far as I know, this is not documented anywhere. So, do you guys plan to correct this repeating issue somehow, or will every library update be a gamble that may break vital components of my app?
I'm very disappointed in Realm/MongoDB on that. You guys do a great job, but things like that makes me want to move away from the whole system.
Note: I've heard before that the error description should be used instead of the code, but that's not possible because of localization —and should not be the official solution, as the name "description" suggests.
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps

Write a code that relies on error code
Update the library
Notice that things don't work anymore

Version
10.42.2
What Atlas Services are you using?
Atlas Device Sync
Are you using encryption?
No
Platform OS and version(s)
iOS, all versions
Build environment
Xcode version: 15.0

The constants defined in RLMError.h are the stable API, not the specific error codes. That said, I'm not aware of any changes to error codes since v10.0.0 and we've put a nontrivial amount of effort into ensuring that they stay the same.

I can guarantee that the numerical values changed (confirmed by your colleague here).
That said, the suggestion of using the constants sounds interesting, but again, I think some constants are wrong. Based on observation, the codes for the following errors in v10.42.2 are the following:

email confirmation required -> 5
email already used -> 25
invalid credentials -> 26

I believe the part of RLMError.h that is of interest is the following:
/// An error which occurred when making a request to Atlas App Services.
typedef RLM_ERROR_ENUM(NSInteger, RLMAppError, RLMAppErrorDomain) {
    /// An unknown error has occurred
    RLMAppErrorUnknown = -1,

    /// A HTTP request completed with an error status code. The failing status
    /// code can be found in the ``RLMHTTPStatusCodeKey`` key of the userInfo
    /// dictionary.
    RLMAppErrorHttpRequestFailed = 1,

    /// A user's session is in an invalid state. Logging out and back in may rectify this.
    RLMAppErrorInvalidSession,
    /// A request sent to the server was malformed in some way.
    RLMAppErrorBadRequest,
    /// A request was made using a nonexistent user.
    RLMAppErrorUserNotFound,
    /// A request was made against an App using a User which does not belong to that App.
    RLMAppErrorUserAppDomainMismatch,
    /// The auth provider has limited the domain names which can be used for email addresses, and the given one is not allowed.
    RLMAppErrorDomainNotAllowed,
    /// The request body size exceeded a server-configured limit.
    RLMAppErrorReadSizeLimitExceeded,
    /// A request had an invalid parameter.
    RLMAppErrorInvalidParameter,
    /// A request was missing a required parameter.
    RLMAppErrorMissingParameter,
    /// Executing the requested server function failed with an error.
    RLMAppErrorFunctionExecutionError,
    /// The server encountered an internal error.
    RLMAppErrorInternalServerError,
    /// Authentication failed due to the request auth provider not existing.
    RLMAppErrorAuthProviderNotFound,
    /// The requested value does not exist.
    RLMAppErrorValueNotFound,
    /// The value being created already exists.
    RLMAppErrorValueAlreadyExists,
    /// A value with the same name as the value being created already exists.
    RLMAppErrorValueDuplicateName,
    /// The called server function does not exist.
    RLMAppErrorFunctionNotFound,
    /// The called server function has a syntax error.
    RLMAppErrorFunctionSyntaxError,
    /// The called server function is invalid in some way.
    RLMAppErrorFunctionInvalid,
    /// Registering an API key with the auth provider failed due to it already existing.
    RLMAppErrorAPIKeyAlreadyExists,
    /// The operation failed due to exceeding the server-configured time limit.
    RLMAppErrorExecutionTimeLimitExceeded,
    /// The body of the called function does not define a callable thing.
    RLMAppErrorNotCallable,
    /// Email confirmation failed for a user because the user has already confirmed their email.
    RLMAppErrorUserAlreadyConfirmed,
    /// The user cannot be used because it has been disabled.
    RLMAppErrorUserDisabled,
    /// An auth error occurred which does not have a more specific error code.
    RLMAppErrorAuthError,
    /// Account registration failed due to the user name already being taken.
    RLMAppErrorAccountNameInUse,
    /// A login request failed due to an invalid password.
    RLMAppErrorInvalidPassword,
    /// Operation failed due to server-side maintenance.
    RLMAppErrorMaintenanceInProgress,
    /// Operation failed due to an error reported by MongoDB.
    RLMAppErrorMongoDBError,
};

By counting from the top, this seems to match for email confirmation required (RLMAppErrorAccountNameInUse) and invalid credentials (RLMAppErrorInvalidPassword).
However, the constant associated to email confirmation required, 5, is RLMAppErrorUserAppDomainMismatch. I'm not sure how I'm supposed to deduct that. Can I rely on that constant to always be matched to the email confirmation required error?

The error codes in realm-core have changed significantly, but there's a translation layer between those and the error codes exposed in the swift SDK. The only changes in the latter from the internal rework should have been changing some errors previously reported as Unknown to specific error codes.
AppDomainMismatch is indeed a pretty confusing error for confirmation required, but it appears to be correct. The server sets a user's auth domain when it is confirmed, so using an unconfirmed user hits the check to see if the user and app go together and reports that they don't. I'm not sure how you could know that without looking at the server source, so it's definitely something the docs need to mention.

Ok, then we'll use those codes and hope that they'll always be associated with the same error. I strongly suggest an improvement of the doc on that.
Thanks for the quick answer; closing this issue.


Section 3.1, rml:iterator

In Section 3.1, there is the following sentence:
"In the case of databases, CSV or TSV data sources, the value of rml:iterator is considered a "row" and must not be specified."
The sentence above seems incorrect. First of all, what is it meant by "databases"? Are graph databases databases, or only relational ones are meant here?
Further, for relational databases, rml:iterator CAN be used to express queries according to rml:SQL2008Query reference formulation.

Latest changes included using rml:iterator for SQL query and table names, we probably need to fix 3.1 to better reflect this, thanks for noticing!


Crash on iOS 8.1

Hi jamztang,
Your CSStickyHeaderFlowLayout is good but it crash on iOS 8.1
@implementation CSStickyHeaderFlowLayout
...

(NSArray *)layoutAttributesForElementsInRect:(CGRect)rect
{
// The rect should compensate the header size
CGRect adjustedRect = rect;
adjustedRect.origin.y -= self.parallaxHeaderReferenceSize.height;

=>>    NSMutableArray *allItems = [[super layoutAttributesForElementsInRect:adjustedRect] mutableCopy]; // Crash is here
2014-11-03 10:54:21.844 AlloCine[313:44884] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
Can you check if you have this crash too please ?
Thanks for your help.
Ouatelse !

Hi, It does crash when iOS8 cell autosizing is enabled. (xcode 6.1, iOS8.1)
Just add this when setting up layout:
layout.estimatedItemSize = CGSizeMake(320, 80);

I also get the same crash. I have this:
override func viewWillLayoutSubviews() {
            stickyLayout.estimatedItemSize = CGSize(width: desiredWidth, height: desiredHeight)
}

and the crash happens in
- (UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath {
    UICollectionViewLayoutAttributes *attributes = [super layoutAttributesForItemAtIndexPath:indexPath];  <-----
    CGRect frame = attributes.frame;
    frame.origin.y += self.parallaxHeaderReferenceSize.height;
    attributes.frame = frame;
    return attributes;
}

with this error: EXC_ARITHMETIC code EXC_I386_DIV

right, estimatedItemSize is not supported right now, have been trying to make it work but no luck. However using estimatedItemSize has much more other issues even when using the vanilla collecitonViewLayout, I'm suggesting that we should probably wait iOS 9 and see if there're more improvement to it


Cannot use export / import REST APIs to change lifecycle state from DEPRECATED to RETIRED

Description
Steps to reproduce
Create an API and change lifecycle to DEPRECATED
Export using REST API and get the zip file
Extract the zip file and modify json file to have "RETIRED" state
import again using REST APIs
Please check
Steps to Reproduce
Steps to reproduce
Create an API and change lifecycle to DEPRECATED
Export using REST API and get the zip file
Extract the zip file and modify json file to have "RETIRED" state
import again using REST APIs
Please check
Affected Component
APIM
Version
3.2.0 / 3.2.1
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response

Tested the 4.3.0 latest pack and issue doesn't exist. Hence, closing the issue


Custom Trade Config page shows when opening in-game editor with no custom trades loaded

The behaviour for loading the editor when their a no custom trades is that a custom trade list page is created with no custom trades on it. This custom list page should be shown to the player.

Fixed: https://github.com/Reldeam/CustomVillagerTrades/commit/df2567dc42c97656552a3a66f0e2b84f57a8aa69


Bludit 3.14.0 installation issues

Describe your problem
I was in the process of manual installation of Bludit 3.14.0 on Centos 7 with PHP 5.6, Apache 2.2.
However I get the following error after entering admin username and password and clicking on install i.e :
Parse error: syntax error, unexpected '>' in /{{PATH}}/{{TO}}/{{BLUDIT}}/bl-kernel/boot/rules/60.plugins.php on line 124
i.e this code return $a->position() <=> $b->position();
Seems this is due to '<=>' spaceship operator which works on PHP 7.0
https://www.php.net/manual/en/migration70.new-features.php#migration70.new-features.spaceship-op
Are the PHP requirements changed?.
PHP 5.6 is mentioned in official site docs https://docs.bludit.com/en/getting-started/requirements.
Also when I checked install on PHP 7.0 to 7.2 on same server the admin panel throws following notice and warnings and also after entering credentials , login doesn't work, URL is redirected back to http://URL/bludit/admin/login
(For your kind info I have display_errors = Off in my php.ini file for all of the PHP test environments above) :
Notice: Array to string conversion in /{{PATH}}/{{TO}}/{{BLUDIT}}/bl-kernel/helpers/session.class.php on line 25

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /{{PATH}}/{{TO}}/{{BLUDIT}}/bl-kernel/helpers/session.class.php:25) in /{{PATH}}/{{TO}}/{{BLUDIT}}/bl-kernel/helpers/session.class.php on line 36

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /{{PATH}}/{{TO}}/{{BLUDIT}}/bl-kernel/helpers/session.class.php:25) in /{{PATH}}/{{TO}}/{{BLUDIT}}/bl-kernel/helpers/session.class.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /{{PATH}}/{{TO}}/{{BLUDIT}}/bl-kernel/helpers/session.class.php:25) in /{{PATH}}/{{TO}}/{{BLUDIT}}/bl-kernel/boot/rules/99.header.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /{{PATH}}/{{TO}}/{{BLUDIT}}/bl-kernel/helpers/session.class.php:25) in /{{PATH}}/{{TO}}/{{BLUDIT}}/bl-kernel/boot/rules/99.header.php on line 4

However, Bludit works fine on PHP 7.3 without any such warnings or notices and also admin panel loads fine and after logging dashboard loads fine without any issues.
Could you please replicate the above issues at your end and fix the same?.
Steps to reproduce the problem

Install Bludit on PHP 5.6 syntax error is thrown.
Install Bludit on PHP 7.0 to 7.2 admin panel is loaded with notice and warnings and login doesn't work.

Bludit version
3.14.0
Hosting or Webserver name
Apache/2.2.34
PHP version
5.6-7.2

Hi, Fixed on Bludit v3.14.1.
Thank you for the report!

Hello @dignajar ,
Thanks. Shall check out 3.14.1.
Regards.


hardcoded remote discovery for working tree commands

There are situations where the clone or fork process isn't done via the lab tool, but the user wants to use it regardless, thus the remote being used by the user may not follow the pattern that the lab tool uses: upstream, origin or lab.User().
$ git remote -v
origin-2        git@gitlab.com:bmeneg/Test-Lab.git (fetch)
origin-2        git@gitlab.com:bmeneg/Test-Lab.git (push)
$ lab mr list
2020/09/25 17:45:11 mr_list.go:36: the key `remote.origin.url` is not found

However, some commands accept the [remote] positional arg:
$ lab mr list origin-2
#2 fix test file

Those commands that perform remote operations (based on the Gitlab library) they work based on the project name, so they are fine most of the cases (didn't test all of them).
However, those commands that interact with the local/working tree get lost:
$ lab mr checkout 2
2020/09/25 17:58:18 mr_checkout.go:36: the key `remote.origin.url` is not found
$ lab mr checkout origin-2 2
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
2020/09/25 17:58:24 mr_checkout.go:79: exit status 128

IIUC (and, please, correct me if I'm wrong) these commands rely on the information held in the forkedFromRemote (and forkRemote (?)) internal vars, which are always set to one of the options: origin or upstream (and lab.User() for forkRemote ), which doesn't seem to be the best approach, considering the users may choose different naming convention.
A way of solving it would be to rework the way forkedFromRemote gets set, by also considering/checking the current remote being tracked by the current branch before settling on origin. Another point I need some lights on is on the usage of forkRemote, that I didn't really understand.

Bit of a brain dump... bare with me.
The primary purpose of forkRemote and forkFromRemote are to add the needed context for a few different types of scenarios, mostly around choosing the right default remote for a command:

Creating merge requests, in the absence of the branch being tracked, lab can make the assumption that you want to create a merge request from your fork to the original. Might be some other cases like this too
forkRemote doesn't get much usage, it merely returns as a default in the case the branch doesn't track a remote in https://github.com/zaquestion/lab/blob/8955ade8557ce30125c21d24fd689f7861c41df7/cmd/mr_create.go#L231-L239
determineSourceRemote is only using in mr create and ci run
forkedFromRemote would be chosen as the default for listing issues/merge requests

There's some nuance around forkedFromRemote that makes using the tracked branch as an override here not suitable. Theres a thread that gets into it a bit here https://github.com/zaquestion/lab/issues/284#issuecomment-462100859
The comment here is misleading https://github.com/zaquestion/lab/blob/master/cmd/root.go#L269-L273

  // use the remote tracked by the branch if set

What is meant is "use the remote tracked by the default branch" if set, which obviously is a relic of assuming that would be master. This logic should ideally use the default branch for the repo, which is a bit tricky since it precedes knowing the gitlab project (as the forkedFromRemote logic is a part of making that determination). This would improve the determination logic, but wouldn't solve for the lab mr checkout case.
In lab mr checkouts case, I overlooked that even tho we'd look up the MR on the passed in remote we don't fetch from that remote https://github.com/zaquestion/lab/blob/master/cmd/mr_checkout.go#L78 -- so this should really be overridden by the remote that got passed in.
Another improvement we could make to forkedFromRemote might be to have a final fallthrough case it choses the first remote in the list (I believe the remotes can be returned in the same order as they are in the .git/config), in the event origin/upstream don't exist. That said, if we can work out a way to get the defaultBranch and lookup the remote for that, I reckon that would obviate the need for this case altogether.

I put up https://github.com/zaquestion/lab/pull/441/files to address the MR checkout issue, which I tested with a similar repo setup to what you showed here.

I put up https://github.com/zaquestion/lab/pull/441/files to address the MR checkout issue, which I tested with a similar repo setup to what you showed here.

Just tested and it indeed works :). :+1:

forkRemote doesn't get much usage, it merely returns as a default in the case the branch doesn't track a remote in determineSourceRemote is only using in mr create and ci run

That's one of the reasons I thought on removing it and use forkedFromRemote. Although I'm still confused by the code (where each are eactually used) I think I got the idea. One thing I didn't have in my mind, but after reading the issue #284 I realized is the fact the code is built with origin|upstream|lab.User() in mind... it wasn't meant to be generic at first.
At the same time, the following code:
https://github.com/zaquestion/lab/blob/97ffd5e67c15895adc2c9b48afe93d43918c65d1/cmd/root.go#L268-L274
is never really hit, since forkedFromRemote is never really set to "". With that, master's tracked remote (git's -u) is not considered for e.g. mr create. I'm going to reuse the MR #440 for getting it correct.
Thanks for the explanation @zaquestion !

Another improvement we could make to forkedFromRemote might be to have a final fallthrough case it choses the first remote in the list (I believe the remotes can be returned in the same order as they are in the .git/config), in the event origin/upstream don't exist.

Unfortunately, that's not the case: git remote prompt remotes in alphabetical order. I agree that the first remote in the .git/config may be the best choice for the 'main remote', so I'm going to check a way of doing so and also check:

That said, if we can work out a way to get the defaultBranch and lookup the remote for that, I reckon that would obviate the need for this case altogether.

@zaquestion I've updated MR #440 with new patches for handling most of what we've talked about here.

Considering the MR #440 and others that landed after we can close this issue.


[RFC] Disable cythonizing screen.py for Python 3.

The experimental GUI is only supported for Python 2,
so cythonizing screen.py doesn't make sense on Python 3.

LGTM :+1:


refactor(ui/input): optimize input outline animation

Checklist

[x] Fix linting errors
[x] Tests have been added / updated (or snapshots)

Change information

Codecov Report

Merging #835 (7291e3f) into feat/outlined (5ba608e) will not change coverage.
The diff coverage is n/a.

@@              Coverage Diff               @@
##           feat/outlined     #835   +/-   ##
==============================================
  Coverage          95.09%   95.09%
==============================================
  Files                249      249
  Lines               5712     5712
  Branches            1058     1058
==============================================
  Hits                5432     5432
  Misses               280      280

Impacted Files
Coverage Δ

packages/varlet-ui/src/input/Input.vue
93.39% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Replacing JDK20 with JDK21 in pipelines

There will be no more JDK20 releases, and JDK21 is next to be released, so this PR does a swap.
Also includes some improvements to generateBuildMatrix.sh that makes the code and the output more readable.

I performed a more in-depth replacement than usual as JDK21 is an LTS, and therefore more likely to be around longer.

run quick tests

run tests quick


Doesn't Work

Hello why doesnt this work MCPE My Kik is xKiller15 mytwitter is @ChronicPrison msg me their or kik also Skype my user is Tyler Chaky picture of some dude in orange shirt

plugin is in development


Own RBAC config for kubewall failed

Hi! I would like use RBAC and create user with low rights in a cluster. In open lens this config allow me use my own RBAC config. For kubewall a get next errors:
Details

[2024-12-10T15:42:44+03:00] 307 GET /api/v1/app/config/reload (::1)  1.635568ms
[2024-12-10T15:42:44+03:00] 200 GET / (::1)  30.424µs
[2024-12-10T15:42:44+03:00] 200 GET /assets/index-Dnkg-gSC.css (::1)  91.387µs
[2024-12-10T15:42:44+03:00] 200 GET /assets/index-B7V84PqV.js (::1)  597.194µs
[2024-12-10T15:42:44+03:00] 200 GET /api/v1/app/config (::1)  37.89µs
[2024-12-10T15:42:44+03:00] 200 GET /assets/kw-light-theme-CU_O1dtT.svg (::1)  90.597µs
[2024-12-10T15:42:44+03:00] 200 GET /api/v1/app/config (::1)  46.098µs
W1210 15:42:45.891418   18786 reflector.go:561] k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243: failed to list *v1.ReplicaSet: replicasets.apps is forbidden: User "developer" cannot list resource "replicasets" in API group "apps" at the cluster scope
2024/12/10 15:42:45 WARN failed to watch, will backoff and retry error="failed to list *v1.ReplicaSet: replicasets.apps is forbidden: User "developer" cannot list resource "replicasets" in API group "apps" at the cluster scope" kind=Replicaset
W1210 15:42:52.298203   18786 reflector.go:561] k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243: failed to list *v1.Namespace: namespaces is forbidden: User "developer" cannot list resource "namespaces" in API group "" at the cluster scope
2024/12/10 15:42:52 WARN failed to watch, will backoff and retry error="failed to list *v1.Namespace: namespaces is forbidden: User "developer" cannot list resource "namespaces" in API group "" at the cluster scope" kind=Namespace
W1210 15:42:53.946555   18786 reflector.go:561] k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243: failed to list *v1.CustomResourceDefinition: customresourcedefinitions.apiextensions.k8s.io is forbidden: User "developer" cannot list resource "customresourcedefinitions" in API group "apiextensions.k8s.io" at the cluster scope
2024/12/10 15:42:53 WARN failed to watch, will backoff and retry error="failed to list *v1.CustomResourceDefinition: customresourcedefinitions.apiextensions.k8s.io is forbidden: User "developer" cannot list resource "customresourcedefinitions" in API group "apiextensions.k8s.io" at the cluster scope" kind=CustomResourceDefinition
W1210 15:42:57.236738   18786 reflector.go:561] k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243: failed to list *v1.Pod: pods is forbidden: User "developer" cannot list resource "pods" in API group "" at the cluster scope
E1210 15:42:57.236837   18786 reflector.go:158] "Unhandled Error" err="k8s.io/client-go@v0.31.1/tools/cache/reflector.go:243: Failed to watch *v1.Pod: failed to list *v1.Pod: pods is forbidden: User "developer" cannot list resource "pods" in API group "" at the cluster scope" logger="UnhandledError"

My Role for RBAC config:
Details

kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: dev
name: developer
rules

apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
apiGroups: [""]
resources: ["pods", "pods/log", "events", "replicasets", "namespaces"]
verbs: ["get", "list", "watch"]
apiGroups: ["apps"]
resources: ["pods", "pods/log", "events", "replicasets", "namespaces"]
verbs: ["get", "list", "watch"]
apiGroups: [""]
resources: ["pods/exec"]
verbs: ["create"]
apiGroups: [""]
resources: ["pods/eviction"]
verbs: ["create"]
apiGroups: [""]
resources: ["events"]
verbs: ["watch"]

hello @dev1010111
We will check things out and try to update with our upcoming release.
Thanks so much for trying and letting us know about this.


. pulls clause to beginning of line

Typing a . often pulls the clause to the beginning of the line.
useless(X, Z) :-
    Y is X * 2 + 14,
Z is Y + 2.

and it gets confused by clpfd contraints, like in (both pulls the body clause back and doesn't highlight the .. properly):
useless(X, Z) :-
X in 1..10

In other cases it works fine:
useless(X, Z) :-
    Y is X * 2 + 14,
    Z is sqrt(Y).

Can i just turn autoformatting off entirely for prolog documents while still getting linting and documentation of library functions?
(Linux Mint 19, VSC 1.26.0 and plugin 0.8.17, swipl 7.6.4)

Yeah, you can disable formatting without affecting other functionalities. Maybe I'd improve formatting somedays. Sorry for the inconvenience.

@arthwang  How? "prolog.format.enabled": false doesn't change this behaviour.

Update fixed it for me, Arthur.  Thank you for your effort.

@arthwang Thank you, it is much better now.  It copies the head to the body (With the formatting setting disabled). But that's not a very big issue in my opinion.

Oh yeah, that's a design. 'dot repeat' is inspired by emacs prolog plugin. It repeats last clause head since there are many such situations. What's more, in recursive clauses, it copies  the head with arguments updated smartly. try:
test(N) :-N =< 0, !.
('dot' here will copy 'test(N)' in place)
test(N) :-
N1 is N - 1,
writeln(N1),
(enter '.' here, you will get 'test(N1).' )
Image that if you have more than 5 arguments, 'dot' will save you a lot of typings.


Migrate projects from translation studio to Scribe

Step to recreate the existing issue

Export USFM from the translationStudio (tS)
Import the USFM to the Scribe Text Editor - while creating a new project or Editing the existing project
Open the project where the USFM file was imported
The loader spins infinitely (USFM is imported in the backend)

Link to USFM file exported from translationStudio: https://bridgeconn-my.sharepoint.com/:u:/p/benz/ESFX8YSW9AFEqcnjdriEn9QB_Vx10WXBpklLNMEggmKwmg?e=HpjQYr

Guide to migrate projects from tStudio to Scribe
👉 Steps to Export the USFM File from translationStudio

Login to translationStudio
You will be directed to Terms of Use page
After reading all the statements, click the I Agree button
Choose the project you wish to move to Scribe
Click the three dot (three dot picture need to be added here) menu at the lower left side of the translationStudio to select the Upload/Export option
There are four option to choose
Select Export to USFM file. This action will open your computer's file explorer window. Navigate to the location you prefer to save the USFM file
A pop-up will appear, indicating the exported status of the file
Click CLOSE to close the window

👉 Steps to import USFM file to Scribe Scripture Editor

Login to Scribe Scripture editor

There are two ways to import the project.
Option 1. Import USFM file(s) using ‘Create a New project’ option

Click on the New Project Icon, the project page opens.
On this page, you can enter specific project details
Project Name
Project Description
Abbreviation (It will be auto-generated on entering project name. The user has the option to edit the autogenerated abbreviation)
Target Language
In the Advanced Settings section, select either all the books in the Old Testament, all the books in the New Testament, or all the books in the entire Bible, depending on your specific need
Click on Import Books
You can import a book in USFM format, both individual and multiple files can be imported
This action will open your computer's file explorer window.
Select the file(s) you want to import
Once selected click on Import
The files will be imported
After entering the required details, click on Create Project
Once a project is created, it will appear as a new item on the PROJECTS page
Click on the project name in the list to begin translating

Option 2.  Import USFM file(s) in existing Project with ‘Edit Project’ option

On the PROJECTS page, find the project you wish to edit
Click on the arrow (arrow picture need to be added here) on the right side of the project information
This will expand the project information
To Edit the project details, click on the three dots (three dot picture need to be added here) menu
Then select Edit
You will be directed to the Edit Project page, where you can import the files
Select Import Books
This action will open your computer's file explorer
Select the files you want to import
Once you have made your selections, click Import
During the import, a pop-up alert message will display Do Not Replace Existing Content  to prevent the accidental replace
However to continue the process, you will have to select Cancel on the pop up alert  to import the content
Then click Save
The selected files will be imported successfully
User will be directed to the PROJECTS page
Click on the project name in the list to begin translating


Two first headers are not show

Hello,
It's the first time with this library and I have one problem at show headers. I implement an Adapter with SkickyHeaderAdapter,  I do that my adapter add one sticky header for every item of my list, but the two first headers aren't visible, instead there are a big empty space on every one. The other headers works propertly.
I don't know what is happening. Any one can help me please?
Thank you.

Make sure you're returning a value >= 0 in your StickyHeaderAdapter.getHeaderId implementatino for those first two items.