Startup option JSON should be generated using release configs

Jan suspects that --dump-options takes config files into account, and they differ between local builds and releases (etc/relative/*.conf vs. etc/arangodb3/*.conf). As a user, I would like to know the actual out-of-the-box defaults, and therefore the program startup options should be dumped using the release config files for the best possible accuracy. This might require some path mangling to make it work in local/Jenkins builds.
https://github.com/arangodb/planning/issues/3306

Difference between /etc/arangodb3 and /etc/relative (after removing .in file extension, removal of some comments and re-ordering):
--- arango-dfdb.conf	Fri Jan 10 13:50:01 2020
+++ arango-dfdb.conf	Tue Mar 26 21:08:28 2019
@@ -1,21 +1,19 @@
 [database]
 auto-upgrade = false
 upgrade-check = false
-directory= @LOCALSTATEDIR@/lib/arangodb3

 [server]
 rest-server = false
-authentication = true
+authentication = false
 # username = root
 # password =
-@DEFINEUID@uid = arangodb

 statistics = false

 [javascript]
-startup-directory = @PKGDATADIR@/js
-app-path = @LOCALSTATEDIR@/lib/arangodb3-apps
-script =<EMAIL_ADDRESS>+startup-directory = ./js
+app-path = ./js/apps
+script = ./js/server/arango-dfdb.js
 v8-contexts = 1

 [foxx]
@@ -23,4 +21,4 @@

 [log]
 level = info
-@COMMENT_LOGFILE@file = -
+file = -
--- arangobackup.conf	Fri Jan 10 13:51:25 2020
+++ arangobackup.conf	Fri Sep 20 09:48:35 2019
@@ -1,7 +1,7 @@
 [server]
-authentication = true
+authentication = false
 # username = root
 # password =
-endpoint = tcp://<IP_ADDRESS>:8529
+
 [log]
-@COMMENT_LOGFILE@file = -
+file = -
--- arangobench.conf	Fri Jan 10 13:52:34 2020
+++ arangobench.conf	Fri Mar  8 16:41:51 2019
@@ -2,10 +2,9 @@
 progress = true

 [server]
-authentication = true
+authentication = false
 # username = root
 # password =
-endpoint = tcp://<IP_ADDRESS>:8529

 [log]
-@COMMENT_LOGFILE@file = -
+file = -
--- arangod.conf	Fri Jan 10 13:57:10 2020
+++ arangod.conf	Thu Aug  1 12:07:56 2019
@@ -1,17 +1,13 @@
 [server]
 authentication = true
-endpoint = tcp://<IP_ADDRESS>:8529
-storage-engine = auto
-statistics = true
-@DEFINEUID@uid = arangodb
+endpoint = tcp://<IP_ADDRESS>:8529

 [javascript]
-startup-directory = @PKGDATADIR@/js
-app-path = @LOCALSTATEDIR@/lib/arangodb3-apps
+startup-directory = ./js
+app-path = ./js/apps
+
+[javascript:enterprise]
+module-directory = ./enterprise/js

 [log]
 level = info
-@COMMENT_LOGFILE@file =<EMAIL_ADDRESS>-
-[database]
-directory = @LOCALSTATEDIR@/lib/arangodb3
\ No newline at end of file
--- arangodump.conf	Fri Jan 10 13:58:41 2020
+++ arangodump.conf	Fri Mar  8 16:41:51 2019
@@ -1,10 +1,9 @@
 progress = true

 [server]
-authentication = true
+authentication = false
 # username = root
 # password =
-endpoint = tcp://<IP_ADDRESS>:8529

 [log]
-@COMMENT_LOGFILE@file = -
+file = -
--- arangoexport.conf	Fri Jan 10 13:59:05 2020
+++ arangoexport.conf	Fri Mar  8 16:41:51 2019
@@ -1,8 +1,7 @@
 [server]
-authentication = true
+authentication = false
 # username = root
 # password =
-endpoint = tcp://<IP_ADDRESS>:8529

 [log]
-@COMMENT_LOGFILE@file = -
+file = -
--- arangoimport.conf	Fri Jan 10 13:59:20 2020
+++ arangoimport.conf	Tue Mar 26 21:08:28 2019
@@ -1,8 +1,7 @@
 [server]
-authentication = true
+authentication = false
 # username = root
 # password =
-endpoint = tcp://<IP_ADDRESS>:8529

 [log]
-@COMMENT_LOGFILE@file = -
+file = -
--- arangoinspect.conf	Fri Jan 10 13:59:50 2020
+++ arangoinspect.conf	Tue Mar 26 21:08:28 2019
@@ -4,11 +4,10 @@
 [server]
 authentication = false
 ask-jwt-secret = true
-endpoint = tcp://<IP_ADDRESS>:8529

 [log]
-@COMMENT_LOGFILE@file = -
+file = -

 [javascript]
-startup-directory = @PKGDATADIR@/js
+startup-directory = ./js
 client-module = inspector.js
--- arangorestore.conf	Fri Jan 10 14:00:29 2020
+++ arangorestore.conf	Fri Mar  8 16:41:51 2019
@@ -1,10 +1,9 @@
 progress = true

 [server]
-authentication = true
+authentication = false
 # username = root
 # password =
-endpoint = tcp://<IP_ADDRESS>:8529

 [log]
-@COMMENT_LOGFILE@file = -
+file = -
--- arangosh.conf	Fri Jan 10 14:00:51 2020
+++ arangosh.conf	Thu Aug  1 12:07:56 2019
@@ -2,13 +2,17 @@
 pretty-print = true

 [server]
-authentication = true
+authentication = false
 # username = root
 # password =
-endpoint = tcp://<IP_ADDRESS>:8529

 [log]
-@COMMENT_LOGFILE@file = -
+file = -

 [javascript]
-startup-directory = @PKGDATADIR@/js
+startup-directory = ./js
+allow-external-process-control = true
+allow-port-testing = true
+
+[javascript:enterprise]
+module-directory = ./enterprise/js
--- arangovpack.conf	Fri Mar  8 16:41:51 2019
+++ arangovpack.conf	Thu Jan  1 01:00:00 1970
--- foxx-manager.conf	Fri Jan 10 14:01:35 2020
+++ foxx-manager.conf	Fri Mar  8 16:41:51 2019
@@ -2,14 +2,13 @@
 pretty-print = true

 [server]
-authentication = true
+authentication = false
 # username = root
 # password =
-endpoint = tcp://<IP_ADDRESS>:8529

 [log]
-@COMMENT_LOGFILE@file = -
+file = -

 [javascript]
-startup-directory = @PKGDATADIR@/js
+startup-directory = ./js
 execute-string = require("@arangodb/foxx/manager").run(ARGUMENTS);

arango-init-database.exe and arango-secure-installation.exe are identical.

Tracked by DOC-104


Shader error in 'FlatKit/Stylized Surface': undeclared identifier 'GetMeshRenderingLightLayer'

Describe the bug
I see this error after upgrading Unity from LTS 2021 to LTS 2022:
Shader error in 'FlatKit/Stylized Surface': undeclared identifier 'GetMeshRenderingLightLayer' at Assets/3rdParty/FlatKit/Shaders/StylizedSurface/LibraryUrp/Lighting_DR.hlsl(136) (on d3d11)

Compiling Subshader: 0, Pass: ForwardLit, Vertex program with _TEXTUREBLENDINGMODE_MULTIPLY
Platform defines: SHADER_API_MOBILE UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_RGBM_ENCODING UNITY_NO_CUBEMAP_ARRAY UNITY_NO_RGBM UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2
Disabled keywords: DIRLIGHTMAP_COMBINED DOTS_INSTANCING_ON DR_CEL_EXTRA_ON DR_ENABLE_LIGHTMAP_DIR DR_GRADIENT_ON DR_RIM_ON DR_SPECULAR_ON DR_VERTEX_COLORS_ON FOG_EXP FOG_EXP2 FOG_LINEAR INSTANCING_ON LIGHTMAP_ON LIGHTMAP_SHADOW_MIXING SHADER_API_GLES30 SHADOWS_SHADOWMASK UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_PBS_USE_BRDF1 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_VIRTUAL_TEXTURING _ADDITIONAL_LIGHTS _ADDITIONAL_LIGHTS_VERTEX _CELPRIMARYMODE_CURVE _CELPRIMARYMODE_SINGLE _CELPRIMARYMODE_STEPS _CLUSTERED_RENDERING _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE _MAIN_LIGHT_SHADOWS_SCREEN _NORMALMAP _RECEIVE_SHADOWS_OFF _TEXTUREBLENDINGMODE_ADD _UNITYSHADOWMODE_COLOR _UNITYSHADOWMODE_MULTIPLY _UNITYSHADOW_OCCLUSION

To Reproduce
Steps to reproduce the behavior:

Have a project in Unity 2021.3.24
Upgrade project to Unity 2022.3.0

Expected behavior
FlatKit shaders should work, but instead everything is magenta and error (see above) is shown whenever a scene a loaded
Screenshots
If applicable, add screenshots to help explain your problem.
Unity details:
Flat Kit version 3.6.0
Unity 2022.3.0f1
Dev platform: WindowsEditor
Target platform: Android
URP installed: True, version 14.0.7
Render pipeline: UniversalPipeline
Color space: Linear
Quality config: [FlatKit] Example URP Asset
Graphics config: [FlatKit] Example URP Asset
Additional context
Add any other context about the problem here.

having same problem,, did u find the fix?

Same problem here

Hi all!
@adrwalker @itsRayan11 Unity often significantly changes API between URP versions, so we submit different code per Unity version. When changing your project's Unity version please re-download and re-import Flat Kit with the Package Manager.
@Denchyaknow, we've just released an update to Flat Kit specifically for Unity 2022.1 that should fix this. Please re-download and re-import Flat Kit. Another way to fix this is to update your project to Unity 2022.3 or later.

Reference to this issue on Discord: https://discord.com/channels/402156640993935368/1122356189011914854

project

thank you, it's working now


:lady_beetle: When calculating plan phase we shoe error on successful plans

Issue:
When a plan has both a category: Critical and type: Succeeded we show an 'Error' phase, we should show Succeeded
Screenshot:

Ref:
https://github.com/kubev2v/forklift-console-plugin/blob/main/packages/forklift-console-plugin/src/modules/Plans/utils/helpers/getPlanPhase.ts#L11

Addressed by https://github.com/kubev2v/forklift-console-plugin/pull/1315


pre_backup commands

i needed a feature to preform command prior to actually backing up.
in my case some mysqldumps.
i thought this could help others too.

agreed :)

can you give me a tag on this?
that way my ansible script can use your branch again

@antedebaas here you go :)
https://github.com/erikw/restic-automatic-backup-scheduler/releases/tag/v7.4.0


Notification Listener broken since v1.0.7

Summary
The notification listener service stopped working for me for most of the apps that I had enabled - with the only exception being Google Wallet, which still works just fine. I have double checked the permissions and nothing works.

It looks like the upstream has been fixed. Possible to build now?


bug: Collection Repeat with scrollTo not working as desired

Short description of the problem:
I'm using an ion-list with two different kinds of items in term of height (a divider and a normal item). The user should have the functionality to jump to a specific divider. This is done using the $ionicScollDelegate.scrollTo(...) method with the specific height.
This works well on the upper part of the list, but there is a point (close to the end) where the scroll from the top does no more work...
What behavior are you expecting?
Working scrolling...
Steps to reproduce:
http://codepen.io/sschoeb/pen/ezzNbp
This should scroll to item 960 after 2 seconds.. but it stops always at 876.
Which Ionic Version? 1.x or 2.x
Ionic 1.3.0
Relates issues:
https://github.com/driftyco/ionic/issues/3443
Actually, this looks like the same problem, but as I specify an exact height to scrollTo I do not see why this should not work as I expect?

This problem does also occure in the following use case:

Create a list (collection-repeat) with a lot of items (> 2000)
Items must have at least two different heights
click on an item close to the bottom and let the app navigate to a detail view of the item
navigate back using the back-button
reload in controller when comming back
=> when exactly the same data is provided, the scrollview scrolls to the wrong position. Exactly the behaviour as described above.

Looks like the estimated height of the Content is calculatet somehow wrong and therfore maxScrollTop in ScrollView is wrong as well... any feedback on this?

One more issue which is caused by the described behavior:
https://github.com/driftyco/ionic/issues/1243
I know this bug is closed, but I do exactly see the described behavior. Opening the keyboard on a list position close to the bottom does a random scroll (exactly to the same position as on top...). Looks like you are calling scrollTo() at some point...
I do have a workaround for all the problems above (calling scrollTo(..) multiple times..). But for this problem, I'm a bit lost!
Any feedback on this issue would be highly appreciated!


Evil Wizard not avoiding the same as he was. He is slower to move out of the path of the player.

@wadek2 Make sure wizard Smooth Time has not changed.


Fixed #12241 -- Preserved query strings when using "Save and continue/add another" in admin.

https://code.djangoproject.com/ticket/12241
Ensure querystring persists when 'save and add another' is clicked. Add a test case.
Co-authored-by: Grady Yu<EMAIL_ADDRESS>

Also I'd argue that since this is a decade-old issue, that preserving the querystring for save-and-continue-editing may not be an important issue to solve?

Thank you kindly for the code suggestions.
As for save-and-continue, I don't understand the use case there. Persisting prefilled values makes sense for save-and-add: I can imagine wanting to input numerous records with one or more values already filled in. But I don't see how persisting prefilled values would be useful when you work with one record and click to save-and-continue. (If there is a use case I'm not thinking of, I'm happy to implement that feature too before the ticket closes.)

Thank you kindly for the code suggestions.
As for save-and-continue, I don't understand the use case there. Persisting prefilled values makes sense for save-and-add: I can imagine wanting to input numerous records with one or more values already filled in. But I don't see how persisting prefilled values would be useful when you work with one record and click to save-and-continue. (If there is a use case I'm not thinking of, I'm happy to implement that feature too before the ticket closes.)

Yep 👍  Even if the issue is still relevant I'd wager a member of the merging team would happily accept this patch.
There's still an issue with Black needing to be run on the tests – if you're happy to fix that, squash the commits up then it should be good to pass on for final review by marking the ticket status to "Ready for checkin".

@shangxiao please forgive my ignorance, can you enlighten me on the best method for squashing the commits in this pull request? I tried doing that locally and pushing back up but GitHub complained ("the tip of your current branch is behind its remote counterpart"), so I'm sitting here wondering how to squash without screwing up what is already here. Thank you for helping a newbie. :)

@matthewn Rebasing, squashing & general editing of commits requires a force push because there's a new commit path that's been created in the process:
git push --force <remote> <branch-name>

@matthewn Thanks for this patch :+1:

As for save-and-continue, I don't understand the use case there. Persisting prefilled values makes sense for save-and-add: I can imagine wanting to input numerous records with one or more values already filled in. But I don't see how persisting prefilled values would be useful when you work with one record and click to save-and-continue. (If there is a use case I'm not thinking of, I'm happy to implement that feature too before the ticket closes.)

As far as I'm aware, we should preserve query strings for "Save and continue" as well. I can imagine valid use cases, e.g. pre-filtering <select> lists based on the passed values.

I've expanded my fix to cover save-and-add and save-and-continue on both add and change forms. Four tests cover the four cases.

@matthewn Thanks :+1: However this solutions doesn't work with popups or preserved filters that are already in the query strings, e.g.
https://user-images.githubusercontent.com/2865885/200519188-b233e25a-e5cd-4351-8303-9de1d0e2eef5.mp4
I simplified tests.

Hello @felixxm, thank you for the revised tests.
I am not certain I understand your new request. Is it that the _popup and _changelist_filters parameters should not persist when the buttons are clicked?
Separately: Am I right to have applied this fix to the change form as well as the add form? Since change forms don't prefill values like add forms do, I'm not understanding why this is useful.
Would love to see this PR through to completion, just feeling a bit confused at the moment!

I am not certain I understand your new request. Is it that the _popup and _changelist_filters parameters should not persist when the buttons are clicked?

There are few things from the query string that are preserved even without this patch i.e. _changelist_filters, _popup, and _to_field (see how get_preserved_filters() and add_preserved_filters() work). This should still work.
With this patch a  query string is incorrectly changed from ?changelist_filters=is_staff__exact%3D1 to ?changelist_filters=is_staff__exact%3D1?changelist_filters=is_staff__exact%3D1. We could encapsulate remaining GET parameters and pass them in opts to add_preserved_filters() :thinking: .

Separately: Am I right to have applied this fix to the change form as well as the add form?

Yes :+1:

@matthewn Do you have time to keep working on this?

@felixxm Yes, I anticipate being able to take another run at this soon.

@felixxm  -- I've taken another pass at this. (My employer lets me hack on Django on Friday afternoons for the time being, so that's when I get to dive deep on this.)
I am now encapsulating non-preserved qs params and passing them into the context fed to add_preserved_filters(), where I ensure they get included in the returned url. This makes the tests pass, and also makes all the manual use-cases I've been testing behave as I expect.
But it all goes wrong when a preserved filter enters the mix. Take /admin/auth/user/2/change/?last_name=foobar&_changelist_filters=is_active__exact%3D1 for example. When you save from there, the changelist filters are now getting preserved properly, but the additional qs pair is being lost, and I am stumped as to where that is happening.
Would appreciate it if you could tell me whether you think this latest attempt is on the right track, and if so, where I need to look more deeply to understand the last bit of trouble. Thank you most kindly for being patient with me!

But it all goes wrong when a preserved filter enters the mix. Take /admin/auth/user/2/change/?last_name=foobar&_changelist_filters=is_active__exact%3D1 for example. When you save from there, the changelist filters are now getting preserved properly, but the additional qs pair is being lost, and I am stumped as to where that is happening.

It seems we also need to add preserved_qsl in the render_change_form().

Closing due to inactivity.


added support for scala :)

added support for scala :) it should be ok

Thank you! Make sure to add yourself to the Contributor object in helpers.js!

I will take a proper look at this and merge it on stream on Wednesday! 🔥

I will take a proper look at this and merge it on stream on Wednesday! 🔥

thanks, keep up the good work :)

Hello! Please could you rebase with main and fix up some conflicts? I just merged in a PR that reorganised some of the constants and things, which has made contributing easier in the long run. Thanks for your PR!

Hey! I'm starting work on turning this into a node module tomorrow, so if you'd like your code in the node module, please take a look at the merge conflicts and rebase your branch with main. There's also a new helper - addNewLine() which I'd like to see in the switch case for scala. Thanks!


UI/UX improvements

Currently the app UI has few unnecessary padding and widgets, and lacks minute detailing in the UI. Also some widgets need UX improvements like closing gestures and typical widget flow in the app. Improvements related to it will be resolved here without touching any major business logic or API.
List of improvements -

[x] Removed unnecessary padding in AppBottomSheet.
[x] Removed unnecessary padding in SortBottomSheet and pop it on value selection.
[x] Made the ruTorrent logo still while scrolling in drawer, removed unnecessary padding and code refactoring.
[ ] Add a clear option button in SortBottomSheet
[ ] "Looking up a deactivated widget's ancestor is unsafe" issue on selecting No in SettingsPage -> _logoutAllAccounts dialog. Stability issue of the state of the widget's ancestor. - Declare a global Scaffold key to manage state.

I would like to work on it.


'endpoint' has been renamed to 'registry' in jspm 0.15.0

see https://github.com/jspm/jspm-cli/releases/tag/0.15.0

Hi @frankwallis, luckily this change is not a breaking one so jspm-git still works as expected. As soon as I've time I was planning to update the Wiki etc. to rename everything from endpoint to registry

you're quite right, thanks for updating the readme

Sure, you're welcome and thanks for supporting jspm-git :) In the next release also the remaining left overs of ´endpoint` will be replaced.


setFilterIntensityForIndex

你好，@adjust whitebalance 1 1@vignette 0.5 0.7 使用setFilterIntensityForIndex没有效果

还有那个libcge.so这个库怎么重新编译，搞了一晚上还是搞不通，cmake分支运行失败：
Build command failed.
Error while executing process C:\Users\86183\AppData\Local\Android\Sdk\cmake\<IP_ADDRESS>88404\bin\cmake.exe with arguments {--build E:\ziliao\android-gpuimage-plus-cmake\library.externalNativeBuild\cmake\debug\armeabi-v7a --target CGE}
[0/1] Re-running CMake...

Read this

$ sh buildJNI
buildJNI:行14: 未预期的符号 $'do\r'' 附近有语法错误 'uildJNI:行14: do
然后把这一块删了报语法错误
$ ./buildJNI
./buildJNI:行64: 语法错误: 未预期的文件结尾

@Jiang00 use cygwin or mingw.

是用的cygwin，找到原因了，用notpad++修改了一下buildJNI文件，windows模式改为Unix模式就好了

你好，编译是成功了，但是生成的libCGE.so只有466kb,而且运行崩溃，我看别人之前的提问buildjn有
export CGE_USE_VIDEO_MODULE=1。
java.lang.UnsatisfiedLinkError: No implementation found for void org.wysaid.nativePort.CGEFFmpegNativeLibrary.avRegisterAll() (tried Java_org_wysaid_nativePort_CGEFFmpegNativeLibrary_avRegisterAll and Java_org_wysaid_nativePort_CGEFFmpegNativeLibrary_avRegisterAll__)
at org.wysaid.nativePort.CGEFFmpegNativeLibrary.avRegisterAll(Native Method)
at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:12)
at org.wysaid.nativePort.CGEFFmpegNativeLibrary.(CGEFFmpegNativeLibrary.java:10)
at org.wysaid.nativePort.CGEFFmpegNativeLibrary.avRegisterAll(Native Method)
at org.wysaid.nativePort.NativeLibraryLoader.load(NativeLibraryLoader.java:12)
at org.wysaid.nativePort.CGENativeLibrary.(CGENativeLibrary.java:18)
at org.wysaid.nativePort.CGENativeLibrary.setLoadImageCallback(CGENativeLibrary.java:76)
at org.wysaid.cgeDemo.MainActivity.onCreate(MainActivity.java:242)
at android.app.Activity.performCreate(Activity.java:7050)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2809)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2931)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1620)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6701)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:246)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:783)
麻烦大师兄解惑

@Jiang00 Are you using the latest code of master?
And please paste all output of your build.

是最新的代码http://llpsgsb.oss-cn-hongkong.aliyuncs.com/lib/armeabi-v7a.zip

是最新的代码http://llpsgsb.oss-cn-hongkong.aliyuncs.com/lib/armeabi-v7a.zip

@Jiang00 把jni同级目录下的 libs, obj 目录删了重新编译

哇，可以啦，感谢，

我在cgeVignetteAdjust.cpp这个文件里修改暗角颜色不起作用，还是黑色
bool CGEVignetteExtFilter::init()
{
if(initShadersFromString(g_vshDefaultWithoutTexCoord, s_fshVignetteLinear))
{
setVignetteCenter(0.5f, 0.5f);
setVignetteColor(1.0f, 0.0f, 0.0f);
return true;
}
return false;
}


Build error: can't find Dockerfile if Dockerfile name is blank on Windows

On a Windows machine, using current HEAD, go into the example-go sample and run draft create followed by draft up.
draft up fails during the Building Docker Image stage, and the logs contain:
2018/06/04 11:08:34 error while building: Error response from daemon: Cannot locate specified Dockerfile: Dockerfile

Changing the dockerfile line in draft.toml to contain the name Dockerfile works around this.  This issue appears to be introduced with #798, as reverting that change also fixes it.

Affected by this on mac as well.


[Bug]: Error messages in log when changing object "guard_mode"

Adapter version
0.8.4
JS-Controller version
4.0.15
Node version
14.17.0
Operating System type
Docker
Operating system version
20.10.3-1239
Describe the bug
When I change the guard_mode of my Homebase or cameras via script to "1", "0", "3" or "63" I get the following error messages in the log. Sometimes the instance turns yellow and stops working. I set the guard mode of the homebase and 4 cameras. I have already tried to include a delay of 2 seconds between changing the individual objects.
To reproduce
Set guard_mode to "0", "1", "3" or "63" and check log.
Screenshots & Logfiles

eusec.0
2022-03-09 16:41:58.020
info
No devices found.

eusec.0
2022-03-09 16:41:58.019
error
Response code not ok [{"code":"250999","msg":"The request is too fast. Please stop and have a rest"}]

eusec.0
2022-03-09 16:41:57.797
info
No devices found.

eusec.0
2022-03-09 16:41:57.796
error
Response code not ok [{"code":"250999","msg":"The request is too fast. Please stop and have a rest"}]

eusec.0
2022-03-09 16:41:57.755
info
No stations found.

eusec.0
2022-03-09 16:41:57.754
error
Status return code not 200 [{"status":423,"statusText":"Locked"}]

eusec.0
2022-03-09 16:41:57.709
info
No houses found.

eusec.0
2022-03-09 16:41:57.709
error
Status return code not 200 [{"status":423,"statusText":"Locked"}]

eusec.0
2022-03-09 16:41:56.431
info
No stations found.

eusec.0
2022-03-09 16:41:56.431
error
Response code not ok [{"code":"250999","msg":"The request is too fast. Please stop and have a rest"}]

eusec.0
2022-03-09 16:41:55.194
info
No stations found.

eusec.0
2022-03-09 16:41:55.193
error
Response code not ok [{"code":"250999","msg":"The request is too fast. Please stop and have a rest"}]

eusec.0
2022-03-09 16:41:49.643
info
Alarm mode for station T8010P23195003DF changed to: HOME

Additional context
No response

Does anyone have an idea what these errors mean at all? I have not even the slightest idea what the problem is here?

The above error indicates a problem with authentication. In the next version, some race conditions in the authentication will be fixed.

habe das gleiche Problem. Ich schalte 4 Kamera wenn ich Abwesend bin.


Failure binding on  when both "bind" and "onchange" are used

Hey folks,
When I do this: <select bind=@someVariable <EMAIL_ADDRESS>the SomeCallbackMethod is never called. If I remove the bind it works just fine.
Is that something expected?
Thanks

Nvm folks. Just realized it is a dup of https://github.com/aspnet/Blazor/issues/1020
Closing it.


Build Yew website with Yew

Currently, yew.rs is built using Docusaurus, which uses React. It was used because at the time Yew did not have a way to render page to HTML files (SSG). This has now been resolved for the most part.
https://yew.rs should be built using Yew. It would be better to build a documentation engine like Docusaurus, then use it to build the website. But that's a huge undertaking that I'm not sure if anyone is willing to take on right now

I wouldn't mind helping. I've contributed to abridge a lot, I've made my own site with Yew, and now I'm helping maintain Trunk. It would be a task probably spanning a few months for me, but I am receptive.
Would the scope be a verbatim 1:1 clone?

I wouldn't mind helping out on this. I don't have enough experience with Yew to take a leading role, but I'd be happy to contribute.

This would be a pretty big chore, to be honest. Not sure if this could be done by 1 person in a reasonable timeframe.
This project would require several pieces:

Static pages (e.g. Homepage) | Easy
Theme switching Language switching support | Medium/Easy
Documentation templating | Medium
A blog engine | Medium/Hard
Search indexing | Hard

But honestly, I'd prefer the Blog was removed. It adds a lot of complexity (RSS/Tagging/Categories/Retrieval API/etc.) and it was never used meaningfully and currently serves no purpose. @hamza1311 might have more opinions.

I think I would be pretty comfortable to put together some static pages. I think I could probably get an i18n solution up and running as well.

Was perhaps thinking it may be worth it to make a template website inspired by Docusaurus, because trunkrs.dev needs a makeover too, and I wouldn't mind leading the project more if it meant I could makeover Trunk (which I help maintain).

I think the mammoth part is porting the mdx format. Docusaurus allows one to embed and use react components written directly in the docs. It would be incredible (in effect and effort) to have that for yew components.

I'd probably defer to a visual alternative, not a functional alternative. That seems out of scope.

To put in my two cents, I think building a documentation generator is out of scope for this task. If that were the requirement, then having the documentation website built in Yew would very likely not happen for years to come. Rather than choosing the solution that we want (a documentation engine made from Yew) let's just choose good enough and just make the website using Yew without a documentation engine. What's most important is the proof of Yew's capabilities by building its own site with itself. Sure it'll result in more maintenance work to update things, but it's still way less work than building and maintaining a documentation engine.

I think the mammoth part is porting the mdx format. Docusaurus allows one to embed and use react components written directly in the docs. It would be incredible (in effect and effort) to have that for yew components.

It's not that hard if we can convert yew components to custom elements.

@hamza1311 I have an example of converting a yew component to a custom element for another project I was working on. It's a pretty simple process. Check it out here: https://github.com/bnheise/lfr_rust_custom_element/blob/main/src/lib.rs

I am learning rust, and I was very familiar with react before，If anything I could help, please let me know

I created viz.rs docs website. It built with Yew.
Here is the repo: https://github.com/viz-rs/viz-rs.github.io.

That’s pretty good work and faithful to the current design of yew.rs.
I’d support forking that and using it as a baseline.
From: Fangdun Tsai @.>
Date: Saturday, December 10, 2022 at 11:10
To: yewstack/yew @.>
Cc: simbleau @.>, Comment @.>
Subject: Re: [yewstack/yew] Build Yew website with Yew (Issue #2779)
I created viz.rshttps://viz.rs docs website. It built with Yewhttps://yew.rs/.
Here is the repo: https://github.com/viz-rs/viz-rs.github.io.
—
Reply to this email directly, view it on GitHubhttps://github.com/yewstack/yew/issues/2779#issuecomment-1345296622, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALPBK5I46CQM27YFMXN6S2LWMSTPVANCNFSM53YR4ZSQ.
You are receiving this because you commented.Message ID: @.***>


Double checking

Hey guys, I just want to double check something. I've seen code where the action creator does something like this in tutorials
actionCreate(){
  dispatch(...)
  restAPICall()
}

This seems incorrect. That it should be more like
actionCreate(){
  dispatch()
}

restAPIReducer(){
  ...
  restAPICall().then( ... => {
   dispatch(success())
  }).catch( ... => {
  dispatch(fail())
 })
}

Thanks

Could you please use StackOverflow for usage questions? We use issue tracker for bug reports.
As for your question, no, the original code is probably using Redux Thunk. Since reducers can't do anything asynchronous, I'm not sure how your second code snippet could work. Please consult async example in this repo and corresponding docs on the website for more information.

Ok. I noticed other entries marked as discussion.
Imagine setting a router path in an action (for a browser) then dispatching. The route change should happen in response to a state change; the action creator shouldn't change route then merely record state by dispatching it.
I suppose that Thunk can work in the case of async data loading to save time but it isn't really clean conceptually.

The route change should happen in response to a state change; the action creator shouldn't change route then merely record state by dispatching it.

There are projects that tried that but they bumped into some inherent difficulties because it's essentially a two-way binding, and it's not very easy to get it right.
So yes, in theory URL derived from state would be cool. In practice it's harder because user can also directly the URL directly by going back and forward in history. Add to this asynchronous transitions and data loading, and it quickly gets complicated.
Redux is not dogmatic so use what you will. You can certainty follow a "purer" approach (check out redux-loop and redux-elm for examples of that). You can follow a "middle" approach with something like redux-saga. Or you can do the "easy" thing like redux-thunk. All of these approaches have their own merits.


Add drake_ros_examples package

Spin off from #2. Built on top of #24.

This change is

Per VC,

The iiwa_manipulator example is currently broken, a working example can be found in a separate branch, the issue could possibly be the changes in the header::frame_id, ns and id of the marker messages,

ros2 run drake_ros_examples iiwa_manipulator
ros2 topic echo /scene_marker/visual

frame_id: in order to support similar MbPs, the transform names will need to be namespaced with their relevant frame IDs, while the previous implementation does not include any frame IDs

before:

after:

marker ns and id: geometry IDs are not necessarily always in the same order between instances, therefore marker namespaces are generated using sources of the geometry IDs while marker IDs are only incremented when there are clashing namespaces

Thanks for the review, @sloretz. I've made the appropriate fixes. Unfortunately it turns out that the flip flop Python example doesn't actually run, so I need to fix that before this can be merged.

@sloretz I've corrected the API usage in the Python rs_flip_flop sample so it functions now. If you're happy, I think we're ready to merge this.


add support for Smart Mist3 Fan

Model also known (reported by tinytuya) as TX-1602MF (ZJ-1522A-WIFI)

Eventually I get on the logs this:
2024-08-13 17:21:07.747 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.tuya_local.fan.TuyaLocalFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/make-all/tuya-local/issues
2024-08-13 17:21:07.747 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.tuya_local.fan.TuyaLocalFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/make-all/tuya-local/issues
2024-08-13 17:21:07.750 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.tuya_local.fan.TuyaLocalFan'>) does not set FanEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/make-all/tuya-local/issues
2024-08-13 17:21:07.750 WARNING (MainThread) [homeassistant.components.fan] Entity None (<class 'custom_components.tuya_local.fan.TuyaLocalFan'>) does not set FanEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/make-all/tuya-local/issues

But I don't know where it's coming from. If it's something I can fix, I'll gladly fix it.

Those log messages are new in HA 2024.08, please ignore them for now.


Box Jittering in a Single-Stage Coupled-Head Detection Scenario

Hey,
Thanks a lot for the great paper and repo.
I was wondering how (or if ever) that box jittering could be implemented in a single-stage detector with a coupled detection head (i.e. YOLO head) where there is no built-in module for box refinement for extracted regions of interest.
Any intuitions?

I think it is hard to do this as discussed in the previous issue. Currently, I have no idea how to implement such operations in YOLO. Maybe you can refer to other methods.

Thanks for the reply.

@MendelXu, in the paper it is said that the presented end-to-end pipeline with the Soft Teacher approach can be implemented using Single-Stage Object Detectors as well. Could you elaborate what was the intuition behind this statement? Is there anything special with the YOLO head?

For a single-stage detector, you have to input several augmented images and count the variance between them. However, I think it will be slow and not applicable.


Missing Method exception on Extracting Objects of Type ObjectListInstance

Hi
I just downloaded the latest version compiled with Debug15 settings and tried to xml extract a SP Site (SP 2013 on-prem) using powershell:
Get-SPOProvisioningTemplate -Out c:\temp\template.xml
Unfortunately I always get an error message when the command tries to extract items of type ObjectListInstance.
After Debugging I get the Error in
...\Framework\Provisioning\ObjectHandlers\SiteToTemplateConversion.cs Line 74
Error text:
Get-SPOProvisioningTemplate : Methode nicht gefunden: "Int32 Microsoft.SharePoint.Client.List.get_MajorWithMinorVersionsLimit()".
In Zeile:1 Zeichen:1

Get-SPOProvisioningTemplate -Out c:\temp\template.xml

  + CategoryInfo          : WriteError: (:) [Get-SPOProvisioningTemplate], MissingMethodException
  + FullyQualifiedErrorId : EXCEPTION,OfficeDevPnP.PowerShell.Commands.Branding.GetProvisioningTemplate

StackTrace:
bei OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectListInstance.ExtractObjects(Web web, ProvisioningTemplate template, ProvisioningTemplateCreationInformation creationInfo)
bei OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.GetRemoteTemplate(Web web, ProvisioningTemplateCreationInformation creationInfo)
bei Microsoft.SharePoint.Client.WebExtensions.GetProvisioningTemplate(Web web, ProvisioningTemplateCreationInformation creationInfo)
bei OfficeDevPnP.PowerShell.Commands.Branding.GetProvisioningTemplate.GetProvisioningTemplateXML(XMLPnPSchemaVersion schema, String path)
bei OfficeDevPnP.PowerShell.Commands.Branding.GetProvisioningTemplate.ExecuteCmdlet()
bei OfficeDevPnP.PowerShell.Commands.SPOCmdlet.ProcessRecord()
Can anybody help?
Thanks
Roman

In your source, check the ObjectListinstance.cs class in Framework\Provisioning\ObjectHandlers, on line 425 it should say:
#if !CLIENTSDKV15
, l => l.MajorWithMinorVersionsLimit
#endif
);
If not, you have an older version of the code somehow. Make sure that if you switch to the Debug15 configuration that those lines are greyed out. If not, visual studio is not applying the preprocessor variables.

There is one:

And it seems to not beeing compiled in "Debug15" configuration.
Could it be due to missing updates on my Sharepoint Server?

That seems okay, from a code perspective, it should not call the MajorWithMinorVersionsLimit method, as that one is not available on-premises. That's what the Debug15 (and Release15) configuration basically is for. So all good there.
In your own built version, where do you install it? Do you have other versions of the PnP cmdlets installed and if so, which one is powershell using? In the installation folder of the cmdlets there should be a OfficeDevPnP.Core.dll. Did you replace that one with your compiled version?
PowerShell will figure out which module to use by checking the folders as defined in the PSModulePath environment variable (check that one out through PowerShell with "$env:PSModulePath").

Just cleaned my environment - performed the latest SP updates - recompiled the code using the Debug15 and copied the dll's manually to the installed version but still the same error message.
Debugging powershell added a breakpoint here (SiteToTemplateConversion.cs):

I just wonder why this breakpoint into the ObjectListInstance.cs is never hit:

Here's the exception detail:
System.MissingMethodException was caught
HResult=-2146233069
Message=Methode nicht gefunden: "Int32 Microsoft.SharePoint.Client.List.get_MajorWithMinorVersionsLimit()".
Source=OfficeDevPnP.Core
StackTrace:
bei OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.ObjectListInstance.ExtractObjects(Web web, ProvisioningTemplate template, ProvisioningTemplateCreationInformation creationInfo)
bei OfficeDevPnP.Core.Framework.Provisioning.ObjectHandlers.SiteToTemplateConversion.GetRemoteTemplate(Web web, ProvisioningTemplateCreationInformation creationInfo)
bei Microsoft.SharePoint.Client.WebExtensions.GetProvisioningTemplate(Web web, ProvisioningTemplateCreationInformation creationInfo)
bei OfficeDevPnP.PowerShell.Commands.Branding.GetProvisioningTemplate.GetProvisioningTemplateXML(XMLPnPSchemaVersion schema, String path)
bei OfficeDevPnP.PowerShell.Commands.Branding.GetProvisioningTemplate.ExecuteCmdlet()
bei OfficeDevPnP.PowerShell.Commands.SPOCmdlet.ProcessRecord()
InnerException:

If the breakpoint is not resolving, it means that you're using a different assembly from the one you have open in Visual Studio. Did you check the value of your PSModulePath environment variable? Make sure there is only one folder in there which contains the actual PnP PowerShell assemblies. If you for instance installed the version from the MSI package first and -then- use the version which is compiled by visual studio you will end up with 2 entries in that variable:
one pointing to c:\users<username>\Documents\WindowsPowerShell\Modules\etc.
one pointing to either
c:\users<username>\AppData\Local\Apps\OfficeDevPnP\etc.
or
c:\program files (x86)\OfficeDevPnP\etc.
Make sure that only c:\users<username>\Documents\WindowsPowerShell\Modules\etc is in there as that is the version that the visual studio solution deploys.

I have a bunch of module paths also used by other modules but the pnp dll's are just found here:
C:\Users<user>\AppData\Local\Apps\OfficeDevPnP.PowerShell.Commands
Other variables:
C:\Windows\system32\WindowsPowerShell\v1.0\Modules;
C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules;
C:\Program Files (x86)\OfficeDevPnP (empty)
I also performed a deep search for that dll on my machine without finding other dll's...

Got it. There is still a reference in the latest version of ObjectListInstance.cs. Disabling this will make this part running well... Should there be a compiler directive to avoid this?

the properties are supported in On-Premises CSOM since the December 2014 CU: https://github.com/OfficeDev/PnP-Guidance/blob/master/articles/CSOM-Releases-And-New-Capabilities.md. We support with PnP the April 2015 CU and newer.


Lose and restart

The game can now be reset to a saved state.
Currently, after 10 seconds the player dies (just a hard reset)

SonarQube analysis reported 7 issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 ScriptManager.cpp#L651: Memory leak: value
 ScriptManager.cpp#L655: Memory leak: value
 ScriptManager.cpp#L659: Memory leak: value
 AncientFungus:LGEPR: Cppcheck cannot find all the include files (use --check-config for details)
 Hymn.cpp#L184: Variable 'model' is assigned a value that is never used.
 ScriptManager.cpp#L673: The function 'GetScripts' is never used.
 ScriptManager.cpp#L681: The function 'ExecuteScriptMethod' is never used.

Very spooky pull request.

SonarQube analysis reported 7 issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 ScriptManager.cpp#L654: Memory leak: value
 ScriptManager.cpp#L658: Memory leak: value
 ScriptManager.cpp#L662: Memory leak: value
 AncientFungus:LGEPR: Cppcheck cannot find all the include files (use --check-config for details)
 Hymn.cpp#L184: Variable 'model' is assigned a value that is never used.
 ScriptManager.cpp#L676: The function 'GetScripts' is never used.
 ScriptManager.cpp#L684: The function 'ExecuteScriptMethod' is never used.


Reproduce #3376

Reproduce #3376

@forki Thanks for making the repro

urgs. it's not failing for the correct reason. Investigating...

ok it's now reporting the correct error

I'm not planning to fix it. It's just the repro

Closing because #3520 fixes #3376


Pass correct module resolution state when reading package.json info so that they are correctly tracked in the resolution

@typescript-bot pack this


Lint errors continued, now with skylark. [phab:D2281]

Created by danielmoy-google at 2018-05-04 20:50:12:

shahms commented inline (context lost during migration) at 2018-05-04 20:52:56:
"This module provides" is redundant.  It is a docstring on a module. Also elsewhere.

shahms commented inline (context lost during migration) at 2018-05-04 20:52:56:
Ditto.

zarko commented inline (context lost during migration) at 2018-05-04 20:55:42:
additional

zarko commented inline (context lost during migration) at 2018-05-04 20:55:42:
"passed in to test_args and data" is unclear

zarko commented inline (context lost during migration) at 2018-05-04 20:55:42:
creates an extra_action and an action_listener for extracting to a kindex.
(Is it really Skylark style to use Bloomberg post-hoc docstrings?)

zarko accepted this revision at 2018-05-04 20:55:42

danielmoy-google closed via commit 33de1816e0033a0d735f377d381a8c9b66f39d1d at 2018-05-04 20:57:32


Request for LICENSE.txt

Hi @josephrocca. I'd like to use this code in a project, but I want to make sure I have your permission first. Could you please add a license of your choice to the repository? Thanks!

Done - thanks!


not working PanoramaImageView

PanoramaImageView not working in api level 21 (lolipop) why?

Did you face any error or crash?
And does your device supports Gyroscope sensor?

yes you are right, my device not  support Gyroscope sensor,
thanks

Can you please mark the issue as closed?


Fix push-manifest github action job for release

Add missing env variable

@zeeke PTAL

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2017

Relevant Lines:
2667

💛  - Coveralls


dns: add mobileconfigs.netlify.app as iOS 14 / macOS Big Sur eDNS

Description
Resolves: #2059
Check List

[x] I understand that by not opening an issue about a software/service/similar addition/removal, this pull request will be closed without merging.

[x] I have read and understand the contributing guidelines.

[x] The project is Free Libre and/or Open Source Software

well, kind of, the project I am adding is, while iOS 14 and macOS Big Sur aren't.

Netlify preview for the mainly edited page: https://deploy-preview-2096--privacytools-io.netlify.app/providers/dns/#dns-ios-clients

Code repository of the project (if applicable): https://gitlab.com/nitrohorse/ios14-encrypted-dns-mobileconfigs

I need guidance on how to do this PR as I don't think the Apple native support fits in cardsv2, not all providers have their own pages or profiles and I think it's better to link nitrohorse's open source website than random pseudonymous reddittor whom with I have no prior familiarity. So far AdGuard is the only one with instructions and signed profile.

So far AdGuard is the only one with instructions and signed profile.

NextDNS' apple.nextdns.io site is the only other one I know of where you can download a signed profile. And based on their instructions, looks like this new encrypted DNS support is available for Apple devices running iOS 14, iPadOS 14, tvOS 14, or macOS Big Sur.

New vanity URL to decouple from Netlify if need be: https://encrypted-dns.party

I updated the PR, but I think I will try creating another PR with better formatting as I discussed this on Matrix and we agreed that cards don't really work in this situation and the iOS native support warrants a worth mentioning section.

Another, potentially better take on this: https://github.com/privacytools/privacytools.io/pull/2099


The kernel appears to have died. It will restart automatically.

def make_generator_model():
model = tf.keras.Sequential()
model.add(layers.Dense(77256, use_bias=False, input_shape=(100,)))
model.add(layers.BatchNormalization())
model.add(layers.LeakyReLU())
model.add(layers.Reshape((7, 7, 256)))
assert model.output_shape == (None, 7, 7, 256) # Note: None is the batch size

model.add(layers.Conv2DTranspose(128, (5, 5), strides=(1, 1), padding='same', use_bias=False))
assert model.output_shape == (None, 7, 7, 128)
model.add(layers.BatchNormalization())
model.add(layers.LeakyReLU())

model.add(layers.Conv2DTranspose(64, (5, 5), strides=(2, 2), padding='same', use_bias=False))
assert model.output_shape == (None, 14, 14, 64)
model.add(layers.BatchNormalization())
model.add(layers.LeakyReLU())

model.add(layers.Conv2DTranspose(1, (5, 5), strides=(2, 2), padding='same', use_bias=False, activation='tanh'))
assert model.output_shape == (None, 28, 28, 1)

return model

generator = make_generator_model()
noise = tf.random.normal([1, 100])
generated_image = generator(noise, training=False)
#plt.imshow(generated_image[0, :, :, 0], cmap='gray')
==============================
tensorflow2
cuda 10.0

@SlowMonk I was also having similar problems. I think this is because of limited memory capacity of yous system.

@SlowMonk  Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version. Also, did you compile from source or install a binary?
Make sure you also include the exact command if possible to produce the output included in your test case. If you are unclear what to include see the issue template displayed in the Github new issue template.
We ask for this in the issue submission template, because it is really difficult to help without that information. Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


CRLF and charset utf-8-bom

Description
On work, we are using an editorconfig with the following content:
[*]
charset = utf-8-bom
end_of_line = crlf

as we have a lot of developers using windows.
However, I am using macOS, and I am having some issues with gitsigns marking every line as changed. Maybe I am doing something wrong.
I tried to set core.autocrlf to different values, and none of them seems to change anything.
Neovim version
NVIM v0.11.0-dev-283+gfe5d1279a
Operating system and version
macOS 14.5 (23F79)
Expected behavior
I would expect it to not show any changes, as I haven't done any changes to the file.
Actual behavior
It shows that all lines are changed like this:

Also, trying to view the diff in a popup with :Gitsigns preview_hunk, this happens:

Minimal config
for name, url in pairs{
  gitsigns = 'https://github.com/lewis6991/gitsigns.nvim',
  -- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
} do
local install_path = vim.fn.fnamemodify('gitsigns_issue/'..name, ':p')
if vim.fn.isdirectory(install_path) == 0 then
vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
end
vim.opt.runtimepath:append(install_path)
end

require('gitsigns').setup{
  debug_mode = true, -- You must add this to enable debug messages
  -- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
}

-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE

Steps to reproduce

Create a file with some content with LF line endings. Doesn't matter.
Paste this into a .editorconfig:

[*]
charset = utf-8-bom
end_of_line = crlf

Open the file again and notice it shows all lines as diffed.

Gitsigns debug messages
22.87 D attach(1): Attaching (trigger=BufReadPost)
23.00 D run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 config user.name
44.16 D run_job: git --version
56.32 D run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 rev-parse --show-toplevel --absolute-git-dir --abbrev-ref HEAD
67.76 D run_job: git --no-pager --no-optional-locks --literal-pathspecs -c gc.auto=0 --git-dir /Users/sebastian/bom-test/.git -c core.quotepath=off ls-files --stage --others --exclude-stan
dard --eol /Users/sebastian/bom-test/foo.lua
81.29 D watch_gitdir(1): Watching git dir

(Also a lot of deriving colors which doesn't seem relevant)

### Gitsigns cache

_No response_

I think this was just me who was stupid🤦♂ I see that I have to run this for it to work properly:
git rm -rf --cached .
git reset --hard HEAD


Error with libhdf5.so when building on Apple Silicon M1

When building the Docker container on a mac M1 with Apple Silicon I got the following error regarding HDF5 library:
37.86       Loading library to get build settings and version: libhdf5.so
37.86       error: Unable to load dependency HDF5, make sure HDF5 is installed properly
37.86       Library dirs checked: []
37.86       error: libhdf5.so: cannot open shared object file: No such file or directory
37.86       [end of output]
37.86
37.86   note: This error originates from a subprocess, and is likely not a problem with pip.
37.86   ERROR: Failed building wheel for h5py
37.86 Failed to build h5py
37.86 ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projectsv

Versions v0.2.4 and later have a new Dockerfile that should fix this issue.

Confirm this image is building seamlessly now on Apple Silicon M1


Create issue1.txt

Issue: #2

Hey @sahsudhanshu
Thanks for opening this PR 🚀. Mentor will review your pull request soon and till then, keep contributing and stay calm.
Thanks for contributing in OpenCode'24 ✨✨!

Hey @sahsudhanshu
Your PR has been merged 🥳🥳 and you have earned 20 points.
Thanks for contributing in OpenCode'24 ✨✨


i18n(ko-KR): add actions-without-server-output-error.mdx

Description (required)

add actions-without-server-output-error.mdx

Related issues & labels (optional)

Closes #
Suggested label:

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

ko
reference/errors/actions-without-server-output-error.mdx
Localization added, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


Typing is not followed through dictionaries

It would seem that type checking is not followed through dictionaries:
query = (ds
         .Select(lambda e: {
             'evt': e.EventInfo("EventInfo"),
             'jet': e.Jets()
             })
         .Select(lambda ei: {
             'event_number': ei.evt.eventNumber(),
             'run_number': ei.evt.runNumber(),
             'jet_pt': ei.jet.Select(lambda j: j.pt()/1000),
             'jet_energy_sampling': ei.jet.Select(lambda j: j.getAttribute[cpp_vfloat]("EnergyPerSampling")),
         })
)

In this case, the getAttribute is not processed as a parameterized call because the type of ei.jet is not known! The place this seems to happen is here:
        def process_method_call(self, node: ast.Call, obj_type: type) -> ast.AST:
            """Manage a call against a typed object.

            1. Fill in default arguments based on the signature from the object type.
            1. Insert metadata into the stream if there are call backs based on the object type.
            1. Type follow the call site to get the return type, and to make sure anything inside
               lambda's etc., get correctly type followed as well.

            Args:
                node (ast.Call): The ast node
                obj_type (type): The object type this method call is occuring against

            Returns:
                ast.AST: An updated ast that is the new method call (with default args, etc.)
            """
            # Make reference copies that we'll populate as we go
            r_node = node

            # Find all objects that this method exists on.
            base_obj_list_all = [obj_type]
            if is_iterable(obj_type):
                item_type = unwrap_iterable(obj_type)
                base_obj_list_all += [c[item_type] for c in _g_collection_classes]

            assert isinstance(r_node.func, ast.Attribute)

The type comes in as Any for this call.

Ah - bummer - this is also the case for tuple indices.
So this is a generic bug - no attempt is made to resolve the type of the "calling" item. We need to fix this generically.


[SPK] Revisit infra scaffold spk-config error

Describe the bug:
The running of scaffold also runs a spk-config init that produces an error.
Should we continue to ignore this error from config.ts : Env variable needs to be defined for test_name
naterose@naterose-Blade:~/Desktop/Microsoft/fy20/nate_fork/spk/dist$ ./spk-linux infra scaffold -n "test" --source<EMAIL_ADDRESS>--version v0.0.1 --template "template"
error:   Env variable needs to be defined for test_name
warn:    Error loading SPK configuration file; run `spk init` to initialize your global configuration or ensure you have passed all required parameters to the called function.
warn:    The infrastructure repository containing the remote terraform template repo and access token was not specified. Checking passed arguments.
info:    All required options are configured via command line for scaffolding, expecting public remote repository for terraform templates or PAT embedded in source URL.
warn:    Converted to: _spk_testing__git_discovery_tf_template
info:    Checking if source: /home/naterose/.spk/templates/_spk_testing__git_discovery_tf_template is stored locally.
info:    Source template folder found. Validating existence of repository.
info:    Remote source repo: https://naros32.visualstudio.com/spk-testing/_git/discovery-tf-template exists.
info:    Checking if source repo: https://naros32.visualstudio.com/spk-testing/_git/discovery-tf-template has been already cloned to: /home/naterose/.spk/templates/_spk_testing__git_discovery_tf_template.
info:    https://naros32.visualstudio.com/spk-testing/_git/discovery-tf-template already cloned. Performing 'git pull'...
info:    Checking out template version: v0.0.1
info:    Terraform template files copied from /home/naterose/.spk/templates/_spk_testing__git_discovery_tf_template/template
info:    Terraform variables.tf file found. Attempting to generate definition.yaml file.
info:    A remote backend configuration was found : test/backend.tfvars
info:    A variables.tf file found : test/variables.tf
info:    --end log: 0 --

Additional context:
https://github.com/CatalystCode/spk/pull/237
Does this require updates to documentation?:
Yes

@NathanielRose Can you please share you spk.config file?

# Azure DevOps Configuration
azure_devops:
  access_token: "<redacted>" # This is a Personal Access Token with permission to modify and access the HLD, manifest and infra repos. Leave this empty if project is public. Details for the PAT at: https://github.com/CatalystCode/spk/blob/master/docs/project-service-management-guide.md#generating-personal-access-token
  hld_repository: "https://dev.azure.com/<organization>/<project>/_git/<hld-repo>" # Repository URL for your Bedrock HLDs
  manifest_repository: "https://dev.azure.com/<organization>/<project>/_git/<manifest-repo>" # Repository URL for your materialized manifests generated by fabrikate.
  infra_repository: "https://dev.azure.com/<organization>/<project>/_git/<infra-repo>" # Repository URL that contains your terraform templates to be sed for scaffolding and generating infrastructure deployment templates.
  org: "naros" # Your AzDo Org
  project: "spk-testing" # Your AzDo project
infra:
  # DO NOT MODIFY THE FOLLOWING
  # Prerequisite versions are auto-generated upon executing `spk init` and/or `spk infra validate`
  terraform: "v0.12.6"
  helm: "v2.14.3"
  git: "2.17.1"
  az: "2.0.71"

introspection:
  dashboard:
    image: "samiyaakhtar/spektate:prod" # Use this default docker image unless you would like to use a custom one
    name: "spektate"
  azure: # This is the storage account for the service introspection tool.
    account_name: "storage-account-name" # Must be defined to run spk deployment commands
    table_name: "storage-account-table-name" # Must be defined to run spk deployment commands
    partition_key: "storage-account-table-partition-key" # Must be defined to run spk deployment commands
    key: "storage-access-key" # Must be defined to run spk deployment commands. Use ${env:INTROSPECTION_STORAGE_ACCESS_KEY} and set it in .env file
    source_repo_access_token: "source_repo_access_token" # Optional. Required only when source repository is private (in order to render the author column in dashboard)

    # Following 5 fields are needed only if using spk to onboard to use introspection tool
    service_principal_id: "service-principal-id"
    service_principal_secret: "service-principal-secret"
    subscription_id: "subscription-id"
    tenant_id: "tenant-id"
    resource_group: "resource-group-name"
key_vault_name: # azure key vault name"

@NathanielRose Hmm, so where is test_name coming from? This is a general config loading issue.
I mentioned a reference to test_name in a test here cc @samiyaakhtar

@andrebriggs test_name was just a test env variable we added for the sake of unit testing to make sure referencing env vars works in spk. @NathanielRose you may want to remove the reference to ${test_name} inside the infra tests?

That works @samiyaakhtar  Ill be sure to add this to the documentation if we want to keep it as is.

@NathanielRose Is this bug still occurring?

@NathanielRose closing because I don't see this error any more. Re-open if necessary


Potential performance improvement

In rendering.js each for-loop can be optimized by first caching the length of the array. Unfortunately, jsPerf is down, but this article might provide insight.
for (var i = 0, length = arr.length; i < length; i++) {...}

pretty much all modern Javascript JITs will detect the length invariance and do this optimization for you. it may have mattered when the article was written (2013), but not today.

Ah, gotcha. Thanks  - I didn't know about that.

http://mrale.ph/blog/2014/12/24/array-length-caching.html

@devanp92 JSPerf won't be back any time soon sadly :(  I threw esbench.com together a while back as a replacement, using the same Benchmark.js lib. Here's a benchmark showing @leeoniya & @localvoid are very much correct!

@developit thanks for esbench, i'll be playing with it. you and @localvoid should collab to integrate https://github.com/localvoid/perf-monitor and/or https://github.com/localvoid/uibench into esbench.com ;)

Definitely. I use uibench probably 3 hours per day (is that embarrassing? I blame @trueadm lol). It would be super cool to have a benchmarking tool focussed on UI stuff that supported importing npm modules and/or files from disk.

@leeoniya @developit I wish everyone would stop using that "js-repaint" tool. It's completely inaccurate, has no actually bearing on performance and has been wholly misleading the entire community as to how dbmonster "really" performs. I was going to write a Medium thread on it actually, but didn't have the time.

@developit I'm glad my compulsive performance rubbed off on you :D

@trueadm

It's completely inaccurate, has no actually bearing on performance and has been wholly misleading the entire community as to how dbmonster "really" performs.

It's difficult to agree with such a grand statement when the bench does in fact correlate well with the perceived performance attained and overhead incurred. At least in relative terms it is a very useful comparison/sanity-check tool even if the "fps" and other metrics are not accurate in the absolute. I would be very interested to read your writeup if you get around to it, btw.

@leeoniya It's inaccurate as you can easily gain "more" higher repaints artificially. Prime example is the Angular 2  and the Web Worker example, where it shows repaints at 130/s on my machine, yet you can't even scroll the page due to the lag it causes (I'm sure you saw/have the link, I'm on my phone atm so don't have it handy). The thing about pure FPS is, well it's actually the UI updating accordingly to how fast the DOM is rendering (including repaints/reflows).

@trueadm it's one thing to say the bench is game-able but something else to state that it is therefore entirely worthless. You're right that the current crop of implementations need to be vetted for using such sneaky tactics. Without profiling tools built into the browser itself (like repaint/reflow/mem-alloc/gc events) i think it would be difficult (impossible?) to make perf tools that cannot be gamed. That being said, we have to have something in the mean time other than IRHydra, --trace-deopt and other external tools that can at least give relative regression tracking.

@leeoniya In my profession and experience, and this is something I have a lot of experience with, if you don't make a stand and say something is useless in terms of a benchmark (even if it had some value at one stage) people will simply neglect changing it and continue to use said tools.
Personally: I think the uibench is far better indication of performance in terms of real world use. We could make a better "dbmonster" bench that: removed/added dynamic height rows/columns upon update and applied animations via JS to cells – now that would be a far better indicator. :)

On a side note: I'm trying to work out why the new Mithril re-write:
https://cdn.rawgit.com/lhorie/mithril.js/rewrite/examples/dbmonster/mithril/index.html
Performs 4-5 FPS better than Kivi and Inferno. Not really had a chance to dwelve too deeply in it, but it's interested to know if @localvoid and I are missing some better way at applying DOM mutations.
@developit I'd really appreciate it if you moved Preact to using this update FPS counter so I could see how that performs too – maybe we can all understand and work with one another on implementation details to make our libraries more efficient. :)

@trueadm for the record, the only person who mentioned "js-repaint" and "dbmonster" was yourself; i only brought up perf-monitor and uibench :D

@leeoniya you knew what I was referring to :)

@trueadm which FPS counter?  I actually ended up grabbing monitor.js and the FPS display from your hosted version since they seemed less bad.  I've been hacking on things privately but will publish soon as part of the official 5.0 cutover.  I'm still annoyed that for a performance benchmark, the monitor is creating an infinite stream of TextNodes (setting .textContent on an Element rather than on the sole TextNode child).
What's your go-to benchmark right now?  Just normal UIBench?  I've mostly been using it to monitor for performance regressions - @localvoid mentions that as a use-case in the description and it's saved me at least twice now (accidental double-reconciliation from misaligned diff, shows up as an obvious 2x perf drop).

Something I use for DOM-op regressions (and is part of all tests) is a DOM-instrumentor I put together [1]. It ensures that only the expected quantity of specific DOM ops are performed during recycling. I've also considered using strictdom[1], but since done of our libs read the DOM, it may not be too useful. For lib overhead regressions not related to DOM i still use dbmonster/perf-monitor, but will probably move to UIBench at some point.
BTW, have you guys found createDocumentFragment to be helpful enough to warrant its use? It didnt seem to make much difference for me, neither for detached nor live DOM.
[1] https://github.com/leeoniya/domvm/blob/1.x-dev/test/lib/dominstr.js
[2] https://github.com/wilsonpage/strictdom

@leeoniya yeah. uibench is super helpful because you can see which types of operations regressed (eg table/sort slows down a bunch? keys issue, recycler priority, offset bug - etc).
For fragments, that's actually an optimization I've had in preact (here) for a while but never directly tested to check if it was worth the bit of bloat.  Here's a quick & dirty microbench that shows appending 4 nodes is actually far faster when done without the fragment:

So I'm thinking you're quite right, this might be another case of performance advice that made sense 5 years ago but was made irrelevant when we got async dom.

@trueadm

Performs 4-5 FPS better than Kivi and Inferno. Not really had a chance to dwelve too deeply in it, but it's interested to know if @localvoid and I are missing some better way at applying DOM mutations.

Opened dev tools, found out that it recalculates styles way much faster, then opened css file: https://cdn.rawgit.com/lhorie/mithril.js/rewrite/examples/dbmonster/styles.css
The main difference is that we use //netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css

@leeoniya

BTW, have you guys found createDocumentFragment to be helpful enough to warrant its use? It didnt seem to make much difference for me, neither for detached nor live DOM.

There are no reasons to use fragments when inserting children:
https://chromium.googlesource.com/chromium/blink/+/master/Source/core/dom/ContainerNode.cpp#66
https://chromium.googlesource.com/chromium/blink/+/master/Source/core/dom/ContainerNode.h#367


proposal: slices: add functions MinNFunc and MaxNFunc

Proposal Details
I propose the addition of a function
func MinNFunc[S ~[]E, E any](n int, x S, cmp func(a, b E) int) S

which returns the n smallest elements of x in increasing order.  If len(x) < n, then MinNFunc returns x sorted.
MinNFunc(n, x, cmp) is equivalent to
    y := SortFunc(x, cmp)
    if len(y) < n {
        return y
    }
    return y[:n]

but it avoids an allocation of size O(len(x)).
For symmetry, there could be a function MaxNFunc which returns the n largest elements of x in decreasing order.  MaxNFunc(n, x, cmp) is equivalent to
MinNFunc(n, x, func(a, b E) int {
    return -cmp(a, b)
})

this sounds very specialized
does it have wide usage elsewhere?
https://go.dev/doc/faq#x_in_std

I think this is the wrong proposal. Instead container/heap should be made generic, and you can just pop the first N items off a heap.

this sounds very specialized
does it have wide usage elsewhere?

I am not aware of it being included in the stdlib of any popular language, granted.  However, it is a simple, well-defined operation that I often find useful and that is not completely trivial to implement efficiently, but that can reuse a lot of the machinery in pdqsort.
As an additional data point, if you perform a web search for "k largest elements", it appears to be a fairly popular operation, but perhaps not for the right reasons (it would seem it's a standard interview question, for some reason).

Instead container/heap should be made generic, and you can just pop the first N items off a heap. See #47632.

If you mean that MinNFunc can be implemented using a priority queue (and therefore using a binary heap) in O(n log k) time, then you're absolutely right.  However, doing it efficiently is not completely trivial (the naive implementation copies every element, even those that end up being discarded.)
If you mean that I should be using a priority queue instead of computing the prioritary elements on demand, then I cannot do that: the priority changes dynamically (it depends on the network peers, don't ask), and there's no obvious way to determine when the priorities have changed sufficiently to justify rebuilding the priority queue.
I agree that it'd be nice to have a generic priority queue, but that's orthogonal to this proposal.

I was just now going to open a new proposal, and ran into this issue. Let me start by chiming in here. What you're describing here sounds like a selection algorithm which has average case O(n), like quick select. I've recently implemented pdqselect and published it open source: https://github.com/tsenart/pdqselect
It's based on Go's pdqsort implementation, and in fact all the zsort*.go files are copied from the Go tree. The algorithm is an adaptation of pdqsort to be a selection algorithm like quick select. It exists similarly in the Rust and C++ ecosystems:

https://doc.rust-lang.org/nightly/core/primitive.slice.html#method.select_nth_unstable_by
https://docs.rs/pdqselect/latest/pdqselect/
https://github.com/danlark1/miniselect/blob/main/include/miniselect/pdqselect.h

For inclusion in the stdlib, we could have something like this (follow my module's current design, more or less):

sort.Select(sort.IntSlice([]int{42, 12, 1}, 2))
slices.Select([]int{42, 12, 1}, 2)
slices.SelectFunc([]int{42, 12, 1}, 2, cmp.Compare)

With each of these ensuring only that after they're called the elements at slice[0:k] (where k=2 in the examples) are the first k elements if the slice was sorted (but they aren't necessarily sorted amongst themselves).
Not sure if the Go team is open to consider including something like this in the stdlib, but worth a discussion, given there's precedent in other languages, general utility and most of the code is already written — there's not a lot of new code in my module, mostly just pdqselect.go with all three variations for sort.Interface, cmp.Ordered and func(a, b E) int, as well as fuzz tests and benchmarks.

Also, cc @zhangyunhao116 and @eliben, would like your input on the above, given your pdqsort work recently.


[backport] Add memory management documentation

Backport of #1871

Jenkins CI test (for commit c81b964fb50878d727baecaaabe9431d7d622ddf, target branch v5) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)


Fix: Fix broken link in contributing.md

Summary
https://github.com/Kong/kong/blob/master/CHANGELOG/README.md does not exist.
Fix the url. Although, should that point at changelog-template.yaml instead?
I don't see anything in that readme directly relevant to contributors (who are not going to be generating a changelog themselves). Alternatively, as a new contributor, I'm not sure how to read these instructions and would be happy to update them :).
Checklist

[x] The Pull Request has tests
[ ] A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
[x] There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix #[issue number]

@liverpool8056 @outsinre  👋 what is required to get this MR merged :) ?


Add annotation support for UserCollectionType

Fix for HHH-4417

We have had lots of problems trying to forward port changes based on 3.6 to 4.x, so I am not going to be able to use this as-is.  Anyway, I think it is better (consistency) to instead just reuse org.hibernate.annotations.Type rather than add a whole new annotation.

Thank you
On Fri, Mar 2, 2012 at 1:56 PM, Steve Ebersole <
<EMAIL_ADDRESS>
wrote:

We have had lots of problems trying to forward port changes based on 3.6
to 4.x, so I am not going to be able to use this as-is.  Anyway, I think it
is better (consistency) to instead just reuse
org.hibernate.annotations.Type rather than add a whole new annotation.

Reply to this email directly or view it on GitHub:
https://github.com/hibernate/hibernate-orm/pull/251#issuecomment-4291788


Add MaxPathLen and add EncodeBasicConstraintsInRequest option to Certificate and CertificateRequest resources

Pull Request Motivation
Adds the missing BasicConstraints options to the Certificate and CertificateRequest resources.
Implemented very similar to the existing IsCA and Usages options.
Kind
/kind feature
Release Note
The Certificate and CertificateRequest resources now support setting the MaxPathLen.

/test pull-cert-manager-master-e2e-v1-27
/test pull-cert-manager-master-make-test

/ok-to-test

/remove-lifecycle stale

/retest

/reopen
/remove-lifecycle rotten


Github Actions are now run on pull requests.

Once this is merged, pull requests will have a ✔ or ❌ next to them based on whether they can be built by GitHub.
If they can't, the pull request needs to be fixed such that it builds properly. I highly recommend setting this option to enforce this:

Sometimes GitHub build has non code related issues(size limit etc) so it shouldn’t be required


xrdp not loading desktop in OpenSuse Tumbleweed Kde

Hello everybody,
I don't know if this is related to https://github.com/neutrinolabs/xrdp/issues/1684.
I have installed xrdp <IP_ADDRESS>.4 and xorgxrdp 0.2.15-1.4 on OpenSuse Tumbleweed (which is installed as guest on Hyper-V in a Win10 professional host, I don't know if this is relevant). When I connect to OpenSuse using Microsoft Remote Desktop client, I see the splash screen of Tumbleweed for some seconds and after the screen becomes blank and the desktop is not loaded.
Moreover, after this, I cannot anymore do logout or poweroff/shutdown from KDE: clicking on the buttons in Kde panel has no effect.

Strangely, if I replace the port to listen in /etc/xrdp/xrdp.ini  using port=vsock://-1:3389 in order to enable enhanced session mode on Hyper-V to connect to guest Tumbleweed, desktop is loaded without problems. The only issue is that shutdown from KDE panel seems again not to work, but in this case what happens is that the screen becomes blank but the virtual machine is not turned off. I have to ssh from host and to poweroff it from console.

Hi @hardhu
That's a useful second piece of information. It points to there being possibly being two problems here. Let's look at your shutdown issue first.
KDE makes heavy use of polkit for authentication. Polkit treats local desktops differently from remote desktops for a good reason - it's not obvious what security policy needs to be applied to the desktop in question. For example, whereas you've happy to shut your local VM down from a remote desktop, a sys admin in charge of a shared resource might be less willing to grant that privilege to all the users.
The general procedure to fix this is to figure out what polkit action is being denied by polkit. You can then add a polkit rule to authorize that action for remote users. Ther's a KDE/Manjaro example here.
I'm not familiar with OpenSuSE. Can you have a look in the system log files and see if you're getting any useful authentication messages from polkitd?
The first issue you mention could be a number of things. An obvious first thing to check is that you're not logged in to the graphical console as the same user when you also connect over xrdp. Xrdp itself supports that, but sadly anything that relies on systemd --user (which is most Linux distros these days) will not.

Hi @hardhu
That's a useful second piece of information. It points to there being possibly being two problems here. Let's look at your shutdown issue first.
KDE makes heavy use of polkit for authentication. Polkit treats local desktops differently from remote desktops for a good reason - it's not obvious what security policy needs to be applied to the desktop in question. For example, whereas you've happy to shut your local VM down from a remote desktop, a sys admin in charge of a shared resource might be less willing to grant that privilege to all the users.
The general procedure to fix this is to figure out what polkit action is being denied by polkit. You can then add a polkit rule to authorize that action for remote users. Ther's a KDE/Manjaro example here.
I'm not familiar with OpenSuSE. Can you have a look in the system log files and see if you're getting any useful authentication messages from polkitd?
The first issue you mention could be a number of things. An obvious first thing to check is that you're not logged in to the graphical console as the same user when you also connect over xrdp. Xrdp itself supports that, but sadly anything that relies on systemd --user (which is most Linux distros these days) will not.

First of all, thanks a lot for your reply.
I start by report some tests I have made about the KDE shutdown issue. Following you suggestions in (https://github.com/neutrinolabs/xrdp/issues/1584) I have edited the /usr/lib/systemd/system/polkit.service in this way:
`[Unit]
Description=Authorization Manager
Documentation=man:polkit(8)
[Service]
Type=dbus
BusName=org.freedesktop.PolicyKit1
ExecStart=/usr/libexec/polkit-1/polkitd --no-debug
Environment=G_MESSAGES_DEBUG=all
ExecStart=/usr/lib/polkit-1/polkitd
However, after a reboot my OpenSuse virtual machine became unresponsive, and with sudo journalctl -u polkit`
got a lot of this error messages:
May 21 11:51:59 localhost systemd[1]: Starting Authorization Manager... May 21 11:51:59 localhost systemd[598]: polkit.service: Failed to execute command: No such file or directory May 21 11:51:59 localhost systemd[598]: polkit.service: Failed at step EXEC spawning /usr/lib/polkit-1/polkitd: No such file or directory May 21 11:51:59 localhost systemd[1]: polkit.service: Main process exited, code=exited, status=203/EXEC May 21 11:51:59 localhost systemd[1]: polkit.service: Failed with result 'exit-code'. May 21 11:51:59 localhost systemd[1]: Failed to start Authorization Manager.
Then I restored  /usr/lib/systemd/system/polkit.service to its original version, and, following this example from Arch wiki, I have added the /etc/polkit-1/rules.d/00-log-access.rules:
polkit.addRule(function(action, subject) {     polkit.log("action=" + action);     polkit.log("subject=" + subject); });
But still I cannot find any useful messages about shutdown issue when checking with sudo journalctl -u polkit
I also tried to add the following rule (always following the configuration script for xrdp provided here ):
/etc/polkit-1/rules.d/02-allow-colord.rules
polkit.addRule(function(action, subject) {     if ((action.id == "org.freedesktop.color-manager.create-device" ||          action.id == "org.freedesktop.color-manager.modify-profile" ||          action.id == "org.freedesktop.color-manager.delete-device" ||          action.id == "org.freedesktop.color-manager.create-profile" ||          action.id == "org.freedesktop.color-manager.modify-profile" ||          action.id == "org.freedesktop.color-manager.delete-profile") &&         subject.isInGroup("users"))     {         return polkit.Result.YES;     } });
But the moment I have no improvements. I will go on investigating, of course any help would be very appreciated.

Hi @hardhu
You were nearly there with your first editing of /usr/lib/systemd/system/polkit.service
The line you commented out :-
# ExecStart=/usr/libexec/polkit-1/polkitd --no-debug

tells you that on your system, the polkit daemon in at /usr/libexec/polkit-1/polkitd, and not at /usr/lib/polkit-1/polkitd.
The errors you're getting from systemd are telling you the same thing.
So the two lines you need adding to the systemd unit file for your system are:-
Environment=G_MESSAGES_DEBUG=all
ExecStart=/usr/libexec/polkit-1/polkitd

Does that make sense?

Indeed!
I have now edited correctly /usr/lib/systemd/system/polkit.service and I get a lot of "not authrized" lines. I try to report a summary here of sudo journalctl -u polkit
First lines are about starting Authorization Manager:
May 24 12:32:17 localhost systemd[1]: Starting Authorization Manager...
May 24 12:32:17 localhost polkitd[609]: Successfully changed to user polkitd
May 24 12:32:17 localhost polkitd[609]: Started polkitd version 0.118
May 24 12:32:18 localhost polkitd[609]: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
May 24 12:32:18 localhost polkitd[609]: Loading rules from directory /etc/polkit-1/rules.d
May 24 12:32:18 localhost polkitd[609]: Loading rules from directory /usr/share/polkit-1/rules.d
May 24 12:32:18 localhost polkitd[609]: 12:32:18.021: Loading rules from directory /etc/polkit-1/rules.d
May 24 12:32:18 localhost polkitd[609]: 12:32:18.021: Loading rules from directory /usr/share/polkit-1/rules.d
May 24 12:32:18 localhost polkitd[609]: Finished loading, compiling and executing 3 rules
May 24 12:32:18 localhost polkitd[609]: 12:32:18.025: Finished loading, compiling and executing 3 rules
May 24 12:32:18 localhost polkitd[609]: Entering main event loop
May 24 12:32:18 localhost polkitd[609]: Connected to the system bus
May 24 12:32:18 localhost polkitd[609]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
May 24 12:32:18 localhost polkitd[609]: 12:32:18.035: Acquired the name org.freedesktop.PolicyKit1 on the system bus
May 24 12:32:18 localhost systemd[1]: Started Authorization Manager.
Then there are some groups of lines fo this kind, with user of caller is unix-user:root and user of subject is unix-user:sddm
for which the authorization is given:
May 24 12:32:19 hyperarch.mshome.net polkitd[609]: system-bus-name::1.2 is inquiring whether system-bus-name::1.18 is authorized for org.freedesktop.login1.power-off
May 24 12:32:19 hyperarch.mshome.net polkitd[609]:  user of caller is unix-user:root
May 24 12:32:19 hyperarch.mshome.net polkitd[609]:  user of subject is unix-user:sddm
May 24 12:32:19 hyperarch.mshome.net polkitd[609]: checking whether system-bus-name::1.18 is authorized for org.freedesktop.login1.power-off
May 24 12:32:20 hyperarch.mshome.net polkitd[609]:   0x7f2fd4008b00
May 24 12:32:20 hyperarch.mshome.net polkitd[609]: Checking whether session 1 is active.
May 24 12:32:20 hyperarch.mshome.net polkitd[609]: Session 1 has UID 461.
May 24 12:32:20 hyperarch.mshome.net polkitd[609]: UID 461 has state active.
May 24 12:32:20 hyperarch.mshome.net polkitd[609]:  subject is in session 1 (local=1 active=1)
May 24 12:32:20 hyperarch.mshome.net polkitd[609]:  is authorized (has implicit authorization local=1 active=1)
the authorization being checked are for org.freedesktop.login1.reboot, org.freedesktop.login1.suspend, org.freedesktop.login1.hibernate
Then there is the first group of lines referring to KDE functions where authorization is not given:
May 24 12:33:19 hyperarch.mshome.net polkitd[609]: system-bus-name::1.27 is inquiring whether system-bus-name::1.25 is authorized for org.kde.kded.smart.smartctl
May 24 12:33:19 hyperarch.mshome.net polkitd[609]:  user of caller is unix-user:hardhu
May 24 12:33:19 hyperarch.mshome.net polkitd[609]:  user of subject is unix-user:hardhu
May 24 12:33:19 hyperarch.mshome.net polkitd[609]: checking whether system-bus-name::1.25 is authorized for org.kde.kded.smart.smartctl
May 24 12:33:19 hyperarch.mshome.net polkitd[609]:   0x7f2fd4008ec0
May 24 12:33:19 hyperarch.mshome.net polkitd[609]: Checking whether session c1 is active.
May 24 12:33:19 hyperarch.mshome.net polkitd[609]: Session c1 has UID 1000.
May 24 12:33:19 hyperarch.mshome.net polkitd[609]: UID 1000 has state active.
May 24 12:33:19 hyperarch.mshome.net polkitd[609]:  subject is in session c1 (local=0 active=1)
May 24 12:33:19 hyperarch.mshome.net polkitd[609]:  not authorized
The situation is however in some sense "mixed", since for other functions the authorization is given:
May 24 12:33:21 hyperarch.mshome.net polkitd[609]: system-bus-name::1.36 is inquiring whether system-bus-name::1.34 is authorized for org.kde.powerdevil.discretegpuhelper.hasdualgpu
May 24 12:33:21 hyperarch.mshome.net polkitd[609]:  user of caller is unix-user:hardhu
May 24 12:33:21 hyperarch.mshome.net polkitd[609]:  user of subject is unix-user:hardhu
May 24 12:33:21 hyperarch.mshome.net polkitd[609]: checking whether system-bus-name::1.34 is authorized for org.kde.powerdevil.discretegpuhelper.hasdualgpu
May 24 12:33:21 hyperarch.mshome.net polkitd[609]:   0x56211abd9750
May 24 12:33:21 hyperarch.mshome.net polkitd[609]: Checking whether session c1 is active.
May 24 12:33:21 hyperarch.mshome.net polkitd[609]: Session c1 has UID 1000.
May 24 12:33:21 hyperarch.mshome.net polkitd[609]: UID 1000 has state active.
May 24 12:33:21 hyperarch.mshome.net polkitd[609]:  subject is in session c1 (local=0 active=1)
May 24 12:33:21 hyperarch.mshome.net polkitd[609]:  is authorized (has implicit authorization local=0 active=1)
Also some functions related to freedesktop are not authorized:
May 24 12:33:21 hyperarch.mshome.net polkitd[609]: system-bus-name::1.40 is inquiring whether unix-process:1470:6755 is authorized for org.freedesktop.RealtimeKit1.acquire-high-priority
May 24 12:33:21 hyperarch.mshome.net polkitd[609]:  user of caller is unix-user:root
May 24 12:33:21 hyperarch.mshome.net polkitd[609]:  user of subject is unix-user:hardhu
May 24 12:33:21 hyperarch.mshome.net polkitd[609]: checking whether unix-process:1470:6755 is authorized for org.freedesktop.RealtimeKit1.acquire-high-priority
May 24 12:33:21 hyperarch.mshome.net polkitd[609]:   0x56211ade84f0
May 24 12:33:21 hyperarch.mshome.net polkitd[609]: Checking whether session c1 is active.
May 24 12:33:21 hyperarch.mshome.net polkitd[609]: Session c1 has UID 1000.
May 24 12:33:21 hyperarch.mshome.net polkitd[609]: UID 1000 has state active.
May 24 12:33:21 hyperarch.mshome.net polkitd[609]:  subject is in session c1 (local=0 active=1)
May 24 12:33:21 hyperarch.mshome.net polkitd[609]:  not authorized
Ok, I don't want to report all messages since there are many of them and I don't know if they are useful for debugging.
Thank for your help so far and for possible future suggestions.

I just a little piece of messages from journalctl to describe what happens when KDE Software Updates tries to automatically get authorization to indeed update software, and it doesn't succeed:
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Is net online: true
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Checking updates, forced
May 24 16:33:27 hyperarch.mshome.net dbus-daemon[599]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.65' (uid=1000 pid=1448 comm="/usr/bin/plasmashell ")
May 24 16:33:27 hyperarch.mshome.net systemd[1]: Starting PackageKit Daemon...
May 24 16:33:27 hyperarch.mshome.net PackageKit[2396]: daemon start
May 24 16:33:27 hyperarch.mshome.net systemd[1]: Started PackageKit Daemon.
May 24 16:33:27 hyperarch.mshome.net dbus-daemon[599]: [system] Successfully activated service 'org.freedesktop.PackageKit'
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Is net mobile: false
May 24 16:33:27 hyperarch.mshome.net PackageKit[2396]: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Is net online: true
May 24 16:33:27 hyperarch.mshome.net PackageKit[2396]: uid 1000 failed to obtain auth
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Daemon changed
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Transaction status changed: "wait" "(101%)"
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Transaction status changed: "waiting-for-auth" "(101%)"
May 24 16:33:27 hyperarch.mshome.net polkitd[609]: system-bus-name::1.90 is inquiring whether system-bus-name::1.65 is authorized for org.freedesktop.packagekit.system-sources-refresh
May 24 16:33:27 hyperarch.mshome.net polkitd[609]:  user of caller is unix-user:root
May 24 16:33:27 hyperarch.mshome.net polkitd[609]:  user of subject is unix-user:hardhu
May 24 16:33:27 hyperarch.mshome.net polkitd[609]: checking whether system-bus-name::1.65 is authorized for org.freedesktop.packagekit.system-sources-refresh
May 24 16:33:27 hyperarch.mshome.net polkitd[609]:   0x7f2fd4004d60
May 24 16:33:27 hyperarch.mshome.net polkitd[609]: Checking whether session c1 is active.
May 24 16:33:27 hyperarch.mshome.net polkitd[609]: Session c1 has UID 1000.
May 24 16:33:27 hyperarch.mshome.net polkitd[609]: UID 1000 has state active.
May 24 16:33:27 hyperarch.mshome.net polkitd[609]:  subject is in session c1 (local=0 active=1)
May 24 16:33:27 hyperarch.mshome.net polkitd[609]:  not authorized
May 24 16:33:27 hyperarch.mshome.net polkitd[609]:
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: PK error: "Failed to obtain authentication." type: "not-authorized"
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Transaction "/1_aeaabcad" finished with status "failed" in 0 seconds
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Cache transaction didn't finish successfully
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Is net online: true
May 24 16:33:27 hyperarch.mshome.net plasmashell[1448]: plasma-pk-updates: Transaction status changed: "finished" "(101%)"
May 24 16:33:47 hyperarch.mshome.net PackageKit[2396]: daemon quit
May 24 16:33:47 hyperarch.mshome.net systemd[1]: packagekit.service: Succeeded.
I am wondering if that PackageKit[2396]: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0) message has something to do with these issues or can however be of any help to debug them.

Just another little comment: being not able to found a solution to my problem so far, I have found a workaround here
That is, I have created this new rule /etc/polkit-1/rules.d/49-nopasswd_global.rules
`/* Allow members of the wheel group to execute any actions

without password authentication, similar to "sudo NOPASSWD:"
*/
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});`

and added my user to group wheel. Of course this is not appropriate for a working/production environment, but in order to run Tumbleweed in a vm could be sufficient.

You should be able to fix your refresh issue above by authorizing it directly:-
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.packagekit.system-sources-refresh" &&
        subject.isInGroup("xrdpusers"))
    {
        return polkit.Result.YES;
    }
});

Create a group called xrdpusers and put your user in that. Hopefully the above makes sense.

Yes, of course it makes sense but, as you may have noticed, I have several actions for which I don't receive the required authorization. So, until I will not able ti understand which is the common link between those, I prefer to have a more general rule which allow for all authorizations being given.
I will edit the title of the issue accordingly to the questions I am facing.

OK - I can see where you're coming from.
All I can really suggest is that you identify your actions from the log, and then use use Javascript functions (e.g. startsWith()) in your addRule functions to match as many as possible. So, for example:-
polkit.addRule(function(action, subject) {
    if ((action.id.startsWith("org.freedesktop.packagekit.") ||
        action.id.startsWith("org.freedesktop.")) &&
        subject.isInGroup("xrdpusers"))
    {
        return polkit.Result.YES;
    }
});

I'm not really familiar with Javascript, so if you are I'm sure you can improve on the above quite a bit.

Thanks a lot for your support. I think that with your last answer this issue can be closed.


Fix markdown security and enable most CSS

Stops using our sanitizer and instead disables HTML in markdown engine

This was blocking Note because it converted > to >
It's slightly more strict in that it fully disables HTML unless trusted. Will need to improve handling of Trusted to support this in a future PR

Adds in correct CSS, both from .css file in markdown extension and from built-into all webviews global CSS

Fix #3765 standard markdown support
Fix Support of Notes by bringing correct styles
Fix code block colorization
Fix link handling so it's not bolded / gets underlined on hover
Fixes table rendering (for markdown and HTML tables)

How about instead letting the markdown engine do its thing with an unsanitized ssource and then sanitize before displaying?

Screenshot below: new on left, old on right. Changes:

Headers use same style as markdown (line under H1, normal font weight
LInk style is different
Font is 14px, not 13px. This balances size better against code sections I think
Line height is 22px not 18px. Some cases like Notes section seem to look better.

@chlafreniere @YurongHe @corivera this is ready for review. Fixed a bunch of other issues while testing 😄


Support the "Info" category for flake8

Environment data

VS Code version: 1.22.2
Extension version: 2018.3.1
OS and version: Ubuntu 17.10
Python version: 3.6
Type of virtual environment used: N/A
Relevant/affected Python packages and their versions: flake8==3.5.0 flake8-import-order==0.17.1

Actual behavior
Flake8 plugin configuration settings don’t match the settings schema in vscode, even though the settings do work.
Expected  behavior
Flake8 plugin settings are not marked as unknown in the vscode settings file.
Steps to reproduce:

Install flake8

Install  flake8-import-order

Open a file with the following contents:
from foo import bar

import sys

Notice how this triggers an info level problem

Add this line to your vscode settings:
  "python.linting.flake8CategorySeverity.I": "Warning",

Notice this gives a warning in the settings file

Save or reopen the Python file

Notice that the severity level has changed from info to warning

Logs
N/A

We should come up with a flexible mechanism for classifying flake8 issues/categories so that we can cover this need as well as any other future categories a plug-in might add.
Idea I head was a dict whose keys get put into a trie which we can the use to find the specified category or issue's classification.

This ought to work if the flake8 plugin uses more than 1 letter for the prefix, e.g. flake8-simplify uses SIM, but
"python.linting.flake8CategorySeverity.SIM": "Warning",

does not work (you have to use .S instead)

This ought to work if the flake8 plugin uses more than 1 letter for the prefix, e.g. flake8-simplify uses SIM, but
"python.linting.flake8CategorySeverity.SIM": "Warning",

does not work (you have to use .S instead)

To extend on this, I would like to be able to do
  "python.linting.flake8CategorySeverity.SIM": "Warning",
  "python.linting.flake8CategorySeverity.SIM9": "Information",

Please try the flake8 extension, currently in pre-release. We are looking for feedback on it, please create issues on github for the extension: https://marketplace.visualstudio.com/items?itemName=ms-python.flake8 . This will be the eventual successor for the flake8 linting support in the extension.
One of the things you can do there is customize the severity, by individual error codes or categories.

Closing this, since we have begun to process to migrate users over to flake8 extension. Plese try it out: https://marketplace.visualstudio.com/items?itemName=ms-python.flake8

Relevant equivalent issue on the new repo. In case anyone comes across this. https://github.com/microsoft/vscode-flake8/issues/7


Switch the way column transformation works

Use the converters of pd.read_excel together with the tyto ontology instead of the current solution.
Allow three columns: Sheet convert, ontology convert, and replacement convert

This was done at some point but apparently not closed