Refactor project structure

Hi @Bouni,
I wanted to add a content plugin that would contain symbols and footprints for JLCPCB-specific features like user-placed tooling holes and user-placed JLC identification string. This requires developing both a "plugin" addon, but also a "content" addon. In order to keep better track of these in a sensible way, I thought it would be beneficial to refactor the repo to allow for hosting multiple plugins and additionally rewrite the PCM release code.
I realise this is a fairly invasive PR to just drop without any warning, though I am cautiously optimistic that you will agree that the new structure gives a better overview.
This is still a draft, but so far:

Building PCM zips can now be done on Windows
KiCAD repository is hosted with the repo instead of split across two repos (kicad-jlcpcb-tools, bouni-kicad-repository)
Git Repo looks less daunting and the plugin python module is isolated from other items
Adds a symbol and footprint library

This contains ToolingHole and OrderNumber components for use with PCB and PCBA services

TODO

[X] Refactor project structure
[x] Rewrite release code
[ ] Hook up new release code to GitHub Actions
[ ] Document repository URL in README for automatic updates etc (this should be releases/latest)

I would be keen to hear some feedback on whether you agree with this approach before I redo the GH Actions workflow to work around the new release system @Bouni

Let look into it during the weekend and I'll post a proper reply on Monday

@JeppeKlitgaard All in all your suggested changes are totally legit. Feel free to move on and I'll merge them.

@Bouni This PR is now ready for review. It is a bit of a behemoth, but the release procedure should be the same as the one you used before.
I have verified that I can get this to work by changing GIT_REPOSITORY_URL in release.py to my own fork, which the PCM can then be targeted at. Both the new library with the two symbols and footprints works and the plugin still works as expected.
At the end of the release workflow it adds and commits changes to the repository and packages files (this is only strictly needed to keep track of previous versions, since we point the PCM to the files uploaded as part of the GitHub release)

Sorry for the delay I was on vacation. I'll look into it this week 👍🏽

Ok, I just tired to test your changes. Whats your plan installation wise? Until now I could have simply cloned the entire repo into my scripting/plugins folder and the plugin would be loaded.
Now I had to create a symlink to addons\jlcpcb_tools_plugin\pluginsfor the plugin to be found and loaded.

@JeppeKlitgaard Can you answer my questions from last post?


Understanding OEM Calibration

Required Info

Camera Model
D455

Firmware Version
5.14

Operating System & Version
Linux (Ubuntu 20)

Kernel Version (Linux Only)
5.10.104-tegra

Platform
NVIDIA Jetson Xavier NX

SDK Version
2.53.1

Language
C++

Issue Description
To confirm, when I run the rs-oem-server for calibration and the client gives a red thumbs UP or a green thumbs DOWN; it does also flash the new calibration data onto the device and that is used thereafter, right?
Is there a way to derive when the last calibration was done on the camera? (Can't see anything on the rs-calibration-writer or rs-calibration-converter binaries for it).  Also, knowing the calibration history would be useful for posterity.

Hi @kumar-akshay324  Thanks very much for your question about OEM calibration.  I will discuss it with my Intel RealSense colleagues.

thanks @MartyG-RealSense, looking forward to the answers. Appreciate the prompt response

@MartyG-RealSense bumping this one up. Any leads would be helpful

I will update as soon as I have information to feed back to you.  Thanks very much for your patience!

Hey @MartyG-RealSense  - any updates on this?

I am continuing to communicate with my RealSense colleagues about your question.  Thanks again.

My colleagues have provided advice about your issue.
The calibration pass / failed result will be shown in the client window of the OEM calibration tool and the result will be saved for each calibration session (chapter 5.3 of the tool's user guide – Result folder and debugging information).  This information is based on OEM calibration tool release <IP_ADDRESS>.

Hi @kumar-akshay324  Was the advice in the comment above helpful, please?  Thanks!

Hi @kumar-akshay324  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


Project Page Redesign

I want to go to a flat design for the project page. The popups are annoying, make it hard to navigate and actually don't work with the full screen VR examples.
I want it to be simpler, like the Three.js examples, but with a nice clean Bootstrap layout.

Done but it needs a responsive pass. Will open another issue.


animation-duration

I'm not an expert in CSS animations, but could the duration of the animation be missing?
I mean to run a wiggle I have to add animation-duration to the div: https://jsfiddle.net/einfallstoll/hsykk1za/
Or is this behaviour intended (and not? documented)?

Nevermind. It's just poorly documented.


Cannot read properties of undefined (reading 'color')

I have received this error a few times when I am currently running 24 pioreactors simultaneously. Thanks!
Something went wrong with the PioreactorUI!
Don't worry. It's our fault. Here's what you can do:
Looks like there's a bug in the UI. See the below for error information. We would appreciate it if you create an issue in Github for us, with the information below.
URL: http://lead1.local/overview
Cannot read properties of undefined (reading 'color')

Hi @mandytwig,
We noticed a few other users with large clusters experiencing this same problem. We believe we fixed in the version 24.9.19 or above. Can you try upgrading your cluster? (The version 24.9.19 is a large upgrade, so make sure there are no experiments running).https://forum.pioreactor.com/t/new-pioreactor-release-24-9-19/462?u=camdavidsonpilon

We have upgraded our software. I haven't received the error since. Thanks!


LG method signatures is blocked

addressed via https://github.com/microsoft/BotFramework-Composer/pull/2279


Display issue in Safari

I should be seeing nothing but Safari is rendering tofu

Weird, getting the same issue with Firefox


Can mqtt use SSL?

I don't see anything in the source using paho mqtt, for using secure MQTT.

I believe paho does support ssl, but there may be another solution to your issue. While I do not have this setup anymore so my recollection could be a bit fuzzy, I recall setting up multiple "listeners" in mosquitto on different ports, with one being encrypted and one being encrypted. For the non-encrypted one I locked down the ACL to only write access and only on certain topics. While that still meant that someone could maliciously feed bad values to the mqtt server for those topics, that level of security was sufficient for my environment and considering that there was no danger if the sensor values were manipulated. Just a thought that you may want to explore.


Problem with System Fields "Created At" and "Modified At"

Describe the bug
We are not yet sure if this is a bug or not.
We have a curious error when handling data in the new system fields "Created At" and "Modified At". Basically (short version) these fields appear to save the timestamp in ISO 8601 format as for example "2020-08-28T09:08:00.0000000Z".
That appears to be incompatible with BCs expectation how a DateTime should look like, So trying to EVALUATE(SomeDateTime,"2020-08-28T09:08:00.0000000Z") fails:
"The value "2020-08-28T09:08:00.0000000Z" can't be evaluated into type DateTime."
To Reproduce
// retrieve value of Rec."Created At" into a TextVar and then do:
EVALUATE(SomeDateTimeVariable,TextVar);

Expected behavior
Either: Confirm nobody is supposed to use the fields contents in AL and make it inaccessible (also for FieldRef)
Or: Make EVALUATE accept ISO 8601 Strings
Or: Save to database as compatible String Format
Or: Other explanation... we are not sure what is what here after all :-)
Screenshots
n.a.
5. Versions:
AL Language: v6.0.321546
Business Central: Platform 17.0.15765.0 + Application 17.0.15854.0

Hi @RafaelKoch,
First of, you are suppose to be able to access them from code.
if you just want to find a way to convert the text to a datetime, then I would suggest you use the following resources
Business Central Community
mibuso forum
Dynamics User Group
However if you want to see the evaluate function changed then let's get the issue to a team who will fix and backport it, as this repository is only for issues related to the AL compiler in latest developer preview environment for Dynamics 365 Business Central. We suggest that you open a support case or file a bug in Collaborate, to ensure that all Business Central users benefit from your catch as soon as possible.
To open a support case, you can:

Open a support request to CSS through the PartnerSource portal
Contact your Service Account Manager (SAM) in your local subsidiary to understand what is included in your contract as of support incident and PAH (Partner Advisory Hours). Your SAM might also direct you "step by step" how to open a support request or how to get credentials, if this is the first time for you or your company

If you file the bug in Collaborate, remember to include steps to reproduce the issue, and the Business Central build number and country version you're using.

@thpeder : This is about the new fields in V17 somwhow saving the timestamp differently than other DateTime Fields seem to do. At least it looks that way. Is this intentional or did we just overlook something?

The format the data is written in is picked on purpose, but unfortunately the evaluate function can handle it so I don't think there is something you have missed.

So - reopen? Because how will we make use of that field in AL code?

I did a bit of searching around and found this: https://forum.mibuso.com/discussion/51130/iso-8601-datetime-format


NPE when resuming app

device Galaxy S4 - 5.0.1
app was behind lockscreen. When I unlocked the phone, NPE occurred.
03-02 19:39:46.276 23113-23113/? E/AndroidRuntime: FATAL EXCEPTION: main                                                    Process: com.anaface.anaface, PID: 23113                                                    java.lang.NullPointerException: Attempt to invoke virtual method 'int com.flurgle.camerakit.Size.getHeight()' on a null object reference                                                        at com.flurgle.camerakit.CameraView.onMeasure(CameraView.java:135)                                                        at android.view.View.measure(View.java:18580)                                                        at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:728)                                                        at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:464)                                                        at android.view.View.measure(View.java:18580)                                                        at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1658)

