Pasting an image directly from the clipboard in a slate block triggers the creation of both a slate block and a (proper) image block.

Describe the bug
Pasting an image directly from the clipboard in a slate block triggers the creation of both a slate block and a (proper) image block.
To Reproduce
Steps to reproduce the behavior:

Edit any content with blocks
Click on an empty slate block
Copy an image
Paste directly from the clipboard into a slate block
Two blocks, one pure slate and an image block are created.

Expected behavior
Only the image block is created.

/cc @avoinea @tiberiuichim @ichim-david Does your users do not try this?

@sneridagh I think I've noticed this problem at some point. It needs to be fixed.

/cc @avoinea @tiberiuichim @ichim-david Does your users not try this feature? I'm so used to do this in Gitlab/Github...

Can you attach the screenshots or recording, it will be better for understanding

@AnshulKahar2729 Go to Google Docs, create a new document using a template that also uses an image. From the google doc, copy everything, go to Volto to a new page, paste the clipboard. If you get two images pasted, it's a problem.

Ok, I got the problem. I tried to reproduce the problem and it happended. One more question, is it happening in all the blocks, or some specifics?

@tiberiuichim @sneridagh I try to make some changes and this is the result after that is it okay?
Uploading Screencast from 26-01-24 02:48:21 PM IST.webm…

@AnshulKahar2729 Go to Google Docs, create a new document using a template that also uses an image. From the google doc, copy everything, go to Volto to a new page, paste the clipboard. If you get two images pasted, it's a problem.

Ok, I tried doing that I got the solution too. After fixing changes, now it is rendering only one time. But, I want to make sure that my approach is correct. How can I do that, any way of discussion?

@AnshulKahar2729 it's concerning the integration between volto-slate and the volto blocks.
The problem is that the image slate node is not properly removed once a volto block is emitted.
https://github.com/plone/volto/blob/4bb07b9b7392879e7aed72b871f73936f2187f5c/packages/volto-slate/src/utils/volto-blocks.js#L278
https://github.com/plone/volto/blob/4bb07b9b7392879e7aed72b871f73936f2187f5c/packages/volto-slate/src/blocks/Text/index.js#L95
https://github.com/plone/volto/blob/4bb07b9b7392879e7aed72b871f73936f2187f5c/packages/volto-slate/src/editor/plugins/Image/deconstruct.js#L24-L27
Somehow the slate tree transformation is not properly done.

once a volto block is emitted.

Ok, I will look into it

For extra context, I've tried on the demo site to paste an image and it works just fine on a Mac.
Where you have issues is when you try to paste an image from the OS clipboard

Hey, @ichim-david
Just want to ask, is this issue resolved? cause I'm not able to reproduce it in my local volto. It works just fine on Ubuntu 22.04.4 LTS.
On uploading images through HDD or from clipboard, no duplicate images are created.


added documentation for creating a basic connector

To aid others in understanding and creating their own OpenTelemetry connector, I have created a basic tutorial detailing the explanation and structure for a basic connector.

Preview: https://deploy-preview-3016--opentelemetry.netlify.app/blog/2023/basic-connector/
@gord02 thanks for this blog post. connectors raise a lot of questions, so it's a good addition from quickly scanning over your text.
I will not be able to review it in details before next week. Just as an early feedback:
This might also be a good addition to our documentation (similar to the other "Building ..." sections in https://opentelemetry.io/docs/collector/). I have to admit that the challenge with these is that they might not be up-to-date all the time as authors might not keep following up. So here are my questions:

Do you think that this blog post could also be a docs entry?
Would you be willing to do follow-up updates if we put it there?

Personally, I prefer having more docs over having more blog posts, so I would be grateful if you do so, but I also understand that this might not be your intend, so we can start it as a blog post.

Hello, @svrnm. I am willing to do follow-ups to keep the document updated if it is eligible for docs entry.

Awesome, highly appreciated. I did a round of reviews. Please take a look. Content-wise I am not a subject matter expert here, but it sounds good & right.

Why is opamp-spec updated in this PR? Is there any relation between OpAMP and Collector connectors?

Why is opamp-spec updated in this PR? Is there any relation between OpAMP and Collector connectors?

that's probably an issue from the merge main commit.
@gord02 let me or @chalin know if you need help to clean your commit from those files.

Hello @svrnm. Yes I would like help cleaning the commit. I had issues pushing to my forked repo of the opentelemetry.io repo and believed merging with main would resolve the issue. Should I revert back to a previous commit?

making things worse right now, apologies, will fix this any minute

@chalin can you give this PR a look and help with cleaning up the commits?

@svrnm et al.: I've cleaned up the commits. The submodules are no longer being retrograded.

@gord02 I cleaned up your PR and merged the current Head. Please pull this locally and you are fine again.

@svrnm - the PR is broken again. This seems to be because you are merging in changes:

You need to rebase instead @gord02 when you bring in the changes locally.

Hello @chalin. Yes I see it is broken and I will work through resolving it myself this time

@gord02 and I cleaned up his local branch, and he did a force push. All should be good from this point on to make further changes.

/fix:refcache

Hi all reviewers: this PR is ready for a final review and approval. PTAL

@codeboten or anyone from @open-telemetry/collector-approvers: please review and approve.

🎉
amazing wok @gord02 !


Grafana 6.7: dateMath.parse is not a function

After upgraded to Grafana 6.7 we see this error on chart: dateMath.parse is not a function
Before this chart was good

Having the same issue..any update regarding this?


Even if sqlite-net-sqlcipher is applied, the password does not work.

Even if sqlite-net-sqlcipher is applied, the password does not work.
Need another way in Xamarin Forms?

Can you provide more details?  I've been successfully using this for some time in Xamarin Forms without any issue.


CI: Bump galaxy-importer 4.26

Change Summary
Bump galaxy-importer version 4.26

@carlbuchmann - was failing because of the issue @ClausHolbechArista fixed in #4797


Add Certificate Authority (CA) bundle on HTTPS server options

On Chrome Version 60.0.3112.90 (Official Build) (64-bit), the WSS connection is being refused on HTTPS connection.

NET::ERR_CERT_AUTHORITY_INVALID

The issue is that the larave-echo-server does not have an third parameter.
var https_options = {
 **ca: fs.readFileSync("/path/to/mydomain.ca-bundle"),**
 key: fs.readFileSync("/path/to/server.key"),
 cert: fs.readFileSync("/path/to/mydomain.crt")
};

I guess it should be added...

I'm running the same version of Chrome with no issues. Let's see if this is reported by others.
Thanks

+1
This issue is indeed only related if you access it on port 6001.

The pull request #204 should fix this problem.

This should be available now at 1.3.1


The process cannot access the file because it is being used by another process.

Why The process cannot access the file because it is being used by another process.
Describe the logging
2023/08/23 18:56:56 Default configuration created.
2023/08/23 18:56:56 Browser total 2 sessions
2023/08/23 18:56:56 Profile chrome::"คนที่ 1"
2023/08/23 18:56:56 open C:\Users\Rhythm\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies: The process cannot access the file because it is being used by another process.
2023/08/23 18:58:17 Readed configuration .
2023/08/23 18:58:17 Browser total 2 sessions
2023/08/23 18:58:17 Profile chrome::"คนที่ 1"
2023/08/23 18:58:17 open C:\Users\Rhythm\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies: The process cannot access the file because it is being used by another process.

Check Using Resource Monitor
When the error message pops up, it might also give you the name of the file that is in use by another process. If it does, you can use a Windows built-in utility named Resource Monitor to check the process that is using the file.
To check the process using a resource monitor,

Press Windows + R, type resmon.exe, and press Enter.

Make sure that you are in the CPU tab.

Expand Associated Handles.

Type the filename in Search Handles. You should be able to see the file in the search result.

Right-click on the file, and select End process.

The new process should now be able to access the file.

OK, becouse Chorme update new version and lock Cookies
I will update later.

Create a new profile in your Chrome hoyoverse login account and specify the profile name in the yaml.


Add array-to-dummies preprocessor

Problem Description
Some tables have categories that are stored in one array in one variable. It can happen when the data is collected in time periods, for example, we have a table where rows are router users and the column is "ips to which the router connected during last 15 minutes" (example A). Or it could be a data taken from survey respondents that answered question "name all countries you have visited this year" (Example B).
In example A we would have a pandas series "connected_ips" that for each row would have an array that would look like this:
[1234.1244, 1556.6666, 1998.1534, 1490.4444]
In example B we would have a pandas series "visited countries" that for each row would have an array that would look like this:
["Basel", "Warsaw", "Paris", "Kijów"]
Feature Description
A new feature, array2dummies preprocessor could take such columns, if they come as one string then evaluate them to python list, and then transform the values into dummies for each row.
in Example A we would end up with 4 columns:  ip_1234.1244, ip_1556.6666, ip_1998.1534, ip_1490.4444 with 1 if the router had visited them and 0 if it didn't.
in Example B we could at first allow user to use either GapEncoder or MinHashEncoder and then make dummies, so we would end up with 4 columns: "visited_Basel", "visited_Warsaw", "visited_Paris", "visited_Kijów" also  with 1 if the respondent had visited them and 0 if he/she didn't.
the important part in the second example would be to allow user for use of the encoders already available in the Skrub.
Alternative Solutions
No response
Additional Context
Many tables have categorical count data stored in inconvenient format - as lists in a dataframe "cell". In order to fit those data to the model, they need to be preprocessed. It would be great to have an automated way to do so, with an option to use Skrub's encoders.

This seems close to scikit-learn CountVectorizer
On Aug 23, 2023, 10:48, at 10:48, "Mikołaj" @.***> wrote:

Problem Description
Some tables have categories that are stored in one array in one
variable. It can happen when the data is collected in time periods, for
example, we have a table where rows are router users and the column is
"ips to which the router connected during last 15 minutes" (example A).
Or it could be a data taken from survey respondents that answered
question "name all countries you have visited this year" (Example B).
In example A we would have a pandas series "connected_ips" that for
each row would have an array that would look like this:
[1234.1244, 1556.6666, 1998.1534, 1490.4444]
In example B we would have a pandas series "visited countries" that for
each row would have an array that would look like this:
["Basel", "Warsaw", "Paris", "Kijów"]
Feature Description
A new feature, array2dummies preprocessor could take such columns, if
they come as one string then evaluate them to python list, and then
transform the values into dummies for each row.
in Example A we would end up with 4 columns:  ip_1234.1244,
ip_1556.6666, ip_1998.1534, ip_1490.4444 with 1 if the router had
visited them and 0 if it didn't.
in Example B we could at first allow user to use either GapEncoder or
MinHashEncoder and then make dummies, so we would end up with 4
columns: "visited_Basel", "visited_Warsaw", "visited_Paris",
"visited_Kijów" also  with 1 if the respondent had visited them and 0
if he/she didn't.
the important part in the second example would be to allow user for use
of the encoders already available in the Skrub.
Alternative Solutions
No response
Additional Context
Many tables have categorical count data stored in inconvenient format -
as lists in a dataframe "cell". In order to fit those data to the
model, they need to be preprocessed. It would be great to have an
automated way to do so, with an option to use Skrub's encoders.
--
Reply to this email directly or view it on GitHub:
https://github.com/skrub-data/skrub/issues/717
You are receiving this because you are subscribed to this thread.
Message ID: @.***>

Let's close this issue since CountVectorizer addresses the feature request.


Make memcached node optional for single-node setup

From martin.grotzke on July 31, 2011 00:25:22
This was requested via email / on the mailing list (http://groups.google.com/group/memcached-session-manager/browse_thread/thread/3630849929d81295): when having only a single memcached or moxi as membase proxy it should be possible to keep the sessionId as it is - without the memcached node appended to it.
Therefore it should also be possible to configure e.g. memcachedNodes="localhost:11211".
Original issue: http://code.google.com/p/memcached-session-manager/issues/detail?id=105

From martin.grotzke on July 30, 2011 17:23:26
Implemented in branch single-node-config, merged into master (commit ad190c37)
Status: Fixed
Labels: Milestone-1.5.1


Import tests from the macOS version

This imports the test code from the macOS version and updates the CI settings to run the engine tests (McBopomofoLMLibTest). This does not affect how the main IME project is currently structured: I'd like restructuring the CMake projects (such as using subprojects properly) for another day.

LGTM.
Actually I am thinking if we should extract libMcbopomofo into a shared repo and let both McBopomofo macOS and Linux to depend on the library. How do you think?

Actually I am thinking if we should extract libMcbopomofo into a shared repo and let both McBopomofo macOS and Linux to depend on the library. How do you think?

Should the library and the data be moved to one single repo, or should they be two repos? I guess we can discuss this using another GitHub issue. :)


Incorrect attribute check

How do you use Sentry?
Self-hosted/on-premise
Version
1.9.4
Steps to Reproduce
I guess it's incorrect attribute name is checking here:
https://github.com/getsentry/sentry-python/blob/8588dbeb023a124c6f8c35b66391a7d8caa8bf35/sentry_sdk/integrations/starlette.py#L149
Expected Result
status_code
Actual Result
staus_code

@decaz pls explain what you mean by 'incorrect'

I presume he means the typo in hasattr(exp, "staus_code"), which should be hasattr(exp, "status_code")

oh indeed, I cannot read, thank you! :)


