epub not displayed on Android, using Cordova

Hello,
I'm working on the cloud-reader version of Readium. I managed to get it working first directly in my browser, then with Cordova.
I use cordova run browser and it still working fine in the browser, there is no error in the console.
I try then to build an app for Android with the same source. The app is correctly compiled and deployed. The problem is when I click on a book cover, I get the loading image and it never shows the epub content. I supposed the epub is correctly loaded though, because when I click on the table of contents icon, the frame on the left is filled with all the chapters of the book I clicked. It looks like just a display problem, but I can't find any clue in the log :

I/chromium: [INFO:CONSOLE(4)] "RequireJS ... cfi_errors", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (4)
I/chromium: [INFO:CONSOLE(4)] "RequireJS ... cfi_instructions", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (4)
I/chromium: [INFO:CONSOLE(4)] "RequireJS ... cfi_interpreter", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (4)
"RequireJS ... cfi_generator", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (4)
I/chromium: [INFO:CONSOLE(4)] "RequireJS ... cfi_API", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (4)
I/chromium: [INFO:CONSOLE(54)] "file:///android_asset/www", source: file:///android_asset/www/index.html (54)
I/chromium: [INFO:CONSOLE(78)] "[object Object]", source: file:///android_asset/www/index.html (78)
I/chromium: [INFO:CONSOLE(0)] "'Range.detach' is now a no-op, as per DOM (http://dom.spec.whatwg.org/#dom-range-detach).", source:  (0)
I/chromium: [INFO:CONSOLE(0)] "Discontiguous selection is not supported.", source: file:///android_asset/www/index.html (0)
I/chromium: [INFO:CONSOLE(4)] "#######################################", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (4)
I/chromium: [INFO:CONSOLE(6)] "Globals...", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (6)
I/chromium: [INFO:CONSOLE(6)] "ReadiumSDK set.", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (6)
I/chromium: [INFO:CONSOLE(19)] "Language: [fr-FR]", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (19)
I/chromium: [INFO:CONSOLE(0)] "'KeyboardEvent.keyLocation' is deprecated. Please use 'KeyboardEvent.location' instead.", source:  (0)
I/chromium: [INFO:CONSOLE(6)] "Plugins included: ", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (6)
D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN
W/cr.BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 31003
I/chromium: [INFO:CONSOLE(24)] "MODULE CONFIG:", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (24)
I/chromium: [INFO:CONSOLE(24)] "[object Object]", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (24)
I/chromium: [INFO:CONSOLE(13)] "** EL is a string:epub-reader-frame", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (13)
I/chromium: [INFO:CONSOLE(15)] "using new PlainResourceFetcher", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (15)
I/chromium: [INFO:CONSOLE(6)] "Plugins loaded.", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (6)
I/chromium: [INFO:CONSOLE(24)] "PLUGINS INITIALIZED!", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (24)
I/chromium: [INFO:CONSOLE(15)] "No Media Overlays", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (15)
I/chromium: [INFO:CONSOLE(12)] "Media Overlay INIT...", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (12)
I/chromium: [INFO:CONSOLE(15)] "EPUB doc iframe src:", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (15)
I/chromium: [INFO:CONSOLE(15)] "epub_content/Charly/OEBPS/cover_1445593187000.html", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (15)
I/chromium: [INFO:CONSOLE(15)] "EPUB doc iframe base URI:", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (15)
I/chromium: [INFO:CONSOLE(15)] "file:///android_asset/www/index.html?epub=epub_content%2FCharly", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (15)
I/chromium: [INFO:CONSOLE(15)] "EPUB doc iframe LOAD URI:", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (15)
I/chromium: [INFO:CONSOLE(15)] "file:///android_asset/www/epub_content/Charly/OEBPS/cover_1445593187000.html", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (15)
I/chromium: [INFO:CONSOLE(15)] "EPUB doc base href:", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (15)
I/chromium: [INFO:CONSOLE(15)] "file:///android_asset/www/epub_content/Charly/OEBPS/cover_1445593187000.html", source: file:///android_asset/www/scripts/readium-js-viewer_all.js (15)

I tried with a zip epub or with an unzipped folder, doesn't seem to make any difference.
Do you have any idea on this problem ?

I managed to get it working :

I used cloud reader lite instead of cloud reader
I rename index.html to reader.html
I create a new index.html with just a link to reader.html?epub=epub_content/book pointing to a unzipped epub directory

No idea why this works better.

Hello @vichenze
FYI, there's an ongoing experiment in this feature branch: https://github.com/readium/readium-js-viewer/tree/feature/electron
which aims at "porting" the Readium Chrome Extension / App to Electron for Windows, OSX and Linux (this part works fine right now), and to ApacheCordova with optional CrossWalk for Android and iOS (this is only half-working right now). Basically, the goal is to determine how viable HTML5 Filesystem local storage is on Chromium webview, in order to reuse as much as possible of the existing Chrome browser code, without any platform-specific customizations.
See this preliminary documentation piece:
https://github.com/readium/readium-js-viewer/blob/feature/electron/README.md#hybrid-application-frameworks-desktop-and-mobile
(the main hurdle is Web Worker integration of Cordova "file" plugin)
In the past I wrote an Apache Cordova wrapper for Readium "cloud reader" (i.e. standard web reader with static ebook library view), which required storing the library of EPUBs directly inside the application bundle. It worked fine, but of course it was not possible to add/remove ebooks to/from the library. I was using the Windows "universal app" builder from Visual Studio, and it was just a really quick proof of concept (now totally out of date):
https://github.com/danielweck/readium-js-viewer/tree/feature/ApacheCordova/src/apache-cordova


Managed Policy Name different to Logical ID

Hey Team, great work on this package.  Super useful and really interested in incorporating it into more workflows.
I've noticed an interesting behaviour in v0.0.12 that occurs where the Cloudformation Logical ID is different to the managed policy name.  An example Cloudformation snippet might look like this (excuse the formatting):
Resources:   SampleRole:     Type: AWS::IAM::Role     Properties:       RoleName: 'SampleRole'       ManagedPolicyArns:          - !Ref SamplePolicy       Path: /       AssumeRolePolicyDocument:         Version: 2012-10-17         Statement:           - Effect: Allow             Principal: { Service: ec2.amazonaws.com }             Action:               - sts:AssumeRole   SamplePolicy:      Type: 'AWS::IAM::ManagedPolicy'     Properties:       ManagedPolicyName: Sample_Policy       PolicyDocument:          Version: "2012-10-17"         Statement:           - Effect: Allow             Action:               - 'cloudformation:Describe*'             Resource: '*'
Running cfn-policy-validator validate --template-path role.yaml --region ap-southeast-2  is met with the following error:
ERROR: Could not find managed policy with arn:aws:iam::{accountID}:policy/SamplePolicy in template or in environment.
I've noticed when I align the ManagedPolicyName with the Logical ID (i.e SamplePolicy), the validation is executed as expected.  Could you validate whether this is behaviour you see at your end, or if there's something obvious I'm missing?
Keep up the good work!

Thanks Ben!  And thank you for reporting this issue.
This does not look like the expected behavior and does seem to be a bug.  We'll get this fixed.

The fix seems to be working well.  Thanks for jumping on this so quickly Matt!