i add the photo to an adapter when its taken, when i click on the photo which opens it to view with gallery, i get this same NPE re: getHeight()

this crashing only when i click on the image in the adapter while in landscape, and the orientation changes when the image is opened.
if i click on the image while in portrait mode, it seems to not crash as the screen doesnt have to change orientation

An update was just pushed which should rollout in the next few hours and fix this problem.
Please re-open if you get the update and it still doesn't work!


[BUG]: ##[warning]Resource file has already set to: /agent/_work/_tasks/Kubernetes_cbc316a2-586f-4def-be79-488a1f503564/1.241.5/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json

New issue checklist

[X] I searched for existing GitHub issues
[X] I read pipeline troubleshooting guide
[X] I checked how to collect logs

Task name
Kubernetes@1
Task version
1
Issue Description
A bug happened!
I use in my azure devops pipline the task Kubernetes@1 for diferent use cases. Since about 1 Month i see this warning everytime when the Kubernetes@1 is executed. I call the Kubernetes@1 multiple times and each time i see this warning.
Environment type (Please select at least one enviroment where you face this issue)

[X] Self-Hosted
[ ] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 22.04
Relevant log output
##[warning]Resource file has already set to: /agent/_work/_tasks/Kubernetes_cbc316a2-586f-4def-be79-488a1f503564/1.241.5/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION]

Repro steps
- task: Kubernetes@1
    displayName:
    inputs:
      connectionType: "Kubernetes Service Connection"
      kubernetesServiceEndpoint: " ${{ parameters.kubernetesServiceEndpoint }}"
      command: "apply"
      useConfigurationFile: true
      configuration:
      arguments:
      namespace:

We're also seeing this issue in the DotNetCoreCLI@2 Pipeline Task, version 2.244.1

Me too.

Same here for<EMAIL_ADDRESS>but was also on previous versions for the past month maybe?

Same here.
Azure hosted
`Task         : .NET Core
Description  : Build, test, package, or publish a dotnet application, or run a custom dotnet command
Version      : 2.245.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/dotnet-core-cli
##[warning]Resource file has already set to: D:\a_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.245.1\node_modules\azure-pipelines-tasks-packaging-common\module.json
`
I manage multiple DevOps tenants. All pipelines on multiple tenants have the same issue.
It still works though.

Looks like the DotNetCoreCLI@2 issue should be fixed in #20427

Closing the issue, PR has been merged for this issue.
PR - https://github.com/microsoft/azure-pipelines-tasks/pull/20308


Text editor throws Fluxor Exception: DisposableCallback

Hi
I like your text editor very much, nice work.
From time to time however, it throws this Fluxor Exception:
Exception Info: System.InvalidOperationException: DisposableCallback with Id ""StateSubscriber.Subscribe" (created in "C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor\StateSubscriber.cs" on line 50)" was not disposed. See https://github.com/mrpmorris/Fluxor/tree/master/Docs/disposable-callback-not-disposed.md for more details
   at Fluxor.DisposableCallback.Finalize() in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor\DisposableCallback.cs:line 75

Looking at the provided link https://github.com/mrpmorris/Fluxor/tree/master/Docs/disposable-callback-not-disposed.md reveals that something seems to not beeing disposed correctly.
Unfortunately i am unable to build the Blazor.Text.Editor from your main branch. Probably its just a small issue.
Thanks for your help.

Hi, I'm happy to hear you like the Text Editor.
I just now uploaded v7.1.0 of the text editor to nuget, this version includes a fix for what you describe.


Control flow graph algorithm error when using many ternary operations

Reporting a bug