How it will lead with react-hooks?

I liked a lot it but now that there is a new coding approach with Hooks, how Deox will lead with it
Thanks, and congratulations by the library

Deox helps you create your Redux store more efficiently. React hooks changed the connect portion of react-redux API and it didn't affect your Redux store. So you can use Deox with react hooks like how you used it with connect higher-order component.
Also, you can check this codesandbox to see a working example and you can compare it with its previous version which is working by connect HOC.


DraggableScrollableSheet snap animations conflict with multiple ScrollPositions

Steps to Reproduce

https://dartpad.dev/?id=65bb94d872c5f8f9d5b47b07b5944317
Select "Snap".
Scroll the bottom sheet using a touch interface.

Expected results:
Bottom sheet snaps to expanded or collapsed position.
For reference, here's the expected snap behavior (with the scroll controller only hooked up to the outer scrollable covering the tab bar):
https://dartpad.dev/?id=7cdb15f7b00dc440053e5c54112cbc45
Actual results:
Bottom sheet oscillates between animated and initial snapped positions before possibly eventually settling.
This seems to be due to the IdleScrollActivity on the idle scroll positions calling goBalistic(0) in response to the resizing sheet. (It may be worth noting that the inner scroll position may indeed need to adjust position, for example in https://dartpad.dev/?id=7cdb15f7b00dc440053e5c54112cbc45 if the first tab is scrolled before fully expanding.)
Ostensibly this might be something to solve using a NestedScrollView, but then we run into incompatible ScrollPosition types as the DraggableScrollableSheet's scroll controller only supports its own scroll positions while NestedScrollView attempts to attach its own subclass into the outer scroll controller:
https://dartpad.dev/?id=b7650fc7f0590af8a2885b0ea8817469
(may need to open web debug for the errors to show up)
The following TypeErrorImpl was thrown during a scheduler callback:
Expected a value of type '_DraggableScrollableSheetScrollPosition', but got one of type
'_NestedScrollPosition'
When the exception was thrown, this was the stack:
...
packages/flutter/src/widgets/draggable_scrollable_sheet.dart 747:58                                                            <fn>

Related issue re: NestedScrollView: #64157

Code sample

import 'dart:math';

import 'package:flutter/material.dart';

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

class ScrollDemo extends StatefulWidget {
  const ScrollDemo({super.key});
  @override
  State<ScrollDemo> createState() => ScrollDemoState();
}

class ScrollDemoState extends State<ScrollDemo> {
  bool snap = false;

  @override
  Widget build(BuildContext context) => MaterialApp(
        theme: ThemeData(
          tabBarTheme: const TabBarTheme(labelColor: Colors.black),
        ),
        home: Scaffold(
          body: LayoutBuilder(
            builder: (context, constraints) {
              final foldPosition = min(
                1.0,
                (Sheet.tabBarHeight + FoldTab.pageHeight) /
                    constraints.maxHeight,
              );

              return Column(
                crossAxisAlignment: CrossAxisAlignment.stretch,
                children: [
                  Expanded(
                    child: Stack(
                      alignment: Alignment.center,
                      children: [
                        InteractiveViewer(
                          constrained: false,
                          child: const GridPaper(
                            color: Colors.red,
                            child: SizedBox(
                              width: 2000,
                              height: 2000,
                              child: Text('Maps'),
                            ),
                          ),
                        ),
                        const Positioned(
                          left: 0,
                          bottom: 0,
                          child: Text('Watermark'),
                        ),
                        ElevatedButton(
                          onPressed: () => setState(() => snap = !snap),
                          child: Row(
                            mainAxisSize: MainAxisSize.min,
                            children: [
                              Checkbox(
                                value: snap,
                                onChanged: (value) =>
                                    setState(() => snap = value!),
                              ),
                              const Text('snap'),
                              const SizedBox(width: 8),
                            ],
                          ),
                        ),
                      ],
                    ),
                  ),
                  ConstrainedBox(
                    constraints: constraints,
                    child: DraggableScrollableSheet(
                      expand: false,
                      snap: snap,
                      initialChildSize: foldPosition,
                      snapSizes: [foldPosition],
                      minChildSize: Sheet.tabBarHeight / constraints.maxHeight,
                      builder: (context, scrollController) => CustomScrollView(
                        controller: scrollController,
                        slivers: [
                          SliverFillRemaining(
                            child: Sheet(
                              scrollController: scrollController,
                            ),
                          )
                        ],
                      ),
                    ),
                  )
                ],
              );
            },
          ),
        ),
      );
}

/// A scroll controller subordinate to a parent controller, which
/// [createScrollPosition]s via the parent and attaches/detaches its positions
/// from the parent. This is useful for creating nested scroll controllers
/// for widgets with scrollbars that can actuate a parent scroll controller.
class SubordinateScrollController extends ScrollController {
  SubordinateScrollController(
    this.parent, {
    String subordinateDebugLabel = 'subordinate',
  }) : super(
          debugLabel: parent.debugLabel == null
              ? null
              : '${parent.debugLabel}/$subordinateDebugLabel',
          initialScrollOffset: parent.initialScrollOffset,
          keepScrollOffset: parent.keepScrollOffset,
        );
  final ScrollController parent;
  // Although some use cases might seem to be simplified if parent were made
  // settable, we can't really do this because scroll positions are owned by
  // Scrollables rather than the scroll controller, so the scroll view is
  // responsible for transferring positions from one controller to another. If
  // we were to try to do the transfer here, we would end up trying to dispose
  // of positions that Scrollables may still be holding on to.

  @override
  ScrollPosition createScrollPosition(
    ScrollPhysics physics,
    ScrollContext context,
    ScrollPosition? oldPosition,
  ) =>
      parent.createScrollPosition(physics, context, oldPosition);

  @override
  void attach(ScrollPosition position) {
    super.attach(position);
    parent.attach(position);
  }

  @override
  void detach(ScrollPosition position) {
    parent.detach(position);
    super.detach(position);
  }

  @override
  void dispose() {
    for (final position in positions) {
      parent.detach(position);
    }

    super.dispose();
  }
}

class Sheet extends StatefulWidget {
  static const tabBarHeight = 18.0;

  const Sheet({super.key, this.scrollController});
  final ScrollController? scrollController;

  @override
  State<Sheet> createState() => SheetState();
}

class SheetState extends State<Sheet> with SingleTickerProviderStateMixin {
  late final tabController = TabController(length: 3, vsync: this);

  List<ScrollController>? _scrollControllers;

  void _updateScrollControllers() {
    _scrollControllers = widget.scrollController == null
        ? null
        : [
            for (int i = 0; i < 3; ++i)
              SubordinateScrollController(widget.scrollController!)
          ];
  }

  void _disposeScrollControllers() {
    if (_scrollControllers != null) {
      for (final scrollController in _scrollControllers!) {
        scrollController.dispose();
      }
    }
  }

  @override
  void initState() {
    super.initState();
    _updateScrollControllers();
  }

  @override
  void didUpdateWidget(covariant Sheet oldWidget) {
    super.didUpdateWidget(oldWidget);
    if (widget.scrollController != oldWidget.scrollController) {
      _disposeScrollControllers();
      _updateScrollControllers();
    }
  }

  @override
  void dispose() {
    _disposeScrollControllers();
    tabController.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) => Column(
        children: [
          TabBar(
            controller: tabController,
            tabs: const [
              Text('Above/below the fold'),
              Text('Scrollable content'),
              Text('With a list'),
            ],
          ),
          Expanded(
            child: TabBarView(
              controller: tabController,
              children: [
                FoldTab(scrollController: _scrollControllers?[0]),
                ContentTab(scrollController: _scrollControllers?[1]),
                ListTab(scrollController: _scrollControllers?[2]),
              ],
            ),
          ),
        ],
      );
}

class FoldTab extends StatefulWidget {
  static const pageHeight = 256.0;

  const FoldTab({super.key, this.scrollController});
  final ScrollController? scrollController;

  @override
  State<FoldTab> createState() => FoldTabState();
}

class FoldTabState extends State<FoldTab> with AutomaticKeepAliveClientMixin {
  @override
  bool get wantKeepAlive => true;

  @override
  Widget build(BuildContext context) {
    super.build(context);
    return SingleChildScrollView(
      controller: widget.scrollController,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.stretch,
        children: [
          Container(
            color: Colors.green,
            height: FoldTab.pageHeight,
            child: const Text('Above the fold'),
          ),
          Container(
            color: Colors.blue,
            height: FoldTab.pageHeight,
            child: const Text('Below the fold'),
          ),
        ],
      ),
    );
  }
}

