[material/menu_anchor.dart] Directional focus causes strange focus order with overlapping menus.

Steps to reproduce

Run code sample
Make your screen small enough so that submenus overlap when opened (see video)
Move focus using only the down arrow

Expected results
Focus should move from the first item to the last item, without focusing any submenu items.
Actual results
Focus moves to submenus that overlap the root menu, and submenu items are skipped (presumably because skipped menu items are above the SubmenuButton).
Code sample
Code sample
import 'package:flutter/material.dart';

void main() => runApp(const MenuApp());

class MenuApp extends StatelessWidget {
  const MenuApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(body: MyCascadingMenu()),
    );
  }
}

class MyCascadingMenu extends StatefulWidget {
  const MyCascadingMenu({super.key});

  @override
  State<MyCascadingMenu> createState() => _MyCascadingMenuState();
}

class _MyCascadingMenuState extends State<MyCascadingMenu> {
  final FocusNode _buttonFocusNode = FocusNode();

  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: <Widget>[
        MenuAnchor(
          childFocusNode: _buttonFocusNode,
          menuChildren: <Widget>[
            MenuItemButton(
                onPressed: () {},
                child: const Text('1...........................')),
            MenuItemButton(onPressed: () {}, child: const Text('2')),
            SubmenuButton(
              menuChildren: <Widget>[
                MenuItemButton(onPressed: () {}, child: const Text('3-1')),
                SubmenuButton(
                  menuChildren: <Widget>[
                    MenuItemButton(
                        onPressed: () {}, child: const Text('3-2-1')),
                    MenuItemButton(
                        onPressed: () {}, child: const Text('3-2-2')),
                  ],
                  child: const Text('3-2...........................'),
                ),
                MenuItemButton(onPressed: () {}, child: const Text('3-3')),
              ],
              child: const Text('3...........................'),
            ),
            SubmenuButton(
              menuChildren: <Widget>[
                MenuItemButton(onPressed: () {}, child: const Text('4-1')),
                MenuItemButton(onPressed: () {}, child: const Text('4-2')),
              ],
              child: const Text('4...........................'),
            ),
            MenuItemButton(onPressed: () {}, child: const Text('5')),
            MenuItemButton(onPressed: () {}, child: const Text('6')),
          ],
          builder: (
            BuildContext context,
            MenuController controller,
            Widget? child,
          ) {
            return TextButton(
              focusNode: _buttonFocusNode,
              onPressed: () {
                if (controller.isOpen) {
                  controller.close();
                } else {
                  controller.open();
                }
              },
              child: const Text('OPEN MENU'),
            );
          },
        ),
      ],
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
During the parts where focus is slowly moving, I'm only hitting the down arrow.
https://github.com/flutter/flutter/assets/59215665/92a136a6-09f2-401e-acb6-fc8074a562d0
For comparison, this is the menu from Angular Material
https://github.com/flutter/flutter/assets/59215665/ffef6603-ca3d-47fd-add5-52b3bf147036

Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel master, 3.19.0-2.0.pre.14, on macOS 14.0 23A344 darwin-arm64, locale en-US)
    • Flutter version 3.19.0-2.0.pre.14 on channel master at /Users/davidhicks/fvm/versions/master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 29db9dbd44 (7 weeks ago), 2024-01-08 23:24:31 -0500
    • Engine revision 820645dbcc
    • Dart version 3.4.0 (build 3.4.0-4.0.dev)
    • DevTools version 2.31.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/davidhicks/Library/Android/sdk
    • Platform android-34, build-tools 33.0.0
    • ANDROID_HOME = /Users/davidhicks/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

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

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.86.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.83.20240201

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 122.0.6261.69
    ! Error: Browsing on the local area network for David’s iPhone. Ensure the device is unlocked and attached with a
      cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Reproducible using the code sample provided above.

flutter doctor -v
[✓] Flutter (Channel stable, 3.19.2, on macOS 14.3.1 23D60 darwin-arm64, locale en-GB)
    • Flutter version 3.19.2 on channel stable at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision<PHONE_NUMBER> (2 days ago), 2024-02-27 16:51:22 -0500
    • Engine revision 04817c99c9
    • Dart version 3.3.0
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode-15.2.0.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.14.3

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

[✓] Android Studio (version 2023.1)
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
    • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 77.2.2
    • Dart plugin version 232.10286

[✓] VS Code (version 1.86.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.82.0

[✓] Connected device (4 available)
    • Nexus (mobile)       • 00008020-001875E83A38002E • ios            • iOS 17.3.1 21D61
    • Dean’s iPad (mobile) • 00008103-000825C811E3401E • ios            • iOS 17.3.1 21D61
    • macOS (desktop)      • macos                     • darwin-arm64   • macOS 14.3.1 23D60 darwin-arm64
    • Chrome (web)         • chrome                    • web-javascript • Google Chrome 122.0.6261.69

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.20.0-15.0.pre.47, on macOS 14.3.1 23D60 darwin-arm64, locale en-GB)
    • Flutter version 3.20.0-15.0.pre.47 on channel master at /Users/nexus/dev/sdks/flutters
    ! Warning: `flutter` on your path resolves to /Users/nexus/dev/sdks/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutters. Consider adding /Users/nexus/dev/sdks/flutters/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/nexus/dev/sdks/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nexus/dev/sdks/flutters. Consider adding /Users/nexus/dev/sdks/flutters/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e92bca3ff5 (7 hours ago), 2024-02-29 07:47:19 +0100
    • Engine revision d068d980f9
    • Dart version 3.4.0 (build 3.4.0-187.0.dev)
    • DevTools version 2.33.0-dev.11
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/nexus/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode-15.2.0.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.14.3

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

[✓] Android Studio (version 2023.1)
    • Android Studio at /Users/nexus/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
    • IntelliJ at /Users/nexus/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 77.2.2
    • Dart plugin version 232.10286

[✓] VS Code (version 1.86.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.82.0

[✓] Connected device (5 available)
    • Nexus (mobile)                  • 00008020-001875E83A38002E • ios            • iOS 17.3.1 21D61
    • Dean’s iPad (mobile)            • 00008103-000825C811E3401E • ios            • iOS 17.3.1 21D61
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 14.3.1 23D60 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 14.3.1 23D60 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 122.0.6261.69

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

CC @gspencergoog

FYI I'm almost certain this is because ReadingOrderTraversalPolicy is the default focus order, and the menu uses the default focus policy to request the next focusable item.


Cannot run two servers at once

Today i tried to setup second server. I made a second user (csgoserver2) and downloaded script and installed game.. On first server I have ports 27000, 27001 and 27002. On second I have 27997, 27998 and 27999. I can't get it to work simultaneously. When I launch first server, second shuts down and when I launch second, first shuts down. On the second server I changed service name to csgo-server2. I have cronjob monitoring servers every 5 minutes. On first server it can't query that port, second is not running.. I have no clue, where could be an issue..

Was my fault, missed, that I was using one auth token for two servers.. LOCK


Restructured the backend files. Wrote toggle-favorite

I restructured backend files according to the official documentation here. I think we need to use multiple files in our backend, and it's better to start early. The doc is a bit long. Feel free to ask me if there's any part that is not clear.
I also moved the tests to the tests folder and divided tests based on their modules.
Notice that the URLs for friends APIs are now prefixed with /friends/. For example, /new-friends/ becomes /friends/new-friends/.
Similarly, the new one has the URL /favorites/toggle-favorite/.
Also, notice that the new API I wrote uses JSON as a means to pass parameters (instead of the query string). Documentations on how to use it can be found here. This is the preferred way as it automatically checks for any incompatible/missing parameters, so that we don't need to write these checks by hand.

Now rebased to current dev.

holy guacamole, David, 93 files

It is probably because I merged the development branch into my branch. I was hoping rebase will reduce the commit amount, but apparently that didn't do it.

It is probably because I merged the development branch into my branch. I was hoping rebase will reduce the commit amount, but apparently that didn't do it.

Try reverting the rebase and do git pull origin dev. This happened to Ore and doing that fixed it

OK I guess now it's better :)
Will fix the failing test later.

OK I guess now it's better :) Will fix the failing test later.

If you are ever worried that the merging or anything isn't good, you could always just start fresh in a new branch from dev and edit in everything you were doing. I know its a bit more work but at least you can be sure that its correct

I'm not sure why, but it looks like the register test creates users in the production database (when it shouldn't).

I think I found the cause

If you're not seeing the Dry run enabled, not updating print message then its not using the TestDatabase class in server_test.py

I am removing TestDatabase class and using an environment variable to identify whether the server is running in test mode.


Breaking pages on developer.mozilla.org (mdn docs)

