FaceRecognition from folder

Hi,
I have been trying to figure out how I can get an image from the web cam and compare that to a folder with different faces in it and validate that the face from the web cam is in that folder of faces.
I have figured out how to get the web cam image using OpenCVSharp.
But can not figure out how to verify the web cam face is in a source folder
Thank you
Keith

you can check https://github.com/takuya-takeuchi/FaceRecognitionDotNet/wiki/Quickstart#usage
you can load image from directoryl

How can I improve the speed.
I merge all the photos in the folder into one image
If there is one file the system takes 1.3 seconds but if i run 3 or more images it takes 3+ seconds
Do you have any suggestions?
using (Image imageB = FaceRecognition.LoadImageFile(@"C:\temp\Merge.jpg"))
{
FaceEncoding[] encodingA = fr.FaceEncodings(WebCapture).ToArray();
if (encodingA.Length == 0)
{
isMatching = false;
goto updateui;
}
            FaceEncoding[] encodingB = fr.FaceEncodings(imageB).ToArray();

            const double tolerance = 0.6d;
            bool match = FaceRecognition.CompareFace(encodingA.First(), encodingB.First(), tolerance);
            if (MatchFound == false)
                MatchFound = match;
        }
    updateui:
        DateTime endtime = System.DateTime.Now;
        var diffInSeconds = (endtime - starttime).TotalSeconds;
        this.label1.BeginInvoke((MethodInvoker)delegate () { this.label1.Text = "Match Found: " + MatchFound.ToString() + " in " + diffInSeconds; });

@khinklenj
Do you always create encode data from existing image when new image comes?
You can serialize face encoding data and you can skip findlocation and faceencoding process.
https://github.com/takuya-takeuchi/FaceRecognitionDotNet/blob/1d99e43591f6996910ab1a2abc0facbdd1ee24f4/src/FaceRecognitionDotNet/FaceRecognition.cs#L254
FaceEncoding method calls FaceLocation process if knownFaceLocation is null.

@khinklenj
Do you always create encode data from existing image when new image comes?
You can serialize face encoding data and you can skip findlocation and faceencoding process.
https://github.com/takuya-takeuchi/FaceRecognitionDotNet/blob/1d99e43591f6996910ab1a2abc0facbdd1ee24f4/src/FaceRecognitionDotNet/FaceRecognition.cs#L254
FaceEncoding method calls FaceLocation process if knownFaceLocation is null.

no response


[BUG] Tier0 vs Tier0_client

Describe the bug
GmodDotNet uses tier0's Msg function to log messages, but tier0 is on windows, and tier0, tier0_client on non-windows
To Reproduce
use not windows gmod client/server
Expected behavior
uses tier0_client's Msg on CLIENT, and tier0's Msg on SERVER
Platforms where you've faced the bug

[x] SRCDS Linux
[ ] SRCDS Windows
[ ] Garry's Mod Windows
[x] Garry's Mod Linux
[x] Garry's Mod macOS

Additional context
strange

TO DO:

On Linux, GmodDotNet runtime must detect whether it is running under game or dedicated process and resolve proper version of tier0.
On macOS, there is only libtier0.dylib but such shared lib has special location: [garrysmod root folder]/GarrysMod_Signed/Contents/MacOS/libtier0.dylib, where GarrysMod_Signed is a signed macOS Package Bundle of the game (for more info on Apple Package Bundles see https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1). GmodDotNet runtime must resolved the library from this path.


Need to support answering multiple questions from single question set for account recovery

Is your suggestion related to an experience ? Please describe.
Current user recovery functions by having to select one question from a question set and answer it by user. Admin can define multiple question sets.
We need to improve this logic to have single question set, and allow answering unique questions from this set by the user.
This allows admin to configure set of questions, and user select any minimal number of questions among it to be filled to get account recovery.
Describe the improvement
Currently the answers are saved as an independent claim value having the question and answer.  This works well in proposed improvement as well.
However we need a tenant wise flag to virtually duplicate a single question set to multiple sets and display accordingly on the UIs.
The recovery logic will function without modification.
Additional context

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


[DOCFIX] Fix the parentheses in Alibaba link

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/9074/
Test PASSed.


Add human friendly name for irregular companies classifier

Changes Unknown when pulling 1a36dc0b4d26450753a80e742cf3041228f7e217 on cuducos-irregular-companies-friendly-name into ** on master**.

Hey @cuducos, is there something I can do about this PR?
Is it a suggestion and its mergeable?
Does @jtemporal know something about what is that?
<3

Hey @cuducos, is there something I can do about this PR?

Test it and, if it works as expected, merge it ; )
Depending on what tou have in your development database this link should show the human readable in the UI: https://localhost:8000/#/documentId/5570909

Does @jtemporal know something about what is that?

She requested that yesterday ; )


drawPoints unknown error

I am getting an error on DartPad with this simple code.

On Android the same code is working ok.
Is there any idea of why it is not working?
import 'package:flutter/material.dart';
import 'dart:ui';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: CustomPaint(painter: MyCustomPainter()),
        ),
      ),
    );
  }
}

class MyCustomPainter extends CustomPainter {
  @override
  void paint(Canvas canvas, Size size){
    try{
    // working
    canvas.drawLine(
      Offset(0,0),
      Offset(300,300),
      Paint()..color = Color(0xffff0000));

    // not working
    canvas.drawPoints(
      PointMode.points,
      [Offset(0,0),Offset(300,300)],
      Paint()..color = Color(0xffff0000));
    }
    catch(ex){
      print(ex.toString());
    }
  }
  @override
  bool shouldRepaint(MyCustomPainter arg) => true;
}

If I modify the paint arg for rendering the points I can see them:
import 'package:flutter/material.dart';
import 'dart:ui';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: CustomPaint(painter: MyCustomPainter()),
        ),
      ),
    );
  }
}

class MyCustomPainter extends CustomPainter {
  @override
  void paint(Canvas canvas, Size size){
    try{
    // working
    canvas.drawLine(
      Offset(0,0),
      Offset(300,300),
      Paint()..color = Color(0xffff0000));

    // also working
    canvas.drawPoints(
      PointMode.points,
      [Offset(0,0),Offset(300,300)],
      Paint()..color = Color(0xff0000ff)..strokeWidth=10);
    }
    catch(ex){
      print(ex.toString());
    }
  }
  @override
  bool shouldRepaint(MyCustomPainter arg) => true;
}

I believe this is an issue for the main flutter repo, not for DartPad itself.


Payment rollups not recalculating in batch

I set up NPSP customizable rollups based on Payments rather than Opportunities. I realized after calculating them for the first time that I was missing a record type filter. I added it and now new opportunities work correctly, and if I click the "Recalculate Rollups" button on an account it corrects the rollup amount for that one account, but running the Rollup Donations Batch doesn't recalculate everything so all the other accounts are still wrong. Shouldn't running the full Recalculate Batch also update payment-based rollups? Thanks!

Hi @karenzelevinsky We don't offer support via GitHub issues. Please log a support case if you need help from Salesforce or post in an NPSP group in the Trailblazer Community if you want help from the community.


I guess just push it and see what happens, I really was just bored lmao

lol

It doesn't seem to show any errors, running it, it also has no problem, so uh, I suppose it should work fine.


Filtering

Hello,
Wanted to make suggestion or even get some guidance in adding the filter table capability to the attribute table?
Thank you,

A new separate widget would probably need to be created. dgrid does not have any filtering capability or any ui for this.


_execute_tool_and_check_finality 结果给回调参数，这样就可以提前拿到结果信息，去做数据解析判断做预判

_execute_tool_and_check_finality 结果给回调参数，比如做ws或者其他的情况的时候，就比较灵活的可以提前处理，在多个agent执行的情况下，不需要等到 crew_cli.kickoff_async 返回结果在处理

Disclaimer: This review was made by a crew of AI Agents.
Code Review Comment for PR #1716
Overview
The recent modifications to src/crewai/agents/crew_agent_executor.py introduce callback functionality in the _execute_tool_and_check_finality method. This enhancement aims to facilitate more dynamic processing of tool execution results, allowing users increased flexibility for operations following tool execution.
Code Quality Findings
Positive Aspects

Focused Changes: The implementation effectively introduces functionality without significantly altering the existing code flow, demonstrating a commitment to preserving backward compatibility.
Conditional Callback Handling: The optional execution of the callback only when defined helps avoid unnecessary computations and retains the current operational logic.

Identified Issues and Recommendations

Indentation Inconsistency:

Issue: The newly added callback execution line uses inconsistent indentation (2 spaces) compared to the rest of the file (4 spaces).
Recommendation: Standardize to 4 spaces to maintain readability.

if self.step_callback:
    self.step_callback(tool_result)

Missing Type Hints:

Issue: The callback execution lacks type annotations.
Recommendation: Include type hints to improve code clarity and enforce type safety.

if self.step_callback:  # type: Optional[Callable[[ToolResult], None]]
    self.step_callback(tool_result)

Error Handling:

Issue: There is no error handling encapsulating the callback execution, which could lead to uncaught exceptions during runtime.
Recommendation: Implement try-except to catch and log exceptions occurring during the callback.

try:
    if self.step_callback:
        self.step_callback(tool_result)
except Exception as e:
    logger.warning(f"Step callback execution failed: {str(e)}")

Lack of Documentation:

Issue: The new callback functionality is not documented, which may lead to confusion.
Recommendation: Add descriptive docstrings to _invoke_loop method explaining the purpose and usage of the callback.

"""
Execute the tool and process results with optional step callback.
Args:
    formatted_answer: The formatted answer object to process
Returns:
    ProcessedToolResult containing execution results
Note:
    If step_callback is defined, it will be called with tool_result before formatting
"""

Suggestions for Improvement

Refactor Indentation: Ensure consistent indentation across the function to promote readability.
Incorporate Type Safety: Utilize type hints effectively throughout the new functionality for better code clarity.
Enhance Error Resilience: Robustly handle potential callback failures to prevent unexpected application behavior.
Improve Documentation: Include comprehensive documentation to clarify the purpose and execution process of the callback mechanism.

Historical Context and Related PRs
Related PR discussions might have emphasized the importance of error handling and clear documentation, especially in dynamically invoked methods. Relevant historical context indicates that previous enhancements focused on maintaining flexibility within the agent execution process without compromising stability or performance.
Conclusion
Overall, the changes introduced by PR #1716 are a commendable step towards enhancing the functionality of the callback mechanism in tool execution. Addressing the identified quality concerns around error handling, consistency, and documentation will elevate the robustness and maintainability of the code. Continued adherence to code quality standards will ensure that the code remains accessible and understandable for future developments.
Action Items for the Developer:

Implement the suggested changes regarding indentation, type hints, error handling, and documentation.
Consider writing corresponding unit tests to validate callback functionality and error handling processes.
Ensure to review past pull requests for lessons learned regarding documentation and error handling to reinforce best practices.

Thank you for your efforts in continuously improving the codebase!

Thank you @fuckqqcom !


OLS-884: use the bug-free latest setuptools on CI

Description
OLS-884: use the bug-free latest setuptools on CI
Type of change

[ ] Refactor
[ ] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[x] Configuration Update
[ ] Bump-up dependent library
[ ] Bump-up library or tool used for development (does not change the final image)

Related Tickets & Documents

Related Issue #OLS-884

/override "Red Hat Konflux / ols-enterprise-contract / lightspeed-service"
/override "Red Hat Konflux / ols-e2e-tests-rosa / lightspeed-service"

/retest

/lgtm

/approve


add "are you sure" popup conformation  for "clear recently opened"

for speed of human actions it is possible clear these data mistakenly and it is not good thing
it must double check for this clear action to prevent mistakenly clearing

Previously requested in #125727 but didn't get enough upvotes to progress.

@mikejpoole you may like to upvote the opening post on this thread since you created the previous issue, which didn't make it past Backlog Candidate.
@lusicsmusics1 remember to add your upvote to your opening post. You may need to lobby colleagues for their votes too.

@gjsjohnmurray thanks, I've upvoted (i.e. gave a thumbsup reaction to the issue description).


Add Azure Static Web Apps DNS

The DNS reference for Azure Static Web Apps is missing.

@epomatti : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@asudbring  - Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
Thanks!
#label:"aq-pr-triaged"

@asudbring - Can you review this old PR and determine whether it needs to be closed or merged?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.

This has been updated in another PR
#please-close

#please-close


DT Tutorials Typos changed

Changes in SQL for managing disk space; Added note in query processing part 1 and changes in picture and SQL in Query processinf part 2

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[sw/silicon_creator] Use OTP library in shutdown module

[sw/silicon_creator] Use OTP library in shutdown module

Follow the redaction policy in #7353 (no redaction in RMA and
test unlocked lifecycle states).
Use the OTP library to read from OTP.

The OTP and lifecycle libraries use sec_mmio underneath the hood.
Since sec_mmio can trigger a call to shutdown_finalize we need to
avoid calling it from shutdown_finalize. To acheive this a new
shutdown_redact_policy function has been added that determines
the redaction policy to apply without using either library.

It might be cleaner to expose getters and setters for the shutdown_redaction_level global variable in the API . This is currently a bit gross.

I think we should also remove the lc_state parameter from shutdown_init() and call it before sec_mmio_init() in mask_rom_init().

@alphan The alert handler configuration performed by shutdown_init() has a dependency on sec_mmio (OTP reads and alert handler controller writes both go through sec_mmio) and also depend on the lifecycle state. I don't think we can reorder things as they stand.


Duplicate keys are being created after namespace migration in follows widget

Describe the bug
After migrating to the new namespace code. Instead of updating the old key, Duplicate new key is being created.
To Reproduce
Steps to reproduce the behavior:

First I installed the latest playstore version of wavi app
Then I added atsigns to the following list and followers list
And then checked the keys from the terminal
data:["at_followers_of_self.wavi@ helplessfuchsia","at_following_by_self.wavi@ helplessfuchsia
Installed the wavi app by pointing to the namespace-changes branch of the at_follows package
Checked the keys from the terminal

"public:at_followers_of_self.wavi@ helplessfuchsia",
"public:at_following_by_self.wavi@ helplessfuchsia",
"public:followers_of_self.at_follows@ helplessfuchsia",
"public:following_by_self.at_follows.wavi@ helplessfuchsia",
"public:following_by_self.at_follows@ helplessfuchsia"
Expected behavior
Old key should be migrated to the new key format. .at_follows.wavi
Screenshots
Smartphone (please complete the following information):

Device: [e.g. iPhone11]
OS: [e.g. iOS14.1]
Browser [e.g. stock browser, safari]
Version [e.g. 59]

Were you using an @application when the bug was found?

@ wavi

Additional context
Branch-
at_settings- trunk
at_follows - namespace-changes

The issue was because of the sdk refactoring changes being included along with the namespace changes. I have created a separate branch with only namespace changes compatible to trunk.Now the issue is fixed.

Tested the bug fix in the branch "namespace_changes_without_sdkrefactoring". Now the old key is being migrated to the new key format as expected.
Testing Notes:

Installed the current version of the play store app and added some atsigns to the following and followers list(Both following and followers list as public)
Checked the key format by connecting to the terminal

at_followers_of_self.wavi@ bluegreen129slow","at_following_by_self.wavi@ bluegreen129slow"
3. Now changed the pubspec.yaml to point to the "namespace_changes_without_sdkrefactoring branch" of at_follows_flutter and installed.
4.  Checked the keys from the terminal.
scan
data:["followers_of_self.at_follows.wavi@ bluegreen129slow","following_by_self.at_follows.wavi@ bluegreen129slow","image.wavi@ bluegreen129slow","lastname.wavi@ bluegreen129slow","location.wavi@ bluegreen129slow","locationnickname.wavi@ bluegreen129slow","phone.wavi@ bluegreen129slow","publickey@ bluegreen129slow","signing_publickey@ bluegreen129slow"]
Scenario -2 (Followers list as private and Following list as public)
Keys before migration
"public:at_following_by_self.wavi@94zeher3ultimate", "@94zeher3ultimate:at_followers_of_self.wavi@94zeher3ultimate"
Keys after migration
followers_of_self.at_follows.wavi@ 94zeher3ultimate","profilepic.buzz@ 94zeher3ultimate","public:about.wavi@ 94zeher3ultimate","public:custom_youtubeurl.wavi@ 94zeher3ultimate","public:discord.wavi@ 94zeher3ultimate","public:email.wavi@ 94zeher3ultimate","public:firstname.wavi@ 94zeher3ultimate","public:following_by_self.at_follows.wavi@ 94zeher3ultimate"


Improve load-based rebalancing heuristics

Background: https://airtable.com/tblD3oZPLJgGhCmch/viw5Jsp2TrY3it9Yr/recJ5HH5C6jeCwZkI?blocks=hide
PM: @awoods187
Eng: @bdarnell

Moved to 19.2.

Not building.


Make FlexibleSpaceBar offset configurable

In the current implementation, the offset from the start is a hardcoded value (72.0). In the app I am developing, I need to change this and I see no easy way to do it. I propose to make it configurable but to maintain the current 72.0 as a default (not to break existing apps).
There is already old PR with the same change #22548 but currently seems forgotten and has merge conflicts.

Related #20339


tools: Use Union instead of | for Python 3.9 support

Commit Message: tools: Use Union instead of | for Python 3.9 support
Additional Description: 3.9 is the default installed on macOS, so this makes it a bit easier to run the script
Risk Level: Low
Testing: Local
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
Signed-off-by: JP Simard<EMAIL_ADDRESS>

@jpsim you will need to run the code check tool (the other one)
i run it so...
$ bazel run //tools/code:check -- --fix

...or grab the diff from the azure pipeline


Rebuild for pypy (redux)

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Trying a manual re-run of #16 because I'm too impatient to wait for the bot-rerun after the infra refactor (it arrived some time later... Closes #24)
#16 itself was a rerun of #3, where the problem was passing conda config --set channel_priority strict into just  the pypy-job that's mixed up with all the others.

@conda-forge/help-pypy
Any experience with pypy + swig? The build runs through but fails at import.
(note: the avx2 stuff is a headfake due to #23, the actual failure happens here)

There are projects that are using pypy + swig. The failure is not specific to PyPy, everything is failing, even on CPython. It seems _swigfais.so is being built. Is that right? Shouldn't it be _swigfais.cpython-38-x86_64-linux-gnu.so?

Hello @mattip, thanks for the quick reply. This feedstock is - contrary to most others - not split by python version (because it's multi-output and libfaiss does not depend on python; all python versions get built in one CI job), and is in fact only failing on pypy - you can compare with the CI on current master.
Since _swigfaiss.so is purely internal to faiss, we have not interfered with the build process. We are however also building a shared libfaiss.so, but I'm not sure about the so-naming - this aspect hasn't been changed since the original staged-recipes PR, and I don't know why (resp. how) the naming should be changed...

There are projects that are using pypy + swig.

Any pointers which ones? Resp. any experience from setting this up?

There should be no difference between PyPy and CPython when compiling with SWIG, baring bugs in PyPy.
Are you building a stable abi c-extension module wth the abi3 python tag? PyPy does not support that yet.

m2crypto uses SWIG and builds on PyPy https://gitlab.com/m2crypto/m2crypto

Thanks for the link. We're basically reusing almost all the cmake-infrastructure from upstream (including their bare-bones setup.py), whereas m2crypto just does it's thing in setup.py (and passes lots of options to swig).
Bit hard for me to debug, I have to admit.

I find it hard to navigate the logfile. Could you suggest a way to move this forward?

Hey @mattip, I can understand that very well. I found it relatively easy to use the azure log-search to find instances of "pypy", of which there are few (basically once during environment setup for the build phase, and once for the setup during the test phase), and the pertinent logs follow right after.
If that doesn't help, I can artificially butcher the CI for this PR so that only pypy gets built.

I am looking at the raw log. About ten lines from the end of that file I find
ModuleNotFoundError: No module named 'faiss.swigfaiss_avx2'

I don't see any other references in the log to swigfaisss_avx2. Is it missing or simply misnamed for PyPy? How is it built? What is the actual c-extension module name that appears in the faiss pakcage directory? Is there a way I can reproduce the build locally or ssh into the build to see what is going on?

I mentioned the avx2 part above:

(note: the avx2 stuff is a headfake due to #23, the actual failure happens here)

Which is just from .swigfaiss import *.

How is it built?

The build-pkg.sh file is pretty short and heavily exercises the upstream CMakeLists.txt (+ the toplevel one).

Is there a way I can reproduce the build locally or ssh into the build to see what is going on?

I'm guessing you're familiar with the conda-forge infrastructure from previous exposure? At least I don't know of a way to ssh into the VMs that are used for CI, but with a windows box (or VM), you could very closely (or even perfectly) mimic the conda-forge setup, clone the PR and run conda build recipe.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Ahh, OK, so the real error is
2020-12-15T22:03:26.8345482Z     from .swigfaiss import *
2020-12-15T22:03:26.8346803Z   File "/home/conda/feedstock_root/build_artifacts/faiss-split_1608068350278/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/site-packages/faiss/swigfaiss.py", line 13, in <module>
2020-12-15T22:03:26.8347549Z     from . import _swigfaiss
2020-12-15T22:03:26.8348067Z ImportError: cannot import name '_swigfaiss'

So the _swigfaiss c-extension module cannot be found. Looking around the log, I think it is being built as _swigfaiss.so. That won't work on PyPy, it does not have valid tags.
In more detail: the following code
>>> import importlib
>>> importlib._imp.extension_suffixes()

prints the valid suffixes for c-extension modules that the interpreter can import. This prints
['.cpython-38-x86_64-linux-gnu.so', '.abi3.so', '.so'] on CPython3.8, but
['.pypy37-pp73-x86_64-linux-gnu.so'] on PyPy3.7.
Note that PyPy does not support abi3.so (the "stable API" I referred to above) nor .so with no tags.
This is due to PyPy not supporting importing c-extension modules compiled for CPython. See issue 2617 for a long discussion of possible future work in this direction.
For the problem at hand: is there a way to turn off overriding the natvie c-extension naming conventions?

Thanks @mattip, that makes the situation much clearer and sounds much more feasible.
PS.

[...] but ['.pypy37-pp73-x86_64-linux-gnu.so'] on PyPy3.7.

Probably not relevant, but conda-forge is still on PyPy3.6.

@isuruf, could you briefly explain what https://github.com/conda-forge/faiss-split-feedstock/pull/22/commits/ea86ed620437370dc9a4d94e04f8482134c4f980 does? Is it possible to inspect those artifacts after the build - e.g. some SSH access or so?

@conda-forge-admin, rerender

Yes, you can download the built artifacts from Azure

Yes, you can download the built artifacts from Azure

OK cool, thanks! Will see if I can figure this out... (e.g. I'm hoping this is obvious in the UI? Is it only for feedstock-maintainers or generally available? context: some faiss-folks are interested in the same thing for #19)

From the non-cuda log There is a problem with setup.py
2020-12-23T09:35:18.4295859Z   File "setup.py", line 23, in <module>
2020-12-23T09:35:18.4296609Z     shutil.copyfile("_swigfaiss.so", "faiss/_swigfaiss.so")

@mattip, thanks a lot for the help here; this now builds (& successfully imports) on pypy, but unfortunately, there's a segfault in the testsuite...

Where? The log for the non-cuda build "only" fails a test. Would it be easier to merge these fixes upstream and try to debug it there, or do they also do this "all python versions together" type of testing?

@mattip, in that log you linked there's:
[...]/run_test.sh: line 7:  5045 Segmentation fault      (core dumped) python -m unittest discover tests

towards the bottom...

Closing in favour of #30


TS Muxer Nightly/ Upated Version

It does not look like this docker has been updated in 3 years. Any possibility we can get leading edge or at least modern version of TS Muxer. https://hub.docker.com/r/jlesage/tsmuxer

Correct, but the source code was turned over from the developer, and it has been alive and well for some time again if not mistaken: https://github.com/justdan96/tsMuxer and https://www.videohelp.com/software/tsMuxeR  seeing as there is a linux version. Could you update and add a nightly tag to your docker?  I honestly do not understand why more are not asking for this as it is a great tool to run as a docker on a NAS and speeds up transfer times from a desktop / laptop to and from a nas. I enjoy all of your dockers very much. Thank you!

Let's track this in the proper repo: https://github.com/jlesage/docker-tsmuxer/issues/5


fix(examples): correct file name

Hi again!
A new PR to fix the example file's name so that it can be ran.
I also added an example to show how non-present fields behave with gonull.
Thanks :)

Thank you @wazazaby !


Make error reporting easy

As suggested in https://github.com/Fabulously-Optimized/vanilla-installer/issues/14#issuecomment-1276302394

On the GUI version, there's a button to report bugs:

However, there's no CLI command to do this. Thankfully, it would be as easy as just making a single function, so I can do that, since it'll likely just open in a webbrowser since I don't want to try to make a whole gh all over again lol

Update: The CLI now has this feature, so this issue can probably be closed, unless you want to do something else with either frontend.

Thanks! The new GUI looks great 🔥


How to save dxf with "GB2312"code?

I have create a dxf  with layer ="长江"(chinese character), and save it. When I open it with Notepad++,I found it's code is "UTF-8",but the layer name code is "Unicode" and present "\U+957F\U+6C5F" which is the Unicode of "长江". How  can  I save all dxf with "GB2312" or save all dxf with "UTF-8" code(contain the layer name)?

According to the spec under "Storage of String Values", DXF files can only be saved as ASCII or CIF (which is the \U+... values you're seeing) unless the file is saved as version R2007 or higher, in which case UTF-8 is used.  So if you need UTF-8 and don't care too much about the version, you can do this:
DxfFile file = new DxfFile();
file.Header.Version = DxfAcadVersion.R2007;
// ...
file.Save(...);

@brettfo  Thank  you for your help，I have solve the confusion under your suggestion。


fix: no need to use generatePath in generateAppUrl

in case like param value have : like this it will error in generateAppUrl().
reactRouter: {
      routePath: "/:someParam",
      routeParams: { someParam: ":someValue" },
},

because our location.pathname will become /:someValue and in useCreateEventData() we pass it to generateAppUrl() that will call generatePath() like this.
generatePath('/:someValue', { someParam: ':someValue' })

to fix it i think we just need pathname from location.pathname in generateAppUrl().
sorry for my bad english 😄 .

Hi! Thanks you for your contribution.
I was able to reproduce the issue locally. The issue however doesn't lie in the generateAppUrl  function itself but in the fact that the function is used here. So I submitted a fix in addition to some additional stories to test the behaviour.


Attention mask definition.

Hi, thanks for your great work.
After reading your paper and code, I feel confuse about the attn_mask definition. According to MultiheadAttention.attn_mask, 'For a binary mask, a True value indicates that the corresponding position is not allowed to attend.'
https://github.com/cnzzx/GeMap/blob/b2b085e1584ca767c9d384e51b96f209babb7234/projects/mmdet3d_plugin/gemap/modules/geometry_decoupled_attention.py#L74-L78

Thanks for your issue. You're right.
There might be some mistakes when cleaning up the code. We've now fixed it up and you can view it in this commit.


[Feature Request] Secrets usage from external systems

We use AWS secrets manager as our solution for working with sensitive data.
It would be great if burno could be used to load secrets from the secrets manager.
No need to store anything locally, other than a cache.

@kfirgollan
Here are two related tickets - https://github.com/usebruno/bruno/issues/454 , https://github.com/usebruno/bruno/issues/306#issuecomment-1751707127

Hello! @kfirgollan Were you finally able to integrate it with AWS secrets? Thanks! 💯


Create devcontainer.json

Yes
On Fri, Nov 29, 2024, 6:41 PM MrG9090 @.***> wrote:

@.**** approved this pull request.
—
Reply to this email directly, view it on GitHub
https://github.com/ton-blockchain/highload-wallet-contract-v3/pull/19#pullrequestreview-2469622669,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BLRP3KTCXPOHW4YIF4MNSGD2DBAD7AVCNFSM6AAAAABP4DHXOSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDINRZGYZDENRWHE
.
You are receiving this because you are subscribed to this thread.Message
ID: <ton-blockchain/highload-wallet-contract-v3/pull/19/review/2469622669@
github.com>

Approved.
On Fri, Nov 29, 2024, 6:45 PM MrG9090 @.***> wrote:

@.**** approved this pull request.
—
Reply to this email directly, view it on GitHub
https://github.com/ton-blockchain/highload-wallet-contract-v3/pull/19#pullrequestreview-2469630664,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BLRP3KXNCXL6XSBQOYA54XT2DBAT7AVCNFSM6AAAAABP4DHXOSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDINRZGYZTANRWGQ
.
You are receiving this because you commented.Message ID:
<ton-blockchain/highload-wallet-contract-v3/pull/19/review/2469630664@
github.com>


A more explanatory readme with shortcut keys

A logo would be cool too :smiley:

I think we could do it in wiki section.

GitBook Is it an alternative?

I would be happy with a github wiki :smile_cat:

We don't have so many keys to map.


Update the logo

The current logo doesn't look great on the dark-mode background.

julia_blue seems a little too colorful to me.

Black/white seems a little kind of vivid.

50% gray is boring.

Blueish-gray seems great!

fixed by https://github.com/hyrodium/RepeatingDecimalNotations.jl/pull/17


Make modules plug-and-play

It should be possible for users to easily choose which modules they want to use at compile time. Ideally users should be able to add modules from foreign crates.
I see 4 solutions of which 3 also fulfill the latter requirement::

Feature Flags: All modules have to live in this repository but can be activated via feature flags
Macros: Expose macros that take modules as input and build all the enums (transactions, inputs, outputs etc.) with one variant per module.
Generics Hackery: We could emulate variadic generics to a degree by having MinimintConsensus variants with 2 to e.g. 6 type parameters, each being a module (impl via macro). Alternatively (and even cooler) we could use advanced generics like heterogenous lists.
Dynamic Modules: Make the Module trait object safe and work with Box<dyn Module> objects. I like this idea the least since it would remove a lot of the guarantees Rust's type system gives us.

Created rollout plan in #568 for #546 .

AFAUI @elsirion was satisfied with static-trait plugins from #625 , so I think we can close and modularization work will track it.


Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

My python crash when trying simple request
import hrequests

resp = hrequests.get('https://www.google.com')

I am using virtual env with python 3.9.6, Macbook with M2 chip. In pycharm interpreter or terminal, I get "Process finished with exit code 137 (interrupted by signal 9: SIGKILL)" (pycharm)  and apple report window appears with message that "python quit unexpectedly" This happens during import of the package

Figured out that the tls-client-xgo library does not work as intended on macOS.
This has been patched in this commit and should be rolled out with v0.7.0.

I've tried version 0.7.1 and 0.7.0 and the issue still persists.

I've tried version 0.7.1 and 0.7.0 and the issue still persists.

This is likely because the tls-client library hasn't been updated. Heres a fix:

Run python3 -m pip uninstall hrequests -v

Under Would not remove (might be manually added), look for the full path to the file located under site-packages/hrequests/bin/tls-client-xgo-1.6.0-darwin-arm64.dylib.

Run rm <full path to .dylib file>.


Add API Docs Contribution page

Rebased

To be merged after next release with sailfish-qdoc-template updated.

rebased


RTS remote on 433.92 MHz

Hi,
My two shades controlled by a Situo remote are working perfectly with your beautiful project, thank you so much for that.
In my attic, I have two roller shutters, which I can't seem to pair. I've now used Airspy with an RTLSDR USB radio stick and RTL_433 to do some debugging, and the (brandless) remotes for the sutters do not use the 443.42 MHz frequency, but they use 433.92 MHz. That could explain why button presses on the brandless remote are not shown in the ESPSomfy radio log.
Strange thing is that the remotes do use the RTS protocol:

I've tried to tune the radio in ESPSomfy to the frequency 433.92 MHz, but the frequency slider can't reach that frequency, and maybe as of that frames aren't decoded or displayed.
Can you maybe point me in the right direction?

If you install the firmware and application binaries from the main repo it will now allow you to set the base frequency all the way up to 434.399Mhz.

Hi @rstrouse,
Thank you for the update, I've just installed 1.7.3. With a center frequency of 433.92 MHz, the log now shows Unknown commands for Up, Stop/My, Down:
[{"encKey": 150,
  "address": 746535,
  "rcode": 3513,
  "command": "Unknown(15)",
  "rssi": -50,
  "bits": 56,
  "valid": false,
  "sync": 4,
  "pulses": [10074,97476,2548,2574,2531,2586,4851,1286,1292,633,662,1279,1295,1291,646,624,1309,649,642,1282,659,618,1320,615,656,1292,1286,1296,1302,1277,646,634,1288,1291,1309,620,669,633,635,1278,669,635,1287,1293,1284,639,669,633,662,1254,670,634,635,641,1300,1283,657,618,1320,1266,1301,1286,1301,1281,634,646,643,632,664,639,649,644,1301,1276,1296,631,665,1271,661,614,1299,657,637,1279],
  "time": "2023-06-25T19:40:48.269+0200"
},
{"encKey": 149,
  "address": 746535,
  "rcode": 3514,
  "command": "Unknown(15)",
  "rssi": -48,
  "bits": 56,
  "valid": false,
  "sync": 4,
  "pulses": [10079,97478,2544,2580,2538,2573,4874,1260,1304,649,658,1267,1295,1289,1301,1279,1284,1271,660,640,1300,630,661,1290,645,628,1313,617,670,1261,654,643,1297,1266,1321,1266,669,627,661,631,641,646,1302,1277,1296,640,651,642,651,1267,648,645,654,638,1285,1270,686,616,1298,1282,1307,1273,1311,1268,660,615,652,644,649,635,660,625,1294,1289,1299,630,660,1282,643,632,1315,619,670,1286],
  "time": "2023-06-25T19:40:49.663+0200"
},
{"encKey": 152,
  "address": 746535,
  "rcode": 3515,
  "command": "Unknown(15)",
  "rssi": -49,
  "bits": 56,
  "valid": false,
  "sync": 4,
  "pulses": [10057,97492,2563,2562,2533,2576,4879,1271,1311,618,673,1268,644,646,1303,624,667,627,659,639,651,1269,659,640,1302,627,659,1266,669,627,660,615,1304,1280,657,623,1320,1260,1317,1259,1315,1279,657,620,1295,1284,1316,614,659,647,643,1283,656,619,669,635,1312,1269,659,614,1304,1277,1309,1270,1312,1270,654,638,658,621,668,609,25,663,640,1300,1280,1311,618,654,1292,645,623,1308,626,666,1281],
  "time": "2023-06-25T19:40:50.855+0200"
}]

That is because the protocol looks like another RTW variant not RTS.  This protocol is also slightly different in that it is using a starting point of 149 for the encryption key.  Is there anything on the remote that indicates the protocol or in the docs?

Update your device again from the repo it should include a protocol option for RTV.  This should send and receive your protocol.  I simply chose RTV because I have no information but I would like to know what the variant is actually called.  At this point I have seen 433.42Mhz protocols for RTS and RTW.  This one is probably not different and while your SDR outputs it with RTS it is definitely not RTS but a variant of the RTW protocol.
As an aside, the radio will not communicate on both 433.42 and 433.92 so you will probably need 2 devices.  You may be able to expand the RX bandwidth and find a center between the two but it really won't be in tune.

@rstrouse
This is great! :) I've paired both shutters, and linked both remotes, and is works 👍
For this reason I already built two devices. On the remote there is no extra info, only the name "PL01 Transmitter, frequency 433.92 MHz".
I don't have the docs for the shutters, because they've been built in before I bought the house.
Thank you for your quick help!

Awesome.  Glad it worked!


Consider changing the maven groupId

This project still releases its Maven artifacts under the group id com.sun.xml.ws. Now that it is under the Eclipse umbrella, this does not seem to make much sense (to me, at least), and brings much confusion about which versions of the jaxb related artifacts are up to date. (See #41 and https://github.com/mojohaus/jaxws-maven-plugin/issues/86.)
Please consider changing the groupId to reflect the usual Eclipse conventions.

Changing javax group ids to jakarta was a nightmare and caused a lot of issues already, therefore it is unlikely to happen; plug-in’s docs already mentions the history, see https://eclipse-ee4j.github.io/metro-jax-ws/jaxws-maven-plugin/
Note: I have never been involved in the MojoHouse hosted project; I got to current sources in 2011 and trying to keep this plugin up-to-date since then. Whatever has been done before, is completely out of my sight

Changing javax group ids to jakarta was a nightmare and caused a lot of issues already, therefore it is unlikely to happen

Thanks for the reply. I believe there is a misunderstanding. This project did not change javax group ids to jakarta. It changed the package names. This is a nightmare indeed. My request is about changing the Maven groupId. A different thing.

Before package names were changed, group/artifact ids were changed, ie javax.xml.ws:jaxws-api became jakarta.xml.ws:jakarta.xml.ws-api with unchanged package names. Problem with that approach today is that there exist two artifacts with same packages and that makes it non-trivial to allow existence/usage of both in one project

Oh, I see indeed jakarta.xml.ws-api on Maven Central. I suppose this is the move to jaxws-common that is referred to in the doc you linked to.
This currently obscure group id is unfortunate, but at least things become clearer now in my mind. Thanks again for your answers.


Permission Error with PDF loader

I was testing OnlinePDFLoader yesterday iirc and it was working fine. Today I tried experimenting and I keep getting this error
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\REALGL~1\\AppData\\Local\\Temp\\tmp3chr08y0
it may be occurring because the tempfile.NamedTemporaryFile() in pdf.py is still open when the PDF partitioning function is trying to access it

I have the same problem when running PDF loader of local environment (no problem when running on Colab). Do you have any solution yet?

I have the same problem when running PDF loader of local environment (no problem when running on Colab). Do you have any solution yet?

Go to the pdf.py and replace the function using the code below located on the BasePDFLoader. I am on the .137 version of langchain.
    file_path: str
    web_path: Optional[str] = None
    temp_file: Optional[tempfile.NamedTemporaryFile] = None

    def __init__(self, file_path: str):
        """Initialize with file path."""
        self.file_path = file_path
        if "~" in self.file_path:
            self.file_path = os.path.expanduser(self.file_path)

        if not os.path.isfile(self.file_path) and self._is_valid_url(self.file_path):
            r = requests.get(self.file_path)

            if r.status_code != 200:
                raise ValueError(
                    "Check the url of your file; returned status code %s"
                    % r.status_code
                )

            self.web_path = self.file_path
            self.temp_file = tempfile.NamedTemporaryFile(delete=False)
            self.temp_file.write(r.content)
            self.temp_file.close()
            self.file_path = self.temp_file.name
        elif not os.path.isfile(self.file_path):
            raise ValueError("File path %s is not a valid file or url" % self.file_path)

    def __del__(self) -> None:
        if self.temp_file is not None:
            self.temp_file.close()
            os.unlink(self.temp_file.name)

facing the same error for a while as well

I still have this issue with <IP_ADDRESS> windows 11 bitdefender AV

I have the same problem when running PDF loader of local environment (no problem when running on Colab). Do you have any solution yet?

Go to the pdf.py and replace the function using the code below located on the BasePDFLoader class. Note that my current version of langchain is .137
    file_path: str
    web_path: Optional[str] = None
    temp_file: Optional[tempfile.NamedTemporaryFile] = None

    def __init__(self, file_path: str):
        """Initialize with file path."""
        self.file_path = file_path
        if "~" in self.file_path:
            self.file_path = os.path.expanduser(self.file_path)

        if not os.path.isfile(self.file_path) and self._is_valid_url(self.file_path):
            r = requests.get(self.file_path)

            if r.status_code != 200:
                raise ValueError(
                    "Check the url of your file; returned status code %s"
                    % r.status_code
                )

            self.web_path = self.file_path
            self.temp_file = tempfile.NamedTemporaryFile(delete=False)
            self.temp_file.write(r.content)
            self.temp_file.close()
            self.file_path = self.temp_file.name
        elif not os.path.isfile(self.file_path):
            raise ValueError("File path %s is not a valid file or url" % self.file_path)

    def __del__(self) -> None:
        if self.temp_file is not None:
            self.temp_file.close()
            os.unlink(self.temp_file.name)

@realglyph123 Your fix worked for running on my local windows system. Thank you.

i want save my histogram with this code :
big_data=random.uniform(0.0,10.0,10000)
print(big_data)
import matplotlib.pyplot as plt
plt.hist(big_data,500)
plt.savefig("big_data.pdf", format='pdf')
but i have this error :
PermissionError: [Errno 13] Permission denied: 'big_data.pdf'
what should i do ?


3DS Payment?

does this library support 3DS payment?

Hi @0x01Brain ,
This library supports 3DS v1 but needs to be updated to support v2.  I've created a ticket to update https://github.com/smarkets/react-native-paypal/issues/41
There is a guide here about integration https://developers.braintreepayments.com/guides/3d-secure/legacy-3d-secure/configuration
note this part:
"In production, 3D Secure is not automatically enabled in production accounts and is only compatible with certain Braintree configurations in specific regions. Contact us if you're interested in 3D Secure. We can help determine if you can use 3D Secure and if so, enable your production account."


files.exclude: they are exluded from explorer, but not from file switch via ctrl + p

Version: 1.28.2
Commit: 7f3ce96ff4729c91352ae6def877e59c561f4850
Date: 2018-10-17T00:20:56.183Z
Electron: 2.0.9
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
Steps to Reproduce:
"files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true,
    "applications/project/backend/vendor": true
}

i do not see: applications/project/backend/vendor within the explorer, but by ctrl + p i still get suggestions from this folder. Which leads to very high CPU use all the time, cause there are many files (many duplicates too) get found by that

Does this issue occur when all extensions are disabled?: Yes

Please do the following

Run the command "Set log level" and change it to "Trace"
Run the search again
Show the search-related messages in the "Log (Window)" output panel

@roblourens
[2018-10-26 07:39:27.892] [renderer1] [trace] telemetry/workbenchActionExecuted {"id":"workbench.output.action.clearOutput","from":"panel"}
[2018-10-26 07:39:30.486] [renderer1] [trace] CommandService#executeCommand workbench.action.quickOpen
[2018-10-26 07:39:30.486] [renderer1] [trace] SearchService#search {"type":1,"folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","external":"file:///home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","path":"/home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"applications/project1/backend/vendor":true,"applications/project1/backend/vendor/companyname/core":true,"applications/project1/backend/var":true,"applications/project2/backend/vendor":true,"applications/project2/backend/vendor/companyname/core":true,"applications/project2/backend/var":true,"applications/project3/backend/vendor":true,"applications/project3/backend/vendor/companyname/core":true,"applications/project3/backend/var":true,"applications/project4/backend/vendor":true,"applications/project4/backend/vendor/companyname/core":true,"applications/project4/backend/var":true,"applications/project5/backend/vendor":true,"applications/project5/backend/vendor/companyname/core":true,"applications/project5/backend/var":true,"applications/project6/backend/vendor":true,"applications/project6/backend/vendor/companyname/core":true,"applications/project6/backend/var":true,"applications/project7/backend/vendor":false,"applications/project7/backend/vendor/companyname/core":true,"applications/project7/backend/var":true,"applications/project8/backend/vendor":true,"applications/project8/backend/vendor/companyname/core":true,"applications/project8/backend/var":true,"applications/project9/backend/vendor":true,"applications/project9/backend/vendor/companyname/core":true,"applications/project9/backend/var":true,"applications/project10/backend/vendor":true,"applications/project10/backend/vendor/companyname/core":true,"applications/project10/backend/var":true,"applications/project11/backend/vendor":true,"applications/project11/backend/vendor/companyname/core":true,"applications/project11/backend/var":true,"modules/symfony-bundles/**/vendor":true,"**/node_modules":true,"**/bower_components":true},"fileEncoding":"utf8","disregardIgnoreFiles":false}],"usingSearchPaths":false,"filePattern":"","maxResults":0,"sortByScore":true,"cacheKey":"id#22","contentPattern":null,"useRipgrep":true,"disregardIgnoreFiles":false,"ignoreSymlinks":false}
[2018-10-26 07:39:30.534] [renderer1] [trace] telemetry/workbenchActionExecuted {"id":"workbench.action.quickOpen","from":"keybinding"}
[2018-10-26 07:39:30.564] [renderer1] [debug] SearchService#search rg --files --hidden --case-sensitive -g '!**/.git' -g '!**/.svn' -g '!**/.hg' -g '!**/CVS' -g '!**/.DS_Store' -g '!/applications/project1/backend/vendor' -g '!/applications/project1/backend/vendor/companyname/core' -g '!/applications/project1/backend/var' -g '!/applications/project2/backend/vendor' -g '!/applications/project2/backend/vendor/companyname/core' -g '!/applications/project2/backend/var' -g '!/applications/project3/backend/vendor' -g '!/applications/project3/backend/vendor/companyname/core' -g '!/applications/project3/backend/var' -g '!/applications/project4/backend/vendor' -g '!/applications/project4/backend/vendor/companyname/core' -g '!/applications/project4/backend/var' -g '!/applications/project5/backend/vendor' -g '!/applications/project5/backend/vendor/companyname/core' -g '!/applications/project5/backend/var' -g '!/applications/project6/backend/vendor' -g '!/applications/project6/backend/vendor/companyname/core' -g '!/applications/project6/backend/var' -g '!/applications/project7/backend/vendor/companyname/core' -g '!/applications/project7/backend/var' -g '!/applications/project8/backend/vendor' -g '!/applications/project8/backend/vendor/companyname/core' -g '!/applications/project8/backend/var' -g '!/applications/project9/backend/vendor' -g '!/applications/project9/backend/vendor/companyname/core' -g '!/applications/project9/backend/var' -g '!/applications/project10/backend/vendor' -g '!/applications/project10/backend/vendor/companyname/core' -g '!/applications/project10/backend/var' -g '!/applications/project11/backend/vendor' -g '!/applications/project11/backend/vendor/companyname/core' -g '!/applications/project11/backend/var' -g '!/modules/symfony-bundles/**/vendor' -g '!**/node_modules' -g '!**/bower_components' --no-ignore-parent --follow --no-config --no-ignore-global -- '.'
 - cwd: /home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms
 - Sibling clauses: {}
[2018-10-26 07:39:30.681] [renderer1] [trace] SearchService#search: 195ms
[2018-10-26 07:39:30.681] [renderer1] [trace] telemetry/searchComplete {"resultCount":0,"workspaceFolderCount":1,"type":"searchProcess","endToEndTime":195,"sortingTime":-1,"traversal":"Ripgrep","fileWalkTime":139,"directoriesWalked":0,"filesWalked":0,"cmdTime":139,"cmdResultCount":5637,"scheme":"file"}
[2018-10-26 07:39:32.499] [renderer1] [trace] SearchService#search {"type":1,"folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","external":"file:///home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","path":"/home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"applications/project1/backend/vendor":true,"applications/project1/backend/vendor/companyname/core":true,"applications/project1/backend/var":true,"applications/project2/backend/vendor":true,"applications/project2/backend/vendor/companyname/core":true,"applications/project2/backend/var":true,"applications/project3/backend/vendor":true,"applications/project3/backend/vendor/companyname/core":true,"applications/project3/backend/var":true,"applications/project4/backend/vendor":true,"applications/project4/backend/vendor/companyname/core":true,"applications/project4/backend/var":true,"applications/project5/backend/vendor":true,"applications/project5/backend/vendor/companyname/core":true,"applications/project5/backend/var":true,"applications/project6/backend/vendor":true,"applications/project6/backend/vendor/companyname/core":true,"applications/project6/backend/var":true,"applications/project7/backend/vendor":false,"applications/project7/backend/vendor/companyname/core":true,"applications/project7/backend/var":true,"applications/project8/backend/vendor":true,"applications/project8/backend/vendor/companyname/core":true,"applications/project8/backend/var":true,"applications/project9/backend/vendor":true,"applications/project9/backend/vendor/companyname/core":true,"applications/project9/backend/var":true,"applications/project10/backend/vendor":true,"applications/project10/backend/vendor/companyname/core":true,"applications/project10/backend/var":true,"applications/project11/backend/vendor":true,"applications/project11/backend/vendor/companyname/core":true,"applications/project11/backend/var":true,"modules/symfony-bundles/**/vendor":true,"**/node_modules":true,"**/bower_components":true},"fileEncoding":"utf8","disregardIgnoreFiles":false}],"usingSearchPaths":false,"filePattern":"t","maxResults":512,"sortByScore":true,"cacheKey":"id#22","contentPattern":null,"useRipgrep":true,"disregardIgnoreFiles":false,"ignoreSymlinks":false}
[2018-10-26 07:39:32.667] [renderer1] [trace] SearchService#search: 168ms
[2018-10-26 07:39:32.667] [renderer1] [trace] telemetry/cachedSearchComplete {"resultCount":5479,"workspaceFolderCount":1,"type":"searchProcess","endToEndTime":168,"sortingTime":149,"cacheWasResolved":true,"cacheLookupTime":0,"cacheFilterTime":4,"cacheEntryCount":5637,"scheme":"file"}
[2018-10-26 07:39:32.813] [renderer1] [trace] SearchService#search {"type":1,"folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","external":"file:///home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","path":"/home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"applications/project1/backend/vendor":true,"applications/project1/backend/vendor/companyname/core":true,"applications/project1/backend/var":true,"applications/project2/backend/vendor":true,"applications/project2/backend/vendor/companyname/core":true,"applications/project2/backend/var":true,"applications/project3/backend/vendor":true,"applications/project3/backend/vendor/companyname/core":true,"applications/project3/backend/var":true,"applications/project4/backend/vendor":true,"applications/project4/backend/vendor/companyname/core":true,"applications/project4/backend/var":true,"applications/project5/backend/vendor":true,"applications/project5/backend/vendor/companyname/core":true,"applications/project5/backend/var":true,"applications/project6/backend/vendor":true,"applications/project6/backend/vendor/companyname/core":true,"applications/project6/backend/var":true,"applications/project7/backend/vendor":false,"applications/project7/backend/vendor/companyname/core":true,"applications/project7/backend/var":true,"applications/project8/backend/vendor":true,"applications/project8/backend/vendor/companyname/core":true,"applications/project8/backend/var":true,"applications/project9/backend/vendor":true,"applications/project9/backend/vendor/companyname/core":true,"applications/project9/backend/var":true,"applications/project10/backend/vendor":true,"applications/project10/backend/vendor/companyname/core":true,"applications/project10/backend/var":true,"applications/project11/backend/vendor":true,"applications/project11/backend/vendor/companyname/core":true,"applications/project11/backend/var":true,"modules/symfony-bundles/**/vendor":true,"**/node_modules":true,"**/bower_components":true},"fileEncoding":"utf8","disregardIgnoreFiles":false}],"usingSearchPaths":false,"filePattern":"ta","maxResults":512,"sortByScore":true,"cacheKey":"id#22","contentPattern":null,"useRipgrep":true,"disregardIgnoreFiles":false,"ignoreSymlinks":false}
[2018-10-26 07:39:32.869] [renderer1] [trace] SearchService#search {"type":1,"folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","external":"file:///home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","path":"/home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"applications/project1/backend/vendor":true,"applications/project1/backend/vendor/companyname/core":true,"applications/project1/backend/var":true,"applications/project2/backend/vendor":true,"applications/project2/backend/vendor/companyname/core":true,"applications/project2/backend/var":true,"applications/project3/backend/vendor":true,"applications/project3/backend/vendor/companyname/core":true,"applications/project3/backend/var":true,"applications/project4/backend/vendor":true,"applications/project4/backend/vendor/companyname/core":true,"applications/project4/backend/var":true,"applications/project5/backend/vendor":true,"applications/project5/backend/vendor/companyname/core":true,"applications/project5/backend/var":true,"applications/project6/backend/vendor":true,"applications/project6/backend/vendor/companyname/core":true,"applications/project6/backend/var":true,"applications/project7/backend/vendor":false,"applications/project7/backend/vendor/companyname/core":true,"applications/project7/backend/var":true,"applications/project8/backend/vendor":true,"applications/project8/backend/vendor/companyname/core":true,"applications/project8/backend/var":true,"applications/project9/backend/vendor":true,"applications/project9/backend/vendor/companyname/core":true,"applications/project9/backend/var":true,"applications/project10/backend/vendor":true,"applications/project10/backend/vendor/companyname/core":true,"applications/project10/backend/var":true,"applications/project11/backend/vendor":true,"applications/project11/backend/vendor/companyname/core":true,"applications/project11/backend/var":true,"modules/symfony-bundles/**/vendor":true,"**/node_modules":true,"**/bower_components":true},"fileEncoding":"utf8","disregardIgnoreFiles":false}],"usingSearchPaths":false,"filePattern":"tag","maxResults":512,"sortByScore":true,"cacheKey":"id#22","contentPattern":null,"useRipgrep":true,"disregardIgnoreFiles":false,"ignoreSymlinks":false}
[2018-10-26 07:39:32.989] [renderer1] [trace] SearchService#search: 175ms
[2018-10-26 07:39:32.989] [renderer1] [trace] telemetry/cachedSearchComplete {"resultCount":4919,"workspaceFolderCount":1,"type":"searchProcess","endToEndTime":175,"sortingTime":138,"cacheWasResolved":true,"cacheLookupTime":0,"cacheFilterTime":12,"cacheEntryCount":5637,"scheme":"file"}
[2018-10-26 07:39:33.099] [renderer1] [trace] SearchService#search: 230ms
[2018-10-26 07:39:33.099] [renderer1] [trace] telemetry/cachedSearchComplete {"resultCount":2279,"workspaceFolderCount":1,"type":"searchProcess","endToEndTime":230,"sortingTime":98,"cacheWasResolved":true,"cacheLookupTime":0,"cacheFilterTime":9,"cacheEntryCount":5637,"scheme":"file"}
[2018-10-26 07:39:33.266] [renderer1] [trace] SearchService#search {"type":1,"folderQueries":[{"folder":{"$mid":1,"fsPath":"/home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","external":"file:///home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","path":"/home/myuser/Documents/webpages/platforms-vagrant/srv/httpd/platforms","scheme":"file"},"excludePattern":{"**/.git":true,"**/.svn":true,"**/.hg":true,"**/CVS":true,"**/.DS_Store":true,"applications/project1/backend/vendor":true,"applications/project1/backend/vendor/companyname/core":true,"applications/project1/backend/var":true,"applications/project2/backend/vendor":true,"applications/project2/backend/vendor/companyname/core":true,"applications/project2/backend/var":true,"applications/project3/backend/vendor":true,"applications/project3/backend/vendor/companyname/core":true,"applications/project3/backend/var":true,"applications/project4/backend/vendor":true,"applications/project4/backend/vendor/companyname/core":true,"applications/project4/backend/var":true,"applications/project5/backend/vendor":true,"applications/project5/backend/vendor/companyname/core":true,"applications/project5/backend/var":true,"applications/project6/backend/vendor":true,"applications/project6/backend/vendor/companyname/core":true,"applications/project6/backend/var":true,"applications/project7/backend/vendor":false,"applications/project7/backend/vendor/companyname/core":true,"applications/project7/backend/var":true,"applications/project8/backend/vendor":true,"applications/project8/backend/vendor/companyname/core":true,"applications/project8/backend/var":true,"applications/project9/backend/vendor":true,"applications/project9/backend/vendor/companyname/core":true,"applications/project9/backend/var":true,"applications/project10/backend/vendor":true,"applications/project10/backend/vendor/companyname/core":true,"applications/project10/backend/var":true,"applications/project11/backend/vendor":true,"applications/project11/backend/vendor/companyname/core":true,"applications/project11/backend/var":true,"modules/symfony-bundles/**/vendor":true,"**/node_modules":true,"**/bower_components":true},"fileEncoding":"utf8","disregardIgnoreFiles":false}],"usingSearchPaths":false,"filePattern":"tagd","maxResults":512,"sortByScore":true,"cacheKey":"id#22","contentPattern":null,"useRipgrep":true,"disregardIgnoreFiles":false,"ignoreSymlinks":false}
[2018-10-26 07:39:33.392] [renderer1] [trace] SearchService#search: 126ms
[2018-10-26 07:39:33.393] [renderer1] [trace] telemetry/cachedSearchComplete {"resultCount":766,"workspaceFolderCount":1,"type":"searchProcess","endToEndTime":126,"sortingTime":59,"cacheWasResolved":true,"cacheLookupTime":0,"cacheFilterTime":3,"cacheEntryCount":5637,"scheme":"file"}

Cause vendors are duplicated i've excluded them, but it does not work (can't remember i had this problems 2 months ago) And cause they are many thousands of them i got a CPU use around 30% and 2.6GB memory. Which was not the case back then

I see you have many project#/backend/vendor, does this affect all of them, or just one in particular?
Can you try setting `"search.useIgnoreFiles": false" just to narrow things down?

@roblourens its a mono repo with 11 projects having at least 80% same vendor, and one vendor (companyname/core) is shared code, each of the is a large symfony 3 project

Ok but does this affect all of the projects or just one? It's not clear.
Can you try setting `"search.useIgnoreFiles": false" just to narrow things down?

@roblourens i've done that, could not see any changes in behavior. Its a monorepo which all projects needs to available at the same time, so yes, it affects them all

@roblourens the idea is to have all projects open at ones (cause some changes are relevant for all)
applications/project7/backend/vendor/companyname/core is a symlink to modules/symfony-bundles cause its the shared code. I need the vendors from project7 in this case (but without the duplicate of the linked part). If you think there is a better way to do that, without losing functionality i am very happy to hear about
{
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "applications/project1/backend/vendor": true,
        "applications/project1/backend/vendor/companyname/core": true,
        "applications/project1/backend/var": true,
        "applications/project2/backend/vendor": true,
        "applications/project2/backend/vendor/companyname/core": true,
        "applications/project2/backend/var": true,
        "applications/project3/backend/vendor": true,
        "applications/project3/backend/vendor/companyname/core": true,
        "applications/project3/backend/var": true,
        "applications/project4/backend/vendor": true,
        "applications/project4/backend/vendor/companyname/core": true,
        "applications/project4/backend/var": true,
        "applications/project5/backend/vendor": true,
        "applications/project5/backend/vendor/companyname/core": true,
        "applications/project5/backend/var": true,
        "applications/project6/backend/vendor": true,
        "applications/project6/backend/vendor/companyname/core": true,
        "applications/project6/backend/var": true,
        "applications/project7/backend/vendor": false,
        "applications/project7/backend/vendor/companyname/core": true,
        "applications/project7/backend/var": true,
        "applications/project8/backend/vendor": true,
        "applications/project8/backend/vendor/companyname/core": true,
        "applications/project8/backend/var": true,
        "applications/project9/backend/vendor": true,
        "applications/project9/backend/vendor/companyname/core": true,
        "applications/project9/backend/var": true,
        "applications/project10/backend/vendor": true,
        "applications/project10/backend/vendor/companyname/core": true,
        "applications/project10/backend/var": true,
        "applications/project11/backend/vendor": true,
        "applications/project11/backend/vendor/companyname/core": true,
        "applications/project11/backend/var": true,
        "modules/symfony-bundles/**/vendor": true
    }
}

@roblourens adding a /* did not help, replace all with **/vendor/** worked for search, but i lost the stuff i need, and the CPU load was still about 50% and the memory use was still very high. Setting back to my old config changed the behavior, so i do not see the files multiple times. Caching issue?. So search seems to work now. But having a editor/IDE with such a load is not useful

Sorry I still am not following. It works now but you still see high CPU load? Can you explain some more? There is no caching.

@roblourens i do not get duplicate results anymore, even if i use the old config without changes (no idea why). But the CPU load is still very high (at 50% as long the application is open), and the memory use is over 2GB now

@roblourens

@RMacfarlane
Maybe those are processes stuck around from an old instance of vscode that didn't shut down cleanly?

@roblourens same problem on 3 different notebooks, with the same project

Any chance you can get the full arguments for those processes like from ps ax?
When you shut down vscode, do they go away?

@roblourens
thinkpad-p52s ~ schreiner $ ps -ef | grep 'code/code'
schrein+ 30856     1  2 07:16 ?        00:00:02 /usr/share/code/code .
schrein+ 30864 30856  0 07:16 ?        00:00:00 /usr/share/code/code --type=zygote --no-sandbox
schrein+ 30896 30856  1 07:16 ?        00:00:01 /usr/share/code/code --type=gpu-process --disable-features=ColorCorrectRendering --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=9,27,84 --disable-gl-extensions=GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent --disable-accelerated-video-decode --gpu-vendor-id=0x10de --gpu-device-id=0x1d33 --gpu-driver-vendor --gpu-driver-version --gpu-driver-date --gpu-secondary-vendor-ids=0x8086 --gpu-secondary-device-ids=0x5917 --service-request-channel-token=2B136150A06D25BAECD9E268C16B6625
schrein+ 31109 30864  1 07:16 ?        00:00:01 /usr/share/code/code --type=renderer --js-flags=--nolazy --disable-mojo-local-storage --no-sandbox --disable-features=ColorCorrectRendering --service-pipe-token=EAB1C8096CE9F45F66C52A9AF1DD62BB --lang=de --app-path=/usr/share/code/resources/app --node-integration=true --webview-tag=true --no-sa
schrein+ 31161 30864  3 07:16 ?        00:00:01 /usr/share/code/code --type=renderer --js-flags=--nolazy --disable-mojo-local-storage --no-sandbox --disable-features=ColorCorrectRendering --service-pipe-token=5A1081A5A0E409EA9543C89D31EB6710 --lang=de --app-path=/usr/share/code/resources/app --node-integration=true --webview-tag=true --no-sa
schrein+ 31187 31161  1 07:16 ?        00:00:00 /usr/share/code/code /usr/share/code/resources/app/out/bootstrap-fork --type=extensionHost
schrein+ 31192 31161 99 07:16 ?        00:01:14 /usr/share/code/code /usr/share/code/resources/app/out/bootstrap-fork --type=watcherService
schrein+ 31441 14023  0 07:17 pts/3    00:00:00 grep --color=auto code/code

@RMacfarlane linux, ubuntu 18.04 based, elementary os


Missing mlag stanza in for server downlink ports

Issue Type

Bug Report

Summary
When using AVD with server ports configuration for a dual homed on a mlag vtep, mlag stanza is missing
Role or Module Name
arista.avd collection and Python libraries version using devel at a01f0a4
OS / Environment
EOS Version
4.24.0F
Cloudvision version
N/A
Steps to reproduce
From server.yml
servers:
  DCI_RTR01:
    rack: DCI_POD
    adapters:
      - server_ports: [Eth1]
        switch_ports: [Ethernet5]
        switches: [SITE01-BL01A]
        profile: DCI_IX
        port_channel:
          state: present
          description: PortChannel5
          mode: active
      - server_ports: [Eth2]
        switch_ports: [Ethernet5]
        switches: [SITE01-BL01B]
        profile: DCI_IX
        port_channel:
          state: present
          description: PortChannel5
          mode: active

Expected results

interface Port-Channel5
   description POD01-SRV_PortChannel5
   switchport access vlan 110
   mlag 5
!

Actual results
interface Port-Channel5
   description POD01-SRV_PortChannel5
   switchport access vlan 110
!

Misconfiguration
Fomr @carlbuchmann
DCI_RTR01:
    rack: DCI_POD
    adapters:
      - server_ports: [Eth1, Eth2]
        switch_ports: [Ethernet5, Ethernet5 ]
        switches: [SITE01-BL01A, SITE01-BL01B]
        profile: DCI_IX
        port_channel:
          state: present
          description: data
          mode: active


Notification Badge for 'waiting for my review' PRs

I think many teams struggle with timely PR reviews. It might be helpful to show a notification badge with the number of PRs that are waiting for your review, to help us remember to open this tab and take a look at them.
Other items in the Primary Side Bar also have notification badges, for example Extensions. I would propose to add something just like that to GitHub.

Thanks :)

We have the setting "githubPullRequests.notifications": "pullRequests", which adds a counter badge to your activity bar as you suggested. It only counts PRs that result in a GitHub notification though, so you need to make sure your GitHub notifications are configured in such a way that you get notified when someone requests your reivew.


FR: Add centering to the window

Add this code to the generated code to center the window

w = 320
h = 249

screen_width = window.winfo_screenwidth()
screen_height = window.winfo_screenheight()

x = int((screen_width / 2) - (w / 2))
y = int((screen_height / 2) - (h / 2))

window.geometry(f'{w}x{h}+{x}+{y}')

Hey, Thanks @omar2205 for the code. I'll leave this issue open if someone wants to center their window.


Better support for Arabic math

Status
UNDER DEVELOPMENT
Description
Improve handling of Arabic math symbols.

Allow Arabic math alphabets to be used when unicode-math is loaded, previously they would always be using CMMI fonts.
Fix spacing of Arabic comma by making sure it gets punctuation math class.

Todo

[x] Tests added to cover new/fixed functionality
[ ] Documentation added if necessary
[x] Code follows expl3 style guidelines

Minimal example demonstrating the new/fixed functionality
\documentclass{article}
\usepackage{unicode-math}
\setmathfont{XITSMath-Regular.otf}
\usepackage{ifluatex}
\begin{document}
\ifluatex\mathdir TRT\fi
\[
  \mAlef + \mBeh = \minitialJeem
\]
\end{document}

I want to also implement math mapping for Arabic, so using regular Arabic letters in math mode would map to math alphanumerics like with Latin and Greek. I looked into um-code-mathmap.dtx and um-code-alphabets.dtx but I’m still not sure how this works.
I’d need new initial, tailed, looped, and extended math styles, as well as adding Arabic mapping to bb style.
I’m not sure what style to use for the first Arabic math alphabet; it is functionally equivalent to math italics, but it is not italic (there is not italic style in Arabic, but it it is not even slanted), so up would be a better fit, but what about the regular Arabic letters? (they are sometimes used in math, e.g. math dal is used for variables while regular dal is used for function, similar f()), so may be use it for the math alphabet and up for the regular one.
\mathnormal would map to regular Arabic letters, up if we go with the scheme above, to it except for heh (it has no it form) and jeem (initial form is used).
I appreciate any guidance on how to achieve this.

The last commit is my attempt to do above, but it does not seem to do any thing. I don’t actually think any of the code I added is being used.

@khaledhosny  thanks for this, Possibly can't review this weekend, but will look later, also if there are any updates needed in TR25 that may also be possible.

@khaledhosny thanks for this, Possibly can't review this weekend,

Thanks.

also if there are any updates needed in TR25 that may also be possible.

I think MathClass-15.txt is missing an entry for 060C giving it a P class (as well as my comment in https://github.com/latex3/unicode-math/issues/619#issuecomment-2028785695).

Thanks @khaledhosny — and please don't hesitate to keep this on my radar if I seem to disappear for a while, it's a bit of a crazy year.
I would if we should we have this set up by default with all fonts, or is there more that needs to be done via OpenType features etc such that it would make sense to require an explicit option (which could use a heuristic to activate automatically) ?

Thanks @khaledhosny — and please don't hesitate to keep this on my radar if I seem to disappear for a while, it's a bit of a crazy year.

Thanks, no pressure.

I would if we should we have this set up by default with all fonts, or is there more that needs to be done via OpenType features etc such that it would make sense to require an explicit option (which could use a heuristic to activate automatically) ?

Typesetting Arabic math requires also right-to-left support in math mode, which is currently available in LuaTeX only and requires fiddling with low-level primitive. The changes here are prerequisite for further improvement in this area, as without this you can’t use Arabic math alphabets at all.


fix: override defaults when merging Jest config

This does not work for all config options! In the below snippet the rules from transformIgnorePatterns is not upheld when using react-scripts-rewired test, but it works with react-scripts test.
"jest": {
    "collectCoverageFrom": [
      "src/**/*.{js,jsx,ts,tsx}",
      "!src/**/*.d.ts"
    ],
    "coveragePathIgnorePatterns": [
      ".story.{js,jsx,ts,tsx}"
    ],
    "transformIgnorePatterns": [
      "node_modules/?!(hashids)"
    ]
  }

