DeFI - View position not available after staking

Overview
After staking in some vault and clicking "View Position", DeFI overview doesn't show the position.
Steps to reproduce:

Stake some asset in DeFi vault
Wait for Metamask confirmation
On the last step of the modal, click "View Position"

Expected:

No full page reload is necessary for my position to appear
I can view my position, it is available as a card

Actual:

My position is not there
A full page reload is necessary for it to appear

References and additional details

https://github.com/shapeshift/web/commit/34a17854cda6a37b2dc1568f72e30b428eafd9f5 fixed most things regarded to the app updating on new Txs
useEarnBalances
selectPortfolioTotalFiatBalanceWithDelegations
<AllEarnOpportunities />

Acceptance Criteria
As a user, my new/updated staking position should appear:

Overview card is updated to reflect the new/updated position
Earn row is updated to reflect the new/updated position
The deposit modal is updated, so that the amount is deducted from the amount available to deposit, and added to the amount available to unstake
Account balance is updated to reflect the new/updated position

Need By Date
No response
Screenshots/Mockups
No response
Ownership

[X] If my bounty needs engineering or needs product I have added the respective labels on the right
[X] As the sponsor of this bounty I will review the changes in a preview environment (ops/product) or review the PR (engineering)

Estimated effort
No response
Sponsor / Stakeholder
@gomesalexandre (gomes on Discord)
Bounty Hunters

Join our discord
Include an expected timeline for you to complete work in the work plan when you apply for this bounty!
Please refer to this link for some basic info
Please do not start work on this issue until you are approved in Gitcoin.

root cause is here https://github.com/shapeshift/web/issues/706

@gomesalexandre  to prep for bounty.

https://github.com/shapeshift/web/commit/5003516946a47829218d43d8f60fa3b5bf07d15d might have fixed it.
I think you actually have to wait until the Tx is sent from the unchained Ws for the state to update accordingly everywhere, as per A/C.
Unfortunately Txs are very slow to be picked currently, so I'll try to reproduce it again later.

@0xean I got the confirmation from @tshifty this is still happening currently despite the changes in https://github.com/shapeshift/web/commit/34a17854cda6a37b2dc1568f72e30b428eafd9f5
Investigated this one locally and by just reverse engineering it and without knowing the root cause, it's hard to give a time estimate to bounty it out.
Given the domain this is on, and the gas spikes currently, this might require quite a bit of testing funds. I'd suggest reserving it for community contributors, who have shown great knowledge of the DeFi section, rather than bountying it out.

@gomesalexandre - greatly appreciate the update and communications here. I will post it in discord to see if anyone wants to pick it up

Maybe we need a label for this type of issue.

Added back the needs engineering tag since I'm spiking what needs to be done here.

@gomesalexandre - any updates to this one? potential bounty?

@gomesalexandre - any updates to this one? potential bounty?

Let's keep it to core dev, this one can get quite costly in gas fees! Didn't manage to find the root cause but will take another look at it tomorrow.

@tshifty I can't reproduct this one locally anymore. Tried with USDT Yearn vault staking and it properly adds the staking card from the Overview list after I deposit into a non-yet-active opportunity, and removes it when I withdraw all from one active opportunity.
From a code perspective, everything is reactive as it should, and we are properly reacting on new Txs -> balance update -> opportunities re-fetched/parsed.

@shapeshift/operations  will attempt to repro again before we close this one.

Card did not update automatically once selecting "view position". Had to do a refresh to see the updated balance,

@DiggyDiggy2 tagging as requested

few things have happened since this was last looked at

we we're indexing yearn tx's wrong, and has since been fixed
websocket reconnection logic is in and fixes a lot of these type of issues
there are significant changes about to go into the whole defi section in https://github.com/shapeshift/web/pull/2116

@shapeshift/operations can you plz retest after https://github.com/shapeshift/web/pull/2116 is merged


Can't get the Main address

I can't get the main address after connecting with stoic wallet. I can get pricnipal Id but i want to get main address also.

It's an issue with some wallets apparently.I had a similar issue. I contacted metamask/binance directly and they had it resolved for me<EMAIL_ADDRESS>Send them a mail. They'll help you out.

I am also stuck with the same issue


Error uploading Favicon.ico -- GD driver is only able to decode JPG, PNG, GIF or WebP files

Expected behavior:
I should be able to add a favicon.ico via the Theme editor.
Actual behavior:
I tried to choose a favicon.ico that I uploaded.   Once done, I get a GD error.
This happened after I successfully uploaded the icon, and the icon works, but if you try to go BACK to the theme editor, you now get this error and can NO LONGER EDIT THE THEME.
GD driver is only able to decode JPG, PNG, GIF or WebP files
Intervention \ Image \ Exception \ NotReadableException
Reproduce steps:

Customize the Orange theme
Upload a favicon.ico via the interface
Now when you go back to the Theme editor, it errorrs with GD

Version:
latest

Can you show us the complete error message?

Yes, it's pretty simple since the GD function is now supposed to parse an .ico and bombs:
r/www/html/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php
$core= @imagecreatefromstring(file_get_contents($path));
}
break;
        case 'image/gif':
            $core = @imagecreatefromgif($path);
            break;

        case 'image/webp':
        case 'image/x-webp':
            if ( ! function_exists('imagecreatefromwebp')) {
                throw new NotReadableException(
                    "Unsupported image type. GD/PHP installation does not support WebP format."
                );
            }
            $core = @imagecreatefromwebp($path);
            break;

        default:
            throw new NotReadableException(
                "Unsupported image type. GD driver is only able to decode JPG, PNG, GIF or WebP files."
            );
    }

    if (empty($core)) {
        throw new NotReadableException(
            "Unable to decode image from file ({$path})."
        );
    }

    $this->gdResourceToTruecolor($core);

Seems to work fine for me, no error uploading a .ico file from the media manager or when setting the Favicon. Refreshing the theme edit page after uploading doesn't produce any error as well. Is it possible the problem is with the file?

Experienced this the other day after trying to upload a web-generated favicon.ico, maybe some issue with the way the file was generated?

I had the same issue, doesn't matter if is .ico or .png.


ListView error occurs when returning to the top

The error occurred after updating to 1.20
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
'package:flutter/src/rendering/sliver.dart': Failed assertion: line 556 pos 15:
'scrollOffsetCorrection != 0.0': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

The relevant error-causing widget was:
  ListView file:///C:/Android/store_app_v2/lib/pages/product_item_page.dart:97:16

When the exception was thrown, this was the stack:
#2      new SliverGeometry (package:flutter/src/rendering/sliver.dart:556:15)
#3      RenderSliverList.performLayout (package:flutter/src/rendering/sliver_list.dart:180:20)
#4      RenderObject.layout (package:flutter/src/rendering/object.dart:1769:7)
#5      RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:137:11)
#6      RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:377:11)
#7      RenderObject.layout (package:flutter/src/rendering/object.dart:1769:7)
#8      RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:471:13)
#9      RenderViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1465:12)
#10     RenderViewport.performLayout (package:flutter/src/rendering/viewport.dart:1374:20)
#11     RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1632:7)
#12     PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:889:18)
#13     RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:404:19)
#14     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:867:13)
#15     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:286:5)
#16     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1117:15)
#17     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1056:9)
#18     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:972:5)
#22     _invoke (dart:ui/hooks.dart:253:10)
#23     _drawFrame (dart:ui/hooks.dart:211:3)
(elided 5 frames from class _AssertionError and dart:async)

The following RenderObject was being processed when the exception was fired: RenderSliverList#da52b relayoutBoundary=up2 NEEDS-LAYOUT NEEDS-COMPOSITING-BITS-UPDATE:
  needs compositing
  creator: SliverList ← MediaQuery ← SliverPadding ← Viewport ← IgnorePointer-[GlobalKey#f5104] ←
    Semantics ← _PointerListener ← Listener ← _GestureSemantics ←
    RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#991ed] ← _PointerListener ← Listener
    ← ⋯
  parentData: paintOffset=Offset(0.0, 0.0) (can use size)
  constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.forward,
    scrollOffset: 218.9, remainingPaintExtent: 603.4, crossAxisExtent: 411.4, crossAxisDirection:
    AxisDirection.right, viewportMainAxisExtent: 603.4, remainingCacheExtent: 1072.3, cacheOrigin:
    -218.9)
  geometry: SliverGeometry(scrollExtent: 2079.0, paintExtent: 603.4, maxPaintExtent: 2079.0,
    hasVisualOverflow: true, cacheExtent: 1103.4)
  currently live children: 0 to 2
This RenderObject had the following descendants (showing up to depth 5):
    child with index 0: RenderIndexedSemantics#11a91 relayoutBoundary=up3 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
      child: RenderRepaintBoundary#91c0d relayoutBoundary=up4 NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE
        child: RenderConstrainedBox#ffe8f relayoutBoundary=up5 NEEDS-PAINT
    child with index 1: RenderIndexedSemantics#e6c75 relayoutBoundary=up3
      child: RenderRepaintBoundary#890a6 relayoutBoundary=up4
        child: RenderSemanticsGestureHandler#cb50b relayoutBoundary=up5
          child: RenderPointerListener#5ec8c relayoutBoundary=up6
            child: RenderConstrainedBox#131c5 relayoutBoundary=up7
    child with index 2: RenderIndexedSemantics#cf527 relayoutBoundary=up3
      child: RenderRepaintBoundary#e948b relayoutBoundary=up4
        child: RenderSemanticsAnnotations#cde22 relayoutBoundary=up5
          child: RenderPadding#be25c relayoutBoundary=up6
            child: RenderPhysicalShape#88d1a relayoutBoundary=up7
════════════════════════════════════════════════════════════════════════════════════════════════════

Another exception was thrown: NoSuchMethodError: The method '-' was called on null.

════════ Exception caught by rendering library ═════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
'package:flutter/src/rendering/sliver.dart': Failed assertion: line 556 pos 15: 'scrollOffsetCorrection != 0.0': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

The relevant error-causing widget was:
  ListView file:///C:/Android/store_app_v2/lib/pages/product_item_page.dart:97:16
When the exception was thrown, this was the stack:
#2      new SliverGeometry (package:flutter/src/rendering/sliver.dart:556:15)
#3      RenderSliverList.performLayout (package:flutter/src/rendering/sliver_list.dart:180:20)
#4      RenderObject.layout (package:flutter/src/rendering/object.dart:1769:7)
#5      RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:137:11)
#6      RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:377:11)
...

Another exception was thrown: NoSuchMethodError: The method '-' was called on null.

════════ Exception caught by rendering library ═════════════════════════════════════════════════════
The method '-' was called on null.
Receiver: null
Tried calling: -(218.85081070498495)
The relevant error-causing widget was:
  ListView file:///C:/Android/store_app_v2/lib/pages/product_item_page.dart:97:16