The pages on developer.mozilla.org are not loading due to an exception being thrown.
DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at ki (https://developer.mozilla.org/static/js/4.b149388b.chunk.js:2:129796)
    at ki (https://developer.mozilla.org/static/js/4.b149388b.chunk.js:2:129869)
    at ki (https://developer.mozilla.org/static/js/4.b149388b.chunk.js:2:129869)
    at ki (https://developer.mozilla.org/static/js/4.b149388b.chunk.js:2:129901)
    at ki (https://developer.mozilla.org/static/js/4.b149388b.chunk.js:2:129869)
    at bi (https://developer.mozilla.org/static/js/4.b149388b.chunk.js:2:129294)
    at Nu (https://developer.mozilla.org/static/js/4.b149388b.chunk.js:2:142075)
    at t.unstable_runWithPriority (https://developer.mozilla.org/static/js/4.b149388b.chunk.js:2:162894)
    at $a (https://developer.mozilla.org/static/js/4.b149388b.chunk.js:2:85253)
    at Lu (https://developer.mozilla.org/static/js/4.b149388b.chunk.js:2:140236)
ii @ react-dom.production.min.js:216

The URL (if applicable) pertaining to my problem is:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split

This same thing happens on a number of my company's internal sites.  I've had to disable this add on for now.

I applied a fix for mdn. It's pending in the chrome store, but the version will be 1.3.7. Maybe it'll fix your other sites too.

I'm going to close this for now, but if you're still running into problems, just let me know.


Problem with 'Add Account'

For anyone who is trying to play with SpeckleBlender ( Version 2.8)
If you failed to add your account and got an error message "Failed to connect to database." in Cache.py line 165
All what you have to do it to create a folder "SpeckleSettings" at this location:
C:\Users\YOUR_USER_NAME\AppData\Local\SpeckleSettings

Similarly on Linux you need to create a SpeckleSettings folder in your home folder ('mkdir ~/SpeckleSettings`). I will try to submit a PR to fix this issue which apparently is part of PySpeckle not SpeckleBlender.

@ifcwebserver Yes, sorry, this fell off the truck since I've been testing it on a system that already has the Rhino Speckle client, therefore the SpeckleSettings folder already exists :)
@CyrilWaechter has fixed this in PySpeckle.


CB-11968: Add support for config-file in config.xml

Platforms affected
What does this PR do?
Cordova-common changes: https://github.com/apache/cordova-common/pull/2 (should be merged before)
This PR is needed to apply changes using  'device-target' and 'versions' attributes to manifests.
Checklist

[x] Reported an issue in the JIRA database
[x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
[ ] Added automated test coverage as appropriate for this change.

I'm not familiar with this changeset enough, but I think this probably needs unit tests :)
Once more, ping @stevengill.

First we should merge cordova-common's PR and update cordova-common in node_modules, because this PR uses a new logic from cordova-common and just processes result specifically for windows platform.

It has been merged. Will try to get a release out this week

What is the state of this PR now? All requirements merged?

The failures you are seeing now are expected as master wasn't being tested for the last few months after a breaking change was introduced

@janpio can you give us an explanation of what the breaking change was and if it affected any releases already published?
I was expecting and hoping to see the new cordova-windows release 1-2 weeks ago, with the fix for startup crash on Windows 8.1 (https://issues.apache.org/jira/browse/CB-13175 / PR #239). This is major for me since I still have to test a special Cordova sqlite plugin version on Windows 8.1 build. Any idea when we can see this release?
+1 for fixing CI tests, though I would give higher priority to releasing a fix for the startup crash issue.

@brodybits see #246 for the PR fixing this (problem only got introduced after last release, so no effect on released and published versions).
Without passing tests I can't do a release, which is why this is all taking much longer than hoped (and expected). But noone noticed the broken tests before, so nothing I can do about that now (but fixing it myself).
(Problem with https://issues.apache.org/jira/browse/CB-13834 by the way is that I can not reproduce it locally - so help very much welcome in doing so.)

Oh yes, and I could use a review on https://github.com/apache/cordova-windows/pull/246 of course @brodybits so I don't just have to merge my own code changes without anyone approving it. Please have a look, without that we can't progress at all.

Thanks @janpio for the detailed response and thanks for merging this one. I will take a look at #246 and continue the discussion there.

Is this functionality live? I haven't seen any documentation on how to add to the config besides plugins...

I don't think the documentation was updated, only the actual code. (PRs to the docs are highly appreciated of course!)


Error because of .map in _prepare_non_packed_dataset in sft_trainer.py

Hello,
I would like to finetune falcon 40b using the SFTTrainer. I have a custom dataset (which is a pandas Dataframe with two columns: prompts and labels). Now, I would like to use the SFTTrainer without packing, so I have added a formatting_prompts_function (analogue to here: https://github.com/lvwerra/trl/pull/444). The .map function in line 307 in sft_trainer.py seems to cause an issue, since DataFrame does not have a .map attribute. I have tried changing the datatype to dict, list and a custom dataset class that inherits from torch.utils.data.Dataset, but nothing has worked so far.
I would really appreciate, if anyone could tell me, what datatype is expected here ?
Thank you very much! :)

Okay, so I realized that the function would like to have a Huggingface Dataset, now it works!


性能剖析不显示数据

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?

Bug

Which version of SkyWalking, OS, and JRE?

Which company or project?

What happened?
If possible, provide a way to reproduce the error. e.g. demo application, component version.

Requirement or improvement

Please describe your requirements or improvement suggestions.

We only accept English discussion on GitHub, and you provide no detail.

We only accept English discussion on GitHub, and you provide no detail.


[Tooltip] Complete API

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

So this PR is complete. Now I am facing an issue in the stories/Tooltip.content.story.vue.
I have no idea what is going on and how I can debug it. Any one has an idea why I get this error?

Going to stories/Tooltip.story.vue seems to work fine

At some point I think we have to update the Tooltip focus event. We don't really want to open it for every event, just for events triggered by keyboard.
I opened this PR in VueUse so we can use that composable or we just copy and paste that function into our project, as we want.
In Radix, for example, they just check if the event was triggered by a PointerDown, see Radix Code


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1670 ms

Resolved: Bofrost.at performance has improved in f726de9.


Add flag to configure restic to use ListObjectsV1 instead of the default ListObjectsV2

Summary
As a user"
I want "to be able to configure k8up so that restic uses ListObjectsV1 instead of the default ListObjectsV2"
So that "I can avoid issues backing up on S3 compatible backends that don't (fully) support ListObjectsV2"
Context
If the S3 backend doesn't (fully) support ListObjectsV2, restic fails to backup properly and will print errors like this:
0505 23:00:20.318302       1 logging.go:122] wrestic/k8s-objects-75654c6f85-gdkpg "msg"="backups (10/181): Downloading" "error"="error during command"
E0505 23:00:20.402983       1 logging.go:150] wrestic/stdinBackup/progress "msg"="can't decode restic json output" "error"="invalid character 'L' looking for beginning of value"  "string"="List(index) returned error, retrying after 597.
811922ms: Truncated response should have continuation token set"
E0505 23:00:20.604731       1 logging.go:122] wrestic/k8s-objects-75654c6f85-gdkpg "msg"="Received 28 backups objects" "error"="error during command"
E0505 23:00:20.604800       1 logging.go:122] wrestic/k8s-objects-75654c6f85-gdkpg "msg"="" "error"="error during command"
[...]
E0505 23:01:39.690198       1 logging.go:122] wrestic/k8s-objects-75654c6f85-gdkpg "msg"="Splitting 113 JSON files" "error"="error during command"
E0505 23:01:43.969737       1 logging.go:122] wrestic/k8s-objects-75654c6f85-gdkpg "msg"="K8s backup finished without errors" "error"="error during command"

Further links

https://github.com/restic/restic/issues/3083

With the new release, you should be able to set
BACKUP_RESTIC_OPTIONS to s3.list-objects-v1=true to use the ListObjectsV1


FileInsertCall.Convert(true) still doesn't work

<EMAIL_ADDRESS>on 20 Aug 2014 at 10:51:
What steps will reproduce the problem?
1. Create quickstart.go and document.txt as per
https://developers.google.com/drive/web/quickstart/quickstart-go
2. Change "r, err := svc.Files.Insert(f).Media(m).Do()" to "r, err :=
svc.Files.Insert(f).Media(m).Convert(true).Do()".
3. Execute "go run quickstart.go".

What is the expected output? What do you see instead?

I expected to see a file in Google Drive in native Google Docs format (and
therefore consuming no quota).  Instead, the file showed up as a generic
document (and therefore consuming a few bytes of quota).

What version of the product are you using? On what operating system?

I'm running Ubuntu 14.04 with the following configuration:

    $ go version
    go version go1.3.1 linux/amd64
    $ hg summary
    parent: 128:e1c259484b49 tip
     google-api-go-client: Add a Cloud Pub/Sub example.
    branch: default
    commit: (clean)
    update: 1 new changesets, 2 branch heads (merge)

Please provide any additional information below.

This issue is similar to
https://code.google.com/p/google-api-go-client/issues/detail?id=35, but in that
issue, the file on Drive had no content.  I'm seeing content but without the
requested conversion to Docs format.

Performing the same code modification on the Python version (quickstart.py)
does work.  This implies that there's probably an issue with the Go version of
the API, but I don't see anything suspicious from a quick skim of drive-gen.go.

-- Scott

Successfully auto-migrated from code.google.com:
https://code.google.com/p/google-api-go-client/issues/detail?id=66

Thank you for the detailed instructions.  I just followed them, and it appears that something has been fixed on the Drive API server because this issue now works as expected and creates a native Drive doc.
Closing as fixed.


Do not remove the unit from zero values in custom properties.

Fixes https://github.com/ben-eb/cssnano/issues/286.

Awesome, thanks very much. 👍


Motion Events in depth order

Adding motion events in cursor events.
Set default scale and max scale for cursor
Send cursor events in depth order

Has this change been verified that works with the app that needs it? Clicks with the mouse or the HMD's trackpad do not work for me.

I have make significant changes and merged all commits into a single commit and put it in another pull request. So I will close this one.


refactor: rewrite so user does not need to resolve AlgebraOfNNs/Lux

https://github.com/jesseylin/AlgebraOfNNs.jl/blob/483d68d663bc9d6f4d1989c4aeee8e7543cafa41/src/lift.jl#L10
Right now, the user must have AlgebraOfNNs specifically in their namespace somehow (either using or import). This can be fixed at the cost of considerable complication in the codebase, by changing all the functions with prefix lift_ into macros that are then expanded at call time within the context of the AlgebraOfNNs module (may require two separate passes of the AST), or by literally copy pasting their source code. I think the latter solution is almost preferable.

Actually, the user must also resolve Lux. This could be fixed more easily but there could be corner cases.


response status missing in puppeteer crawler (works in cheerio)

Which package is this bug report for? If unsure which one to select, leave blank
@crawlee/puppeteer (PuppeteerCrawler)
Issue description
The response.statusCode is missing in Puppeteer crawler
This works
  const crawler = new CheerioCrawler({
    async requestHandler({
      request, $, log, response,
    }) {
      console.log(response.statusCode);
...

This doesn't:
  const crawler = new PuppeteerCrawler({
    async requestHandler({
      request, page, log, response,
    }) {
      console.log(response.statusCode);

// Cannot read properties of undefined (reading 'statusCode')

Code sample
const crawler = new PuppeteerCrawler({
    async requestHandler({
      request, page, log, response,
    }) {
      console.log(response.statusCode);

// Cannot read properties of undefined (reading 'statusCode')

Package version
<EMAIL_ADDRESS>Node.js version
v16.17.0
Operating system
MacOs 12.6
Apify platform

[ ] Tick me if you encountered this issue on the Apify platform

Priority this issue should have
Medium (should be fixed soon)
I have tested this on the next release
<EMAIL_ADDRESS>Other context
It's not possible to react to custom http response codes in the crawler if it's impossible to read it.

The types aren't the same:

https://crawlee.dev/api/puppeteer-crawler/interface/PuppeteerCrawlingContext#response
https://crawlee.dev/api/cheerio-crawler/interface/CheerioCrawlingContext#response

response is a Puppeteer response:
https://pptr.dev/next/api/puppeteer.httpresponse

Question answered on Discord. This is not a bug, and does not need fixing.

Thanks @mstephen19 - pointed out in Discord:
PuppeteerCrawler returns a Puppeteer HTTPResponse object.
https://pptr.dev/next/api/puppeteer.httpresponse/
Grab the status from it with the .status() function.
import { PuppeteerCrawler } from 'crawlee';

const crawler = new PuppeteerCrawler({
    requestHandler: ({ response }) => {
        console.log(response.status());
    }
})


keepalive topic for the bridge

Hello,
thank you very much for this great piece of software. :-)
Is it possible to implement a keep alive topic to check if the bridge is (still) running?
Thanks in advance.

@nefiertsrebliS thanks for the update. Good to know. :-)


Support .card -> .table-responsive -> .table

Change is so it works with table-responsive, i.e less strict:

...

...

..plus formating

@lcherone thanks for contributing! Two things:

I'm afraid that removing the child combinator selector will make it too loose. After this change, the styles would apply to any tables placed within .card-body, which would be unwanted. Please don't remove the existing child combinator selector which prevents that from happening, and instead add additional selectors to target the responsive table path.
There are whitespace/code style changes included in this PR throughout the entire file, in addition to the change required to support responsive tables. Please update the PR to respect the original code style so the diff only has the changes required to support responsive tables. Large-scale whitespace and code style updates can be discussed in a separate issue if necessary.

np, I thought id send it, had manually just used it anyway.

It does need .table-responsive support. Guessing there is a better way and more targeted.
Formatting was fixed by vs-code automatically, sorry about that but the formatting was all of anyway.


Use cacert from rancher

Signed-off-by: Itxaka<EMAIL_ADDRESS>Part of https://github.com/rancher/elemental-operator/issues/32

Codecov Report

Merging #36 (73df0fb) into main (bcfe4d0) will decrease coverage by 1.13%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #36      +/-   ##
==========================================
- Coverage   42.55%   41.42%   -1.14%
==========================================
  Files           9        9
  Lines         658      676      +18
==========================================
  Hits          280      280
- Misses        358      376      +18
  Partials       20       20

Impacted Files
Coverage Δ

pkg/server/register.go
13.71% <0.00%> (ø)

pkg/server/server.go
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


[Registration] There is no validation of the "Назва розділу" field on the entered data.

Environment: Windows 10, 64-bit, Google Chrome 107.0.5304.107.
Reproducible: always.
Preconditions
1.Go to https://oos.dmytrominochkin.cloud/#/
2.Register a new service provider.
3."РЕЄСТРАЦІЯ НОВОГО ЗАКЛАДУ" page is opened.
Steps to reproduce

Fill in valid data in the mandatory field on the first page of the institution's registration.
Click on "Далі" button.
Fill in valid data in the mandatory field on the second page of the institution's registration.
Click on "Далі" button.
Fill the "Назва розділу" field of the "Опис" tab with numbers and various signs "?&$#/+-".

Actual result
Only numbers and symbols can be entered in the "Назва розділу" field.

Expected result
According to the logic of the "Назва розділу" field, the filling must be alphabetical. There should be a check for entering numbers and symbols.
Labels to be added
"Bug", Priority ("pri:low"), Severity ("severity:low"), Type ("UI").

Fixed


Open Source License

Can you please add an open source license (preferably Apache 2.0)? This is mainly important for the evaluation script.

I am also looking for a license for the utils folder

Apologies for missing this, earlier. I added the Apache 2.0 license.
Best,
Mandar

Hello, does the Apache 2.0 license also apply to the data? If not, what is the dataset's license? Thanks


automate sonatype release

use the nexus-staging plugin to automate the deployment
TL;DR
The jars are successfully pushed to the repository but we need to login to "manually" release them.
Based on these docs i think we should be able to use the nexus plugin to avoid that manual step:
https://central.sonatype.org/publish/publish-maven/#manually-releasing-the-deployment-to-the-central-repository
https://central.sonatype.org/publish/release/#locate-and-examine-your-staging-repository
Type

[ ] Bug Fix
[ ] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
Remove the 'fixes' keyword if there will be multiple PRs to fix the linked issue
fixes https://github.com/flyteorg/flyte/issues/
Follow-up issue
NA
OR
https://github.com/flyteorg/flyte/issues/

related to https://github.com/flyteorg/flyte/issues/2086


Dev rogue5

Codecov Report

Merging #16 into dev will decrease coverage by 1%.
The diff coverage is 6.27%.

@@           Coverage Diff            @@
##             dev     #16      +/-   ##
========================================
- Coverage   26.3%   25.3%   -1.01%
========================================
  Files        303     335      +32
  Lines       7827    8252     +425
  Branches     682     718      +36
========================================
+ Hits        2059    2088      +29
- Misses      5710    6105     +395
- Partials      58      59       +1

Impacted Files
Coverage Δ

Vstack.Externals.Tests/Scheduling/Extensions.cs
81.63% <ø> (-0.73%)
:arrow_down:

Vstack.Common/Utilities/MultilineString.cs
46.15% <ø> (ø)
:arrow_up:

Vstack.Services/Services/BaseService.cs
0% <ø> (ø)
:arrow_up:

Vstack.Externals/ShipHawk/Model/ZipCode.cs
0% <0%> (ø)

Vstack.Externals/ShipHawk/Json/ContractResolver.cs
0% <0%> (ø)

Vstack.Externals/ShipHawk/Model/Crate.cs
0% <0%> (ø)

Vstack.Externals/ShipHawk/Model/UnpackedItem.cs
0% <0%> (ø)

Vstack.Externals/ShipHawk/Model/Item.cs
0% <0%> (ø)

Vstack.Externals/WebHelp/JsonWebClient.cs
0% <0%> (ø)
:arrow_up:

Vstack.Common/Utilities/VstackTask.cs
0% <0%> (ø)

... and 68 more

Continue to review full report at Codecov.

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


Bike profile is not using highway=trunk ways

Describe the bug
Default bike profile (bike.json) is not using highway=trunk ways. I've tested this on latest master branch and 10.0 tag. It works fine on graphhopper.com/maps- what version is deployed there? Or is it customized?
I was looking at the code and I think trunk ways are deprioritized but still should be routable, right?  Is it maybe because of max speed 90? I was trying to change that in the code but still wasn't able to use trunk form the example.
To Reproduce

checkout recent recent master or tag/10.0  of GraphHopper
https://download.geofabrik.de/europe/estonia-latest.osm.pbf from https://download.geofabrik.de/europe/estonia.html
Config is at the bottom.
run java -Xmx8g -Xms8g -Ddw.graphhopper.datareader.file=estonia-latest.osm.pbf -jar web/target/graphhopper-web-*.jar server config-example.yml

Expected behavior
It should work as in hosted graphhopper:
https://graphhopper.com/maps/?point=59.342544%2C24.195094&point=59.341231%2C24.266505&profile=bike&layer=OpenStreetMap
System Information
macOS Sonoma 14.3.1, openjdk 21.0.2 2024-01-16 LTS
GH 10.0
Screenshots & Logs

Works here but not in self hosted version:
https://graphhopper.com/maps/?point=59.342544%2C24.195094&point=59.341231%2C24.266505&profile=bike&layer=OpenStreetMap
graphhopper:

  # OpenStreetMap input file PBF or XML, can be changed via command line -Ddw.graphhopper.datareader.file=some.pbf
  datareader.file: ""
  # Local folder used by graphhopper to store its data
  graph.location: graph-cache

  ##### Routing Profiles ####

  # Routing can be done only for profiles listed below. For more information about profiles and custom profiles have a
  # look into the documentation at docs/core/profiles.md or the examples under web/src/test/java/com/graphhopper/application/resources/
  # or the CustomWeighting class for the raw details.
  #
  # In general a profile consists of the following
  # - name (required): a unique string identifier for the profile
  # - weighting (optional): by default 'custom'
  # - turn_costs (optional):
  #     vehicle_types: [motorcar, motor_vehicle] (vehicle types used for vehicle-specific turn restrictions)
  #     u_turn_costs: 60 (time-penalty for doing a u-turn in seconds)
  #
  # Depending on the above fields there are other properties that can be used, e.g.
  # - custom_model_files: when you specified "weighting: custom" you need to set one or more json files which are searched in
  #   custom_models.directory or the working directory that defines the custom_model. If you want an empty model you can
  #   set "custom_model_files: []
  #   You can also use the `custom_model` field instead and specify your custom model in the profile directly.
  #
  # To prevent long running routing queries you should usually enable either speed or hybrid mode for all the given
  # profiles (see below). Or at least limit the number of `routing.max_visited_nodes`.

  profiles:
   - name: bike
#     turn_costs:
#       vehicle_types: [motorcar, motor_vehicle]
#       u_turn_costs: 60
#     for more advanced turn costs, see #2957 or bike_tc.yml
     custom_model_files: [bike.json]

#   You can use the following in-built profiles. After you start GraphHopper it will print which encoded values you'll have to add to graph.encoded_values in this config file.
#
#    - name: foot
#      custom_model_files: [foot.json, foot_elevation.json]
#
#    - name: bike
#      custom_model_files: [bike.json, bike_elevation.json]
#
#    - name: racingbike
#      custom_model_files: [racingbike.json, bike_elevation.json]
#
#    - name: mtb
#      custom_model_files: [mtb.json, bike_elevation.json]
#
#    # See the bus.json for more details.
#    - name: bus
#       turn_costs:
#         vehicle_types: [bus, motor_vehicle]
#         u_turn_costs: 60
#      custom_model_files: [bus.json]
#
#   Other custom models not listed here are: car4wd.json, motorcycle.json, truck.json or cargo-bike.json. You might need to modify and test them before production usage.
#   See ./core/src/main/resources/com/graphhopper/custom_models and let us know if you customize them, improve them or create new onces!
#   Also there is the curvature.json custom model which might be useful for a motorcyle profile or the opposite for a truck profile.
#   Then specify a folder where to find your own custom model files:
#  custom_models.directory: custom_models

  # Speed mode:
  # It's possible to speed up routing by doing a special graph preparation (Contraction Hierarchies, CH). This requires
  # more RAM/disk space for holding the prepared graph but also means less memory usage per request. Using the following
  # list you can define for which of the above routing profiles such preparation shall be performed. Note that to support
  # profiles with `turn_costs` a more elaborate preparation is required (longer preparation time and more memory
  # usage) and the routing will also be slower than with `turn_costs: false`.
  profiles_ch:
    - profile: bike

  # Hybrid mode:
  # Similar to speed mode, the hybrid mode (Landmarks, LM) also speeds up routing by doing calculating auxiliary data
  # in advance. Its not as fast as speed mode, but more flexible.
  #
  # Advanced usage: It is possible to use the same preparation for multiple profiles which saves memory and preparation
  # time. To do this use e.g. `preparation_profile: my_other_profile` where `my_other_profile` is the name of another
  # profile for which an LM profile exists. Important: This only will give correct routing results if the weights
  # calculated for the profile are equal or larger (for every edge) than those calculated for the profile that was used
  # for the preparation (`my_other_profile`)
  profiles_lm: []

  #### Encoded Values ####

  # Add additional information to every edge. Used for path details (#1548) and custom models (docs/core/custom-models.md)
  # Default values are: road_class,road_class_link,road_environment,max_speed,road_access
  # More are: surface,smoothness,max_width,max_height,max_weight,max_weight_except,hgv,max_axle_load,max_length,
  #           hazmat,hazmat_tunnel,hazmat_water,lanes,osm_way_id,toll,track_type,mtb_rating,hike_rating,horse_rating,
  #           country,curvature,average_slope,max_slope,car_temporal_access,bike_temporal_access,foot_temporal_access
  graph.encoded_values: car_access, car_average_speed, bike_priority, mtb_rating, hike_rating, bike_access, roundabout, bike_average_speed

  #### Speed, hybrid and flexible mode ####

  # To make CH preparation faster for multiple profiles you can increase the default threads if you have enough RAM.
  # Change this setting only if you know what you are doing and if the default worked for you.
  # prepare.ch.threads: 1

  # To tune the performance vs. memory usage for the hybrid mode use
  # prepare.lm.landmarks: 16

  # Make landmark preparation parallel if you have enough RAM. Change this only if you know what you are doing and if
  # the default worked for you.
  # prepare.lm.threads: 1

  #### Elevation ####

  # To populate your graph with elevation data use SRTM, default is noop (no elevation). Read more about it in docs/core/elevation.md
  # graph.elevation.provider: srtm

  # default location for cache is /tmp/srtm
  # graph.elevation.cache_dir: ./srtmprovider/

  # If you have a slow disk or plenty of RAM change the default MMAP to:
  # graph.elevation.dataaccess: RAM_STORE

  # To enable bilinear interpolation when sampling elevation at points (default uses nearest neighbor):
  # graph.elevation.interpolate: bilinear

  # Reduce ascend/descend per edge without changing the maximum slope:
  # graph.elevation.edge_smoothing: ramer
  # removes elevation fluctuations up to max_elevation (in meter) and replaces the elevation with a value based on the average slope
  # graph.elevation.edge_smoothing.ramer.max_elevation: 5
  # Using an averaging approach for smoothing will reveal values not affected by outliers and realistic slopes and total altitude values (up and down)
  # graph.elevation.edge_smoothing: moving_average
  # window size in meter along a way used for averaging a node's elevation
  # graph.elevation.edge_smoothing.moving_average.window_size: 150

  # To increase elevation profile resolution, use the following two parameters to tune the extra resolution you need
  # against the additional storage space used for edge geometries. You should enable bilinear interpolation when using
  # these features (see #1953 for details).
  # - first, set the distance (in meters) at which elevation samples should be taken on long edges
  # graph.elevation.long_edge_sampling_distance: 60
  # - second, set the elevation tolerance (in meters) to use when simplifying polylines since the default ignores
  #   elevation and will remove the extra points that long edge sampling added
  # graph.elevation.way_point_max_distance: 10

  #### Country-dependent defaults for max speeds ####

  # This features sets a maximum speed in 'max_speed' encoded value if no maxspeed tag was found. It is country-dependent
  # and based on several rules. See https://github.com/westnordost/osm-legal-default-speeds
  # To use it uncomment the following, then enable urban density below and add 'country' to graph.encoded_values
  # max_speed_calculator.enabled: true

  #### Urban density (built-up areas) ####

  # This feature allows classifying roads into 'rural', 'residential' and 'city' areas (encoded value 'urban_density')
  # Use 1 or more threads to enable the feature
  # graph.urban_density.threads: 8
  # Use higher/lower sensitivities if too little/many roads fall into the according categories.
  # Using smaller radii will speed up the classification, but only change these values if you know what you are doing.
  # If you do not need the (rather slow) city classification set city_radius to zero.
  # graph.urban_density.residential_radius: 400
  # graph.urban_density.residential_sensitivity: 6000
  # graph.urban_density.city_radius: 1500
  # graph.urban_density.city_sensitivity: 1000

  #### Subnetworks ####

  # In many cases the road network consists of independent components without any routes going in between. In
  # the most simple case you can imagine an island without a bridge or ferry connection. The following parameter
  # allows setting a minimum size (number of edges) for such detached components. This can be used to reduce the number
  # of cases where a connection between locations might not be found.
  prepare.min_network_size: 200
  prepare.subnetworks.threads: 1

  #### Routing ####

  # You can define the maximum visited nodes when routing. This may result in not found connections if there is no
  # connection between two points within the given visited nodes. The default is Integer.MAX_VALUE. Useful for flexibility mode
  # routing.max_visited_nodes: 1000000

  # default for snap_preventions
  routing.snap_preventions_default: tunnel, bridge, ferry

  # The maximum time in milliseconds after which a routing request will be aborted. This has some routing algorithm
  # specific caveats, but generally it should allow the prevention of long-running requests. The default is Long.MAX_VALUE
  # routing.timeout_ms: 300000

  # Control how many active landmarks are picked per default, this can improve query performance
  # routing.lm.active_landmarks: 4

  # You can limit the max distance between two consecutive waypoints of flexible routing requests to be less or equal
  # the given distance in meter. Default is set to 1000km.
  routing.non_ch.max_waypoint_distance: 1000000

  #### Storage ####

  # Excludes certain types of highways during the OSM import to speed up the process and reduce the size of the graph.
  # A typical application is excluding 'footway','cycleway','path' and maybe 'pedestrian' and 'track' highways for
  # motorized vehicles. This leads to a smaller and less dense graph, because there are fewer ways (obviously),
  # but also because there are fewer crossings between highways (=junctions).
  # Another typical example is excluding 'motorway', 'trunk' and maybe 'primary' highways for bicycle or pedestrian routing.
  # import.osm.ignored_highways: footway,cycleway,path,pedestrian,steps # typically useful for motorized-only routing
  import.osm.ignored_highways: motorway,trunk # typically useful for non-motorized routing

  # configure the memory access, use RAM_STORE for well equipped servers (default and recommended)
  graph.dataaccess.default_type: RAM_STORE

  # will write way names in the preferred language (language code as defined in ISO 639-1 or ISO 639-2):
  # datareader.preferred_language: en

  #### Custom Areas ####

  # GraphHopper reads GeoJSON polygon files including their properties from this directory and makes them available
  # to all tag parsers and custom models. All GeoJSON Features require to have the "id" property.
  # Country borders are included automatically (see countries.geojson).
  # custom_areas.directory: path/to/custom_areas

  #### Country Rules ####

  # GraphHopper applies country-specific routing rules during import (not enabled by default).
  # You need to redo the import for changes to take effect.
  # country_rules.enabled: true

# Dropwizard server configuration
server:
  application_connectors:
  - type: http
    port: 8989
    # for security reasons bind to localhost
    bind_host: localhost
    # increase GET request limit - not necessary if /maps UI is not used or used without custom models
    max_request_header_size: 50k
  request_log:
      appenders: []
  admin_connectors:
  - type: http
    port: 8990
    bind_host: localhost
# See https://www.dropwizard.io/en/latest/manual/core.html#logging
logging:
  appenders:
    - type: file
      time_zone: UTC
      current_log_filename: logs/graphhopper.log
      log_format: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"
      archive: true
      archived_log_filename_pattern: ./logs/graphhopper-%d.log.gz
      archived_file_count: 30
      never_block: true
    - type: console
      time_zone: UTC
      log_format: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"
  loggers:
    "com.graphhopper.osm_warnings":
      level: DEBUG
      additive: false
      appenders:
        - type: file
          currentLogFilename: logs/osm_warnings.log
          archive: false
          logFormat: '[%level] %msg%n'

@karussell Ah, I missed that obvious config 🤦 It works of course when I removed trunk from import.osm.ignored_highways
Sorry for the noise here!


Edit tasks from the site itself

Ankush should be able to add the query param ?edit=true to the URL, and every detail on the task should be editable on a click:

Title
Dates
Assignees
etc

After the update to the task is made by Ankush, the site should not need a refresh to see the new state

[ ] Adding query parameter ?edit=true should lead to an editable page of tasks.
[ ] Build the front end of this page and editing should be done using input box / input entry commands.
[ ] Connect the edited form with the original and display the results without reloading.


new example added : digicom for joomla

Digicom Joomla component has been built with joomla-gulp too, check it out
https://github.com/themexpert/digicom

Thank you!!


.startevent reaction does not work

.startevent reaction does not work if the currency sign is animated. However, it should work because bots have access to animated emojis.

Little update on this. Can you have a look at #nadeko-beta-testing in the server?
You can search on ".startevent reaction 500"
Seems like kwoth is going to fix this soon :-)

Yeah, I see it. Thank you :)

It will work now in 2.11 (if you're on linux)


replace site address with :80

you need :80 so you the system's caddy talk to your internal caddy

:80 is not equivalent to localhost:80
The cicvmhost01 deployment was unable to function in a caddy-behind-caddy (system caddy + docker caddy) situation without making this change.
system caddy config was:
#Internal OpenDataCapture for human studies
http://odc.douglas.rtss.qc.ca {
        reverse_proxy http://localhost:5500
}

Okay I'll change this in the env file. We need a generic solution for this

Okay I'll change this in the env file. We need a generic solution for this

You mean that the SITE_ADDRESS will become the entire line in the caddyfile?

No, I mean I will change localhost:80 to  :80.

This is now changed in the template


[Bug] AffineAutoregressive transform leads to exploding gradients

Issue Description
In the Affine bijector, the scale parameter is obtained by clamping the parameters (network) output. According to some of my experiments this results in very unstable behavior and exploding gradients, especially in low entropy settings. I believe this is due to the non-continuities introduced in the gradients by the clamp operation.
Instead of clamping, the nflows package applies softplus to the network's output which also has the effect to bound (by below) the scale, while keeping smooth gradients. According to my experiments with Pyro, softplus works better than clamping and, importantly, is not subject to exploding gradients. I would suggest replacing clamping by softplus.
Expected Behavior
Avoid exploding gradients. I have implemented the replacement of clamping by softplus for FlowTorch (https://github.com/francois-rozet/flowtorch/commit/9bf41e5b67a8993aa6173d6341f9d99ae5e7178b) but haven't had the time to test it properly.
Additional Context
This issue is a replica of https://github.com/pyro-ppl/pyro/issues/2998
Merry Christmas 🎄

Hi @francois-rozet thanks for raising this.
I agree, we should have a softplus non-linearity. I usually use f = softplus(x + bias) where bias=0.54... such that f(torch.zeros(1)) = 1.0 (otherwise the layer will 'shrink' the input).
@stefanwebb what about letting the user choose which non-linearity must be used for the positive mapping of parameters? Something like
layer = AffineLayer(positive_map='softplus')

I think that for actnorm, batchnorm etc and deep architectures (e.g. glow, iResnet) this will be useful.

Side note: the method on this:
clamp_preserve_gradients could be simplified with
def clamp_preserve_gradients(x: torch.Tensor, min: float, max: float) -> torch.Tensor:
    """
    This helper function clamps gradients but still passes through the
    gradient in clamped regions
    """
    x.data.clamp_(min, max)
    return x

where all modifications are done in place.

@vmoens won't f = softplus(x + bias) already have a bias term added to x since x is the output of a feedforward network? I've removed this feature to simplify the logic and have broken out into a separate PR: #109


After 10K traces the count in the dashboard does not update

Refer to : https://github.com/microsoft/azure-container-apps/issues/1213
https://github.com/microsoft/azure-container-apps/issues/1213#issuecomment-2195497452

@snehapar9 Is the dashboard not updating with new traces, or has the number stopped at 10k? The number stopping at 10k is expected, as that's the in-memory limit. At that point, old traces are removed as new traces are added.
Continuing to increase the number without the data isn't technically possible.
What about adding an indication somewhere to the UI that the memory limit has been reached and old traces are being removed?

@snehapar9 Is the dashboard not updating with new traces, or has the number stopped at 10k? The number stopping at 10k is expected, as that's the in-memory limit. At that point, old traces are removed as new traces are added.
Continuing to increase the number without the data isn't technically possible.
It seems like the problem is that the user thinks telemetry is no longer updating. What about adding an indication somewhere to the UI that the memory limit has been reached and old traces are being removed?

@JamesNK @kvenkatrajan could we consider adding a disclaimer like "The 10,000 most-recent traces are displayed"?  It could be added as a subtitle that persists under the Traces header.

There is a PR here: https://github.com/dotnet/aspire/pull/4799. The text is easy to change.
I don't think it should be something that is always displayed. The majority of the time the dashboard won't reach the maximum data limit. The message should be displayed in that situation, and not unnecessarily.


panel.onDidDispose can't reliable be used to avoid exceptions

Tests: Microsoft/vscode#48453
The documentation suggests that panel.onDidDispose can reliable be used to avoid exception. I think this is not true since the communication between the renderer and extension host is async. It can happen that the user presses the close button and the extension tries to access the WebView before the dispose event made it to the extension host. We should either make this clear in the doc or handle these cases more gracefully.

Good point, although I believe this is mitigated by how dispose is implemented. The important points:

The extension host throws if you try accessing a disposed webview. The main thread does not.
The main thread throws if you try accessing an unknown webview.

Here's what happens when the user closes a panel:

The onDispose callback is invoked in mainThreadWebview
The callback sends a  onDidDisposeWebview message to the extension host.
The extension host receives this message. It marks its ExtHostWebview object as being disposed and fires the extension onDidDispose method which synchronously invokes all the listeners. If an extension tries to call method on the webview object at this point, an error will be thrown
Meanwhile, the mainThreadWebview has been waiting for the extension host's onDidDiposeWebview event to complete. If the extension host tries to access the disposed webview while the mainThreadWebview is waiting, no error should occur because the main thread still knows about this webview
Once onDidDisposeWebview completes in the mainThreadWebview, we delete the webview. At this point, any future attempts to access it will throw errors

Do you think that this mitigates the concern?

What happens if the extension does something with the web view between 1. and 3. If this returns reasonable results and doesn't throw I am fine with closing the issue.

Getters return the current values, while all the setters and methods no-op


Backfill missing wind generation, mainly prior to November 2010

SA wind power is missing generation from a bunch of wind farms before November 2010.
A bunch of small, old wind farms do not appear in AEMO data. It appears that a number did start reporting in Nov 2010. As a result, we show a jump in wind generation from around that time and figures before that time under-report generation.

Examples
Cathedral Rock — Nov 2010:

Mount Millar — Nov 2010

Lake Bonney — Nov 2010:

Canunda — Nov 2010:

Questions

Which generators still do not report?
Can we beg AEMO for the 'missing' data?

most of these are referred to in this piece on wattclarity.
according to that piece, they were all non-scehduled at some point, though cathedral rocks is now listed as semi-scheduled.
it is a lot of capacity:

for the record, here's what our wind generation record looks like:

(just fyi - the big increase in 2010 is an artifact / result of missing data - e.g. Lake Bonney been producing ~150GWh per month since late 2005, which is not visible on the version of this SA figure).

issue #105 merged here

https://gist.github.com/nc9/4d8a12be48387d1bf588d58a573caf9d
for my ref - data backfill issues for non-sched

Priorities for data quality:

This old non-scheduled data
Demand data import
Import interconnector data that is missing
Gap fill on each of generation, interconnector, demand, price et al and find if there may be any other gaps in each
BoM weather data


Added support for TP-Link EAP 225

Description:
Support for presence detection with TP-Link EAP225.
Checklist:
If the code communicates with devices, web services, or third-party tools:

[x] Local tests with tox run successfully. Your PR cannot be merged unless tests pass

No idea, why tests for py36-dev fail


[WIP] Prepare release 0.1

Summary
Prepare release 0.1
Details and comments

Before we release we need to do the ci configuration for docs publishing

I pushed the docs ci workflow in: #136


How can I stop streaming?

Hello and thank you for jsQR!
I'm newbie with programming, with a little help i found the way to insert the jsQR into a web form and it works. I only have a problem, the camera never stop.
After code found, how can i stop camera streaming? after : outputData.innerText = code.data;
if (code) {
drawLine(code.location.topLeftCorner, code.location.topRightCorner, "#FF3B58");
drawLine(code.location.topRightCorner, code.location.bottomRightCorner, "#FF3B58");
drawLine(code.location.bottomRightCorner, code.location.bottomLeftCorner, "#FF3B58");
drawLine(code.location.bottomLeftCorner, code.location.topLeftCorner, "#FF3B58");
outputMessage.hidden = true;
outputData.parentElement.hidden = false;
outputData.innerText = code.data;
?
Thank you for your help

Finally I found my solution! there she is
stopStreamedVideo(video);
function stopStreamedVideo(videoElem) {
const stream = videoElem.srcObject;
const tracks = stream.getTracks();
tracks.forEach(function(track) {
track.stop();
});
videoElem.srcObject = null;
}

Finally I found my solution! there she is
stopStreamedVideo(video);
function stopStreamedVideo(videoElem) {
const stream = videoElem.srcObject;
const tracks = stream.getTracks();
tracks.forEach(function(track) {
track.stop();
});
videoElem.srcObject = null;
}

Glad you found a solution!

requestAnimationFrame still running


Future[T] implementation discussion

If we call (*Future[T]).Then after Future[T] has completed, the Than-callback will never been called. And if we try to Collect a completed Future[T], it could cause deadlock.
for example:
func Test_Future(t *testing.T) {
	completed := make(chan struct{})
	fut := mo.NewFuture(func(resolve func(int), reject func(error)) {
		resolve(1)
		close(completed)
	})

	<-completed
	fut.Then(func(in int) (int, error) {
            fmt.Println(in) // will never been print
	    return in, nil
	}).Collect() // deadlock
}

Futures call next future once they have finished, so if we chain a callback on a finished future, the call chain would be broken.
And here is my commit to fix this commit.

commit

+1
It also happens if we collect after resolve was called:
func Test_Future(t *testing.T) {
	completed := make(chan struct{})
	fut := mo.NewFuture(func(resolve func(int), reject func(error)) {
		resolve(1)
		close(completed)
	})

	<-completed
	fut.Collect() // deadlock
}

Hi there
Thanks for inspecting this. @yougahu I gonna merge your commit and create a new release of mo.


TabViewItem close buttons aren't square in Controlsv2 anymore

Check out any Terminal version 1.13+, or even in the XCG.

(the contrast is VERY subtle, but the button hover outline is clearly rectangular)
For comparison, the old tab close button was much more square:

We're on [Microsoft.UI.Xaml.2.7.0-prerelease.210913003], Controlsv2. Terminal is XAML Islands, XCG isn't.

Tab Item close button design is aligned with other controls such as 'Search Button' in AutoSuggestBox or DropButton in Editable ComboBox. The new button is much more accessible than previous small button. It is big and easily clickable. Windows Terminal App itself is not yet updated to use the latest WinUI controls.

Windows Terminal App itself is not yet updated to use the latest WinUI controls

I work on the Terminal, we're updating to these controls in this current upcoming release 😉
I'm confident our users are going to file an issue that the buttons are no longer square, hence pre-emptively filing this upstream. I'm all for bigger buttons, but I'd still think they should be square.
For example, Edgium tabs:

Bigger that controlsv1, but still square.

@zadjii-msft have you tried to customize this value with light weight styling?

@chigy FYI

@StephenLPeters I haven't tried that yet. I'd bet it'd probably work. I just wanted to make sure this was on the radar as an intentional ControlsV2 change. I don't want other 3p developers to be surprised by this as well ☺

The official design should be in the toolkit. https://aka.ms/figmatoolkit


Adding Flag/Flags impl and test tags

This PR adds tests and implementation tags for the Flag and Flags classes.
Checklist

[x] This PR has only one purpose or idea.
[x] Tests have been added/updated to verify that the new/changed code works.

[x] The code style follows good practices.
[x] The commit message(s) follow good practices.

[x] The release notes (location doc/release/0.X.rst) are up-to-date with any important changes.
[x] The documentation is still up-to-date in the doc folder.
[x] No requirements were altered.
[x] The dependencies are still up-to-date in pyproject.toml.

There is no new source code added that would reduce coverage. Attributing failed checks to source spray.

Ignore the code coverage diff.
 Someone has a PR out that increases code coverage from main, and coveralls can't tell the difference between main and a PR branch.


fatal error: NAU88C10.h: No such file or directory  #include "NAU88C10.h"

Verifying...
In file included from sketch/src/registeredMethodHandlers.cpp:5:0:
/home/adumont/.arduino15/packages/AZ3166/hardware/stm32f4/1.3.2/libraries/Audio/src/AudioClass.h:8:22: fatal error: NAU88C10.h: No such file or directory
#include "NAU88C10.h"
^
compilation terminated.
exit status 1
[Error] Exit with code=1

Fixed in https://github.com/Microsoft/devkit-sdk/pull/756

Thanks  Alexandre, this will be in 1.3.3 release.

Tested on the latest code, it works well without any exception


Editing number fields on constituents set it to incorrect type

Bug Report
Steps to Reproduce:

Load Basket trading feature, create a basket
Edit weighting for a basket trade constituent
Change the basket trade Unit on top

Expected Result:
Basket Trade Constituent should show the updated weight
The quantity of the basket trade constituents should update to take account of basket trade unit
Actual Result:
Basket Trade Constituent  weight field is blank
type cast error on  basket trade unit

Need proper look at json desrialisation for number types
Also need to prevent DataTable being updated with different types from table def
For now added workaround to cast weigthing cell update on Basket trading constituent table to Double


Tasha's Ability Score Bonuses

#So was looking over some characters in the campaign I'm running, and I noticed some of the values displayed on the DM screen do not match up with the actual values of the character as far as Ability Scores. Did some investigating and found out that if a character is using the Tasha's Cauldron of Everything optional custom racial bonuses feature, in which they can choose where the racial bonuses of their character is invested, those Ability Scores on the DM Screen do not reflect the actual value. Figured this might just be a result of an update the DNDBeyond team added to accommodate the custom racial bonuses. Is there any way to fix this?

Adding Pictures as evidence

As can be seen here, there is a discrepancy between the Ability Scores on the DM screen and the character sheet, and this character has toggled the Ability Score options in character builder.

Adding Pictures as evidence

As can be seen here, there is a discrepancy between the Ability Scores on the DM screen and the character sheet, and this character has toggled the Ability Score options in character builder.

@FerrocCaldrson Ah, I'll have a look, it shouldn't require too much to fix!

@FerrocCaldrson Ah, I'll have a look, it shouldn't require too much to fix!

Just wanted to check in and see if there were any updates?

Just wanted to check in and see if there were any updates?
@TeaWithLucas

Sorry, I have been very busy recently. I have now looked into it and I think I can see why it's not working.
Unfortunately, it's not an super easy fix, but I have found the solution:
basically, it needs the data from these places:
https://character-service.dndbeyond.com/character/v4/game-data/racial-trait/collection
https://character-service.dndbeyond.com/character/v4/game-data/class-feature/collection
put into the definitionPool part, I tested it manually putting in the below and it worked.
definitionPool: {   "racial-trait": { 	  accessTypeLookup: {4566739: 1, 4566742: 1}, 	  definitionLookup:{ 		  4566739: {"id":4566739,"definitionKey":"racial-trait:4566739","entityTypeId":1960452172,"displayOrder":10,"name":"Languages","description":"
You can choose to replace each language in your Languages trait with \r\n\t\t\ta language from the following list: Abyssal, Celestial, Common, Deep Speech, Draconic, Dwarvish, Elvish, Giant, Gnomish, Goblin, Halfling, Infernal, Orc, Primordial, Sylvan, or Undercommon.
\r\n\t\t\t
Your DM may add or remove languages from that list, depending on what languages are appropriate for your campaign.
","snippet":"","hideInBuilder":false,"hideInSheet":true,"activation":null,"sourceId":1,"sourcePageNumber":null,"creatureRules":[],"spellListIds":[],"featureType":3,"sources":[{"sourceId":1,"pageNumber":null,"sourceType":1}],"affectedFeatureDefinitionKeys":["racial-trait:167"],"isCalledOut":false,"entityType":"racial-trait","entityID":4566739,"entityRaceId":24,"entityRaceTypeId":1743923279}, 		  4566742: {"id":4566742,"definitionKey":"racial-trait:4566742","entityTypeId":1960452172,"displayOrder":100,"name":"Ability Score Increase","description":"
Choose an ability score to increase by 1, instead of the previously granted strength score increase.

If you gain more than one increase, you can’t apply those increases to the same ability score, and you can’t increase a score above 20.
","snippet":"","hideInBuilder":false,"hideInSheet":true,"activation":null,"sourceId":1,"sourcePageNumber":null,"creatureRules":[],"spellListIds":[],"featureType":3,"sources":[{"sourceId":1,"pageNumber":null,"sourceType":1}],"affectedFeatureDefinitionKeys":["racial-trait:172"],"isCalledOut":false,"entityType":"racial-trait","entityID":4566742,"entityRaceId":20,"entityRaceTypeId":1228963568}},   } },

Oh no worries of course!
Ok, so I tried copy/pasting that code into the definitionPool part, and i dont think anything has changed. Have I done this right? Sorry, i have very little experience with code much.


Retired codes not displayed

See Care Professional Senior operating surgeon for cancer - the attribute itself is still active and should(?) show retired codes

item is CARE PROFESSIONAL SENIOR OPERATING SURGEON GRADE FOR CANCER (attr)
don't know why retired codes aren't showing though

Thank you James.


Change badgeTotal style

Hi,
Is there a way to customize the color of badgeTotal? in the cellModifier function?

Yup, the cell modifier is the way to go. Add a cssClass to the day cell and then style the badge accordingly, for example: http://plnkr.co/edit/UKmDh86GAYkEPdkXWzYb?p=preview
Hope that helps! 😄

Cool! Works like a charm!


Redirection resource not allowing refresh on front

The current RedirectionResource don't allow refresh (or direct navigation to pages). We can update it based on the JHipster one:
@Controller
@Generated
class RedirectionResource {

  private static final String FORBID_EXTENSION_PATTERN = "/{file:[^\\.]*}";
  private static final String TRAILING_DIR_PATTERN = "/{traillingDir:.*}/";

  @GetMapping(
    value = {
      FORBID_EXTENSION_PATTERN,
      "/*" + FORBID_EXTENSION_PATTERN,
      "/*/*" + FORBID_EXTENSION_PATTERN,
      TRAILING_DIR_PATTERN,
      "/*" + TRAILING_DIR_PATTERN,
      "/*/*" + TRAILING_DIR_PATTERN
    }
  )
  public String forward() {
    return "forward:/";
  }
}

I can work on it. Please assign this issue to me.
Thanks


Error with model.evaluate(): Error when checking target: expected dense_16 to have shape (7,) but got array with shape (1,)

Hi everyone, I'm new on keras and i'm developing a Neural Network model for my thesis.
This is a credit scoring model and the network here should assign the right rating for a client.
The output goes from 0 to 6.
Here's my code:
`  model = Sequential()
model.add(Dense(units = 90, kernel_initializer='uniform', activation = 'relu', input_dim=len(d2.dtypes)-1))
model.add(Dense(units = 130, kernel_initializer='uniform', activation = 'relu'))
model.add(Dense(units = 150, kernel_initializer='uniform', activation = 'relu'))
model.add(Dense(units = 7, kernel_initializer='uniform', activation='softmax'))

adam = optimizers.Adam()

model.compile(loss='categorical_crossentropy', metrics = ['accuracy'], optimizer = adam)

y = d2['grade']
X = d2.drop(['grade'], axis=1)

X_train, X_test, Y_train, Y_test = train_test_split(X,y, test_size=0.2, shuffle=True)

one_hot_labels = keras.utils.to_categorical(Y_train, num_classes=7)

model.fit(X_train, one_hot_labels, batch_size=32, epochs=20, validation_split=0.2, callbacks=[TensorBoardColabCallback(tboard)])

one_hot_y_test = keras.utils.to_categorical(Y_test, num_classes=7)

# Predicting the Test set results
y_pred = model.predict(X_test)
y_pred = (y_pred > 0.5)

x = pd.DataFrame(columns=['0','1','2','3','4','5','6'], data=y_pred)
p = x.idxmax(1)
p = p.astype(int)

# Creating the Confusion Matrix
from sklearn.metrics import confusion_matrix
cm = confusion_matrix(Y_test, p)
cm `

But when I try to compute the test accuracy, it gives me the following error:
acc= model.evaluate(X_test, Y_test, verbose=0)
print('Test accuracy:', acc)

Error when checking target: expected dense_16 to have shape (7,) but got array with shape (1,)
Could someone kinda help me, please?

Hi,
I think in the evaluate method you are giving wrong target values. You need to send "one_hot_y_test" instead of "Y_test".

@benn510  Error #12410 should be close now as @satheeshkatipomu has answered the fix for this issue.

@benn510  Error #12410 should be close now as @satheeshkatipomu has answered the fix for this issue.


FIPS mode not supported in OpenSSL 1.0.2g

Hi - I tried to turn on the FIPS mode in openssl 1.0.2g but for the following error
error:0F06D065:lib(15):func(109):reason(101)
which is
openssl errstr f06d065
error:0F06D065:common libcrypto routines:FIPS_mode_set:fips mode not supported

How can I enable fips mode for 1.0.2g ?
I am running on Ubuntu 16.04LTS if it matters.

Is there a link (I tried - https://docs.ubuntu.com/security-certs/en/fips-16.html but failed to install correctly) to enable and install openssl 1.0.2 fips on Ubuntu 16.04 ?

The link you posted says that Ubuntu’s FIPS certified modules are available only for customers who have purchased them:

140-2 Certified Modules Canonical’s FIPS 140-2 Certified Modules are available to customers who have purchased qualifying Ubuntu Advantage products.

@mspncp - Is there a link for someone who hasnt purchased and just wants to try it out ?

The Ubuntu FIPS certification is a private certification of Canonical, and although it includes a FIPS enabled OpenSSL module, the certificate is distinct form the official OpenSSL FIPS certificate.
You don't need the Ubuntu FIPS certified version if you just want to try it out. Everybody can build a FIPS enabled (also called "FIPS capable") OpenSSL. Roughly speaking, the OpenSSL library (libcrypto.so) becomes FIPS enabled by linking the so-called FIPS Objecte Module linked in, which contains the FIPS certified algorithms. Only if this is the case, enabling the FIPS mode will succeed.
Everything you need to know to build your own FIPS Object Module and FIPS enabled OpenSSL can be found in the OpenSSL FIPS 2.0 User Guide.  It's not difficult, but it needs some patience to follow the guide if it's your first time.
But please be careful: it is not a good idea to replace your distributors OpenSSL installation by your own version. Install your self-built version to your home directory or to a non-default system location. (You will have to set PATH and LD_LIBRARY_PATH explicitly to test it).

Sorry, wrong link: the direct link to the OpenSSL FIPS 2.0 User Guide is
https://www.openssl.org/docs/fips/UserGuide-2.0.pdf

Thanks @mspncp ! I'll take a look and let you know how it goes.

@mspncp  I was able to install the fips-version but when I called FIPS_mode_set(1) from the application, I still got the same error.
OpenSSL 1.0.1e-fips 11 Feb 2013

I followed the following steps to do -
  78  wget http://www.openssl.org/source/openssl-1.0.1e.tar.gz
   79  wget http://www.openssl.org/source/openssl-fips-2.0.5.tar.gz
   80  tar -xzvf openssl-fips-2.0.5.tar.gz
   81  cd openssl-fips-2.0.5
   82  ./config
   83  make
   85  sudo make install
   86  cd
   87  tar -xzvf openssl-1.0.1e.tar.gz
   88  cd openssl-1.0.1e
   89  ./config fips
   90  make depend
   91  make
   92  sudo make install

What am I missing here ? I followed the guide you had as well and the steps match I believe.

Not sure. Maybe your application is picking up the wrong shared library? Did you check the output of ldd your-app? Maybe you need to set the LD_LIBRARY_PATH environment variable?

Why did you switch to 1.0.1e?

No real reason to switch to 1.0.1e.  Whats the best version ? 1.0.2g ?
LD_LIBRARY_PATH="/home/ubuntu/::/usr/lib/x86_64-linux-gnu::/usr/local/lib"

ldd app
	linux-vdso.so.1 =>  (0x00007ffd0c3a2000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fe7f8b9c000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe7f897f000)
	libnettle.so.6 => /usr/lib/x86_64-linux-gnu/libnettle.so.6 (0x00007fe7f8749000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe7f8545000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe7f833d000)
	libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fe7f80d4000)
	libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fe7f7c8f000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fe7f790d000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fe7f76f7000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe7f732d000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fe7f8da1000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe7f7024000)

The 1.0.1 series is out of support since Jan 2017. The last official release was 1.0.1u in September 2016, your version is from February 2013.
The 1.0.2 LTS series is the only one which currently has FIPS support. Since the letter releases (1.0.2a, 1.0.2b, ...) are bugfixes, it is best to choose the most current version, which is OpenSSL 1.0.2s. https://www.openssl.org/source
Can you please also post the output of the following commands:
which openssl
ldd `which openssl`
openssl version

@mspncp
I can change it to use 1.0.2s
Here are the results you asked for
which openssl
/usr/bin/openssl

ldd `which openssl`
	linux-vdso.so.1 =>  (0x00007ffc6ff6e000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f86f5175000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f86f4dab000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f86f5379000)

openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013

I also wrote a simple C pgm and compiled it and ran it but still got the same FIPS not supported error
fips.c
        int bRet = FIPS_mode();
        if(bRet)
            printf("Already in fips mode");
        else
        {
        bRet = FIPS_mode_set(1);
        if(bRet)
            printf("Set fips mode");
        else
        {
            unsigned long err = ERR_get_error();
            printf("Cannot set fips mode %lx\n", err);
            const char* error_str = ERR_error_string(err, NULL);
            printf("Cannot set fips mode %s\n", error_str);
        }
        }

gcc fips.c -L/home/ubuntu/openssl-1.0.1e -lcrypto -o fips
./fips.o

@mspncp - Same thing with 1.0.2s. So there appears to be something wrong with the linkage.
Did you notice anything wrong above ?

@RohanKurane sorry that I'm short on time. I'll try to give you a detailed reply this evening.
For the moment: your fips testapp  does not work as expected, because you built a static, not a shared version of OpenSSL. This can be inferred from your output of
ldd `which openssl`

But this might also be your luck, because contrary to my recommendation, you did a sudo install. If you had done this with a shared build, you might have replaced the distributor's shared openssl libraries, which could possibly break some of you applications. (I don't know whether Ubuntu installs them in the default locatation)
So once again: please do not  sudo install your test copy!. I'll give you an example how you can do it better as soon as I find the time.

@mspncp  Great! I look forward to your example and steps!

The following procedure describes how you can test your application. I tested every step below (using gcc 8.3.0), using the following toy program, so hopefully everything should work without errors.
test.c
#include <stdlib.h>
#include <stdio.h>

#include <openssl/evp.h>
#include <openssl/rand.h>

int main(void)
{
    if (!FIPS_mode_set(1)) {
        fprintf(stderr, "FIPS mode intialization failed!\n");
        return 1;
    }
    fprintf(stderr, "FIPS mode intialization succeeded.\n");

    OpenSSL_add_all_algorithms();

    unsigned char buf[32];
    if (!RAND_bytes(buf, sizeof(buf))) {
        fprintf(stderr, "RAND_bytes() failed!\n");
        return 1;
    }
    fprintf(stderr, "RAND_bytes() succeeded\n");
    return 0;
}

Step 1: Install the OpenSSL FIPS Object module to the standard location
Configure, build and install the FIPS Object Module (FOM) to its default location (using sudo), following the FIPS User Guide. This step has to be done only once.
Step 2: Build and Install OpenSSL to a non-standard location
Having an installed copy is convenient, in particular for developers who frequently make changes in their source directory, but not necessary. Testing is also possible without installing, see Step 3b below.
Create the installation directory (first time only)
Create a directory in a non-default location, which is owned by you (using sudo).
sudo mkdir -p /opt/openssl-1.0.2-dev
sudo chown yourusername:yourusername /opt/openssl-1.0.2-dev

Don't add the path to your PATH or LD_LIBRARY_PATH environment variable in your .bashrc.
Configure, build (and install) OpenSSL
The configure option below builds a FIPS enabled OpenSSL library with debugging information, using the FOM from Step 1. If you installed the FOM to it's default location, you only need to specify the fips option. Otherwise, you will also need --with-fipsdir=<location of FOM>.
perl Configure debug-linux-x86_64 fips shared --strict-warnings --prefix=/opt/openssl-1.0.2-dev

Now build and install OpenSSL. Since you own the installation directory, no sudo is necessary
make depend
make
make install

Step 3: Build and test your application
Variant a: Using the installed version
The magic trick which enables your application to find the correct libraries even without setting LD_LIBRARY_PATH is to set the so-called 'rpath' correctly. This is done by specifying a linker option. The most elegant way to add it is to create a little Makefile in your application's source directory with the following content:
OPENSSL_PREFIX=/opt/openssl-1.0.2-dev
OPENSSL_LIB=${OPENSSL_PREFIX}/lib
CFLAGS=-g -O0 -I${OPENSSL_PREFIX}/include
LDFLAGS=-L${OPENSSL_LIB} -lcrypto -Wl,--enable-new-dtags,-rpath,${OPENSSL_LIB}

all: test

clean:
	rm -f test *~

Note: the rm -f test *~ line at the end needs to be indented using a tab, not spaces
Now building (resp. cleaning) your application is as simple as invoking make (resp. make clean).
~/src/yourapp$ make
cc -g -O0 -I/opt/openssl-1.0.2-dev/include  -L/opt/openssl-1.0.2-dev/lib -lcrypto -Wl,--enable-new-dtags,-rpath,/opt/openssl-1.0.2-dev/lib  test.c   -o test

After your application is built, you can verify that it picks up the correct shared library using ldd:
~/src/yourapp$ ldd test
	linux-vdso.so.1 (0x00007ffe647ef000)
	libcrypto.so.1.0.0 => /opt/openssl-1.0.2-dev/lib/libcrypto.so.1.0.0 (0x00007f2b19d58000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f2b19b5e000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f2b19b58000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f2b1a089000)

Testing and Debugging
E voila, you are ready to go.
~/src/your/app$ ./test
FIPS mode intialization succeeded.
RAND_bytes() succeeded

You can even run it in the debugger
~/src/your/app$ gdb --args ./test

Since the code in the FOM was built without debug information, you won't be able to debug into the FIPS code, unless you build a special debug build of the FOM (not approved; for testing only).
Note also that all breakpoints inside the FOM must be disabled until FIPS_mode_set(1) has finished, because debugger breakpoints change the incore fingerprint, causing FIPS_mod_set(1) to fail!
Variant b: Using the shared libraries from the source directory
A slight change in the Makefile enables you to test directly with the shared librares from the source directory. The example assumes that the source code is in ~/src/openssl-1.0.2:
OPENSSL_SOURCE=${HOME}/src/openssl-1.0.2
CFLAGS=-g -O0 -I${OPENSSL_SOURCE}/include
LDFLAGS=-L${OPENSSL_SOURCE} -lcrypto -Wl,--enable-new-dtags,-rpath,${OPENSSL_SOURCE}

all: test

clean:
	rm -f test *~

~/src/yourapp$ make
cc -g -O0 -I/home/msp/src/openssl-1.0.2/include  -L/home/msp/src/openssl-1.0.2 -lcrypto -Wl,--enable-new-dtags,-rpath,/home/msp/src/openssl-1.0.2  test.c   -o test

Again, verify that your app picks up the correct shared library using ldd:
~/src/yourapp$ ldd test
	linux-vdso.so.1 (0x00007ffe4a7f3000)
	libcrypto.so.1.0.0 => /home/msp/src/openssl-1.0.2/libcrypto.so.1.0.0 (0x00007fbf59979000)    <=== now libcrypto is loaded from your source directory
	libc.so.6 => /lib64/libc.so.6 (0x00007fbf5977f000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007fbf59779000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fbf59caa000)

Thanks @mspncp . I am going to try these steps and I'll let you know.

@mspncp : Everything went great till the last step where I did a make of test.c :-)
This is basically what I did -
1. Install openssl FOM in home dir
2. Install openSSL 1.0.2s :
    sudo mkdir -p /opt/openssl-1.0.2-dev
    sudo chown ubuntu:ubuntu /opt/openssl-1.0.2-dev
    cd /opt/openssl-1.0.2-dev
    wget http://www.openssl.org/source/openssl-1.0.2s.tar.gz
    tar -xzvf openssl-1.0.2s.tar.gz
    cd openssl-1.0.2s
    perl Configure debug-linux-x86_64 fips shared --strict-warnings --prefix=/opt/openssl-1.0.2-dev
    make depend
    make
    make install
    cd /opt/openssl-1.0.2-dev
    compile test.c  --> This failed with errors -
    make
    cc -g -O0 -I/opt/openssl-1.0.2-dev/include  -L/opt/openssl-1.0.2-dev/lib -lcrypto -Wl,--enable-new-   dtags,-rpath,/opt/openssl-1.0.2-dev/lib  test.c   -o test
    /tmp/ccmellt2.o: In function `main':
   /opt/openssl-1.0.2-dev/test.c:9: undefined reference to `FIPS_mode_set'
    /opt/openssl-1.0.2-dev/test.c:15: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    /opt/openssl-1.0.2-dev/test.c:18: undefined reference to `RAND_bytes'
    collect2: error: ld returned 1 exit status
    <builtin>: recipe for target 'test' failed
    make: *** [test] Error 1

All the libraries (libcrypto) and include paths look good and point to the right places.
openssl version shows
OpenSSL 1.0.2s-fips  28 May 2019
This has to be something really small that I am missing. Battled for 30 mins and thought I'd ask your opinion.

/opt/openssl-1.0.2-dev/test.c

It's not a good idea to place your testprogram inside the openssl-1.0.2 installation directory. Keep the source (and Makefile) in your home directory where you had it before (say, ~/src/test).

Install openssl FOM in home dir

So you installed the FOM in your home dir? Which command did you use for installation?. Or did you just build it there? Note that you are not allowed to add --prefix= to the configure command. However, the user guide allows to set the FIPSDIR environment variable before issuing the configure command to change it:

The environment variable FIPSDIR, if present, points to the pathname of the location where the
validated module will be installed. This location defaults to /usr/local/ssl/fips2.0.
[FUG, Section 4.2.1]

If you did install the FOM to a non-default location, then your configure command for openssl-1.0.2 is missing a --with-fipsdir option. (Again, you can set the FIPSDIR variable before configuring instead.)

files. The FIPSDIR environment variable or the --withfipsdir command line option can
be used to explicitly reference the location of the FIPS Object Module (fipscanister.o).
[FUG, Section 4.2.3]

Although I am wandering why you did not get a configuration or compiler error, only a linker error. Do you alreedy have some files in /usr/local/ssl/fips2.0? If yes, this is what it's content should look like:
$ tree /usr/local/ssl/fips-2.0/
/usr/local/ssl/fips-2.0/
├── bin
│   ├── fips_standalone_sha1
│   └── fipsld
├── include
│   └── openssl
│       ├── aes.h
│       ├── bn.h
│       ├── buffer.h
│       ├── cmac.h
│       ├── crypto.h
│       ├── des.h
│       ├── des_old.h
│       ├── dh.h
│       ├── dsa.h
│       ├── e_os2.h
│       ├── ebcdic.h
│       ├── ec.h
│       ├── ecdh.h
│       ├── ecdsa.h
│       ├── evp.h
│       ├── fips.h
│       ├── fips_rand.h
│       ├── fipssyms.h
│       ├── hmac.h
│       ├── modes.h
│       ├── opensslconf.h
│       ├── opensslv.h
│       ├── ossl_typ.h
│       ├── rsa.h
│       ├── sha.h
│       └── symhacks.h
└── lib
    ├── fips_premain.c
    ├── fips_premain.c.sha1
    ├── fipscanister.o
    └── fipscanister.o.sha1

4 directories, 32 files

The compiler command you posted shows spaces in the middle of the --enable-new-dtags options? Is this only a pasting error to GitHub, or an error in your Makefile?
-Wl,--enable-new-   dtags,-rpath,/opt/openssl-1.0.2-dev/lib

Its a pasting error.
LDFLAGS=-L${OPENSSL_LIB} -lcrypto -Wl,--enable-new-dtags,-rpath,${OPENSSL_LIB}

@mspncp
Here are my exact steps. Maybe you can try this on your system and let me know where I went wrong ?
sudo apt-get update
sudo apt-get install build-essential

cd ~

wget http://www.openssl.org/source/openssl-fips-2.0.5.tar.gz
tar -xzvf openssl-fips-2.0.5.tar.gz
cd openssl-fips-2.0.5
./config
make
sudo make install
sudo mkdir -p /opt/openssl-1.0.2-dev
sudo chown ubuntu:ubuntu /opt/openssl-1.0.2-dev
cd /opt/openssl-1.0.2-dev
wget http://www.openssl.org/source/openssl-1.0.2s.tar.gz
tar -xzvf openssl-1.0.2s.tar.gz
cd openssl-1.0.2
perl Configure debug-linux-x86_64 fips shared --strict-warnings --prefix=/opt/openssl-1.0.2-dev
make depend
make
make install
cd /opt/openssl-1.0.2-dev
make    (to compile test.c)  Fails with below errors -

    cc -g -O0 -I/opt/openssl-1.0.2-dev/include  -L/opt/openssl-1.0.2-dev/lib -lcrypto -Wl,--enable-new-   dtags,-rpath,/opt/openssl-1.0.2-dev/lib  test.c   -o test
    /tmp/ccmellt2.o: In function `main':
   /opt/openssl-1.0.2-dev/test.c:9: undefined reference to `FIPS_mode_set'
    /opt/openssl-1.0.2-dev/test.c:15: undefined reference to `OPENSSL_add_all_algorithms_noconf'
    /opt/openssl-1.0.2-dev/test.c:18: undefined reference to `RAND_bytes'
    collect2: error: ld returned 1 exit status
    <builtin>: recipe for target 'test' failed
    make: *** [test] Error 1

I then moved both the test.c and the new Makefile over to ~/src/test and the make still failed with the same errors.
My FOM is at the default location I believe so I do not set the FIPSDIR env variable
ls /usr/local/ssl/fips-2.0/lib/
fipscanister.o  fipscanister.o.sha1  fips_premain.c  fips_premain.c.sha1

I do have /usr/local/ssl/fips-2.0
tree /usr/local/ssl/fips-2.0
/usr/local/ssl/fips-2.0
├── bin
│   ├── fipsld
│   └── fips_standalone_sha1
├── include
│   └── openssl
│       ├── aes.h
│       ├── bn.h
│       ├── buffer.h
│       ├── cmac.h
│       ├── crypto.h
│       ├── des.h
│       ├── des_old.h
│       ├── dh.h
│       ├── dsa.h
│       ├── ebcdic.h
│       ├── ecdh.h
│       ├── ecdsa.h
│       ├── ec.h
│       ├── e_os2.h
│       ├── evp.h
│       ├── fips.h
│       ├── fips_rand.h
│       ├── fipssyms.h
│       ├── hmac.h
│       ├── modes.h
│       ├── opensslconf.h
│       ├── opensslv.h
│       ├── ossl_typ.h
│       ├── rsa.h
│       ├── sha.h
│       └── symhacks.h
└── lib
    ├── fipscanister.o
    ├── fipscanister.o.sha1
    ├── fips_premain.c
    └── fips_premain.c.sha1

4 directories, 32 files

sudo mkdir -p /opt/openssl-1.0.2-dev
sudo chown ubuntu:ubuntu /opt/openssl-1.0.2-dev
cd /opt/openssl-1.0.2-dev
wget http://www.openssl.org/source/openssl-1.0.2s.tar.gz

tar -xzvf openssl-1.0.2s.tar.gz     <== WHY source directory /opt/openssl-1.0.2-dev/openssl-1.0.2s?

cd openssl-1.0.2   <== TYPO?

perl Configure debug-linux-x86_64 fips shared --strict-warnings --prefix=/opt/openssl-1.0.2-dev
make depend
make
make install

What you sent me looks ok, except for cd openssl-1.0.2. This is probably a typo and in reality you did cd openssl-1.0.2s? Also, it was not intended that you place the source directory inside the installation directory. Why didn't you unpack the source to ~/src/openssl-1.0.2s?  (But this is not the root cause of your problem.)
Apart from that your log looks ok. However, I see only your commands and nothing of the compiler and linker output, which might contain some error that was ignored. Also, I can't inspect the binaries. So I can only guess what your problem is. It won't help if I try reproduce your steps here, because I don't have exactly the same setup as you do.
So I only have three more suggestions:

Use nm to find out whether the unresolved symbols are present in your libcrypto

$ nm -g libcrypto.so.1.0.0 | grep OPENSSL_add_all_algorithms_noconf
00000000001d3a2f T OPENSSL_add_all_algorithms_noconf

Use strace to find out what the compiler and linker are doing, in particular, which libcrypto library they access.

strace -f make  |&  tee make.log

Ask a friend who is familiar with compiling and linking on Linux an let him help you figure out what the precise problem is.

Sorry, that's all help I can give.

@mspncp Turns out it was a linkage issue. I forgot to update you last evening.
I tried again on a fresh system today and it didnt work. But calling it a Victory nonetheless!
If I run into anything, I'll reach out for help. Thanks for your help.