Originally posted by @r0ughnex in https://github.com/timarney/react-app-rewired/pull/420#issuecomment-563050902

Compare:
https://github.com/facebook/create-react-app/blob/9750738cce89a967cc71f28390daf5d4311b193c/packages/react-scripts/scripts/utils/createJestConfig.js#L93-L105 replaces arrays in supported parts of the existing config, and extends objects.
https://github.com/timarney/react-app-rewired/blob/1cc9a41b12be773004c0ee6550ef2d778f174cfd/scripts/utils/rewireJestConfig.js#L18-L29 appends to any arrays in the existing config.
Since it looks like CRA now supports your overrides, try ditching react-app-rewired for your tests and just run react-scripts test.

I suppose you could also add those keys into config-overrides.js

Compare:
react-scripts replaces supported arrays in the existing config.
react-app-rewired appends to any arrays in the existing config.
Since it looks like CRA now supports all of your overrided keys, try ditching react-app-rewired for your tests and just run react-scripts test.

I suppose you could also add those keys into config-overrides.js

@guscost: I suppose I could also add those keys into config-overrides.js.

Compare:
react-scripts replaces supported arrays in the existing config.
react-app-rewired appends to any arrays in the existing config.
Since it looks like CRA now supports all of your overrided keys, try ditching react-app-rewired for your tests and just run react-scripts test.

