Changed input factor of max file size in settings to MB

This is a retargeted PR #42 with two fixes of mine.
It solves the issue: https://github.com/StarcounterPrefabs/Images/issues/41
@Mnosek please review.
Merging SweOffshore-Checklist-UriMapping to develop will be a next step priority that will require joint effort of @diliger and @aloscha. I will send an email about that.

@jwillmer please confirm if you agree with my thinking that 1 MB should be regarded as 1 000 000 bytes?

I prefer to use the real conversion values. People who don't know it wont mind but people who do get confused if you use something else.

In regards to your research I don't mind anymore. Writing MB and meaning MiB is O.K. with me.

Ok, then I will do what I think is right, that is change the unit to MiB and write MiB.

Unit changed to KiB/MiB.
@aloscha please review and merge if all ok.

@warpech I find just one thing, please have a look of that

@warpech I find just one thing, please have a look of that

Fixed. Please take a look.

For me looks perfect. Please merge :)

Merged, thanks for the review


FIDO2 over PCSC

I am trying to perform a FIDO2 authentication from a Linux system connected to a Card Reader. I see it can communicate with the Yubikey as I can read the PIV Serial number by sending APDUs. But the browsers are not supporting FIDO2 over NFC. Is there any workaround??

Just a side note: NFC is supported by Andorid and some iOS. The issue is PC browsers.

I was able to use my yubikey for webauthn/fido2 in chrome via an NFC reader using this bridge: https://github.com/BryanJacobs/fido2-hid-bridge
Hope this helps.
(Btw: PIV and Fido2 are some very different standards)

Just a side note: NFC is supported by Andorid and some iOS. The issue is PC browsers.

Even windows PCs work fine, as tested with a Omnikey Reader.


Android: Starting with version 6.0.0-beta.6 - Backdrop Filter blur not working anymore

[x] I have read the Get Started - Installation section
[x] I have read and done the Get Started - Setup Android section
[x] I have read and done the Get Started - Setup iOS section
[x] I have already searched for the same problem

Environment

Technology
Version

Flutter version
3.3.7

Plugin version
6.0.0-beta.6

Android version
Android 12 (API 31)

iOS version
not relevant

Xcode version
not relevant

Device information: Xiaomi Redmin Note 11 Pro
Description
Starting with version 6.0.0-beta.6 up to 6.0.0-beta.12 ( 6.0.0-beta.5 works well), there seem to be issues drawing a blur (BackdropFilter) on Android when a WebView is present. Somehow the blur doesn't apply at all (outside of the webview as well) starting with that version.
Expected behavior: Blur over the whole screen should still work
Current behavior: There is no blur at all anywhere on the screen starting with the mentioned version
Steps to reproduce

My exact scenario, is drawing a bottom sheet with a blurred overlay. What I am using is:
modal_bottom_sheet: ^2.1.2

Code to draw the bottom sheet with a blurred barrier:
import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:modal_bottom_sheet/modal_bottom_sheet.dart';

Future<T?> showBlurredBarBottomSheet<T>({
  required BuildContext context,
  required WidgetBuilder builder,
  double elevation = 2,
  ShapeBorder shape = const RoundedRectangleBorder(
    borderRadius: BorderRadius.only(topLeft: Radius.circular(25), topRight: Radius.circular(25)),
  ),
  Clip? clipBehavior,
  Curve? animationCurve,
  Duration? duration,
  RouteSettings? settings,
  double? closeProgressThreshold,
  AnimationController? secondAnimation,
  Color? backgroundColor,
  Color? barrierColor,
  bool bounce = false,
  bool useRootNavigator = true,
  bool isDismissible = true,
  bool enableDrag = true,
}) {
  final sheetContent = Column(
    mainAxisSize: MainAxisSize.min,
    crossAxisAlignment: CrossAxisAlignment.center,
    children: [
      const SizedBox(height: 15),
      Container(
        height: 3,
        width: 40,
        decoration: const BoxDecoration(
          color: Color(0xFF979797),
          borderRadius: BorderRadius.all(Radius.circular(6)),
        ),
      ),
      const SizedBox(height: 15),
      Flexible(
        flex: 1,
        fit: FlexFit.loose,
        child: SizedBox(width: double.infinity, child: builder(context)),
      ),
    ],
  );

  return showCustomModalBottomSheet(
    context: context,
    containerWidget: ((context, animation, child) => child),
    builder: (context) => BackdropFilter(
      filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5),
      child: SafeArea(
        bottom: false,
        child: Material(
          shape: shape,
          clipBehavior: clipBehavior ?? (Theme.of(context).brightness == Brightness.dark ? Clip.antiAlias : Clip.none),
          color: backgroundColor ??
              (Theme.of(context).brightness == Brightness.dark ? const Color(0xB2191F2C) : const Color(0xFFFFFFFF)),
          elevation: elevation,
          child: Theme.of(context).brightness == Brightness.dark
              ? BackdropFilter(
                  // extra blur only on dark mode
                  filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
                  child: sheetContent,
                )
              : Container(
                  decoration: const BoxDecoration(
                    color: Color(0xFFFFFFFF),
                    borderRadius: BorderRadius.vertical(top: Radius.circular(25)),
                    boxShadow: [BoxShadow(color: Colors.black26, blurRadius: 5, blurStyle: BlurStyle.outer)],
                  ),
                  child: sheetContent,
                ),
        ),
      ),
    ),
    elevation: elevation,
    shape: shape,
    clipBehavior: clipBehavior,
    animationCurve: animationCurve,
    duration: duration,
    settings: settings,
    closeProgressThreshold: closeProgressThreshold,
    secondAnimation: secondAnimation,
    barrierColor: barrierColor ??
        (Theme.of(context).brightness == Brightness.dark ? const Color(0x80000000) : const Color(0x147E7E33)),
    backgroundColor: Colors.transparent,
    bounce: bounce,
    expand: false,
    useRootNavigator: useRootNavigator,
    isDismissible: isDismissible,
    enableDrag: enableDrag,
  );
}

In app web view code with the settings:
InAppWebView(
  initialSettings: InAppWebViewSettings(
    transparentBackground: true, // to avoid white flash on dark mode
    javaScriptEnabled: true,
    // useShouldOverrideUrlLoading: true,
    mediaPlaybackRequiresUserGesture: false,
    useHybridComposition: true,
    allowsInlineMediaPlayback: true,
    rendererPriorityPolicy: RendererPriorityPolicy(
      rendererRequestedPriority: RendererPriority.RENDERER_PRIORITY_IMPORTANT,
      waivedWhenNotVisible: true,
      ),
    geolocationEnabled: false,
  ),
  onProgressChanged: (controller, progress) =>
    ref.read(webViewPageNotifierProvider.notifier).onProgressChanged(progress / 100.0),
  onLoadStart: (controller, url) =>
    ref.read(webViewPageNotifierProvider.notifier).onLoadStart(url?.toString()),
  onUpdateVisitedHistory: (controller, url, isReload) =>
    ref.read(webViewPageNotifierProvider.notifier).onUpdateVisitedHistory(url?.toString()),
  onWebViewCreated: (controller) =>
    ref.read(webViewPageNotifierProvider.notifier).onWebViewCreated(controller, context),
  onLoadStop: (controller, url) =>
    ref.read(webViewPageNotifierProvider.notifier).onLoadStop(url?.toString()),
);

Working version: 6.0.0-beta.5

Not working version: 6.0.0-beta.6

@pichillilorenzo Seems that the issue is related to the hybrid composition changes introduced in beta.6. I expect it's got to do with hybridComposition using initExpensiveAndroidView starting with that version.

P.S. disabling hybrid composition makes the backdrop filter work again starting with beta.6.

@AlexDochioiu thanks, so the problem is related to how Flutter Hybrid Composition currently works.
Unfortunately, that's a bug of Flutter itself and not of this plugin.
I think you should open an issue on the official Flutter repository related to this bug.

I had the same problem but resolved with this commit on flutter engine which put the platform views behind the backdrop and released with Flutter 3.10 on stable channel.

Same here, I am developing a windows 11 clone. Lots of UI components have blur backdrop filter, but when InAppWebView appears on screen, all the backdrop filter blur disappears.


Use satifies operator

sucrase, prettier, and eslint all support TypeScript 4.9 now. However, it looks like VS Code is still on 4.8.4

Game was moved into a separate file the other day so that it could be unit-tested. Looks like it's now duplicated?

Yeah, I caught that right as you did. I've updated this. Going to mark it as draft until VS Code supports TypeScript 4.9, but I think it's otherwise ready to go

VS Code now supports TypeScript 4.9 and satisfies: https://code.visualstudio.com/updates/v1_74#_typescript-49
Mine just updated to include support for it

The docs still convert this...

...into this when you opt into TypeScript mode:

Ideally it would be export async function load(...) {...} satisifes PageServerLoad. Is it worth trying to get that working before merging this, so that we're singing from the same hymn sheet everywhere? @dummdidumm how complex would that be?

Not that complex, but it's not going to be export async function load(...) {...} satisifes PageServerLoad (that's sadly not supported yet for some reason), it's going to be export const load = (async  (...) => {...}) satisifes PageServerLoad

ah yeah, turned out it was actually very simple: https://github.com/sveltejs/kit/pull/8001. unfortunately the site doesn't build with that change, hence separate branch rather than a commit to this one

I feel like we ought to wait until the docs are in sync anyway

They are now, I merged your PR into this one

oh! i totally missed that. nice. how long should we wait? I feel like VSCode updates probably propagate quite quickly, though I'm not sure if there's a way to check. Part of me thinks that a couple of questions in Discord/etc is a reasonable price to pay for smoother typechecking for people checking out 1.0 for the first time

I think I would lean towards trying to get this in now because a bunch of people will be trying to write tutorials, post/answer StackOverflow questions, etc. and all that content will be using outdated syntax if we release 1.0 without this. Merging this now will cause more questions on Discord from people who haven't updated VS Code yet, but I think it's probably the lesser of two evils and just a temporary hiccup

I'm watching this final race towards 1.0 🚀
I noticed that there is a typo in the title..

updated the title. luckily I got the changeset right first time around


refactor: change BaseClass.baseInterface from length/ptr to [ ]

Could go further with this, but smaller PRs are better.

Why not just use Array?

It isn't allocated like Array.

I don't see any use that would prevent using Array... Why shouldn't it?  That would avoid calling xcalloc directly too.

Array is a C++ clone of D arrays. The only reason to keep using them is to interface with the C++ code. baseInterfaces[ ] does not need to interface to the C++ code. It's also fixed size (doesn't need any resizing logic).

I could be a user.  Let me check quickly.

Nope, baseInterface is only used in the frontend.

It isn't allocated like Array.

It is, root.Array (now?) contains value types. Would make sense to use it here.

Would make sense to use it here.