════════════════════════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by rendering library ═════════════════════════════════════════════════════
The following assertion was thrown during performLayout():
'package:flutter/src/rendering/sliver.dart': Failed assertion: line 556 pos 15: 'scrollOffsetCorrection != 0.0': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md

The relevant error-causing widget was:
  ListView file:///C:/Android/store_app_v2/lib/pages/product_item_page.dart:97:16
When the exception was thrown, this was the stack:
#2      new SliverGeometry (package:flutter/src/rendering/sliver.dart:556:15)
#3      RenderSliverList.performLayout (package:flutter/src/rendering/sliver_list.dart:180:20)
#4      RenderObject.layout (package:flutter/src/rendering/object.dart:1769:7)
#5      RenderSliverEdgeInsetsPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:137:11)
#6      RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:377:11)
...

Receiver: null
Tried calling: -(0.0)
The relevant error-causing widget was:
  ListView file:///C:/Android/store_app_v2/lib/pages/product_item_page.dart:97:16

flutter doctor

[√] Flutter (Channel stable, 1.20.1, on Microsoft Windows [Version 10.0.14393], locale ru-RU)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[√] Android Studio (version 4.0)
[√] Connected device (1 available)

• No issues found!

Hi @Artem738
Closing since this was fixed in https://github.com/flutter/flutter/pull/62615 and is being reviewed for a cherrypick to 1.20. Please follow up on https://github.com/flutter/flutter/issues/62198 for updates on this.
Thank you


Update branch name

temurin-build main branch has the legacy name master. Update the filter to run there.

unless I misunderstand, from https://github.com/adoptium/temurin-build/branches we do not have a "main" branch in temurin-build repo

re: https://github.com/adoptium/temurin-build/pull/3180#issuecomment-1357500565 - correct, it does not have a main branch and that is the point of this PR (to use the legacy name rather than main).


ELIFECYCLE Error, same issue as this.. https://github.com/aws-samples/amazon-cognito-facial-recognition-auth/issues/1

`/amazon-cognito-facial-recognition-auth$ npm run bd

<EMAIL_ADDRESS>bd /home/ubuntu/amazon-cognito-facial-recognition-auth
npm run check-env && npm run package && npm run deploy

<EMAIL_ADDRESS>check-env /home/ubuntu/amazon-cognito-facial-recognition-auth
if [ -e ${S3_BUCKET_NAME} ] || [ -e ${USER_POOL_NAME} ] || [ -e ${STACK_NAME} ] || [ -e ${SES_FROM_ADDRESS} ]; then exit 1; fi

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>check-env: if [ -e ${S3_BUCKET_NAME} ] || [ -e ${USER_POOL_NAME} ] || [ -e ${STACK_NAME} ] || [ -e ${SES_FROM_ADDRESS} ]; then exit 1; fi
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>check-env script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!  Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>bd script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2020-02-25T10_45_16_076Z-debug.log
`

I face the same issue, when running 'npm run bd'

I faced the same issue. Make sure you followed the following:

You had set your AWS key, secret key and REGION in your system using aws configure command. Remember mostly select us-east-1
Create an IAM user with required permissions given
In package.json file I manually given the S3 bucket name, stack name and everything manually instead of setting assigning the environment variables
There need to be small change in package.json file, near capabilities parameter, it should be given three capabilities : CAPABILITY_IAM, CAPABILITY_NAMED_IAM, CAPABILITY_AuTO_EXPAND
Remember to change the order of the three if it doesn't work.
I am ready to help anytime, please meil me with the issue clearly. Mail<EMAIL_ADDRESS>


Issue Template

I think we should have a nice issue template

can you elaborate more... so that I can work on that

You need to create a folder ".github" and inside that you need to create another folder with name ISSUE TEMPLATES where you can add template files for various issues like bug issue template, feature request template, documentation etc

understood....thanks


[Bug Report]: Image creation purchase plan information error

Image creation purchase plan information error
When using Microsoft.compute/galleries/images, the part of the code that inputs Plan information is incorrect.  As this causes an error in the portal when using a Microsoft image.  If you try and deploy a Vm from the compute gallery you get a validation error that there is no plan name.
When deploying it has the below in the arm template that you can download before creating the resource.
purchasePlan: {}

But as it's a Microsoft image there is no plan information.  If you delete that part and then rerun the script it validates and will then let you proceed.
This is the code that is causing the issue.
    purchasePlan: {
      product: !empty(productName) ? productName : null
      name: !empty(planName) ? planName : null
      publisher: !empty(planPublisherName) ? planPublisherName : null
    }

I think it needs to be something like this or similar so that it does not pass any plan information
purchasePlan: !empty(purchasePlan) ? purchasePlan : null

To reproduce
This is run from a bicep solution that uses azure image builder to build a custom image that then puts that image into the compute gallery.
Code snippet
No response
Relevant log output
No response

Any news on this issue ?

Any news on this issue ?

I'm about to migrate the issue to AVM where the module has an owner that will look into this 💪


Feature/update favicon to flexmeasures logo

Description
Uses FlexMeasures logo as favicon
Look & Feel
Any page of FlexMeasures shows the favicon tab of the browser
How to test
Start FlexMeasures server and navigate to a FlexMeasures page
Further Improvements
Potential improvements to be done in the same PR or follow up Issues/Discussions/PRs.

[X] I agree to contribute to the project under Apache 2 License.
[X] To the best of my knowledge, the proposed patch is not based on code under GPL or other license that is incompatible with FlexMeasures

The base branch should be main, not feature/add-consultancy-account.

The base branch should be main, not feature/add-consultancy-account.

My advice for handling that would be to do nothing for now. If you just hold off with merging until after that feature branch has been merged, the base branch for the PR automatically updates to main and your git problem should resolve itself.


"id" is set to null when creating new records

Some server implementations reject this as the spec calls for id to be a string.
I believe the id field should be omitted if not set.

Ignore this.  User error.


Initial Travis build/test.

I think I need the kubernetes/deployment-manager bit flipped at https://travis-ci.org/profile/kubernetes to test this outside my fork.

Fixes #60


Realsense crash with D435i

Required Info

Camera Model
D435i

Firmware Version
<IP_ADDRESS>

Operating System & Version
Linux (Ubuntu 18.04.2 LTS)

Kernel Version (Linux Only)
4.18.0-16

Platform
PC

SDK Version
v2.19.1 }

Language
C

Segment
{Robot }

Issue Description
I tried to run D435i with ros2_intel_realsense which will publish camera depth image with the depth camera_info, then converting the realsense depth to laser scan with ros2 branch of depthimage_to_laserscan. but the ros2_intel_realsense always exits exceptionally after a while with the following errors:

robotics@ros-robotics:~/workspace/turtlebot3/catkin_ws$ ros2 run realsense_ros2_camera realsense_ros2_camera
[INFO] [RealSenseCameraNode]: RealSense ROS v2. 0.1
[INFO] [RealSenseCameraNode]: Running with LibRealSense v2.19.1
[INFO] [RealSenseCameraNode]: getParameters...
[INFO] [RealSenseCameraNode]: setupDevice...
[INFO] [RealSenseCameraNode]: Device Name: Intel RealSense D435I
[INFO] [RealSenseCameraNode]: Device Serial No:<PHONE_NUMBER>59
[INFO] [RealSenseCameraNode]: Device FW version: <IP_ADDRESS>
<IP_ADDRESS>
[INFO] [RealSenseCameraNode]: Device Product ID: 0B3A
[INFO] [RealSenseCameraNode]: Sync Mode: On
[INFO] [RealSenseCameraNode]: Device Sensors:
[INFO] [RealSenseCameraNode]: Stereo Module was found.
[INFO] [RealSenseCameraNode]: RGB Camera was found.
[INFO] [RealSenseCameraNode]: Motion Module was found.
[INFO] [RealSenseCameraNode]: Fisheye sensor isn't supported by current device! -- Skipping...
[INFO] [RealSenseCameraNode]: setupPublishers...
[INFO] [RealSenseCameraNode]: setupStreams...
[INFO] [RealSenseCameraNode]: depth stream is enabled - width: 640, height: 480, fps: 30
[INFO] [RealSenseCameraNode]: infra1 stream is enabled - width: 640, height: 480, fps: 30
[INFO] [RealSenseCameraNode]: infra2 stream is enabled - width: 640, height: 480, fps: 30
[INFO] [RealSenseCameraNode]: color stream is enabled - width: 640, height: 480, fps: 30
[INFO] [RealSenseCameraNode]: publishStaticTransforms...
[INFO] [RealSenseCameraNode]: RealSense Node Is Up!
20/03 14:11:58,943 ERROR [139645979432704] (types.h:251) xioctl(VIDIOC_DQBUF) failed for metadata fd: 26 Last Error: No such device
20/03 14:11:58,943 ERROR [139645996218112] (types.h:251) xioctl(VIDIOC_DQBUF) failed for metadata fd: 30 Last Error: No such device
20/03 14:11:58,943 ERROR [139645987825408] (types.h:251) xioctl(VIDIOC_DQBUF) failed for metadata fd: 34 Last Error: No such device
20/03 14:11:58,946 ERROR [139645979432704] (backend-v4l2.cpp:1335) xioctl(VIDIOC_DQBUF) failed for metadata fd: 26 Last Error: No such device
20/03 14:11:58,948 ERROR [139645996218112] (backend-v4l2.cpp:1335) xioctl(VIDIOC_DQBUF) failed for metadata fd: 30 Last Error: No such device
20/03 14:11:58,948 ERROR [139645987825408] (backend-v4l2.cpp:1335) xioctl(VIDIOC_DQBUF) failed for metadata fd: 34 Last Error: No such device
20/03 14:11:59,577 ERROR [139646412945152] (types.h:251) get_dev_capabilities: Cannot open '/dev/video13 Last Error: Permission denied
20/03 14:11:59,577 ERROR [139646412945152] (types.h:251) get_dev_capabilities: Cannot open '/dev/video11 Last Error: Permission denied
20/03 14:11:59,578 ERROR [139646412945152] (types.h:251) get_dev_capabilities: Cannot open '/dev/video8 Last Error: Permission denied
20/03 14:11:59,578 ERROR [139646412945152] (types.h:251) get_dev_capabilities: Cannot open '/dev/video12 Last Error: Permission denied
[FATAL] [RealSenseCameraNode]: The device has been disconnected! Terminate RealSense Node...