I suppose you could also add those keys into config-overrides.js


TypeError: Cannot read properties of undefined (reading 'number')

We get following crash on Paseo:

Currently running on 1.3.2

A workaround is to add it with websocket papi add pas -w wss://paseo.rpc.amforc.com
I think this is linked to the default endpoint. I don't have any issue with the one above.

This error should be solved as with withPolkadotSdkCompat. Closing for the moment, please comment if it keeps reproducing in 1.6.1.


Stop requestslib from overriding auth headers with data from .netrc file

Resolves #337

Description
This pull request refactors the credentials handling in python_submissions.py using the workaround suggested in #337. The desired behaviour from this change is not obvious when looking only at the code diff. However the idea here is to explicitly order Python requests to use Bearer authentication with an explicitly provided token. If this is not done explicitly, there is an edge case where a local .netrc file can override an auth token present in profiles.yml.
There's no automated test for this because I'm not sure how to deposit a .netrc file in a test environment.
I reproduced the issue manually by adding this to ~/.netrc on my workstation:
machine <my-workspace>.cloud.databricks.com
login token
password <expired_token>

I removed the skip marker on test_python_uc_databricks_sql_endpoint and ran this integration test on the main branch. The test failed with this exception:
ERROR    stdout_log:eventmgr.py:66 18:58:04     b'{"error_code":"403","message":"Invalid access token."}'
ERROR    file_log:eventmgr.py:66 13:58:04.325701 [error] [MainThread]:    b'{"error_code":"403","message":"Invalid access token."}'