class ContentTab extends StatefulWidget {
  const ContentTab({super.key, this.scrollController});
  final ScrollController? scrollController;

  @override
  State<ContentTab> createState() => ContentTabState();
}

class ContentTabState extends State<ContentTab>
    with AutomaticKeepAliveClientMixin {
  @override
  bool get wantKeepAlive => true;

  @override
  Widget build(BuildContext context) {
    super.build(context);

    return SingleChildScrollView(
      controller: widget.scrollController,
      child: Text([for (int i = 0; i < 1000; ++i) 'content'].join()),
    );
  }
}

class ListTab extends StatefulWidget {
  const ListTab({super.key, this.scrollController});
  final ScrollController? scrollController;

  @override
  State<ListTab> createState() => ListTabState();
}

class ListTabState extends State<ListTab> with AutomaticKeepAliveClientMixin {
  @override
  bool get wantKeepAlive => true;

  @override
  Widget build(BuildContext context) {
    super.build(context);

    return Scaffold(
      appBar: PreferredSize(
        preferredSize: const Size.fromHeight(128.0),
        child: Container(
          alignment: Alignment.center,
          color: Colors.grey,
          child: const Text('Header content'),
        ),
      ),
      body: ListView.builder(
        controller: widget.scrollController,
        itemCount: 50,
        itemExtent: 48.0,
        itemBuilder: (context, index) => Text('Item $index'),
      ),
    );
  }
}

Logs

PS C:\Users\imagi\Documents\projects\trip_planner_aquamarine> flutter analyze
Analyzing trip_planner_aquamarine...
No issues found! (ran in 3.6s)

PS C:\Users\imagi\Documents\projects\trip_planner_aquamarine> flutter doctor -v
[!] Flutter (Channel rosswang, 3.7.0-2.0.pre.15, on Microsoft Windows [Version 10.0.22621.819], locale en-US)
    • Flutter version 3.7.0-2.0.pre.15 on channel rosswang at C:\Users\imagi\flutter
    ! Upstream repository git@github.com:AsturaPhoenix/flutter.git is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to git@github.com:AsturaPhoenix/flutter.git to dismiss this error.
    • Framework revision b189260d41 (4 weeks ago), 2023-01-03 17:20:39 -0800
    • Engine revision 025aefc7af
    • Dart version 2.19.0 (build 2.19.0-444.0.dev)
    • DevTools version 2.20.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\imagi\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.16)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32602.291
    • Windows 10 SDK version 10.0.16299.0
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK

[√] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[√] VS Code (version 1.74.3)
    • VS Code at C:\Users\imagi\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.57.20221221

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.819]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 109.0.5414.76
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 109.0.1518.61

[√] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

Started some experimental work at linked PR #120053.
Demo: https://dartpad.dev/99076b7032a84a8c6eadb00842e3ebe4?channel=master
Change summary:

Only allow a scroll position to start a snap if it was actively scrolling or if none of the other scroll positions is actively scrolling.
Make snap an actual scrolling activity (actuated by the DraggableScrollableSheet extent rather than the default scroll context).

Bonus, toggling off snap while a snap animation is in progress applies friction now rather than finishing the snap. (Other subtle changes in behavior might not be so desirable; this'll definitely warrant a bunch of tests if we decide to move forward with it.)
Known issue: Multi-finger drag multiplies drag speed by the number of pointers. However, this doesn't seem to be a regression as it repros with the code sample in the docs as well.

Thanks for the detailed report and a potential fix.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.7.0, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.7.0 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b06b8b2710 (28 hours ago), 2023-01-23 16:55:55 -0800
    • Engine revision b24591ed32
    • Dart version 2.19.0
    • DevTools version 2.20.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.8.0-4.0.pre, on macOS 12.2.1 21D62 darwin-x64,
    locale en-GB)
    • Flutter version 3.8.0-4.0.pre on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b8f5394a5c (22 hours ago), 2023-02-04 23:06:19 -0800
    • Engine revision 2a104cdfcd
    • Dart version 3.0.0 (build 3.0.0-204.0.dev)
    • DevTools version 2.21.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

It looks like the primary issue here is that the NestedScrollView and the DraggableScrollableSheet each use their own custom ScrollPosition.

@Piinks Re: your comment on #64157, I think I'm converging on trying to factor out a delegating scroll coordinator/controller that can link scroll positions in complex ways, though I haven't designed out the details yet. Did you happen to draft anything out for #102003 that you'd be willing to share?

Did you happen to draft anything out for https://github.com/flutter/flutter/issues/102003 that you'd be willing to share?

I don't. When someone takes on that issue though, all existing test cases will be considered.


Enhancements/basic toolbar icons

I made some icons for the basic toolbar items. Provided in 1x, 2x and 3x. I assigned them to the toolbar items in the Main storyboard.
Sketch file (requires latest Sketch 44.1):
https://cl.ly/162f3d2J2V3L

Thanks for these! I should have mentioned, though, that Brad Ellis is working on icons. Should be coming soonish.

OK! It was just an exercise for me :)
On Fri, Jun 2, 2017 at 1:25 AM, brentsimmons<EMAIL_ADDRESS>wrote:

Thanks for these! I should have mentioned, though, that Brad Ellis is
working on icons. Should be coming soonish.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/brentsimmons/Evergreen/pull/88#issuecomment-305647663,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAxkgoTwvShha9CcjWIVDlER8Sc5YmLks5r_0hQgaJpZM4Ntbf6
.


Better Coordinates formfield

Move into Vue
Reveal lat+lng inputs, sync between map marker drag and lat+lng input changes
Add Places Autocomplete, sync to map & lat+lng inputs

I think this might supersede https://github.com/the-control-group/voyager/pull/2963

Are you done here?
Maybe we can get this in to 1.3

I intend to add some features to this today/tomorrow. Is there a timeline for 1.3 launch?
As a side-note, pull request #4460 should really be considered for the next release if it is not already, as it is a bug-fix.

I just pushed the planned feature additions. onChange callback, and options to turn off the Autocomplete and Lat, Lng inputs.


#3181 TimeSource ToString() tests

Adds some of the test coverage identified in #3181
This PR adds test coverage for TimeSource,ToString()

Thanks!


[BUG]: Cannot write tm_template_script.ino to Arduino nano 33 BLE sense as recommended in the GettingStarted.

Describe the bug
The trained model program (.ino) for Arduino, which is output after training with Embedded image models, cannot be written with current Arduino_tensorflowlite to Arduino nano 33 BLE Sense as recommend in the GettingStarted.
To Reproduce

Select Embeded Image Model and Training some picture.
Select Export Model. And now, preview is working.
Select Tensorflow lite and Check TensorFlow Lite for Microcontrollers.
Select Download my models and unzip it.
Fix some code. check bellow it.

tm_template_script.ino(L22): Change include path.

#include "tensorflow/lite/micro/tflite_bridge/micro_error_reporter.h"

tm_template_script.ino(L26): Comment out version.h

//#include "tensorflow/lite/version.h"

tm_template_script.ino(L84,L85): Remove error_reporter.

  static tflite::MicroInterpreter static_interpreter(
      model, micro_op_resolver, tensor_arena, kTensorArenaSize);

arduino_image_provider.cpp(L20): Change include path.

#include "tensorflow/lite/micro/tflite_bridge/micro_error_reporter.h"

image_provider.h(L49): Add capDataLen.

const int capDataLen = kCaptureWidth * kCaptureHeight * 2;

If there is not fix, happen some build error.

Select Upload on Arduino IDE.
See bellow error. It seems capacity over memory.

警告：ライブラリArduino_OV767Xはアーキテクチャmbedに対応したものであり、アーキテクチャmbed_nanoで動作するこのボードとは互換性がないかもしれません。
Library Arduino_TensorFlowLite has been declared precompiled:
Precompiled library in "c:\Users\<my user id>\OneDrive\ドキュメント\Arduino\libraries\Arduino_TensorFlowLite\src\cortex-m4\fpv4-sp-d16-softfp" not found
Precompiled library in "c:\Users\<my user id>\OneDrive\ドキュメント\Arduino\libraries\Arduino_TensorFlowLite\src\cortex-m4" not found
C:\Users\<my user id>\AppData\Local\Temp\arduino-sketch-D67097C3451979EF653B299D62F9FCA5/linker_script.ld:138 cannot move location counter backwards (from 20053278 to 2003fc00)
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Screenshots

Desktop (please complete the following information):

OS: Windows 10 pro (bootcamp)
Browser chrome
Version 110.0.5481.177（Official Build）
Arduino IDE 2.0.3

Arduino Library