From the error information, I guess that this is because that I don't patch the kernel, then I tried to patch the kernel, but if fails with your script due to it's bound to the old kernel, as follows:
robotics@ros-robotics:~/workspace/librealsense$ ./scripts/patch-realsense-ubuntu-lts.sh
Remove all RealSense cameras attached. Hit any key when ready
[sudo] password for robotics:
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
git is already the newest version (1:2.17.1-1ubuntu0.4).
The following NEW packages will be installed:
  linux-headers-4.15.0-46 linux-headers-4.15.0-46-generic linux-headers-generic
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/12.1 MB of archives.
After this operation, 90.0 MB of additional disk space will be used.
Selecting previously unselected package linux-headers-4.15.0-46.
(Reading database ... 256789 files and directories currently installed.)
Preparing to unpack .../linux-headers-4.15.0-46_4.15.0-46.49_all.deb ...
Unpacking linux-headers-4.15.0-46 (4.15.0-46.49) ...
Selecting previously unselected package linux-headers-4.15.0-46-generic.
Preparing to unpack .../linux-headers-4.15.0-46-generic_4.15.0-46.49_amd64.deb ...
Unpacking linux-headers-4.15.0-46-generic (4.15.0-46.49) ...
Selecting previously unselected package linux-headers-generic.
Preparing to unpack .../linux-headers-generic_<IP_ADDRESS>.48_amd64.deb ...
Unpacking linux-headers-generic (<IP_ADDRESS>.48) ...
Setting up linux-headers-4.15.0-46 (4.15.0-46.49) ...
Setting up linux-headers-4.15.0-46-generic (4.15.0-46.49) ...
Setting up linux-headers-generic (<IP_ADDRESS>.48) ...
Package required libusb-1.0-0-dev:  - found
Package required libssl-dev:  - found
Unsupported kernel version 4.18.0-16-generic . The patches are maintained for Ubuntu Bionic LTS with kernel 4.15 only
robotics@ros-robotics:~/workspace/librealsense$ uname -a
Linux ros-robotics 4.18.0-16-generic #17~18.04.1-Ubuntu SMP Tue Feb 12 13:35:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

How to deal with this crash within the latest Ubuntu 18.04 LTS ?

Hello @gaoethan ,
At this time the supported LTS kernels are 4.4-4.15 as noted:

Unsupported kernel version 4.18.0-16-generic . The patches are maintained for Ubuntu Bionic LTS with kernel 4.15 only

Specifically to Bionic it is 4.15. Support for the newly released 4.18 and 5.0 is scheduled but I cannot provide hard estimates.
At this time you can use the patch that is verified for kernel 4.16 - ./scripts/patch-ubuntu-kernel-4.16.sh , or alternatively downgrade the kernel to 4.15 LTS.

@ev-mp In order to run your patch script, I have no choice and have already downgraded the kernel to 4.15, as follows

robotics@ros-robotics:~/workspace/turtlebot3/catkin_ws$ uname -a
Linux ros-robotics 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

then run the ./scripts/patch-realsense-ubuntu-lts.sh successfully. However, the similar issue persists after a while with the following error log:
robotics@ros-robotics:~/workspace/turtlebot3/catkin_ws$ ros2 run realsense_ros2_camera realsense_ros2_camera
[INFO] [RealSenseCameraNode]: RealSense ROS v2. 0.1
[INFO] [RealSenseCameraNode]: Running with LibRealSense v2.19.1
[INFO] [RealSenseCameraNode]: getParameters...
[INFO] [RealSenseCameraNode]: setupDevice...
[INFO] [RealSenseCameraNode]: Device Name: Intel RealSense D415
[INFO] [RealSenseCameraNode]: Device Serial No:<PHONE_NUMBER>12
[INFO] [RealSenseCameraNode]: Device FW version: <IP_ADDRESS>
[INFO] [RealSenseCameraNode]: Device Product ID: 0AD3
[INFO] [RealSenseCameraNode]: Sync Mode: On
[INFO] [RealSenseCameraNode]: Device Sensors:
[INFO] [RealSenseCameraNode]: Stereo Module was found.
[INFO] [RealSenseCameraNode]: RGB Camera was found.
[INFO] [RealSenseCameraNode]: Fisheye sensor isn't supported by current device! -- Skipping...
[INFO] [RealSenseCameraNode]: Gyro sensor isn't supported by current device! -- Skipping...
[INFO] [RealSenseCameraNode]: Accel sensor isn't supported by current device! -- Skipping...
[INFO] [RealSenseCameraNode]: setupPublishers...
[INFO] [RealSenseCameraNode]: setupStreams...
[INFO] [RealSenseCameraNode]: depth stream is enabled - width: 640, height: 480, fps: 30
[INFO] [RealSenseCameraNode]: infra1 stream is enabled - width: 640, height: 480, fps: 30
[INFO] [RealSenseCameraNode]: infra2 stream is enabled - width: 640, height: 480, fps: 30
[INFO] [RealSenseCameraNode]: color stream is enabled - width: 640, height: 480, fps: 30
[INFO] [RealSenseCameraNode]: publishStaticTransforms...
[INFO] [RealSenseCameraNode]: RealSense Node Is Up!
 20/03 18:09:28,385 ERROR [140559802210048] (types.h:251) xioctl(VIDIOC_DQBUF) failed for fd: 26 Last Error: No such device
 20/03 18:09:28,386 ERROR [140559802210048] (backend-v4l2.cpp:1335) xioctl(VIDIOC_DQBUF) failed for fd: 26 Last Error: No such device
 20/03 18:09:28,386 ERROR [140559810602752] (types.h:251) xioctl(VIDIOC_DQBUF) failed for fd: 23 Last Error: No such device
 20/03 18:09:28,386 ERROR [140559810602752] (backend-v4l2.cpp:1335) xioctl(VIDIOC_DQBUF) failed for fd: 23 Last Error: No such device
 20/03 18:09:28,387 ERROR [140559791343360] (types.h:251) xioctl(VIDIOC_DQBUF) failed for fd: 29 Last Error: No such device
 20/03 18:09:28,387 ERROR [140559791343360] (backend-v4l2.cpp:1335) xioctl(VIDIOC_DQBUF) failed for fd: 29 Last Error: No such device
[FATAL] [RealSenseCameraNode]: The device has been disconnected! Terminate RealSense Node...

And from the kernel dmesg, I can see the following exception:

[ 2001.962695] uvcvideo: Failed to query (GET_CUR) UVC control 1 on unit 3: -32 (exp. 1024).
[ 2002.023372] uvcvideo: Failed to query (GET_CUR) UVC control 1 on unit 3: -32 (exp. 1024).

Hi @gaoethan ,
The specific error:

xioctl(VIDIOC_DQBUF) failed for fd: 29 Last Error: No such device

is often associated with the device being forcibly disconnected due to lack of power or a similar HW issue. Can you check a different USB port and/or self-powered USB3 hub?
As a side note - with the LTS kernel 4.15 you also have the option to use librealsense2-dkms package.


feat(core-components): Add a link to denote opening a new window.

Hey, I just made a Pull Request!
Closes #17143. Adds the LaunchIcon SVG to all external links and adds a MUI style class for control by the theme.

:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[x] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

@sennyeya had a little chat about this internally, I wonder if it makes sense to first start off with a RFC rather than going direct into implementation. There's a few edge cases I think we need to work out, and I think we probably want to get some feedback from other members of the community first. Is this OK as a path forward? :pray:

@benjdlambert I think that makes sense, do you have a set of stakeholders that you want feedback from? I've seen a lot of the recent ones with very little engagement and would like to avoid that if possible.

Hmm @sennyeya that's a good idea - I'd probably start with @backstage/maintainers and possibly some of the folks from @backstage/discoverability-maintainers. Would also be good to get some feedback from some of the longer standing community members too and other designers. I know that's a bit vague but let's start there 👍

@benjdlambert I created #18186 to track the RFC for this.

Nice @sennyeya, I'm gonna close this PR for now, but depending on the RFC it might make sense just to re-open this at a later date.


Release @azure/msal-browser v2.0.0-beta.2

Please review #1613, #1631 and #1632 before reviewing this PR.

We should consider adding tests in both browser and node to catch these types of regressions.

Coverage remained the same at 79.554% when pulling c472ffff2bbe98ba6cf783d51275abcf7e0d7777 on browser-beta-2-release into 217df59d64260f95f28f6e94550e7b0f6f67799a on dev.


Kernel panic on sending 0x00 buffer

SoftU2F causes kernel panic if you send it [0x00, 0x00, 0x00, 0x00]. Running v0.0.15

Thanks. Where/how were you sending this?


Add in warning about one download only

Closes #45

It used to be one per scenario, but I can't figure out why we had that limitation, and if it still exists. Do you remember the reasoning for the original warning? If not, I can run some tests.

I'm not sure. Maybe it's because we don't ensure that the filenames are unique in the downloads folder? That said, the name of each downloads folder is now unique per scenario, so it should only be a problem if they download a file of the same name in one scenario.
Also, I think the downloads functionality wouldn't handle a case where one click downloaded multiple files. That would be a once-per-step issue. Not sure if that's even possible, though.

Check what happens if we click download twice on the same page, resulting in the same file getting downloaded twice. Does the name conflict cause issues?

Dang, the downloads folder only has one download in it. Also, it looks like there's only one downloads folder for everything. If multiple scenarios download files, will there still only be one downloads folder?

Ah darn, I thought multiple downloads in the same scenario worked locally, but I think I see what's happening now. Chrome downloads the file twice, but because it has the same name, it only saves once in the downloads folder. I think what we need to somehow be able to specify I download docassemble-filename.pdf as local-filename.pdf. That can be a later ticket. For now, I'll fix the warning to clarify.

Multiple scenarios with downloads work, see here: https://github.com/plocket/docassemble-cucumber/actions/runs/1063493418

😓 i had trim trailing whitespace turned on. oops. i can undo that if you want.


Handle nullptr values in lualand

Hello again!
Came across some interesting behavior around null pointer handling. I made an example at https://github.com/karenzshea/sunless that can be compiled with ./build.sh null.cc from the project directory.
It compiles, but running the resulting binary results in a segfault à la
Program received signal SIGSEGV, Segmentation fault.
0x000000000040228c in std::char_traits<char>::length(char const*) ()
(gdb) bt
#0  0x000000000040228c in std::char_traits<char>::length(char const*) ()
#1  0x00000000004028df in sol::stack::pusher<char const*, void>::push(lua_State*, char const*) ()
#2  0x0000000000404eb8 in int sol::stack::push_reference<char const*>(lua_State*, char const*&&) ()
#3  0x0000000000404dc3 in int sol::stack::call_into_lua<false, char const*, , int, sol::wrapper<char const* (*)(int), void>::caller, char const* (*&)(int), void>(sol::types<char const*>, sol::types<int>, lua_State*, int, sol::wrapper<char const* (*)(int), void>::caller&&, char const* (*&)(int)) ()
#4  0x0000000000404a21 in int sol::call_detail::agnostic_lua_call_wrapper<char const* (*)(int), true, false, false, 0, void>::call<char const* (*&)(int)>(lua_State*, char const* (*&)(int)) ()
#5  0x000000000040499f in int sol::call_detail::call_wrapped<void, true, false, 0, char const* (*&)(int)>(lua_State*, char const* (*&)(int)) ()
#6  0x0000000000404507 in sol::function_detail::upvalue_free_function<char const* (&)(int)>::real_call(lua_State*) ()
#7  0x0000000000404536 in int sol::detail::static_trampoline<&sol::function_detail::upvalue_free_function<char const* (&)(int)>::real_call>(lua_State*) ()
#8  0x0000000000404391 in sol::function_detail::upvalue_free_function<char const* (&)(int)>::call(lua_State*) ()
#9  0x00007ffff7bb08ed in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
#10 0x00007ffff7bbc4ed in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
#11 0x00007ffff7bb0c2e in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
#12 0x00007ffff7bb026f in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
#13 0x00007ffff7bb0e71 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
#14 0x00007ffff7bacd91 in lua_pcallk () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
#15 0x0000000000402950 in sol::stack::script(lua_State*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#16 0x0000000000402b0f in sol::state_view::script(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#17 0x0000000000401a8e in main ()