Then I applied the change in this pull request and re-ran the test. It passed.

Checklist

[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have updated the CHANGELOG.md and added information about my change to the "dbt-databricks next" section.

I've updated the code to use the HeaderFactory provided by databricks.sdk and verified it still works with PAT auth. Need to do a quick test with OAuth and maybe basic auth to make sure those cases are also handled.

I found that the same issue we're fixing here (.netrc overrides auth headers in requests made by dbt-databricks) also affects our databricks-sdk-py repo (.netrc overrides auth headers in requests made for oauth handshake).
The fix in this PR will fix dbt-databricks .netrc woes if the auth method is PAT. But it will only fix the issue for oauth use-cases after databricks-sdk-py is updated with this patch https://github.com/databricks/databricks-sdk-py/issues/107 and we update the dbt-databricks dependency to incorporate that fix.
Note: I found the same bug in databricks-sql-connector's custom implementation of OAuth handshakes but this doesn't affect dbt-databricks because the dbt adapter uses the OAuth implementation in the SDK.

Now that databricks-sdk has pushed the parallel fix for oauth I've rebased on main. This included a refactor of SessionCredentials base on a breaking change in databricks-sdk.

Looks like there is now a parallel PR that bumps the databricks-sdk version and includes the RefreshableCredentials refactor: https://github.com/databricks/dbt-databricks/pull/349

@susodapop what is this status of this PR?  Also, if we are going to bring this in, we really do need to make sure we're sending the right user agent, since all of the tracking for this library depends on it.

It was deprioritised at the time because were chasing down OOM issues in dbt-databricks. We should get this mergeable and release it, although the bug radius is pretty small since it requires .netrc to be present and Python models to be in use.

@susodapop @andrefurlan-db any update on this? I just ran into this issue as well. This issue should be fairly common among Databricks customers since we still have lots of docs and community content calling out that .netrc should be used. #337 causes materialized views to fail with Error getting info for materialized view/streaming table: <catalog.schema.table>

Looks like there is a conflict to resolve.

My fault. I failed to pull the latest main before synchronising. Will fix locally and push again.

Alright I've pushed all the changes from code review. I'm going to manually test this with a bad .netrc locally and wait for the integration tests to pass before requesting a merge.

I have verified that the python models tests fail without my change and a bad .netrc is present. With my fix applied, the python model tests work.

Alright, I've pushed the final version of this code. I moved the BearerAuth class into connections.py because we're about to use it there to fix an issue with streaming tables / materialized views.
I also simplified the code by setting the Session.auth property rather than setting the .auth property for every single network request.


use of appsettings.json for applicationinsights ???

[Enter feedback here]
This document calls out the use of app.config or web.config.  It appears as though they are in the process of being replaced by appsettings.json  should we continue to use the web/app.config or is there a way to include these ApplicationInsights settings in the appsettings.json?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: b7265053-e223-593d-eba7-7dc87c3f9246
Version Independent ID: 1b8daf9a-78f6-2ccf-ec31-85c125edc44b
Content: Explore .NET trace logs in Application Insights - Azure Monitor
Content Source: articles/azure-monitor/app/asp-net-trace-logs.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @AaronMaxwell
Microsoft Alias: aaronmax

@msft-takend, thank you for the question.
The .config files-based configuration are available only with .NET Framework-based applications. The .NET Core and newer .NET uses .json based configuration files. Hope this help

@msft-takend, We will now proceed to close this thread as we have not heard back from you. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.


Emscripten build

I just got your environment setup. I've been able to get the Windows and Android builds running but I am getting errors from the emscripten build. I am developing on Windows 10. Any idea what I am doing wrong? I've attached the output below.
C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>setlocal

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>set PROJECT_DIR=C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\..

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>set BUILD_DIR=C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\..\build\emscripten

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>call "C:\Software\emscripten\emsdk_env.bat"
Setting environment variables:
EMSDK = C:/Software/emscripten
JAVA_HOME = C:\Software\emscripten\java\8.152_64bit

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>if not exist "C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\..\build\emscripten_debug" mkdir "C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\..\build\emscripten_debug"   || goto error

C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten>pushd "C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\..\build\emscripten_debug"   || goto error

C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug>call emcmake cmake -D CMAKE_BUILD_TYPE:STRING=Debug "C:\Development\GameDevelopment\Library\simpleSDL\platforms\emscripten\..\.."
--
     Sources: source/main.c

Include dirs: C:/Development/GameDevelopment/Library/simpleSDL/contrib/SDL/include

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Development/GameDevelopment/Library/simpleSDL/build/emscripten_debug
Microsoft (R) Build Engine version <IP_ADDRESS>428 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2018-03-01 7:31:07 AM.
Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" on node 1 (default
targets).
Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" (1) is building "C:
\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ZERO_CHECK.vcxproj" (2) on node 1 (default target
s).
PrepareForBuild:
  Creating directory "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\Debug\".