No. It makes no sense to reinvent D's array type here. Array is not a better array type. It's not a Phobos type, either. It exists purely because the original was in C++ and didn't have D arrays available.

Auto-merge toggled on

As usual, Andrei addresses everyone's objections.

As usual, Andrei addresses everyone's objections.

"Turn him to any cause of policy, the Gordian Knot of it he will unloose, familiar as his garter"


Environment.StackTrace don't work

I'm trying to get the stack trace in my Blazor.Shared DLL.
But Environment.StackTrace returns an empty string
and System.Diagnostics.StackTrace(0, true) returns an empty stack

This is controlled by the underlying Mono runtime. Would you therefore be able to report this to https://github.com/mono/mono?
Thanks!
Closing as external.


⚠ Site ANTS has degraded performance

In 61e607b, Site ANTS (https://ants.gouv.fr) experienced degraded performance:

HTTP code: 200
Response time: 4255 ms

Resolved: Site ANTS performance has improved in f2300e2 after 6 minutes.


Retry querying the .ember-view element

Fixes #6

@topaxi thanks for the PR, I submitted #8 which uses the visit API in Ember. It should get you the result you want without having to poll the DOM for the app state. This is a similar method that Fastboot uses for SSR.

I've took the bit of readme for Critical CSS options and patched it on master

Awesome thanks! :heart:
Wasn't aware that using the visit API is that easy without FastBoot 😁


chore: release version 0.3.1

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 78.592%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
6808

Relevant Lines:
8526

💛  - Coveralls


Build warning with meson 0.50.1

server/meson.build:5: WARNING: Custom target input '.' can't be converted to File object(s).
This will become a hard error in the future.

Fixed by #553.

Hello,
Is this really fixed ? I am trying to build scrcpy on jetson nano (an ARM64 board).
meson x --buildtype release --strip -Db_lto=true -Dprebuilt_server=/home/rreddy78/scrcpy-server-v1
The Meson build system
Version: 0.55.3
Source dir: /home/rreddy78/scrcpy
Build dir: /home/rreddy78/scrcpy/x
Build type: native build
Project name: scrcpy
Project version: 1.16
C compiler for the host machine: cc (gcc 7.5.0 "cc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0")
..
..
server/meson.build:24: WARNING: Custom target input '/home/rreddy78/scrcpy-server-v1' can't be converted to File object(s).
This will become a hard error in the future.
Build targets in project: 3
And  I get Ninja error:
rreddy78@jetson:~/scrcpy$ ninja -Cx
ninja: Entering directory `x'
[20/26] Generating scrcpy-server-prebuilt with a custom command
FAILED: server/scrcpy-server
cp /home/rreddy78/scrcpy-server-v1 server/scrcpy-server
cp: -r not specified; omitting directory '/home/rreddy78/scrcpy-server-v1'
[25/26] Compiling C object app/scrcpy.p/src_sys_unix_command.c.o
ninja: build stopped: subcommand failed.
For now I will also try to build the server too..

cp: -r not specified; omitting directory '/home/rreddy78/scrcpy-server-v1'

Looks like scrcpy-server-v1 is a directory. You must pass the filepath.

Looks like scrcpy-server-v1 is a directory. You must pass the filepath.

But I am just following the instructions given:

Yes, if the scrcpy-server path is /path/to/scrcpy-server (it's a file), then you must execute that.
It seems that /home/rreddy78/scrcpy-server-v1 is a directory on your computer.

Thanks. I get linking errors. I have libv4l in my system..
/usr/local/lib/libavcodec.so: undefined reference to v4l2_open' /usr/local/lib/libavcodec.so: undefined reference to v4l2_close'
/usr/local/lib/libavcodec.so: undefined reference to `v4l2_ioctl'

/usr/local/lib/libavcodec.so

Where does your ffmpeg come from?
The one from the system is at /usr/lib/x86_64-linux-gnu/libavcodec.so.

I have a custom ffmpeg from NVIDIA.

OK, so there is probably a problem with it, in particular where it finds its dependencies.
Check ldd /usr/local/lib/libavcodec.so.

Thanks. Working now.I got a  dbus crash. But this is a problem with SLD2. I have to run with sudo..

I have to run with sudo.

:scream:

sudo scrcpy --rotation 1  -m 1920
I am running Sentio  on phone and using scrcpy for mirroring..To get better resolution do i increase bitrate ?

I believe its fine now. My phone colours are so much better than my old monitor :) hat I had a doubt..

"server/meson.build:24: WARNING: Custom target input '/home/sercanus/scrcpy-server-v1' can't be converted to File object(s)."
I want to build the code and do development. but i can't build
I can't build. I'm getting angry now.
why not why

"server/meson.build:24: WARNING: Custom target input '/home/sercanus/scrcpy-server-v1' can't be converted to File object(s)."
I want to build the code and do development. but i can't build
I can't build. I'm getting angry now.
why not why

/home/sercanus/scrcpy-server-v1 Does this file exist? It should be scrcpy-server-v1.17.

/home/sercanus/scrcpy-server-v1 Does this file exist? It should be scrcpy-server-v1.17.

this folder or file does not exist. I don't know exactly what to do
I went into the directory with cd /scrcpy
then i ran the following command.
meson foldername --buildtype release --strip -Db_lto=true -Dprebuilt_server=/home/sercanus/scrcpy/scrcpy-server-v1
but I got an error
"server/meson.build:24: WARNING: Custom target input '/home/sercanus/scrcpy-server-v1' can't be converted to File object(s)."
I don't know how to compile and run the codes.
I will be glad if you help :)

this folder or file does not exist. I don't know exactly what to do
I went into the directory with cd /scrcpy
then i ran the following command.
meson foldername --buildtype release --strip -Db_lto=true -Dprebuilt_server=/home/sercanus/scrcpy/scrcpy-server-v1
but I got an error
"server/meson.build:24: WARNING: Custom target input '/home/sercanus/scrcpy-server-v1' can't be converted to File object(s)."
I don't know how to compile and run the codes.
I will be glad if you help :)

then i ran the following command.
meson foldername --buildtype release --strip -Db_lto=true -Dprebuilt_server=/home/sercanus/scrcpy/scrcpy-server-v1

That's the problem, you explicitly passed this path to the file which does not exist: -Dprebuilt_server=/home/sercanus/scrcpy/scrcpy-server-v1

then i ran the following command.
meson foldername --buildtype release --strip -Db_lto=true -Dprebuilt_server=/home/sercanus/scrcpy/scrcpy-server-v1

That's the problem, you explicitly passed this path to the file which does not exist: -Dprebuilt_server=/home/sercanus/scrcpy/scrcpy-server-v1

I have created a folder named "servfolder" under the scrcpy directory
and I ran the command again
meson xmn --buildtype release --strip -D b_lto=true -D prebuilt_server=/home/sercanus/Projects/scrcpy/servfolder
but I got the same error again
"server/meson.build:24: WARNING: Custom target input '/home/sercanus/Projects/scrcpy/servfolder' can't be converted to File object(s)."

I have created a folder named "servfolder" under the scrcpy directory
and I ran the command again
meson xmn --buildtype release --strip -D b_lto=true -D prebuilt_server=/home/sercanus/Projects/scrcpy/servfolder
but I got the same error again
"server/meson.build:24: WARNING: Custom target input '/home/sercanus/Projects/scrcpy/servfolder' can't be converted to File object(s)."

You must path the full path to the server, filename included.
Probably something like:
-Dprebuilt_server=/home/sercanus/Projects/scrcpy/servfolder/scrcpy-server-v1.17

You must path the full path to the server, filename included.
Probably something like:
-Dprebuilt_server=/home/sercanus/Projects/scrcpy/servfolder/scrcpy-server-v1.17

which server are we talking about ?

which server are we talking about ?

because there is no such thing

because there is no such thing

https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#prebuilt-server

https://github.com/Genymobile/scrcpy/blob/master/BUILD.md#prebuilt-server

"meson xmn --buildtype release --strip -D b_lto=true -D prebuilt_server=/home/sercanus/Projects/scrcpy/copy-server/scrcpy-server-v1.17"
I have succeeded this step now. but I still don't understand how to run it

"meson xmn --buildtype release --strip -D b_lto=true -D prebuilt_server=/home/sercanus/Projects/scrcpy/copy-server/scrcpy-server-v1.17"
I have succeeded this step now. but I still don't understand how to run it

I downloaded the above serverv.17 file and created a folder named "copy-server" in my scrcpy folder and moved the serverv1.7 file there. then I wrote the following code
meson xmn --buildtype release --strip -D b_lto=true -D prebuilt_server=/home/username/Projects/scrcpy/newfoldercrate/scrcpy-server-v1.17"

I downloaded the above serverv.17 file and created a folder named "copy-server" in my scrcpy folder and moved the serverv1.7 file there. then I wrote the following code
meson xmn --buildtype release --strip -D b_lto=true -D prebuilt_server=/home/username/Projects/scrcpy/newfoldercrate/scrcpy-server-v1.17"


shouldn't the steps be flipped?

in Config man section, shouldn't steps 3f and3g be swapped?

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

ID: 4e53eec1-548f-701f-3bcb-3763d68e09a4
Version Independent ID: 6d5926a0-8a73-f4b2-a000-a9245500cdeb
Content: Evaluating MBAM 2.5 in a Test Environment
Content Source: mdop/mbam-v25/evaluating-mbam-25-in-a-test-environment.md
Product: w10
GitHub Login: @jamiejdt
Microsoft Alias: jamiet

@sasanmcp, thank you for the feedback, you make a valid point and I've made the change.


How to distinguish different WWAN, such as 4G/3G/2G? include all telecom operators?

This can't be done using Reachability.swift.


Input Dir /BAM  Error

Hi,
I installed pacbio_qc with pip install and ran below two commands
 sequana_pacbio_qc --input-directory /data/shared/clinical/LongRead/Data/
input dir where i have one of BAM file GIAB Trio sample
i got below error
ERROR   [sequana_pipetools.sequana_manager:205]:  package provided (pacbio_qc) not installed.
I tried to give full path of BAM file
sequana_pacbio_qc /data/shared/clinical/LongRead/Data/m84011_220902_175841_s1.hifi_reads.bam
then got below error
pacbio_qc: error: unrecognized arguments: /data/shared/clinical/LongRead/Data/m84011_220902_175841_s1.hifi_reads.bam
Kindly help how do i pass input bam  for pacbio_qc