Arduino_TensorFlowLite (Installed according to the instructions given in "How to Install." https://github.com/tensorflow/tflite-micro-arduino-examples) commit id: 2e88bbca2647e7e75da8029bb80def1004d7bbb8
Arduino_OV767X version 0.0.2

Device

Arduino Nano 33 BLE Sense
https://store-usa.arduino.cc/products/arduino-nano-33-ble-sense
Arducam 0.3MP: OV7675 https://www.arducam.com/products/camera-breakout-board/0-3mp-ov7675/

Relevant link
https://github.com/googlecreativelab/teachablemachine-community/blob/master/snippets/markdown/tiny_image/GettingStarted.md
Additional context
I would appreciate any information on the version of the Arduino environment at the time of success working.
Relevant Code

tm_template_script.ino

/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include <TensorFlowLite.h>

#include "main_functions.h"
#include "image_provider.h"
#include "model_settings.h"
#include "person_detect_model_data.h"
#include "tensorflow/lite/micro/tflite_bridge/micro_error_reporter.h"
#include "tensorflow/lite/micro/micro_interpreter.h"
#include "tensorflow/lite/micro/micro_mutable_op_resolver.h"
#include "tensorflow/lite/schema/schema_generated.h"

// Globals, used for compatibility with Arduino-style sketches.
namespace {
tflite::ErrorReporter* error_reporter = nullptr;
const tflite::Model* model = nullptr;
tflite::MicroInterpreter* interpreter = nullptr;
TfLiteTensor* input = nullptr;

// In order to use optimized tensorflow lite kernels, a signed int8_t quantized
// model is preferred over the legacy unsigned model format. This means that
// throughout this project, input images must be converted from unisgned to
// signed format. The easiest and quickest way to convert from unsigned to
// signed 8-bit integers is to subtract 128 from the unsigned value to get a
// signed value.

// An area of memory to use for input, output, and intermediate arrays.
constexpr int kTensorArenaSize = 136 * 1024;
static uint8_t tensor_arena[kTensorArenaSize];
}  // namespace

// The name of this function is important for Arduino compatibility.
void setup() {
  // Set up logging. Google style is to avoid globals or statics because of
  // lifetime uncertainty, but since this has a trivial destructor it's okay.
  // NOLINTNEXTLINE(runtime-global-variables)
  static tflite::MicroErrorReporter micro_error_reporter;
  error_reporter = &micro_error_reporter;

  // Map the model into a usable data structure. This doesn't involve any
  // copying or parsing, it's a very lightweight operation.
  model = tflite::GetModel(g_person_detect_model_data);
  if (model->version() != TFLITE_SCHEMA_VERSION) {
    TF_LITE_REPORT_ERROR(error_reporter,
                         "Model provided is schema version %d not equal "
                         "to supported version %d.",
                         model->version(), TFLITE_SCHEMA_VERSION);
    return;
  }

  // Pull in only the operation implementations we need.
  // This relies on a complete list of all the ops needed by this graph.
  // An easier approach is to just use the AllOpsResolver, but this will
  // incur some penalty in code space for op implementations that are not
  // needed by this graph.
  //
  // tflite::AllOpsResolver resolver;
  // NOLINTNEXTLINE(runtime-global-variables)
  static tflite::MicroMutableOpResolver<6> micro_op_resolver;
  micro_op_resolver.AddAveragePool2D();
  micro_op_resolver.AddConv2D();
  micro_op_resolver.AddDepthwiseConv2D();
  micro_op_resolver.AddReshape();
  micro_op_resolver.AddSoftmax();
  micro_op_resolver.AddFullyConnected();

  // Build an interpreter to run the model with.
  // NOLINTNEXTLINE(runtime-global-variables)
  static tflite::MicroInterpreter static_interpreter(
      model, micro_op_resolver, tensor_arena, kTensorArenaSize);
  interpreter = &static_interpreter;

  // Allocate memory from the tensor_arena for the model's tensors.
  TfLiteStatus allocate_status = interpreter->AllocateTensors();
  if (allocate_status != kTfLiteOk) {
    TF_LITE_REPORT_ERROR(error_reporter, "AllocateTensors() failed");
    return;
  }

  // Get information about the memory area to use for the model's input.
  input = interpreter->input(0);
}

void loop() {
  // Get image from provider.
  if (kTfLiteOk != GetImage(error_reporter, kNumCols, kNumRows, kNumChannels,
                            input->data.int8)) {
    TF_LITE_REPORT_ERROR(error_reporter, "Image capture failed.");
  }

  // Run the model on this input and make sure it succeeds.
  if (kTfLiteOk != interpreter->Invoke()) {
    TF_LITE_REPORT_ERROR(error_reporter, "Invoke failed.");
  }

  TfLiteTensor* output = interpreter->output(0);

  // Process the inference results.
  int8_t person_score = output->data.uint8[kPersonIndex];
  int8_t no_person_score = output->data.uint8[kNotAPersonIndex];
  for (int i = 0; i < kCategoryCount; i++) {
    int8_t curr_category_score = output->data.uint8[i];
    const char* currCategory = kCategoryLabels[i];
    TF_LITE_REPORT_ERROR(error_reporter, "%s : %d", currCategory, curr_category_score);
  }
//  Serial.write(input->data.int8, bytesPerFrame);
}

arduino_image_provider.cpp

/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  ==============================================================================*/

#include "image_provider.h"

/*
   The sample requires the following third-party libraries to be installed and
   configured:

   Arducam
   -------
   1. Download https://github.com/ArduCAM/Arduino and copy its `ArduCAM`
      subdirectory into `Arduino/libraries`. Commit #e216049 has been tested
      with this code.
   2. Edit `Arduino/libraries/ArduCAM/memorysaver.h` and ensure that
      "#define OV2640_MINI_2MP_PLUS" is not commented out. Ensure all other
      defines in the same section are commented out.

   JPEGDecoder
   -----------
   1. Install "JPEGDecoder" 1.8.0 from the Arduino library manager.
   2. Edit "Arduino/Libraries/JPEGDecoder/src/User_Config.h" and comment out
      "#define LOAD_SD_LIBRARY" and "#define LOAD_SDFAT_LIBRARY".
*/

#if defined(ARDUINO) && !defined(ARDUINO_ARDUINO_NANO33BLE)
#define ARDUINO_EXCLUDE_CODE
#endif  // defined(ARDUINO) && !defined(ARDUINO_ARDUINO_NANO33BLE)

#ifndef ARDUINO_EXCLUDE_CODE

#include <Arduino.h>
#include <Arduino_OV767X.h>

const int kCaptureWidth = 320;
const int kCaptureHeight = 240;
const int capDataLen = kCaptureWidth * kCaptureHeight * 2;
byte captured_data[kCaptureWidth * kCaptureHeight * 2]; // QVGA: 320x240 X 2 bytes per pixel (RGB565)

// Crop image and convert it to grayscale
TfLiteStatus ProcessImage(
  tflite::ErrorReporter* error_reporter,
  int image_width, int image_height,
  int8_t* image_data) {
 //  Serial.println("begging image process");
  //  const int skip_start_x = ceil((kCaptureWidth - image_width) / 2); // 40.5
  //  const int skip_start_y = ceil((kCaptureHeight - image_height) / 2); // 24
  //  const int skip_end_x_index = (kCaptureWidth - skip_start_x); // (176 - 40) = 135
  //  const int skip_end_y_index = (kCaptureHeight - skip_start_y); // 144 - 24 = 120
  const int imgSize = 96;

  // Color of the current pixel
  uint16_t color;
  for (int y = 0; y < imgSize; y++) {
    for (int x = 0; x < imgSize; x++) {
      int currentCapX = floor(map(x, 0, imgSize, 40, kCaptureWidth - 80));
      int currentCapY = floor(map(y, 0, imgSize, 0, kCaptureHeight));
      // Read the color of the pixel as 16-bit integer
      int read_index = (currentCapY * kCaptureWidth + currentCapX) * 2;//(y * kCaptureWidth + x) * 2;
      int i2 = (currentCapY * kCaptureWidth + currentCapX + 1) * 2;
      int i3 = ((currentCapY + 1) * kCaptureWidth + currentCapX) * 2;
      int i4 = ((currentCapY + 1) * kCaptureWidth + currentCapX + 1) * 2;

      uint8_t high_byte = captured_data[read_index];
      uint8_t low_byte = captured_data[read_index + 1];

      color = ((uint16_t)high_byte << 8) | low_byte;
      // Extract the color values (5 red bits, 6 green, 5 blue)
      uint8_t r, g, b;
      r = ((color & 0xF800) >> 11) * 8;
      g = ((color & 0x07E0) >> 5) * 4;
      b = ((color & 0x001F) >> 0) * 8;
      // Convert to grayscale by calculating luminance
      // See https://en.wikipedia.org/wiki/Grayscale for magic numbers
      float gray_value = (0.2126 * r) + (0.7152 * g) + (0.0722 * b);

      if (i2 > 0 && i2 < capDataLen - 1) {
        high_byte = captured_data[i2];
        low_byte = captured_data[i2 + 1];
        color = ((uint16_t)high_byte << 8) | low_byte;
        r = ((color & 0xF800) >> 11) * 8;
        g = ((color & 0x07E0) >> 5) * 4;
        b = ((color & 0x001F) >> 0) * 8;
        gray_value += (0.2126 * r) + (0.7152 * g) + (0.0722 * b);
      }
      if (i3 > 0 && i3 < capDataLen - 1) {
        high_byte = captured_data[i3];
        low_byte = captured_data[i3 + 1];
        color = ((uint16_t)high_byte << 8) | low_byte;
        r = ((color & 0xF800) >> 11) * 8;
        g = ((color & 0x07E0) >> 5) * 4;
        b = ((color & 0x001F) >> 0) * 8;
        gray_value += (0.2126 * r) + (0.7152 * g) + (0.0722 * b);
      }

      if (i4 > 0 && i4 < capDataLen - 1) {
        high_byte = captured_data[i4];
        low_byte = captured_data[i4 + 1];
        color = ((uint16_t)high_byte << 8) | low_byte;
        r = ((color & 0xF800) >> 11) * 8;
        g = ((color & 0x07E0) >> 5) * 4;
        b = ((color & 0x001F) >> 0) * 8;
        gray_value += (0.2126 * r) + (0.7152 * g) + (0.0722 * b);
      }

      gray_value = gray_value / 4;

      // Convert to signed 8-bit integer by subtracting 128.
      gray_value -= 128;
      //      // The index of this pixel` in our flat output buffer
      int index = y * image_width + x;
      image_data[index] = static_cast<int8_t>(gray_value);
//      delayMicroseconds(10);
    }
  }
//  flushCap();
  //  Serial.println("processed image");
  //  Serial.println("processed image");
  return kTfLiteOk;
}
// Get an image from the camera module
TfLiteStatus GetImage(tflite::ErrorReporter* error_reporter, int image_width,
                      int image_height, int channels, int8_t* image_data) {
  static bool g_is_camera_initialized = false;
  if (!g_is_camera_initialized) {
   if (!Camera.begin(QVGA, RGB565, 1)) {

      return kTfLiteError;
    }
    g_is_camera_initialized = true;
  }

    Camera.readFrame(captured_data);

  TfLiteStatus decode_status = ProcessImage(
                                 error_reporter, image_width, image_height, image_data);
  if (decode_status != kTfLiteOk) {
    TF_LITE_REPORT_ERROR(error_reporter, "DecodeAndProcessImage failed");
    return decode_status;
  }

  return kTfLiteOk;
}

#endif  // ARDUINO_EXCLUDE_CODE

image_provider.h

/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#ifndef TENSORFLOW_LITE_MICRO_EXAMPLES_PERSON_DETECTION_IMAGE_PROVIDER_H_
#define TENSORFLOW_LITE_MICRO_EXAMPLES_PERSON_DETECTION_IMAGE_PROVIDER_H_

#include "tensorflow/lite/c/common.h"
#include "tensorflow/lite/micro/tflite_bridge/micro_error_reporter.h"

// This is an abstraction around an image source like a camera, and is
// expected to return 8-bit sample data.  The assumption is that this will be
// called in a low duty-cycle fashion in a low-power application.  In these
// cases, the imaging sensor need not be run in a streaming mode, but rather can
// be idled in a relatively low-power mode between calls to GetImage().  The
// assumption is that the overhead and time of bringing the low-power sensor out
// of this standby mode is commensurate with the expected duty cycle of the
// application.  The underlying sensor may actually be put into a streaming
// configuration, but the image buffer provided to GetImage should not be
// overwritten by the driver code until the next call to GetImage();
//
// The reference implementation can have no platform-specific dependencies, so
// it just returns a static image. For real applications, you should
// ensure there's a specialized implementation that accesses hardware APIs.
TfLiteStatus GetImage(tflite::ErrorReporter* error_reporter, int image_width,
                      int image_height, int channels, int8_t* image_data);

#endif  // TENSORFLOW_LITE_MICRO_EXAMPLES_PERSON_DETECTION_IMAGE_PROVIDER_H_

I would appreciate any information on the version of the Arduino environment at the time of success working.

Hey, I found a thorough solution here: https://samueladesola.medium.com/object-classification-on-arduino-nano-33-ble-sense-using-teachable-machine-3ead7389000a
The logic is to change the image dimension and change the conversion method.


riscv-dbg: Re-align dmi_bscane_tap interface with dmi_jtag_tap

The current occamy design does not synthesize for FPGA because of a pin-mismatch between dmi_jtag_tap.sv and dmi_bscane_tap.sv that was introduced in #373.
I also contributed this upstream.
CC: @bluewww @meggiman

Merged in upstream and released as https://github.com/pulp-platform/riscv-dbg/releases/tag/v0.5.1


ESP32 examples should build size-optimized

Problem
Got out of flash space errors already (before we have BLE, thread and more logic). We need to ensure chip library is small. I managed to get it to run by adding -Os in the makefile for the example, but it still compiles with -O0 and just  -Og for many files (spot checked and it seemed like chip itself was not size optimized during compile)
Proposed Solution
Update the build system to propagate -Os flag by default across builds.
Ensure linker strips out unused sections

@shana-apple @kpschoedel I guess this issue falls on what you are looking at those days

SW BRB: @shana-apple @kpschoedel any update here?

SW BRB: @shana-apple @kpschoedel any update here?


Fixes Oen44/Godot-Inventory#5

Added missing project.godot file
Assigned Inventory.tscn as the main scene
Added an icon.png file (Same sword image used on the asset store)
The template can now be edited or launched from the project manager directly
*** The value of the mouse filter for the GridContainer in the Inventory scene is correct in the master branch but is wrong in the release rar files from the last 2 releases(Should have the value 1 for Pass but has 2 for ignore instead). Please re-export the whole repository for the next release so that the template works as soon as you edit/run the project.godot file.

Thank you!


Polling Stream

Describe the feature
We would like to have the ability to represent a generic polling model as a reactive stream. The end user could create their own specific implementation of a poller (including offsetting) and configure the polling interval used to access the resource.
Rational
There are occasionally situations where a user may need to poll an external resource periodically for changes and would like to be able to process these changes as events in a stream.
Example Scenario
A service keeps track of the state of certain domain entities and exposes an endpoint where you can fetch all state changes for a provided start/end. In this case we would want to be able to represent a periodic polling of that endpoint with a moving window as a bursty stream for processing.

Completed via #21


Drop all dependency on all external APIs (including Heroku backend)

This PR is obviously dramatic, dropping a lot of functionality/features, but is necessary given the migration of the project away from supporting a centralized deployment service (and therefore a central source of truth about that service in the form of a centralized backend API).
Opening as draft while I finish up.
Closes #431
Closes #411
Closes #404
Closes #141
Closes #128
Closes #126
Closes #124
Closes #122
Closes #113
Closes #63
Closes #43
Closes #42
Closes #26
Closes #23

I don't know the details but I'm extremely happy to see this happen!

The maintenance state of the current site is now beyond-dire, with un-rendered data and errors all over the place, so I am going to merge this now to establish a clean slate for the site. Issues #432 and #433 point to some follow-on directions for getting accurate information onto the site. This PR's focus is just to remove broken content.


Request WbemRefresher to access performance data

Thanks to your great work!
I want to access performance data as documented here:
https://docs.microsoft.com/en-us/windows/win32/wmisdk/accessing-performance-data-in-c--
Help please!
Thank you!
#408

Duplicate of #408


IR101 acc

Hi,
Thanks for sharing this code.
I have tried to test IR101 pretrained model with evaluate.sh, but I got this result:
============================================================
Evaluation: LFW Acc: 0.6561666666666667, CFP_FP Acc: 0.6135714285714285, AgeDB Acc: 0.5056666666666667, CPLFW Acc: 0.5356666666666666 CALFW Acc: 0.5483333333333333
what's wrong?
Thanks!!!

I have add the results of the pretrained model on each dataset.  Seems the pretrained weights are not correctly loaded.

@xisi789 were you able to fix these issues? I have the same issues with these datasets and IJB-C.

@xisi789 were you able to fix these issues? I have the same issues with these datasets and IJB-C.

Yes, I solved the problem，But time has passed so long. I’m not sure how it was solved at the time. It seems to be data preprocessing.

Hi,
Thanks for sharing this code.
I have tried to test IR101 pretrained model with evaluate.sh, but I got this result:
============================================================
Evaluation: LFW Acc: 0.6561666666666667, CFP_FP Acc: 0.6135714285714285, AgeDB Acc: 0.5056666666666667, CPLFW Acc: 0.5356666666666666 CALFW Acc: 0.5483333333333333
what's wrong?
Thanks!!!

I have the same problem, Are you solve?


Parameters from URDF

It should be possible to calculate the parameters from the URDF or am I missing something?

It could be possible in general, but might not be trivial to get robust.
@JeroenDM started an attempt in JeroenDM/urdf_to_opw_kinematics.

Interesting, thanks.


Add subscription handling class

Description:
Adds a SubscriptionController class, which is hidden behind a feature flag: SUBSCRIPTIONS_ENABLED
Related issue(s):
Fixes #923
Notes for reviewer:

Checklist

[ ] Documented (Code comments, README, etc.)
[ ] Tested (unit, integration, etc.)

Codecov Report
Patch coverage: 13.04% and project coverage change: -1.45 :warning:

Comparison is base (5dc7266) 74.24% compared to head (76e18e2) 72.80%.

:exclamation: Current head 76e18e2 differs from pull request most recent head e33e8fb. Consider uploading reports for the commit e33e8fb to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #961      +/-   ##
==========================================
- Coverage   74.24%   72.80%   -1.45%
==========================================
  Files          28       29       +1
  Lines        1899     1945      +46
  Branches      360      369       +9
==========================================
+ Hits         1410     1416       +6
- Misses        386      426      +40
  Partials      103      103

Impacted Files
Coverage Δ

packages/relay/src/lib/subscriptionController.ts
11.90% <11.90%> (ø)

packages/relay/src/lib/relay.ts
21.73% <25.00%> (+0.31%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Static export only has empty folders

I'm very new to WordPress, and want to try using Wordpress Static Site Generator Plugin to create a .html files from my WordPress site. I was following this tutorial from https://docs.docker.com/compose/wordpress/ which uses docker-compose to create a simple WordPress site.
version: '3.3'

services:
   db:
     image: mysql:5.7
     volumes:
       - db_data:/var/lib/mysql
     restart: always
     environment:
       MYSQL_ROOT_PASSWORD: somewordpress
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress

   wordpress:
     depends_on:
       - db
     image: wordpress:latest
     ports:
       - "8000:80"
     restart: always
     environment:
       WORDPRESS_DB_HOST: db:3306
       WORDPRESS_DB_USER: wordpress
       WORDPRESS_DB_PASSWORD: wordpress
volumes:
    db_data:

Then I go ahead and activate your plugin and got no html files:
mystaticsite
├── contents
│   └── ui
│       └── theme
│           └── assets
│               ├── css
│               ├── images
│               └── js
├── hello-world
├── inc
└── sample-page

Any help?
EDIT: here is some information from docker-compose that might be useful:
wordpress_1_72dc1c77882a | <IP_ADDRESS> - - [28/Nov/2018:15:47:56 +0000] "POST /wp-admin/admin-ajax.php?_fs_blog_admin=true HTTP/1.1" 200 457 "http://localhost:8000/wp-admin/admin.php?page=wp-static-html-output" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36"
wordpress_1_72dc1c77882a | [Wed Nov 28 15:47:56.548979 2018] [php7:notice] [pid 219] [client <IP_ADDRESS>:47346] error in wp_remote_get response for URL:, referer: http://localhost:8000/wp-admin/admin.php?page=wp-static-html-output
wordpress_1_72dc1c77882a | [Wed Nov 28 15:47:56.549039 2018] [php7:notice] [pid 219] [client <IP_ADDRESS>:47346] http://localhost:8000/wp-content/themes/twentyseventeen/rtl.css, referer: http://localhost:8000/wp-admin/admin.php?page=wp-static-html-output
wordpress_1_72dc1c77882a | [Wed Nov 28 15:47:56.549061 2018] [php7:notice] [pid 219] [client <IP_ADDRESS>:47346] WP_Error Object\n(\n    [errors] => Array\n        (\n            [http_request_failed] => Array\n                (\n                    [0] => cURL error 7: Failed to connect to localhost port 8000: Connection refused\n                )\n\n        )\n\n    [error_data] => Array\n        (\n        )\n\n)\n, referer: http://localhost:8000/wp-admin/admin.php?page=wp-static-html-output
wordpress_1_72dc1c77882a | [Wed Nov 28 15:47:56.549799 2018] [php7:notice] [pid 219] [client <IP_ADDRESS>:47346] error in wp_remote_get response for URL:, referer: http://localhost:8000/wp-admin/admin.php?page=wp-static-html-output

Hi @kykungz,
Sorry for the late reply.
The clue is in this  cURL error 7: Failed to connect to localhost port 8000: Connection refused for the URL http://localhost:8000/wp-content/themes/twentyseventeen/rtl.css, probably the first URL it's attempting to crawl.
I used to use Docker primarily for developing this plugin and it was working well, but I can't recall exactly my setup.
It would appear that there is a discrepancy between what Docker sees as the WordPress and what the plugin and you see the URL as.
ie, you're accessing the site at localhost or localhost:8000?
The plugin runs within the Docker container, so it needs the WordPress URL to be what's accessible within the container, not necessarily what you use to access it from the host machine.
I'd fiddle around with that and adjusting the WP siteurl and home settings until it works.
Please let me know if still having issues and I can do some Docker testing.
Cheers,
Leon

Hi @kykungz,
I've just done some testing with your exact docker-compose.yml and put a little guide here, for the settings to be used with the latest build of the plugin (available at the Release page in GitHub):
https://forum.wp2static.com/-44/how-to-use-with-a-docker-compose-setup
You may still have some issues with your host name resolution. If that's the case, please post on the forum: https://forum.wp2static.com and I'll help you diagnose and work through it.
Cheers,
Leon


please release 3.1!

Recently, I want to use "${license.git.copyrightCreationYear}".
So, Please release 3.1
Thanks a lot!

4.0.rc1 released ;-)


CLI missmatches projects on prisma delete

Describe the bug
I have two projects on demo-eu1 server and
prisma delete project1 removed the wrong service project2:

To Reproduce
Steps to reproduce the behavior:
In Windows PowerShell:
mkdir newproject && cd newproject

prisma init
? Set up a new Prisma server or deploy to an existing server? Demo server
? Choose the region of your demo server info-680cc8/demo-eu1
? Choose a name for your service prisma-demo-1
? Choose a name for your stage dev
? Select the programming language for the generated Prisma client Don't generate

prisma deploy

del *

prisma init
? Set up a new Prisma server or deploy to an existing server? Demo server
? Choose the region of your demo server info-680cc8/demo-eu1
? Choose a name for your service prisma-demo-2
? Choose a name for your stage dev
? Select the programming language for the generated Prisma client Don't generate

prisma deploy

prisma list

prisma delete prisma-demo-1

Expected behavior
prisma delete prisma-demo-1 musn't remove prisma-demo-2 from my services
Screenshots
the repro output:

Versions (please complete the following information):

OS: [Windows 10 1803]
prisma CLI: [prisma/1.19.3 (windows-x64) node-v10.8.0]
Prisma Server: [eu-west-1 1.20-beta-1]
Node.js: [v10.8.0]
npm: [6.4.1]

Additional context
Prisma also maps the wrong service when used via prisma-binding on e.g.  apollo-server-express. Although  prisma-demo-1 is defined in prisma.yml the playground resolves to the datamodels from prisma-demo-2

I can confirm this is an issue on mac as well.

I think this is a quite a big bug and should be soon fixed.

Ya there is current way to pass a parameter to it, we are currently discussing to provide the option. In the meanwhile, you can change project in prisma.yml to delete


CriterionIFV

Hi, thanks for your great work! I still have some questions about your code especially the CriterionIFV part.
In your paper,  the proposed IFV module contains Average Pooling and unpooling operations, however, I haven't seen it in the code. Perhaps I misunderstood your code, could you please explain this part(CriterionIFV) for me? THX!

Hi, thanks for your interest. From line 144 to 145 in utils/criterion.py:

average pooling is simply implemented by sum and div;
unpooling is then achieved by assigning the values to the locations of the same class.

When computing the similarity between predictions and labels, any pre-operation should be used to process label data? For example, one-hot encoding or else? If you do, then where I could find the corresponding code?
from line 141 to 145, you use a "for in" operation to go through every class without adding or appending, then the last result you get should be the result of the 19th class. Is there something wrong?
waiting for your answer! Thanks a lot.

When computing the similarity between predictions and labels, any pre-operation should be used to process label data? For example, one-hot encoding or else? If you do, then where I could find the corresponding code?
from line 141 to 145, you use a "for in" operation to go through every class without adding or appending, then the last result you get should be the result of the 19th class. Is there something wrong?
waiting for your answer! Thanks a lot.

As seen in line 137 or 138, labels is transformed by unsqueeze, expand and upsample to match the shape of features. Note that the labels are only used to filter out the locations of the same class, not directly for computing the similarity.
Of course not. In each loop, we first assign the values only to the areas of class_i. Then we use + to combine them with the former results.


Add "Brand Lovers MarketPlace Seller API v1" API

Format: OpenAPI(fka Swagger) 2.0
Official: YES
Url: https://github.com/brandlovers/marketplace-api-documentation/blob/master/brandlovers-marketplace-api-v1.json
Name: Brand Lovers MarketPlace Seller API v1

@rturk Thank you.
Can you please add URL to your logo?
If would be ideal if you host it in the same repo.

@rturk Just added your API into collection.
For now used following logo URL: https://brandlovers.com/static/img/logo/BL_white_balao_35px.png


Jackett search

Hi,
When searcing for movie Jackett returns only torrents from one Indexer (in my case only YTS Indexer).
I also have 1337x and RARBG and other Indexers... why elementum found only YTS torrents?
log.txt

I found out if I play from my Library.. than only one provider returns torrents (like 4 torrents)
If I play in Extended Info Script (browse movies....) than at least 200 torrents are returned for the same movie I have in my library
why is that?

.. found problem..

@kovacicjanez I have the same problem. I have 2 providers on Jackett, both are working but sometimes for movies really known I have only results from 1 provider. What is your solution ?
Thanks !

If you play via context menu (elementum play) than it works (it uses name shown in kodi for search).
you must have context.elementum installed.

I'm sorry but I don't really understand. I have just installed context.elementum but what do you mean by "elementum play" ?  I use only kodi, and not the web ui of elementum. Is that correct ?

in kodi open "context menu" in that menu you have option "elementum play"
After highlighting an item (eg a movie) the Context Menu can be invoked by:
long press the OK key
Press letter C on a keyboard
right-clicking with the mouse

Thanks a lot but when I click on Elementum Play, no link founded with Jackett. Do I have to do something else ?

provide jackett log and I can check

I have this on Jackett : Heartbeat took longer than "00:00:01" at "12/08/2020 00:12:11 +00:00". This could be caused by thread pool starvation.
Maybe I have to increase the search time somewhere ?
Thanks !

provide jackett log and elementum log and I can check

It's working now but I have problem with Tv shows
For example, if I choose Elementum Play for episode 1 of a show, it will search just episode 1 in Jackett and not : my show s01e01 so the results are totally false
Do you have the same problem ?
Thanks


  I don't see any issues when HEAD is detached. I see:
[(sha1...) <rest of status info>] <path>
> _

I can't reproduce either - if you can, please include what you see in $Error when the prompt fails.

This may have been fixed by https://github.com/dahlbyk/posh-git/pull/307


integrating with loopback from strongloop

I created a boot script to start node-red from loopback project, here is the script (node-red.js) situated on boot folder from loopback. The loopback app, is a expressJS extension (loopback documentation):
'use strict';
module.exports = function(app) {
var RED;
try {
RED = require('node-red');
} catch(err) {
// Print the message only when the app was started via server.listen().
// Do not print any message when the project is used as a component.
server.once('started', function(baseUrl) {
console.log(
'Run npm install node-red to enable the node-red back-end'
);
});
return;
}
// Create the settings object - see default settings.js file for other options
var settings = {
httpAdminRoot:"/red",
httpNodeRoot: "/api",
userDir:".nodered/",
functionGlobalContext: { }    // enables global context
};
// Initialise the runtime with a server and settings
RED.init(app, settings);
// Serve the editor UI from /red
app.use(settings.httpAdminRoot, RED.httpAdmin);
// Serve the http nodes UI from /api
app.use(settings.httpNodeRoot, RED.httpNode);
// Start the runtime
RED.start();
}
Everything looks ok, strong loop start on default port 3000 I have access to:
localhost:3000/explorer -> loopback JSON api
localhost:3000/red -> node-red web editor
But when I access to  localhost:3000/red some seconds later I obtain error:
Error: Lost connection to server
What is wrong in my script???
Regards.

Hi,
The 'Lost connection to server' message is a sign the websocket between the editor and runtime is failing.
In order to setup the websocket listener, the first argument to RED.init needs to be an instance of HTTP Server. You are passing in app which has been passed into your module. I don't know what that is, but I bet it isn't an http server object.
As an aside, for general questions, we prefer to use the mailing list, and keep this issue list for things that need
fixing in node-red.

Thanks, I agree with you I resolved the problem, obtaining the http server created by loopback and configuring the init node-red that you explain in the web. Now I start node-red integrated with loopback correctly

As it sounds like you've resolve your problem, I'm going to close this issue. If you have any other questions, please use the mailing list.

Would be still great to know how you resolved that problem and where you got the http server from the app. thx!

Here is the boostrap code:
// Bootstrap the application, configure models, datasources and middleware.
// Sub-apps like REST API are mounted via boot scripts.
// Red-node back-end
boot(app, __dirname, function(err) {
    if (err) throw err;

    // start the server if `$ node server.js`
    if (require.main === module) {
        var server = app.start();

        // Create the settings object - see default settings.js file for other options
        var settings = {
            // By default, the Node-RED UI is available at http://localhost:1880/
            // The following property can be used to specifiy a different root path.
            // If set to false, this is disabled.
            httpAdminRoot:"/red",
            // Some nodes, such as HTTP In, can be used to listen for incoming http requests.
            // By default, these are served relative to '/'. The following property
            // can be used to specifiy a different root path. If set to false, this is
            // disabled.
            httpNodeRoot: "/api",
            // By default, all user data is stored in the Node-RED install directory. To
            // use a different location, the following property can be used
            userDir:".nodered/",
            // Anything in this hash is globally available to all functions.
            // It is accessed as context.global.
            // eg:
            //    functionGlobalContext: { os:require('os') }
            // can be accessed in a function block as:
            //    context.global.os
            functionGlobalContext: {
                fs:require('fs'),
                moment:require('moment'),
                loopback: app
            }
        };

        // Initialise the runtime with a server and settings
        RED.init(server, settings);

        // Serve the editor UI from /red
        app.use(settings.httpAdminRoot, RED.httpAdmin);

        // Serve the http nodes UI from /api
        app.use(settings.httpNodeRoot, RED.httpNode);

        // Start the runtime
        RED.start();
    }
});

Thank you very much! :-)