InitializeBuildStatus:
  Creating "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "Win32\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
CleanupEmptyRefsFolder:
  Removing directory "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\Debug\".
Done Building Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ZERO_CHECK.vcxproj" (def
ault targets).

Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" (1) is building "C:
\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (3) on node 1 (default tar
gets).
Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (3) is building
 "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2-static.vcxproj" (4) on node
1 (default targets).
InitializeBuildStatus:
  Touching "SDL2-static.dir\Debug\SDL2-static.tlog\unsuccessfulbuild".
CustomBuild:
  All outputs are up-to-date.

Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (3) is building
 "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2main.vcxproj" (5) on node 1 (
default targets).
InitializeBuildStatus:
  Touching "SDL2main.dir\Debug\SDL2main.tlog\unsuccessfulbuild".
CustomBuild:
  All outputs are up-to-date.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x86\CL.exe /c /IC
  :\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\include /IC:\Development\GameDevel
  opment\Library\simpleSDL\contrib\SDL\include /nologo /W1 /WX- /diagnostics:classic /O2 /Oy- /D USING_GENERATED_CONFIG
  _H /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"SDL2main.dir
  \Debug\\" /Fd"SDL2main.dir\Debug\SDL2main.pdb" /Gd /TC /analyze- /errorReport:queue  -idirafter C:/Development/GameDe
  velopment/Library/simpleSDL/contrib/SDL/src/video/khronos -g -Wno-warn-absolute-paths C:\Development\GameDevelopment\
  Library\simpleSDL\contrib\SDL\src\main\dummy\SDL_dummy_main.c