I can get around a crash by returning an empty string "" rather than nullptr, but lua scripts may be expecting a nil value rather than "".

Well. There's a number of things you (and I) can do to fix this:

(Speed) Let it continue to explode if this happens, and make the user specify sol::optional<const char*> as a return. Has the benefit of letting the user pick nil (sol::none) purposefully, but is API-intrusive
(Ease of use? A) Check for null, serialize an empty string if the const char* is null
(Ease of use? B) Check for null, seralize an Lua nil if  const char* is null

I want to do 2, but 3 is just as valid, honestly, and probably better. 1 is the Most Holy Way™ but probably not worth it.

I made a decision: Picked 3. Makes the most sense in the end, I guess.
Get the latest: https://github.com/ThePhD/sol2/blob/develop/single/sol/sol.hpp

:bowing_woman: Thanks much for the fix. Luabind's behavior was also to serialize lua's nil given null pointers, so hopefully this helps anyone else switching over.


quick filter on permission dialog works differently to other quick filters

Permission Dialog quick filter appears to only search leading characters, other quick filter search anywhere in the word

Can't reproduce. I think I might have fixed this already.


[question] how stable is Master channel?

Hello, just wondering if Flutter team considers Master channel to be production-ready.
Cheers,
Luke

The beta channel is the most stable.
More about this here: https://github.com/flutter/flutter/wiki/Flutter-build-release-channels

@tudor07 thanks!

Beta seems to be getting a little stale based on that guide. Do we have any indication when it will be updated?


Use objects for where clauses in query builder

Hello,
In the doc it specifies two ways of creating where clauses in a query:
const users = await Database.from('users').where('id', 1)
// Or
const users = await Database.from('users').where({ id: 1 })

So I tried to run a query like the following:

But it would be nice if that functionality could be implemented for the cases where there might be more than one query filters applied. Consider the following use case:

Can you be more specific with your issue. When you say it didn't work, what do you mean by that?
Also please enable query debugging and share the SQL queries output too

Your first comment shows queries related to User and Cars and the sql output shows query on verifications_codes.
Now I am not sure if the SQL output is correct, since I cannot see the code that you wrote, which output this SQL query.
In short, I want to know

What code you write in Javascript?
What's the SQL output of the query?
What is the expected output?

@thetutlage If you noticed the 1st example in the original post is not the same as the second as well, they were examples to show what I was trying to do. Sorry for the confusion.

My actual code is:

2.The SQL output is:


Story/update field decorators

I created workarounds in a downstream project to get around not having these features and thought they might be useful for others.
Added DateField annotation and added a default option for EnumField and BooleanField

:tada: This PR is included in version 1.23.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


The behavior of the istio-ingress-controller about HTTP2.0 to HTTP1.1

Hi,
My micro-service only support HTTP 1.1 , but the external client only supports HTTP2.0, can the istio-ingress-controller translate HTTP2.0 to HTTP1.1.
While i run the command "  curl --http2 -k -v https://:/httpsvcistio"
I get information this communication fallback to HTTP1.1.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: http-svc-istio
annotations:
kubernetes.io/ingress.class: "istio"
spec:
tls:

secretName: istio-ingress-certs
rules:
http:
paths:

path: /httpsvcistio
backend:
serviceName: http-svc-istio
servicePort: 80

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: http-svc-istio
spec:
replicas: 2
template:
metadata:
labels:
app: http-svc-istio
spec:
containers:
- name: http-svc
image: gcr.io/google_containers/echoserver:1.8
ports:
- containerPort: 8080

apiVersion: v1
kind: Service
metadata:
name: http-svc-istio
labels:
app: http-svc-istio
spec:
ports:

port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: http-svc-istio

Please ask questions on the public forums. See here for info.


Refactor mol draw2 d

[WIP] - Re-factoring of the 2D drawing code - not yet ready for code review
Reference Issue
What does this implement/fix? Explain your changes.
This is a re-factoriing of the MolDraw2D classes to make them more maintainable in future.  There is a new class DrawMol which does nearly all the drawing in terms of a new set of classes derived from DrawShape.  The new classes are all private and friends of MolDraw2D to emphasise that they are implementation classes and not for general use.  When the re-factoring is finished, MolDraw2D will contain a set of functions for drawing primitives, and the top level functions for drawing molecules and reactions.  Everything else will be removed as it has mostly been copied into DrawMol.
Any other comments?
There is still all the tidying up to do.  This is an early PR so that people can start looking at the new pictures and decide if any changes are required.
To help with the comparison, there's a very basic script $RDBASE/Code/GraphMol/MolDraw2D/side_by_side.py which will makes an HTML table of corresponding image files from 2 directories as the rows.  You will need to edit it to change the hard-coded directory names.  I will improve this in due course.

I think this is now ready for review.  The testMolDraw2D.py now works on Ubuntu 20.04.  It crashes for me on macOS, but then so does testSparseIntVect.py so it may not be relevant.
I haven't changed any of the file hash codes yet, I'll do that once everything is accepted.
The C++ code is compiling and working on Ubuntu 2.0.04 and macOS Big Sur 11.6.2.  I expect the other language wrappers will need some work, and I'm not able to try the Qt.

I think I've resolved all the issues here, bar the biggy about whether the new classes should be protected.  That's pending an offline discussion with Greg.

Yeah, I was surprised that the std:: wasn't necessary here. One of the
header files must have a using std::get.
On Wed, Feb 9, 2022 at 8:28 AM David Cosgrove @.***>
wrote:

@.**** commented on this pull request.
In Code/GraphMol/MolDraw2D/DrawMol.cpp
https://github.com/rdkit/rdkit/pull/4948#discussion_r802332836:

auto rad_rect = get<0>(radicals_[rad_num]);

OrientType draw_or = get<1>(radicals_[rad_num]);

Is the surprise that it deals with the missing std::? Me too, in that
case. Or have I missed something more sinister?
—
Reply to this email directly, view it on GitHub
https://github.com/rdkit/rdkit/pull/4948#discussion_r802332836, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAED6X7RSMD4UONJBZQA5GLU2IJQRANCNFSM5MVE6IUQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because your review was requested.Message ID:
@.***>


Update FlagKit.podspec

Add swift_versions to podspec file to avoid build failures with CocoaPods 1.8.0

No, we have to manually set the Swift version for a couple of pods and while we could do this for all pods, some don't necessarily require it - because they already support Swift 5. Some do due to them no longer being maintained or due to version lock so we have to specify the version manually.
I got the error message in the terminal o I decided to open a pull request. Maybe there are others that don't want to do the cocoapods post_install shenanigan to set the Swift version and as a thank you for sharing this on GitHub.
I looked back in the Swift update commit history since Swift 3.0 and most of the Changes were OS and XCode related - correct me if I'm wrong - so it would probably support out of the box Swift versions from 3.2 upwards.
Thanks again,
Ciprian

CocoaPods say:
[!] Unable to determine Swift version for the following pods:

FlagKit does not specify a Swift version and none of the targets (XXX XXX and XXX) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.

its a 100% Swift Project and we need this flag.

@blommegard @cyupa

@wopian @gellermark @yageek @antontingstrom @hannseman @ReadmeCritic @edwardjewson @MosheBerman


[JENKINS-53933] set file permissions to allow use of openssh on windows

See JENKINS-53933
~Please say if I messed up the import statements~ I did 🤭
Yay for tests! 🙌
Hopefully we can get this in before 4.0 release!
We have had success with this and using OpenSSH from Microsoft 😎

Sadly tests are failing on CI with "UserPrincipalNotFoundException" I wonder how agents are setup... @rtyler might have the answer 👍

Atm trying to look for a better way to get the current user principal name

@MarkEWaite Wonder if I can do a docker fixture with openssh to test it?

You're right that ci.jenkins.io only supports Linux docker containers.
If you'd like to try a Windows based Docker container, I'm willing to ask the infrastructure team to experiment with Windows Docker containers.  I assume that will be a long and perilous road before we arrive at Windows Docker containers.

We already experimented 😅 The docker workflow plugin requires some love before it will work on Windows, we also had to use Windows Server 2019 because we couldn't get older things working. Git, msys2 and ssh would crash the container. Also Microsoft introduced a compatibility matrix https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/version-compatibility

Dno why CI decided to go nuts:
[windows-2.121.1] [INFO] Possible null pointer dereference in org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(ArgumentListBuilder, File, EnvVars, Integer) due to return value of called method [org.jenkinsci.plugins.gitclient.CliGitAPIImpl, org.jenkinsci.plugins.gitclient.CliGitAPIImpl] Method invoked at CliGitAPIImpl.java:[line 2255]Known null at CliGitAPIImpl.java:[line 2255] NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

[windows-2.121.1] [INFO] Possible null pointer dereference in org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(ArgumentListBuilder, File, EnvVars, Integer) due to return value of called method [org.jenkinsci.plugins.gitclient.CliGitAPIImpl, org.jenkinsci.plugins.gitclient.CliGitAPIImpl] Method invoked at CliGitAPIImpl.java:[line 2264]Known null at CliGitAPIImpl.java:[line 2264] NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE

Did not even touch those lines 😇

What are the changes of getting a merge and a 3.0.0-beta6? 🙌