[x] I am using the latest released version of Numba (most recent is visible in
the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[x] I have included below a minimal working reproducer (if you are unsure how
to write one see http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports).

from numba import njit
import numpy as np

def generate_code(count):
    base_code = """
    dependency_{index} = 1 if True else 0
    value_{index} = x if dependendency_{index} else 0"""

    code = """
@njit
def template(x):"""
    for i in range(count):
        code += base_code.format(**{'index': i})
    return code

if __name__ == '__main__':
    import sys
    import time

    count = int(sys.argv[1])

    exec(generate_code(count), globals(), locals())
    start = time.time()
    template(32)
    end = time.time()
    print(end - start, 'elapsed')

When running the above code with count > 200, the growth in compilation time appears to grow exponentially based on the control flow graph search.  @stuartarchibald suggested that the recursive algorithm would likely need to be replaced with an iterative one as "the amount of time it takes to analyse the CFG would be to some degree proportional to the number of [if] blocks."  When run with sufficiently large count > 10000, the following error is produced:
  File "/***/.local/lib/python3.8/site-packages/numba/core/dispatcher.py", line 420, in _compile_for_args
    raise e
  File "/***/.local/lib/python3.8/site-packages/numba/core/dispatcher.py", line 353, in _compile_for_args
    return self.compile(tuple(argtypes))
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler_lock.py", line 32, in _acquire_compile_lock
    return func(*args, **kwargs)
  File "/***/.local/lib/python3.8/site-packages/numba/core/dispatcher.py", line 794, in compile
    cres = self._compiler.compile(args, return_type)
  File "/***/.local/lib/python3.8/site-packages/numba/core/dispatcher.py", line 77, in compile
    status, retval = self._compile_cached(args, return_type)
  File "/***/.local/lib/python3.8/site-packages/numba/core/dispatcher.py", line 91, in _compile_cached
    retval = self._compile_core(args, return_type)
  File "/***/.local/lib/python3.8/site-packages/numba/core/dispatcher.py", line 104, in _compile_core
    cres = compiler.compile_extra(self.targetdescr.typing_context,
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler.py", line 568, in compile_extra
    return pipeline.compile_extra(func)
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler.py", line 339, in compile_extra
    return self._compile_bytecode()
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler.py", line 401, in _compile_bytecode
    return self._compile_core()
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler.py", line 381, in _compile_core
    raise e
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler.py", line 372, in _compile_core
    pm.run(self.state)
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler_machinery.py", line 341, in run
    raise patched_exception
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler_machinery.py", line 332, in run
    self._runPass(idx, pass_inst, state)
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler_lock.py", line 32, in _acquire_compile_lock
    return func(*args, **kwargs)
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler_machinery.py", line 291, in _runPass
    mutated |= check(pss.run_pass, internal_state)
  File "/***/.local/lib/python3.8/site-packages/numba/core/compiler_machinery.py", line 264, in check
    mangled = func(compiler_state)
  File "/***/.local/lib/python3.8/site-packages/numba/core/untyped_passes.py", line 86, in run_pass
    func_ir = interp.interpret(bc)
  File "/***/.local/lib/python3.8/site-packages/numba/core/interpreter.py", line 116, in interpret
    flow.run()
  File "/***/.local/lib/python3.8/site-packages/numba/core/byteflow.py", line 141, in run
    self._build_cfg(runner.finished)
  File "/***/.local/lib/python3.8/site-packages/numba/core/byteflow.py", line 158, in _build_cfg
    graph.process()
  File "/***/.local/lib/python3.8/site-packages/numba/core/controlflow.py", line 125, in process
    self._find_topo_order()
  File "/***/.local/lib/python3.8/site-packages/numba/core/controlflow.py", line 537, in _find_topo_order
    _dfs_rec(self._entry_point)
  File "/***/.local/lib/python3.8/site-packages/numba/core/controlflow.py", line 534, in _dfs_rec
    _dfs_rec(dest)
  File "/***/.local/lib/python3.8/site-packages/numba/core/controlflow.py", line 534, in _dfs_rec
    _dfs_rec(dest)
  File "/***/.local/lib/python3.8/site-packages/numba/core/controlflow.py", line 534, in _dfs_rec
    _dfs_rec(dest)
  [Previous line repeated 970 more times]
  File "/***/.local/lib/python3.8/site-packages/numba/core/controlflow.py", line 531, in _dfs_rec
    seen.add(node)
RecursionError: Failed in nopython mode pipeline (step: analyzing bytecode)
maximum recursion depth exceeded while calling a Python object

Thanks for report.
Gitter discussion https://gitter.im/numba/numba?at=5ea0146771a34b014900f3c9
Seems like the code is generating a phenomenal number of chained diamond CFG structures, the sheer quantity of these is blowing the stack in DFS on successor walking during topo ordering computation. CC @sklam.

Reproducer including CFG dump:
from numba import njit
import numpy as np

def generate_code(count):
    base_code = """
    dependency_{index} = 1 if True else 0
    value_{index} = x if dependendency_{index} else 0"""

    code = """
@njit
def template(x):"""
    for i in range(count):
        code += base_code.format(**{'index': i})
    return code

def show_cfg(fn):
    from numba.core.controlflow import ControlFlowAnalysis
    from numba.core.bytecode import FunctionIdentity, ByteCode
    fid = FunctionIdentity.from_function(fn)
    bc = ByteCode(func_id=fid)
    cfa = ControlFlowAnalysis(bc)
    cfa.run()
    cfa.graph.render_dot().view()

if __name__ == '__main__':
    import sys
    import time

    count = int(sys.argv[1])
    genned = generate_code(count)
    print(genned)
    exec(genned, globals(), locals())
    start = time.time()
    template(32)
    show_cfg(template)
    end = time.time()
    print(end - start, 'elapsed')

There are a lot of redundant CFG computation in SSA and other parts. We need to find a way to get rid of them.

This was also kindly supplied by @lespaul as something stressing SSA:
https://gist.github.com/stuartarchibald/d40a29b949b8b5afa1b37dc7ce964ca2
again, auto-genned.


Allow anyone to publish their preferred Duster config, and use it every time they use Duster

Something like
composer require tightenco/duster
./vendor/bin/duster import mattstauffer/my-duster-styles

And that would pull the .phpcs.xml.dist file in from that repo, or something else like that

This could be done through the new duster.json file.
{
    "standards": {
        "phpcs": "path/to/duster-styles/.phpcs.xml.dist"
    }
}


Custom IProfileService: IdentityServer Enter IdentityServer Admin AccessDenied

Describe the bug
Completely code initialization data, admin login，Try to enter IdentityServer Admin from IdentityServer
To Reproduce
Added custom IProfileService, then StartupHelpers:.AddProfileService(), then start the project, Try to enter IdentityServer Admin from IdentityServer
version: Templates::2.0.1
ProfileService:
    public class ProfileService : IProfileService
    {
        public ProfileService()
        {

        }
        public async Task GetProfileDataAsync(ProfileDataRequestContext context)
        {
            context.IssuedClaims = context.IssuedClaims;
            await Task.CompletedTask;
        }

        public async Task IsActiveAsync(IsActiveContext context)
        {
            context.IsActive = context.IsActive;
            await Task.CompletedTask;
        }
    }

Relevant parts of the log file
[13:39:06 INF] Request starting HTTP/2 GET https://localhost:44303/ - -
[13:39:06 VRB] All hosts are allowed.
[13:39:06 DBG] The host 'localhost' is excluded. Skipping HSTS header.
[13:39:06 DBG] The request path / does not match a supported file type
[13:39:06 DBG] 1 candidate(s) found for the request path '/'
[13:39:06 DBG] Endpoint 'Skoruba.IdentityServer4.Admin.UI.Areas.AdminUI.Controllers.HomeController.Index (Skoruba.IdentityServer4.Admin.UI)' with route pattern '/{controller=Home}/{action=Index}/{id?}' is valid for the request path '/'
[13:39:06 DBG] Request matched endpoint 'Skoruba.IdentityServer4.Admin.UI.Areas.AdminUI.Controllers.HomeController.Index (Skoruba.IdentityServer4.Admin.UI)'
[13:39:06 VRB] Performing unprotect operation to key {7b665705-1f67-460f-9586-cd2731e6f13c} with purposes ('Skoruba.IdentityServer4', 'Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware', 'Cookies', 'v2').
[13:39:06 DBG] AuthenticationScheme: Cookies was successfully authenticated.
[13:39:06 INF] Authorization failed. These requirements were not met:
RolesAuthorizationRequirement:User.IsInRole must be true for one of the following roles: (MyRole)
[13:39:06 INF] AuthenticationScheme: Cookies was forbidden.
[13:39:06 VRB] Connection id "0HM8BJ89DL6ML" sending HEADERS frame for stream ID 7 with length 71 and flags END_STREAM, END_HEADERS
[13:39:06 INF] Request finished HTTP/2 GET https://localhost:44303/ - - - 302 0 - 38.8856ms
[13:39:06 VRB] Connection id "0HM8BJ89DL6ML" received HEADERS frame for stream ID 9 with length 4775 and flags END_STREAM, END_HEADERS, PRIORITY
[13:39:06 INF] Request starting HTTP/2 GET https://localhost:44303/Account/AccessDenied?ReturnUrl=%2F - -
[13:39:06 VRB] All hosts are allowed.

After comparing the jwt token of the correct and incorrect requests, it is found that the claim: role and user are missing

You can check the default profile service here: https://github.com/IdentityServer/IdentityServer4/blob/main/src/AspNetIdentity/src/ProfileService.cs

After I added ProfileService, My own API is protected, but Admin Site is not working anymore.
Can you add ProfileService to your project, so we can continue to add our own claims.
`
public class ProfileService : IProfileService
where TUser : class
{
private readonly UserManager _userManager;
private readonly ILogger<ProfileService> _logger;
AdminIdentityDbContext _dbContext;
public ProfileService(UserManager userManager, ILogger<ProfileService> logger, AdminIdentityDbContext dbContext)
{
_userManager = userManager;
        _logger = logger;
        _dbContext = dbContext;
    }
    public async Task GetProfileDataAsync(ProfileDataRequestContext context)
    {
        IdentityUser mUser = (await _userManager.GetUserAsync(context.Subject)) as IdentityUser;
        TicketHolderSecurity security=_dbContext.TicketHolderSecurities.Where(x => x.UserId == mUser.UserName).FirstOrDefault();
        if(security!=null)
        {
            context.IssuedClaims.Add(new Claim("IsTicketHolder", "true"));
            context.IssuedClaims.Add(new Claim("TicketHolderId", security.TicketHolderId.ToString()));
            context.IssuedClaims.Add(new Claim("PhoneNumber", mUser.PhoneNumber));

        }
       context.AddRequestedClaims(context.Subject.Claims);
        await Task.CompletedTask;
    }

    public async Task IsActiveAsync(IsActiveContext context)
    {
        context.IsActive = context.IsActive;
        await Task.CompletedTask;
    }
}

`


source maps for webpack bundles stop working after a hot rebuild

Prerequisites
Getting the sourcemaps to work at all with a webpack build required setting output.devtoolModuleFilenameTemplate: '[absolute-resource-path]' in the webpack config
Reproduce

Set up a webpack build that exports an express/koa handler/middleware
Use https://github.com/60frames/webpack-hot-server-middleware to serve it, and to switch incoming requests to use new builds as webpack creates them
Set a breakpoint in the source code, and also add a debugger statement.
Start the server and trigger the code with the breakpoint and debugger statement. Notice that both the breakpoint and the debugger statement work correctly, and the IDE opens the original source code.
Make a change to the source file the the debugger and break point to trigger a webpack recompile (but not a restart of the debugged process), and perform a second request
Notice that the breakpoint does not work, and the debugger statement causes the IDE to open the compiled file rather than the original source.

Okay, thanks for the steps! Before I dive into this more, can you see if this works if you set debug.javascript.usePreview: true? That will use our new debugger, which has different sourcemap handling and will become the default debugger in the upcoming release.

I tried with the new debugger (released version, and nightly version). The symptoms are the same for the breakpoint inside the webpack build - it works the first time, but not after a recompile.
Some more detail for the issue in the babel compiled code (serveDev.js)

the debugger causes the IDE to open a source file with the correct content, but it is not correctly mapped to the editable source file on the filesystem
the breakpoint causes the IDE to open compiled code which does not look like the source code.

I have the same issue, easily reproducible, with both the preview debugger and the non-preview debugger. Let me know if I can provide information or logs. VS Code 1.47.3.

This problem remains a massive productivity cost for our project. We are still experiencing errors in 1.48.

Depending on your case (have not verified this scenario yet), https://github.com/microsoft/vscode-js-debug/commit/7d8f598a61728a2f0c00ec756d7b565c9bbab030 may solve your issue. Fixes several use cases with things like types of nodemon builds and Nest.js dev mode.

@connor4312 As of this morning, we are still experiencing this issue in our Angular Project.

Yes, Angular is an entirely different scenario from what's in that commit.

@connor4312 Thanks. I expected it might be different. Do i need to create a new issue for Angular specifically?

Yep, that would be good to make sure your scenario is tracked. Link for a bug: https://github.com/microsoft/vscode-js-debug/issues/new/choose A repro is sufficient, I probably will not need the trace logs that the template asks for.

great thanks :)


Fix Baseline Profile Generate from GMD

What I have done and why
Change tasks use :app:generateDemoReleaseBaselineProfile.
From Baseline profile documentation

Note: To generate and install the Baseline Profile from the command-line interface, run the :app:generateBaselineProfile or :app:generateVariantBaselineProfile Gradle tasks.

Used GMD from here
https://github.com/android/nowinandroid/blob/211654ff16aea732cab8fd6148998c2a7293612f/benchmarks/build.gradle.kts#L48-L54
Output:

Fix #1467, fix #859

Thank you for submitting this pull request. We have decided not to accept it at this time.
Feel free to comment or open an issue for further discussion if necessary.


feat(streaming): follow server.connection_pool_size config for exchange service

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
A connection_pool_size can be specified to establish multiple connections to the same server. We didn't pass this configuration field to the client pool used by streaming exchange, which is the issue to address in this PR.
This can help to mitigate potential streaming stuck due to the deadlock caused by HTTP/2 streaming vs connection-level flow control.
Remove Default impl to make specifying the connection_pool_size explicit to caller. Use adhoc() or new(1) if the caller doesn't care about the pool size.
Checklist

[x] I have written necessary rustdoc comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

But I think an improvement would be to use a separate configuration for batch and streaming connection pools.
Currently both use the same connection_pool_size config, so batch and stream are not isolated for each other's configuration change for this var.

Agree. Since connection_pool_size was only used for batch exchange, It would be better if it was put in batch.developer from the very beginning. Then we can introduce another configuration for streaming exchange, naturally and without any compatibility issue.

By default our connection pool size for stream is 1. Not sure if the same default can apply to batch.

After this PR, it will be 16, but I don't think it's harmful.


NgZone.run() required to call Nav.setRoot() inside subscribe()

Short description of the problem:
When trying to call nav.setRoot(Page) from a subscribe method of a Observable/Stream the view does not update until a interaction with a controller inside the page occurs.
I have only tried with Observables, but I guess many asynchronous operations will have the same behavior.
What behavior are you expecting?
A page navigation to occur and the RootPage reference to be updated.
Steps to reproduce:

Implement a Observable
Subscribe to it
Try to call nav.setRoot()

The code below works, but if I remove the zone.run() method, it does not.
    let auth$ = this.store.select('auth');
    auth$
      .filter(auth => auth.isAuthenticated)
      .take(1)
      .subscribe(
        () => {
          this.zone.run(
            () => { this.goToMainPage(); }
          )
        }
      );

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
I found a workaround solution on this Stack Overflow question
And there is a discussion about it here in the ionic forum(at the bottom, since there is a lot of replies): https://forum.ionicframework.com/t/ionic2-with-real-time-data-not-updating-firebase/47189/42
This may relate to:
#6297, #5912
Which Ionic Version? 1.x or 2.x
2.x
(beta.6)
Run ionic info from terminal/cmd prompt: (paste output below)
Cordova CLI: 5.4.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.4
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.0.0
Xcode version: Xcode 7.3 Build version 7D175

After searching @iignatov comments on many topics on the Ionic forum, I believe the issue is probably related to zone.js itself and is reported already here: https://github.com/angular/zone.js/issues/304

Hey! Thanks for opening an issue with us! The next release of Ionic 2 should be upgraded to Angular 2 rc1 which includes the fix that happened with zone.js in Angular 2 beta.17.


Do not send "fake" exceptions

Ignore exceptions which are not real exceptions in cz.cuni.mff.ufal.Logger

One set of exceptions to ignore
I will try to answer our own question with details and a little bit of guessing.
Our repository is based on DSpace 5.2-SNAPSHOT, we are using xmlui and users submit items using submission workflow.
We are notified by mail about cocoon exceptions because we are using exception generator similar to the following
public class EmailExceptionGenerator extends ExceptionGenerator {
private static final Logger.own_logger log = (Logger.own_logger) Logger.getLogger(EmailExceptionGenerator.class);
@Override
public void generate() throws IOException, SAXException, ProcessingException {
super.generate();
if(this.parameters.getParameterAsBoolean("send_email", false)){
Throwable t = ObjectModelHelper.getThrowable(objectModel);
log.send_error(t);
}
}
}
As Ondrej pointed out, the exception in the original email can be reproduced on a clean DSpace 5.2 by

starting a submission;
click on Save & Exit;
click on Save it, I'll work on it later;
checking cocoon logs.

Afterwards, cocoon log will contain an exception similar to
cocoon.handled  - Could not read resource cocoon://DRI/3/handle/123456789/214/submit/8479132f42322b784f445968356a223307411f37.continue
at <map:serialize type="xml"> - resource://aspects/Statistics/sitemap.xmap:359:36
... cca 180 lines of stack trace ...
Caused by: java.lang.NullPointerException
at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292)
... cca 170 lines of stack trace  (happy debugging) ...
Simply said, DSpace uses cocoon and cocoon uses sitemaps and aspects meaning you start in the main sitemap and traverse aspects that somehow match e.g. by uri.
In the process, DSpace java or javascript can be called. DSpace uses DRI schema document [1] and that document get be updated using the functionality defined by aspects.
Looking at our exception, the prefix DRI/3 means that the 3-rd aspect caused a problem. The exception is misleading in this case because the culprit is not mentioned there (DRI/3 is not the Statistics aspect).
Turning cocoon debugging on [2] gives more details.
2015-05-19 08:51:56,705 DEBUG org.apache.cocoon.components.treeprocessor.sitemap.MatchNode  - Matcher 'AspectMatcher' matched pattern 'null' at <map:match type="AspectMatcher"> - file:///lindat-dspace/dspace/modules/xmlui/target/xmlui-5.2-SNAPSHOT/aspects/aspects.xmap:78:36
2015-05-19 08:51:56,705 DEBUG org.apache.cocoon.components.treeprocessor.InvokeContext  -
Current Sitemap Parameters:
LEVEL 1
PARAM: 'aspect' VALUE: 'resource://aspects/Submission/'
PARAM: 'aspectID' VALUE: '3'
PARAM: 'prefix' VALUE: '3/'
PARAM: 'aspectName' VALUE: 'Submission and Workflow'
After some more debugging [3], we find this in the submission.js:submitStepSaveOrRemove called while executing the aspect
if (cocoon.request.get("submit_save"))
{
   // Already saved...
   var contextPath = cocoon.request.getContextPath();
   cocoon.redirectTo(contextPath+"/submissions",true);
   cocoon.exit();
}