Update README: clarify what this repository is

I came here from http://docs.zewo.io/ and even though I know this repo is hosting a module that i can use for server-side development, I can't figure out at a glance what it is and how to use it.
The readme should include information about what this code does and how to use it.
See:
http://stackoverflow.com/questions/2304863/how-to-write-a-good-readme

From now on we'll be tracking issues exclusively at https://github.com/Zewo/Zewo/issues ☺


ipython variant call signal 15, using more resources than requested, controller does not die

Hi,
I am running a variant calling ensemble pipeline, having a spot of trouble with the ipython cluster, it appears that one of the engines gets killed as it is using more memory than requested. The controller and main program just hangs and does not die, it appears to not detect the failure. I am unsure which  part of the pipeline has caused the error or how to proceed.
I have tried to look at the log files, but find it difficult to connect the job_id with the processes that are called.
Some details:
I am running on PBSPro, currently there is no check_resource method, the engine and controllers still spin up though. Will this cause a potential problem leading to more resources used than requested?
(I altered the bcbio_nextgen.py -s option to allow pbspro specification. )
stderror from engine:
-bash-3.2$ tail bcbio-e.e765755
Processing reference #75 (GL000224.1)
Processing reference #76 (GL000223.1)
Processing reference #77 (GL000195.1)
Processing reference #78 (GL000212.1)
Processing reference #79 (GL000222.1)
Processing reference #81 (GL000193.1)
Processing reference #82 (GL000194.1)
Processing reference #83 (GL000225.1)
Processing reference #84 (GL000192.1)
=>> PBS: job killed: mem 2098076kb exceeded limit 2097152kb
last log info from ipython that mentions that job number:
log/ipython/log/ipcluster-d509a30c-cf8d-4bf9-b1f2-135eadc59c9f-23931.log <==
2015-01-27 08:37:40.024 [IPClusterStart] Job submitted with job id: u'765754'
2015-01-27 08:37:40.024 [IPClusterStart] Process 'qsub' started: u'765754'
2015-01-27 08:37:49.632 [IPClusterStart] Starting 1 Engines with cluster_helper.cluster.BcbioPBSPROEngineSetLauncher
2015-01-27 08:37:49.632 [IPClusterStart] Starting BcbioPBSPROEngineSetLauncher: ['qsub', u'./pbspro_engines']
2015-01-27 08:37:49.633 [IPClusterStart] adding PBS queue settings to batch script
2015-01-27 08:37:49.633 [IPClusterStart] adding job array settings to batch script
2015-01-27 08:37:49.633 [IPClusterStart] Writing batch script: ./pbspro_engines
2015-01-27 08:37:49.713 [IPClusterStart] Job submitted with job id: u'765755'
2015-01-27 08:37:49.713 [IPClusterStart] Process 'qsub' started: u'765755'
2015-01-27 08:41:49.714 [IPClusterStart] Engines appear to have started successfully
Different log output from ipython log file, suggesting process killed:
log/ipython/log/ipcontroller-e2c3a05d-4462-4a26-99bd-77955445cf89-15806.log <==
2015-01-27 08:35:47.485 [VMFixIPControllerApp] registration::finished registering engine 0:5613ba65-0102-4a9b-b4d1-3cf59b714501
2015-01-27 08:35:47.485 [VMFixIPControllerApp] engine::Engine Connected: 0
2015-01-27 08:35:51.671 [VMFixIPControllerApp] client::client '\x00\xaa\xf7\nZ' requested 'connection_request'
2015-01-27 08:35:51.671 [VMFixIPControllerApp] client::client ['\x00\xaa\xf7\nZ'] connected
2015-01-27 08:36:21.682 [VMFixIPControllerApp] client::client '\x00\xaa\xf7\n[' requested 'connection_request'
2015-01-27 08:36:21.683 [VMFixIPControllerApp] client::client ['\x00\xaa\xf7\n['] connected
2015-01-27 08:36:21.734 [VMFixIPControllerApp] task::task '9372bec4-0b3d-485f-919d-bea3ec103220' arrived on 0
2015-01-27 08:37:34.593 [VMFixIPControllerApp] task::task '9372bec4-0b3d-485f-919d-bea3ec103220' finished on 0
2015-01-27 08:37:36.357 [VMFixIPControllerApp] CRITICAL | Received signal 15, shutting down
2015-01-27 08:37:36.358 [VMFixIPControllerApp] CRITICAL | terminating children...
pbspro_engine submit script:
#!/bin/sh
#PBS -q workq
#PBS -V
#PBS -N bcbio-e
#PBS -l select=1:ncpus=1:mem=2048mb
cd $PBS_O_WORKDIR
/lustre/SCRATCH5/users/pjones/bcbio/anaconda/bin/python -E -c 'import resource; cur_proc, max_proc = resource.getrlimit(resource.RLIMIT_NPROC); target_proc = min(max_proc, 10240) if max_proc > 0 else 10240
; resource.setrlimit(resource.RLIMIT_NPROC, (max(cur_proc, target_proc), max_proc)); cur_hdls, max_hdls = resource.getrlimit(resource.RLIMIT_NOFILE); target_hdls = min(max_hdls, 10240) if max_hdls > 0 else
10240; resource.setrlimit(resource.RLIMIT_NOFILE, (max(cur_hdls, target_hdls), max_hdls)); from IPython.parallel.apps.ipengineapp import launch_new_instance; launch_new_instance()' --timeout=960 --IPEngin
eApp.wait_for_url_file=960 --EngineFactory.max_heartbeat_misses=120 --profile-dir="/lustre/SCRATCH5/users/pjones/data_files/... --cluster-id=
"d509a30c-cf8d-4bf9-b1f2-135eadc59c9f"
last output produces by main stdout:
[2015-01-27T08:28Z] cnode-7-44: Resource requests: ; memory: 1.00; cores: 1
[2015-01-27T08:28Z] cnode-7-44: Configuring 1 jobs to run, using 1 cores each with 1.00g of memory reserved for each job
[2015-01-27T08:28Z] cnode-7-44: multiprocessing: calc_callable_loci
[2015-01-27T08:28Z] cnode-7-44: bedtools genomecov: 1 : 10b_GGACTC_trimmed_paired_downsampled_sorted_markdup-reorder-fixrgs-gatkfilter-dedup.bam
[2015-01-27T08:29Z] cnode-7-44: bedtools genomecov: 2 : 10b_GGACTC_trimmed_paired_downsampled_sorted_markdup-reorder-fixrgs-gatkfilter-dedup.bam
Any help would be much appreciated. I was hoping to write the check_resource function for pbspro, but find it incredibly difficult to find appropriate documention on the qstat/pbsnodes function for pbspro. It is obviously based on torque, but I have not been able to determine the differences between the two in terms of those commands, nor what information the torque based check_resource function needs to extract from them in order to function.
Hope that made sense.
P