Chances are quite good to include this in git client plugin 3.0.0,
There is a set of pending pull requests ( #352 from @nre-ableton and a related change from @darxriggs) which I would like to have in the git client plugin before releasing beta6.  I would also like to include #370 in the release so that we base the plugin on Jenkins 2.107.3 instead of Jenkins 2.60.3.
I'd like beta6 to be a release candidate build.  I need to review Jenkins plugins for uses of the JGit Repository object and its getRef() method.  The transition from git client plugin 2.x to git client plugin 3.0.0 switches the bundled JGit version from JGit 4.5.4 to JGit 5.1.1.  That change drops a few API's from JGit and the usage of those dead API's needs to be reviewed in the plugins.
If you'd like to help accelerate the release of git client plugin 3.0.0, you could search the jenkinsci organization for use of the JGit API's that were dropped in the transition from 4.5.4 to 5.1.1.

Hi @MarkEWaite could this and #406 be patched into v2 git client plugin?


how to run espanso-wayland with systemd service?

Describe the bug
how to run espanso-wayland with systemd service if there is no options services.espanso.package to replace espanso to espanso-wayland?
https://search.nixos.org/options?channel=23.05&from=0&size=50&sort=relevance&type=packages&query=espanso
Steps To Reproduce
Steps to reproduce the behavior:

...
...
...

Expected behavior
provide options services.espanso.package to replace espanso to espanso-wayland.
Screenshots
no options services.espanso.package

Additional context
Add any other context about the problem here.
Notify maintainers
@kimat
@theHedgehog0

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
 - system: `"x86_64-linux"`
 - host os: `Linux 6.4.3, NixOS, 23.05 (Stoat), 23.05.1998.f64b9738da8`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(hervyqa): `""`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

cc: @bobvanderlinden is also did the last commit.

wondering if there is any update on this? trying to get espanso-wayland to work as well

May be resolved by https://github.com/NixOS/nixpkgs/pull/298530

package option now exists: https://search.nixos.org/options?channel=unstable&show=services.espanso.package&from=0&size=50&sort=relevance&type=packages&query=espanso


admit() escapes

@catalin-hritcu ran into this:
 let test () : Tot int =
    let x : nat = (admit () ; 5) in
    assert False;
    99

This succeeds. And while it has an admit(), and one could say all bets are off, it should probably fail as it is not scoped where we assert False.
I'm blaming the effect system, but I'm not sure. Note that there is no VC involved.

I don't think this is a bug. See the spec of Prims.admit: it intentionally discards the VC for the continuation.

This seems like (1) super dangerous and (2) bad user experience. Don't think any human expects this behavior from admit.

Sorry, this is not changing. admit intentionally discards the VC of the continuation. We rely on that behavior heavily everywhere.


Most recent projects showing up in "Show All" gallery, but not on homepage (Firefox 109 on Mac)

I even tried a hard-refresh and it still doesn't show my most recent projects on the landing page.

Now I'm noticing the asterisks.  For some reason, they must not be saving to the cloud, even though some of them are saved to Github

@eanders-ms  any clue
Also projects saved in the cloud are different from github projects. If you save in github they won't save in the cloud.

Github and cloud save are complementary and work fine together. I do it all the time!

@kiki-lee any errors showing up in the debug console? It looks like cloud save is having a problem. asterisk means it wasn't able to save to the cloud ever.

Update: Still seems to be happening after restart/reload. Never stops giving the message "Saving"
Browser Console Messages Follow-------------
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. arcade.makecode.com
Browser: safari 10 on mac pxtapp.js:1:97865
workspace: browser pxtapp.js:1:97865
PouchDB adapter: idb pxtapp.js:1:97865
XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]
XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]
XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]
XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]
Feature Policy: Skipping unsupported feature name “autoplay”. pxtapp.js:1:589331
Feature Policy: Skipping unsupported feature name “autoplay”. pxtapp.js:1:589377
Feature Policy: Skipping unsupported feature name “autoplay”. pxtapp.js:1:589538
Feature Policy: Skipping unsupported feature name “autoplay”. pxtapp.js:1:590294
Partitioned cookie or storage access was provided to “https://trg-arcade.userpxt.io/---simulator#sim-frame-0049480041092261730.6431109363750365” because it is loaded in the third-party context and dynamic state partitioning is enabled.
Simulator ServiceWorker registration successful with scope:  https://trg-arcade.userpxt.io/ pxtsim.js:1:35730
An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can remove its sandboxing. arcade.makecode.com
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. ---docs
Feature Policy: Skipping unsupported feature name “autoplay”. pxtapp.js:1:589331
Feature Policy: Skipping unsupported feature name “autoplay”. pxtapp.js:1:589377
Feature Policy: Skipping unsupported feature name “autoplay”. pxtapp.js:1:589538
Feature Policy: Skipping unsupported feature name “autoplay”. pxtapp.js:1:593932
Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://trg-arcade.userpxt.io’) does not match the recipient window’s origin (‘https://arcade.makecode.com’). arcade.makecode.com
Partitioned cookie or storage access was provided to “https://trg-arcade.userpxt.io/---simulator#sim-frame-50142641650152662170.020586159881088473” because it is loaded in the third-party context and dynamic state partitioning is enabled.
Simulator ServiceWorker registration successful with scope:  https://trg-arcade.userpxt.io/ pxtsim.js:1:35730
performance report:
first JS running @ 661ms
DOM loaded @ 811ms
workspace init finished @ 2s46ms
loading done #updateeditorfile @ 44s
simulator ready @ 58s
	loadBlockly took ~ 179ms
	domUpdate loadBlockly took ~ 6s (45s - 51s)

pxtweb.js:1:2938
XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]
XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]
XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]
XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]

These are interesting. Let me check the server logs for additional info.
XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]

XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]

XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]

XHRPOSThttps://arcade.makecode.com/api/user/project
[HTTP/1.1 500 Internal Server Error 0ms]

This doesn't seem to happen anymore


renovate: add release-note/dependency label to PRs

See https://github.com/cilium/tetragon/pull/1384#issuecomment-1704986391 and https://github.com/cilium/tetragon/pull/1384#issuecomment-1705460667.
Already created this label https://github.com/cilium/tetragon/labels/release-note%2Fdependency (but renovate creates if needed anyway).
Should this be plural release-note/dependencies?

🥰 maybe keep the other labels too?

are they useful? A dep bump is not really an enhancement and I don't know if we use this release-blocker thing, it seems we mostly ignore it :D! what do you think?

i don't know about "kind/enhancement" label, but we do check "release-blocker" label during the release https://github.com/cilium/tetragon/blame/main/.github/ISSUE_TEMPLATE/release_template.md#L11 to make sure dependencies are kept up to date 🤖


Misc minor fixes

These changes are the fixes for:

https://github.com/microbiomedata/issues/issues/217
Remove the required override on rna_cont_well
https://github.com/microbiomedata/issues/issues/242
Take alt out of some interface classes
https://github.com/microbiomedata/nmdc-schema/issues/858
Update the validation_converter.tsv sheet to use the new keyword expected by sheets_and_friends. This restore the regex pattern on geo_loc_name and a couple other slots.

I'm intentionally not closing the issue with this PR. To help keep @mslarae13 sane I'll close them when they're actually integrated into the submission portal (on dev).

Moving this into draft because I want to get one more issue in here.


Fix usermanager API keys

Fixed API keys on example curl in UI!
Added hability for user to keep wallet after user deleted from extension, only through API.
Fixes #344
Fixes #1113
Fixes #871

Codecov Report

Merging #1117 (e1c9445) into main (2cbbea0) will decrease coverage by 2.93%.
The diff coverage is 12.50%.

@@            Coverage Diff             @@
##             main    #1117      +/-   ##
==========================================
- Coverage   51.59%   48.65%   -2.94%
==========================================
  Files         238      238
  Lines       13461    13462       +1
==========================================
- Hits         6945     6550     -395
- Misses       6516     6912     +396

Impacted Files
Coverage Δ

lnbits/extensions/usermanager/views_api.py
50.84% <0.00%> (ø)

lnbits/extensions/usermanager/crud.py
31.25% <20.00%> (-0.67%)
:arrow_down:

lnbits/extensions/boltz/mempool.py
32.75% <0.00%> (-50.00%)
:arrow_down:

lnbits/extensions/boltz/crud.py
29.23% <0.00%> (-49.24%)
:arrow_down:

lnbits/extensions/boltz/utils.py
23.52% <0.00%> (-41.18%)
:arrow_down:

lnbits/extensions/boltz/boltz.py
17.91% <0.00%> (-39.31%)
:arrow_down:

lnbits/wallets/cln.py
19.00% <0.00%> (-29.76%)
:arrow_down:

lnbits/wallets/lndrest.py
17.09% <0.00%> (-29.06%)
:arrow_down:

lnbits/wallets/lndgrpc.py
22.72% <0.00%> (-27.93%)
:arrow_down:

lnbits/extensions/boltz/views_api.py
31.40% <0.00%> (-18.19%)
:arrow_down:

... and 7 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

LGTM!


SIGABRT when db.Get() on OSX

Original issue 193 created by eddyxu on 2013-07-23T20:11:39.000Z:
What steps will reproduce the problem?

Compile the following code

int main() {
  leveldb::DB* db;
  leveldb::Options options;
  options.create_if_missing = true;
  auto status = leveldb::DB::Open(options, "test.db", &db);
  assert(status.ok());

  db->Put(leveldb::WriteOptions(), "", "");
  string value;
  db->Get(leveldb::ReadOptions(), "", &value);
  delete db;
  return 0;
}

Compile it with "g++ -std=c++11 -lleveldb test.cpp"
Run it

What is the expected output? What do you see instead?
db->Get() should set value to "23".
It crashes with the output:
a.out(32275,0x7fff7d3dc180) malloc: *** error for object 0x1074da820: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Here is the GDB output
(gdb) r
Starting program: /Users/eddyxu/tmp/a.out
Reading symbols for shared libraries ++++................................ done
a.out(32295,0x7fff7d3dc180) malloc: *** error for object 0x100123820: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Program received signal SIGABRT, Aborted.
0x00007fff98846212 in __pthread_kill ()
(gdb) bt
# 0  0x00007fff98846212 in __pthread_kill ()
# 1  0x00007fff969c9b54 in pthread_kill ()
# 2  0x00007fff96a0ddce in abort ()
# 3  0x00007fff969e19b9 in free ()
# 4  0x00007fff959af780 in std::string::_M_mutate ()
# 5  0x00007fff959b0317 in std::string::_M_replace_safe ()
# 6  0x00000001000108ab in leveldb::MemTable::Get ()
# 7  0x0000000100009d34 in leveldb::DBImpl::Get ()
# 8  0x0000000100000acc in main ()

What version of the product are you using? On what operating system?
Leveldb 1.12.0 on Mac OSX 10.8.3, g++ 4.7.3
Please provide any additional information below.

Unable to reproduce. Feel free to reopen if this can be reproduced.


SVG doesn't work in IE Edge with WebGL

SVG support seems to be broken in IE Edge, (v3, master and dev). IE10 works due to canvas fallback. Noticed while developing the PR.
v3: https://codepen.io/RanzQ/pen/PGqRma
master: https://codepen.io/RanzQ/pen/rrVJoP
dev: https://codepen.io/RanzQ/pen/bwdLOv
No errors, the sprite just won't show up.
This message comes up but it can be removed with transparent: true:
WEBGL11135: getContext: Context attribute premultipliedAlpha:false is not currently supported

I'll see if my PR fixes this. Created an issue since I first thought I broke it myself.

Thanks for sharing @RanzQ 👍
Let me know if you PR fixes this one!

This doesn't occur on Edge but on IE11. Forgot they are not the same thing. :)
An invalid SecurityError is thrown when using svg images on canvas or with WebGL. MS issue can be tracked here: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/110935/

Looks like (from that issue) that they fixed it in Edge but aren't porting it back to IE11. That is most unfortunate...