feat(impl): [#528] Improvements Policy Store Input Validation

Description

story: https://github.com/eclipse-tractusx/item-relationship-service/issues/528

Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review:

[ ] DEPENDENCIES are up-to-date. Dash license tool. Committers can open IP issues for restricted libs.
[ ] Copyright and license header are present on all affected files

1 PMD violation https://github.com/eclipse-tractusx/item-relationship-service/actions/runs/9035341234/job/24829878885?pr=597#step:5:9503


[HOW-TO] <Login to CRM2016 OnPrem 8.2 not working>

Welcome community.
My current project runs 8,2 Dynamics CRM OnPremise version.
for this i am using code from: https://github.com/microsoft/EasyRepro/tree/releases/OnPremise

i was trying to use VS 2017 and 2019 - no luck - should i stick to 2017?

what Google Chrome version should i use to make it work? is it matter at all?
Current version is 89 as i remember correctly.
i was trying on 85 - still no luck

using a default Nuget packages

more details:
my on premise app.confing contains data
<add key="OnlineUsername" value="localdomain\user" />   (i was trying with localdomain and without)
 <add key="OnlinePassword" value="password" />
 <add key="OnlineCrmUrl" value="url" />
 <add key="AzureKey" value="" />

data provided are not filled when login pop up is visible
i have no way to catch and interact with login popup window
i was trying also  to pass credentials by:
driver.Navigate().GoToUrl("http://user:pass@url");
still no luck
when i manually log into CRM  -  test was "doing" something, so i guess the interaction works.
can you please give me some tip? what i am doing wrong?
thank you very much

hey there
looks like this approach works
           using (var xrmBrowser = new Api.Browser(TestSettings.Options))
            {
                      xrmBrowser.GoToXrmUri(_xrmUri);
                      xrmBrowser.Driver.Url =<EMAIL_ADDRESS>                      xrmBrowser.Driver.Navigate();
                      // ... continue test
           }

hello,
thanks for the hint.
worked!


cabal: Allow optional use of cpphs as a preprocessor

Pinging @peti @shlevy @joelteon.  This is needed on Darwin/Yosemite because clang's preprocessor is broken there.

Looks good to me. I wonder, though, shouldn't we use cpphs for all builds by default?

I hesitated to make that the default, but if you think it's worth doing, I'm all for it.

I'll merge this as is, and we can decide to make it the default later.


app.py not working with the Bi-Gram Model

@OrkoHunter

Temporary solution done.
The problem with pickling of files take place.
SO


Problem using mercadopago-plugin on Xcode

Where can I open an issue  solution request?

Hi! you can fork the project and open a pull request.
We will evaluate it as soon as possible.
Regards

@zehemz  I've installed the mercadopago-plugin version 1.1.17 in cordova but when I try to build my project using "ionic cordova build ios" in terminal I get this error: "error: using bridging headers with framework targets is unsupported", besides I get over 170 warnings while building signed app in XCode. May I email you with all error's details?"

@brunovinny I will ask to the team if they are planning to generate a fix version for 1.1 plugin and let you know (sorry about that, I'm android developer actually). I will meet them on monday.
Anyway, from version 1, 1.1.18 is available and you can clone and checkout the project and make the modifications you need.
If you want to get long term support I will recommend to you update the dependency to 3.7.2.
If you have any other doubt please be free to ask.


[BUG][Storage][Recordings] x-ms-copy-source request header is being URL-encoded in test recordings

FileClient.PutRangeFromUrl() has a x-ms-copy-source header to specify the source URL
This header is sent non-URL-encoded, but it is URL-encoded in the test recordings, causing the recorded test to fail.

Closing; according to the linked PR, this issue was resolved by those changes.


bump(*): library-go to fix prune controller panic

This should (hopefully) fix some of the problems we were seeing with pruning, we had an older version of library go that (probably among other things) didn't catch a panic when there were 0 IDs to prune

/assign @deads2k

/lgtm

/retest

out of date


Updated recipe

Checklist

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

@conda-forge-admin, please rerender

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

Note:
Between ray-core and ray-default: it is safer to use ray-default as it also includes ray-core and some other packages. For more details please see here in the ray-packages-feedstock below.

https://github.com/conda-forge/ray-packages-feedstock/blob/93c846c01bbff90b154b954b28e29d3e5a3f15c9/recipe/meta.yaml#L118


Fix USB connections not loading extensions

Fixes #2996
Change-Id: I80277f357eacb4d326fb28f67d63c987c5027265

This change restores some logic removed when we switched to the proxy window approach. However, for emulator and USB connections we make API calls directly against AppInvHTTPD. This change restores the extension behavior only for ADB based connections by gating on the presence of the extensionurl field of the replstate.


Got error with upload

hi i integrated your application in my rails application but im getting an error
ActionController::ParameterMissing at /media_contents
param is missing or the value is empty: media_contents app/controllers/media_contents_controller.rb
can you please solve this error

@st118173 Clearly you are using strong parameters for filtering and you require(:media_contents) but not passing it in the params. How are you passing in the form?


How to add -gcflags="all=-N -l" in GoTest or GoTestFunc

I tried add -b -gcflags='all=-N -l'

It reponsed like this, failed to parse gcflags

maybe:
GoTest -b -gcflags="all-N\ -l"

Thanks it works.


Add exclusion in index_permission for role

With the API, ES allows index patterns with indices exclusion when prefixed par -
I need to allow all indices for a role except those starting with admin
I've tried to add 2 index patterns in Kibana like this with no luck

Is it possible to add this feature ?

Thanks for your question @mxmorin.
Index Patterns are just normal regex patterns, you should be able to use index pattern /^(?!admin).*/ to solve your issue.
Let me know if you run into any issues.

Thanks for your response
Seems to work.
Maybe need to add a text saying index pattern are regex and not those used by ES index pattern
Close this issue

I reopen this issue because this is not working in discovery.
With regex, /^(?!admin)./ we can't create index pattern admin but with pattern * discovery show documents in admin* indices

[Triage] Closing this issue because the exclusion of permissions for index permissions is actively being avoided in the new Identity project. Please reach out to @scrawfor99 for more details. Thank you.


requests.exceptions.ConnectionError: HTTPSConnectionPool(host='drive.google.com', port=443): Max retries exceeded with url: /uc?id=1BQCkD2gKAofIsqmcVp7bB2sauqwVietz (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e9f569090>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

When I run prepare_datasets.sh, this error occurred in the middle of the run. Do you have any solutions or suggestions?

All links were verified, and when I ran the script, everything was fine.
You could try updating your version of gdown to the most recent version.


Code Usage in Robot Kit Smart Video Car Kit

Hi,
Can I use this code in Sunflower Bag Robot Kit Smart Video Car Kit
https://www.amazon.de/gp/product/B01ANIY3EC

I have PCA9685 16 Channel 12 Bit PWM Servo Driver with RPI3


ListWheelScrollView: whole app starts flickering

Steps to reproduce

Start the app
drag ListWhelScrollView up and down very fast. Release. Start dragging the list view again.

Expected results
Everything is rendered correctly without any flickering
Actual results
Text shown in the app / app bar starts flickering and text also gets unreadable sometimes
Code sample
Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        appBar: AppBar(title: const Text("Hello World")),
        body: SafeArea(
          child: Builder(
            builder: (context) => Column(children: [
              Text("Hello World",
                  style: Theme.of(context).textTheme.headlineLarge),
              Expanded(
                child: ListWheelScrollView(
                  itemExtent: 50,
                  offAxisFraction: 2,
                  children: List.generate(5, (index) => Text("Item $index")),
                ),
              ),
              Text("Hello World",
                  style: Theme.of(context).textTheme.headlineLarge),
            ]),
          ),
        ),
      ),
    ),
  );
}

Screenshots or Video

Screenshots / Video demonstration
https://github.com/flutter/flutter/assets/4301810/4894e5a5-9843-40a2-a566-e7e10354edee