The redirectTo sends redirection to the browser, which means you will never see any exception after this point in your UI.
Cocoon exit is calling FOM_Cocoon.suicide().
Later, SitemapSource does not have this.pipelineDescription.processingPipeline initialised properly from which comes the NullPointerException.
With some amount of guessing [4],  the suicide method is the reason for all of this (in general, suicide is not a solution).
There are more exceptions generated afterwards.
You can also try to Cancel Creating a collection which has the redirectTo + exit and it will produce the same error. Note that although there are several redirectTo only a few can be really reached (use [3]).
function startCreateCollection()
{
var communityID = cocoon.request.get("communityID");
assertAuthorized(Constants.COMMUNITY,communityID,Constants.ADD);
doCreateCollection(communityID);
// Root level community, cancel out to the global community list.
cocoon.redirectTo(cocoon.request.getContextPath()+"/community-list",true);
getDSContext().complete();
cocoon.exit();
}
If I had time, I would experiment with a setup where the last aspect is the one calling cocoon.exit.
Best,
Jozef
[1]  You can retrieve them appending ?XML to the url or using url ../DRI/... (they are not the same though)
[2] See https://jira.duraspace.org/browse/DS-239
[3] There are more ways how to debug interpreted javascript in cocoon but one simple way is to add breakpoints to the underlying java e.g.,
cocoon.redirectTo(contextPath+"/submissions",true);
can be found in cocoon-flowscript-impl::FOM_Cocoon.jsFunction_redirectTo which can be found in External Libraries (depends on your IDE).
[4] I am not a cocoon expert (luckily) and I have neither the time nor the will to intimately debug a dead project so some guessing is involved.

