Slow script start...

Type: Performance Issue
After opening a folder to work in and opening a script to work on - when I start execution of the script in either debug or run - the script takes a very long time to start executing.
It's like VSCode is looking for something before begining. Sometimes it takes as long a minute before it starts.
VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 1805)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
15.39GB (4.09GB free)

Process Argv
--crash-reporter-id afd24bad-0586-46e7-ace3-7f7f62499c6e

Screen Reader
no

VM
0%

Process Info
CPU %	Mem MB	   PID	Process
    0	   124	 22584	code main
    0	   105	 13652	shared-process
    1	   234	 14472	window [1] (Build-GpoMatrix.ps1 - Build-GpoMatrix - Visual Studio Code [Administrator])
    0	    97	 17856	ptyHost
    0	     7	  1852	     conpty-agent
    0	   234	 24776	     "C:\Program Files\PowerShell\7\pwsh.exe" -NoProfile -ExecutionPolicy Bypass -Command "Import-Module 'c:\Users\u598743a\.vscode\extensions\ms-vscode.powershell-2024.2.2\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2024.2.2' -BundledModulesPath 'c:\Users\u598743a\.vscode\extensions\ms-vscode.powershell-2024.2.2\modules' -EnableConsoleRepl -StartupBanner \"PowerShell Extension v2024.2.2
Copyright (c) Microsoft Corporation.

https://aka.ms/vscode-powershell
Type 'help' to get help.
\" -LogLevel 'Normal' -LogPath 'c:\Users\u598743a\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\logs\1716579595-41e812ae-be03-43a5-9ad6-38c390e6f5661716579594383' -SessionDetailsPath 'c:\Users\u598743a\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\sessions\PSES-VSCode-22584-284725.json' -FeatureFlags @() "
    0	   143	 17644	       "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
    0	     8	 25376	         C:\WINDOWS\system32\conhost.exe 0x4
    0	   135	 21492	       "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Version 5.1 -s -NoLogo -NoProfile
    0	     8	 19844	         C:\WINDOWS\system32\conhost.exe 0x4
    0	   147	 21276	extensionHost [1]
    0	   107	 15060	     "C:\Program Files\Microsoft VS Code\Code.exe" "c:\Program Files\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=21276
    0	    40	 21396	   utility-network-service
    0	    27	 25484	   crashpad-handler
    0	   102	 26412	window [2] (Issue Reporter)
    1	   247	 26952	   gpu-process
    0	    90	 27572	fileWatcher [1]

Workspace Info
|  Window (Build-GpoMatrix.ps1 - Build-GpoMatrix - Visual Studio Code [Administrator])
|    Folder (Build-GpoMatrix): 3 files
|      File types: json(1) ps1(1)
|      Conf files: launch.json(1)
|      Launch Configs: PowerShell;

Extensions (4)

Extension
Author (truncated)
Version

vscode-better-align
cho
1.4.2

gitlens
eam
15.0.4

powershell
ms-
2024.2.2

errorlens
use
3.17.0

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:31000449
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
chatpanelt:31048053
dsvsc021:30996838
jg8ic977:31013176
pythoncenvpt:31049070
a69g1124:31058053
dvdeprecation:31052039
pythonprt:31056678
dwnewjupytercf:31046870
26j00206:31048877

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

Probably waiting on a task? Please share more info like the language and your launch configuration, if you have one.

Language is PowerShell.
Here is a sample launch configuration, pretty basic.
{     // Use IntelliSense to learn about possible attributes.     // Hover to view descriptions of existing attributes.     // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387     "version": "0.2.0",     "configurations": [         {             "name": "PowerShell: Launch Current File",             "type": "PowerShell",             "request": "launch",             "script": "${file}",             "args": [" -Verbose"]         }     ] }
As troubleshooting step I disabled all of my extensions (four) and restarted VSCode.
Turned on the PowerShell extension and launched a script - no problem, started right away.
Turned on the Error Lens extension and restarted VSCode. Launched a script - no problem, started right away.
Turned on the Better Align extension and restarted VSCode. Launched a script - no problem, started right away.
Turned on the GitLens — Git supercharged extension and restarted VSCode. Launched a script - no problem, started right away.
Now with all extensions enabled and restarting VSCode I'm not seeing the problem. It was 100% consistently slow to start any script the first time launching a script after opening VSCode. Now it is behaving as expected and immediately launches the script...

If you see it again, you can file an issue on the Powershell extension


Create manhole when SIGUSR1 received.

👓 @spladug @ckwang8128
Previously, a manhole socket was being created for every process on
startup.  This worked fine in development, but did not seem to play well
with einhorn (or something) in production.
Instead, we'll wait until SIGUSR1 is received for a particular process to
create a manhole socket only for that process.  This will still cause that
particular process to stop, but in the case of the OOM issue we are trying to
solve, it is only a matter of time before those connections are dropped
anyway.  This seems like a reasonable tradeoff, as it will still the service
to operate normally until the manhole is invoked.

Also happy to hear theories on why this might be messing up in production.

How did it not play well in prod? Some more details there might be helpful for figuring out what happened.
Is there any concern that a bloated / broken process would have trouble responding to SIGUSR1 and setting up the manhole?
:nail_care:

The only real clue I have is when manholing in:
>>> manhole.dump_stacktraces()

######### ProcessID=9364, ThreadID=140641762551552 #########
File: "/usr/lib/python2.7/dist-packages/gevent/threadpool.py", line 182, in _worker
  task = task_queue.get()
File: "/usr/lib/python2.7/dist-packages/gevent/_threading.py", line 432, in get
  self.not_empty.wait()
File: "/usr/lib/python2.7/dist-packages/gevent/_threading.py", line 148, in wait
  waiter.acquire()

Other than that, it was alternating between hanging when trying to curl the health endpoint and nginx giving a 502 bad gateway error.

Is there any concern that a bloated / broken process would have trouble responding to SIGUSR1 and setting up the manhole?

Perhaps!  But at that point presumably it's pretty messed up anyway, so it shouldn't hurt to try.

:haircut_man:

Oh, so you're saying the websocket servers didn't work at all when manhole was installed and that's the only info you could get out of it?

Yeah exactly, in production.  In dev it was fine.

(I'd also be curious to know more about why it's failing, that seems important to understand before standardizing this thing)

Sounds good.  Yeah, I definitely don't think we can standardize something obviously broken.  I'm looking into understanding einhorn more so I can figure out what's going on.


Watermark addon added

Simple Module Config file (MyModuleName/config/thumbnails.php)

<?php
[
return [
    'coverImage' => [
        'fit' => [
            'width' => '200',
            'height' => null,
            'callback' => function ($constraint) {
                $constraint->upsize();
            }
        ],
        'watermark' => [
            'source' => 'public/assets/watermark.png', // if changing required
            'position' => 'top-right' // if changing required
        ]
    ]
];

Don't forget refresh thumbnails

php artisan asgard:media:refresh

https://asgardcms.com/docs/media-module/refreshing-thumbnails.

Thank you :+1:

I think watermark should be a backend controller for Media module,
so we can select which image/watermark to use,
and  decide where to put the watermark depends on image content.
Because not every image need watermark, such as background image, icon, etc.
If need a batch,  checkboxes will be much better than php artisan asgard:media:refresh, it is overkill.

This is a filter from the intervention library, so in my opinion it makes sense to have it like the other filters.
However the watermark could still be added in an another matter via gui.


🐛 Bug Report: Pagination options are getting overridden in PaginatedCatalogTable

📜 Description
Sorry if this isn't a bug, I just can't find a reasoning behind this.
I'm activating server-side pagination by adding pagination property to <CatalogIndexPage /> like described here: https://backstage.io/docs/features/software-catalog/catalog-customization/#pagination
It makes pagination options disappear, I can't control page size from now. It because those options are getting overridden here:
https://github.com/backstage/backstage/blob/29a0f56831de683df148101a4acaa81971b2965f/plugins/catalog/src/components/CatalogTable/PaginatedCatalogTable.tsx#L40-L48
There is a comment saying it's needed for server-side rendering, but I don't know the details.
👍 Expected behavior
Options like pageSize should still display
👎 Actual Behavior with Screenshots
No page size options

👟 Reproduction steps

Fill catalog with example data
Add pagination to <CatalogIndexPage />

📃 Provide the context for the Bug.
No response
🖥 Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
No, but I'm happy to collaborate on a PR with someone else

If your goal is to make the backend return more entities than the default 20 then you can do this by:
<Route path="/catalog" element={<CatalogIndexPage pagination={{ limit: 50 }} />} />

the pageSize prop is locked on purpose to follow the number of entities fetched on each batch.

Shouldn't the total number of entities be displayed? Also numbers of currently displayed records? And first/last page buttons?

Total number of items is returned from backend:

And pageSizeOptions is an empty array here.
byQuery endpoint accepts limit so why can't that be integrated?
If I pass pageSizeOptions to regular <CatalogIndexPage /> like this, it works:
<Route path="/catalog" element={<CatalogIndexPage tableOptions={{pageSizeOptions: [5,10,20]}}/>} />

But if I do the same with pagination I don't have those options:
<Route path="/catalog" element={<CatalogIndexPage pagination tableOptions={{pageSizeOptions: [5,10,20]}}/>} />

the thing is that you can't jump to the last page. You can only move forward and backwards one page at the time. Also changing page size would reset pagination, as you lose track of where you are. The total number of items could be displayed though.

Oh, I see it operates on cursor/nextCursor/previousCursor parameters, not skipping records. I didn't dive into that yet to understand it fully, but seams reasonable in this case. Thanks for the comments!

Oh, I see it operates on cursor/nextCursor/previousCursor parameters, not skipping records. I didn't dive into that yet to understand it fully, but seams reasonable in this case. Thanks for the comments!

thanks for looking into this anyway 🙏


PlayerEvents dosen't work for Patch v<IP_ADDRESS> (or before)

PlayerEvents dosen't work for Patch v<IP_ADDRESS> (or before). I'm getting always null for return value.

This was updated to work better on newer versions, and tested against <IP_ADDRESS> and <IP_ADDRESS>. It should be better at least for getting the array of events back.


starship.toml not formatted with utf-8 powershell error

Not entirely an issue on your side, but maybe a note for future people trying to use this. I was getting an error when using the file on windows terminal(powershell) as it seems it needs to be formatted as ntf-8. I simply opened it up in sublime and saved with encoding as ntf-8. Hopefully helps someone else in the future.

Which powershell version did you try this with?

Same issue here. Icons are broken.


rancher installation --set noProxy via helm chart results in error on comma separated list

What kind of request is this (question/bug/enhancement/feature request):
BUG
Steps to reproduce (least amount of steps as possible):
Install Rancher per your docs.
Use this helm command instead:
helm install rancher-stable/rancher --name rancher --namespace cattle-system  --set hostname=somehost --set proxy=http://someproxy --set noProxy="localhost,<IP_ADDRESS>,<IP_ADDRESS>/8"
Result:
Error: failed parsing --set data: key "1" has no value (cannot end with ,)

Other details that may be helpful:
I'm reporting this for my client. The part of this command that ends up in a failure is the noProxy part. Not sure if this is a helm problem. or a rancher problem. But reporting this, since you documented this, as it should be working: https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-rancher/chart-options/#http-proxy
Environment information

Rancher version (rancher/rancher:v2.1.0):
Installation option (single install/HA): HA (helm)

Cluster information

Cluster type (Imported): Nutanix
Machine type (private cloud/VM) and specifications (CPU/memory - not relevant):
Kubernetes version (use kubectl version): - not relevant
helm version - latest available (v2.11.0)

It's probably the escaping comma issue, can you try escaping the commas:
--set noProxy="localhost\,<IP_ADDRESS>\,<IP_ADDRESS>/8"

I'll submit a fix for the docs

Fixed in https://github.com/rancher/docs/pull/914


⚠ Bofrost.at has degraded performance

In d2d68fc, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2608 ms

Resolved: Bofrost.at performance has improved in 69ce500.


Fix/default bm

Fix method name in DefaultBackupManager
Fix some comments // TODO - PR => //TODO-PR

Pull Request Test Coverage Report for Build 1303

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.02%) to 87.873%

Files with Coverage Reduction
New Missed Lines
%

broker/lib/fabrik/DBManager.js
1
98.86%

Totals

Change from base Build 1302:
-0.02%

Covered Lines:
7312

Relevant Lines:
8049

💛  - Coveralls

@amitmalav  : coverage reduced ? :)