Thanks for the detailed report and sorry about the issue. It looks like 2Gb might not be enough memory to calculate callable regions and detect high depth issues in your input dataset. This is in the initial alignment step, so you could increase memory allocated by bumping up the specification in the samtools section of your bcbio_system.yaml file:
https://github.com/chapmanb/bcbio-nextgen/blob/master/config/bcbio_system.yaml#L27
Out of curiousity, are you only allowing 1 core for alignment and all these steps? Normally this is a multicore process so you get enough memory through the multiple cores x 2Gb/core specification. An alternative fix is to enable use of more cores here so your engine will have more allocated memory.
Hope this fixes the issue for you.

Hi Brad,
These are already aligned bam files, I am also not realigning. I am trying
to test lofreq in the context of ensemble calling. As I have not yet
managed to get it working with multiple cores. Freebayes also seems to
require only one core.
Will try your suggestion once I have access to the cluster again.
Thnks,
Piet
On 27 Jan 2015 23:31, "Brad Chapman"<EMAIL_ADDRESS>wrote:

Thanks for the detailed report and sorry about the issue. It looks like
2Gb might not be enough memory to calculate callable regions and detect
high depth issues in your input dataset. This is in the initial alignment
step, so you could increase memory allocated by bumping up the
specification in the samtools section of your bcbio_system.yaml file:
https://github.com/chapmanb/bcbio-nextgen/blob/master/config/bcbio_system.yaml#L27
Out of curiousity, are you only allowing 1 core for alignment and all
these steps? Normally this is a multicore process so you get enough memory
through the multiple cores x 2Gb/core specification. An alternative fix is
to enable use of more cores here so your engine will have more allocated
memory.
Hope this fixes the issue for you.
—
Reply to this email directly or view it on GitHub
https://github.com/chapmanb/bcbio-nextgen/issues/737#issuecomment-71730894
.