one more exception comes from logging in as another eperson
org.apache.cocoon.ProcessingException: Could not read resource cocoon://DRI/5/admin/epeople
....
Caused by: java.lang.NullPointerException

        else if (cocoon.request.get("submit_login_as"))
        {
        	// Login as this user.
        	assertAdministrator();
        	result = FlowEPersonUtils.processLoginAs(getDSContext(),getObjectModel(),epersonID);

        	if (result != null && result.getOutcome().equals("success"))
        	{
        		// the user is loged in as another user, we can't let them continue on
        		// using this flow because they might not have permissions. So forward
        		// them to the homepage.
			var siteRoot = cocoon.request.getContextPath();
			if (siteRoot == "")
			{
				siteRoot = "/";
			}
        		cocoon.redirectTo(siteRoot,true);
				getDSContext().complete();
				cocoon.exit();
        	}
        }


Where is build.gradle on firebase please. Urgently

I'm new and I can't find build.gradle on firebase.
Please help

Thanks for replying. I got build.gradle when I decided to build android app but can't edit it.
Where do I find XML files or anything containing XML on firebase. Thanks in anticipation


 We would do it in small steps. This one would be about moving to pryproject.toml, which is a more modern way of doing it.

@zqtzt , I think this is enough for this PR. I'll add more in another PR. If you agree with the suggestions from this PR, I suggest 'squash n merge' instead of just merging; otherwise, it will be too many small commits.
Take a look at:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/merging-a-pull-request
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges
Let me know if you need help.

Thanks Gui! I merged all the commits. But it seems missed the file 'DC_OCEAN/_version.py'. Could you check it?

That file is created whenever you build it, including when you install with pip. Try pip install -e .


Use Java 1.2 HMCTS docker image

You need to bump the chart version as well. Then do another PR in flux after this is merged.


Ios travisci

test Travis CI local

Messages

:book:
has no jsfm file changed.

:book:
jsfm test finished.

  Generated by :no_entry_sign: dangerJS

Warnings

:warning:
No Changelog changes!

Messages

:book:
danger test finished.

  Generated by :no_entry_sign: dangerJS

Warnings

:warning:
No Changelog changes!

Messages

:book:
danger test finished.

  Generated by :no_entry_sign: dangerJS


training scripts should not evaluate test set