@kamath-prasad We would have to write some unit tests for the DefaultBackupManager file.
There is one more fix coming. Hence I added do not merge.


Add support for configuring lmdb map size

Fixes #643
This adds options for configuring the map size via command-line and environment variables.
Currently it takes a plain numeric value.
This is a breaking change seeing as I changed the signature of an existing function. Although the crate is not published on crates.io, it could affect people depending on the git repository directly.
If this is a problem, a new method open_or_create2 could be added, which can be removed and replace the original in the next major version.
If desired I can add human-friendly parsing with https://crates.io/crates/human-size so you can configure "1 GiB" instead of "1073741824".

Thank you, I hope this fixes the Windows related problems, did you try it on your own Windows machine?

Yes. It works on my Windows server, albeit in a test environment, have not tried it in production yet.


Loading package double-conversion-<IP_ADDRESS>: can't load .so/.DLL for: stdc++.dll

Thx for minghc, was really looking forward to it.
I had two problems with double-conversion on windows with haskell-platform since my project depends on text-format and so on double-conversion.
the first problem happens when building the project or with this minimal example
-- | Main.hs
module Main where
import Data.Double.Conversion.Text
import Data.Text.Internal
main = print $ showText (toShortest pi)

> cabal install double-conversion
> runhaskell.exe .\Main.hs
...
can't load .so/.DLL for: stdc++.dll (addDLL: could not load DLL)