cl : Command line error D8021: invalid numeric argument '/Wno-warn-absolute-paths' [C:\Development\GameDevelopment\Libr
ary\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2main.vcxproj]
Done Building Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2main.vcx
proj" (default targets) -- FAILED.

Done Building Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (
default targets) -- FAILED.

Done Building Project "C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" (defa
ult targets) -- FAILED.

Build FAILED.

"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (default target) (3) ->
"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2-static.vcxproj" (default targ
et) (4) ->
(ClCompile target) ->
  cl : Command line error D8021: invalid numeric argument '/Wno-warn-absolute-paths' [C:\Development\GameDevelopment\Li
brary\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2-static.vcxproj]

"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\SimpleExample.vcxproj" (default target) (3) ->
"C:\Development\GameDevelopment\Library\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2main.vcxproj" (default target)
 (5) ->
  cl : Command line error D8021: invalid numeric argument '/Wno-warn-absolute-paths' [C:\Development\GameDevelopment\Li
brary\simpleSDL\build\emscripten_debug\contrib\SDL\SDL2main.vcxproj]

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:01.11
Build failed!
Press any key to continue . . .

Not sure what's happening there. Seems that cmake is trying to build using visual studio. That should not happen with emscripten. Maybe you don't have a proper emscripten toolchain installed.
Run emsdk list in the emscripten dir to see what is installed and make sure you have clang and emscripten-1.37.9
To install all the latest emscripten stuff you can do something like
emsdk update
emsdk install latest
emsdk activate latest

it should include clang.
The build script uses emsdk_env.bat to setup emscripten for you it only lists:
EMSDK = C:/Software/emscripten
JAVA_HOME = C:\Software\emscripten\java\8.152_64bit

for me it shows a lot more stuff:
Adding directories to PATH:
PATH += C:\dev\emscripten
PATH += C:\dev\emscripten\clang\e1.37.9_64bit
PATH += C:\dev\emscripten\node\4.1.1_64bit\bin
PATH += C:\dev\emscripten\python\<IP_ADDRESS>_64bit
PATH += C:\dev\emscripten\java\7.45_64bit\bin
PATH += C:\dev\emscripten\emscripten\1.37.9

Setting environment variables:
EMSDK = C:/dev/emscripten
EM_CONFIG = C:\Users\ok-computer10\.emscripten
BINARYEN_ROOT = C:\dev\emscripten\clang\e1.37.9_64bit\binaryen
JAVA_HOME = C:\dev\emscripten\java\7.45_64bit
EMSCRIPTEN = C:\dev\emscripten\emscripten\1.37.9

Closing inactive issue.


Create Event Templates to be used in the Pilot

This change is

com_google_protobuf can be depended through common_jvm, I depended on it for the sake of saving time. This also provides _java_proto.

build/repositories.bzl line 25 at r1 (raw file):
Previously, SanjayVas (Sanjay Vasandani) wrote…
+1

Sorry, I tried to address this in a comment on the PR but I probably should have written that in Reviewable. ->
"com_google_protobuf can be depended through common_jvm, I depended on it for the sake of saving time. This also provides _java_proto."
So, cross-media-measurement gets the proto_library dependency  through common_jvm. I see 2 options :

Extract the proto_library dependency from common_jvm and use it here.
Leave this PR as is, get the other dependencies for free. In fact why not even add the kt_jvm_proto_library.

I am voting for 2) since this is just a temporary implementation for the pilot and I see no downside of having this dependency, it also gives the edps  kt_jvm_proto_library for free.
What do you think?


chore: Add gpt-4o mode in vision command

Description
Add gpt-4o model in Open AI datasource's vision and chat commands
Fixes #Issue Number
or
Fixes Issue URL

[!WARNING]
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!CAUTION]
If you modify the content in this section, you are likely to disrupt the CI result for your PR.

Communication
Should the DevRel and Marketing teams inform users about this change?

[ ] Yes
[ ] No

/build-deploy-preview skip-tests=true

/build-deploy-preview --skip-tests=true

/build-deploy-preview --skip-tests=true

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true recreate=true

/build-deploy-preview skip-tests=true


Pattern match failure on start in case of unbalanced transactions

In case of an unbalanced transaction, hledger-iadd refuses to start with the message:
hledger-iadd: user error (Pattern match failure in do expression at src/Main.hs:281:3-15)

A minimal ~/.hledger.journal triggering this is the following and was written using hledger-iadd:
2016/08/20 unbalanced
    Cash             1

That happend with an old git version, sorry for that! Since 966b3706d075233841dc90f6314ccaf85c5e7509, there is a meaningful error message instead:
could not balance this transaction (real postings are off by 1)
2016/08/20 unbalanced
    Cash             1

However, hledger-iadd does not start up, even though the journal file was generated by hledger-iadd itself. So I suggest to either ignore this kind of 'unbalanced' errors or not to allow saving unbalanced transactions to the journal.

However, hledger-iadd does not start up, even though the journal file
was generated by hledger-iadd itself. So I suggest to either ignore
this kind of 'unbalanced' errors or not to allow saving unbalanced
transactions to the journal.

It does warn you when you try to add an unbalanced transaction.
The problem is that the function I use for parsing the journal
parseAndFinaliseJournal returns an error if a transaction is
unbalanced and doesn't give me the journal data. So apart from the
current behaviour of not starting, I see two alternatives:

Warn and start up without having the journal data. Everything would
work fine except you won't have any completions.
Work around parseAndFinaliseJournal using the other combinators from
Hledger.Read.Journal to try to parse the journal anyway. (I'm not
exactly sure what the "finalize" step of parseAndFinaliseJournal is
supposed to do, but it probably does the balance checking)

What do you prefer?

First I prefered 2, but after a some reading I prefer changing that warning to an error-message.
The strange thing is that neither of the hledger tools can handle an unbalanced transaction in the journal. I get the same error message when running add, bal, ui.
That's probably because they all depend on balanceTransaction of Hledger/Data/Transaction.hs (it's called by  journalFinalise in Hledger/Data/Journal.hs which is again called in the finalising step of parseAndFinaliseJournal.)
So wrt "1 vs 2" I vote for: do the same thing as add, ui, etc by sticking to parseAndFinaliseJournal and let them find a common solution. But for the time being, I'd disallow adding unbalanced times.
I also don't see a point in a warning message of the kind "Do you really want to add this unbalanced transaction to the journal? If you do so, no hledger tool out there will be able to work with your journal anymore"
The reason why I overlooked the warning was because there's always a confirmation question looking nearly the same (with the default answer y) before the transaction is written to the journal.

Currently all of hledger is designed to require a valid journal before doing anything else. Do you think that policy is wrong ?
And there is some inconsistency. The balanced transaction check can not be disabled, but balance assertions can. In future there will be more kinds of validation, so there should be some consistent policy.

PS so what I would tend to do here is give an error right away if the journal is invalid. We expect the user to fix it, which is not too bad since presumably they presumably caused it. (A nice feature would be a doctor which offers to repair things for you.)

@t-wissmann I agree with that and will disallow adding unbalanced transactions.
@simonmichael Thanks for the context! The policy is absolutely fine for all reporting tools. It's a little more debatable for add/iadd, since they don't strictly require a valid journal. But nevertheless: I think it's good to consistently tell the user early and loudly that her journal requires fixing. So I'll keep the current behaviour of throwing an error if the journal is invalid.