Hi,
Python : Python 3.8.10
I installed using pip, and Platform is Revivo (https://downloads.pacbcloud.com/public/revio/2022Q4/


Can you please provide a sample data set so that code can be run without downloading ?

I have limited compute power on my laptop, it will be really useful t study the code locally if you can provide a small dataset using which I can run it locally on my laptop and debug the code.
Thanks
Shakti

Hi, Shakti. I uploaded sample_data.zip with 10000 training samples and 1000 validation samples. Thanks.


Add OpenRC script to manual install guide

I think it would be nice if you wrapped that big block in a
::: details
text goes here
:::

so its folded away by default (like here: https://github.com/misskey-dev/misskey-hub/blob/a362d1f40628e76a3ff55989d01c6b30ec6b36e0/src/en/docs/getting-started.md?plain=1#L11-L17 )


VSCode Gray Out When HDR is enablled

Issue Type: Bug
VSCode presents all gray and washed out when Display Settings -> Windows HD Color -> Use HDR is set to On. This makes the entire VSCode app look like it is unavailable and waiting on some background task when in reality HDR has washed out the colors of the app. This goes away the minute Use HDR is set to Off.
This is in Windows 10 Pro (2004), Monitor is a Samsung C49RG9x which is a 49" HDR capable monitor.
VS Code version: Code 1.48.2 (a0479759d6e9ea56afa657e454193f72aef85bd0, 2020-08-25T10:13:11.295Z)
OS version: Windows_NT x64 10.0.19041

System Info

Item
Value

CPUs
AMD Ryzen Threadripper 2950X 16-Core Processor  (32 x 3500)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
127.90GB (103.64GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

remote-wsl
ms-
0.44.5

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

Nice monitor choice, I have the same :)
This has been a known bug since earlie 2019:
https://github.com/microsoft/vscode/issues/68069
I've had the issue since then.


why can't use the library

Hi, my again,
why I can't use the new library of GT-521F52?
when I install the library, its work like this:
pip install GT-521F52
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting GT-521F52
Using cached https://files.pythonhosted.org/packages/19/a2/26a834ec1e2ca65389bfb5e7765291c49611531891d49a5abd24f7fd55d8/GT_521F52-1.0.0-py3-none-any.whl
Collecting pyserial>=3.4.0 (from GT-521F52)
Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl
Installing collected packages: pyserial, GT-521F52
Successfully installed GT-521F52-1.0.0 pyserial-3.4
but when I want to run the program there is some error:
Traceback (most recent call last):
File "examples.py", line 1, in
import GT_521F52
ImportError: No module named GT_521F52
So, I change the library in a code like this:
sudo python examples.py
File "examples.py", line 1
import GT-521F52
^
SyntaxError: invalid syntax
that error still occurs
can you help me to fix a code?

I got the same error

Yeah, my bad. I'll talk with @OtacilioN to solve this problem.

Hi This Is Ramesh
I got the same error, please help out
why I can't use the new library of GT-521F52?
when I install the library, its work like this:
pip install GT-521F52
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting GT-521F52
Using cached https://files.pythonhosted.org/packages/19/a2/26a834ec1e2ca65389bfb5e7765291c49611531891d49a5abd24f7fd55d8/GT_521F52-1.0.0-py3-none-any.whl
Collecting pyserial>=3.4.0 (from GT-521F52)
Using cached https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl
Installing collected packages: pyserial, GT-521F52
Successfully installed GT-521F52-1.0.0 pyserial-3.4
but when I want to run the program there is some error:
Traceback (most recent call last):
File "examples.py", line 1, in
import GT_521F52
ImportError: No module named GT_521F52
So, I change the library in a code like this:
sudo python examples.py
File "examples.py", line 1
import GT-521F52
^
SyntaxError: invalid syntax
that error still occurs
can you help me to fix a code?


Change dnsutils from jessie-dnsutils to agnhost

Description
The jessie-dnsutils image is not maintained, but agnhost is and has all the same tools.
Closes: https://github.com/kubernetes/kubernetes/issues/126936
/cc @BenTheElder

/lgtm
/approve

/approve


Tablet periodically locking up in Factorio

So I've installed Factorio on the Surface Go 2 and it's running fine (fps is stable) but after some time it just locks up. The temperature (PRO TIP: temperature is more accurate from the screen side) is around 60°C. I have followed all the recommendations (disabling prochot, voltageshift) but I think that voltageshift doesn't work. SIP is off.

but I think that voltageshift doesn't work.

If you check the status of voltageshift with voltageshift info, it should give you the current settings and values. If voltageshift doesn't work, it would show zeroes everywhere.
As explained in the readme, BD PROCHOT will activate on the SGO2 at temperatures as low as 60°C ~ 70°C. Once BD PROCHOT kicks in, the CPU will throttle down to 0.4Ghz, making the device more or less unusable.
That's why BD PROCHOT needs to be disabled in order to increase the performance of the machine.
However, if the CPU continues to be fully loaded with BD PROCHOT disabled, the temperature may increase up to 90°C. Beyond 90°C, the device will become unstable and either crash or power off.
To avoid this, the temperature needs to be kept under control. There's only a handful of methods to keep the temperature under control (i.e. reduce the temperature as much as possible): enabling macOS's Low Power Mode in the battery settings, which basically disables SpeedStep, using voltageshift to undervolt the system and changing the CPU's frequency vectors using Acidanthera's CPUFriend.kext with the help of CorpNewt's CPUFriendFriend.
All those methods are a tradeoff between processing power and temperature. You can't have processing power without producing heat and you can't have a system running cool with a lot of processing power, at least not with a tiny, passively cooled system such as the SGO2.
So, disabling PB PROCHOT allows us to increase the processing power by avoiding to throttle the CPU, at the cost of reaching very high temperatures. As there's no safety net anymore, the device will crash once it reaches critical temperatures around 90°C.
Hence the only way to avoid the device crashing because of high temperatures is to reduce the heat as much as possible by reducing the game's resolution, fps or level of graphics details.
In essence, you're pushing your tiny and underpowered, passively cooled device to its extreme thermal limits because you're disabling the thermal safety net.
It would be interesting to observe what happens when you play the same game in Windows. I guess the fps would slow down to a crawl at some point in order to keep the temperature in check, the same way it would do in macOS if you didn't disable BD PROCHOT.

Yeah. I fixed it. Turns out Voltageshift wasn't doing anything.


Update waveallmax.md

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


I want to ask you a question, about LiquidFloatingActionButton

You fix the bug "LiquidFloatingActionButtonAnimateStyle not available in Objective - C", solve the problem I encountered, at the same time, I met another problem again, as shown in picture.I need your help. Thank you very much

@dslcoding  What problem you are facing?

I want to make picture 1 as big as picture 2, where should I modify it and ask for help. thank you


Change the default storage size to 25 GB

The new cheapest plan has 25 GB of storage instead of 30. Currently anyone who has to build a template for the cheapest plan will have to override storage_size.

... and we should be able to set core_numbers and memory_size.
Right now it is baked as 2 and 2048 respectively. (https://github.com/UpCloudLtd/upcloud-packer/blob/master/builder/upcloud/step_create_server.go)
So much for real infrastructure as code ...

@ohenley the core size and memory doesn't matter that much since you'd be using the template to spin up your final server. The disk size however determines which pre-configured instance sizes you can use, e.g. if your template is larger than 25 GB you won't be able to use the cheapest plan.

@Jalle19 Do you mean that later down the road I will spin my custom image on the machine config of my choice (eg. 1 cpu and 1024 of ram)?
Yesterday, by executing the 'build' of my packer box, it automatically created a live instance... with 2 cores and 2048 ram. I had to delete those manually. I was even blocked of creating other images at some point (new to this IaC so I am testing a lot) because these configs maxed out my Upcloud credits. I do not consider this ideal. Now maybe I missed some config infos.
FYI, I just tried the Scaleway builder and by default:

No 'custom' binary to setup (eg. upcloud-packer)
No settings of disk, cpu and ram config at Packer level (determined at instanciation time)
No server instance created at 'build time' of your Packer image.

Their process isnt perfect though: a very brittle 'base image uuid availability mapping' and a good mess of credentials to setup (API token (access key, private key), api_access_key and organization_id all mixed up between a not backward compatible new builder and deprecated documentation laying around on official paths).

Yes, once the disk template has been created you can spin it up using whatever instance type/size you choose. The 2xCPU2GB default is just for the temporary instance Packer uses to provision your template, it gets deleted before Packer finishes. You shouldn't be left with any dangling instances.
I'm pretty sure the Scaleway builder also spins up a temporary instance.

Fixed in https://github.com/UpCloudLtd/upcloud-packer/pull/24


Add turtlefile bean

based on the implicit harvester api ttl file.

rename it FileDataObject => https://github.com/mu-semtech/file-service

lgtm


Query ERC20 tokens using web3x

This is the first attempt to work with ERC20 tokens using web3x.

[x] Proof of concept
[ ] Disconnect providers in init script and EthereumConnection
[ ] Evaluate JS engine support of web3x (https://github.com/xf00f/web3x/issues/38)

Note about js engine support:
I do agree the use of bigint is problematic, especially when bundling for browsers. (cli we can require node 10, but that seems hard for browser compatibility).
I look forward to hearing his response to the issue, and happy if you/will/I(?) spend some time on web3x PRs to improve the tooling and compatibility

To be honest, I don't know if using web3x as a runtime dependency is the rigth approach here. The TypeScript interfaces of the smart contracts are not super valuable for us since we only have two simple contract types: atomic swap and ERC20. With an ERC20 wrapper class that does the calls to the contract, there are maybe ten function calls that are not type safe, but tested. The question is if we can call Ethereum smart contracts directly, i.e. encode/decode function names, arguments, return values.

Maybe this is all we need at runtime: https://github.com/ethereumjs/ethereumjs-abi

Maybe this is all we need at runtime: https://github.com/ethereumjs/ethereumjs-abi

Please take a look at https://github.com/iov-one/ethereum-workshop/pull/9
It imports one small part of web3x, which seems quite a bit cleaner and more tested than the js version linked.
The problem is that web3x has many dependencies. It is also LGPL meaning we can use as a dependency, but cannot copy code into our project.
I would suggest forking it and splitting out a few packages that correspond to what we need with minimal runtime requirements. And this fork is also LGPL. He can merge it back in, or we just customize this for our needs.
I'd rather start with this code, than use code that is ugly and that you will end up re-implementing completely.

The question about queries is more open to me.
I don't know how much we need to parse them, and we can also use web3x without codegen, just calling untyped contracts.
Maybe best to fork web3x and re-arrange as suits us and then let him grab those pieces he likes and merge them back upstream

Please take a look at iov-one/ethereum-workshop#9

Interesting, thanks. Looks like the relevant code is copied from ethers

https://github.com/xf00f/web3x/commit/78adec7be4695362f0eba28fe52874935f21b27d
https://github.com/ethers-io/ethers.js/blob/master/src.ts/utils/abi-coder.ts
which is MIT code, that we can use or copy.

Nice find.
Then let's just grab the code from ethers-js we need and copy it into a subfolder in our project.
This let's us trim out almost all dependencies, while just grabbing the parts we went.

Superseded by #846


Force SharedBailOutKind to be true on the BailOutInfo of CheckFuncInfo instrs; stop GC of BailOutInfo with SharedBailOutKind.

Same goal as this PR: https://github.com/microsoft/ChakraCore/pull/6116
@nhat-nguyen please review (I can't add you as a Reviewer for some reason)

Yeah I think it's because I'm not in the repo's member list or something. Will take a look. 😄


Downloading library build, takes very long, progress bar?

On an Mbed 2 project I'm running mbed deploy.
Then it says:
[mbed] Downloading library build "a330f0fddbec" (might take a while)

It's been doing this for over 10 minutes already. I have a very fast internet connection (200 mbps). What is it doing and can I have a progress bar similar to when we clone Mbed OS?

ARM Internal Ref: MBOTRIAGE-1448

@janjongboom Good suggestion. We could have a progress bar to indicate to users "get a cup of coffee".

Thank you for raising this issue. Please note we have updated our policies and
now only defects should be raised directly in GitHub. Going forward questions and
enhancements will be considered in our forums, https://forums.mbed.com/ . If this
issue is still relevant please re-raise it there.
This GitHub issue will now be closed.

This might be caused by this instead:
https://github.com/ARMmbed/mbed-cli/issues/968
We might get a rush of users encountering this bug as soon as Ubuntu switches from python2 to pyhon3 by default.


Docs: add documentation for lance support

Description
add docs for:

lance_scan table function
create external table t from lance ...
other lance related functionality (such as potential limitations & benefits of using the format)

looks like the create external table part of this ticket is dependent on this: https://github.com/GlareDB/glaredb/issues/2109


♻ Simplify iterator and removeWhere logic

Pull Request Test Coverage Report for Build 35

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-2.0%) to 93.182%

Totals

Change from base Build 32:
-2.0%

Covered Lines:
41

Relevant Lines:
44

💛  - Coveralls

@luanpotter what do you think?

Nice cleanup! So should we merge this first and then the non-null thing? @lig
(as this can improve both the current release and the first non-null release)

@luanpotter I would like to get this in first and then rebase null safety on it. As far as I see around what others are doing in other projects it is better to keep the null safety code in a separate branch for now and release nullsafety suffixed package from that branch.

@luanpotter great thanks! Give me some time to rebase #5 then.


Players being stuck halfway when teleporting to arena spawn

players sometimes "stuck inside their body" when teleporting to an arena

A temporary workaround for this issue is to just simply logout and rejoin the server.


WIP: prepare for visualisation, Plots and Makie as requirements only

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

3 of 8 (37.5%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.09%) to 87.657%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/visualization.jl
0
5
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.09%

Covered Lines:
348

Relevant Lines:
397

💛  - Coveralls


Bug: Behavior Clone's CSV has no attribute name

The first line of this CSV is data, not attribute name. While I can simply work around it, but such a file is very unpleasant to deal with.

This isn't relevant to the starter kit. I separate created an issue here. Unless it pertains to the starter kit please file issues in this repo https://github.com/udacity/sdc-issue-reports.


Make Surface struct fields public

Hi,
I've create cairo-xcb bindings and it needed that Surface struct's fields to be a public. I create surface from a pointer and create context as:
    let csurface = xcb_surface_create(&conn, window, &visual, 150, 150);
    let surface = Surface(csurface);
    let cr = cairo::Context::new(&surface);

I don't like setting fields public. Wouldn't it preferrable to create a #[doc(hidden)] function @gkoz?

You can import glib::translate::FromGlibPtr and use Surface::from_glib_full(ptr).

@gkoz  In this case I should set the glib dependency in Cargo.toml. Maybe will better to add public constructor like Surface::new(ptr) to struct?

I don't see the problem off adding a dependency (which you already have anyway).

What is the problem to make a field public or adding a constructor?

Because we want it to remain opaque.

What is the problem to make a field public

Basically, encapsulation.

or adding a constructor?

The constructors are there, you just need to import a trait to access them. Since the consumers are not supposed to use them, extreme convenience of accessing them is not called for.

Maybe it's crazy but I've solved this problem my own way:
#[derive(Debug)]
pub struct SurfacePub(*mut cairo_surface_t);

let visual = find_visual(&conn, screen.root_visual()).unwrap();
let csurface = xcb_surface_create(&conn, window, &visual, 150, 150);
let surface = unsafe {&*((&SurfacePub(csurface) as *const SurfacePub) as *const Surface)};
let cr = cairo::Context::new(&surface);

I don't believe gratuitous unsafety (pretty sure you have a dangling pointer there) solves anything but I guess everyone has different priorities.


fix: jsModule is null for basemap layer

Hi dear GeoBlazor Team,
Description:
We noticed an issue while setting visibility from a BaseMapLayer.
This issue can be reproduced only if a BaseMapLayer has been added by code to the MapView.
This issue does not occur if a BaseMapLayer has been added using markup of the component (Razor language).
Changes:
To fix this issue, JsModule has been set while executing the AddLayer method, whether isBasemapLayer is true or false.
New test method TestCanSetBaseMapLayerVisibility has been added to validate the fix.
Impact:
This change fix the failure while setting layer visibility from a BaseMapLayer.
Resolves #335
Br,
David from Team GIS - POST Luxembourg

@CyberDNS thanks again for this, will update and merge!

@CyberDNS whoops, forgot, this is coming from your repo, so you'll have to update to merge. Let me know if you need any help.

@CyberDNS since I'm unable to update your repo to resolve conflicts, and I'm sure you are all as busy as we are, I'm going to close this PR and re-open with the same changes.


faq

脚本路由
What is the purpose of the change
Brief changelog
Verifying this change

Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #10546 (edbe6ba) into 3.1 (9db2eb5) will decrease coverage by 0.37%.
The diff coverage is 60.00%.

:exclamation: Current head edbe6ba differs from pull request most recent head 39879c9. Consider uploading reports for the commit 39879c9 to get more accurate results

@@             Coverage Diff              @@
##                3.1   #10546      +/-   ##
============================================
- Coverage     64.76%   64.38%   -0.38%
  Complexity      395      395
============================================
  Files          1331     1331
  Lines         56520    56482      -38
  Branches       8370     8341      -29
============================================
- Hits          36603    36366     -237
- Misses        15978    16154     +176
- Partials       3939     3962      +23

Impacted Files
Coverage Δ

...o/rpc/cluster/router/script/ScriptStateRouter.java
67.30% <60.00%> (ø)

...mmon/serialize/fastjson2/FastJson2ObjectInput.java
0.00% <0.00%> (-62.50%)
:arrow_down:

...mon/serialize/fastjson2/FastJson2ObjectOutput.java
0.00% <0.00%> (-56.25%)
:arrow_down:

...dubbo/remoting/zookeeper/ZookeeperTransporter.java
50.00% <0.00%> (-33.34%)
:arrow_down:

...on/serialize/fastjson2/FastJson2Serialization.java
57.14% <0.00%> (-28.58%)
:arrow_down:

...ng/zookeeper/curator5/Curator5ZookeeperClient.java
43.86% <0.00%> (-26.42%)
:arrow_down:

...nt/metadata/ServiceInstanceHostPortCustomizer.java
65.78% <0.00%> (-21.06%)
:arrow_down:

...n/serialize/fastjson2/Fastjson2CreatorManager.java
46.66% <0.00%> (-20.00%)
:arrow_down:

...ache/dubbo/remoting/transport/AbstractChannel.java
75.00% <0.00%> (-12.50%)
:arrow_down:

...che/dubbo/registry/client/NopServiceDiscovery.java
44.44% <0.00%> (-11.12%)
:arrow_down:

... and 64 more

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


Local development image build

Add docker file for building monocontainer development image.
Used docker compose plugin for local builds
Makefile improvements:

Only rebuild and restart changed containers
Cache tests results (only run changed tests)
(all caches, volumes still can be clean and all containers restart by make clean)

Codecov Report

Merging #316 (58b84aa) into main (9328e4b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #316   +/-   ##
=======================================
  Coverage   27.86%   27.86%
=======================================
  Files          60       60
  Lines        6370     6370
=======================================
  Hits         1775     1775
  Misses       4382     4382
  Partials      213      213

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 9328e4b...58b84aa. Read the comment docs.

Add docker file for building monocontainer development image.

Used docker compose plugin for local builds

Makefile improvements:

Only rebuild and restart changed containers
Cache tests results (only run changed tests)
(all caches, volumes still can be clean and all containers restart by make clean)

I have given the high level idea of using a mono-container some thought. Is the main purpose of this change to make client checkout process simpler?
However, I'm wondering if we have weighed the following drawbacks it may yield:

duplicating build/maintenance effort: instead of leveraging vendor provided builds, we  duplicate FDB build effort and need to amend ours each time there is a change in upstream build
build magnification: each time any of our component change, this image will need to be rebuilt. The more components we get the more frequent this becomes. Potential for bottleneck?
different build/installation path: build/deployment path for local install is going to diverge with this change. Our setup is currently pretty simple but it will grow over time, increasing both size and complexity. Potential for differences in troubleshooting.

Looks good to me! Should we unify the rest of the images and make all of them use 20.04?

We actually will be able to move back to latest Ubuntu, once all dependencies support it.


spectator upgrades

Is your feature request related to a problem? Please describe.
if a player tries to join a full lobby, the experience is... bad
I'm actually not sure what the behavior is, but it's not ideal
Describe the solution you'd like
We should:

redirect the user to the spectator view of that room
make it clearer in the UI that we are just a spectator
add a button for spectators to join the lobby if there is an open space

we should also add a count of how many people are spectating the game

maybe they can interact somehow? emojis???


Instruction take no effect on android app

I've added gradle plugin in to project like this
id("com.vk.vkompose") version "0.1"
vkompose {
    skippabilityCheck {
        stabilityConfigurationPath = project.rootProject.rootDir.absolutePath + "/config/compose/compiler_config.conf"
        isEnabled = true
    }

    recompose {
        isHighlighterEnabled = true
        isLoggerEnabled = true
    }

    testTag {
        isApplierEnabled = true
        isDrawerEnabled = true
        isCleanerEnabled = true
    }

    sourceInformationClean = true
}

And inside Application class
RecomposeLoggerConfig.isEnabled = true
RecomposeHighlighterConfig.isEnabled = true
TestTagDrawConfig.isEnabled = true

Hi. What functionality you want to use?
Also you should add gradle plugin for every module with kotlin code where you want to use compiler plugins.
I see you enable testTag generation and cleaning in same time. It is not correct way.
Could you share sample project where i will be able to reprocude the issue?

Good afternoon, I have the same thing. I configured everything according to the instructions and did not see any results. I didn’t even fully understand what the final result should be. Parameter highlighting, logging?
`vkompose {
skippabilityCheck {
// For more see
// https://android-review.googlesource.com/c/platform/frameworks/support/+/2668595
// https://issuetracker.google.com/issues/309765121
stabilityConfigurationPath = "${project.buildDir.absolutePath}/file.config"
isEnabled = true
}
recompose {
    isHighlighterEnabled = true
    isLoggerEnabled = true
}

testTag {
    isApplierEnabled = true
    isDrawerEnabled = true
    isCleanerEnabled = false
}

sourceInformationClean = true

}`
 RecomposeLoggerConfig.isEnabled = true         RecomposeHighlighterConfig.isEnabled = true         TestTagDrawConfig.isEnabled = true

finally. i have reproduced the problem.
for workaround you can add plugins separately. For example
plugins {
    id("com.vk.recompose-highlighter") version "0.1"
    id("com.vk.recompose-logger") version "0.1"
    id("com.vk.compose-test-tag-applier") version "0.1"
    id("com.vk.compose-test-tag-cleaner") version "0.1"
    id("com.vk.compose-test-tag-drawer") version "0.1"
    id("com.vk.compose-source-information-cleaner") version "0.1"
    id("com.vk.composable-skippability-checker") version "0.1"
}

I am going to publish fixed version very soon. There was problem with races between my plugin and kotlin gradle plugin in afterEvaluate callback.

Check please 0.2 version @rovkinmax @StalDenc

@0xera Everything works, thank you. Just could you share a description of the color schemes for the recompositions?

@StalDenc of course. i took the highlighter from google samples https://github.com/android/snippets/blob/c381c783773ef6744f3fa810e29536876c9858d7/compose/recomposehighlighter/src/main/java/com/example/android/compose/recomposehighlighter/RecomposeHighlighter.kt#L80
Blue: We need at least one composition to draw, so draw the smallest border color in blue.
Green: 2 compositions is probably okay.
Yellow..Red: 3 or more compositions before timeout may indicate an issue. lerp the color from yellow to red, and continually increase the border size.


cloudcommon: 添加--log-file-prefix选项

这个 PR 实现什么功能/修复什么问题:
cloudcommon: 添加--log-file-prefix选项
指定日志文件名，rotate 10，每个100MB
NONE
/hold
待 yunionio/log#6 全并之后，再更新此处

Codecov Report

Merging #670 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master    #670      +/-   ##
=========================================
+ Coverage    7.42%   7.43%   +0.01%
=========================================
  Files         346     346
  Lines       54865   54865
=========================================
+ Hits         4073    4081       +8
+ Misses      50413   50405       -8
  Partials      379     379

Flag
Coverage Δ

#aFlag
7.43% <ø> (+0.01%)
:arrow_up:

Impacted Files
Coverage Δ

pkg/util/rbacutils/rabc.go
72.72% <0%> (+3.03%)
:arrow_up:

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 f4b39af...cbac1ec. Read the comment docs.

/hold cancel
v2 <- v1 更新Gopkg.lock文件

/hold
添加registry，用于记录进程退出时的registry

/hold cancel
v3 <- v2

添加pkg/util/atexit包，用于记录回调
为所有需要长期运行的服务添加atexit调用

v4 <- v3 改正cmd/scheduler编译失败问题
# yunion.io/x/onecloud/cmd/scheduler
cmd/scheduler/main.go:18:2: imported and not used: "os"
make: *** [cmd/scheduler] Error 2
Exited with code 2

v5 <- v4

atexit.Exit()使用defer os.Exit(code)
改正cmd/scheduler的退出状态指定

/lgtm
/approve


Updated UI for Easier Addition of Movies

@Akshithsaai ,you messed up the login and signup pages. Please fix it

@maniyaom I have reviewed your comment and updated the code. Its Working Good now
ScreenShots :
Login Page:

Signup page:

List Movie page:

@Akshithsaai ,In this image, you can see that when viewed on a mobile device, five fields are aligned on the right and five on the left. If the user is opening this on a mobile device, there should not be two separate sections.

#15
@maniyaom  I have worked on this bug and fixed it. Please check and merge this PR.
The changes on done only on List movie page and no where else affected.
Screenshots:
Laptop View:

Mobile View:

@Akshithsaai Whenever you raise a pull request, please ensure you mention the related issue number in the PR description. This will help me navigate to the issue easily and close it.
For example:
Fix #15
Updated UI for Easier Addition of Movies

@maniyaom Thank you for the info. I will definitely follow your Suggestion in the next PR.

@maniyaom
PR #43  made changes that effected the styling of List your movie page.
I request you to look back onto this.

@Akshithsaai Okay, I will look into it.


io: PipeWriter.Write should not block when writing zero bytes

io.PipeWriter.Write([]byte{}) blocks when no readers are waiting at the other end of the pipe. To unblock the pipe zero or more bytes must be read from io.PipeWriter.Read.
I expect io.PipeWriter.Write([]byte{}) to not ever block.
See https://groups.google.com/forum/#!topic/golang-nuts/nRPhBt0zoAM for the discussion.
See http://play.golang.org/p/MNSyKafKYf for an example.

What's the behavior of network or stdio paired writes when there are no corresponding blocking readers? I figure it should emulate that behavior, whatever it is.

There are uses for zero-byte writes, exactly to see whether there are readers, but since nothing is documented it seems unlikely that anybody is relying on it.
Whatever we decide, we should document the behavior.

io.Pipe preserves message boundaries. Writes and Reads are paired one to one (except when it requires multiple Reads to consume a single Write). Write should block when writing zero bytes, until a Read comes along and takes them.

We have so many random rules for 0 byte reads & writes. I'll add this to my mental list of special cases. This might be fine behavior for a PipeFoo but it'd be really nice to define semantics for 0-byte operations on the io.Reader and io.Writer interfaces.

@rsc Does that make this WAI? Or should we repurpose this issue to improve the documentation?

Yes, it sounds like documentation.


倪师GPT

倪师GPT，你的使命是传承倪海厦老师的医德医术，为有健康困扰、以及希望学习和了解传统中医的人们带去光明和帮助。

Ni Shi GPT, your mission is to inherit the medical ethics and skills of Master Ni Haisha, bringing light and assistance to those troubled by health issues, as well as those wishing to learn and understand traditional Chinese medicine. The scenarios are divided into two types: The first is to answer people's health queries, helping those troubled by diseases with reference ideas, but it will not involve explicit prescriptions and diagnoses, and it will recommend that final diagnosis and prescriptions should be carried out in a hospital; the second type is to provide a platform for exchange and learning for those interested in traditional Chinese medicine.

This application will continuously update its knowledge base and will never collect users' personal information.

Please raise a pull request for the same


Alter table not using correct table name in Schema::table().

Hi, you recently made interactive-make work with laravel 6.
Seems that the generated migration file is incorrect for an alter table scenario.
I'm expecting the first parameter of Schema::table() to be 'table_name' - instead its the name of migration file ('alter_table_name_table_add_x_column').

P.S - if you do take a look at this... could you also see if this package works with laravel 7 which was release this past week? We haven't upgraded ourself yet but probably will soon.

I will have a look at that :)  thanks for reporting it

Just chiming in @IndexZer0 , but I'm using it in Laravel 7.X perfectly 👍


Add scope information to generated types

Codecov Report

Merging #51 (d4102c1) into main (fc1d9fd) will decrease coverage by 0.38%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
- Coverage   86.22%   85.84%   -0.39%
==========================================
  Files          16       16
  Lines         225      226       +1
==========================================
  Hits          194      194
- Misses         31       32       +1

Flag
Coverage Δ

dotnet
85.84% <ø> (-0.39%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/Bicep.Types/Concrete/ResourceType.cs
66.66% <0.00%> (-33.34%)
:arrow_down:

Valid Scope(s): Unknown

I think we're going to have to revisit proposing that swagger extension to make this more accurate in the future.

Refers to: generated/blueprint/microsoft.blueprint/2018-11-01-preview/types.md:4 in d4102c1. [](commit_id = d4102c14296ef3f1f060914cb26b7c5fe6fa0849, deletion_comment = False)

Additional Properties Type: string

CodeFlow choked on this PR. This is the last one I see, but GitHub shows more :(

Refers to: generated/EnterpriseKnowledgeGraph/microsoft.enterpriseknowledgegraph/2018-12-03/types.md:27 in d4102c1. [](commit_id = d4102c14296ef3f1f060914cb26b7c5fe6fa0849, deletion_comment = False)

Valid Scope(s): Unknown

I think we're going to have to revisit proposing that swagger extension to make this more accurate in the future.

Agreed. For now, I've been collecting information for ambiguous scoped types here, which we could also consider using in this project: https://github.com/Azure/azure-resource-manager-schemas/blob/master/generator/autogenlist.ts#L80-L97


can support socket5 proxy?

can support socket5 proxy?

Hi @ywww sorry, I must have missed this! I don't have any experience with socks5 proxies, could you clarify the question? Do you want to run a tarpc service on top of a socks5 bytestream?

Closing this due to lack of activity, but feel free to reopen if you're still interested!


Fix the percentage for r5.8xl default case

Description
The percentage for default case in performance table for instance 8xl should be +ve instead of -ve. There seems to be a typo
Issues Resolved
N/A
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

Can someone please help verify if table looks good after this edit ?


Error deployment to Azure from VS Code

at the time of deploying azure through the extension of visual studio code I launched the following error attached.
Project reactjs
Repro steps:

First Deploy web app

Action: appService.Deploy
Error type: 404
Error Message: An error has occurred.
Version: 0.15.0
OS: win32
Product: Visual Studio Code
Product Version: 1.37.1
Language: es

Call Stack
module.exports.o.pipeline extension.bundle.js:332:397979
s extension.bundle.js:262:112563
s extension.bundle.js:157:26036
extension.bundle.js:157:27276extension.bundle.js:157:27276
o extension.bundle.js:208:7054
extension.bundle.js:157:24957extension.bundle.js:157:24957
$.module.exports.t.requestLibrarySink.t.headersOnly.t.streamedResponse.t.body.function.t.body.pipe.a [as _callback] extension.bundle.js:1:534414
$.module.exports.$.init.t._callback.t.callback.t.callback extension.bundle.js:238:5461
$.emit events.js:182:13
$.<anonymous> extension.bundle.js:238:18274
$.emit events.js:187:15
IncomingMessage.<anonymous> extension.bundle.js:238:17116
Object.onceWrapper events.js:273:13
IncomingMessage.emit events.js:187:15
endReadableNT _stream_readable.js:1092:12
process._tickCallback next_tick.js:63:19

Hi @vcasasc
Thanks for reporting.  Does this issue reproduce consistently?  Is this a new web app?

Hi @nturinski
It only happened once. And it is not a new application, it is an existing application.
All this happened at the time of deploying from vS Code with the Azure extension. But finally I was able to deploy successfully after the error occurred, that is, on the second attempt.

Closing due to lack of activity and because this was likely a transient error coming directly from Azure


I want to add some animation for a better user experience

@akhileshverma92 we don't need any particular animation. than you!
]

please give ⭐ our repo

Join our official Discord server & discuss about new features and bugs raise issue & PR accordingly.

And also follow us on Linkedin
[01:34, 10/4/2024] Azfar:


Multiple emails

How do I send am email to multiple addresses?

nevermind sorry, figured it out

How did you manage to do it?

Sorry, I forget, it was awhile ago and I don't have access to the repository where I got it working anymore :/


meta/mysql & pgsql: set defalut transation_isolation to repeatable-read

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Frice seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Adding service version logging

Prints service version to console after running fastly log-tail. (JIRA ticket)

This is an empty starter kit - I think we really only need to log the service version in default starters.


Update default init_soc for DesignProblem

Description
Update the default value of the init_soc parameter of DesignProblem.
Issue reference
Fixes #421
Review
Before you mark your PR as ready for review, please ensure that you've considered the following:

Updated the CHANGELOG.md in reverse chronological order (newest at the top) with a concise description of the changes, including the PR number.
Noted any breaking changes, including details on how it might impact existing functionality.

Type of change

[ ] New Feature: A non-breaking change that adds new functionality.
[ ] Optimization: A code change that improves performance.
[ ] Examples: A change to existing or additional examples.
[ ] Bug Fix: A non-breaking change that addresses an issue.
[ ] Documentation: Updates to documentation or new documentation for new features.
[ ] Refactoring: Non-functional changes that improve the codebase.
[ ] Style: Non-functional changes related to code style (formatting, naming, etc).
[ ] Testing: Additional tests to improve coverage or confirm functionality.
[ ] Other: (Insert description of change)

Key checklist:

[ ] No style issues: $ pre-commit run (or $ nox -s pre-commit) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
[ ] All unit tests pass: $ nox -s tests
[ ] The documentation builds: $ nox -s doctest

You can run integration tests, unit tests, and doctests together at once, using $ nox -s quick.
Further checks:

[ ] Code is well-commented, especially in complex or unclear areas.
[ ] Added tests that prove my fix is effective or that my feature works.
[ ] Checked that coverage remains or improves, and added tests if necessary to maintain or increase coverage.

Thank you for contributing to our project! Your efforts help us to deliver great software.

@BradyPlanden shall I merge this one into #425 or develop?

Either is fine with me, although if it merges into develop, the private attributes will need the be fixed in #435 before that can be merged.


Support decoding L0 Tracer Metrics

Summary
Extend the support of tracer metrics (https://github.com/oneapi-src/level-zero-spec/issues/285) to allow decoding raw events.
Details
Motivation
Extend users visibility of the raw data collected to allow retrieving in a format that allows parsing.
Interoperability with Other APIs
Raw data retrieved by zetMetricTracerReadDataExp() can be used as input to an API that decodes it to a format that allows parsing.
Proposed APIs
New Enumerations
Extend the metrics types https://spec.oneapi.io/level-zero/latest/tools/api.html#_CPPv417zet_metric_type_t
zet_metric_type_t {
...
 ZET_METRIC_TYPE_EXP_EVENT_NO_VALUE
Metric type:  have only timestamp and value has no meaning.
ZET_METRIC_TYPE_EXP_EVENT_START
Metric type: the first event of a start/stop event pair.
ZET_METRIC_TYPE_EXP_EVENT_END
Metric type: the second event of a start/stop event pair.
ZET_METRIC_TYPE_EXP_EVENT_INSTANT
Metric type: instance event (non-paired).
ZET_METRIC_TYPE_EXP_EVENT_ MONOTHONIC_WRAPS_VALUE
Metric type: value of the event is a monotonic increasing value that can wrap around.
}

New Handles
zet_metric_decoder_exp_handle_t
Metric tracer decoder handle
New Structures
zet_metric_entry_exp_t
   typedef struct _zet_metric_entry_exp_t {
    zet_value_t value;
    uint64_t timeStamp;
    uint32_t metricIndex;
} zet_metric_entry_exp_t;

Attribute
Description

value
[out] value of the decodable metric entry or event. Number is meaningful based on the metric type

timeStamp
[out] timestamp at which the event happened in the trace

metricIndex
[out] index to the decodable metric handle in the input array (phMetric) in zetMetricTracerDecode()

New Functions
zetMetricDecoderCreateExp
ze_result_t  zetMetricDecoderCreateExp(zet_metric_tracer_exp_handle_t hMetricTracer,  zet_metric_decoder_exp_handle_t *phMetricDecoder);

Create a metric decoder for a given metric tracer.

Parameter
Description

hMetricTracer
[in] handle of the metric tracer object

phMetricDecoder
[in] handle of the metric decoder object

zetMetricDecoderDestroyExp
ze_result_t  zetMetricDecoderDestroyExp(zet_metric_decoder_exp_handle_t hMetricDecoder);

Destroy the metric decoder.

Parameter
Description

hMetricDecoder
[in] handle of the metric decoder object

zetMetricDecoderGetDecodableMetricsExp
ze_result_t zetMetricDecoderGetDecodableMetricsExp(zet_metric_decoder_exp_handle_t    hMetricDecoder, uint32_t *pCount, zet_metric_handle_t *phMetrics);

Return the list of the decodable metrics that can be collected in the tracer for the which the metric decoder handle was provided. The decodable metrics handles returned by this API are only valid to decode metrics raw data with zetMetricTracerDecodeExp(). Decodable metric handles are not valid to compare with metrics handles included in metric groups.

Parameter
Description

hMetricDecoder
[in] handle of the metrics decoder object

pCount
[in,out] pointer to number of decodable metric in the hMetricDecoder handle.  If count is zero, then the driver shall update the value with the total number of decodable metrics available in the decoder. if count is greater than zero but less than the total number of decodable metrics available in the decoder, then only that number will be returned. if count is greater than the number of decodable metrics available in the decoder, then the driver shall update the value with the actual number of decodable metrics available.

phMetrics
[in,out] [range(0, pCount)] array of handles of decodable metrics in the hMetricDecoder handle provided

zetMetricTracerDecodeExp
ze_result_t zetMetricTracerDecodeExp(zet_metric_decoder_exp_handle_t    hMetricDecoder,  size_t *prawDataSize, const uint8_t *pRawData, uint32_t metricCount, zet_metric_handle_t *phMetric, uint32_t *pMetricEntriesCount, ze_metric_entry_exp_t   * pMetricEntries);

Decode raw events collected from a tracer into list of ze_metric_entry_exp_t

Parameter
Description

hMetricDecoder
[in] handle of the metrics decoder object

prawDataSize
[in,out] size in bytes of raw data buffer.  If pMetricEntriesCount is greater than zero but less than total number of decodable metrics available in the raw data buffer, then driver shall update this value with actual number of raw data bytes processed.

pRawData
[in][range(0, rawDataSize)] buffer of raw data to decode

metricCount
[in] number of decodable metrics in the tracer for which the hMetricDecoder handle was provided. See zetMetricDecoderGetDecodableMetricsExp(). If metricCount is greater than zero but less than the number decodable metrics available in the raw data buffer, then driver shall only decode those

phMetric
[in] [range(0, metricCount)] array of handles of decodable metrics in the decoder for which the hMetricDecoder handle was provided. Metrics handles are expected to be for decodable metrics, see zetMetricDecoderGetDecodableMetrics ()

pMetricEntriesCount
[in,out] pointer to number of decodable metric entries to be decoded. If count is zero, then the driver shall update the value with the total number of decodable metric entries to be decoded. If count is greater than zero but less than the total number available in the raw data, then only that number of results will be decoded. if count is greater than the number available in the raw data buffer, then the driver shall update the value with the actual number of decodable metric entries to be decoded

pMetricEntries
[in,out] [in,out][optional][range(0, * pMetricEntriesCount)] buffer of decoded metric  entries

Usage Example
Extend example provided in https://github.com/oneapi-src/level-zero-spec/issues/285 with decoder APIs
    ...
    zetMetricTracerCreateExp(hContext, hDevice, 1, hMetricGroup , &tracerDescriptor, hNotificationEvent, &hMetricTracer);
    // create decoder

    zet_metric_decoder_exp_handle_t hMetricDecoder;
    zetMetricDecoderCreateExp( hMetricTracer,  zet_metric_decoder_exp_handle_t &hMetricDecoder);

   //get decodable metrics

   uint32_t numDecodableMetrics=0;
   ze_result_t zetMetricDecoderGetDecodableMetricsExp(hMetricDecoder, &numDecodableMetrics, nullptr);
   std::vector<zet_metric_handle_t>decodableMetrics(numDecodableMetrics);
   ze_result_t zetMetricDecoderGetDecodableMetricsExp(hMetricDecoder, &numDecodableMetrics, decodableMetrics);

    zetMetricTracerEnableExp(hMetricTracer, true);
    workload(hDevice);
    size_t rawDataSize = 0;
    zetMetricTracerReadDataExp(hMetricTracer, &rawDataSize, nullptr);
    uint8_t* rawData = malloc(rawDataSize);
    zetMetricTracerReadDataExp(hMetricTracer, &rawDataSize, rawData);

   // decode
   uint32_t numEntries =0;
   ze_result_t zetMetricTracerDecodeExp(hMetricDecoder,  &prawDataSize, pRawData, numDecodableMetrics, decodableMetrics,
   &numEntries, nullptr);
   std::vector<ze_metric_entry_exp_t > decodedEntries(numEntries)
   ze_result_t zetMetricTracerDecodeExp(hMetricDecoder,  &prawDataSize, pRawData, numDecodableMetrics, decodableMetrics,
   &numEntries, decodedEntries);

    for (uint32_t index = 0; index < numEntries; index++) {
        ze_metric_entry_exp_t metricEntry = decodedEntries[index];
        zet_metric_properties_t metricProperties = {};
        lzt::get_metric_properties(
            decodableMetrics[metricEntry.metricIndex], &metricProperties);
        printf ("Component: %s .Decodable metric name: %s ", metricProperties.component,  metricProperties.name);
        switch (metricProperties.resultType) {
        case ZET_VALUE_TYPE_UINT32:
        case ZET_VALUE_TYPE_UINT8:
        case ZET_VALUE_TYPE_UINT16:
            printf "\t value: %lu \n" << metricEntry.value.ui32;
          break;
        case ZET_VALUE_TYPE_UINT64:
            printf "\t value: %llu \n" << metricEntry.value.ui64;
          break;
        case ZET_VALUE_TYPE_FLOAT32:
            printf "\t value: %f \n" << metricEntry.value.fp32;
          break;
        case ZET_VALUE_TYPE_FLOAT64:
            printf "\t value: %f \n" << metricEntry.value.fp64;
          break;
        case ZET_VALUE_TYPE_BOOL8:
	 if( metricEntry.value.b8 )
                    printf(" Value: true\n" );
                else
                    printf(" Value: false\n" );
                break;
          break;
        default:
         break;
        }
       }

    // Close and cleanup

    zetMetricTracerDisableExp(hMetricTracer, true);
    zetMetricDecoderDestroyExp(hMetricDecoder);
    zetMetricTracerDestroyExp(hMetricTracer);
    free(rawData);

@wdamon-intel


The underlying connection was closed before the hub handshake could complete

I implemented the code . It's Working in some devices . But In Some of the devices it's showing the following error .
I guess the main reason is that connection is not establishing.
"The underlying connection was closed before the hub handshake could complete"

I was having the same issue and I managed to fixed it setting the transport in options to LongPolling
hubConnection = HubConnectionBuilder()
.withUrl(serverUrl,
options: HttpConnectionOptions(
transport: HttpTransportType.LongPolling,
))

same issues,  any solution?

hi @sefidgaran
any solution to fix this problem?

hi @sefidgaran
it is not working.

I can confirm that i get the error aswell. I am on flutter 3.0.0.
If i try to use the transport option longpolling i will get an error aswell.

I am getting this error as well.
When I test locally on windows it works very well, but the error appears when I publish on the linux server.
Any solution to fix this problem ?.

In my case I set correct port that solved this problem

I was striggiling with the same ussue, but in my case API-devs created accessToken to API and I used it wrong. So as I understood SingleR package put in headers access tokens and if you API-devs configure token as "&authinticate=tokens_long_string_key_example", it is not gonna work, because server can't negotiate (I didn't remember verbatim the error in this case, but it will be something about negotiation). In my case to resolve this issue I should have in request body access-token instead of authinticate. Also really highly reccomend to use this Logger package logging: any, it is real time-saver

In my case, it's the Authorization that caused this problem, in detail, every step needs to add Authorization in the header including during websocket handshaking.  Hope this would help.


License?

Hey, very nice and useful library. However, the license is unclear. Would you consider adding it?

Oh hey, Its MIT just added the license. 😉


Unicorn Error

Hi there,
I have followed the installation instructions here to install on a Ubuntu based server over at DigitalOcean. I am new to nginx (familiar with apache) so a little lost.
I am getting the following error:
2016/04/19 23:15:19 [crit] 979#0: *1 connect() to unix:/home/huginn/huginn/tmp/sockets/unicorn.socket failed (2: No such file or directory) while connecting to upstream, client: <IP_ADDRESS>, server: IPCOMMENTEDOUT, request: "GET / HTTP/1.1", upstream: "http://unix:/home/huginn/hug$
As noted in the installation instructions, I have CONFIRMED that my Procfile file is correct and that the unicorn config exists. I do not want to use Huginn on a domain, just the root server IP. Is this what is causing the issue?

Hi @OliverGee,
the issue you are noticing can have multiple causes. First check that the unicorn process is running ps aux|grep unicorn.  If it isn't run sudo bundle exec rake production:export
Next  ensure the unicorn socket file exists sudo ls -al /home/huginn/huginn/tmp/sockets/unicorn.socket. If it doesn't the unicorn configuration is not set up correctly.
Now we need to check if the socket is accessible by the www-data user nginx is using sudo -u www-data ls -al /home/huginn/huginn/tmp/sockets/unicorn.socket. If that does not work the permissions for the huginn home directory are set too tightly.
When everything looks good please post the output of the other log files listed in the troubleshooting section

Hi @dsander
Thanks for your swift response.
I ran into issues with the socket file. It throws a 'no such file or directory' error when running the command sudo ls -al /home/huginn/huginn/tmp/sockets/unicorn.socket so it seems we found the problem!
Should I reinstall?

Can you post the contents of the unicorn configuration? It should be in /home/huginn/huginn/config/unicorn.rb

wd = File.expand_path(File.join(File.dirname(__FILE__), '..'))

app_path = wd

worker_processes 1
preload_app true
timeout 180
listen "#{wd}/tmp/sockets/unicorn.socket"

working_directory app_path

rails_env = ENV['RAILS_ENV'] || 'production'

# Log everything to one file
stderr_path "log/unicorn.log"
stdout_path "log/unicorn.log"

# Set master PID location
pid "#{wd}/tmp/pids/unicorn.pid"

before_fork do |server, worker|
  ActiveRecord::Base.connection.disconnect!
  old_pid = "#{server.config[:pid]}.oldbin"
  if File.exist?(old_pid) && server.pid != old_pid
    begin
      Process.kill("QUIT", File.read(old_pid).to_i)
    rescue Errno::ENOENT, Errno::ESRCH
      # someone else did our job for us
    end
  end
end

after_fork do |server, worker|
  ActiveRecord::Base.establish_connection
end

Thanks, that looks perfectly fine.
Can you run the following command and provide the output of /home/huginn/huginn/log/unicorn.log afterwards?
sudo bundle exec rake production:stop
sudo bundle exec rake production:export
sudo bundle exec rake production:start

Thanks for your help thus far.
I ran the commands you listed but there appears to be no log output. The only file in the log folder is production.log.

Ok, can you post your Procfile?

I'm sure it's going to be something simple I've buggered up!
# Old version with separate processes (use this if you have issues with the threaded version)
# web: bundle exec rails server
# schedule: bundle exec rails runner bin/schedule.rb
# twitter: bundle exec rails runner bin/twitter_stream.rb
# dj: bundle exec script/delayed_job run

###############################
#         PRODUCTION          #
###############################

# You need to copy or link config/unicorn.rb.example to config/unicorn.rb for both production versions.
# Have a look at the deployment guides, if you want to set up huginn on your server:
# https://github.com/cantino/huginn/doc

# Using the threaded worker (consumes less RAM but can run slower)
 web: bundle exec unicorn -c config/unicorn.rb
 jobs: bundle exec rails runner bin/threaded.rb

# Old version with separate processes (use this if you have issues with the threaded version)
# web: bundle exec unicorn -c config/unicorn.rb
# schedule: bundle exec rails runner bin/schedule.rb
# twitter: bundle exec rails runner bin/twitter_stream.rb
# dj: bundle exec script/delayed_job run

###############################
# Multiple DelayedJob workers #
###############################
# Per default Huginn can just run one agent at a time. Using a lot of agents or calling slow
# external services frequently might require more DelayedJob workers (an indicator for this is
# a backlog in your 'Job Management' page).
# Every uncommented line starts an additional DelayedJob worker. This works for development, production
# and for the threaded and separate worker processes.

Amazing. That was it! Thanks for all your help. I feel like an absolute moron :dancer:

Great, glad that fixed the issue!

Hi,
I also make this mistake.And when I finished this code,
sudo bundle exec rake production:stop
sudo bundle exec rake production:export
sudo bundle exec rake production:start
the /home/huginn/huginn/log/unicorn.log has a so long output.

I, [2017-11-26T09:17:42.436273 #13421]  INFO -- : Refreshing Gem list
bundler: failed to load command: unicorn (/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bin/unicorn)
NameError: uninitialized constant Rack::LiveReload
/home/huginn/huginn/config/environments/development.rb:4:in block in <top (required)>'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/railtie.rb:211:in instance_eval'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/railtie.rb:211:in configure'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/railtie.rb:173:in configure'
/home/huginn/huginn/config/environments/development.rb:3:in <top (required)>'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/engine.rb:600:in block (2 levels) in class:Engine'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/engine.rb:599:in each'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/engine.rb:599:in block in class:Engine'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/initializable.rb:30:in instance_exec'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/initializable.rb:30:in run'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/initializable.rb:59:in block in run_initializers'   /usr/local/lib/ruby/2.4.0/tsort.rb:228:in block in tsort_each'
/usr/local/lib/ruby/2.4.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component'   /usr/local/lib/ruby/2.4.0/tsort.rb:422:in block (2 levels) in each_strongly_connected_component_from'
/usr/local/lib/ruby/2.4.0/tsort.rb:431:in each_strongly_connected_component_from'   /usr/local/lib/ruby/2.4.0/tsort.rb:421:in block in each_strongly_connected_component_from'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/initializable.rb:48:in each'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/initializable.rb:48:in tsort_each_child'
/usr/local/lib/ruby/2.4.0/tsort.rb:415:in call'   /usr/local/lib/ruby/2.4.0/tsort.rb:415:in each_strongly_connected_component_from'
/usr/local/lib/ruby/2.4.0/tsort.rb:349:in block in each_strongly_connected_component'   /usr/local/lib/ruby/2.4.0/tsort.rb:347:in each'
/usr/local/lib/ruby/2.4.0/tsort.rb:347:in call'   /usr/local/lib/ruby/2.4.0/tsort.rb:347:in each_strongly_connected_component'
/usr/local/lib/ruby/2.4.0/tsort.rb:226:in tsort_each'   /usr/local/lib/ruby/2.4.0/tsort.rb:205:in tsort_each'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/initializable.rb:58:in run_initializers'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/application.rb:353:in initialize!'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/railtie.rb:185:in public_send'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/railtie.rb:185:in method_missing'
/home/huginn/huginn/config/environment.rb:5:in <top (required)>'   config.ru:4:in require_relative'
config.ru:4:in block in <main>'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in instance_eval'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in initialize'   config.ru:1:in new'
config.ru:1:in <main>'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/unicorn-5.1.0/lib/unicorn.rb:56:in eval'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/unicorn-5.1.0/lib/unicorn.rb:56:in block in builder'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:752:in build_app!'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:129:in start'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/unicorn-5.1.0/bin/unicorn:126:in <top (required)>'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in load'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/bin/unicorn:23:in <top (required)>'
I, [2017-11-26T09:19:28.591143 #13493]  INFO -- : Refreshing Gem list
bundler: failed to load command: unicorn (/home/huginn/huginn/vendor/bundle/ruby/2.4.0/bin/unicorn)
NameError: uninitialized constant Rack::LiveReload
/home/huginn/huginn/config/environments/development.rb:4:in block in <top (required)>'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/railtie.rb:211:in instance_eval'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/railtie.rb:211:in configure'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/railtie.rb:173:in configure'
/home/huginn/huginn/config/environments/development.rb:3:in <top (required)>'   /home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/engine.rb:600:in block (2 levels) in class:Engine'
/home/huginn/huginn/vendor/bundle/ruby/2.4.0/gems/railties-5.1.1/lib/rails/engine.rb:599:in `each'
@
I don't know that's what cause it.Can you give me some advise?

@zytomorrow Check the configure it section of the guide, I guess did you uncomment RAILS_ENV=production in the .env file.

You're right!!! I ignore this step.Thanks for your help.Now I can do some interesting things.


Signature change for CommandLine.populateCommand() and new CommandLine()

both CommandLine.populateCommand() and new CommandLine() expects user to pass which command object against which parsing of the arguments to be done.
In reality, when program is launched with CLI commands, program is not sure what command user is asking to be executed..
This can be big if condition to identify which command object could that be..to satisfy populateCommand and new  CommandLine() call, better this can be avoid..
Currently, to overcome this, I am creating a Virtual command, with all the commands as subcommands and parsing.

What you are currently doing (what you call a virtual command) is the correct way to deal with this.
Your java program will be invoked in one of the following ways:

java -cp somejar.jar com.yourproject.YourMainClass -option=value subcommand -option2=value2 etc

java -jar someExecutable.jar -option=value subcommand -option2=value2 etc

wrapperscript -option=value subcommand -option2=value2 etc

Note that the top-level command at the top of the CommandLine hierarchy does not actually appear on the command line. Only subcommand(s) appear on the command line. So in a way picocli gives you a virtual command already. The @Command(name="commandname") for the top-level command is mostly for the usage help message, rather than for parsing.

java -cp somejar.jar com.yourproject.YourMainClass -option=value subcommand1 -option2=value2 etc
java -jar someExecutable.jar -option=value subcommand2  -option2=value2 etc
wrapperscript -option=value subcommand3  -option2=value2 etc
In above 3 commands, how to use the api  populateCommand() and new CommandLine()
as one of the parameter these api takes is exact sub-command to be passed. However, when main method is invoked, it could be subcommand1 or subcommand2 etc..

Only subcommand(s) appear on the command line.

If that is the case, any reason to name the annotation a @Command..instead of @SubCommand
The way I understand sub-command is , say in eg.
hadoop fs –help ls
in this fs is command, ls is sub command, this ls is valid subcommand of fs and not for hadoop version similarly
in
hadoop fs –help mkdir
fs is main command, mkdir is sub command
more details on hadoop command line as example are
https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/CommandsManual.html

In my understanding hadoop is the command, and fs is the subcommand, and ls and mkdir are sub-subcommands. This is similar to git.
The wrapper script name or the main class name could be considered the command name, but as you know, in java it is not part of the command line arguments, so they are not relevant for parsing purposes. I guess this is a quirk of Java.

I get the impression that this question is a different way to phrase the question under #156. Did my answers clear up things for you?

Your info did give me good clarity that everything can be treated as sub command at main level, however, my question still remains, when the main method is called, how to avoid long if condition to know what command is called.. to invoke populateCommand command. Wish that logic gets handled by this framework.
That, can we add new api or modify existing, so that, one can blindly pass all the arg to this cli framework and it can best job of matching the which Command user is invoking based on the knowledge it has of all the @Command(s) defined.

Thanks for following up. I think I finally understand. Let's walk through this example:
Suppose you designed your application to have a command hierarchy that looks like this:
parking
|
+- enter
|
+- exit
|
+- admin
    |
    +- query -usage -exceedingTimeLimit
    |
    +- open
    |
    +- close

One way to implement this design could look like this:
// class Parking
public static void main(String[] args) {
  CommandLine application = new CommandLine(new Parking())
    .addSubcommand(new Enter())
    .addSubcommand(new Exit())
    .addSubcommand(new CommandLine(new Admin())
        .addSubcommand(new Query())
        .addSubcommand(new Open())
        .addSubcommand(new Close())
       )
    );

  // now parse the command line
  List<CommandLine> parsedCommands = application.parse(args);

  // often you are interested in the last
  // (most deeply nested) subcommand
  CommandLine deepest = parsedCommands.get(parsedCommands.size() -1);

  // the following is application-specific, but let's assume that
  // every subcommand implements Runnable
  Runnable subcommand = (Runnable) deepest.getCommand();
  subcommand.run();
} // end main

Very close.. except that, I have many root level commands
enter carNumber
exit  slot
pay amount
query color
This way, when user call main method he can say
java  | ... etc..
This in main method, I first need to find out which command user is trying to invoking.
Yes, I can do this with virtual command as Parking and making all of them as subcommands, however, it would be nice, if we have some api to deal with it directly, such as
CommandLine cmd = CommandLine.findAndParse(args);

Do you have a separate Java class (with a static main method) for each root level command?
That is, do you run your commands like this?
java -cp myApp.jar com.nagkumar.parking.Enter 213
java -cp myApp.jar com.nagkumar.parking.Exit 999888
java -cp myApp.jar com.nagkumar.parking.Pay 50.0
java -cp myApp.jar com.nagkumar.parking.Query blue

exactly, I have one jar with many commands in it however I have only one main class and that main method is not in any of the commands.
Above case my side is
java -cp myApp.jar com.teja.Application create_parking 213
java -cp myApp.jar com.teja.Application park car white ka05ma2456
java -cp myApp.jar com.teja.Application leave 4
java -cp myApp.jar com.teja.Application status
This way, only when one main method exists, I am unable to know which command is being invoked.. hence was looking for some form of api, which can give me best matching command line given just arguments.

I must be missing something, because I still don't see why the current API does not work for you. It seems very natural to me to create a virtual command encompassing all subcommands. In fact, I don't see how one could do without it...
I understand you want to be able to blindly pass the command line arguments, and I agree. That is exactly why there needs to be a single top-level CommandLine instance that has the full hierarchy of subcommands. This allows you to just pass the command line arguments array to the parse method and let picocli do the hard work of figuring out which subcommands were invoked (see the example above).
The application is a set of subcommands (and potentially nested sub-sub commands). This subcommand hierarchy needs to be defined somewhere anyway, why not use the picocli API?
Is there something that prevents you from defining the hierarchy of subcommands in a single top-level CommandLine instance? Or, assuming that you use this recommended approach (define the full hierarchy of subcommands in a single top-level CommandLine instance - the virtual command), is there some use case that you cannot accomplish with this?

virtual command encompassing all subcommands
Advantage of api abstracting this is to avoid the boiler place code which can avoid few bugs, as one needs to remember to add the subcommands.. whenever they get added..

I guess what you are referring to is your suggestion in #152 to register subcommands via annotations to replace code like the below.
  CommandLine application = new CommandLine(new Application())
    .addSubcommand(new Enter())
    .addSubcommand(new Exit())
    .addSubcommand(new CommandLine(new Admin())
        .addSubcommand(new QueryStatus())
        .addSubcommand(new CreateParking())
        .addSubcommand(new CloseParking())
       )
    );

I am actually reasonably happy with the current API. I like that there is a single unambiguous place where the command hierarchy is defined. The code is reasonably compact; I would not describe the above as boiler plate code, but perhaps others think differently.
I will give your proposal on #152 more thought. Meanwhile, can this issue be closed?

Sure. We can close this. It has conveyed what i am looking for.


studySessionData  not working in group studies

I'm writing a gorup study, when i try to define a studysessiondata in  a component and access it in later components, the later components complain that studySessionData is undefined. However, i successfully print the studysessiondata to the console in the first components, i guess the problem roots in the fact that i was using one compouter instead of two, so the group member's studysessiondata interfered with each other, but i'm not sure, would somebody please give me some help about what's going wrong here?
Thanks~

This kind of question is better asked in the forum https://forum.cogsci.nl/categories/jatos.


Foreign key constraints of AddColumn is ignored

Example
<changeSet id="PP-TEST" author="system1" context="master">
    <addColumn tableName="test_table">
        <column name="testColumn" type="bigint(20)">
            <constraints nullable="true"
                         foreignKeyName="fk_test_column"
                         references="test_parent(id)"/>
        </column>
    </addColumn>
</changeSet>

With liquibase-percona, the foreign key "fk_test_column" is not created at all.

Now foreign key as well as unique key constraints are considered.

Need to support attributes "referencedTableName" + "referencedColumnNames" for foreign keys...


[Unit Tests] Helpers: sendMessage

Need to make a unit test for sendMessage helpers

I'm working on that one


Add DocumentMatcher

This matcher allows expectations to be checked on the entire documentation value
for an exposure, or individual keys of the documentation.

Looks like I already merge this into the rule-service branch we're using. The PR is still open against the original repo.


multilingual training

Hi! This project seems extremely promising. I was wondering whether you would in the future support scripts/instructions to train models to perform in other languages (non-english). For example, there are multiple bert versions in my native tongue, but none of them which could output mel tokens based on a trained dataset.
Would you recommend options on how to accomplish this in the scope of this project? Could try to figure out a code for it myself also and then share my findings also if i manage to figure it out. Do you have any discord server where there would be a possibility to i could discuss further how this TTS - pipeline process works?
Love what you guys have done with this project.

Multilingual training is supported now. Here is the dataset format for different language.
https://github.com/RVC-Boss/GPT-SoVITS?tab=readme-ov-file#dataset-format
Also you can add your own languague in https://github.com/RVC-Boss/GPT-SoVITS/blob/main/GPT_SoVITS/text/cleaner.py


viewDidAppear called twice

I have this scenario:
- (NSArray *)childViewControllersForPagerTabStripViewController:(XLPagerTabStripViewController *)pagerTabStripViewController{

    UIViewController *viewController1 = [[UIViewController alloc] init];

    UIViewController *viewController2 = [[UIViewController alloc] init];

    return @[viewController1, viewController2];

}

When XLPagerTabStrip is loaded, the viewDidAppear method is called twice in viewController1. This only happen with the first controller.
Any reasons?
Thanks in advance.

Hi frandelarosa,
I am having the same issue. I fixed it by commenting two lines in PagerTabStripViewController.swift .
224 -> childController.beginAppearanceTransition(true, animated : false)
229 -> childController.endAppearanceTransition()

ok, now it works! thanks @kansaraprateek.
@mats-claassen we can get an official fix for this issue?


Make country name searchable for feeds without an auto-extracted location

Describe the problem
In cases where the location of a feed can't be extracted, right now it won't display when the full country name is searched, e.g "Germany".
Proposed solution
Add the country name to feeds without an auto-extracted location
Alternatives you've considered
No response
Additional context
No response

Duplicate of #694


can not access "/dataset/gpmdb/GPM11210002594"

When accessing the "/dataset/gpmdb/GPM11210002594" ,the page is completely empty and the console print the error:
http://errors.angularjs.org/1.4.7/$parse/syntax?p0=%2F&p1=not%20a%20primary%20expression&p2=1&p3=%2Fi&p4=%2Fi
The bug is due to meta_dataset_abstract's content including {{i}}  {{/i}} getting from the apihttp://www.omicsdi.org/ws/dataset/get?acc=GPM11210002594&database=gpmdb.Angular will regard them as normal expression to parse,but they are not rightful inside "" punctuation.So we replace it with empty space in back-end by java.
Any questions about dasaset pages are welcome.

@ypriverol @mindcrusher11

@Ricardo-Ke Great to see this issue here. I told with @baimingze before that for some providers we will have html characters. This is the case for GPMDB ArrayExpress and PeptideAtlas. My question is:
Can we render this text using the HTML tags? then we don't need to care in the server side about it. In this particular example will be render {{i}} {{/i}} as   is that possible. If not we can remove it.

It is best to remove it

Where should we place the text using the HTML tags?I've got a similar question:
when i access http://localhost:8080/dataset/ega/phs000664.v1.p1, the page went chaotic due to the <a> tag inside the dataset_abstract meta content,so which solution should we adopt?

resolved by java server side