related issue: bos/double-conversion#7
the second problem is similar
> cabal get double-conversion
> cd double-conversion
> cabal sandbox init
> cabal install --dep
> cabal repl
...
Loading object (static) dist\build\cbits\hs-double-conversion.o ... ghc.exe: Unknown PEi386 section name `.gcc_except_table' (while processing: dist\build\cbits\hs-double-conversion.o)
ghc.exe: panic! (the 'impossible' happened)
  (GHC version 7.8.3 for i386-unknown-mingw32):
        loadObj "dist\\build\\cbits\\hs-double-conversion.o": failed

possible related: http://stackoverflow.com/a/13333029
I know, this is not minghc specific but I want to note that this problem still exists (and because I hoped a bit minghc could solve this for me;)). And maybe it makes someone aware of this problem again? This currently blocks me to use my project on the windows platform.
But is there a way to include this custom script from stackoverflow into this minghc, if it makes sense in general and is not to specific.

I don't think @snoyberg or I are being much help here. Our best guess is it's a Cabal issue or a double-conversion issue, so I suggest you try one of their bug trackers.


Problem on Android while compressing

Hello again,
Here are the logs from my Android device using the same code as in IOS :
E/Compressor(27830): java.lang.IllegalStateException
E/Compressor(27830): 	at android.media.MediaExtractor.getSampleTrackIndex(Native Method)
E/Compressor(27830): 	at com.abedelazizshe.lightcompressorlibrary.compressor.Compressor.start(Compressor.kt:242)
E/Compressor(27830): 	at com.abedelazizshe.lightcompressorlibrary.compressor.Compressor.compressVideo(Compressor.kt:160)
E/Compressor(27830): 	at com.abedelazizshe.lightcompressorlibrary.VideoCompressor$startCompression$2.invokeSuspend(VideoCompressor.kt:114)
E/Compressor(27830): 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/Compressor(27830): 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
E/Compressor(27830): 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
E/Compressor(27830): 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
E/Compressor(27830): 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
E/Compressor(27830): 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

What may be causing this please ?

@Tom3652 thank you for opening this issue. I'd appriciate if you can share a sample video with me that is having this issue. It seems audio or video track is not usual.
Can you confirm if this is happening with all your videos? Sharing the device's brand could be helpfull too.
Thank you.

Hi @AbedElazizShe thanks for the reply.
No this happened actually rarely and definitely not on all videos.
I don't remember which video it was by now, but i can confirm that the video was a .mp4 and playing fine without compression.
The phone was a OPPO under Android SDK 29.


JSO regression with returned T[] arrays when T is a custom JSObject type

There is a regression in 10.0.0-SNAPSHOT: There is an issue when an JSObject type array is returned in a JSO interface called from JavaScript. TeaVM calls otji_JS_wrap on such arrays before returning, which will otji_JSWrapper_unwrap each element, but as the $js field is not present for JSObject types, the return value is an array of many undefined values: [undefined, undefined, ...]
This happened to me after upgrading from version 8.1.0.

Can you provide the code that reproduces the issue?

public interface JsTool extends JSObject { }
public class JsToolImpl implements JsTool { }

Then in some class with an exported getTools() method:
public JsTool[] getTools() {
    JsTool[] t = new JsTool[1];
    t[0] = new JsToolImpl();
    return t;
}

Calling this in JS will return [ undefined ].

@McMurat I wrote following test:
    @Test
    public void createArrayAndReturnToJS() {
        assertEquals("23,42", concatFoo(() -> new J[] {
                () -> 23,
                () -> 42
        }));
    }

    @JSBody(params = "supplier", script = "let array = supplier.get(); "
            + "return array[0].foo() + ',' + array[1].foo();")
    private static native String concatFoo(JArraySupplier supplier);

    interface JArraySupplier extends JSObject {
        J[] get();
    }

    interface J extends JSObject {
        int foo();
    }

and it passes. What am I doing wrong?

@konsoletyper Thank you very much for your feedback.
Okay, that's interesting that it works when using the JSBody annotation here. I created a minimal example project to reproduce the issue for you:
package org.example;

import org.teavm.jso.JSBody;
import org.teavm.jso.JSObject;

public class Main {
    @JSBody(params = {"provider"}, script = "initializeContent(provider);")
    static native void initializeContent(JsProvider provider);

    public static void main(String[] args) {
        initializeContent(new JsProviderImpl());
    }
}

class JsProviderImpl implements JsProvider {
    @Override
    public JsTool[] getTools() {
        return new JsTool[] { new JsToolImpl() };
    }
}

interface JsProvider extends JSObject {
    JsTool[] getTools();
}

interface JsTool extends JSObject {}
class JsToolImpl implements JsTool {}

and here is the HTML/JS:
<html>
<head>
    <title></title>
    <script src="build/generated/teavm/js/TestTeaVM.js"></script>
    <script>
        window.initializeContent = (provider) => {
            const tools = provider.getTools();
            console.log(tools);
        };
        main();
    </script>
</head>
<body></body>
</html>

and the gradle build.gradle (groovy):
plugins {
    id 'java'
    id "war"
    id "org.teavm" version "0.9.0"
}

group = 'org.example'
version = '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

teavm.js {
    addedToWebApp = false
    obfuscated = true
    mainClass = "org.example.Main"
    entryPointName = "main"
    outOfProcess = true
}

dependencies {
    implementation teavm.libs.jso
}

When running this example in the browser, you will get [undefined] in  the console. Using the developer tools will also confirm that this is indeed the value undefined and not just a string "undefined". This issue ís already present in 0.9.0, so i am stuck with 0.8.1 at the moment.

The difference between your test and mine was in using lambdas. This should not be the case, but somewhere after 0.9.0 I broken mechanism that processes invokedynamics before running JSO transformations. With classes instead of lambdas I can reproduce this issue in my tests.

Your commit "JS: fix unwrapping JS objects implemented in Java" fixed the issue for me. But i noticed that the compiled js file size in obfuscated mode is nearly 2x larger than the one which TeaVM 0.8.1 (or 0.9.0 ) was generating. Are there any recent changes which could cause this?


Ignore configuration files for Calabash in . and ~/.

It seems that https://github.com/daisy/xproc-maven-plugin/commit/91a9c913b8ca49f4470970d798f307ab8d5f11f7 hasn't fixed it for @josteinaj.
See also:

https://github.com/daisy/xproc-maven-plugin/issues/2
https://github.com/daisy/xproc-maven-plugin/issues/9

Note that commit https://github.com/daisy/xproc-maven-plugin/commit/91a9c913b8ca49f4470970d798f307ab8d5f11f7 only changed xproc-engine-calabash. It's more likely that the problem Jostein is experiencing is due to xproc-engine-daisy-pipeline because that is used in most tests.


Stable diffusion txt2image.py with dtype=float16 generates PNGs with all zero values.

I'm trying to run Stable diffusion txt2image.py with float16 dtype on M1 8GB iMac, since float32 dtype requires more than 8 GB memory. I modified this line of code https://github.com/ml-explore/mlx-examples/blob/e9b32747b424468eabb5a7f0609f275637e1a0c3/stable_diffusion/txt2image.py#L26 into the following:
sd = StableDiffusion(float16=True)

I run it with the following command line:
python3 txt2image.py "A photo of an astronaut riding a horse on Mars." --n_images=1

The execution finishes and produces a 512x512 PNG file 'out.png'.
However, the generated PNG has no content and is fully black. Inspecting the file shows that it contains only zeros. Does the Stable diffusion model work with float16 dtype?  Thanks!

Hm it seems indeed to be the case. This needs some investigation so it won't be a quick fix unfortunately.

Thanks for looking into this!
The zeros in the result are due to nan values. I chased down a bit where nan starts to show up, and so far there are two sources of nan:

https://github.com/ml-explore/mlx/blob/95b5fb8245c776d63342e96f387fa01eb84b4492/python/mlx/nn/layers/transformer.py#L107, the hard coded -1e9 is outside of the float16 range, and it causes the returned mask to have nan immediately. The comment above the line actually points out this exactly issue.

The second issue is due to the GroupNorm layer in the UnetBlock2D. In my test, the following GroupNorm layer produces the first nan value at the beginning of the third upblock in the unet.

https://github.com/ml-explore/mlx-examples/blob/e9b32747b424468eabb5a7f0609f275637e1a0c3/stable_diffusion/stable_diffusion/unet.py#L138
This is likely due to the calculation of mx.var, which can be too large for float16. One way to improve the situation is to use float32 for mx.var internally in the GroupNorm (and potentially other normalization layers).

float16 is messed up (https://github.com/ml-explore/mlx/issues/483)
when reshape is done on some values, they might end up different. like mentioned in the issue above.
did you try with bfloat16?

regarding the GroupNorm, I've tried to match outputs from pytorch code and from the mlx code, even with float32 it gives different results.
sapmle:
import mlx.core as mx
import torch
import mlx.nn as nn
import numpy as np

N, C, X = 1, 4, 1
a_np = np.random.normal(size=(N, X, C))

a_mx = mx.array(a_np, dtype=mx.float32)
norm_num_groups, pytorch_compatible = 2, True
gnorm = nn.GroupNorm(norm_num_groups, C, pytorch_compatible)
b_mx = gnorm(a_mx)

a_torch = torch.tensor(a_np, dtype=torch.float32)
gnorm_torch = torch.nn.GroupNorm(norm_num_groups, C)
b_torch = gnorm_torch(a_torch.reshape(N, C, X))
print(np.allclose(b_torch.detach().numpy(), np.array(b_mx, copy=False)))
# Output: false

I didn't try bfloat16, but I think bfloat16 would be even worse because it uses even less bits for significant digits.
Regarding to matching PyTorch GroupNorm on float32, the results are actually close, so if you give a larger tolerance value it should work. I got float16 GroupNorm to be "close" to PyTorch with really large tolerance (5e-3). I think this is probably okay for inference. For this to work, the GroupNorm has to use float32 internally, otherwise it will overflow when calculating mx.var (and probably mx.mean).
This is the approach taken by the update of the example code, which seems to work now. See https://github.com/ml-explore/mlx-examples/commit/3a9e6c3f701baa2ab2745dd7641cec003024e7ed#diff-8e457d43b158ae71a0cbd888339296a6682608cc38b89581cf24e3464f3464ed, esp. lines like https://github.com/ml-explore/mlx-examples/blob/c68aa3c7c381b39a563a9102c5925f9d3b1523a8/stable_diffusion/stable_diffusion/unet.py#L113 which lifts to float32 when doing GroupNorm. This seems to work.


[Feature] Trigger lane or other command on app status change

A way to trigger scripts (in particular lanes) if the app review status changes.
e.g.

Send an email to customers when app was released
Post on Facebook, a new version is available
Post on Slack the update was rejected

Since I now know how to access the app status via JSON API, it should be possible.
The script has to run in the background and refresh the app status every other minute.

this sounds good, Hipchat integation would be answsome as well

Hipchat is already integrated :wink: https://github.com/KrauseFx/fastlane/blob/master/docs/Actions.md#hipchat

Closed for now


Transfer bug

So this may just be an issue due to the way WebRTC works, not sure, but when using my phone as a hotspot and connected to it I cannot share files between my phone and computer.  I see the psudo name show up and start to send a file, but the blue dot just keeps going forever.
I could see where the routes could get confused because essentially my phone acts a router and NATs traffic.  To be more precise, I'm using the PdaNet app.  Can provide any debug logs needed.
Thanks!

Hopefully this will help you out.  If my redactions made it impossible to diagnose, let me know and we'll work something out.
Computer over LAN

Android over LAN

Same exact connection, same IP, no changes, using the URL:
Computer using URL

Android using URL

The problem appears to be solved now.  Closing.


fix windows io check

What does this PR do?
Fixes a bug that would, on windows, make the io check report metrics for the C: drive only.
The bug was introduced in this PR https://github.com/DataDog/datadog-agent/pull/1149 and was present since 6.0.
Motivation
Support case.

Going to steal your thunder @arbll! Merging!


Cannot stop container-management service

Describe the bug
I have run the latest 0.0.6 image for x86_64 and am not able to restart (nor stop) the container-management service in order to pick up some changes I made in some deployment manifest files.
To Reproduce
Steps to reproduce the behaviour:

start up leda image in QEMU
log in as root
wait for systemctl status container-management to indicate that the service is up and running
restart the service using systemctl restart container-management
wait forever ...

Expected behaviour
container-management service stops and restarts after a few seconds
Leda Version (please complete the following information):

Version: 0.0.6 as downloaded from GitHub releases
Machine: qemux86_64
Connectivity: transparent internet access

I have witnessed the same or a similar problem on Raspberry Pi: systemctl restart container-management would hang indefinitely. In that case, the device was under heavy load and running on a possibly broken SD-Card (CRC errors when trying to back it up).
We were using a Kuksa.VAL Seat Service example container reconfigured with physical CAN-Bus access, host networking and in privileged mode. It's unclear what the root cause was, but we could not properly shut down the system any more. The Kanto container-management socket interface was not coming up any more (hence, kantui and kanto-cm were not able to connect to the container-management daemon).
Also stopping the service did not properly work either.
The file /run/container-management/netns/default was locked, but unsure whether this is related.


Validate Jira connection right on client creation

Sometimes we get Unauthorized status code in our triage tickets creation / edit:
WARNING    JiraError HTTP 401 url:
https://issues.redhat.com/rest/api/2/issue/AITRIAGE-2848/comment

It should be a good idea to validate credentials right when creating the Jira client either way, and by some empiric testing it seems to also solve this kind of flake.

/cc @eliorerz

/hold
(testing)

/unhold
worked


updated html to follow semantics and h4 header to be sequential, fixe…

…d navbar to top for fun

all set


plz give me crack of this software (https://mt2iq.com/)

<EMAIL_ADDRESS>

Sorry, we can't help you with this!


MicroProfile 7.0 Home page update

Will this be extracted from the blog or we need separate copy?
If a separate copy is needed then ... here we go ...
MicroProfile 7.0 is a major release that introduces significant changes, notably replacing MicroProfile Metrics with the more comprehensive MicroProfile Telemetry 2.0.  Additionally, it specifies Jakarta EE 10 Core Profile as a dependency, simplifying integration. This release also includes updates to several specifications, and allows certification on Java SE 11 and higher.

done


Highlight scan barcodes for better UX

While scanning barcodes, it is possible to retrieve a barcode object with either boundingBox for Android or cornerPoints for iOS.
With these properties, it seems possible to get the right positioning of the barcode in order to highlight it for better user experience.
For instance, while scanning multiple barcodes, it can be useful to add an emoji or show the borders of the barcodes already scanned.
The issue is that I am not able to display correctly the borders of scanned barcodes.
I am trying to adapt boundingBox and cornerPoints to use these values in a more classic way to display absolute elements with left and top properties but it does not fit perfectly with the real barcode borders.
Is there a way to use boundingBox or cornerPoints correctly ?
See below an example to reproduce this issue and an example of cornerPoints value.
import React, {useEffect, useState} from 'react';
import {
  View,
  Text,
  StyleSheet,
  PixelRatio,
  Platform,
} from 'react-native';
import {Camera, useCameraDevices} from 'react-native-vision-camera';

import {Colors} from 'react-native/Libraries/NewAppScreen';
import {BarcodeFormat, useScanBarcodes} from 'vision-camera-code-scanner';

const styles = StyleSheet.create({
  outer: {
    ...StyleSheet.absoluteFillObject,
    backgroundColor: Colors.darker,
    flex: 1,
  },
});

const SquareFromCoord = ({barcode}) => {
  let bottom;
  let left;
  let right;
  let top;

  const pixelRatio = PixelRatio.get();
  if (Platform.OS === 'ios') {
    const xArray = barcode.cornerPoints.map(corner => parseFloat(corner.x));
    const yArray = barcode.cornerPoints.map(corner => parseFloat(corner.y));

    left = Math.min(...xArray) / pixelRatio;
    right = Math.max(...xArray) / pixelRatio;
    bottom = Math.max(...yArray) / pixelRatio;
    top = Math.min(...yArray) / pixelRatio;
  } else {
    // Other similar logic for Android
  }

  return (
    <View
      style={{
        backgroundColor: 'rgba(0, 255, 131, 0.8)',
        borderRadius: 10,
        height: bottom - top,
        opacity: 0.8,
        width: right - left,
        position: 'absolute',
        left,
        top,
      }}
    />
  );
};

export const RnCamera = () => {
  const devices = useCameraDevices();
  const device = devices.back;

  const [frameProcessor, barcodes] = useScanBarcodes([BarcodeFormat.QR_CODE]);

  const [permissions, setPermissions] = useState(false);

  const handlePermission = async () => {
    const cameraPermission = await Camera.getCameraPermissionStatus();
    if (cameraPermission !== 'authorized') {
      const askPermissionRes = await Camera.requestCameraPermission();
      setPermissions(askPermissionRes === 'authorized');
    } else {
      setPermissions(true);
    }
  };

  useEffect(() => {
    handlePermission();
  }, []);

  if (!device || !permissions) {
    return <Text>Loading</Text>;
  }

  return (
    <View style={styles.outer}>
      <Camera
        style={StyleSheet.absoluteFill}
        device={device}
        isActive={true}
        enableZoomGesture
        frameProcessor={frameProcessor}
        frameProcessorFps={5}
      />
      {barcodes.map((barcode, idx) => (
        <SquareFromCoord key={idx} barcode={barcode} />
      ))}
    </View>
  );
};

Example of cornerPoints while scanning a QR code with an iPad Air 2 (window dimensions = 677:335) :
"cornerPoints": [{"x":<PHONE_NUMBER>4453125, "y":<PHONE_NUMBER>664062}, {"x":<PHONE_NUMBER>332031, "y":<PHONE_NUMBER>679688}, {"x":<PHONE_NUMBER>3046875, "y":<PHONE_NUMBER>359375}, {"x":<PHONE_NUMBER>830078, "y":<PHONE_NUMBER>34375}]

It works realy great, thanks a lot @kirill3333 !
i'm surprised that this relation isn't describe in any documentation

@saajuck this is because your screen size is different from the size of the image you are sending to process. I am pretty sure the frame processor shouldn't know about screen size.

Hello,
Is it possible to get an example. I was trying to use your code but it doesn't work on my side.

Unfortunately it's more complex than the current given solutions as it actually depends on the camera view size (that can be equal to the window when in fullscreen), and there is also some cropping after the resize that you have to take into account to setup proper offsets.
Currently working on a solution that covers all cases, @rodgomesc would you be interested in a PR adding this highlight feature?

Would be great! @mgcrea

@mgcrea Any news on this? Also, wouldn't it make sense to use animated components from Reanimated for the bounding boxes?

For android and ios
i use fork of this lib: https://github.com/rematocorp/vision-camera-code-scanner.git
to get frameWidth, frameHeight
and in my javascript:
const SCAN_WIDTH = 200;

const scanBound = {
  height: SCAN_WIDTH,
  width: SCAN_WIDTH,
  x: (Screen.width - SCAN_WIDTH) / 2,
  y: (Screen.height - SCAN_WIDTH) / 2,
};

const aabb = (barcode, frameWidth, frameHeight) => {
  try {
    const { cornerPoints } = barcode;

    const frWidth = Math.min(frameHeight, frameWidth);
    const frHeight = Math.max(frameHeight, frameWidth);

    const xRatio = frWidth / Screen.width;
    const yRatio = frHeight / Screen.height;

    const xArray = cornerPoints.map(corner => parseFloat(corner.x));
    const yArray = cornerPoints.map(corner => parseFloat(corner.y));

    const left = Math.min(...xArray);
    const right = Math.max(...xArray);
    const bottom = Math.max(...yArray);
    const top = Math.min(...yArray);

    const x = left / xRatio;
    const y = top / yRatio;
    const w = (right - left) / xRatio;
    const h = (bottom - top) / xRatio;

    return (
      cornerPoints.length === 4 &&
      scanBound.x <= x &&
      scanBound.x + scanBound.width >= x + w &&
      scanBound.y <= y &&
      scanBound.y + scanBound.height >= y + h
    );
  } catch (error) {
    return false;
  }
};

Depending on your layout, a more robust approach is to use layout dimensions instead of window dimensions (e.g. when you use it with safe area etc)
<Camera         style={StyleSheet.absoluteFill}         device={device}         isActive={true}         frameProcessor={frameProcessor}         frameProcessorFps={5}         onLayout={(event) => {           var {x, y, width, height} = event.nativeEvent.layout;           setWidth(width)           setHeight(height)         }}       />


Fix for CVE-2976 + add CVE checker

Description
This PR will fix the remaining base branch CVE which requires an update to checkstyle's version, and also add a plugin that can be ran using this command:
./gradlew java-client:dependencyCheckAnalyze
This plugin checks all dependencies in Gradle and will let you know of any CVE's that exist.
An example run before the fix:
Checking for updates and analyzing dependencies for vulnerabilities
Generating report for project java-client
Found 3 vulnerabilities in project java-client

One or more dependencies were identified with known vulnerabilities in java-client:

guava-31.0.1-jre.jar<EMAIL_ADDRESS>cpe:2.3:a:google:guava:31.0.1:*:*:*:*:*:*:*) : CVE-2023-2976, CVE-2020-8908
jackson-databind-2.15.2.jar<EMAIL_ADDRESS>cpe:2.3:a:fasterxml:jackson-databind:2.15.2:*:*:*:*:*:*:*) : CVE-2023-35116

After the fix:
Checking for updates and analyzing dependencies for vulnerabilities
Generating report for project java-client
Found 1 vulnerabilities in project java-client

One or more dependencies were identified with known vulnerabilities in java-client:

jackson-databind-2.15.2.jar<EMAIL_ADDRESS>cpe:2.3:a:fasterxml:jackson-databind:2.15.2:*:*:*:*:*:*:*) : CVE-2023-35116

Issues Resolved
CVE-2976
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Let's add this to CHANGELOG, e.g. "Fix: CVE-..."

Thanks dblock, I just updated changelog.


Build Xamarin.iOS: Failure of "'OutputPath' property is not set for this project" with custom Build Configuration on xBuild

we have a custom build configuration in our VS solution and it builds fine on local VS + local Mac Build Agent, but got below error with VSTS Build Xamarin.iOS task.  Is the custom build configuration not supported or any special configuration we should do on VSTS task?
"Target ResolveProjectReferences:
Project "/Users/dev1/myagent/_work/1/s/AAA.Core.PCL/BBB.Core.PCL.csproj" (default target(s)):
Target _CheckForInvalidConfigurationAndPlatform:
/Library/Frameworks/Mono.framework/Versions/4.6.2/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets: error : 'OutputPath' property is not set for this project. Usually this is caused by invalid Configuration/Platform combination. Original values: Configuration: Release_AAABBB Platform: iPhone.
Task "Error" execution -- FAILED"

this is not a bug. in the Build Xamarin.iOS task, the Solution property should be the .sln file instead of the ios .proj file and since my mac didn't have android sdk installed I added a iOS only .sln and fixed the issue
reference: https://bugzilla.xamarin.com/show_bug.cgi?id=25480

I had the same issue and added an Or condition to the release property group in the PCL project:
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' Or '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">

@campersau Thank you, this solved my problem as well! (I have extra PCL-code I download in a post-build script)


🥴🚎 Added reactive-water example

also allows setting opacity
note: if you try to create multiple of these, then you'll probably run into issues, would need to declare multiple shaders and right now they'll likely collide? haven't tried.

(would be easy to fix, just don't anticipate a need for that right now.)


[2023.05.1-base] CI fixes and other housekeeping

Description
CI fixes and other housekeeping of current master branch.
Todos

[x] changing the sphinx link checker to linkinator
[x] adjust notebooks to new pandas new representation string
[x] fixing T018
[x] rerun all notebooks https://github.com/volkamerlab/teachopencadd/pull/355

[x] check appearance for occurences of rdkit molecules in pandas dataframes
[x] check all notebooks for warnings, e.g. deprecations

[x] Fingerprint generation changes (redundant work in #330 and #348)
[ ] #360

[ ] #361

Status

[ ] Ready to go

Current CI failure due to a 500 HTTP code. Maybe this works again soon.


SER-82

Setting up new DB user and DB connection. Includes a test to verify to connection

Closing in favour of #450


Enable setInvalidatedByBiometricEnrollment

Using a key with setInvalidatedByBiometricEnrollment means that the key must be initialized in a Cipher object at the time when the biometric prompt is called. When the authentication is successful, only one cryptographic operation is allowed with the key.
The changes in the code are also mainly around initializing the Cipher object in the biometric prompt and passing it further as a parameter.
There is a curious behaviour of the invalidating:
N...number of current fingerprints
ADDING fingerprint (N -> N+1):

key invalidated -> directly Passcode screen without biometry displayed
user can reenable biometry (new key) with the existing biometry settings (N+1 fingerprints)

REMOVING fingerprint (N -> N-1):

decryption starts but ends with IllegalBlockSizeException, prompt for the fingerprint is also displayed first and reading of fingerprint fails, the user stays on the Passcode screen without biometry displayed
user can reenable biometry (new key) ONLY after adding (not deleting) a new fingerprint to the existing biometry settings (user must return to the N fingerprints) OR disable all fingerprints and create a new one.  In the N-1 fingerprints environment, it is possible to create a new key, but it fails for the initial encryption of the passcode with the IllegalBlockSizeException.

I haven't read it yet, but are we 100 % sure that it won't have any impact on current users?

I haven't gone through it yet, but are we 100 % sure that it won't have any impact on current users?

Good point, it will probably not work for updates. We should test it, but I am not sure how to do it. But as it is a fix for pentest non-compliance, we should find a way.


Add IFC Specifications to search

Search has been designed so far to look at the website content. It would be nice if it could also query the existing IFC reference documentation too.

An idea would be to use google custom search to search specific pages on the site similar to docker docs


UserSettings Macro

Volume.
Chat Bubbles and Pan.

modifyDefaultVolumes should work as in dnd5e, still should be tested.
globalPlaylistVolume should work as in dnd5e, still should be tested.
globalAmbientVolume should work as in dnd5e, still should be tested.
globalInterfaceVolume should work as in dnd5e, still should be tested.
chatBubbles has not been tested yet.
chatBubblesPan has not been tested yet.

Seems to work, needs testing.

Saving volumes seems to work as expected. With testing with incognito windows the chat bubbles behaved strangely, though. Maybe there is something wrong with testing with incognito windows I am missing. Need to test that in a real multi-user environment if we care.


ENHANCEMENT: Make Publication Placard easier to use

EPIC: As a user, I want to find this resource so I can use it for my (personal, professional) purposes.

It would be nice if we could order the results by date as users will usually start at the top and work their way down, and they usually want something more recent. Science Example. Sent via feedback 5/10/2022

If you do a search for a title and find it in Publication Finder, it would be nice if clicking on the title in Publication Finder went directly to the resource. This enhancement would need to come after the first one so that users could go to the most recent version. Sent via feedback.

Could results in Publication Finder and the Reference Card be tied to source type and peer-reviewed? That way a reference card wouldn't display when peer-reviewed or academic journal is selected, and a streaming video wouldn't show when books are selected.

I am not sure how the Publication Placard full text access lists are ordered, it seems to be alphabetical? Would we be able to order them by date so that collections that go to the present show first? Example, I am looking at the publication placard for science, and the link to the site access (which has 1949 to present) comes after two collection with a range of 1988 - 2005. Shouldn't it come first so users can get to it faster?

Enhancement Request: HM notes to appear in placards. SI 1458384

Enhancement Request: Increase Custom Placard Limit to Beyond 10. ER 1733524 Increase maximum number of custom placards.


Fix lle data

Started a new branch to deal with conflicts. Same as #128 but the branch is now properly at the HEAD

Current coverage is 70.60% (diff: 84.67%)

Merging #132 into master will increase coverage by 2.44%

@@             master       #132   diff @@
==========================================
  Files            74         77     +3
  Lines          7699       8056   +357
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           5248       5688   +440
+ Misses         2451       2368    -83
  Partials          0          0

Powered by Codecov. Last update 104273f...8a954bf


Remove promptui library and calls

We use https://github.com/manifoldco/promptui in this project which seems to be abandoned. We should probably replace this code with something else.

https://github.com/search?q=repo%3Aequinix%2Fmetal-cli+"github.com%2Fmanifoldco%2Fpromptui"&type=code

Closed via #407
Along the way, #399 started an exploration into using more advanced UI toolkits including TUIs which could be part of an answer to #52.


Irish TN

What does this PR do ?
Add a one line overview of what this PR aims to accomplish.
Before your PR is "Ready for review"
Pre checks:

[ ] Have you signed your commits? Use git commit -s to sign.
[ ] Do all unittests finish successfully before sending PR?

pytest or (if your machine does not have GPU) pytest --cpu from the root folder (given you marked your test cases accordingly @pytest.mark.run_only_on('CPU')).
Sparrowhawk tests bash tools/text_processing_deployment/export_grammars.sh --MODE=test ...

[ ] If you are adding a new feature: Have you added test cases for both pytest and Sparrowhawk here.
[ ] Have you added __init__.py for every folder and subfolder, including data folder which has .TSV files?
[ ] Have you followed codeQL results and removed unused variables and imports (report is at the bottom of the PR in github review box) ?
[ ] Have you added the correct license header Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. to all newly added Python files?
[ ] If you copied nemo_text_processing/text_normalization/en/graph_utils.py your header's second line should be Copyright 2015 and onwards Google, Inc.. See an example here.
[ ] Remove import guards (try import: ... except: ...) if not already done.
[ ] If you added a new language or a new feature please update the NeMo documentation (lives in different repo).
[ ] Have you added your language support to tools/text_processing_deployment/pynini_export.py.

PR Type:

[X] New Feature

If you haven't finished some of the above items you can still open "Draft" PR.

Hi @jimregan, just checking if this PR is still WIP or ready for review?

Still WIP. There are some oddities in Irish numbers -- two different forms that correspond with cardinals in English, parts of numbers that go before the noun and others that go after, etc. This is very much a hobby project, I don't expect to have time to work on it until the Christmas break.


edit Define the Head and Body of an HTML Document challenge so it must contain

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Closes #35757

@sil3nthill Please see my comments in the other PR (https://github.com/freeCodeCamp/freeCodeCamp/pull/35826) you closed.  Please do not create another PR without testing it locally first.

@sil3nthill Please see my comments in the other PR (https://github.com/freeCodeCamp/freeCodeCamp/pull/35826) you closed.  Please do not create another PR without testing it locally first.

Closing this PR so you can reopen your original one (https://github.com/freeCodeCamp/freeCodeCamp/pull/35826)


Discrepancy in Sequential model example in the documentation

The dimension of the input does not align with the model described in the documentation here: https://keras.io/getting-started/sequential-model-guide/
Changing the dim too 784 or the data input to 100 solves this.
Kind regards,
Theodore.

Please send a PR to fix it
On Mar 14, 2017 22:02, "TheodoreGalanos"<EMAIL_ADDRESS>wrote:

The dimension of the input does not align with the model described in the
documentation here: https://keras.io/getting-started/sequential-model-
guide/
Changing the dim too 784 or the data input to 100 solves this.
Kind regards,
Theodore.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fchollet/keras/issues/5779, or mute the thread
https://github.com/notifications/unsubscribe-auth/AArWb1odan2Zs2DSsWFzPvdMAWt9KgnDks5rl3DZgaJpZM4MdfGM
.

@TheodoreGalanos Thank you for your report. Please close this issue.

@nzw0301 Sorry I was at work. Also apologize for not sending a PR, I'm still a GitHub noobie!
Kind regards,
Theodore.


[Fix][UI] Display the result page when the DB page has no data.

Purpose of the pull request
close #10297

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

Codecov Report

Merging #10298 (9c357b0) into dev (12a09f6) will increase coverage by 0.00%.
The diff coverage is n/a.

:exclamation: Current head 9c357b0 differs from pull request most recent head 7227b8b. Consider uploading reports for the commit 7227b8b to get more accurate results

@@            Coverage Diff            @@
##                dev   #10298   +/-   ##
=========================================
  Coverage     41.14%   41.15%
- Complexity     4771     4772    +1
=========================================
  Files           857      857
  Lines         34659    34659
  Branches       3828     3828
=========================================
+ Hits          14261    14263    +2
+ Misses        19024    19019    -5
- Partials       1374     1377    +3

Impacted Files
Coverage Δ

...er/master/dispatch/host/assign/RandomSelector.java
77.77% <0.00%> (-5.56%)
:arrow_down:

...e/dolphinscheduler/remote/NettyRemotingClient.java
53.52% <0.00%> (+1.40%)
:arrow_up:

...org/apache/dolphinscheduler/remote/utils/Host.java
40.00% <0.00%> (+2.22%)
:arrow_up:

Continue to review full report at Codecov.

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


enable static binary release

trying to fix https://github.com/cloudson/gitql/issues/81
Some changes were made to the building process. I use a custom docker image (docker.io/navigaid/osxcross) to do all the cross compilation. The release process is now fully automated.
If one wants to build natively without docker, simply run ./static_build.sh. Note that ./static_build.sh assumes go1.13beta1 or higher is installed, and your host environment is linux/amd64
This is what the end result should look like:

https://travis-ci.org/navigaid/gitql/builds/567136244
https://github.com/navigaid/gitql/releases/tag/v1.7.0

In the most recent commit, I reduced the travis build script to a single line of command
...
env:
- TARGET_OS_ARCH=linux/amd64
- TARGET_OS_ARCH=darwin/amd64
- TARGET_OS_ARCH=windows/amd64
- TARGET_OS_ARCH=windows/386

script: docker run -it -v $PWD:$PWD -w $PWD navigaid/osxcross bash -c "make test && make TARGET_OS_ARCH=${TARGET_OS_ARCH} build"
...

When I test it locally, all the TARGET_OS_ARCHs work fine. But on travis ci it couldn't make it pass the go test step, all build targets failed with error message like this:
+ go test -tags static -count=1 . ./lexical/ ./parser/ ./semantical ./runtime
ok  	github.com/cloudson/gitql	0.004s
ok  	github.com/cloudson/gitql/lexical	0.014s
ok  	github.com/cloudson/gitql/parser	0.016s
ok  	github.com/cloudson/gitql/semantical	0.003s
object not found - no match for id (07ffa6c3751984d6a96b11ca3fa8af7d3f353731)object not found - no match for id (07ffa6c3751984d6a96b11ca3fa8af7d3f353731)object not found - no match for id (07ffa6c3751984d6a96b11ca3fa8af7d3f353731)object not found - no match for id (07ffa6c3751984d6a96b11ca3fa8af7d3f353731)object not found - no match for id (07ffa6c3751984d6a96b11ca3fa8af7d3f353731)object not found - no match for id (07ffa6c3751984d6a96b11ca3fa8af7d3f353731)--- FAIL: TestWhereLike (0.00s)
    commits_test.go:91: Expecting 1 row. Got 0 rows
object not found - no match for id (07ffa6c3751984d6a96b11ca3fa8af7d3f353731)--- FAIL: TestNotEqualsInWhereLTGT (0.00s)
panic: runtime error: index out of range [0] with length 0 [recovered]
	panic: runtime error: index out of range [0] with length 0
goroutine 25 [running]:
testing.tRunner.func1(0xc0000d6700)
	/usr/lib/go/src/testing/testing.go:874 +0x3a3
panic(0x6c2300, 0xc0000b6300)
	/usr/lib/go/src/runtime/panic.go:663 +0x1b2
github.com/cloudson/gitql/runtime.TestNotEqualsInWhereLTGT(0xc0000d6700)
	/home/travis/build/cloudson/gitql/runtime/commits_test.go:98 +0x2b9
testing.tRunner(0xc0000d6700, 0x6e8dc0)
	/usr/lib/go/src/testing/testing.go:909 +0xc9
created by testing.(*T).Run
	/usr/lib/go/src/testing/testing.go:960 +0x350
FAIL	github.com/cloudson/gitql/runtime	0.021s
FAIL
make: *** [Makefile:18: test] Error 1
The command "docker run -it -v $PWD:$PWD -w $PWD navigaid/osxcross bash -c "make test && make TARGET_OS_ARCH=${TARGET_OS_ARCH} build"" exited with 2.

https://travis-ci.org/cloudson/gitql/builds/569635129
I can't figure out what it is that causes the problem. Can you reproduce this error locally? @jsixface @cloudson
I want to know if it is just me or everyone. If travis ci is to blame then it might be a good point of time to give GitHub Actions a try https://news.ycombinator.com/item?id=20646350

Found the issue.
git clone --depth=50 https://github.com/cloudson/gitql.git cloudson/gitql

object not found - no match for id (07ffa6c3751984d6a96b11ca3fa8af7d3f353731)--- FAIL: TestNotEqualsInWhereLTGT (0.00s)
panic: runtime error: index out of range [0] with length 0

This commit is not there in the cloned copy since it cloned only up to depth 50. If you clone the entire repo, the build will run fine.

Maybe I should run git fetch --unshallow before the test step.

Yes. That would work too.

Hey @navigaid . Thanks for all the effort. I see that based on your changes on travis, all the tests are passing and that's awesome. We can merge it, I just would like to double check with you, some points that we need to update in the repository after that:

Automatically generate the binary files on travis: Need to replace your private key by my own. I don't see it as a blocker so we can do it after merge.
Documentation; I need to remove the build steps of the documentation since the latest versions would be available to download instead compile manually.
Docker image; to build the binaries you have used your own docker image. Can we have the dockerfile of it's image in the repository? It provides trustful for the users?
I didn't understand why make test depends of the compilation. There are just unit tests for now. I think that I will change it soon and try to have diffferent jobs on travis (build, tests, release).

Did I miss anything? What do you think about these topics?


Ionic, SSL error when testing in iOS simulator

Hello, I am facing an issue when deploying an Ionic app in the iOS simulator (or in a real iPhone device).
While my app can fetch data from Firebase in a web browser (even in Safari mobile), trying to do the same thing once the app is built will output the following error (in Safari debug console) :
Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made.

As this is my first experience with Ionic, I can't say for sure this has to do with Firebase but I don't really know where else to look for a solution. Maybe someone here had a similar issue before ...
I created a minimalist Ionic app which reproduce this behavior, it's available here : https://github.com/aubm/ionic-firebase-test
Thanks in advance for helping ...
Cordova version : 5.3.3
Ionic version : 1.7.4
Node version : v0.10.40

Your app worked fine for me.
I was running Node 4.1.2, on OSX.
$ git clone your-repo
$ cd your-repo
$ npm install
$ npm install -g cordova ionic ios-sim
$ ionic platform add ios
$ ionic build ios
$ ionic emulate ios

I can't tell why, but uninstalling the app before rebuilding it again in the simulator made it work again. Sorry for the trouble ...


Allow vm.$watch signature similar to watch property

What problem does this feature solve?
I was running into an issue when using this.$watch instead of, what I'm usually doing, using a property within the watch object.
I tried the following signature as this is what I was accustomed:
{
    mounted() {
        if (!this.someTest) {
            return;
        }

        this.$watch('prop', {
            handler() {
                console.log('triggered!');
            },
            immediate: true,
            deep: true,
        });
    },
}

instead of
this.$watch('field', function() {
        console.log(`[${ this.field.id }] Watcher triggered!`);
        this.updateVal();
    }, {
    immediate: true,
    deep: true,
});

Is there a reason that this signature is not supported?
What does the proposed API look like?
this.$watch('prop', {
    handler() {},
    immediate: true,
    deep: true,
});

There's no specific design decision behind this - it's just a common way of setting up such a function's arguments.
I can understand that similar API may seem intriguing, but personally I don't think that both API's need to be the same - one is a function call, the other is a config object, it's ok that they are different, and the API docs clearly document this.
Changing the syntax would be a breaking change that's not justified, and supporting both would add bloat to the codebase that is still not justified just by the comfort of a more similar API.

I understand. Would you agree that adding a warning would be appropriate?


Even harder to reproduce bug, happened once only.

Happened in callbacks demo just now, after all the time it has been in existance!
Assertion from sup_retire about cbsets still being present on assert(!present)

And another, unrelated, and equally impossible to reproduce bug occuring in dyn-aabb broadphase producing an assertion failure when removing an object. more stress testing of crazy interactions moving, removing, changing object types, filters constantly whilst everything moves about, sleeping not-sleeping and can't get it to happen again :(

Second one, assertion:
An ActionScript error has occurred:
assert(obj!=null&&has(obj)) :: [ListMixin(ZPP_AABBPair] remove -> [object ZPP_AABBPair]
at zpp_nape.util::ZNPList_ZPP_AABBPair/remove()[src/zpp_nape/util/Lists.hx:13359]
at zpp_nape.space::ZPP_DynAABBPhase/broadphase()[src/zpp_nape/space/DynAABBPhase.hx:1628]
at zpp_nape.space::ZPP_Space/step()[src/zpp_nape/space/Space.hx:1796]
at nape.space::Space/step()[src/nape/space/Space.hx:288]
at MethodInfo-3507()[src/DummyNapeMain.hx:248]
at MethodInfo-4360()[/usr/share/haxe/std/haxe/Timer.hx:40]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

Second problem fixed, was to do with not removing AABBPairs from dyn-aabb broadphase when removing a shape, if that shape happened to have pairs which were sleeping (fairly rare) and so not in the global pairs list.
After resolving that, problem found+fixed of not setting sleeping back to false on freeing the AABBPair.

New bug in this crazy stress test of corner cases!
An ActionScript error has occurred:
assert(o!=null&&!has(o)) :: [ListMixin(ZPP_Interactor] add -> o=[object ZPP_Body]
at zpp_nape.util::ZNPList_ZPP_Interactor/inlined_add()[src/zpp_nape/util/Lists.hx:3436]
at zpp_nape.util::ZNPList_ZPP_Interactor/add()[src/zpp_nape/util/Lists.hx:3431]
at zpp_nape.space::ZPP_Space/nullListenerType()[src/zpp_nape/space/Space.hx:2180]
at zpp_nape.callbacks::ZPP_InteractionListener/unassign()[src/zpp_nape/callbacks/Listener.hx:330]
at zpp_nape.callbacks::ZPP_InteractionListener/removedFromSpace()[src/zpp_nape/callbacks/Listener.hx:350]
at zpp_nape.space::ZPP_Space/remListener()[src/zpp_nape/space/Space.hx:1410]
at zpp_nape.space::ZPP_Space/listeners_subber()[src/zpp_nape/space/Space.hx:1300]
at nape.callbacks::ListenerList/pop()[src/nape/callbacks/ListenerList.hx:314]
at MethodInfo-3507()[src/DummyNapeMain.hx:249]
at MethodInfo-4360()[/usr/share/haxe/std/haxe/Timer.hx:40]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

Okay that wasn't a bug in nape, but rather a lack of debug build checking on correctness of cbTypes when applied to compound chains (In this case, a body, and it's compound had the same cbType)

Managed to produce original one again, forgot to use -debug so no line numbers, but not necessary given the assertion
An ActionScript error has occurred:
assert(!present) :: Arbiter::sup_retire cbsets present
at zpp_nape.dynamics::ZPP_Arbiter/sup_retire()
at zpp_nape.dynamics::ZPP_ColArbiter/retire()
at zpp_nape.space::ZPP_Space/prestep()
at zpp_nape.space::ZPP_Space/step()
at nape.space::Space/step()
at MethodInfo-2178()
at MethodInfo-2165()
at MethodInfo-4289()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

Therrre we go, bug is produced by recent changes which removed hash tables used previously.
An ActionScript error has occurred:
assert(!present) :: Arbiter::sup_retire cbsets present
at zpp_nape.dynamics::ZPP_Arbiter/sup_retire()[/home/luca/.haxenekoflash/haxelib/nape/working/zpp_nape/dynamics/Arbiter.hx:295]
at zpp_nape.dynamics::ZPP_ColArbiter/retire()[/home/luca/.haxenekoflash/haxelib/nape/working/zpp_nape/dynamics/Arbiter.hx:1530]
at zpp_nape.space::ZPP_Space/prestep()[/home/luca/.haxenekoflash/haxelib/nape/working/zpp_nape/space/Space.hx:3492]
at zpp_nape.space::ZPP_Space/step()[/home/luca/.haxenekoflash/haxelib/nape/working/zpp_nape/space/Space.hx:1804]
at nape.space::Space/step()[/home/luca/.haxenekoflash/haxelib/nape/working/nape/space/Space.hx:286]
at MethodInfo-2178()[./Callbacks.hx:252]
at MethodInfo-2165()[../common/FixedStep.hx:40]
at MethodInfo-4289()[/usr/share/haxe/std/haxe/Timer.hx:40]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

To do with Compound::breakApart

aaaand should be resolved.


Suggestion to solve the problem that variable is empty due to fix in #34

Suggestion to solve the problem that not empty string variables are saved empty due to fix in #34
:
Added the elseif with the matlab version check in savejson.m.
function txt=obj2json(name,item,level,varargin)

if(iscell(item))
    txt=cell2json(name,item,level,varargin{:});
elseif(isstruct(item))
    txt=struct2json(name,item,level,varargin{:});
elseif(ischar(item))
    txt=str2json(name,item,level,varargin{:});
elseif ~verLessThan('matlab','9.1') && isstring(item)
    % versions 2016b (9.1) and higher AND item is a string object
    % version check is necessary because function isstring existst only since 2016b

    % There's a new string class with " " syntax since 2016b (9.1) with the following characteristic:
    % isobject("String") returns true
    % isstring("String") returns true
    % ischar("String") returns false
    %
    % vs. character arrays with ' ' syntax:
    % isobject('chararr') returns false
    % isstring('chararr') returns false
    % ischar('chararr') returns true

    % Don't know if this is correct in every case:
    % convert string to char by: item{:}
    txt=str2json(name,item{:},level,varargin{:});
elseif(isobject(item))
    txt=matlabobject2json(name,item,level,varargin{:});
else
    txt=mat2json(name,item,level,varargin{:});
end

I didn't test with 2016b. Only with 2014b and 2017a

thanks @Hell3000 for the detailed comments and patch. Because octave does not have function verLessThan, so I used the isa(..,'string') to tell if the string belongs to the new class.
I tested the failed samples raised in #34, #39 and #44, now savejson works without omitting fields. Feel free to reopen if this remains an issue.
>> a=struct(); a.b={string('hi')};
>> savejson('',a)

ans =

    '{
     	"b": [
     		"hi"
     	]
     }
     '

>> data = loadjson('{"Test": ["GML", "XML"]}')

data =

  struct with fields:

    Test: {["GML"]  ["XML"]}

>> savejson('',data)

ans =

    '{
     	"Test": [
     		"GML",
     		"XML"
     	]
     }
     '


feat: azure adapts original_status and status

Summary
feat: azure adapts original_status and status
Does this close any open issues?
part of #4745
Screenshots
Include any relevant screenshots here.
Other Information
Any other information that is important to this PR.

Hello @CamilleTeruel, Can you help me review my code?


Update Get-MailboxRules.ps1

Simplified a couple of lines and fixed it so it uses Autodiscover instead of the hardcoded URL.  The output doesn't seem to be useful though. It seems the actions for client-side rules aren't exposed to Exchange. So while we can differentiate between server and client side rules, we can't tell what the client side rule is doing. Here's another way of looking at it, but it doesn't give anything useful either...
#Load EWS API 2.2 (https://www.microsoft.com/en-us/download/details.aspx?id=42951)
Add-Type -Path 'C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll'
#Securely prompt for credentials (For Proof of concept only, attacker could use plaintext to process lists of credentials)
$Credential = Get-Credential
#Specify what mailbox we're going to work with.
$Mailbox =<EMAIL_ADDRESS>#Connect to EWS with our credentials.
$EWS = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService
$EWS.Credentials = New-Object Microsoft.Exchange.WebServices.Data.WebCredentials -ArgumentList $Credential.UserName, $Credential.GetNetworkCredential().Password
#Autodiscover, there is no other, way to decide where you're mailbox is stored...
$EWS.AutodiscoverURL($Mailbox,{$true})
#Display all rules for the current mailbox.
$Rules = $EWS.GetInboxRules() | Where {$_.DisplayName -eq "OutlookPWN!"}
ForEach ($Rule in $Rules) {
Write-Host "DisplayName:" $Rule.DisplayName
Write-Host "Actions: "
$Rule.Actions | Get-Member
}

Decoding those blobs is beyond me. I couldn't tell the difference between actions on my test rule that launches an app, and my rules that move messages to a different folder, when looking at those blobs.
Searching across multiple mailboxes is fairly easy.  EWS Impersonation rights are the minimum privilege requirements (don't need full blown Exchange Admin) to access other mailboxes. See: https://msdn.microsoft.com/en-us/library/office/dn722377(v=exchg.150).aspx
I can write that piece if you can figure out how to make sense of the blobs.  Busy week for me too though. I have an Exchange lab back home, but I'm on the road this week.

Yep, I can tackle the binary blob parsing.  What version of Exchange are you testing against? The rule types might be different.  Could you open your inbox in MFCAPI and try and find the rule objects? See this link for details on how to find the rules:
I'm using Exchange 2013 (I'm testing against Office 365) and in MFCAPI all of my rules have a "Message Class" of "IPM.Rule.Version2.Message".  In addition, each rule has two properties, PR_EXTENDED_RULE_MSG_ACTIONS and PR_EXTENDED_RULE_MSG_CONDITION, that define the action/conditions.  I'm wondering if these properties are different on your version of Exchange or the the rule Message Classes (e.g. IPM.Rule.Version2.Message) are different.

O365 is not Exchange 2013. It's actually well beyond Exchange 2016 now. Some, but not all changes make their way to Exchange on-premises from O365.  My on-premises lab has both Exchange 2010 and 2013 right now, but my 2013 box is hosed.  Checking my 2010 box, it's just "IPM.Rule.Message" there.  I'll have to get my 2013 box back up and running, and add a 2016 box, and check those.
BTW you can also view the item class through EWS Editor. http://ewseditor.codeplex.com/


library functions running in the browser should not depend on fs and path

this packge install a cli tool using node and also install a library intended to be used by a browser.
we currently depend on fs and path, this will not play nice as a browser library.

@rszwajko hi, is this the issue you refereed to on slack ?

@yaacov
yes. we need to split build into browser and node parts.
The code also could be split into folders with different targets(i.e. node, browser, shared) which would allow correct linting/autocomplete. I've used this kind of structure in this PoC -> https://github.com/rszwajko/forklift-console-plugin/tree/selfhostedV3/packages/mocks/src


Fix UTF-8 in sources list in chat bubble

Replace atob function according to https://github.com/langchain-ai/langchain-nextjs-template/issues/20

Thank you!


Cannot Run AI  command

i set up api key and everything but i get NullReferenceException: Object reference not set to an instance of an object

yea i seen it i have to add credit card dam


Adding homeManager-module

This adds a home-manager module so that you can easily enable and configure bugstalker with it.

Thanks for the patch!


[WebToolsE2E][Aspire] Add Azure Key Vault to Aspire project, publish failed with 'ContainerCrashing' error: System.ArgumentNullException: Value cannot be null. (Parameter 'uriString')

INSTALL STEPS

Clean machine: Win11 x64 23h2 ENU
Install Dev17.10.0 Preview 3.0 [34730.35.d17.10] (Includes Aspire 8.0.0-preview.5.24178.3)
Install Aspire 8.0 Preview 5 [8.0.0-preview.5.24179.3]
Apply NuGet Feeds
Install Docker Dektop
Install azd

REPRO STEPS

New Project > ASP.NET Core Empty project > name it 'AspireKeyVault'> 8.0 > check 'Enlist in Aspire Orchestration'
Update the Program.cs of AspireKeyVault project with following codes:

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

string? _mySecret = builder.Configuration["myAppSetting"];

var result = string.IsNullOrEmpty(_mySecret) ? "Null" : _mySecret;
app.MapGet("/", async context =>
{
await context.Response.WriteAsync($"Secret is {result}");
});
app.Run();

Right-click the AspireKeyVault > Add > Connected Services > Click the Add button under 'Service Dependencies' and select "Azure Key Vault", click Next > Finish
After the Azure key Vault configured, click "..." beside the configured Azure Key Vault, and select "Manage in Azure portal", In the portal, go to Secrets tab and click "+ Generate/Import".
Build and F5
Right-click solution > Open folder in file explorer, In the opened folder, right-click any place > open in terminal
Runing 'azd init', select 'Use code in the current directory' > Confirm and continue initializing my app, type a new environment name, press enter
Running 'azd up'
Open the resource group, click the container app , open 'Application Url'

NOTE: F5 can show the secret value
ACTUAL
Open AspireKeyVault container app shows 'ContainerCrashing'.
Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'uriString')
at System.ArgumentNullException.Throw(String paramName)
at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
at System.Uri..ctor(String uriString)
at Program.$(String[] args) in C:\Users\v-reinawang\source\repos\AspireKeyVault\AspireKeyVault\Program.cs:line 4

EXPECTED
Doesn't show container crashing error.

Because there is no problem with Debug, I don't know how to find the full stacktrace.
When I add Azure Key Vault in Connected Services, the code new Uri is automatically added to the Program.cs file:

When I add Azure Key Vault in Connected Services, the code new Uri is automatically added to the Program.cs file:

That seems to be a problem with Connected Services. I'm not sure who is supposed to set that VaultUri environment variable, but Aspire doesn't. This isn't how you use Key Vault with Aspire.
Closing this as external. This isn't a problem with Aspire.


Question regarding dynamic forms

Hi, I'm hoping to get some pointers here on how to solve my issue. I couldn't come up with a more suitable place. If questions are out of scope or otherwise inappropriate then feel free to get rid of this.
I'm building a form which is built based on data received from an API call. I'm not sure why, but I just can't get my head around the right approach!
The data is in the following form:
forms: [{
      sections: [{
          subSections:  [{
              fields: [field]
          }]
      }]
}]

Fields can be text, numbers, dates, select or multiselect.
Sections, subsections etc. have their own meta information (e.g. required, max length, id, type).
Here's what I've tried:

Loop the arrays and use Fieldset to create the form on the fly
Problems:

fields which should be arrays become objects (for instance multiselect fields)
subSections are variable length which creates problems with tracking

Build the form using action creators.
Problems:

very convoluted approach, felt like a hack
arrays inside arrays seems like a bad data model

I'm currently thinking about doing the redux thing and flattening the datastructure, but I'm not sure whether that is required or a good approach.
My question probably is: what would you do if you had to build a form based on such data? I'm locked in some wrong way of thinking which keeps me from seeing the solution.

I'm actually in the process of making a Google Forms clone built on React-Redux-Form - so look for that this weekend! Should be exactly what you're trying to do.

That sounds fantastic! Thank you for a quick reply!

That sounds fantastic! Thank you for a quick reply!

Hello David, I'm contacting you to make sure I've not missed the clone. I understand that you are very busy and I do not wish to put pressure on you in case you didn't have the time to finish the project.


Duplicate/Clone project with tasks failed

I try to duplicate a project with 39 tasks but the copy is incomplete.
See screenshot below (The new project QA (clone) doesn't contain all tasks)

There is no error in the browser, just a blank page.
Version 1.0.22

Do you have any php errors in the log files?

I redo the test at 14:46, there is an error but there are lot of errors before that.
2016/01/13 10:43:00 [error] 2380#2408: *49143 FastCGI sent in stderr: "PHP Notice:  Undefined variable: changes in C:\kanboard\app\Template\notification\task_update.php on line 3" while reading response header from upstream, client: <IP_ADDRESS>, server: ws, request: "POST /?controller=taskmodification&action=update&task_id=256&project_id=17 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9123", host: "ws.local"
2016/01/13 10:43:13 [error] 2380#2408: *49143 FastCGI sent in stderr: "PHP Notice:  Undefined variable: changes in C:\kanboard\app\Template\notification\task_update.php on line 3" while reading response header from upstream, client: <IP_ADDRESS>, server: ws, request: "POST /?controller=taskmodification&action=update&task_id=257&project_id=17 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9123", host: "ws.local"
2016/01/13 10:43:29 [error] 2380#2408: *49253 FastCGI sent in stderr: "PHP Notice:  Undefined variable: changes in C:\kanboard\app\Template\notification\task_update.php on line 3" while reading response header from upstream, client: <IP_ADDRESS>, server: ws, request: "POST /?controller=taskmodification&action=update&task_id=258&project_id=17 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9123", host: "ws.local"
2016/01/13 10:43:45 [error] 2380#2408: *49253 FastCGI sent in stderr: "PHP Notice:  Undefined variable: changes in C:\kanboard\app\Template\notification\task_update.php on line 3" while reading response header from upstream, client: <IP_ADDRESS>, server: ws, request: "POST /?controller=taskmodification&action=update&task_id=259&project_id=17 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9123", host: "ws.local"
2016/01/13 10:44:42 [error] 2380#2408: *48857 FastCGI sent in stderr: "PHP Notice:  Undefined variable: changes in C:\kanboard\app\Template\notification\task_update.php on line 3" while reading response header from upstream, client: <IP_ADDRESS>, server: ws, request: "POST /?controller=board&action=save&project_id=17 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9123", host: "ws.local"
2016/01/13 10:58:27 [error] 2380#2408: *49322 FastCGI sent in stderr: "PHP Notice:  Undefined variable: changes in C:\kanboard\app\Template\notification\task_update.php on line 3" while reading response header from upstream, client: <IP_ADDRESS>, server: ws, request: "POST /?controller=board&action=save&project_id=17 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9123", host: "ws.local"
2016/01/13 11:14:09 [crit] 2380#2408: *50088 SSL_write() failed (SSL:) (10053: An established connection was aborted by the software in your host machine) while sending to client, client: <IP_ADDRESS>, server: ws, request: "GET /?controller=board&action=check&project_id=17&timestamp=1452679868&_=1452679088154 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9123", host: "ws.local"
2016/01/13 11:58:03 [error] 2380#2408: *50803 FastCGI sent in stderr: "PHP Notice:  Undefined variable: changes in C:\kanboard\app\Template\notification\task_update.php on line 3" while reading response header from upstream, client: <IP_ADDRESS>, server: ws, request: "POST /?controller=board&action=save&project_id=17 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9123", host: "ws.local"
2016/01/13 13:54:20 [error] 2380#2408: *52877 FastCGI sent in stderr: "PHP Notice:  Undefined variable: changes in C:\kanboard\app\Template\notification\task_update.php on line 3" while reading response header from upstream, client: <IP_ADDRESS>, server: ws, request: "POST /?controller=taskmodification&action=update&task_id=196&project_id=17 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9123", host: "ws.local"
2016/01/13 14:46:38 [error] 2380#2408: *53318 FastCGI sent in stderr: "PHP Notice:  Undefined variable: changes in C:\kanboard\app\Template\notification\task_update.php on line 3" while reading response header from upstream, client: <IP_ADDRESS>, server: ws, request: "POST /?controller=board&action=save&project_id=17 HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9123", host: "ws.local"

oups wrong file, it's my nginx server log. My php logs are not enable. I will redo the test later

I don't think I have another file in this case, right ?

It seems that log and clone action are not linked.
Anyone else can do the test ?

You can also enable the debug mode then duplicate the same projects and see if you have any error in the log files.

Trying to duplicate a project the debug log shows https://gist.github.com/CoMPaTech/33d50323b4347e82b9f7


Add proxy user guide

What type of PR is this?
/kind documentation
What this PR does / why we need it:
Add user guide document for proxy.
Which issue(s) this PR fixes:
Part of https://github.com/karmada-io/karmada/issues/2372
Special notes for your reviewer:

CC @RainbowMango @XiShanYongYe-Chang

/assign

/assign @XiShanYongYe-Chang


Periodic Targets IPTT filter panel: Target period sub-options need to be disabled for LoP only and Midline/endline

I think these details got lost or buried in some of our early mega-tickets related to filtering. Pulling them out into a separate small ticket:
Affects: Options immediately under the Target periods menu:

Acceptance criteria
Midline and endline
When Midline and endline is selected in the Target Periods menu...

[x] 1. Show all and Most recent are empty and inactive.
[x] 2. Start and End month pickers display the full program reporting date range, but are not editable.

LoP only
When LoP only is selected in the Target Periods menu...

[x] 1. Show all and Most recent are empty and inactive.
[x] 2. Start and End month pickers display the full program reporting date range, but are not editable.

The reason for these details: We don't want to give users the ability (or the impression that they have the ability) to exclude select data from a period.

Validated.


Allow operation output to be union of structures

If we try to create an operation output that is a union of multiple structures, like below:
structure CompletedResponse {}

structure InProgressResponse {}

union ExampleOutput {
  completed: CompletedResponse,
  inProgress: InProgressResponse,
}

We get the following error:

operation shape output relationships must target a structure shape, but found (union: com.example#ExampleOutput)

I expected the validation step to check for structure shapes, but that it would allow unions as long as included only structure in it.

The types that a union points to aren't particularly important. There is no special handling of a union that returns only booleans or only lists as member values for example.
A union is unsuitable to use as an operation input / output because it isn't capable of evolving in the way that inputs / outputs often need to. Day 1 that union might be fine, there may be no duplicated information across your target shapes and maybe they're even all the same shape type. But on Day 2 you find you need to unconditionally add some metadata to every response. So now you have to ensure that you add this to every union target, and make sure you always set it in every pathway in your code. Then every time you or some other engineer adds a new member in the future, you need to make sure you add those in and that the member target is even capable of holding them. That's a lot of risk.
In this case what you would do is just make your union a member of the input / output structure. You could, for example, call it Status. This is not entirely dissimilar to what lambda does, where they bind the http status code and return a 201 if the operation is still in progress. The major difference being that a union with legible details is probably a better experience. But this does allow you to continue to evolve your service safely.

It makes sense. In our case, we have a very limited set of possibilities similar to the Cloud Control ProgressEvent type. We want to define a single response to an asynchronous API where you have 3 outputs: FailedResponse, InProgressReponse and SucessResponse. The way you saying we have to do is wrap around a property such as status. We would love to just flatten it by defining a union directly so that we will evolve the shape but based on each individual category response instead.

Jordon gave good examples of how this isn't a good idea for Smithy in general, but also this simply is impossible at this point without breaking thousands of models and every existing Smithy implementation. It's a huge simplification in the meta model that every input is a structure and every output is a structure.
If you want to modify the serialization of an HTTP request or response to use a union as the payload of the message, you can do so by appyling an @httpPayload trait to a member of your input/output structure that targets a union (assuming your're using an HTTP protocol).


Allow to copy content of call stack in left panel

See https://github.com/Microsoft/vscode-cpptools/issues/2600 for additional information.
But additionally, it is currently not possible to copy the text showing in the debug view under call stack.
It would be good to allow for this.. Providing the call stack in the event of a crash is an essential part of bug tracking/reporting.
Something that Visual Studio Code doesn't allow on Windows.

Thanks for that.. I had missed that opion.
However. when you have 100+ threads running, having to get and right click on every single of those threads to copy the stack is a rather tenuous job.

Agree but that is another feature request which we do not plan to tackle rigth now, closing

What is this habit of closing bugs telling it's done somewhere else, yet not linking to the duplicate?
quite frustrating

No you misunderstood. I am saying copying stack trace of multiple threads is not what your initial comment is requesting, it is a different feature request. There is no duplicate for it, nobody requested it. And I do not think we will work on this in the forseable feature. Though if you are passionate about it feel free to open a new issue - thanks

and letting me edit the title wouldn't have been an easier approach?


support other client api

I'm debugging Java/Cocoa client and found this difference. I think we could support this.

Thanks for the PR! This issue is caused by the different multiplex protocol approach between thriftpy and apache thrift. So I think #117 will solve the problem better. :)

thanks, I would love to change code like #177 because it's official way, but that will change the interface which we used a lot for now. anyway it's better one. I just need a release.
thank you.


Databricks Asset Bundles

what is it: https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/
deploy notebooks: https://learn.microsoft.com/en-us/azure/databricks/workflows/jobs/how-to/use-bundles-with-jobs
deploy python wheel: https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/python-wheel
run CICD pipeline in github: https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/ci-cd
Example of creating a python wheel
# yaml-language-server: $schema=bundle_config_schema.json
bundle:
  name: my-wheel-bundle

artifacts:
  my-wheel:
    type: whl
    path: ./my_package

resources:
  jobs:
    wheel-job:
      name: wheel-job
      tasks:
        - task_key: wheel-task
          new_cluster:
            spark_version: 13.3.x-scala2.12
            node_type_id: Standard_DS3_v2
            data_security_mode: USER_ISOLATION
            num_workers: 1
          python_wheel_task:
            entry_point: run
            package_name: my_package
          libraries:
            - whl: ./my_package/dist/my_package-*.whl

environments:
  development:
    workspace:
    host: <workspace-url>

Validate configurations with:
databricks bundle validate.
Build the wheel locally, deploy the built wheel to your workspace, deploy the notebook to your workspace, and create the job in your workspace:
databricks bundle deploy
Run the deployed job, which uses the deployed notebook to call the deployed wheel:
databricks bundle run wheel-job

@mrmasterplan - maybe this can be utilized to execute a test job using the wheel and run unittests?

Hi, will the work on dbx stop? Should I migrate all my deployments to DAB?


Implement OAuth2 for httpx streaming requests

DO NOT SEND ANY SECURITY FIX HERE. Please read "Security Reporting" section
on README.

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] Feature
[ ] Code style update
[ ] Refactor
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

[x] You consent that the copyright of your pull request source code belongs to Authlib's author.

Thanks

@lepture
Any chance for a quick new alpha on pypi?

@ulodciv I'll make a release after I removed sqlalchemy integration.


Duplicate Issue-Item Association Fixes

First phase of fixing duplicates in the issue_item_association table.

While I'm add it, I'm going to fix the others:

association_table
roles_users

Coverage remained the same at 71.978% when pulling f6b85da7c7cef3f2d82dcab3caf7cfc325a37cbe on mikegrima:1003 into 2f0d3c8292a16714361479d68d313172cbb0f5ce on Netflix:develop.

Running tests now.


Intermittent errors: unable to decode an event from the watch stream: http2: client connection lost

Running on EKS 1.28 version.
Operator version: 0.23.3
W0425 14:18:13.844666       1 reflector.go:456] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers.go:233: watch of *v1.StatefulSet ended with: an error on the server ("unable to decode an event from the watch stream: http2: client connection lost") has prevented the request from succeeding

@samof76 , is it reproducible on more recent operator versions? The latest one is 0.23.7.
P.S. We run operator with EKS versions up to 1.30 with no issues.


Upgrade Travis to Go 1.8 and use t.Name

As of Go 1.8, testing.T and testing.B have a Name method. Previously we have cut-and-paste the name of the test into strings, but this is error prone and has caused NDFs in the past. Going forward, we should use t.Name() in all new tests.
I updated all existing tests except for those in the host package. I will add those as well if @DavidVorick does not think the changes will conflict too badly with the new storage manager code.

Prefer if you hold back on the host package. Bad copy paste here has caused many bugs, glad we don't need to worry about it anymore

Worth noting that go1.8 is now a requirement for building Sia. At some point it might be worth waiting a few months before using new go releases so that package managers have time to catch up. Definitely annoys me about javascript projects that I've always got to have the most recent version of node.

True. I was a bit eager for this because it also gives us clean shutdown in the server and more ergonomic sorting. I'll get to those at some point. I don't think there's anything amazing slated for Go 1.9, so we should be stable for another year.


Upgrade dependency

Upgrade<EMAIL_ADDRESS>to version 9.0.2

Please ignore this PR and close it. Generated by TestIM


fix(ci): Release workflow

Description
Fixes the release workflow and syncs preamble and amble versions.

Current dependencies on/for this PR:

main

PR #66   👈

This comment was auto-generated by Graphite.