Thanks Piet, hope this fixed it for you, feel free to reopen if it didn't.


Update image.py

UnicodeDecodeError: 'gbk' codec can't decode byte 0xd9 in position 61: illegal multibyte sequence

Thanks, merged!


Recommended Flashcart

Hey There @GearsProgress!
Incredibly impressive project and really loved the background on your website in the creation of this tool, as someone (as many others I imagine) I'm trying to do this in the cheapest and SAFEST way possible. It looks like the only requirement for a flashcart is multiboot compatibility, is there a recommended list of flashcart models that you have tested throughout your development or even just a "Just buy X" comment is totally valid as well no matter the cost.

As far as I'm aware, you can use any GBA flashcart, but the EZ-flash Omega is (at least I'm my opinion) the easiest to work with. You just need to boot the GBA in multiboot mode by holding L when the GBA boots up.

I'm using Everdrive 5x (regular size) and works perfectly on my Analogue Pocket. I run the "game" (app) as any other one, wait for the loading screen, press start and will ask you to swap the cartridge, once swapped, press A. Change your Everdrive 5x to an actual GBA Pokemon game and works.

As others have said, any flashcart should work- but the EZ-Flash Omega is the one that I personally use and test with. If you have a Wii with homebrew and a GBA/GCN Link Cable, you can also upload the ROM through that!


Create a Parse entry when we save the user image

While creating a new account we need to save the date to Pars only once we reached the photo view and are ready to save the image.

Double #13


Resulting HTML has too much whitespaces

Just have checked resulting HTML
Same site generated using
original reflow plugin: https://om.alteametasoft.com/openmeetings/docs/
1.2.3 version: https://om.alteametasoft.com:8443/next/docs/

Lots of whitespaces in the beginning and between Menu blocks
Top of document

Hot sure how critical is this, but would be nice to fix

I waited have a good velocity editor

Work done and available in version 1.3.0-DEVACFR
Your Welcome.

Thanks a lot!
Just have checked, works as expected!
is it already available in central?

This is available on maven central:
<dependency>
  <groupId>io.github.devacfr.maven.skins</groupId>
  <artifactId>reflow-velocity-tools</artifactId>
  <version>1.3.3</version>
</dependency>