Logs
Logs
no logs available

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4 23E214 darwin-x64, locale en-GB)
    • Flutter version 3.19.5 on channel stable at /Users/username/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (19 hours ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1

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

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

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

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

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • iPhone Xs (mobile) • 46C2FCDC-4FE3-43E3-B33C-D01A89CAD840 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
    • macOS (desktop)    • macos                                • darwin-x64     • macOS 14.4 23E214 darwin-x64
    • Chrome (web)       • chrome                               • web-javascript • Google Chrome 123.0.6312.86

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

• No issues found!

What is your debug console log? please add logs

Hi @BenjaminZaiser
This seems to only appear on iOS simulator as I don't see it on iOS physical device. I'm quite inclined toward simulator rendering issue. Could you check this on a physical device if you have any?

I can confirm the issue on the simulator when scrolling CupertinoPicker.

It happened on iPhone 15 Pro (a real device, iOS 17.2.1) once. After a restart, it somehow didn't occur anymore - really weird.
Currently also happening on an iPad (real device).

I checked this on two physical devices iPhone 7, iOS 15.8 and iPad Air 5 (iPadOS 17.2) but still couldn't reproduce it.

After a restart, it somehow didn't occur anymore

@BenjaminZaiser Does "restart" mean "hot restart"? The issue only occurs once since the app starts, right? Could you notice at the output console (on your IDE and also on XCode) to see if there is any warnings/errors?

I can confirm the issue on the simulator when scrolling CupertinoPicker.

It could be because CupertinoPicker uses ListWheelScrollView internally.

Not sure if this is the issue I'm having currently where the icons flicker, and anything that has some Ink in it.

@bqubique This issue is about ListWheelScrollView. Your issue seems unrelated to this. Please file another issue for better tracking. Thanks!


Compatibility certification request for Eclipse Metro 3.0.0-M3

[x] Organization Name ("Organization") and, if applicable, URL:
Eclipse Foundation
[x] Product Name, Version and download URL (if applicable):
Eclipse Metro 3.0.0-M3
[x] Specification Name, Version and download URL:
Jakarta Web Services Metadata 3.0
[x] TCK Version, digital SHA-256 fingerprint and download URL:
Jakarta XML Web Services TCK 3.0.0, SHA-256: 7562e880b86893adff0e846fc265ee5feaf9ffea5ba32a151153755a376ad628
[x] Public URL of TCK Results Summary:
TCK results summary
[x] Any Additional Specification Certification Requirements:
None
[x] Java runtime used to run the implementation:
Oracle JDK 1.8.0_202
[x] Summary of the information for the certification environment, operating system, cloud, ...:
Linux
[x] By checking this box I acknowledge that the Organization I represent accepts the terms of the EFTL.
[x] By checking this box I attest that all TCK requirements have been met, including any compatibility rules.

accepted


Refresh required to complete importAsync

After clicking on the page, importAsync is incomplete.
After refreshing the browser, then the importAsync is complete
Any tip?
     protected override async Task OnInitializedAsync()
    {
        await base.OnInitializedAsync();
        await InitAsync(runtime);
        win = Window;
        await JsInit();
    }
    async Task JsInit()
    {
        //This requires refresh to make it load
        await ImportAsync("https://localhost:xxxx/js/jsSingleUI.bundle.js");
  }

Not reproducible

I found out, if there are other errors, e.g. css file not found, this will block the import.
Just a feedback so you know this could happen.


Fix stylesheets so that they only get applied once unless specified o…

…therwise in the response headers.
Adds two new possible response headers:

X-PJAX-Stylesheets-Reapply  - Reapply existing stylesheets if set to true.
X-PJAX-Stylesheets-Head -  Moves stylesheets to the  element so that they are only applied once.

Related issues:

yiisoft/yii2/issues/2310
yiisoft/yii2/issues/13155

Closed in favor of #50


Building a Data Catalog fails with XTDB

When coco labs (685db37417a1b37fa575de46d4aef6a55d0147b0) is run with XTDB (see https://github.com/odpi/egeria-jupyter-notebooks/pull/42 ) (b885e7f6024dc67f7d638cfcda4f94f21c114704)
the building a data catalog sample fails with

cc: @dwolfson @mandy-chessell

This is a duplicate of https://github.com/odpi/egeria/issues/7153

One missing piece of info from this audit message is making it actionable -- ie what function in the repository implementation was missing. I had expected this to be the first parm - though this is actually the request made by the OMAS.

@planetf1 In response to this comment https://github.com/odpi/egeria-jupyter-notebooks/issues/43#issuecomment-1352984969
The message displayed is from an exception not an audit log message.  The way to tell is in the structure of the message Id.
The audit log has details of the missing method.  The exception does not expose internal implementation to external parties.


Python grpc.aio + asyncio.run() gives RuntimeError: attached to a different loop

I'm getting this error whenever I try to run a program using the recommended way with asyncio.run():
Traceback (most recent call last):
  File "/tmp/testcase/testcase.py", line 42, in <module>
    asyncio.run(app.run())
  File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/tmp/testcase/testcase.py", line 38, in run
    print(await self.stub.GetInfo(ln.GetInfoRequest()))
  File "/home/x/venv/lib/python3.9/site-packages/grpc/aio/_call.py", line 271, in __await__
    response = yield from self._call_response
RuntimeError: Task <Task pending name='Task-1' coro=<App.run() running at /tmp/testcase/testcase.py:38> cb=[_run_until_complete_cb() at /usr/lib/python3.9/asyncio/base_events.py:184]> got Future <Task pending name='Task-2' coro=<UnaryUnaryCall._invoke() running at /home/x/venv/lib/python3.9/site-packages/grpc/aio/_call.py:509>> attached to a different loop

Testcase:
import asyncio
import codecs
import grpc
import grpc.aio
import lngrpc.lightning_pb2 as ln
import lngrpc.lightning_pb2_grpc as lnrpc

class App():
    def __init__(self):

        rpcserver = '<IP_ADDRESS>:10009'
        tlscertpath = 'tls.cert'

        cert = open(tlscertpath, 'rb').read()

        cert_creds = grpc.ssl_channel_credentials(cert)
        auth_creds = grpc.metadata_call_credentials(self._metadata_callback)
        combined_creds = grpc.composite_channel_credentials(cert_creds,
            auth_creds)

        self._channel = grpc.aio.secure_channel(rpcserver,
            combined_creds, [
                ('grpc.max_message_length', 50 * 1024 * 1024),
                ('grpc.max_receive_message_length', 50 * 1024 * 1024)
            ])
        self.stub = lnrpc.LightningStub(self._channel)

    def _metadata_callback(self, context, callback):
        pass

    async def run(self):
        print(await self.stub.GetInfo(ln.GetInfoRequest()))

app = App()

# this does not work:
asyncio.run(app.run())

# this works:
#loop = asyncio.get_event_loop()
#loop.run_until_complete(app.run())

Required proto files: lngrpc.zip
Tested with both Python 3.9.2 and 3.10.6 using:
googleapis-common-protos 1.58.0
grpcio                   1.51.3
grpcio-tools             1.51.3
pip                      23.0.1
protobuf                 4.22.0
setuptools               67.1.0
wheel                    0.38.4

Hi @jogc 👋
asyncio.run() creates a new event loop. During app instantiation channel creation makes another event loop
So, thats the reason of the error you've mentioned.

@FedirAlifirenko is correct. Please let us know if you have any further issues.

Maybe I'm missing something but for me this was not obvious at all that you are not allowed to use rpc.aio.secure_channel until after you have run asyncio.run, and are already in an async context. Maybe it should be documented?
Thank you


medibot fixes and refactoring

About the PR

made medibot code slightly less evil
emagged medibots no longer need you to have more than 0 damage to sleep you so they are much more useful
treatment to use was changed to use mob states instead of hardcoded damage values, so medibot will give crit mouse airloss med instead of waiting for mouse to get impossible 100 damage
replaced inaprov with dex+ to work on mobs that dont use 100 damage crit threshold, no real difference ingame since it would only give when crit (besides if you have only airloss damage, then it will heal it all)
fixed All done. being in chat and logs oop

Why / Balance
bye bye shitcode
Technical details

instead of checking TotalDamage to decide the treatment it checks Treatments dictionary with the patients mob state.
TotalDamage is now only used for thresholds to avoid unnecessary injections of trico
thresholds are no longer hardcoded, theyre stored in the component's treatments
trico requires you have >0 <50 damage so it isnt wasted
chloral hydrate has no thresholds so it doesnt require you have 1 damage before sleeping

Media
eepy

urist given lexorin then medibot gave dex+ and revived urist

gamer giving dex+ once crit

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes
replaced Medibot's fields with the required treatments dictionary
Changelog
:cl:

fix: Fixed emagged medibots not injecting healthy people with chloral hydrate.

medibots become useful???

slightly more useful

operation run failed tests until they pass is a go

operation sleepy time

replaced inaprov with dex+ to work on mobs that dont use 100 damage crit threshold, no real difference ingame since it would only give when crit (besides if you have only airloss damage, then it will heal it all)
Why does it matter whether they use 100 damage threshold? Wouldnt inaprov work the same?

Why does it matter whether they use 100 damage threshold? Wouldnt inaprov work the same?

some mobs can be dead at 100 damage, so the real solution, to make inaprov heal only in crit state

Inaprov is already based on mobstate instead of hardcoded damage pro

only pro here is deltanedas then :trollface:

pro i thought it was hardcoded 100 dmg :trollface:

lessgo


Add binary mode cloud event support

CloudEventMetadata is created when http request contains either ce- or ce_ prefixed headers
If outgoing message contains OutgoingCloudEvent Metadata, CE attributes are written in the http response headers

LGTM.
It would be great to have a few tests and a bit of documentation.

Sure, working on that right now ;)

Can you make sure that the formatter is executed, then squash your commits.

Can you make sure that the formatter is executed, then squash your commits.

Formatting, updating docs and squash performed

It seems like we have a few CI issues. As soon as we fix it, we can merge.

Twice in a row, it looks suspicious, especially:
2022-08-29 13:34:10,044 ERROR [io.qua.rea.htt.run.ReactiveHttpHandlerBean] (vert.x-eventloop-thread-3) No consumer subscribed for messages sent to Reactive Messaging HTTP endpoint on path: /celistener

Twice in a row, it looks suspicious, especially:
2022-08-29 13:34:10,044 ERROR [io.qua.rea.htt.run.ReactiveHttpHandlerBean] (vert.x-eventloop-thread-3) No consumer subscribed for messages sent to Reactive Messaging HTTP endpoint on path: /celistener

I cannot reproduce this on local environmment. But from this other error
2022-08-29 13:34:08,622 WARN  [io.sma.rea.mes.provider] (main) SRMSG00207: Some components are not connected to either downstream consumers or upstream producers:
	- IncomingConnector{channel:'celistener', attribute:'mp.messaging.incoming.celistener'} has no downstream
	- OutgoingConnector{channel:'ceresource', attribute:'mp.messaging.outgoing.ceresource'} has no upstream

It looks like it is ignoring application.properties.

I think the error is related with native. Defintelty something going on there.

@ricardozanini problme fixed (native mode wants classes to be under sources, not test)


BUG: pandas/pickle data corruption when changing values to a new data type

This involves incorrect pickling of Pandas Panel values. From what I've seen, it occurs when new values of a different data type are assigned to a Pandas Panel axis. Everything functions well until the panel is pickled. When the pickle is read the old values appear. In the example below floats are reassigned as objects, but when the pickle is loaded back up, it contains the old float values. Also noted:

does not happen with DataFrames
does not happen if the new values are of the same data type as the old ones (in that case id() of the Series is the same)
happens whenever data type is changed (in the snippet below float to str but happens in reverse too).

import pandas as pd
import numpy as np
import pickle

wp = pd.Panel(np.random.randn(2,3,2),
                        items=['Item1', 'Item2'],
                        major_axis=[1,2,3],
                        minor_axis=['float', 'string'])
print wp['Item1']

wp['Item1']['string'] = 'blue'
print wp['Item1']

with open('test_pickle', 'wb') as f:
  pickle.dump(wp, f)
wp2 = pickle.load( open('test_pickle', 'rb') )
print wp2['Item1']

UPDATE: It's not a pickle problem. For example, a transpose operation on the Panel also erases the new values and brings back the old ones.
wp=wp.transpose(2,0,1)
wp=wp.transpose(1,2,0)
print wp['Item1']

You are assigning to a copy. See the docs here as this is NOT a recommended syntax. Its possible to show the SettingWithCopyWarning`, so for that reason I'll mark this as an issue. You should always use .loc`` for an assignment.
Docs are here
In [15]: wp = pd.Panel(np.random.randn(2,3,2),
                        items=['Item1', 'Item2'],
                        major_axis=[1,2,3],
                        minor_axis=['float', 'string'])

In [16]: wp
Out[16]:
<class 'pandas.core.panel.Panel'>
Dimensions: 2 (items) x 3 (major_axis) x 2 (minor_axis)
Items axis: Item1 to Item2
Major_axis axis: 1 to 3
Minor_axis axis: float to string

In [17]: wp._data
Out[17]:
BlockManager
Items: Index([u'Item1', u'Item2'], dtype='object')
Axis 1: Int64Index([1, 2, 3], dtype='int64')
Axis 2: Index([u'float', u'string'], dtype='object')
FloatBlock: slice(0, 2, 1), 2 x 3 x 2, dtype: float64

In [18]: wp['Item1']['string'] = 'foo'

In [19]: wp._data
Out[19]:
BlockManager
Items: Index([u'Item1', u'Item2'], dtype='object')
Axis 1: Int64Index([1, 2, 3], dtype='int64')
Axis 2: Index([u'float', u'string'], dtype='object')
FloatBlock: slice(0, 2, 1), 2 x 3 x 2, dtype: float64

Thanks, very clear! I agree that a SettingWithCopy warning on Panel would be helpful.

closing as Panels are deprecated


Why did they remove the sonokai theme?

Some explanation?

Hi, could you rephrase your question?
If I understood, I'm afraid you're looking for the sonokai theme, but it hasn't been removed, just changed the name to "Colorful Sweets Park".


Fix DashCanvas rendering exception

DashCanvas's setLayout() can throw in a nasty way, bringing down the whole app with a An error occurred while rendering this Component. message. Seen in a client app.
If you have saved state that references a non-existent or omitted DashCanvasViewSpec, the setLayout() callback gets called before the component has rendered. The check for scrollbar visibility then throws because the ref has not yet been set.
Hoist P/R Checklist
Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to indicate they have been considered. If unclear if a step is relevant, please leave
unchecked and note in comments.

[x] Caught up with develop branch as of last change.
[x] Added CHANGELOG entry, or determined not required.
[x] Reviewed for breaking changes, added breaking-change label + CHANGELOG if so.
[x] Updated doc comments / prop-types, or determined not required.
[x] Reviewed and tested on Mobile, or determined not required.
[x] Created Toolbox branch / PR, or determined not required.

If your change is still a WIP, please use the "Create draft pull request" option in the split
button below to indicate it is not ready yet for a final review.

Pull request reviewers: when merging this P/R, please consider using a squash commit to
collapse multiple intermediate commits into a single commit representing the overall feature
change. This helps keep the commit log clean and easy to scan across releases. PRs containing a
single commit should be rebased when possible.

Sorry for this oversight.  Fix looks good!


Reuse the variable that has been declared

rd already declared. We don't need to fetch it from instruction again

Thank @eeeXun for contributing!


Allow to create a shared or multiplexed connection when the backend is ssh

Summary
If you have submodules and you use some kind of 2FA it can get very
annoying to enter X times your 2FA or press X times hardware tokens
Test plan
Used it with our internal repo where we have (too ?) many submodules and
I'm not asked to enter my 2FA multiple times

I screwed up the merge and merged into a branch so I need to have it re-approved :(


New Extensions: ChatGPT

Description
A quick way to interact with the OpenAI's ChatGPT using unofficial API with three commands available:

"Ask": A direct way to start a conversation with ChatGPT by asking a question
"Saved Answer": A collection of the user's saved question and its answer
"History": A collection of all the user's questions plus the answers

Screencast
https://user-images.githubusercontent.com/7030944/206860420-35f55ce1-f11a-4aea-9510-5cf96af5e956.mp4
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Closing due to OpenAI Limitations 😭

so close yet so far 😭

Any updates since OpenAI is now supporting the ChatGPT API?

Any updates since OpenAI is now supporting the ChatGPT API?

My new extension is already updated using the new ChatGPT API. You can check out my repository if you want to try (on dev env). I'll create a new PR once it's polished.


Fixing backward compatibility break of verify_any_packet_any_port

Fixing break of https://github.com/p4lang/ptf/pull/127

@antoninbas  Please help merge this fix in soon. Master top commit is broken right now for verify_any_packet_any_port


Failed to check licence

Describe the bug
OrbStakc is quitting unexpectedly with "failed to check licence" error.
Also this URL is unavailable now: https://api-license.orbstack.dev/
To Reproduce
No response
Expected behavior
No response
Diagnostic report (required)
OrbStack info:
Version: 0.16.0 (160000)
Commit: b92cc5239da462d9918d844fc5b04ec110a35e1a (v0.16.0)
System info:
macOS: 13.5 (22G74)
CPU: arm64, 8 cores
CPU model: Apple M2
Diagnostic report failed: failed to get presigned url: 520

Screenshots and additional context (optional)
No response

Fixed/mitigated. Server provider has been down for the past 1.5 hours.
Now prioritizing work on #206 to avoid similar issues in the future.


test/websocket_test.dart: diffBookDepth fails, maybe allBookTicker?

00:09 +19 -1: test/websocket_test.dart: allBookTicker [E]
  SocketException: Reading from a closed socket
  dart:_http                                WebSocket.connect
  package:web_socket_channel/io.dart 57:55  new IOWebSocketChannel.connect
  package:binance/src/websocket.dart 7:68   BinanceWebsocket._public
  package:binance/src/websocket.dart 76:21  BinanceWebsocket.allBookTicker
  test/websocket_test.dart 59:36            main.<fn>

  This test failed after it had already completed. Make sure to use [expectAsync]

This appears to have been introduced by https://github.com/lukepighetti/binance-dart/pull/2 which is on pub as 1.0.3
@ChunYoLin can you please investigate?

OK,let me try to fix it.

Hi @lukepighetti , can I call you Luke? :)
I think the problem might come from the binance server,
because sometimes it works sometimes it doesn't,
so I think maybe we can put a try catch block on IOWebSocketChannel.connect at _public?
I am not very familiar with dart asynchronous programming, so I might be wrong :(

Let's just put a @Skip('Flakey test, works in practice') decorator on it and call it good for now then

Test suppressed by https://github.com/lukepighetti/binance-dart/pull/5


Fixup dumps-destination -> dump-directory section header in help link

Pull Request
Related issue
See https://github.com/meilisearch/product/discussions/560#discussioncomment-4323938
What does this PR do?

change link in help message to the future new section header #dump-directory

Yes, that was my question too (sorry should have repeated it here).
I don't know what the process is for changing documentation-related links that appear in the meilisearch repo, usually

Hum, you are right, the documentation is using the config.toml on main
So we need to change this once v1 is released on the documentation side

I've added "merge this PR once documentation for v1 is deployed", be sure I will not forget it 😉

Putting this as a draft so we don't merge it by error

Rebased on main to integrate the other changes to the config file (removal of size options, merge of snapshot scheduling options, removal of --disable-auto-batching)

bors merge

bors merge-

Waiting for docs deployment before 😅 my bad!

bors merge


requireSpaceAfterObjectKeys not working as expected

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/21977970-requirespaceafterobjectkeys-not-working-as-expected?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).

Thanks for reporting @ShashankaNataraj. Which jscs version are you using?

JSCS version: 1.13.1
"grunt-jscs": "^1.8.0"
I get the same error on both. Im using webstorm which integrates JSCS, I get the error within the IDE as well as when using grunt-jscs from the command line.

Same

Unless I'm mistaken isn't this working as intended? Do you need the opposite rule disallowSpaceAfterObjectKeys?
http://jscs.info/rule/requireSpaceAfterObjectKeys.html
// Valid
var x = {a : 1};

// Invalid
var x = {a: 1};

@hzoo I see your point. I was expecting pkg:  to be valid since there is already a space after :. Now I RTFM'd and saw my expectation was wrong. Closing this issue, thanks!

Ah yeah http://jscs.info/rule/requireSpaceAfterObjectKeys.html

Oops put the same thing - it's http://jscs.info/rule/rule/requireSpaceBeforeObjectValues.html

@hzoo Thanks a ton!


Column sorting changed to default automatically after row added

I've been using ui-grid RC.18 without any issues, but just noticed that when I change the grid's sorting to something other than the default that I specify via the grid options and then add a row to the ui-grid, the default sort is applied and my customized sorting is removed. This can be confusing to users as it's not their expected behavior.
Here's an example: http://jsfiddle.net/7ony74h5/1/
I apologize for copying and pasting the RC.18 minified release into the example... I couldn't find a CDN that hosted it, so I just copied and pasted it in.  Basically, just click on 'Gender' or 'Company' to change the sorting to something other than the default, and then click on 'Add Row' to see the behavior that I am referencing.
I did notice that the unstable release which is used on ui-grid.info does not have the same issue, but I cannot change to an unstable release.  Is there a known work around for this unexpected column sorting behavior?
Thanks in advance,
Mike

Would upgrading to RC.20 resolve the issue?

Thanks, Paul! Upgrading to RC.20 did the trick.  I hadn't upgraded because I didn't see ui.grid.paging which we are also using, but just noticed that it has since changed to ui.grid.pagination.  Thanks again!


Auto Replace does not work (v2.5.1 on rke)

What kind of request is this (question/bug/enhancement/feature request): bug
Steps to reproduce (least amount of steps as possible):

install k8s by rke 1.2.1 on one node
install rancher 2.5.1 by helm
create cluster with hetzner node driver
add pool with auto replace node after 1-10 minutes
go to hetzner console and stop on node from pool (with auto replace)

Result:
Rancher see that kubelet stop, but nothing happend with node in next 30+ minutes
Other details that may be helpful:
I have only one node with k8s for rancher
and test cluster with one node for etcd and control panel, and 2 nodes (node pool with auto-replace)
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.5.1
Installation option (single install/HA): HA with one node k8s

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): hetzner docker-driver
Machine type (cloud/VM/metal) and specifications (CPU/memory): CX21
Kubernetes version (use kubectl version):

v1.19.3

Docker version (use docker version):

19.3.13

On 2.4.8
Deploy a DO cluster node driver on a single node rancher install.
Worker node's Auto Replace value is 5 minutes.
When the cluster comes up Active, power off the worker nod ein the cluster
the node will be seen as Unavailable
After 5 minutes, the node will be removed and another worker node is seen in Provisioning state.
On 2.5.1

Deploy a DO cluster node driver on a single node rancher install.
Worker node's Auto Replace value is 5 minutes.
When the cluster comes up Active, power off the worker node in the cluster
the node will be seen as Unavailable
A new node is not provisioned after 5 minutes.

Worker node's Auto Replace value is 5 minutes.
When the cluster comes up Active, power off the worker node in the cluster
the node will be seen as Unavailable
A new node is provisioned after 5 minutes.
Tested this using k8s 1.19 and 1.18


Uprgrade CodeQL to v2 #94

See: https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/

For the future: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot


Inspect uploaded plain Sqlite3 file for indexes

Unique and others
pragma index_info, etc
How deal with clashing naming convention?

No. Delete them.


Unable to delete rebloom key

I am building a daily bloom filter where I make a new bloom-filter and remove the old filter via scheduler, but the delete command doesn't seem to be able to remove key.
Eg:
Client client1 = new Client("<IP_ADDRESS>", 6379);
String[] bloomFilterKeyList = {"a", "b"};
client1.addMulti("testBloom",  bloomFilterKeyList);
client1.delete("testBloom");
Even after running the command testBloom key/filter still doesn't get deleted.

hi, I have test delete method of Client.
It's OK.
you can use createFilter to test that you whether delete successfully.
If you did not delete, this will create failed, then will create successfully.

Delete not working for me still, I wrote test case for checking delete and it failed.
@Test

public void testDelete() {

   cl.createFilter("myBloomDelete", 100, 0.001);

   assertTrue(cl.add("myBloomDelete", "val1"));

   assertTrue(cl.exists("myBloomDelete", "val1"));

   cl.delete("myBloomDelete");

   assertFalse(cl.exists("myBloomDelete", "val1"));

}
}
This is the output I get

junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:55)
at junit.framework.Assert.assertTrue(Assert.java:22)
at junit.framework.Assert.assertFalse(Assert.java:39)
at junit.framework.Assert.assertFalse(Assert.java:47)
at junit.framework.TestCase.assertFalse(TestCase.java:219)
at io.rebloom.client.ClientTest.testDelete(ClientTest.java:146)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

@joyang1 Delete not working for me still, I wrote test case for checking delete and it failed.
@test

public void testDelete() {

   cl.createFilter("myBloomDelete", 100, 0.001);

   assertTrue(cl.add("myBloomDelete", "val1"));

   assertTrue(cl.exists("myBloomDelete", "val1"));

   cl.delete("myBloomDelete");

   assertFalse(cl.exists("myBloomDelete", "val1"));

}
}
This is the output I get

junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:55)
at junit.framework.Assert.assertTrue(Assert.java:22)
at junit.framework.Assert.assertFalse(Assert.java:39)
at junit.framework.Assert.assertFalse(Assert.java:47)
at junit.framework.TestCase.assertFalse(TestCase.java:219)
at io.rebloom.client.ClientTest.testDelete(ClientTest.java:146)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

I have the same problem

I have the same problem, any ideas?

maybe there is something wrong with the method "client.delete", I changed it like this:
/**
   * Remove the filter
   * @param name
   */
  public void delete(String name) {
//    _conn().getClient().del(name);
    try (Jedis conn = _conn()) {
      conn.del(name);
    }
  }

and it worked, perhaps I will see it why later

I will fix this issue.
And then provide a new release version.
Thanks.

Fixed the issue here: https://github.com/Nitesh7/JReBloom?organization=Nitesh7&organization=Nitesh7

this  issue is already solved.

this issue is already solved. You can use 1.2.0 version.
Thanks @joyang1


Auction timer missing from artwork pages

Previously it showed up here:

cc @katarinabatina

I'm not sure if this is a bug. We intentionally removed the "Bidding Closes" timer for auctions that are live (if they haven't opened for live bidding yet, it should say "Live Bidding Opens In..."). For these auctions we have no knowledge of when they end, so we can't have a timer once they are open for live bidding.

@sweir27 can we bring the timer back and just change the language then?

What should the time be then? Like "Live Auction Open For ..."? We just don't have end times so there won't be a countdown to anything.

It looks like it may be broken in the before-live-opens state, so we should make sure to fix it there, just not sure what to do in the other case

@sweir27 for when the live auction opens, I agree, we should get rid of the timer and instead change the EXPLORE AUCTION button, to JOIN LIVE AUCTION.


Where can I find the invoice totals lines?

When I use the ZUGFeRDInvoiceImporter, I get the invoice object. Unfortunately, I cannot find the totals lines with the VAT information there. Where can I find this out? I can of course run through the items and create the totals line myself, but the XML already contains this information and it is also accessed in Zugferd_1p0_c1p0_s1p0.xslt:
<tbody>
	<xsl:for-each select="rsm:SpecifiedSupplyChainTradeTransaction">
		<xsl:for-each select="ram:ApplicableSupplyChainTradeSettlement">
			<xsl:for-each select="ram:ApplicableTradeTax">

But I cannot find this value in the Invoice object. It would be an advantage to be able to read the value directly. This would prevent possible rounding differences.

As mentioned on https://www.mustangproject.org/invoice-class/?lang=de#reading in the last line, you can use
TransactionCalculator tc=new TransactionCalculator(invoice);
assertEquals(new BigDecimal("571.04"),tc.getTotalGross());

In the reader that's left out on purpose because as you mention, it's redundant.
And as regards differences: There may be none. If the file validates then at least the line total/tax/grand total amounts comply to the calculation rules as defined in EN16931-2 (available free of charge, even before Malamud, thanks to Stefan Engel-Flechsig :-) )

But I can't really use the TransactionCalculator like this. It only returns the total amount. But I need the VAT values. There can be several invoice lines in an invoice. For example, the total of all products with 7% VAT and the total of all products with 19% VAT.
The TransactionCalculator only returns the total of all values, and that without VAT.
I also have invoices here that only show the net price and the quantity. grossPrice is null.
Rounding differences will definitely occur here.

I have a rounding difference in the very first calculation. In my opinion, it would make sense to interpret the totals line provided by the creator.
Article 1: Quantity 1, unit price 1079.64
Article 2: Quantity 3, unit price 288.00
Article 3: Quantity 3, unit price 70.00
VAT 19%
Total for me: 2562.84
Total in the totals line from the creator: 2,562.83

net total seems to be 2153,64 of which 19% rounded to 2 digits are 409,19, the 2562,83 are correct, please refer to EN16931-1 in particular sample 1.


[RFC]: add reverse-search support in the REPL

Description
This RFC proposes adding reverse search support in the REPL. The basic idea is to enable entering a search mode in order to more efficiently cycle through previous commands. Currently, in order to run a previous command, one must hit the UP arrow key until finding the command. This RFC proposes enabling a mode where you can filter history to more quickly find a matching command.
This behavior is currently enabled in the built-in Node.js REPL and matches that found in ZSH.
For references better explaining the expected behavior, see below.
Related Issues

General search API: https://github.com/stdlib-js/stdlib/issues/2059

This RFC is related, but not the same. #2059 concerns searching for functionality and documentation, while this RFC concerns efficient previous command lookup.

Questions

How would multi-line commands be handled?

Other

Node.js: https://nodejs.org/api/repl.html#reverse-i-search

https://github.com/nodejs/node/pull/24335
https://github.com/nodejs/node/pull/31006

Julia: https://docs.julialang.org/en/v1/stdlib/REPL/index.html#Search-modes-1

Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

@kgryte I would like to work on this.


Increasing Version to 3.12.1

When installing version 3.7.1-02 the following messaging is displayed at the head of the Dashboard:

Increasing version to 3.12.1; as part of the 3.8.0 release /siesta has been deprecated (NEXUS-14940). Therefore the additional scripts which execute under the provision script were affected. I have amended this slightly to correct the API call.
I've tested that the scripts are still able to successfully execute and configure components like LDAP etc.
Thank you, Lee

Further critical features which are present in this version which are not present in the current version is:

Manual Uploading Feature through WebUI
POST HTTP Request which will allow uploading through command line using cURL.

Hi @lee442 firstly, thank you for the PR! Since this is a product upgrade, there are a few test cases which would be great if we could cover and attach relevant screenshots:
[] Image building successfully
[] Logs of container starting up with existing compose file configuration with the image tag modified
[] Evidence of LDAP integration working
[] Is all the functionality of the existing provisioning scripts retained?
[] Also, how do we upgrade a running Nexus 3.7.1? Is it a matter of replacing the container with the new 3.12.1 or do we need a separate upgrade path?
Hope this sounds good!
Thanks again @lee442

@dsingh07 Leave it will me to gather the evidence and I'll get back to you.
Thanks!

Hi @dsingh07
Please see my compiled evidence:
Image building successfully
DockerImageBuildOutput.txt
Logs of container starting up with existing compose file configuration with the image tag modified
Only Change to Docker Compose file is:
image:  adop-nexus:3.12
#image:  accenture/adop-nexus:0.2.2
Container Starting Log:
ContainerLogStarting.txt
Docker Compose Up Command Output:
DockerComposeUpOutput.txt
Evidence of LDAP integration working
LDAP Settings Automatically Enters when the Container is provisioned

Stock Admin Account unable to Login

Is all the functionality of the existing provisioning scripts retained?
Manual Provisioning Script Execution
ProvisionScriptOutput.txt
Also, how do we upgrade a running Nexus 3.7.1? Is it a matter of replacing the container with the new 3.12.1 or do we need a separate upgrade path?
This should just be a case of replacing the 3.7.1 container with the new version.
3.7.1 Repository Contents

After Switching Containers to 3.12.1

Building a Test Application with Version 3.7.1:
3.7ConfigTestApp.txt
Repeat Test after switching version:
3.12ConfigTestApp.txt
I hope address all of the points requested.
Thanks Lee

Thanks a lot @lee442 this is really great stuff!
Thank you, Lee

Release has now been created: https://github.com/Accenture/adop-nexus/releases/tag/0.2.3

Image is now available on Dockerhub too: https://hub.docker.com/r/accenture/adop-nexus/builds/bp48wggwmkrwlqexxrghgdz/

Hi @lee442 can you confirm this new release works for you?
If so, can you make an accompanying PR to the main compose file to update the image tag?

@dsingh07 - I will prepare the PR on the main repository and it should be done for Monday morning.
Thank you, Lee

@dsingh07 - PR has been submitted to the Main Repository to increase the image tag.
Thanks!


Not compiling for Windws

Hi guys,
I'm trying to compile your 3.2-dev for Windows with enable-quic and when running nmake I get this:
ssl\quic\quic_rx_depack.c(241): error C2065: 'SHUT_WR': undeclared identifier
ssl\quic\quic_rx_depack.c(267): error C2065: 'SHUT_RD': undeclared identifier
And it stops building there, can you fix this to start testing again?
Thanks.

Ping @levitte

I wonder why we have not seen this in our CI builds?

Fix is in https://github.com/openssl/openssl/pull/19345 already.

I wonder why we have not seen this in our CI builds?

Because we did not enable-quic for them.

Thanks much.


pscale auth login fails on a new machine

I'm setting up on my laptop. I installed pscale via brew. Then, running pscale auth login does the oauth dance with the browser fine, but then fails with the error:
~ pscale auth login

Confirmation Code:<code>

If something goes wrong, copy and paste this URL into your browser: https://auth.planetscale.com/oauth/device?user_code=<coid>

Successfully logged in.
Error: open /Users/threepointone/.config/planetscale/pscale.yml: no such file or directory

This happened multiple times. I fixed it by creating the /Users/threepointone/.config/planetscale folder, so I suspect the bug is that the cli is trying to create the pscale.yml file without first checking whether the directory exists.

I'm hitting the same issue.   Thank you for the workaround

I have same issue too.
macOS Ventura-13.0.1

I don't think this issue must be closed, I'm still facing this problem. Used the workaround and created a folder under .config, and then it worked. @fooforge . I'm on WSL2


removing the 'add' button in typescript from the grid

How can I remove the add button in the grid.ts?

Reply to this email directly, view it on GitHub
https://github.com/volkanceylan/Serenity/issues/859#issuecomment-230094752,
or mute the thread
https://github.com/notifications/unsubscribe/AK6u3SDKyoeGtnJSN2N-PALgVSv0c0oEks5qRjudgaJpZM4JDpJD
.

I wasn't sure how to do it with typescript, I followed the guide but it
said pending types upgrade. But thank you for the above!
On Sun, Jul 3, 2016, 07:22 Volkan Ceylan<EMAIL_ADDRESS>wrote:

This question asked many times, it also exists in guide, for typescript
you should just camel case method name and use native arrays
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/volkanceylan/Serenity/issues/859#issuecomment-230148350,
or mute the thread
https://github.com/notifications/unsubscribe/AK6u3bVbA4-v-n5CZdDKVibwQ5qcydgqks5qR5togaJpZM4JDpJD
.


How to handle valid Zip Code that becomes invalid to Locast.org?

I had a situation where I had been using a valid Los Angeles Zip Code (90009), then at some point it seems Locast.org didn't see that as a valid Zip Code, returning this:
'204 No Content' for https://api.locastnet.org/api/watch/dma/zip/90009
So upon reboot of my machine, locast2tuner failed to start up correctly. I even have it running in a Docker container with --restart always so of course it just kept stopping and trying to restart.
I realize we can't control what Locast.org does, but one thing that could be cool is to have an option for "backup" Zip codes. Not the same as multiple zip codes multiplexed. But like pairs. So I could say use 90009 as my primary, but if locast2tuner fails for some reason, try again with my secondary or backup Zip of 90210, rather than bomb out. Just a thought.
I also wondered if you could point me in the right direction on how to be alerted that there is a problem, now that I am using Docker. I know in a previous thread some monitoring tools were mentioned, but was looking for the most simple way to alert me that Docker is having some sort of issue with the locast2tuner app or container.
Thanks,
Chris

Interesting use case.. We could do the pairs, or provide an array of zip codes. However, a HTTP 204 doesn't necessarily mean that the zip code became invalid. Another way would be to define zip code ranges and trying to find a correct one.

I guess “invalid” was a poor choice of words, but for whatever reason Locast.org returned something that caused locast2tuner to quit.
I like the Zip code range idea.
Not sure if Locast.org provides a list of cities and/or associated zip codes that is supports through their API, but that could also be a cool option: locast2tuner queries Locast.org periodically and for people who only care about a particular city/market, but don’t care about specific zip codes could let locast2tuner decide which zip to use. I know this complicates thing, but thought I would throw it out there.
Right now the way I make sure that my wife never misses Jeopardy?
I run multiple instances of locast2tuner with different zip codes in Docker containers, and then multiple instances of Plex pointing to the different containers. So far it has saved me a couple times, but is also a more complicated setup and a little more cumbersome to manage and update.

When I started implementing, l looked for exactly that. Locast doesn't expose their zipcode mapping unfortunately. The best interface would really be to just tell locast2tuner for what city/dma you'd like to run it, but that doesn't seem possible right now..

@sumocomputers just to be clear, did the error you posted show at runtime? Because this function should only be called ones at startup where locast2tuner maps a zipcode to geo coordinates.

Yes I have observed this happening only at runtime, and when using a zip code like 90009, locast2tuner will exit/quit.

do you happen to have the log?

Sure, it is easy to reproduce. I ran this with verbose = 3 Let me know if I need to do something to get more detailed logs.
Jun 11 12:11:02.942 INFO locast2tuner 0.1.42 on Darwin 20.5.0 starting..
Jun 11 12:11:02.943 INFO UUID: redacted
Jun 11 12:11:02.943 INFO Logging in with redacted
Jun 11 12:11:02.946 DEBG starting new connection: https://api.locastnet.org/
Jun 11 12:11:02.978 TRCE registering event source with poller: token=Token(1), interests=READABLE | WRITABLE
Jun 11 12:11:03.413 TRCE signal: Want
Jun 11 12:11:03.413 TRCE signal found waiting giver, notifying
Jun 11 12:11:03.413 TRCE poll_want: taker wants!
Jun 11 12:11:03.550 TRCE signal: Want
Jun 11 12:11:03.550 TRCE signal: Want
Jun 11 12:11:03.550 DEBG response '200 OK' for https://api.locastnet.org/api/user/login
Jun 11 12:11:03.550 INFO Login succeeded!
Jun 11 12:11:03.550 DEBG starting new connection: https://api.locastnet.org/
Jun 11 12:11:03.550 TRCE deregistering event source from poller
Jun 11 12:11:03.551 TRCE signal: Closed
Jun 11 12:11:03.552 TRCE registering event source with poller: token=Token(redacted), interests=READABLE | WRITABLE
Jun 11 12:11:03.949 TRCE signal: Want
Jun 11 12:11:03.949 TRCE signal found waiting giver, notifying
Jun 11 12:11:03.949 TRCE poll_want: taker wants!
Jun 11 12:11:04.062 TRCE signal: Want
Jun 11 12:11:04.062 TRCE signal: Want
Jun 11 12:11:04.062 DEBG response '200 OK' for https://api.locastnet.org/api/user/me
Jun 11 12:11:04.063 DEBG starting new connection: https://api.locastnet.org/
Jun 11 12:11:04.063 TRCE deregistering event source from poller
Jun 11 12:11:04.063 TRCE signal: Closed
Jun 11 12:11:04.064 TRCE registering event source with poller: token=Token(redacted), interests=READABLE | WRITABLE
Jun 11 12:11:04.478 TRCE signal: Want
Jun 11 12:11:04.478 TRCE signal found waiting giver, notifying
Jun 11 12:11:04.478 TRCE poll_want: taker wants!
Jun 11 12:11:04.573 DEBG response '200 OK' for https://api.locastnet.org/api/dma
Jun 11 12:11:04.573 TRCE signal: Want
Jun 11 12:11:04.573 TRCE signal found waiting giver, notifying
Jun 11 12:11:04.573 TRCE signal: Want
Jun 11 12:11:04.573 TRCE poll_want: taker wants!
Jun 11 12:11:04.573 TRCE deregistering event source from poller
Jun 11 12:11:04.573 TRCE signal: Closed
Jun 11 12:11:04.573 INFO Using cached FCC facilities at /Users/mediamacmini/.locast2tuner/facilities
Jun 11 12:11:04.583 DEBG starting new connection: https://api.locastnet.org/
Jun 11 12:11:04.584 TRCE registering event source with poller: token=Token(redacted), interests=READABLE | WRITABLE
Jun 11 12:11:05.025 TRCE signal: Want
Jun 11 12:11:05.025 TRCE signal found waiting giver, notifying
Jun 11 12:11:05.025 TRCE poll_want: taker wants!
Jun 11 12:11:05.131 TRCE signal: Want
Jun 11 12:11:05.131 thread 'mainTRCE' panicked at 'called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Decode, source: Error("EOF while parsing a value", line: 1, column: 0) } ', signal: Wantsrc/service/mod.rs:
362:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Jun 11 12:11:05.131 DEBG response '204 No Content' for https://api.locastnet.org/api/watch/dma/zip/90009
Abort trap: 6

Thanks for this! I was wondering what the behavior was when locast
invalidated the zip code. Did it stop streaming?
On Fri, Jun 11, 2021, 14:14 sumocomputers @.***> wrote:

Sure, it is easy to reproduce. I ran this with verbose = 3 Let me know if
I need to do something to get more detailed logs.
Jun 11 12:11:02.942 INFO locast2tuner 0.1.42 on Darwin 20.5.0 starting..
Jun 11 12:11:02.943 INFO UUID: redacted
Jun 11 12:11:02.943 INFO Logging in with redacted
Jun 11 12:11:02.946 DEBG starting new connection: https://api.locastnet.org/
Jun 11 12:11:02.978 TRCE registering event source with poller: token=Token(1), interests=READABLE | WRITABLE
Jun 11 12:11:03.413 TRCE signal: Want
Jun 11 12:11:03.413 TRCE signal found waiting giver, notifying
Jun 11 12:11:03.413 TRCE poll_want: taker wants!
Jun 11 12:11:03.550 TRCE signal: Want
Jun 11 12:11:03.550 TRCE signal: Want
Jun 11 12:11:03.550 DEBG response '200 OK' for https://api.locastnet.org/api/user/login
Jun 11 12:11:03.550 INFO Login succeeded!
Jun 11 12:11:03.550 DEBG starting new connection: https://api.locastnet.org/
Jun 11 12:11:03.550 TRCE deregistering event source from poller
Jun 11 12:11:03.551 TRCE signal: Closed
Jun 11 12:11:03.552 TRCE registering event source with poller: token=Token(redacted), interests=READABLE | WRITABLE
Jun 11 12:11:03.949 TRCE signal: Want
Jun 11 12:11:03.949 TRCE signal found waiting giver, notifying
Jun 11 12:11:03.949 TRCE poll_want: taker wants!
Jun 11 12:11:04.062 TRCE signal: Want
Jun 11 12:11:04.062 TRCE signal: Want
Jun 11 12:11:04.062 DEBG response '200 OK' for https://api.locastnet.org/api/user/me
Jun 11 12:11:04.063 DEBG starting new connection: https://api.locastnet.org/
Jun 11 12:11:04.063 TRCE deregistering event source from poller
Jun 11 12:11:04.063 TRCE signal: Closed
Jun 11 12:11:04.064 TRCE registering event source with poller: token=Token(redacted), interests=READABLE | WRITABLE
Jun 11 12:11:04.478 TRCE signal: Want
Jun 11 12:11:04.478 TRCE signal found waiting giver, notifying
Jun 11 12:11:04.478 TRCE poll_want: taker wants!
Jun 11 12:11:04.573 DEBG response '200 OK' for https://api.locastnet.org/api/dma
Jun 11 12:11:04.573 TRCE signal: Want
Jun 11 12:11:04.573 TRCE signal found waiting giver, notifying
Jun 11 12:11:04.573 TRCE signal: Want
Jun 11 12:11:04.573 TRCE poll_want: taker wants!
Jun 11 12:11:04.573 TRCE deregistering event source from poller
Jun 11 12:11:04.573 TRCE signal: Closed
Jun 11 12:11:04.573 INFO Using cached FCC facilities at /Users/mediamacmini/.locast2tuner/facilities
Jun 11 12:11:04.583 DEBG starting new connection: https://api.locastnet.org/
Jun 11 12:11:04.584 TRCE registering event source with poller: token=Token(redacted), interests=READABLE | WRITABLE
Jun 11 12:11:05.025 TRCE signal: Want
Jun 11 12:11:05.025 TRCE signal found waiting giver, notifying
Jun 11 12:11:05.025 TRCE poll_want: taker wants!
Jun 11 12:11:05.131 TRCE signal: Want
Jun 11 12:11:05.131 thread 'mainTRCE' panicked at 'called Result::unwrap() on an Err value: reqwest::Error { kind: Decode, source: Error("EOF while parsing a value", line: 1, column: 0) } ', signal: Wantsrc/service/mod.rs:
362:10
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Jun 11 12:11:05.131 DEBG response '204 No Content' for https://api.locastnet.org/api/watch/dma/zip/90009
Abort trap: 6
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/wouterdebie/locast2tuner/issues/62#issuecomment-859787478,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABKABQSNL4FAK2QLN34ITTTSJOAJANCNFSM46POYPRQ
.

All I know I had to reboot my Mac mini, and it didn’t record anything that night.
So after digging in, I found it was the zip code issue.
So not sure what happens on the client side, like Plex.

90009 is a Post Office at Los Angeles International Airport.  It appears to be only valid for PO Boxes.  So it doesn't have a geographic delivery area.  Not sure how Locast uses ZIP codes but just pick another.  HTTP 204 is No Data - valid but nothing returned.

I tend to use 90210 for LA :)

90009 is a Post Office at Los Angeles International Airport. It appears to be only valid for PO Boxes. So it doesn't have a geographic delivery area. Not sure how Locast uses ZIP codes but just pick another. HTTP 204 is No Data - valid but nothing returned.

My point was that 90009 was a working zip code at one point (as far as Locast was concerned), but then that changed, and that caused locast2tuner to quit. There is no reason why Locast might return a 204 for another zip code in the future, and @wouterdebie has already marked this issue for "enhancement".
For now I have backups in the form of multiple Docker containers running 3 different zip codes, as well as 2 Plex instances, so now the chances of missing Jeopardy are greatly reduced...

Was wondering if you could have an option for the DMA #'s instead of zipcode since those don't change?

Unfortunately it's not an option, since eventually you need to supply the
latitude and longitude of your location to locast, which in turn we get
from a zip code. There's nothing that returns a lat/long from a dma.
On Wed, Aug 4, 2021, 21:17 extrapc @.***> wrote:

Was wondering if you could have an option for the DMA #'s instead of
zipcode since those don't change?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/wouterdebie/locast2tuner/issues/62#issuecomment-893110591,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABKABQ5MOC3CLLK6T4SOQDT3HYB7ANCNFSM46POYPRQ
.
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&utm_campaign=notification-email
.

Alright, I think I've fixed this issue in 0.3.0. I've added override_cities, which takes a list of cities. What it does is that it uses https://github.com/wouterdebie/zip_codes_plus to get a list of "standard" zip codes (no PO box, etc) for a city and then picks the first valid one (where the locast response isn't a 204 as in the first post of this thread and the zip code is active).
I've also added random_zipcode so locast2tuner will pick a random valid zip code from the list.


Move Pusher injection into instance-initializer

Clear up deprecation warnings in Ember 1.12+ (https://github.com/ivanvotti/ember-cli-pusher/issues/8)
I was confused by the assigning of ENV['APP']['PUSHER_OPTS'] to a variable named promise and running an assert inside an actual Promise so I yanked it out.

Ping

You might want to use ember-pusher directly. It's already an Ember CLI addon.
https://github.com/jamiebikies/ember-pusher/pull/26


Wired scrollbar click behaviour

Windows Terminal version
1.20.11781.0
Windows build number
10.0.22631.4317
Other Software
No response
Steps to reproduce
Typically when mouse click the scrollbar(not the thumb), hold the mouse button down. The scrollbar will:
page up, , page up, page up, page up, page up,...
Then thumb will stop at the mouse pointer position.
But in the current terminal. There are 3 random behavior.

Page up/down once and stop.
Thumb not stop. And reach the top/bottom position.
Thumb move across the mouse pointer position.

Expected Behavior
Not random.
Actual Behavior
see above.

https://github.com/user-attachments/assets/12989340-50c2-4ff1-a14c-82d142296614

Well Maybe please clarify more about your issue

I'm getting a really similar behavior with the WinUI 3 Gallery app. I'm guessing this is just a WinUI bug that needs to be filed over on https://github.com/microsoft/microsoft-ui-xaml

Filed https://github.com/microsoft/microsoft-ui-xaml/issues/10122


Flow behaves additive

When flow is enabled, specially for sequences where frames are similar (slow or no camera movement, partial/slow pixel movement) every frame becomes additive. Is this the normal behavior ?
When flow is turned off, everything seems okay over a long period of time (but there is a lot of jitter for sure) but when flow is on it becomes brighter and brighter every frame unless the changes between frames are too clear.

this is a problem of how openCV handles flow - if you find a fix please send a pull request


hafeez data add

Good job @hafeez25
Congrats 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow this steps.

Star this repository. ⭐

SignIn / SignUp in ClueLess Website .

Go to profile section from the top right hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.

That’s it. Follow the leaderboard !
And don’t forget to share your achievement with your friends.


Inconsistent metrics from storage.googleapis.com

Hello,
I encounter some issue to grab the storage metrics. Some time I've got all the metrics, some time just some of them and some times none.
I've started it with just storage and verbose output
STACKDRIVER_EXPORTER_MONITORING_METRICS_TYPE_PREFIXES=storage.googleapis.com/

And observed the following logs:
testsd_1  | time="2018-11-15T08:27:11Z" level=debug msg="Listing Google Stackdriver Monitoring metric descriptors starting with `storage.googleapis.com/`..." source="monitoring_collector.go:213"
testsd_1  | time="2018-11-15T08:27:11Z" level=debug msg="Retrieving Google Stackdriver Monitoring metrics for descriptor `storage.googleapis.com/network/received_bytes_count`..." source="monitoring_collector.go:169"
testsd_1  | time="2018-11-15T08:27:11Z" level=debug msg="Retrieving Google Stackdriver Monitoring metrics for descriptor `storage.googleapis.com/network/sent_bytes_count`..." source="monitoring_collector.go:169"
testsd_1  | time="2018-11-15T08:27:11Z" level=debug msg="Retrieving Google Stackdriver Monitoring metrics for descriptor `storage.googleapis.com/storage/object_count`..." source="monitoring_collector.go:169"
testsd_1  | time="2018-11-15T08:27:11Z" level=debug msg="Retrieving Google Stackdriver Monitoring metrics for descriptor `storage.googleapis.com/api/request_count`..." source="monitoring_collector.go:169"
testsd_1  | time="2018-11-15T08:27:11Z" level=debug msg="Retrieving Google Stackdriver Monitoring metrics for descriptor `storage.googleapis.com/storage/total_byte_seconds`..." source="monitoring_collector.go:169"
testsd_1  | time="2018-11-15T08:27:11Z" level=debug msg="Retrieving Google Stackdriver Monitoring metrics for descriptor `storage.googleapis.com/storage/total_bytes`..." source="monitoring_collector.go:169"

But only one metric is returned
# curl -vs localhost:9256/metrics 2>&1 | grep gcs_bucket | sed 's/{.*/{.../'
# HELP stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count Total number of objects per bucket, grouped by storage class. Values are measured once per day.
# TYPE stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count gauge
stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count{...
stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count{...
stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count{...
stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count{...

Or two
# curl -vs localhost:9256/metrics 2>&1 | grep gcs_bucket | sed 's/{.*/{.../'
# HELP stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count Total number of objects per bucket, grouped by storage class. Values are measured once per day.
# TYPE stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count gauge
stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count{...
stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count{...
stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count{...
stackdriver_gcs_bucket_storage_googleapis_com_storage_object_count{...
# HELP stackdriver_gcs_bucket_storage_googleapis_com_storage_total_byte_seconds Total daily storage in byte*seconds used by the bucket, grouped by storage class. * Connection #0 to host localhost left intact
# TYPE stackdriver_gcs_bucket_storage_googleapis_com_storage_total_byte_seconds gauge
stackdriver_gcs_bucket_storage_googleapis_com_storage_total_byte_seconds{...
stackdriver_gcs_bucket_storage_googleapis_com_storage_total_byte_seconds{...
stackdriver_gcs_bucket_storage_googleapis_com_storage_total_byte_seconds{...
stackdriver_gcs_bucket_storage_googleapis_com_storage_total_byte_seconds{...

Any idea why all metrics (like stackdriver_gcs_bucket_storage_googleapis_com_storage_total_bytes) are not returned each time ?
Thanks.

We are seeing this too with stackdriver_gcs_bucket_storage_googleapis_com_storage_total_bytes being returned inconsistently. It appears every 5 minutes then disappears again.

Could this be some sort of API limit and the exporter is just not caching the results?

Ahh straight from https://cloud.google.com/monitoring/api/metrics_gcp#gcp-storage

Total size of all objects in the bucket, grouped by storage class. Values are measured once per day. Sampled every 300 seconds. After sampling, data is not visible for up to 600 seconds.

So we need to cache this result as it will not be available for up to 10 minutes.

Hi @frodenas ,
I'm also having the same issue on another metric.
Found this documentation regarding the "not visible for up" https://cloud.google.com/monitoring/api/metrics#metadata
My interpretation of the "Sampled every 300 seconds." is that every 300 seconds google goes into the bucket and counts the number of objects. It then sends the count to some storage. The "After sampling, data is not visible for up to 600 seconds." is the time the count takes to be consistent on the storage. Only after is being consistent can we read it using the api.
This has a big impact on metric collection, as to get a non empty value, we should be able to configure some delay on the metric date time.
i.g. for object count, when it stackdriver exporter collection runs, it should fetch the metric value for at least 600 seconds ago, if not it will get empty values as is not yet visible because the 600 seconds haven't passed yet.
Regards

Stackdriver exporter already support the option to set an offset on the metrics date.
See: https://github.com/frodenas/stackdriver_exporter/blob/master/collectors/monitoring_collector.go#L179
Tracing back the code, it can be configure at cli with the switch: --monitoring.metrics-offset=610s


Truncate HGVS view to 30 chars to improve view and layout

@acoffman Could you include this on the next update too? There is an index in CTNNB1 that really screws up the layout.

@bainscou Sure thing - I assume you just want this in the main data table on the frontpage, not the single variant pages, correct?

@acoffman Yes, exactly.


[Bug]: Crash on cloning repo Android

Describe the bug
I followed the instructions for mobile in order to stop using Termux for my sync.
At first my identification to Github had issues. I solved it by using a token and not a password, and by starting fresh with a new vault.
But after installing Obsidian-git on my Android, and inputting my logins, I try to clone my repository and then Obsidian crashes a few second after cloning initialisation.
Relevant errors (if available)
No error found, the app crashes.

Steps to reproduce
Pixel 4A 5G with Android 13

Install Obsidian.
Create new vault
Install Obsidian Git Plugin
Add your logins
Clone repo command in the vault, already having a .obsidian and hence deleting the temporary vault settings created for the setup

Expected Behavior
Crash just after clone initialization.
Addition context
No response
Operating system
Android
Plugin version
2.10.2

Duplicate of #307

@Vinzent03 are you sure that this is a duplicate - none of these reports (including my issue) describe the buffer error. Just straight out crashes.
Could it be caused by something other than memory problems? Perhaps a conflict in the settings?
If it is a memory issue, could you save on memory by reducing the git clone depth.
https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/


Docs are at v0.12.3

The docs at https://vite-pwa-org.netlify.app/ are for v0.12.3 while latest is v0.13.1
There are few changes that I've found:

onRegistered -> onRegisteredSW
virtual module virtual:pwa-info

It looks like docs for latest version are ready, just not published

Okay, it seems that new url for docs is https://vite-pwa-org.netlify.app/ which is at v0.13.1
however the README.md and repo's about are linking to the other url

however the README.md and repo's about are linking to the other url

We're preparing the change to remove old docs, rn if you just do a hard refresh on old docs, you'll be redirected to the new ones (don't do the hard refresh, do it in a private window if you want to see the redirect, we're going to add the selfDestroying sw  to the old docs soon and so uninstalling the pwa from clients, on refresh will be redirected, it requires some testing)

virtual pwa info module from v0.12.8+: https://github.com/vite-pwa/vite-plugin-pwa/releases/tag/v0.12.8

From version v0.13.0+ you'll also need Vite 3.1+: https://github.com/vite-pwa/vite-plugin-pwa/blob/main/README.md#-install

Thank you,
indeed when I try hard refresh or curl -I https://vite-plugin-pwa.netlify.app/ I get 301 response 👍


Unable to orderby decimal column

I have a class with a decimal property.  I wanted to order all instances of the class by the decimal property within the SQLite database.
I created three instances with these decimal values { 7m, 84.3m, 13.4m }.  After running an OrderBy function, I expected it to order it to { 7m, 13.4m, 84.3m } but instead it ordered it to { 13.4m, 7m, 84.3m }
Steps to reproduce
Please run the test below
public class TestEntity : Entity
{
    public TestEntity(decimal @decimal) => Decimal = @decimal;

    protected TestEntity()
    {
    }

    public decimal Decimal { get; set; }
}

[TestFixture]
public class DecimalSortingTests : DbTests
{
    [Test]
    public async Task GivenClassWithDecimalColumn_WhenIOrderBy_ItOrdersCorrectly()
    {
        decimal[] decimals = { 7m, 84.3m, 13.4m };
        IEnumerable<TestEntity> testClasses = decimals.Select(@decimal => new TestEntity(@decimal));
        using (DbContext dbContext = GetDbContext())
        {
            dbContext.Set<TestEntity>().AddRange(testClasses);
            await dbContext.SaveChangesAsync();
        }

        List<TestEntity> entities;
        using (DbContext dbContext = GetDbContext())
        {
            entities = await dbContext.Set<TestEntity>()
                .OrderBy(x => x.Decimal)
                .ToListAsync();
        }

        List<TestEntity> list = entities.ToList();
        Assert.That(list.Count, Is.EqualTo(decimals.Length));
        Assert.That(list.ToArray()[0].Decimal, Is.EqualTo(7m));
        Assert.That(list.ToArray()[1].Decimal, Is.EqualTo(13.4m));
        Assert.That(list.ToArray()[2].Decimal, Is.EqualTo(84.3m));
    }

    private class TestDbContext : DbContext
    {
        public TestDbContext(DbContextOptions options) : base(options)
        {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<TestEntity>();
            base.OnModelCreating(modelBuilder);
        }
    }

    private DbContext GetDbContext()
    {
        DbContextOptions<TestDbContext> options = new DbContextOptionsBuilder<TestDbContext>()
            .UseSqlite(SqliteConnection)
            .EnableSensitiveDataLogging()
            .Options;

        TestDbContext dbContext = new TestDbContext(options);
        dbContext.Database.EnsureCreated();
        return dbContext;
    }
}

  Expected: 7m
  But was:  13.4m

Further technical details
EF Core version: 2.0.0
Database Provider: Microsoft.EntityFrameworkCore.Sqlite
Operating system: Windows 10 64x
IDE: Visual Studio 2017

/cc @bricelam @divega

SQLite stores decimal as Text, The ordering on database would sort strings rather than decimal values.
https://github.com/aspnet/EntityFrameworkCore/blob/2197ef2c0dcc06fa162b0525d66757ad52e01257/src/EFCore.Sqlite.Core/Storage/Internal/SqliteTypeMapper.cs#L58

Correct. SQLite doesn't support decimal values, so we persist them as strings. You can get more expected results by casting to double before ordering, but there may still be unexpected results due to loss.

Should line 58 be replaced with the line below?
{ typeof(decimal), new DecimalTypeMapping(_realTypeName) },

No, converting from decimal to REAL is lossy; hence, we picked TEXT. Not losing data felt more important.

Would using a double work for you? Do you need the precision of decimal?

My proposal was to use .OrderBy(x => (double)x.Decimal) Then you'll get mostly correct ordering while keeping decimal-precise values in the database.

Would that result in casting in the underlying query? I'm working with a money value and heard that decimal was better to use for money values than a double?

@chris31389 SQLite can't store decimal values natively. This means that, in the general case, using SQLite to store things like monetary values will always have some limitations. As @bricelam said, usually storing the exact values (non-lossy) is more important than preserving store-side sort order. It's probably safe to do the conversion to doubles in the query, as shown above, because even if this is lossy, it is unlikely to impact sort order. If it will, then the only option is to bring the data back to the client and sort it there.
I have filed #10265 for us to track future work in this area. For now, closing this as by-design.

@ajcvickers I've just run this test using "UseSqlServer" and its giving me the same results.  Any chance you can look into this too?