Currently, the MT training scripts do training (with dev set) and evaluation (on the test set) altogether.
Ideally, the training script should not touch test set because reporting numbers on the test set (even if it's not used for model selection) is already leaking test set information.
For example, in fairseq, train/validation (train.py) and evaluate (generate.py) are in two separate files.

@szha I would like to take this up. Can you give more context about this?

@avinashsai it's about updating the MT training scripts to only evaluate on the dev set to avoid leaking test set information until the users explicitly runs evaluation on the test set

Fixed via #1228


[JBEAP-10146] added permissions to deployed archive

@rsearls please see comment from @kanovotn

All permissions added were based upon an exception being thrown for it.

I meant for example:
// Needs to read applicationContext.xml file
new FilePermission("<<ALL FILES>>", "read"), // Curious why it needs to read permission for all files and not only for the one needed.
I'm not going to obstruct here, so if there is consensus on the approach in this commit please go ahead for merge.

I've added the requires rebase label as we now have a new version of the spec api jar pulled on master head and that contains security manager related fixes.

rebase complete

Once you merge the changes for RESTEASY-1946, I can rebase the changes into this branch and everything will be upto date.

@rsearls can this be fixed now?

These tests remain broken but not due to permissions.  See https://issues.jboss.org/browse/RESTEASY-1994

@rsearls , please see my comments on RESTEASY-1994. Moreover, would then the testsuite here expected to fail?

Btw, I suggest rebasing against master, just in case, to be sure the latest sources are used.

@asoldano, @kanovotn  I've rebased to master.   All tests run on unix when using jdk-10.  Test  org.jboss.resteasy.test.asynch.AsyncInjectionTest  hangs when run with jdk-8, but this issue is unrelated to
any permissions issue.


https://arxiv.org/abs/2003.02320

#https://github.com/yangkky/Machine-learning-for-proteins/issues/16

as I'm not a contributor, I can't label these issues.

This is just a repository I use for testing Manubot-related ideas, but I'll label this issue anyway to demonstrate the workflow.

awesome!  I was also just testing it as well.  glad to see the pr was merged.


Request support for updating IP address dynamically for IoT devices

Due to certain special circumstances, I am unable to assign fixed IP addresses to my IoT devices. Their IP addresses may change from time to time, such as from <IP_ADDRESS> to <IP_ADDRESS>. When this happens, my ability to control the devices and receive status updates becomes invalid.
Could you please let me know if there are any existing features I might have overlooked to address this issue?
Alternatively, I would like to request support for a feature that periodically requests device information updates from MiCloud to refresh the IP addresses.
Thank you for your assistance!

Hello,
thanks for the message. Unfortunately there is no feature currently which does what you requested. The ip address is fixed in the configuration and cannot be changed during runtime.
The usual scenario is that devices have assigned static ip addresses over the whole lifespan and it never changes. When a device ip periodically changes over the lifespan then it can have all kind of weird consequences which are hard to predict.
Currently I do not plan to provide such functionality as this would require some extensive just changes for a very rare edge case.
I can only recommended you to investigate the possibility to assign fixed ip address to your device. That option should be possible on pretty much every router.

Thank you for your prompt reply!
I’m wondering if forcing the use of MiCloud instead of Local requests in device settings could help mitigate this issue.
I’m not sure whether this approach would work effectively.
Do you have any suggestions or insights regarding this? Thank you again for your support!

As far as I remember correctly, when you have all the necessary info provided in the config and additionally set the forceMiCloud flag in the config, then the ip will not be used(although required in the config), a direct connection to the cloud will be made and all the data sync and actions will be executed over the cloud.

Thank you again for your detailed response!
If I’m not mistaken, I will keep this setting to avoid issues caused by changing IP addresses. I apologize for not having the permission to modify the router settings.
I will continue testing the forced use of MiCloud to see if it resolves the issue.
Thank you once again for your help!


feat!(c++): Refactor code structure to consolidate include and src into a single src directory

Reason for this PR

Our current project structure separates header files and source files into include and src directories, respectively. This approach, while beneficial in some contexts, adds complexity and overhead for smaller projects, and not fits to protobuf generated code. To simplify the structure and enhance maintainability, we need to consolidate all code into a single src directory.
What changes are included in this PR?

Here are some notable changes:

Consolidate the header and source code into single src directory.
Add subdirectory to classify the arrow and high-level related code.
Add api headers to let users to easily to include the function of c++ library.

Are these changes tested?

Yes
Are there any user-facing changes?

BREAKING CHANGE:

the header path and header name may change, like:

graphar/arrow_chunk_reader.h to graphar/arrow/chunk_reader.h
graphar/arrow_chunk_writer.h to graphar/arrow/chunk_writer.h

The copy way writer function has been moved from arrow_chunk_writer.h to chunk_info_writer.h

Hi, @lixueclaire, I create this PR to consolidate all code into a single src directory and brings some BREAKING CHANGE, may need your opinion about the changes, especially the naming of the directory and file:

I use high-level for our high level reader and writer directory name
Since we use arrow folder to separate the arrow reader and writer, so I change the arrow_chunk_reader and arrow_chunk_writer to chunk_reader and chunk_writer.
And also the api 's header names.

Hi, @lixueclaire, I create this PR to consolidate all code into a single src directory and brings some BREAKING CHANGE, may need your opinion about the changes, especially the naming of the directory and file:

I use high-level for our high level reader and writer directory name
Since we use arrow folder to separate the arrow reader and writer, so I change the arrow_chunk_reader and arrow_chunk_writer to chunk_reader and chunk_writer.
And also the api 's header names.

Hi, I think the APIs maybe a little confusing now. Originally, we have chunk_info_reader and arrow_chunk_reader and high-level graph collections. If we use basic_reader, it is not clear what is read. I suggest naming info_reader/meta_reader,arrow_reader/chunk_reader and high_level_reader/graph_reader.

Hi, @lixueclaire, I create this PR to consolidate all code into a single src directory and brings some BREAKING CHANGE, may need your opinion about the changes, especially the naming of the directory and file:

I use high-level for our high level reader and writer directory name
Since we use arrow folder to separate the arrow reader and writer, so I change the arrow_chunk_reader and arrow_chunk_writer to chunk_reader and chunk_writer.
And also the api 's header names.

Hi, I think the APIs maybe a little confusing now. Originally, we have chunk_info_reader and arrow_chunk_reader and high-level graph collections. If we use basic_reader, it is not clear what is read. I suggest naming info_reader/meta_reader,arrow_reader/chunk_reader and high_level_reader/graph_reader.

You means we should split reader and writer to info, arrow and high_leveland also split the same level reader/writer to different directory?

Hi, @lixueclaire, I create this PR to consolidate all code into a single src directory and brings some BREAKING CHANGE, may need your opinion about the changes, especially the naming of the directory and file:

I use high-level for our high level reader and writer directory name
Since we use arrow folder to separate the arrow reader and writer, so I change the arrow_chunk_reader and arrow_chunk_writer to chunk_reader and chunk_writer.
And also the api 's header names.

Hi, I think the APIs maybe a little confusing now. Originally, we have chunk_info_reader and arrow_chunk_reader and high-level graph collections. If we use basic_reader, it is not clear what is read. I suggest naming info_reader/meta_reader,arrow_reader/chunk_reader and high_level_reader/graph_reader.

You mean we should split reader and writer to info, arrow and high_leveland also split the same level reader/writer to different directory?

I'm talking about the file names under the api directory.

Hi, @lixueclaire, I create this PR to consolidate all code into a single src directory and brings some BREAKING CHANGE, may need your opinion about the changes, especially the naming of the directory and file:

I use high-level for our high level reader and writer directory name
Since we use arrow folder to separate the arrow reader and writer, so I change the arrow_chunk_reader and arrow_chunk_writer to chunk_reader and chunk_writer.
And also the api 's header names.

Hi, I think the APIs maybe a little confusing now. Originally, we have chunk_info_reader and arrow_chunk_reader and high-level graph collections. If we use basic_reader, it is not clear what is read. I suggest naming info_reader/meta_reader,arrow_reader/chunk_reader and high_level_reader/graph_reader.

You mean we should split reader and writer to info, arrow and high_leveland also split the same level reader/writer to different directory?

I'm talking about the file names under the api directory.

I have changed the naming under api, could you help reviewing again?


Quick glance at stats per queue

The old version had a nice way to display stats quickly , I did a quick example of how it could look. If anyone thinks this has merit I can try to make it look better.

This looks great, is it in a working state?

In my opinion, it makes the UI cluttered and full of details. (Look at your screenshot, there many dots that has 0 jobs => redundant info).
I've thought about an i icon which will open on click / hover a popover with these details.
This way has 2 benefits,

The UI remains clean
You don't need to pass the stats of all queues on each request, it can be fetched only when the popover is open.

WDYT?

I need a way to quickly see failed/waiting/complete. The other numbers are not as important. Could we add these without adding too much clutter?
I don't think an i works as well for me. I need to see at a glance if any queue is smashing failed jobs.

@Jivings how about opening a modal that will have stats of all the queues?

I’d almost rather have another view like a dashboard type of thing that we could put up on a screen , not sure others use cases

@lukepolo , an interesting idea!
Let's do it within a dashboard page

Yeah that would work for me too as long as I can get to the respective queue easily from the dashboard 👍

I need this feature too. A dashboard page or an option to switch queue list to displaying queues status.

Hello hello, is there feature being added soon?

I created something a bit simpler for this. The sidebar has a bar that represents the % of success/pending/failed jobs.

It means I can see if there are any queues that have serious problems that I need to take a closer look at. This works for me until we have a better solution.


servo controller sometimes doesn't update servo

it seems to happen when position is set twice in a row and the pulse is high when the second position is set. in this case the pulse never changes to the second duty cycle setting.
workaround added in v0.6.0 to fix the problem by continuously re writing the pulse so if one time it's set doesn't work, it will get set properly next time (I had written code to only use ledcwrite when the setting had changed, and removed this)


Unknown class ConfigError in fishnet.py

See: https://github.com/lazydroid/pgn-tactics-generator/blob/master/modules/fishnet/fishnet.py#L90
It looks like we lack a definition for the class ConfigError
Unless there was some "special" logic planned for the class, this simple addition would fix the issue:

class ConfigError(Error):
    """Error in configuration."""

Let me know if it is ok.

Yes I think you are right and the solution is good for our usecase.

Fixed by https://github.com/vitogit/pgn-tactics-generator/pull/13


Configure ESlint

Set up ESLint configurations separately for the backend and frontend directories of the project to enforce coding standards and improve code quality. Include provisions for ignoring specific files or directories where linting is unnecessary.
Tasks:

Backend:

Configure ESLint with appropriate plugins and rules for Node.js/Express development.
Ensure compatibility with the project's backend framework and dependencies.
Use .eslintignore to exclude files/directories such as node_modules, build artifacts, or other unneeded files from linting.

Frontend:

Configure ESLint with plugins and rules tailored for React (or the specific frontend framework in use).
Ensure compatibility with JSX, modern JavaScript, and styling standards.
Use .eslintignore  to exclude files/directories such as node_modules, build artifacts, or generated files from linting.

Additional Notes:

Use separate .eslintrc.cjs files for each environment (backend/ and frontend/).
Define shared rules in a root ESLint configuration, if applicable.
Document the .eslintignore structure and explain why certain files are excluded.

Deliverables:

Properly configured ESLint setup for both backend and frontend.
- .eslintignorefiles added and configured for both environments.
Documentation on how to run ESLint for each environment, including how ignored files are handled.

@mendacium-a11y  Please assign this issue to mee.

@Archi-shaw done, if you face any problem, we have a discord server too, you can ask for help there

@mendacium-a11y  Completed


Validate multiple values for facility name in AH API

Definition of Ready

[ ] Does this meet the INVEST criteria?
[ ] Does this have a clearly defined user?
[ ] Does this have an estimate?
[ ] Does this have acceptance criteria?
[ ] Does this have sufficient context (wireframes, business rules, etc.)?
[ ] Is this traceable to a feature, epic, or PI?

User Story
As a CAMPD API user I want to enter valid filter criteria for multiple facilities so that I can see results
Acceptance Criteria
Given that a user has entered filter criteria for facility name
When the API endpoint is executed
Then the system validates:
Validate that the text matches a valid facility name
Given that a user has entered one or more facility names in an upper-case or lower case format
When the API endpoint is executed
Then the system displays the records that match the criteria (containing data elements below)
Given that a user has entered one or more facility names without white space(s) before or after the delimiter
When the API endpoint is executed
Then the system displays the records that match the criteria (containing data elements below)
Given that a user has entered one or more facility names with white space(s) before or after the delimiter
When the API endpoint is executed
Then the system displays the records that match the criteria (containing data elements below)
Given that a user has entered one or more invalid parameters for facility name
When the API endpoint is executed
Then the system displays error message: TBD
Context
(User journeys, design mockups, architectural diagrams, business rules, data element definitions)
Data Elements
Query results will include:
ACCOUNT_NUMBER
ACCOUNT_NAME
ORISPL_CODE
PRG_CODE
VINTAGE_YEAR
TOTAL_BLOCK
START_BLOCK
END_BLOCK
STATE
EPA_REGION
OWN_DISPLAY
ACCOUNT_TYPE
Testing
Test Case:
Tester:
Definition of Done

[ ] Have all Acceptance Criteria been agreed to and validated by the scrum team?
[ ] Has the code been unit tested and peer reviewed?
[ ] Have the functional tests been executed?
[ ] Have all defects been reviewed and dispositioned, resolved, or deferred?
[ ] Has the user story been accepted by the Product Owner?
[ ] Is the user story ready to be deployed to the test/staging environments?

During sprint planning on 3/17 the team decided to complete the AH API by creating tickets #972, #973, #974, #975


Property 'cameraTargetBounds' not found on object of type 'AIRGoogleMap *'

I'm getting this error while trying to run:
Property 'cameraTargetBounds' not found on object of type 'AIRGoogleMap *'
Already tried to install manually and via Pods.
Any thoughts?
My Info:
Environment:
  OS: macOS Sierra 10.12.6
  Node: 6.9.2
  Yarn: 0.23.4
  npm: 3.10.9
  Watchman: 4.7.0
  Xcode: Xcode 9.1 Build version 9B55
  Android Studio: 2.2 AI-145.3537739

Packages: (wanted => installed)
  react: 16.0.0 => 16.0.0
  react-native: 0.50.4 => 0.50.4

Thanks

@luco how did you fix this issue?
react-native-google-maps.podspec uses GoogleMaps v2.1.1 but cameraTargetBounds comes with v2.2
And I have other issues with GoogleMaps v2.2

@yatagan Answered you on you issue.


Ways to evaluate if user abandoned the tour or left incomplete

My team was thinking about the ways to evaluate - if the user is navigating away from the page where tour is currently running and the next page is not the next in the workflow.
Any ideas what APIs of framework will help?
I know for one is hopscotch.getState().
Has anyone come across such a scenario.
I saw this implemented in Google Adwords.

hopscotch.getState() seems like a reasonable approach here to determine if a tour was running on the previous page after hopping to a new page. If it's not a multipage tour, you could make the assumption that any navigation away from the page isn't in the flow and bind an event to window.onbeforeunload. Otherwise, you'd need some code on the other page(s) that looks at hopscotch.getState() and catches that the new page is, or isn't, in the tour's flow.
I hope this helps!


UI for checks, the check lines boucing around for range options

Screen Recording 2019-12-17 at 1.50.01 PM.zip
Steps to reproduce:

Go to the checks create UI and fill out the necessary deets in the query
select the configure check
on the right, create the checks for crit/warn and then select a range option for info and now start moving the bars around above as seen in the video.

Expected behavior:
Lines not to bounce around
Actual behavior:
Lines bouncing around

Closing this since I can't repro


KAFKA-3224: New log deletion policy based on timestamp

adds a new topic-level broker configuration, log.retention.min.timestamp

if unset, this setting is ignored
setting this value to a Unix timestamp will allow the log cleaner to delete any segments for a given topic whose last timestamp is earlier than the set timestamp

KIP-47
JIRA

@bill-warshaw Thanks for the patch. It seems that KIP-47 has not officially been voted to accept? Will you bump up the voting thread? Also, it seems the KIP wiki can have more details on the expected behavior when log.retention.ms, log.retention.min.timestamp and log.retention.bytes are all set. We probably want to have the community agree upon that.

@becketqin unfortunately the voting thread has gone dormant.  I've bumped it multiple times but haven't received any response.  From the discussion thread it sounded like the community had a positive response, so I was hoping having an actual PR open would lend some weight to it.
👍  for more detail in the KIP wiki, I will add it later this week.

@bill-warshaw Yeah, I guess part of the reason people are not voting is because the wiki was not clear for a brand new reader. Once the wiki is polished, the voting thread will probably revive.

@becketqin what parts of the wiki do you think need more detail?  I took a look and I'm not sure what's missing

@bill-warshaw What happened to this feature?

@eitan27 it was superseded by KIP 107.  The functionality is available in AdminClient::deleteRecordsBefore


bower install problem

I've seen tree-model.js in bower but when I try it
the installed package contains no dist folder.
I mean, if you use npm install,there'd be a 'dist' directory under 'node_modeules'
but if you use bower install,there'd be no such directory under 'bower_components',why?

Sorry, no plans to support other package managers besides npm. See #11

Noted and thanks for your reply.


Overcoming payload length limitation of 155 bytes

Dear Mr. Westenberg,
First of all, I would like to thank you for creating the ESP-1ch-Gateway. I made extensive use of it and it is really valuable to me.
A problem I came across is that there seems to be a limitation with regard to the payload length. My end device sends 228 bytes long payload that doesn't get through the unmodified ESP-1ch-Gateway software. It seems that it only allows for up to 155 bytes long payloads.
I experimented with various modifications to the software and ended up with the following:
_txRx.ino
char b64[384];  // originally 256
loraModem.h
#define PAYLOAD_LENGTH      0xFF  // originally 0x40
#define MAX_PAYLOAD_LENGTH  0xFF  // originally 0x80
uint8_t payLoad[256];  // originally 128

struct LoraUp {
	uint8_t		payLoad[256];   // originally 128

configGway.h
#define _SPIFFS_FORMAT 1
#define _SPREADING SF7
#define _CAD 0
#define A_SERVER 0
#define A_MAXBUFSIZE 256  // originally 192
#define A_OTA 0
#define _STAT_LOG 0
#define _LOCALSERVER 0
#define _TRUSTED_NODES 0
#define _TRUSTED_DECODE 0
Basically, I have increased various arrays which I thought might be too small. Additionally, I tried to turn off just everything that is not essential to the uplink operation. I didn't test the downlink operation, however. With these modifications the 228 byte long end-device payload somehow gets through.
Although the modifications seem to work, I am well aware that my insight into the internal workings of the software is insufficient. It would be most welcome and appreciated if somebody could do that in a qualified manner in order to properly extend the functionality and overcome the limitations of the software.
I'm not sure if that's an issue, but I came across currentAddr > 64 and payLength>=128 in the _loraModem.ino that might also need some attention.
Best regards,
Radovan

I will have a look.
Thanks,
Maarten

Dear Mr. Westenberg,
Thank you for your prompt response.
As much as I understand it is necessary to limit the on-air transmission time. That’s where the maximum data payload size limitation comes from, which is of course related to the data rate and conversely to the spreading factor / bandwidth configuration.
Please allow me to draw your attention to pages 16 and 18 of the document
https://lora-alliance.org/sites/default/files/2018-04/lorawantm_regional_parameters_v1.1rb_-_final.pdf
Best regards,
Radovan


More realistic example using FileShare to download images

Hi I am looking for a more realistic example of Node.JS SDK for File Share client API that showcases downloading. something like a image. or pdf file and not just a simple text file.
My problem is with the download example it does not show how to treat binary content.
In particular the example:
basic auth
And the function:

async function streamToString(readableStream: NodeJS.ReadableStream)

I would like to see an example on stream to byte array.

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

ID: 764e52a8-c412-1c77-bb9f-9db165c8b4f1
Version Independent ID: bea79442-2590-5fb2-34b5-77fa9d065e4e
Content: Azure Storage modules for JavaScript
Content Source: docs-ref-services/storage-overview.md
Service: storage
Product: azure
Technology: azure
GitHub Login: @maggiepint
Microsoft Alias: magpint

Hi I found what I wanted with the download to buffer method in the FileClient.

Excellent


Bookinfo examples app details/reviews always unavailable.

To repro:
make build.exampleapps (this should build all the example app images with the current release tag 0.4.2)
export A8_TEST_ENV=examples
export A8_RELEASE=0.4.2
docker-compose -f examples/docker-controlplane.yaml up -d
docker-compose -f examples/docker-bookinfo.yaml up -d
curl -i -s http://localhost:32000/productpage/productpage (or open in a web browser)
Should see that the details/reviews are always unavailable.
docker logs productpage container
Seeing errors in the log:

time="2017-02-22T14:40:43Z" level=info msg="Creating Discovery REST API on :6500" module=SIDECARREGISTER
time="2017-02-22T14:40:43Z" level=info msg="Starting service discovery REST API on :6500" module=SIDECARREGISTER
[2017-02-22 14:40:43.405][13][warning][main] initializing epoch 0 (hot restart version=4.2490504)
[2017-02-22 14:40:43.461][13][critical][main] error initializing configuration '/etc/envoy/envoy.json': key 'route_config' missing or not an integer in 'config'
time="2017-02-22T14:40:43Z" level=debug msg="HTTP HealthCheck: http "
time="2017-02-22T14:40:43Z" level=debug msg="HTTP HealthCheck: http "
time="2017-02-22T14:40:43Z" level=info msg="Launching app '/usr/bin/run_filebeat.sh' with args ''"
time="2017-02-22T14:40:43Z" level=info msg="Launching app 'python' with args 'productpage.py 9080 http://localhost:6379'"
[2017-02-22 14:40:43.799][22][warning][main] initializing epoch 1 (hot restart version=4.2490504)
time="2017-02-22T14:40:44Z" level=debug msg="Envoy terminated: exit status 1"
Error opening syslog:  Unix syslog delivery error
time="2017-02-22T14:41:14Z" level=info msg="Starting Amalgam8 service registration agent"
time="2017-02-22T14:41:14Z" level=debug msg="Attempting to register service with Amalgam8"

The integration test automation is passing.
Added some default rules:
a8ctl-beta-linux rule-create -f testing/test-scripts/default_routes.yaml
Still fails to display details/reviews.  See this in the product page log:

[2017-02-22 14:48:03.650][101][warning][main] initializing epoch 2 (hot restart version=4.2490504)
[2017-02-22 14:48:03.650][22][critical][assert] assert failure: base_message->length_ == sizeof(rpc_class): /source/source/exe/hot_restart.h:150
time="2017-02-22T14:48:04Z" level=debug msg="Envoy terminated: signal: aborted (core dumped)"

Fixed by https://github.com/amalgam8/amalgam8/pull/525


Adds a image name inserter interface and HTTP implementation

The Docker registry search component needs to be informed by anything that does
sous build of the association betwen an image name and the associated source
version (repo,offset,version) triple.  This requirement is the result if how
the Docker v2 registries work. Until now, the assumption was that the server
would be doing the builds, but it's increasingly clear that this won't always
be the case. In line with the HTTPStateManager, this PR adds an "Inserter"
interface, and a second implementation that sends assocations over HTTP to the
server. The existing, direct Sqlite Inserter or the new HTTP Inserter are
selected based on whether a Server URL is configured.
If a Server is configured, the HTTPNameInserter is used transparently by sous build to notify the server of the docker images that Sous builds

Current coverage is 59.13% (diff: 75.94%)

Merging #187 into master will increase coverage by 0.19%

@@             master       #187   diff @@
==========================================
  Files           117        119     +2
  Lines          6165       6238    +73
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           3634       3689    +55
- Misses         2225       2235    +10
- Partials        306        314     +8

Powered by Codecov. Last update c60db3f...0a742b6


Update request: shotcut 24.01.13 → 24.01.28

Package name: shotcut
Latest released version: 24.01.28
Current version on the unstable channel: 24.01.13
Current version on the stable/release channel: 21.09.20
[X] Checked the nixpkgs pull requests

Notify maintainers
@cillianderoiste
@woffs
@peti
Changelog: https://github.com/mltframework/shotcut/releases/tag/v24.01.28

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

shotcut is at 24.02.19 in nixpkgs meanwhile.


Setup downstream testing of edges-analysis

While we should be following semantic versioning, there is always the opportunity for errors. If the API is changed here, edges-analysis will be broken. This shouldn't necessarily mean we can't merge changes in edges-cal, but it should at least warn us to update edges-analysis.

Done.


Find a way to avoid writing O(n^2) conversions

This is the current state of the ^^ syntax in parseback.  It is done in this way to achieve two goals:

The parameter to ^^ should be an arity-n function, where n is the number of chained type parameters within the target Parser of the form A ~ B ~ ... ~ N
The parameter to ^^should be fully type inferred, allowing for the use of lambdas without explicit type parameters

The reason there is a quadratic number of cases stems from the fact that we need to provide a separate, specific syntax class for each possible reassociation of the ~ type constructor.  Obviously it would be much nicer to just write a linear number of cases (one for each arity, presumably) and then build some implicit machinery which would convince implicit search to generate the quadratic portion, but my efforts in that direction have thus far been unsuccessful.
Paging @milessabin and @travisbrown for thoughts and assistance if they feel so inclined!

Possibly related SO Q&A.

@milessabin Similar, but not quite the same.  This would all actually be quite easy if the sequential combinator produced a Parser[A :: B :: HNil] rather than a Parser[A ~ B], but I want to avoid the dependency if I can.  It would also be very easy if I didn't have to worry about associativity, which is where things get especially tricky.  That particular SO question deals with pattern extraction, which has explicit associativity.  Because I have to infer associativity and types at the same time, guided solely by the Parser[E] (where E has some form) and the arity of the FunctionN type given, it gets a little more annoying.
Oh, tiny bit of background: type ~[+A, +B] = (A, B)
tl;dr:  I tried what you suggest, and it doesn't leave enough structure in place for scalac to infer both associativity and specific types.  I still think that the answer is probably somewhere along that line, but the direct approach didn't work for me.


fix: runner caching code that it uses

What this PR does / why we need it
Which issue(s) this PR fixes

ok      ocm.software/ocm/api/utils/template     12.614s
FAIL
make: *** [test] Error 1

It should have failed 😢

Alright, let's hope that it fails now...


Which smoother is the best to detect and remove outliers?

Hi Marco! Thank you for an awesome package!
I have a quick question for you. Since you're obviously well-rehearsed in time-series smoothing, which particular smoother will you recommend as a default option?
In particular, I have a training series y_train (which is potentially very short, <50 observations), and I use some univariate forecasting model to forecast H-periods ahead, resulting in an H-dim vector y_hat. Since my training vector is not always very long, some flexible methods give me crazy results for y_hat, which I want to reset to some sensible value.
I could do, for instance,
# Instantiate smoother
smoother = ConvolutionSmoother(window_len=0.1*len(y_train), window_type='ones')
smoother.smooth(pd.concat([y_train, y_hat], axis=0)

# Get threshold
threshold_lower, threshold_upper = smoother.get_intervals('sigma_interval', n_sigma=2)

# Subset to match length
threshold_lower = threshold_lower[0,-len(y_hat):]
threshold_upper = threshold_upper[0,-len(y_hat):]

and then use these thresholds. Do you have any recommendations in this setup?

Hi, thanks for your support.
I think that there isn't a correct answer here. The choice is related to your needs and to the domain of analysis. If it's not computer expensive you can try different smoothers on a part of your data and see what happens.
My suggestion is always to start with ConvolutionSmoother (as u did) for its simplicity and adaptability.

Hi Marco! Thank you for an awesome package!
I read your article "Real-Time Time Series Anomaly Detection". So, please give me an advice that the recommendation "window_len" for real time detect univariable interger of 1000 point data size. thanks


[Bug] chat_knowledge ,当向量数据库为Milvus时，通过URL上传的文档是乱码的

Search before asking

[X] I had searched in the issues and found no similar issues.

Operating system information
Linux
Python version information
3.10
DB-GPT version
main
Related scenes

[ ] Chat Data
[ ] Chat Excel
[ ] Chat DB
[X] Chat Knowledge
[ ] Model Management
[ ] Dashboard
[ ] Plugins

Installation Information

[X] Installation From Source

[X] Docker Installation

[ ] Docker Compose Installation

[ ] Cluster Installation

[ ] AutoDL Image

[ ] Other

Device information
device:gpu
gpu count:2
gpu memory:20G
Models information
LLM: vicuna-13b-v1.5
Embedding model:text2vec-large-chinese
What happened
向量数据库为chroma时，通过Document或URL上传的文件都是正常的。但当向量数据库指定为Milvus时，同一个文件,通过Document上传的文件是正常的，但是通过URL上传就是乱码的
What you expected to happen
q
How to reproduce
q
Additional context

Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

pdf或word文档都这样

pdf或word文档都会出现这样的问题

只是url有问题是吗？


Is it possible to trigger on focus of a descendant element?

I've got a custom date picker field that utilizes three separate inputs for day / month / year. I would like a popover containing a calendar to be able to show when any of these have focus.
As it seems right now the popover works only when the root element is focused (and is made focusable by adding tabindex="0"). I know that the focus event does not bubble and attempting to manually bubble the focus event with Element.dispatchEvent sadly does not work.
I tried manually controlling the popover with trigger="manual" + an :open binding however I need to prevent open from becoming false whenever clicking inside the popver or inside of one of the active fields. I can probably get this to work with some amount of effort but it would be nice if the library could help out in some manner to make implementing this behavior less manual.
Any ideas?
Edit: I'm using v3 alpha as the new setup makes things a bit nicer. (Nice work!)

I know that the focus event does not bubble
You could use focusin which bubbles.

I've found what's going on:
Inside the $_show internal method, you can see some code inside some of those requestAnimationFrame calls:
// Show the tooltip
requestAnimationFrame(() => {
  if (this.hidden) {
    this.hidden = false
    this.$_hide()
    return;
  }

  if (!this.$_isDisposed) {
    this.isOpen = true // <<<<<<<<<<<<
  } else {
    this.dispose()
  }
});

You can see there is a statement finally changing the value from isOpen to true, which happens when requestAnimationFrame is called. Notice it is inside another requestAnimationFrame.
Anyway, this change is happening in a async way so the parent component doesn't know when the popover is actually open.
Possible solutions:

Emit an event right after that change. You could use apply-show or another event. Then listen to this event and focus some element inside the popover.

// Show the tooltip
requestAnimationFrame(() => {
  if (this.hidden) {
    this.hidden = false
    this.$_hide()
    return
  }

  if (!this.$_isDisposed) {
    this.isOpen = true
    this.$emit("apply-show")
  } else {
    this.dispose()
  }
})

For a temporary solution, you could access the internal reference, using ref and then watch that variable, when its value is true you could safely focus on a element inside the popover.

<template>
  <v-popover ... ref="popover">

Click me

    <template #popover>
      <input ref="input" />
    </template>
  </v-popover>
</template>

Ha I forgot about this issue. I found some way to work around what I was doing (it may have been focusin I don't recall). Good investigation work. I'll keep this around for a while as I'll likely be coming back to this in the next few weeks oddly enough.