I can't see it
here: https://repo1.maven.org/maven2/io/github/devacfr
and here: http://mvnrepository.com/search?q=reflow
:((((

For me, it is first time a release in  maven central. I forgot to run release action. Now it is available.

Works as expected
Thanks for publishing :)


CRAN

Any plans to make a CRAN release?

Hi @nevrome , thanks for your interest. Long-term I'd like to submit to CRAN, however checkr still has some bugs I'd like fixed first. Unfortunately, R programming is not currently a priority for me.

Very sad. Without a CRAN release I can't consider to use it for packages that are ultimately intended to be released.
Nevertheless thanks for the effort! I'm looking forward to the moment when this project again becomes a priority for you.

@nevrome Sorry! 😢
It really means a lot to me that you've voiced your support for this project, though, and that really does motivate me a lot to eventually come back to it. I'll put this at the top of my R backlog for whenever I come back to R.
I can ping you on this issue when development resumes in earnest. :)

Sounds create! You can contact me if you need somebody for testing or minor bugfixing.

Hi @nevrome. I've have an interest in getting stuff on CRAN now -- I now have three packages on there. It also looks like @rmsharp is interested in getting this on CRAN. So I'm greenlighting this project. ;) 👍 💚
I made a milestone to track what I feel needs to be done to get this on CRAN. I will try to work on it and I encourage other people to help out where they can. 👍  https://github.com/peterhurford/checkr/milestone/1

Peter,
It looks like a little bit of syntactic sugar with roxugen2 @param and @return could populate the ensure function with pre and post values. I expect you or Clemens Schmid would know if that is correct and how hard it would be.
Mark
R. Mark Sharp
7526 Meadow Green St.
San Antonio, TX 78251
mobile:<PHONE_NUMBER>
<EMAIL_ADDRESS>

I should have said “with regard to class checking”. It would not address domain testing.
Mark
R. Mark Sharp
7526 Meadow Green St.
San Antonio, TX 78251
mobile:<PHONE_NUMBER>
<EMAIL_ADDRESS>
On Oct 10, 2017, at 4:13 PM, R. Mark Sharp<EMAIL_ADDRESS>wrote:
Peter,
It looks like a little bit of syntactic sugar with roxugen2 @param and @return could populate the ensure function with pre and post values. I expect you or Clemens Schmid would know if that is correct and how hard it would be.
Mark
R. Mark Sharp
7526 Meadow Green St.
San Antonio, TX 78251
mobile:<PHONE_NUMBER>
<EMAIL_ADDRESS>

@rmsharp
I think you should open a new issue for this.
AFAIK there's no generally agreed upon way how to describe object types in the roxygen tags. Therefore it's not practical to set this up. But maybe I don't understand your idea correctly.

It was simply an off the cuff comment because of the redundant information in the first example code. I do like the documentation to include the data types, but I do not like having multiple sources that can get out of sync. In this case the code inside the call to ensure() is obviously the authoritative source.
#' @param x numeric. The number to add.
#' @param y numeric. The number to add.
add <-
ensure(
pre = list(x %is% numeric, y %is% numeric),
post = result %is% numeric,  # result matches whatever the function returns.
function(x, y) x + y
)
R. Mark Sharp
7526 Meadow Green St.
San Antonio, TX 78251
mobile:<PHONE_NUMBER>
<EMAIL_ADDRESS>
On Oct 11, 2017, at 3:35 AM, Clemens Schmid<EMAIL_ADDRESS>wrote:
@rmsharp
I think you should open a new issue for this.
AFAIK there's no generally agreed upon way how to describe object types in the roxygen tags. Therefore it's not practical to set this up. But maybe I don't understand your idea correctly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


remove imports, close #131

Confirming that
val magnolia_upstream = ProjectRef(
  uri(
    "https://github.com/fommil/magnolia.git#53dc7ed"
  ),
  "coreJVM"
)
val mercator_upstream = ProjectRef(
  uri(
    "https://github.com/fommil/mercator.git#4ced5e0"
  ),
  "coreJVM"
)

fixes the problem


Add country as input parameter

Where we have data available, we could then use country specific efficiency of their car fleet, trains etc. Also for #24 we could take into account that country's CO2 emission for energy production.

When origin/destination are given, the country would be easy to infer, obviously.


Error while trying to install using ROCm option

I am on Fedora 40 and installed rocm and hip from fedora repositories. I keep getting below error while trying to run
CC=/usr/lib64/llvm17/bin/clang CXX=/usr/lib64/llvm17/bin/clang++ CMAKE_ARGS="-DLLAMA_HIPBLAS=1 -DLLAMA_FAST=1" pip install --no-cache-dir llama-cpp-python
Note that I had to set CC and CXX variables as per my installation in above command. I get below error when I run it.
     CMake Error at vendor/llama.cpp/CMakeLists.txt:556 (find_package):
        By not providing "Findhip.cmake" in CMAKE_MODULE_PATH this project has
        asked CMake to find a package configuration file provided by "hip", but
        CMake did not find one.

        Could not find a package configuration file provided by "hip" with any of
        the following names:

          hipConfig.cmake
          hip-config.cmake

        Add the installation prefix of "hip" to CMAKE_PREFIX_PATH or set "hip_DIR"
        to a directory containing one of the above files.  If "hip" provides a
        separate development package or SDK, be sure it has been installed.

      -- Configuring incomplete, errors occurred!

      *** CMake configuration failed
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects

Any help would be highly appreciated. Thanks!

A little bit of digging and I found this comment which says you'll need to set the CMAKE_MODULE_PATH variable. See here for more details.
If this doesn't work, could you see if cmake is available in Fedora's package manager, and try installing that way?


Plugins

Hey! I experimented with adding an abstract (background?) painter component that could be used to draw arbitrary things on the timeline: cell and row backgrounds, lines connecting items, webgl accelerated particles or videos of Kiefer Sutherland jumping into Christmas trees... In theory you could render anything without having to modify the timeline itself.
Here's a demo that uses it to display different background colors for rows:

It could be extended to add the ranges feature you mentioned in #74 or to fix #77.
Basically the custom painter component would get a lot of internals from the timeline as props (groupHeights, dimensionItems, etc), and use this to do whatever is needed.
Any thoughts on this approach?

@mariusandra hey this is really cool! Wow! I reviewed this week some code of @meengit and he planed to send a PR for ranges. but with that method in place that's not necessary anymore. Instead he should have it as a separate npm as a "plugin" to load.
So we should probably have two options for this prop. You can pass in a react-component or an array of react-components. So you can load multiple plug-ins
I would suggest the following API:
untouched

canvasTimeStart, canvasTimeEnd - start and end of the scrolling canvas in Unix timestamps
canvasWidth - width of the scrolling canvas in pixels
visibleTimeStart, visibleTimeEnd - start and end of the currently visible area
groups, items, keys - groups, items and keys as passed to the timeline
dimensionItems - an array of objects { id, dimensions: {...} } describing positions of all the items
height, headerHeight - height of the entire calendar (includes headerHeight) or just the header
timeSteps - steps for displaying time

new

dimensionGroups- an array of objects { id, dimensions: {...} } describing positions of all the groups
selected - an array of Item ID of selected items. ((I swapped internally all to array handling > PR is coming next week. So there is no big difference between passed selected or internal selection handling. Therefore I would only give that one props to make it more uniform))

drop

lineCount - number of groups this could be done with dimensionGroups.lengthno?
groupHeights, groupTops - arrays of heights and tops for the groups we have dimensionGroups ((this line is 2x in the readme.md)
selectedItem, selected - the selected item or controlled selected items array

I'm right now on an other project till mid next week so I can't invest too much time right now. But I try to keep up with the comments.

Hey, thanks for the review!
Indeed after this, the ranges PR could and should be converted to a plugin. Your idea of allowing many plugins to be added at the same time sounds great. In fact, I'm thinking of redesigning the API to allow for this flexibility. My proposal is to allow something like this:
<Timeline {...props}>
  <Ranges ranges={[/* 3pm to 5pm every day */, /* another range */]} />
  <RainbowBackground />
  <SomeOtherPlugin />
</Timeline>

All of these plugins would get cloned and passed these extra props. Similar to how I did it for pigeon-maps.
With v0.13.0 I deprecated passing the content for the left sidebar as children to the component, so there should be nothing in the way of this.
This might even pave the way for a fully composable timeline, where you could just do
import Timeline, { HorizontalLines, VerticalLines, TodayLine, Sidebar } from 'react-calendar-timeline'
import Ranges from 'react-calendar-timeline-ranges'

<Timeline {...timelineProps}>
  <Sidebar alignment='left' />
  <HorizontalLines />
  <VerticalLines />
  <TodayLine />
  <Ranges {...rangeProps} />
</Timeline>

... but that's to be thought of later. For sure before reaching 1.0 :).
For the other comments

I'll wait for your PR on the selectedItem vs selected changes.
Agreed about lineCount not being useful
For merging groupHeights and groupTops into dimensionGroups, it makes some sense. However I would also like to avoid calls to create new objects just to pass to painter. I guess I could refactor the stacking functions to already return and use this combined object.

Hey... and I did those API changes!

The children of the component now get extra props... and thus I removed the painter prop.

I would suggest to keep working on the  API. Stuff lie dimensionGroups is a bit work to rewrite our internal use. but it would also be much clearer.
But yeah. Just merge it and we keep an eye on it. I send you tomorrow the PR of my [multiselect/multidrag feature]/(https://github.com/signalwerk/react-calendar-timeline/tree/feature/multiselect) and next week I try to adopt @meengit s ranges to a plugin. then I have a better view if the API fits for simple cases

Cool! Thanks for the review! I'll add a notice in the README that the API for plugins will still change, so be prepared.
And I propose to move in the direction of unifying the internal and external APIs.... so we could also get rid of all the pornographic methods in Timeline.js that just render components (this.items, this.verticalLines, etc).

I merged the code and will do a release with this (and the new header format) in the evening (CET). One more thing: I still need to write tests for this. That will also have to wait for the evening :).

@mariusandra completely agree with your words! eat your own dog food is always good
Don't hurry for the release. We are not in a rush. :)

Well, it's merged and 0.15 is out! It think it's a good base for further improvements.
I also added a simple test to at least make sure the children get the right props. Once we settle on what those props should actually contain, we can extend it further.
Let the flood of new plugins begin! 🌊 😁


Fix #985

Add the Content-Type header implicitly to string request bodies (the default is text/plain)

Fixes #985

tested posts on these portal views from my local and can verify they work

groups
zones
batch
recordset search