OpenBLAS fails on OS X with new -mavx2 flag

The flag -mavx2 was added on commit 43c2b0eb, which makes the building process fail on Mac OS X in Lapack code, with gcc8 as a fortran compiler:
make[2]: Entering directory /opt/local/var/macports/build/_Users_nicos_ports_local_math_OpenBLAS/OpenBLAS/work/OpenBLAS-0.3.5/lapack-netlib/SRC' /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c -o sbdsvdx.o sbdsvdx.f /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c -o spotrf2.o spotrf2.f /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c -o sgetrf2.o sgetrf2.f /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c -o sgbbrd.o sgbbrd.f /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c -o sgbcon.o sgbcon.f /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c -o sgbequ.o sgbequ.f /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c -o sgbrfs.o sgbrfs.f /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive -m64 -fPIC -mavx2 -c -o sgbsv.o sgbsv.f /opt/local/var/macports/build/_Users_nicos_ports_local_math_OpenBLAS/OpenBLAS/work/.tmp/ccyLD1vQ.s:103:no such instruction: vxorps %xmm0, %xmm0,%xmm0'
/opt/local/var/macports/build/_Users_nicos_ports_local_math_OpenBLAS/OpenBLAS/work/.tmp/ccyLD1vQ.s:104:no such instruction: vcomiss (%r14), %xmm0' /opt/local/var/macports/build/_Users_nicos_ports_local_math_OpenBLAS/OpenBLAS/work/.tmp/ccyLD1vQ.s:111:no such instruction: vsqrtss (%r14), %xmm0,%xmm0'
/opt/local/var/macports/build/_Users_nicos_ports_local_math_OpenBLAS/OpenBLAS/work/.tmp/ccyLD1vQ.s:112:no such instruction: vmovss %xmm0, (%r14)' make[2]: *** [spotrf2.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /opt/local/var/macports/build/_Users_nicos_ports_local_math_OpenBLAS/OpenBLAS/work/.tmp/cc2HvPr7.s:249:no such instruction: vmovd %esi, %xmm1'
/opt/local/var/macports/build/_Users_nicos_ports_local_math_OpenBLAS/OpenBLAS/work/.tmp/cc2HvPr7.s:252:no such instruction: vpbroadcastd %xmm1, %ymm1' /opt/local/var/macports/build/_Users_nicos_ports_local_math_OpenBLAS/OpenBLAS/work/.tmp/cc2HvPr7.s:257:no such instruction: vpaddd (%rcx,%rax), %ymm1,%ymm0'
/opt/local/var/macports/build/_Users_nicos_ports_local_math_OpenBLAS/OpenBLAS/work/.tmp/cc2HvPr7.s:258:no such instruction: vmovdqu %ymm0, (%rcx,%rax)' /opt/local/var/macports/build/_Users_nicos_ports_local_math_OpenBLAS/OpenBLAS/work/.tmp/cc2HvPr7.s:267:no such instruction: vzeroupper'
[snip]
Removing the flag enables the build to proceed correctly.

For folks attempting builds of new OpenBLAS on ancient Mac OS X systems, that may have washed up on this shore like me:
I added -Wa,-q to CFLAGS and FFLAGS to switch the assembler from the prehistoric default Apple cctools one to the improved clang / LLVM one.
(At some point the default assembler switched to clang / LLVM :tada:, while the cctools version can still be selected these days by passing -Q to as instead.)

Any idea if this can be done unconditionally on any version of OS X ?

AVX512 MACs are supported from OSX 10.11, maybe it can be conditionalized based on target SDK?


new example: tetrominos_learning

Thanks @andreamari

@andreamari you're been working with the code lately. Can you confirm that the scripts in this PR generate the tetromino images after training?

@co9olguy I am sure it worked before all changes after the PR. Shall I make a new test?

yep, just in case something inadvertently changed during PR, good to rerun a test

Ok I am running a test on workhorse. I'll let you know, probably tomorrow, the results.

It was good to make a test. Indeed there was a problem in the definition of the LOTISJZ matrices! After fixing the problem I confirm that all tetrominos are generated correctly. Actually 10k-15k iterations are sufficient to show nice figures. At the moment the default value for the nnumber of repetitions is 50k, if you think it is useful we can decrease it. Otherwise I think the code is ok.

At the moment the default value for the nnumber of repetitions is 50k, if you think it is useful we can decrease it. Otherwise I think the code is ok.

@andreamari: Sure, how about 20k?

All set to merge this one @andreamari @trbromley ?

Good to merge from my side. @andreamari let me know if you need a hand with the README.md changes. Thanks!

Ok to merge also form my side. I just updated the README.md file. You can check if you like the description of the new example.

Great thanks @andreamari @trbromley !


Updated how.xml

Added a new book link

Sorry but we won't be adding new content to that page. It badly need rewriting from scratch.


HTTPS support

API must supports HTTPS for use on client side, otherwise request from HTTPS to API will be blocked by browser.

Hm, exactly. I have just installed an SSL certificate. I'll try to update links in docs and make all requests redirect to secure HTTPS access by this weekend.
Now you can use https://favicongrabber.com/api/
Thank you.

@antongunov it looks like the SSL certificate expired 😢

Auto renewing the SSL-certificate was stopped but I fixed it. Thanks for message!

Thank you for fixing it!


Dependencies.yaml under bundle/metadata

I am trying to install some licensing operator in a different namespace as a dependency when my operator is getting installed.  I found this https://docs.openshift.com/container-platform/4.8/operators/understanding/olm/olm-understanding-dependency-resolution.html#olm-bundle-format-dependencies_olm-understanding-dependency-resolution helpful, but is there a way I can tell this dependency to get installed in a different namespace rather than the same namespace where my operator is getting installed?

Hi @zohiba, this issue seems to be related to Operator Lifecycle Manager's task on resolving dependencies before installing the operator. Could you please raise an issue in https://github.com/operator-framework/operator-lifecycle-manager.


HHH-12606 Container contents are never accessed

https://hibernate.atlassian.net/browse/HHH-12606

merged as well. Thanks!


Produces attribute not appearing in swagger output

using 6.0.0-rc1-final
When a Produces attribute is added ether to the class or method,
[Produces("application/json")]
the swagger.json "produces" element is always empty,
"produces":[]
Thanks.

Confusing but Produces need to be the return data type,

I can set the return data type, but then my own return type won't get listed.
If I set [Produces("application/vnd.my.v1+json")] it doesn't work.

I'm working on fixing it in this PR: https://github.com/domaindrivendev/Swashbuckle.AspNetCore/pull/292

Can this issue please be reopened, it was never addressed.

I believe this may be related to my swagger-ui issue #4205

@dataspun If you have time, pull down the code from PR #583  (https://github.com/ljfraney/Swashbuckle.AspNetCore, produces-attribute branch) and see if it fixes your issue. I'd be interested. Still waiting for feedback from @domaindrivendev.

@dataspun If you are returning application/json, you should be able to get Swashbuckle to properly populate Swagger's produces: [] array by using the ProducesResponseTypeAttribute attribute instead of the ProducesAttribute. The difference is that you must provide a C# type when you use ProducesResponseType, which you would typically have when you are returning JSON. The code in PR #583 might make your code work as you expected, but I would still suggest using ProducesResponseType instead. The issue that I am trying to solve with PR #583 is that there is no way to properly populate the produces array when you are returning a content type that isn't represented by a class, and therefor can't be represented with JSON or XML (i.e. image/png, text/csv, etc.).

@ljfraney Yes indeed using ProducesResponseTypeAttribute works as you suggested, thank you.
To be thorough, the error server can't produce application/json is generated in the browser console even in the following cases:

Using [Produces("application/json")] on controller or method
Using [ProducesResponseType(200)] on controller or method, where the Type parameter isn't passed

The only way to avoid the error is:

Using [ProducesResponseType(typeof(Object), 200)] on controller or method

I'm not certain whether this is by design or not.  Either way, it appears specific to Swashbuckle.AspNetCore so I will close my swagger-ui issue #4205 and reference this one instead.

@ljfraney Have you experimented with FileResult for your ResponseType class?  There are several subtypes that may be of use to you.

@dataspun I assume you mean this FileResult (.Net Core version). I can return an instance of FileContentResult or FileStreamResult, and I can provide a contentType in the constructor, but it doesn't affect the generated Swagger produces array.

My bad yes the .Net Core version.
Apart from your PR and depending on your requirements, you could also return a JSON result with Base64 encoded string and mime type.

On Feb 13, 2018, at 12:27 PM, Josh Franey<EMAIL_ADDRESS>wrote:
@dataspun I assume you mean this FileResult (.Net Core version). I can return an instance of FileContentResult or FileStreamResult, and I can provide a contentType in the constructor, but it doesn't affect the generated Swagger produces array.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Hi,
I have the very same project. Working with ASP.NET Core and Swashbuckle.AspNetCore 1.2.0, the following code does not generate the appropriate "produces", and the "Response Content Type" always shows "application/json" instead of the configured values.
Example of the code:
[HttpPost]
[Produces(@"application/pdf")]
[ProducesResponseType(typeof(FileResult), 200)]
[ProducesResponseType(typeof(void), 400)]
[ProducesResponseType(typeof(void), 401)]
[Route(@"api/[controller]/Report")]
public async Task<IActionResult> GenerateReport([FromBody]Request request)
{
	Stream stream = await GenerateReportAsync(request).ConfigureAwait(false);
	return this.File(stream, @"application/pdf", @"report.pdf");
}

Thank you.

@rliberoff I know this is a super old thread, but thanks for your response.  I had a similar issue and was able to get past it using this portion of your comment:
[Produces(@"application/pdf")]
[ProducesResponseType(typeof(FileResult), 200)]
public async Task<IActionResult> GenerateReport()
{
    // ...
}


improve component with listener on height change with entry="bottom" only

Pr to enable the component to receive a new height while it is still mounted. Fixes also issue about flicker when in nativeDriver=true

@maxs15 Hi Max could you marge this pr? For me is very useful

I tested this branch and it works fine! please merge 🙏🏻

Any progress on this ? Tested and works well

We are currently using it in our app.  I don't think they will merge this
fork into official repo, since I got no update from official maintainer.
Feel free to use this, if it's stable for you too.
😀
Il gio 14 mag 2020, 09:31 Blind12<EMAIL_ADDRESS>ha scritto:

Any progress on this ? Tested and works well
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/maxs15/react-native-modalbox/pull/310#issuecomment-628447034,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEJNBO3OL3CWYOJXTMULXXDRROM4BANCNFSM4LTCUHWQ
.


OG-USA: Add check box for open economy

We should add a check box/radio button to toggle between the closed economy version of OG-USA (the default) and the open economy version.
Shall we also let the user input the exogenous interest rate?
cc @rickecon @salimfurth

Sounds good. We might need to put limits on the world interest rate so that it solves.

@salimfurth Good point.  We might do some testing to see this range.  Does 1%-10% seem ok?

Yeah, that's plenty wide enough. I haven't stress-tested - I imagine some extreme values in that range will give negative G or other nonsense results even if they solve.

@jdebacker I'm a bit unclear on the econ terms used here - is open economy version currently part of the webapp-public (i.e. is webapp-public hardcoded to closed economy version now) or does open vs closed refer to the Partial Equilibrium vs Macro Elasticities choice?  I don't have a clear picture of where the checkbox and exogenous interest rate UI inputs need to go.

@PeterDSteinberg let me see if I can clarify.  OG-USA now (since PR #249), allows one to consider two versions of the overlapping generations model.  One is where the economy is assumed to be "closed" - so that there is not trade or financial interactions with outside countries.  And the other is where the economy is assumed to be "open", so goods or capital and flow into the U.S. economy we are modeling.
We want to make it an option for the user to switch between these on Tax Brain.  Currently, one can do this in the source code by changing the keyword argument 'small_open':False that is passed to ogusa.execute.runner()

@PeterDSteinberg . As @jdebacker mentioned in the previous comment, the small open economy option in OG-USA is a boolean ('small_open': True or 'small_open': False) that can be passed into the ogusa.scripts.execute.runner() function.

When 'small_open': False, the closed economy version of the model runs, and no other options are required for running the model with regard to the close versus small open option.
When 'small_open': True, the small open economy version of the model runs. We currently have a default world interest rate of 0.04 that is assumed when the small open economy option is selected. But we want the user to be able to input this assumption if they want. A user could input the world interest rate by supplying a value 'world_int_rate': 0.035 in the user_params dictionary in the run_ogusa_serial.py script. This dictionary would be passed to ogusa.scripts.execute.runner(). We would need to update the script runner() to acommodate my suggested 'world_int_rate' key, but we just have to pass that value to parameters.py and set ss_firm_r_annual in line 327 and ss_hh_r_annual in line 328 to either the default for world_int_rate or to its user-supplied value.

For PolicyBrain implementation of these options, we should:

Include a checkbox labeled "Assume small open economy (closed economy if blank)". If the box is left blank, then 'small_open': False in the kwargs passed into OG-USA in the script that runs the model (e.g., run_ogusa_serial.py). The help box text for this check box should be: "If this box is left blank, the OG-USA model is assumed to be a closed economy. If the box is checked, the OG-USA model is assumed to be a small open economy with a fixed world interest rate. The user can either choose to supply a world interest rate below. Otherwise, the model will use the default world interest rate."
If the box is checked, then 'small_open': False in the kwargs passed into OG-USA in the script that runs the model (e.g., run_ogusa_serial.py), and another field becomes available for the fixed world interest rate. If the user supplies no value for the world interest rate, the default (0.04 is used. If they supply a value (bounded between 0.02 and 0.06), then that value is passed to parameters.py as described in point (2) above. The help box text for the world interest rate field should be: "In the small open economy case, the user can either supply a world interest rate (between 0.02 and 0.06) or the default (0.04) can be used."

Hi @rickecon Those notes on open economy options are helpful.  I have made some tentative local changes in OG-USA / webapp-public I need to try out further and will push something up tomorrow.

Thanks @PeterDSteinberg . I will submit a PR on this that updates the code in execute.py to change the internal interest rates in parameters.py.

@rickecon @jdebacker See the OG-USA PR above (I think that makes the necessary changes in OG-USA), but I am still having trouble locally with this PolicyBrain builder PR.


Update main.py

add statistics
add token commandline argument
add random delay to seem more real

because why not?
also what's your discord

also added notification for when you get clown reward


[Enhancement] Cross-dimensional /clone command

Based on the vanilla /clone command except it allows you to specify source and destination dimensions.
This could be used in a few different applications but I definitely think it would be a good addition.

Added to vanilla lol


Remove the deprecated build command infrastructure

Along the way this also fixes a few bugs with build scripts with respect to dynamic native libraries which are linked into build scripts themselves.

r? @huonw
(rust_highfive has picked a reviewer for you, use r? to override)

@bors: r+ 50e00c9

:hourglass: Testing commit 50e00c9 with merge e30748b...

:broken_heart: Test failed - cargo-win-32

@bors: retry

:hourglass: Testing commit 50e00c9 with merge f1ca1ee...

:sunny: Test successful - cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-32, cargo-win-64


Trilogy.connect not working in Staging and Production environments.

In Staging and Production
config = Rails.configuration.database_configuration[ Rails.env ]
connection = Trilogy.new( config )
#=> .../trilogy-2.6.1/lib/trilogy.rb:18:in `_connect': No such file or directory - trilogy_connect - unable to connect to /tmp/mysql.sock (Trilogy::SyscallError::ENOENT)

In Development
config = Rails.configuration.database_configuration[ Rails.env ]
connection = Trilogy.new( config )
#=> <Trilogy:0x000000013a9de1e0

The configs between the environments are similar with just different database, username, password and host values.
Moreover, the actual Rails application (i.e. ActiveRecord) works just fine in all environments using Trilogy.
Any thoughts on this?
Thanks!

Is your production database available via a socket file on that same host? unable to connect to /tmp/mysql.sock (Trilogy::SyscallError::ENOENT)
It looks like your configuration may still have Trilogy connecting via a file-based socket rather than remotely over the network and/or port 3306.

Thanks for the reply @bensheldon.
I don't think that's it because the actual app works just fine. As an example here is my staging environment config:
staging:
  database:  redacted
  username:  redacted
  password:  redacted
  adapter:   trilogy
  collation: utf8mb4_unicode_ci
  encoding:  utf8mb4
  host:      redacted
  pool:      20
  port:      3306
  reconnect: true
  variables:
    sql_mode: TRADITIONAL

Is there something special with Trilogy.connect that we need to force it to use the host and port instead of a socket file?

Okay, I narrowed it down a bit. It looks like the config Hash is being completely ignored when passed to Trilogy.new, which looks like it is expecting named parameters.
That explains why it works in Development, because in Development, you don't need to pass the config and it'll still connect:
config = Rails.configuration.database_configuration[ Rails.env ]
Trilogy.new( config )
#=> <Trilogy:0x000000013a9de1e0
Trilogy.new
=> #<Trilogy:0x0000000139ef01e8

If I supply the named parameters manually it works:
Trilogy.new( host: redacted, port: 3306, username: redacted, password: redacted )
=> #<Trilogy:0x00007f676bbf79d8

I tried using splat (**) to convert the config to named parameters but that doesn't seem to work:
Trilogy.new( **config )
.../trilogy-2.6.1/lib/trilogy.rb:18:in `_connect': No such file or directory - trilogy_connect - unable to connect to /tmp/mysql.sock (Trilogy::SyscallError::ENOENT)

Any idea how to pass the config Hash to Trilogy.new?

Okay, figured it out. config is by default set with keys that are Strings wherease Trilogy.new is expecting Symbols.
This ended up working:
Trilogy.new( config.symbolize_keys )
#=> #<Trilogy:0x00007f676ba2a790

Is this something you can or want to handle in the library itself so it treats Strings and Symbols the same in the initialization config?

Oh! Nice find! I'd like that configuration to be more permissive and less surprising. It looks like we're already duping the connection options during initialization, so maybe that could do the symbolize keys too (with some slight reordering):
https://github.com/trilogy-libraries/trilogy/blob/90d81d2a7e457435224232539470b7bd383a82f4/contrib/ruby/lib/trilogy.rb#L10-L23

Yup, I would just symbolize the keys for options right at the start. Because this is just ruby I don't think we can use rails methods so I think options.transform_keys(&:to_sym) should do the trick.
Do you want to handle it or do you want me to submit a PR?

@joshuapinter if you could submit a PR, I can take it from there 👍🏻

@bensheldon There ya go! https://github.com/cntral/trilogy/pull/1
Thanks.


dependency-check: check that packages are installed

[X] Add a user-configurable capability to check that ubuntu packages are installed.

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/premiscale/general?version=dev:57666cd6f32a729df7317602bc68ae170cbe4a04

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/premiscale/general?version=dev:b798233aee2e1710622573fe57ae879a9d923a81

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/premiscale/general?version=dev:43f32b5521ef87bfbc3563326981bfa93c307f90

Also attempting to cache mypy results between job runs.

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/premiscale/general?version=dev:d9690c2720c1770a44524cb23228bae0a7f89e2b

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/premiscale/general?version=dev:47e12776bac86661cf834339b3f32cc4b3fe89ae

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/premiscale/general?version=dev:ba4975d0183c64d1ebc249f5e74707343da128eb

Your development orb has been published. It will expire in 30 days.
You can preview what this will look like on the CircleCI Orb Registry at the following link:
https://circleci.com/developer/orbs/orb/premiscale/general?version=dev:f9a5fcc260ef16c98e1546cfe675fb01bded15f5


Why Function1 does not also extend PartialFunction?

After reading Integrating Partial Functions into Javaslang, one possibility was left out uninspected: having Function1 extend both j.u.f.Function and PartialFunction, like:
interface Function1<T1, R> extends PartialFunction<T1, R>,
                                   java.util.function.Function<T1, R> {
    default boolean isDefinedAt(T1 value) {
        return true;
    }
}

Since total functions are a subset of partial functions, there should be no illegal use case. So is there any technical reason why Function1 does not extend PartialFunction?

Yes, it would be Variant 1 of the blog post but I think you mean that PartialFunction does not implement Function.
In Scala PartialFunction extends Function1. This enables us to handle different cases:
var sample = List.range(1, 4);
var isEven = Function1.of((Integer i) -> i + " is even").partial(i -> i % 2 == 0);
var isOdd = Function1.of((Integer i) -> i + " is odd").partial(i -> i % 2 == 1);

// = List("1 is odd", "2 is even", "3 is odd");
List<String> numbers = sample.map(isEven.orElse(isOdd));

where sample.map takes a java.util.function.Function.
On the one hand using partial functions in places where functions are expected is unsafe. On the other hand we would loose several use-cases for partial function.

For me, this is a signal that we do it wrong with partial functions. For Vavr 1.0.0 we should do the following:

remove PartialFunction from io.vavr.core, especially Function1 should not depend on PartialFunction
move PartialFunction to io.vavr.match because pattern matching is our only use-case for partial function (I think collect does not work at all)
let PartialFunction stand on its own, it should not extend Function1 or j.u.Function

Reason: Scala has PartialFunction deeply integrated into the language (e.g. pattern matching and the case literal). We can't do that in Java. Trying to integrate it on our own seems artificial and it does not scale well regarding future versions of Java (which will come with native pattern matching).


Add the support to store the carthage cache in a custom bucket folder

What
As mentioned in #44 this adds the support to specify bucket's path.
How
The .carthage_cache.yml has a new optional parameter path where is possible to specify the bucket's path we want to use. By default carthage_cache will still use the bucket root.

Hi @guidomb I'm not sure what the failure on CI means, could you give me some inputs?

Thanks for the PR, let me get back to you next week and sorry for the delayed response. I have a busy week and I couldn't find the time to take a look at this.

Again, thanks for the PR @serluca and sorry for the delayed review. I'm trying to understand why the build fails. I think that there is something wrong with travis environment and rvm. But this only happens with Ruby 2.0.0 which maybe I should not support any more.

@serluca I've updated the Travis build matrix to only use Ruby 2.4.2 and also updated your branch. Tests are passing now.

Hi @guidomb sorry for taking so long, I have just pushed the changes you requested.

@serluca Thanks a lot for your contribution!


[Gallery][WASM] Occasional Unintended Text Selection After Component Switch

Current behavior
When switching from one component to another via the side menu and then returning to a textbox, the text within the textbox is occasionally pre-selected.
https://github.com/user-attachments/assets/f3ffa846-f580-45dc-9322-d63173b1c8bc

Expected behavior
When returning to the textbox after navigating between components, the text should remain unselected
How to reproduce it (as minimally and precisely as possible)

Open Gallery Canary WSM.
From the side menu, expand UI Components and click on Textbox.
Observe that no text is automatically selected in the textbox.
Now, switch to a different component from the side menu, then return to the Textbox component.
Notice that upon returning, the text in the textbox appears to be automatically selected.

Environment

Nuget Package:
Package Version(s):
Affected platform(s):

[ ] iOS
[ ] Android
[ ] WebAssembly
[ ] UWP
[ ] MacOS

Anything else we need to know?
Could be related to : https://github.com/unoplatform/uno/pull/17633 , https://github.com/unoplatform/uno/issues/17914

@Youssef1313 @ramezgerges does this look familiar?

This is actually a duplicate of https://github.com/unoplatform/uno/issues/13440. The repro is not component switching, but double clicking. I suspect @jhanvi03 mistakenly double clicked on the "TextBox" item while switching between components.

@jhanvi03 can you double check this and maybe sync with @ramezgerges / @MartinZikmund to see if this is perhaps related to the double-click issue?

Tested using mouse pad and mouse, occasionally I am able to reproduce with single click. Also, with double click on component, the entire section is getting selected.

Using the latest Canary version, I encountered the same issue when I navigated to Menu -> Community Toolkit -> DataGrid. Upon a single click, the data was selected unexpectedly.
Versions:
Package	Referenced version	Updated version
Uno.CommunityToolkit.WinUI.UI.Controls	7.1.200 7.1.203
Uno.CommunityToolkit.WinUI.UI.Controls.DataGrid	7.1.200 7.1.203
Uno.Core.Extensions.Compatibility	4.0.1 4.1.1
Uno.Core.Extensions.Disposables	4.0.1 4.1.1
Uno.Sdk	5.3.96 5.6.0-dev.16

Its not related to Component switching, but re clicking on the Textbox component and slightly moving the mouse (click and drag) causes the default text to get selected.

It seems to be introduced between 5.4.0-dev.198 and 5.4.0-dev.196

IMO this should be fixed by https://github.com/unoplatform/uno/pull/18921 @Xiaoy312 did you validated it?

IMO this should be fixed by unoplatform/uno#18921 @Xiaoy312 did you validated it?

@dr1rrb I tested on master w the latest changes from Xiao, unable to repro this now. (https://github.com/unoplatform/uno/pull/18931)

@Kunal22shah
unable to repro at all (before and after), or
no longer repro with the fix?

@Xiaoy312 no longer able to repro with your fix.


Release for v0.5b.x

Codecov Report

Merging #121 into v0.5b.x will decrease coverage by 0.84%.
The diff coverage is 83.33%.

@@             Coverage Diff             @@
##           v0.5b.x     #121      +/-   ##
===========================================
- Coverage    92.73%   91.88%   -0.85%
===========================================
  Files           21       21
  Lines         1142     1196      +54
  Branches       141      149       +8
===========================================
+ Hits          1059     1099      +40
- Misses          55       70      +15
+ Partials        28       27       -1

Impacted Files
Coverage Δ

azure_monitor/src/azure_monitor/options.py
100.00% <ø> (ø)

...monitor/sdk/auto_collection/live_metrics/sender.py
85.71% <ø> (-0.65%)
:arrow_down:

azure_monitor/src/azure_monitor/storage.py
99.28% <ø> (ø)

...itor/sdk/auto_collection/metrics_span_processor.py
70.00% <33.33%> (-12.50%)
:arrow_down:

...ure_monitor/sdk/auto_collection/request_metrics.py
76.92% <78.94%> (+1.11%)
:arrow_up:

..._monitor/sdk/auto_collection/dependency_metrics.py
93.25% <85.36%> (-6.75%)
:arrow_down:

.../src/azure_monitor/sdk/auto_collection/__init__.py
100.00% <100.00%> (ø)

...nitor/sdk/auto_collection/live_metrics/__init__.py
100.00% <100.00%> (ø)

...nitor/sdk/auto_collection/live_metrics/exporter.py
64.51% <100.00%> (ø)

..._monitor/sdk/auto_collection/live_metrics/utils.py
100.00% <100.00%> (ø)

... and 4 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 7f892e8...978a9df. Read the comment docs.


Cannot configure integration

Working since two years, yesterday started not working any more with an error on protom_response.
Installed the very last version <IP_ADDRESS> but with no success in resolving the error.
Decided to uninstall the Securitas component and reinstall (using HACS), but now I cannot configure the integration:
After input of the 2FA I always get (stripping the full stack):
...
File "/usr/local/lib/python3.12/site-packages/jwt/api_jws.py", line 254, in _load
raise DecodeError(f"Invalid token type. Token must be a {bytes}")
jwt.exceptions.DecodeError: Invalid token type. Token must be a <class 'bytes'>
The above exception was the direct cause of the following exception:
...
File "/config/custom_components/securitas/config_flow.py", line 110, in finish_setup
await self.securitas.login()
File "/config/custom_components/securitas/init.py", line 362, in login
await self.session.login()
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 339, in login
raise SecuritasDirectError(
custom_components.securitas.securitas_direct_new_api.exceptions.SecuritasDirectError: Failed to decode authentication token None

When you setup the integration, can you skip the 2FA step (there's a checkbox for that) and see if that works?

Yes I tried but I get the exact same error.
Thanks for your help

I'm trying a few random things to replicate this, but I cannot. Can you enable logging, try again without the 2FA, and paste the logs?

Ok, the configuration problem is solved (my fault: I did not use the primary login, but a secondary login, sorry for that).
Now I have another problem, the one I had when I decided to reinstall from scratch.
This is the sequence:

I succesfully configured securitas: OK
I changed the configuration parameters (disabling the PIN) and on reload: Exception

2024-02-23 18:05:28.315 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Authentication token expires 2024-02-23 18:20:26 and now is 2024-02-23 18:05:28.315792
2024-02-23 18:05:28.315 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Capabilities token expires 2024-02-23 18:20:26 and now is 2024-02-23 18:05:28.315931
2024-02-23 18:05:28.317 ERROR (MainThread) [homeassistant.components.alarm_control_panel] Error while setting up securitas platform for alarm_control_panel
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/securitas/alarm_control_panel.py", line 80, in async_setup_entry
current_state: CheckAlarmStatus = await client.update_overview(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/securitas/init.py", line 425, in update_overview
alarm_status = await self.session.check_alarm_status(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/securitas/securitas_direct_new_api/apimanager.py", line 536, in check_alarm_status
self.protom_response = raw_data["protomResponse"]
~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'protomResponse'
Some more info:

I use the very last version <IP_ADDRESS>.
eventually reenabling the PIN succeded in reloading securitas, but it was erratical, i tried serveral times with some succesful reloding but more often getting the exception. Finally succeded in reloading without the PIN and unchecking "Check alarm panel's status in every request (not recommended)".

As a side info, the update scan interval does not work for me, I wanted 3600 secs to have a reload every hour, but again the check was made every minute. So I ended up removing the polling on the system configuration for securitas, i'll check with an automation.
Tanks again for the help

Securitas is erratic. Depending on the day of the week and the mood of the API gods, we may get a response or not and it may be correct or not. The integration should handle these cases, but honestly there is a lot of error handling that is missing. We'll be adding some as we go.
Did you try deleting and reinstalling the integration or were you just changing parameters with the "Configure" option of the integration?

I was just changing parameters and saving, with automatic reaload of the integration.
Thought it was connected with the parameters, but i'ts more likely your explanation :)

I missed this comment: "the update scan interval does not work for me, I wanted 3600 secs to have a reload every hour, but again the check was made every minute." I introduced a bug that should be fixed in the next release.
Closing this issue


Possible issue with local key in HasManyThrough

Hi,
when trying to retrieve relation:
return $this->hasManyThrough('Yap\Cnq', 'Yap\BusCon', 'business_id', 'id', 'cnq_id');
`
Fift, or third string key coresponds with $localKey at Illuminate\Database\Eloquent\Relations\HasManyThrough

__construct( Builder $query, Model $farParent, Model $parent, string $firstKey, string $secondKey, string $localKey)

However, setting that key makes no difference, the key is not passed into query.
So I dug into it a bit and found this line (114) :
HasManyThrough.php#L114
And changed it to this:
$query->join($this->parent->getTable(), ((!empty($this->localKey)) ? $this->parent->getTable() . '.' . $this->localKey : $this->getQualifiedParentKeyName()), '=', $foreignKey);
Maybe I misunderstood the whole thing, but now it does what I need it to do so I thought I might share.
Cheers,
Tibor.

I have the same issue:
return $this->hasManyThrough('App\Purchase', 'App\User', 'partner_id', 'user_id', 'partner_id');
"select * from purchasesinner joinusersonusers.id=purchases.user_idwhereusers.partner_id in (?)" array:1 [   0 => 1 ]
where array should contain array:1 [   0 => 12345 ]

The 5th argument should be the column in the parent Model whose value will be used when building the constraint with the second argument.
For example:
Consider Business ->hasMany->branches->hasMany->devices
The query generated for
$this->hasManyThrough(Device::class, Branch::class, 'business_id', 'branch_id', 'customer_column')

is
select `devices`.*, `branches`.`business_id` from `devices` inner join `branches` on `branches`.`id` = `devices`.`branch_id`
where `branches`.`business_id` = ??

?? will be replaced by the value of businesses.customer_column

I proposed to add the missing info for fifth argument in laravel docs see https://github.com/laravel/docs/pull/2302 maybe it could help somebody.

@themsaid I am having a very similar issue and if I look at your example above, I would expect the following output:
select `devices`.*, `branches`.`business_id` from `devices` inner join `branches` on `branches`.`customer_column` = `devices`.`branch_id`
where `branches`.`business_id` = ??

Note that branches is using 'id' in your example rather than 'customer_column'.

If anybody else stumbles across this issue because they are also struggling with it, be sure to set the protected property, $primaryKey, on any relevant models.