Problem with the Search bar component when placeholder is too long (Only aplies on other languages)

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
I just found a minor bug where the search bar's placeholder is too long when switching to another language. Luckily, it's very easy to fix, and I'll be opening a PR if given the opportunity.

Additional information
No response

Can you please elaborate more about the issue?

Can you please elaborate more about the issue?

Sure!

It seems that the placeholder is not complete when its on another language.


GRPC session is not registered

After a successful build of minigo and running the freezegraph.py the GRPC session could not be started. Seems, that the GRPC factory is not registered.
I've used this command to build minigo: bazel build -c opt cc:main --define=tpu=1
There is also a tensorflow issue mentioned, but I'm not sure how to change the linker options. I think if not yet done they need to be included into the build files of minigo?
https://github.com/tensorflow/tensorflow/issues/3308
minigo output:
Found 8 model replicas in graph gs://minigo-20180902/minigo-models/000532-ace
2018-10-31 21:56:59.102153: E tensorflow/core/common_runtime/session.cc:58] Not found: No session factory registered for the given session options: {target: "grpc://10.240.x.x:8470" config: allow_soft_placement: true log_device_placement: true} Registered factories are {DIRECT_SESSION}.
Segmentation fault
remark: I only get to this point until I've changed tpu_dual_net.cc to search for pos_tensor_  but not for tpu_pos_tensor. To my understanding freezegraph.py is not using tpu_pos_tensor than only pos_tensor.

To the last point:

I'm sorry for the trouble. I tried to overcome my build issue by removing this line:
https://github.com/tensorflow/minigo/blob/b23e486e447d8956f5816c87e86889fdf22fc081/cc/BUILD#L21
My mistake. I'm so sorry for that. Now libgrpc_runtime.so is linked. Keep my fingers cross. Tomorrow I'll restart the TPU and aim to test the inference. Once done looking forward to implement this with leela.
output of ldd is ok now:
    linux-vdso.so.1 (0x00007fff6955b000)
    libtensorflow_framework.so => /home/martin_renneke/minigo/bazel-bin/cc/../_solib_k8/_U_S_Scc_Ctensorflow___Ucc_Stensorflow/libtensorflow_framework.so (0x00007fea2e491000)
    libgrpc_runtime.so => /home/martin_renneke/minigo/bazel-bin/cc/../_solib_k8/_U_S_Scc_Ctensorflow___Ucc_Stensorflow/libgrpc_runtime.so (0x00007fea29a97000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fea2987a000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fea294f8000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fea291f4000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fea28fdd000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fea28c3e000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fea28a3a000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fea2f20a000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fea28832000)


Partial marks

Are there partial marks for labs and project work that does not get A on codecrunch? I have a few that's not A and its really panic szn now.

Yes according to some of the previous posts, deemed sufficient, you will be given partial marks

In this comment, Prof has mentioned that partial grading will be given for both projects and labs
https://github.com/nus-cs2030/2122-s1/issues/149#issuecomment-955123155

Relax u still have tonight and the whole pf tmr to get the labs and project done. Jiayouss!!

jiayou everyone !


Testing direct file uploads?

Hi there, it's my first time using the Refile gem and I'm trying to write controller tests for my direct file uploads. Haven't had much luck thus far, anyone has tips?
To be exact, I'm trying to test a POST action on the controller with an attached file handled by Refile.
Thanks in advance! :smile:

Which part are you having trouble with?

I had to wager, I would say how to stub a file upload in the controller. @dvrylc can you elaborate a bit more, please?

+1

@jnicklas Please refer me to the place where I can read about testing refile stuff.

See issue #367 - but I've been doing something like this.
file = StringIO.new('hello')
file = Refile::Backend::FileSystem.new("tmp/uploads/cache").upload(file)
file_attributes = {
  id: file.id,
  size: file.size,
  filename: 'hello.txt',
  file_content_type: 'text'
}.to_json

post :foo, {
  file: file_attributes
}


Fusion data shows spikes and is not smooth as expected

When handling the IMU gently, the data from the driver often spikes. This is unexpected when in fusion mode.

Similar to #1 this seems to have been related to the I2C communication, I've seen no spikes since switching to software I2C


Create writeup for MVP Timeline for June 2015 - January 2016

Create a minimal viable internal report on what hackEDU will be doing in terms of clubs / club organizers that communicates the report to everyone on the hackEDU internal team.

Made MVPs of what this will look like: https://gist.github.com/jonleung/a29c49fbc4ed23bcca96

Informal plan written up, formal timeline to be put together by the end of the week

Closed because it is no longer relevant


doc: update release notes with ARC details

Signed-off-by: Anas Nashif<EMAIL_ADDRESS>

wait until it goes into master


Extend Kyma CR module list with an explicit version

Description
Note: This issue is just about API change, the change in the controller logic is expected to be implemented here
In order to support explicit module version, we need to add an optional version attribute to the  Kyma CR module list.
An example:
Use case 1 / existing: User wants to enable a specific channel of a module in their cluster.
[...]
- modules:
  - name: my-module
    channel: fast
[...]

Use case 2 / new: User wants to enable a specific version of a module in their cluster.
[...]
- modules:
  - name: my-module
    version: 1.0.0
[...]

Reasons
We need this because users must be given an option to install a specific version of the module.
If the user wants to enable a specific module version, a ModuleTemplate CR corresponding to that version must exist in the control-plane.
Acceptance Criteria

[ ] Add new optional version attribute is to the module list in Kyma CR. Must be a semantic version or a defined identifier like regular or fast (see https://github.com/kyma-project/lifecycle-manager/issues/1590).
[ ] Add a validation: either channel or version is present - it is an error to provide both

Feature Testing
e2e test for the validation. Can be done with local EnvTest.
Testing approach
No response
Attachments
No response
Related issue(s)
https://github.com/kyma-project/lifecycle-manager/issues/1590

@Tomasz-Smelcerz-SAP FYI: changed the following AC

Add new optional version attribute is to the module list in Kyma CR. Must be a semantic version or a defined identifier like regular or fast (see Introduce New ModuleTemplate API version to support the new Module Catalog  #1590).


Make transitive dependency explicit

I use pnpm instead of npm.
Without this change, running
pnpm install
pnpm exec vite

will not work, because pnpm does not flatten node_modules, so a package cannot directly access transitive dependency.

I haven't tried to use pmpm to set up and run Lorgnette, so I never noticed the issue. That being said, it is a good thing if it makes Lorgnette readily compatible with another major package manager.
Thank you for taking care of writing this PR, I'll merge it right away!


Calendar

### Tasks
- [ ] #2390
- [ ] #2393
- [ ] #2392
- [ ] #2391

One sprint delay for the release of Date Picker to Core, we are now targeting for end of Ursula for our Date Picker release (which includes Calendar and DateInput)

Date picker is now in PR and ready for review
https://github.com/jpmorganchase/salt-ds/pull/3716

Calendar has been updated and re-published to Labs, we are refining through feedback before we push to Core.
If you require DatePicker/Calendar or DateInput, please feedback through #4096 , so we can make the changes in Labs, before we move a stable set of components to Core


Cluster scope access needed for secrets when checkUpstream is true

When using a private registry with credentials available in authSecretName and when defining checkUpstream: true, the webhook fails to read the secret and indicates that a permission to read them at the cluster scope is missing:
2024-02-22T06:59:04Z	INFO	controller-runtime.webhook	Serving webhook server	{"host": "", "port": 9443}
2024-02-22T06:59:04Z	INFO	controller-runtime.certwatcher	Starting certificate watcher
2024-02-22T06:59:51Z	INFO	mutator	token key: 	{"key": {"name":"docker-cfg","namespace":"harbor-container-webhook"}}
W0222 06:59:51.704213       1 reflector.go:535] pkg/mod/k8s.io/client-go@v0.28.4/tools/cache/reflector.go:229: failed to list *v1.Secret: secrets is forbidden: User "system:serviceaccount:harbor-container-webhook:harbor-container-webhook" cannot list resource "secrets" in API group "" at the cluster scope

If we disable checkUpstream, the connection with the private registry works fine.
Should the right ClusterRole be added to the service account created by the helm chart or should the webhook code be updated to have it work with namespaced Roles? Happy to create a PR.

I'm hitting the same problem. Did you find  way aroung it?


doc(setting): modify for lazy updating

Which issue(s) this PR fixes:

Issue longhorn/longhorn#7173, longhorn/longhorn#7675
What this PR does / why we need it:
Remove the descriptions such as WARNING: volumes can not be attached for updating danger zone settings.
Special notes for your reviewer:
Additional documentation or context

@mergify backport v1.6.x


Tensor name "vert_rnn/gru_cell/gates/biases" not found in checkpoint files checkpoints/dual_graph_vrd_final_iter2.ckpt

I found the following error when running the quick start. Can you give some suggestion?
NotFoundError (see above for traceback): Tensor name "vert_rnn/gru_cell/gates/biases" not found in checkpoint files checkpoints/dual_graph_vrd_final_iter2.ckpt
[[Node: save/RestoreV2_56 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/RestoreV2_56/tensor_names, save/RestoreV2_56/shape_and_slices)]]
[[Node: save/RestoreV2_28/_69 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_251_save/RestoreV2_28", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"]]

Which tensorflow version are you using? The repo currently supports up to 0.12

Probably this is due to the wrong version then. I use v1.0.0 right now.


update truststore and ssl options

This change is

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Search mechanisch

Visitors can use a search mechanism to search content on the site and forum #11 .

Implemented


Poping from the Scaffold of a Nested Route with multiple Stacked Routes

Hi, first of all Thank you for this Packages, works like a charm :100:
I'm bumping into a little problem.
For one of my project I have the current Routes:

/user --> /user/team -> /user/team/channel --> /user/team/channel/thread

My problem is that to avoid replicating the Navigator.of(context).pop()
I use the Scaffold of the /user (VNester) but doing so return me to "/"
I'm certainly doing something wrong, and my explanation are certainly not that good, that's why made a short test to show you what I'm expecting.
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:vrouter/vrouter.dart';

main() {
  group('VNester', () {
    testWidgets('VNester VStacked pop', (WidgetTester tester) async {
      await tester.pumpWidget(
        VRouter(
          routes: [
            VWidget(
              path: '/',
              widget: Builder(
                builder: (BuildContext context) {
                  return Scaffold(
                    body: Text('VWidgetHome'),
                    floatingActionButton: FloatingActionButton(
                      onPressed: () => VRouter.of(context).push('/user/team'),
                    ),
                  );
                },
              ),
              stackedRoutes: [
                VNester(
                  path: '/user',
                  widgetBuilder: (child) => Builder(
                    builder: (BuildContext context) {
                      return Scaffold(
                        appBar: AppBar(
                          title: Text('Scaffold VNester'),
                          leading: IconButton(
                            onPressed: () {
                              Navigator.of(context).pop();
                            },
                            icon: Icon(Icons.arrow_forward_rounded),
                          ),
                        ),
                        body: child,
                      );
                    },
                  ),
                  nestedRoutes: [
                    VWidget(
                      path: 'team',
                      widget: Builder(
                        builder: (BuildContext context) {
                          return OutlinedButton(
                            onPressed: () => VRouter.of(context).push('/user/team/channel'),
                            child: Text('VWidgetTeam'),
                          );
                        },
                      ),
                      stackedRoutes: [
                        VWidget(
                          path: 'channel',
                          widget: Builder(
                            builder: (BuildContext context) {
                              return OutlinedButton(
                                onPressed: () => Navigator.of(context).pop(),
                                child: Text('VWidgetChannel'),
                              );
                            },
                          ),
                        ),
                      ],
                    ),
                  ],
                ),
              ],
            ),
          ],
        ),
      );

      await tester.pumpAndSettle();

      // At first we are on "/" so only VWidget1 should be shown

      final vWidget1Finder = find.text('VWidgetHome');
      final vWidget2Finder = find.text('VWidgetTeam');
      final vWidget3Finder = find.text('VWidgetChannel');
      final vNesterFinder = find.text('Scaffold VNester');

      expect(vWidget1Finder, findsOneWidget);
      expect(vNesterFinder, findsNothing);
      expect(vWidget2Finder, findsNothing);
      expect(vWidget3Finder, findsNothing);

      // Navigate to '/user/team'
      // Tap the add button.
      await tester.tap(find.byType(FloatingActionButton));
      await tester.pumpAndSettle();

      expect(vWidget1Finder, findsNothing);
      expect(vNesterFinder, findsOneWidget);
      expect(vWidget2Finder, findsOneWidget);
      expect(vWidget3Finder, findsNothing);

      // Push to '/user/team/channel'
      // Tap the add button.
      await tester.tap(find.byType(OutlinedButton));
      await tester.pumpAndSettle();

      expect(vWidget1Finder, findsNothing);
      expect(vNesterFinder, findsOneWidget);
      expect(vWidget2Finder, findsNothing);
      expect(vWidget3Finder, findsOneWidget);

      // Pop to '/user/team'
      // Tap the add button.
      // Doing a single Pop I expect to go back from 1 Stacked Route but instead I go back to "/"
      await tester.tap(find.byType(IconButton));
      await tester.pumpAndSettle();

      expect(vWidget1Finder, findsNothing);
      expect(vNesterFinder, findsOneWidget);
      expect(vWidget2Finder, findsOneWidget);
      expect(vWidget3Finder, findsNothing);
    });
  });
}

I'm certainly doing something wrong but can't understand what.
Hope you will be able to help me.
Louis

Hi, thank for the kind words
This is expected because pop(context) can only find the navigator of the current context. Which means that navigators placed bellow this widget can't be accessed.
I see 2 solutions to your problem:

Use VRouter.of(context).systemPop() (because systemPop tries to pop the deepest-most)
Use a VPopHandler

Here is solution 1

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:vrouter/vrouter.dart';

main() {
  group('VNester', () {
    testWidgets('VNester VStacked pop', (WidgetTester tester) async {
      await tester.pumpWidget(
        VRouter(
          routes: [
            VWidget(
              path: '/',
              widget: Builder(
                builder: (BuildContext context) {
                  return Scaffold(
                    body: Text('VWidgetHome'),
                    floatingActionButton: FloatingActionButton(
                      onPressed: () => VRouter.of(context).push('/user/team'),
                    ),
                  );
                },
              ),
              stackedRoutes: [
                VNester(
                  path: '/user',
                  widgetBuilder: (child) => Builder(
                    builder: (BuildContext context) {
                      return Scaffold(
                        appBar: AppBar(
                          title: Text('Scaffold VNester'),
                          leading: IconButton(
                            onPressed: () {
                              VRouter.of(context).systemPop();
                            },
                            icon: Icon(Icons.arrow_forward_rounded),
                          ),
                        ),
                        body: child,
                      );
                    },
                  ),
                  nestedRoutes: [
                    VWidget(
                      path: 'team',
                      widget: Builder(
                        builder: (BuildContext context) {
                          return OutlinedButton(
                            onPressed: () => VRouter.of(context).push('/user/team/channel'),
                            child: Text('VWidgetTeam'),
                          );
                        },
                      ),
                      stackedRoutes: [
                        VWidget(
                          path: 'channel',
                          widget: Builder(
                            builder: (BuildContext context) {
                              return OutlinedButton(
                                onPressed: () => Navigator.of(context).pop(),
                                child: Text('VWidgetChannel'),
                              );
                            },
                          ),
                        ),
                      ],
                    ),
                  ],
                ),
              ],
            ),
          ],
        ),
      );

      await tester.pumpAndSettle();

      // At first we are on "/" so only VWidget1 should be shown

      final vWidget1Finder = find.text('VWidgetHome');
      final vWidget2Finder = find.text('VWidgetTeam');
      final vWidget3Finder = find.text('VWidgetChannel');
      final vNesterFinder = find.text('Scaffold VNester');

      expect(vWidget1Finder, findsOneWidget);
      expect(vNesterFinder, findsNothing);
      expect(vWidget2Finder, findsNothing);
      expect(vWidget3Finder, findsNothing);

      // Navigate to '/user/team'
      // Tap the add button.
      await tester.tap(find.byType(FloatingActionButton));
      await tester.pumpAndSettle();

      expect(vWidget1Finder, findsNothing);
      expect(vNesterFinder, findsOneWidget);
      expect(vWidget2Finder, findsOneWidget);
      expect(vWidget3Finder, findsNothing);

      // Push to '/user/team/channel'
      // Tap the add button.
      await tester.tap(find.byType(OutlinedButton));
      await tester.pumpAndSettle();

      expect(vWidget1Finder, findsNothing);
      expect(vNesterFinder, findsOneWidget);
      expect(vWidget2Finder, findsNothing);
      expect(vWidget3Finder, findsOneWidget);

      // Pop to '/user/team'
      // Tap the add button.
      // Doing a single Pop I expect to go back from 1 Stacked Route but instead I go back to "/"
      await tester.tap(find.byType(IconButton));
      await tester.pumpAndSettle();

      expect(vWidget1Finder, findsNothing);
      expect(vNesterFinder, findsOneWidget);
      expect(vWidget2Finder, findsOneWidget);
      expect(vWidget3Finder, findsNothing);
    });
  });
}

Here is solution 2

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:vrouter/vrouter.dart';

main() {
  group('VNester', () {
    testWidgets('VNester VStacked pop', (WidgetTester tester) async {
      await tester.pumpWidget(
        VRouter(
          routes: [
            VWidget(
              path: '/',
              widget: Builder(
                builder: (BuildContext context) {
                  return Scaffold(
                    body: Text('VWidgetHome'),
                    floatingActionButton: FloatingActionButton(
                      onPressed: () => VRouter.of(context).push('/user/team'),
                    ),
                  );
                },
              ),
              stackedRoutes: [
                VNester(
                  path: '/user',
                  widgetBuilder: (child) => Builder(
                    builder: (BuildContext context) {
                      return Scaffold(
                        appBar: AppBar(
                          title: Text('Scaffold VNester'),
                          leading: IconButton(
                            onPressed: () {
                              VRouter.of(context).systemPop();
                            },
                            icon: Icon(Icons.arrow_forward_rounded),
                          ),
                        ),
                        body: child,
                      );
                    },
                  ),
                  nestedRoutes: [
                    VWidget(
                      path: 'team',
                      widget: Builder(
                        builder: (BuildContext context) {
                          return OutlinedButton(
                            onPressed: () => VRouter.of(context).push('/user/team/channel'),
                            child: Text('VWidgetTeam'),
                          );
                        },
                      ),
                      stackedRoutes: [
                        VPopHandler(
                          onPop: (vRedirector) async => vRedirector.push('/user/team/channel'),
                          stackedRoutes: [
                            VWidget(
                              path: 'channel',
                              widget: Builder(
                                builder: (BuildContext context) {
                                  return OutlinedButton(
                                    onPressed: () => Navigator.of(context).pop(),
                                    child: Text('VWidgetChannel'),
                                  );
                                },
                              ),
                            ),
                          ],
                        ),
                      ],
                    ),
                  ],
                ),
              ],
            ),
          ],
        ),
      );

      await tester.pumpAndSettle();

      // At first we are on "/" so only VWidget1 should be shown

      final vWidget1Finder = find.text('VWidgetHome');
      final vWidget2Finder = find.text('VWidgetTeam');
      final vWidget3Finder = find.text('VWidgetChannel');
      final vNesterFinder = find.text('Scaffold VNester');

      expect(vWidget1Finder, findsOneWidget);
      expect(vNesterFinder, findsNothing);
      expect(vWidget2Finder, findsNothing);
      expect(vWidget3Finder, findsNothing);

      // Navigate to '/user/team'
      // Tap the add button.
      await tester.tap(find.byType(FloatingActionButton));
      await tester.pumpAndSettle();

      expect(vWidget1Finder, findsNothing);
      expect(vNesterFinder, findsOneWidget);
      expect(vWidget2Finder, findsOneWidget);
      expect(vWidget3Finder, findsNothing);

      // Push to '/user/team/channel'
      // Tap the add button.
      await tester.tap(find.byType(OutlinedButton));
      await tester.pumpAndSettle();

      expect(vWidget1Finder, findsNothing);
      expect(vNesterFinder, findsOneWidget);
      expect(vWidget2Finder, findsNothing);
      expect(vWidget3Finder, findsOneWidget);

      // Pop to '/user/team'
      // Tap the add button.
      // Doing a single Pop I expect to go back from 1 Stacked Route but instead I go back to "/"
      await tester.tap(find.byType(IconButton));
      await tester.pumpAndSettle();

      expect(vWidget1Finder, findsNothing);
      expect(vNesterFinder, findsOneWidget);
      expect(vWidget2Finder, findsOneWidget);
      expect(vWidget3Finder, findsNothing);
    });
  });
}

The best solution will be the one which works best for you !

Obviously a context thing :disappointed:
I think the systemPop() is the best solution for me, otherwise it's kinda too verbose for just a pop^^
Anyway thank you, I'm still a bit confuse about how the context work in flutter but I think I will understand one day (Maybe)
Have a good day :smiley:

I must say it's even trickier here since the Navigator are inserted by VRouter without you seeing them. But I understand that the entire concept can be tricky
Have a nice day!


Making task names optional

Currently we write
execute:
   tryWith1:
     try:
         call:
   tryWith2:
      try:
        call:

execute, try and call are reserved words, tryWith1 is a name the user has to came with
If user is lazy and do not want to invent names (which are useful, as far as I know just for error.instance feature), he might want to write this instead
execute:
  - try:
    call:
   - try:
      name: I want to name that one
      call:

As discussed in PM, this would go against one of the drives of the refactor, which is having proper references, and which you suggested, by the way.
Making names optional would IMO encourage users to malpractice for the sake of lazyness. Malpractice not only because it will make references more technical (using indexes), but also because of maintenance.
 Authors write what they want, upper, lower, whichever case as long as its a valid property name
It makes references pretty and allows instant identification of a (possibly faulty) component, even for a non-technical person


Changing the UI strings to use the word embed.

Please double check this change. I had some issues pushing the changes.

Thanks Reeza


Difference in Questionnaire pagination button styles

Describe the bug
A paginated questionnaire when rendered, the "previous"/"next" button have distinctly different styling from that of the "submit" button
Expected behavior
The button should probably be similar styled or may be allowed to be configurable
Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Device: [e.g. Samsung Galaxy A2 emulator]
Android version: [e.g. Settings -> About phone -> Android version]
Build number: [e.g. Settings -> About phone -> Build number]
Version [e.g. 24]

Additional context
Add any other context about the problem here.

Hello @rowo @HenryRae The Questionnaire submit buttons in OpenSRP appear to be differently shaped compared to the submit buttons in the Google SDK as seen in their demo apps.
When we have paginated Questionnaires, the previous/next and submit buttons have a different look
Is this by design? cc @pld

|

Here's how forms were designed. Thus this what should be followed, however we are happy to adjust the designs to what we are able to archive technically.


craco should actually be added to the project "dependencies", and not "devDependencies"

This is because it is required for production builds, so it always needs to be present. Otherwise, if yarn install or npm install is run in an environment where NODE_ENV is set to production, it won't be installed and the build will fail.
This is also why react-scripts is in the "dependencies" section.

@ndbroadbent good point but I do find it awkward to npm install or event npm run build on a production environment.  Production environments should have a pre-built package on static assets.  My understanding is that devDependencies are for build time dependencies and dependencies are for runtime.

@yohanb Yes that's true for static sites that you can build locally and push up to S3 or something. But if you're pushing to Heroku, Now, Flynn, Convox, etc., these tools have a build process that runs in a container where NODE_ENV is set to production, so it only installs "dependencies" by default. If you set it to development, then you install all the stuff you don't need like eslint and prettier.
I found all these issues as well:

https://github.com/facebook/create-react-app/issues/2696
https://github.com/facebook/create-react-app/pull/2657

My main concern was this part:

It also created problems for folks who run build on deployment.

https://github.com/facebook/create-react-app/issues/4342
https://github.com/facebook/create-react-app/issues/3651

But anyway I just think it makes sense to follow create-react-app and put craco in the same place as react-scripts.

@ndbroadbent I haven't thought about how those providers works, thank you!


Should there be an implicit opacity transforms on simpleDataJoin'ed components?

I.e. In this PR should the opacity code have been moved from bar.js to simpleDataJoin.js?

I don't have a strong opinion at the moment, but I definitely think it's worth considering and discussing further.

Yes it should be moved is the decision


Switch to Boost.Core's lightweight_test

The dependencies for testing decrease significantly (as shown in the cmake/dependencies.cmake diff) as does the time to build and run the tests.

@tzlaine Looks like on OSX the tests are using the system installed Boost which doesn't have newer facilities in <boost/core/lightweight_test.hpp>, while on Linux they're cloning Boost from Github. Any objection to making the OSX tests do the same?

No objection.  I probably should have been doing that all along.
Zach
On Fri, May 1, 2020 at 3:41 PM Glen Fernandes<EMAIL_ADDRESS>wrote:

@tzlaine https://github.com/tzlaine Looks like on OSX the tests are
using the system installed Boost which doesn't have newer facilities in
<boost/core/lightweight_test.hpp>, while on Linux they're cloning Boost
from Github. Any objection to making the OSX tests do the same?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/boostorg/stl_interfaces/pull/40#issuecomment-622559408,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAUCANZ3DIFZSMG42KA6ZLRPMXYBANCNFSM4MWQTMOQ
.

@tzlaine Done.

Thanks, Glen!
Zach
On Fri, May 1, 2020 at 8:04 PM Glen Fernandes<EMAIL_ADDRESS>wrote:

@tzlaine Done.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


Gearbest sensor not working anymore

Home Assistant release with the issue:
0.71.1
Component/platform:
https://www.home-assistant.io/components/sensor.gearbest/
Description of problem:
Component setup error.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
- platform: gearbest
  currency: EUR
  items:
    - id: 1119115
      name: Yeelight JIAOYUE 650

Same error with product url.
Traceback (if applicable):
2018-06-20 17:56:42 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform gearbest
Traceback (most recent call last):
  File "/opt/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/gearbest.py", line 55, in setup_platform
    converter.update()
  File "/opt/homeassistant/lib/python3.6/site-packages/gearbest_parser/gearbest_parser.py", line 59, in update
    page = urlopen(req).read().decode('utf-8')
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

any update?


static method on EntityManager makes impossible to override entityManager class

the last line of this method is return new EntityManager(...), so if you try to override this class you need to copy/paste the whole method for only this purpose. This is mentioned here http://stackoverflow.com/questions/8138962/is-there-a-way-to-specify-doctrine2-entitymanager-implementation-class-in-symfon and in some other sOverflow's topic
I think a solution could be end this method with return new static(...) instead.
Sorry if this topic is duplicated,  I wasn't able to found it either in issues nor pr section.

You should either use an EntityManagerDecorator, or re-implement the
EntityManagerInterface.
On 4 Nov 2016 12:14, "Noel Garcia"<EMAIL_ADDRESS>wrote:

the last line of this method is return new EntityManager(...), so if you
try to override this class you need to copy/paste the whole method for only
this purpose. This is mentioned here http://stackoverflow.com/
questions/8138962/is-there-a-way-to-specify-doctrine2-
entitymanager-implementation-class-in-symfon and in some other
sOverflow's topic
I think a solution could be end this method with return new static(...)
instead.
Sorry if this topic is duplicated, I wasn't able to found it either in
issues nor pr section.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/doctrine/doctrine2/issues/6115, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJakCEJC-PikFnH8Zt3iUUKMf-s49Ndks5q6xN7gaJpZM4KpbRE
.


How to set limit for pool connection

Please answer these questions before submitting your issue. Thanks!
What version of Cassandra are you using?
4.x
What version of Gocql are you using?
v1.6.0
What version of Go are you using?
1.19
What did you do?
I am creating a pool connection with cluster.NumConns = 20. so that it can create only 20 connection/pod.
container := dbType + "." + dbName
username := String(container+".username", "")
password := String(container+".password", "")
host := String(container+".host", "")
db := String(container+".db", "")
dc := String(container+".dc", "")
port1 := String(container+".port", "")
// fmt.Println(container, " ", username, " ", password, " ", host, " ", db, " ", dc, " ", port1)
port, err := strconv.Atoi(port1)

HostList := strings.Split(host, ",")

cluster := gocql.NewCluster(HostList...)
pass := gocql.PasswordAuthenticator{username, password, nil}
cluster.Keyspace = db
cluster.Authenticator = pass
cluster.Consistency = gocql.LocalQuorum
//cluster.SerialConsistency = gocql.LocalSerial
if err == nil {
	cluster.Port = port // Default port
}

if dbName == "cass_comp_gcp" || dbName == "cass_comp_gcp_newIN" {
	cluster.DisableInitialHostLookup = true
	cluster.SocketKeepalive = 10 * time.Second
}
cluster.NumConns = 20
//
cluster.PoolConfig.HostSelectionPolicy = gocql.DCAwareRoundRobinPolicy(dc)
cluster.HostFilter = gocql.DataCentreHostFilter(dc)
cluster.Timeout = 5 * time.Second
if GetMode() != "prod" {
	cluster.ConnectTimeout = time.Second * 20
	//cluster.DisableInitialHostLookup = true
}
// cluster.SocketKeepalive = 10 * time.Second

return cluster.CreateSession()

What did you expect to see?
We are using the above function in our read API which is capable of serving around 5,000 requests per second. Our goal is to limit the number of connections created per pod to 20, even if there is an increase in request traffic. Although we have added a limit of 20 connections, we have observed that if the request count increases, it opens more than 20 connections, and some of them remain open even after the normal pace.
What did you see instead?
It is creating around 200-600 connections per pod, which is not getting closed even after the normal pace. This is causing a load issue for Cassandra.
If you are having connectivity related issues please share the following additional information
Describe your Cassandra cluster
please provide the following information

output of nodetool status
output of SELECT peer, rpc_address FROM system.peers
rebuild your application with the gocql_debug tag and post the output

NumConns sets an initial number of connections per node( by default 2) but not the maximum number of connections per node. Also by default, gocql maintains a minimum number of connections, but as demand increases, it will open more connections to handle the load. I think you are looking for similar limitation functionality as Python and Java drivers have. So we can add MaxNumberOfConnections or something to set the wanted limit, and we should add a detailed NumConns description to the documentation.

https://issues.apache.org/jira/browse/CASSGO-3


fix: aps integration with regards to size mismatch

Description
The current APS integration does not work correctly if using the GAM size mapping feature. This is because while GAM accepts the size mapping feature, and will request the designated sizes at the designated breakpoints, the current APS integration simply uses the size array of the unit, which includes all potential sizes of the unit.
You can see this where the apsSlot is defined in the defineSlots() function.
This can result in a request for a size that the unit is not currently set up to display. For example a leaderboard unit may be a 320x100 on mobile, a 728x90 on tablet, and a 970x250 on desktop. All of the sizes exist in the "size" array of the unit. That unit may also contain a GAM size mapping definition that states that the 320x100 can only be requested on mobile, 728x90 on tablet, and a 970x250 on desktop.
The APS call, however, will simply include all 3 of those sizes for every request. This can cause breakage on the site as the creative delivered will likely be larger than the size of the ad unit / placeholder. This will also hurt viewability metrics  (a 728x90 on mobile won't be fully viewable, etc).
Amazon has a newer method of integration called "simplerGPT" which does utilize GAM size mapping definitions. In fact you do not need to define any slot for APS, it will just use the GPT definition.
You can read about this method here.
I added a simple check for the presence of "simplerGPT" in the config that if present, will utilize the gpt slot definition for the APS calls, instead of the APS unit that is defined. I've defaulted to the older method to avoid any breakage.
Testing this I'm able to verify that APS is being called for the correct sizes at the configured breakpoints, versus the older method which requests all listed sizes.

@Trav84 The changes have broken two of the unit tests. Are you able to fix?

Hey @caffeinated-pixels I pushed a fix. Sorry about that! There was a missing reference to "this" in the call to get the apsSlotType which was erroring out.
Resolved and tested locally and also ran tests locally and they seem happy.

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

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


"Still up" in a chat reply should not be added as a comment

What problem has occurred? What issues has it caused?
Suggested by @ThatRyanPerson: https://chat.stackexchange.com/transcript/message/60057794#60057794
What would you like to happen/not happen?
We have recently been pointing out when a flagged post is not yet deleted even after a longish time (think hours) with a chat comment, but adding it to metasmoke is not useful, and having to manually remove it is a hassle.
Personally, I have increased my effort in this area in the last few weeks, but the practice has existed for I think several years.

has it been considered to not reply directly to the link though?  ANd instead say "still up" and then directly post a link to the chat timeline?  I know, it doesn't fix the "it shouldn't be doing this commenting thing" but... there's an easy non-programatic fix for this: change your workflow.


Set Up the Manage Rules Project Application

Tutorial URL: https://developers.sap.com/tutorials/cp-cf-businessrules03-setup-mrp.html
In step 3 the screenshots do not show how to specify a custom business rules service. It would be better if the screenshot would show a complete example.
The following MTA worked for me.
ID: businessruleseditor
_schema-version: '2.1'
parameters:
  deploy_mode: html5-repo
version: 0.0.1
modules:
  - name: businessruleseditor_appRouter
    type: approuter.nodejs
    path: businessruleseditor_appRouter
    parameters:
      disk-quota: 256M
      memory: 256M
    requires:
      - name: businessruleseditor_html5_repo_runtime
      - name: businessrules_uaa
      - name: scp-business-rules-trial
resources:
  - name: businessruleseditor_html5_repo_runtime
    parameters:
      service-plan: app-runtime
      service: html5-apps-repo
    type: org.cloudfoundry.managed-service
  - name: businessrules_uaa
    type: com.sap.xs.uaa
    parameters:
      config:
        xsappname: businessrules_uaa-appname
        tenant-mode: dedicated
        role-templates:
          - name: UaaUser
            description: Role template for accessing SAP Business Rule APIs.Editor via user token flow
            scope-references:
              - uaa.user
  - name: scp-business-rules-trial
    type: org.cloudfoundry.existing-service
    parameters:
      service: business-rules
      service-plan: lite

Hi,
Thanks a lot for the feedback. I will improvise the tutorial to include screenshots of the code snippet too.
Best Regards,
Vandana

@VandanaVasudevan Has the tutorial been updated?

Hi,
We had a discussion internally and found that the screenshot of the code would be confusing as some users might have other services too in the MTA file.
Since the users following this tutorial download the file from the given GitHub link, they only have to change the service instance name, if they have used a different name. So, changing the service instance name in the MTA editor would be easier.
I hope this helps. Please do let me know if you have any more feedback.
Best Regards,
Vandana

Hi @VandanaVasudevan,
would it be possible to add an example MTA file to the tutorial showing what needs to be added for a custom rule service? Just a code snippet, maybe as a link to a gist?
I thinks one of the mature shortcommings of all the great SAP tutorials is, that there is no help if you do something only a little bit differently. So as long as one follows the tutorial step by step everything is fine, otherwise one is lost. Adding the information on how to specify a custom rule service would therefore IMHO improve the usefulness of the tutorial a lot.
Christian

Hi @ceedee666 ,
Once again, thanks a lot for making the issue clear. I've improvised the tutorial with a snippet of the code. I've also highlighted the keys where they have to enter the custom instance name.
I have just created a pull request for the changes. The tutorial will be updated once the changes are merged.
I hope this helps.
Thanks & Regards,
Vandana

Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.
If you still have questions, feel free to reopen the issue.


Netlify UNHANDLED EXCEPTION write EPIP

Description
There's an write PIPE error during the deployment on Netlify.
7:58:03 PM: error UNHANDLED EXCEPTION write EPIPE
7:58:03 PM:
7:58:03 PM:
7:58:03 PM:   Error: write EPIPE
7:58:03 PM:
7:58:03 PM:   - child_process.js:841 ChildProcess.target._send
7:58:03 PM:     internal/child_process.js:841:20
7:58:03 PM:
7:58:03 PM:   - child_process.js:712 ChildProcess.target.send
7:58:03 PM:     internal/child_process.js:712:19
7:58:03 PM:
7:58:03 PM:   - index.js:298 WorkerPool.sendMessage
7:58:03 PM:     [repo]/[gatsby-worker]/dist/index.js:298:19
7:58:03 PM:
7:58:03 PM:   - worker-messaging.ts:22
7:58:03 PM:     [repo]/[gatsby]/src/utils/jobs/worker-messaging.ts:22:22
7:58:03 PM:
7:58:03 PM:
7:58:03 PM: not finished Merge worker state - 0.030s
7:58:03 PM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
7:58:03 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproduction Link
Omit
Steps to Reproduce
Deploy with Netlify
Expected Result
No error happened on Netlify
Actual Result
Error & Deploy failed
Environment
System:
OS: macOS 11.6.1
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 410.50 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Languages:
Bash: 3.2.57 - /bin/bash
Go: 1.16.5 - /Users/yanze.dai/.goenv/shims/go
Java: javac 17 - /usr/local/opt/openjdk/bin/javac
Perl: 5.30.2 - /usr/bin/perl
PHP: 7.3.29 - /usr/bin/php
Python: 2.7.16 - /usr/bin/python
Python3: 3.9.12 - /usr/local/bin/python3
Ruby: 2.6.3 - /usr/bin/ruby
Rust: 1.54.0 - /Users/yanze.dai/.cargo/bin/rustc
Browsers:
Brave Browser: <IP_ADDRESS>
Chrome: 100.0.4896.127
Edge: 100.0.1185.50
Firefox: 98.0
Safari: 15.1
Safari Technology Preview: 15.4

Found related links:
https://github.com/gatsbyjs/gatsby/issues/35055
https://github.com/gatsbyjs/gatsby/issues/33738
https://answers.netlify.com/t/gatsby-v4-works-locally-but-timed-out-on-netlify/46339/29
The reason why this happened is that Gatsby > 4.7.0 uses more memory for concurrent build. Netlify only provides 3GB of memory (sometimes 6GB) for the deployment.
The possible solutions have been provided by the community supporter.

Try using Gatsby <= 4.7
Try disabling AVIF and WEBP in gatsby.config.js
Try reducing the size of the source images
If nothing works, deploy via CLI

Downgrading to 4.7.0 should work for most of the cases.

This can be resolved by upgrading the Gatsby package to version > 4.13.1.
https://github.com/gatsbyjs/gatsby/issues/33738#issuecomment-1113291501


Fix plugin build on Windows with modern MinGW versions

Resolves #28

Exactly as prescribed to him per the opened issue.  Thanks.


setting default package name when self_package is known

When self_package is passed, it is possible to infer package name parameter so users don't need to pass duplicate information

Could you post the build target you're needing to use this in? I'm trying to figure out how this and #28 are operating differently

I agree with https://github.com/jmhodges/bazel_gomock/pull/28#issuecomment-543095961, this PR is different from #28. This is more for convenience. If we know the full package path via self_package, the package name can be deduced from that for most cases.

@jmhodges Any more concerns on this PR?


Task - New Taxon Name - author string.

If I pick an author, after save it appear next to the taxon name preview on the right. But it does not update the original combination. Besides, original combination and taxon name get Author string from two different sources. One from citation, another from roles.

Besides, original combination and taxon name get Author string from two different sources. One from citation, another from roles.

@proceps  will have to discuss this, not sure I understand.

@jlpereira

The top right author year should always come from taxon_names JSON, cached_author_year, regardless of the origin of the author strings.

Any time you update top right, also update original combination (which is correct form as currently implemented)

This may mean you have to turn off the auto-update feature when typing in the verbatim field, that's fine.

Blocked by https://github.com/SpeciesFileGroup/taxonworks/issues/174.   Cached is set by before_save, roles don't exist then, so record is not updated.  Resolution: use :after_save for all cached generation.

It does not resolve the issue, I can go and change a person, It should fire all roles and update all related cached values.

Don't touch, I branched and am resolving.
On Sep 15, 2017 5:10 PM, "Dmitry Dmitriev"<EMAIL_ADDRESS>wrote:

It does not resolve the issue, I can go and change a person, It should
fire all roles and update all related cached values.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/SpeciesFileGroup/taxonworks/issues/230#issuecomment-329916015,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABYSHQfcIE8rFuyiRGEiqD3YzT6Rti4ks5sivXsgaJpZM4PZF-i
.


Feature/issue 41 questionnaire component

Hey @bensinjin @tnightingale @trisapeace @ApolloMuses please have a look. This PR gets as far as being able to toggle each answer in the questionnaire on or off. Still quite a bit of business logic to implement, coming in the next PR.

On another note my review for this PR was a bit nutty but what I really needed was the ability to comment on each particular commit in its entirety. Moving forward I may just use comments on the PR as I think it lends itself better to discussion when I'm not pointing to a specific line of code.

@rasmus-storjohann-PG I haven't had a chance to look at this one or try it out yet. But it looks like a lot of files have been removed or moved around. Would it be possible to add a description to the PR to explain at a high-level the sorts of changes that you made so that it's easier for me to tell which changes are important? Thanks!

@rasmus-storjohann-PG cheers for the responses and thanks for the commenting tip.
Regarding structure and reducers. I like the screens approach. In the past I've used the notion of screens as a way to group components and it feels pretty intuitive in my opinion.  In terms of reducers I see the name of the reducer function as a representation of the state that reducer manages in the store and tend to agree with something similar to what @ApolloMuses outlines. Along these lines I'd expect a task list reducer function to be called "taskList" and to take a "taskListIinitialState" variable as the default value for its state parameter.  I'd personally either suffix these files with "reducer" or put them in a "reducers" directory to add additional clarity. I think it's probably ok to use the term "index" as the place for the combineReducers call but to me just calling it store.ts is more clear.
Regarding styling I've yet to put a new PR up (I've held off for the time being while we iron out some more details around the store) but I do think there is merit to keeping styling out of components as it will hopefully lend itself to style reuse.
The private and view model stuff seems sensible to me and I'm sure there will be more discussions around selectors and dealing with normalized data from the store.  Nice work.

Yay, it runs on my iPhone.
I get a warning in Expo both in the command line and in the app that:
21:23:10: Warning: Each child in an array or iterator should have a unique "key"
 prop.

Check the render method of `Question`. See https://fb.me/react-warning-keys for
more information.
    in Answer (at question.js:14)
    in Question (at questionnaire.js:13)
    in RCTView (at View.js:60)
    in View (at View.js:9)
    in ViewNB (at connectStyle.js:384)
    in Styled(ViewNB) (at questionnaire.js:7)
    in RCTScrollContentView (at ScrollView.js:791)
    in RCTScrollView (at ScrollView.js:887)
    in ScrollView (at KeyboardAwareHOC.js:397)
    in _class (at Content.js:14)
    in Content (at connectStyle.js:384)
    in Styled(Content) (at questionnaire.js:5)
    in Component (created by Connect(Component))
    in Connect(Component) (at main_page_switcher.js:10)
    in Component (at main.js:8)
    in RCTView (at View.js:60)
    in View (at Container.js:15)
    in Container (at connectStyle.js:384)
    in Styled(Container) (at main.js:6)
    in Component (at with_font_loading.js:21)
    in _class (created by withI18n)
    in withI18n (created by Connect(withI18n))
    in Connect(withI18n) (at index.js:10)
    in I18nProvider (created by Connect(I18nProvider))
    in Connect(I18nProvider) (at index.js:9)
    in Provider (at index.js:8)
    in ErrorBoundary (at index.js:7)
    in Application (at registerRootComponent.js:35)
    in RootErrorBoundary (at registerRootComponent.js:34)
    in ExpoRootComponent (at renderApplication.js:33)
    in RCTView (at View.js:60)
    in View (at AppContainer.js:102)
    in RCTView (at View.js:60)
    in View (at AppContainer.js:122)
    in AppContainer (at renderApplication.js:32)
- node_modules\react-native\Libraries\ReactNative\YellowBox.js:69:16 in error

Is this something that we can fix?
I'm not a big fan of the UI of the checkmark. It doesn't really look like a checkmark, it re-aligns the text in the button when I check/uncheck it in order to centre it, and my buttons are too narrow to show both the text and the check for some of the longer ones causing it to run off the side of the button at the beginning and end.
I can see the jsLingui test at the top, which is cool. Could we add fake translations for the strings in the questionnaire? Just adding the [AR] to the beginning seems to work.
It looks like you've made some changes to page switching in the code, but I don't see any way to switch pages in the app anymore. Should I be able to?
I don't see the footer. Should I?
I can see the header, but it doesn't do anything.
Should the Back arrow even be there when there aren't any pages to go back to?
Is the name "Pathways" supposed to be sort of  right-aligned? It feels like it should be centred.
I'll add a screenshot to the Slack channel. See you tomorrow!

Warning: Each child in an array or iterator should have a unique "key"
prop.

Warning fixed, thanks @trisapeace

About the source code restructuring in this PR:

All the 'hello world' tutorial stuff is gone
Using native base widget set
Introducing consistent naming of components as Component and ConnectedComponent, and using namespace syntax to disambiguate.
Created new questionnaire components
Experimenting with view_model as concept, in my next PR this goes away and that code ends up together with the selectors.
Created fixture for off-line first data source, to be replaced by server API calls once we're online
Renamed navigation bar to page switcher.
Reorganized how helper code is organized, it's getting close.


Missing files

Hello, sir. Thank you very much for the repository; it's very interesting. I encountered a problem and would appreciate your help. While executing the code, I found that the files 'P_Arrays/All_Fake_PCs.npy', './PC_Arrays/All_Fake_PCs(225, 2048, 3).npy', and 'FinalPCs-Train-Val-Test.npy' are missing. Could you please tell me how you generated them or provide me with the code to generate them? Thank you.

Same problem!!

Hi, Thank you so much for your message and I am sorry you are facing this issue. That file is used to generate the "noisy" or "incomplete" point clouds, which are required for the last step. So you can create it manually after generating the data with the iterative-GAN. While creating it, recall that I should  contain 3 sets of point clouds, validation, test and train.
Unfortunately, I worked on this code several years ago, so I do not have the files anymore, so I cannot upload them.

Thank you for your response and guidance; I appreciate your help!


the num_samples means

Hello, this work is very helpful to me, but I don't know what the num_samples means in the code, I found that its value seems to affect the prediction result, when it is equal to 1, the prediction result seems to change from interval prediction to point prediction

Yes, that means the number of samples sampled from the T distribution head. When it's set to 1, it becomes a point forecasting model. But note that we trained using the log-likelihood loss, and evaluated for probabilistic prediction (with 100 samples), so performance in point prediction is not guaranteed.

Hi, author, I still don’t understand the meaning of num_samples in detail. Do you mean that when sampling num_samples=100, the parameters of the t distribution will be calculated based on these 100 sets of prediction results, and then the interval prediction curve will be drawn. When num_samples=1 , which is equivalent to having only one set of prediction results and unable to calculate the parameters of the t distribution, because I see that the final distribution head described in your paper directly outputs the three parameters of the t distribution. These three parameters are obtained based on the results of num_samples sampling. .

The parameters of the T distribution are calculated just once. Then X samples are sampled from the T distribution.
The more the # of samples, the more coverage you have of the distribution.

T 分布的参数仅计算一次。然后从 T 分布中抽取 X 个样本。 样本数量越多，分布的覆盖范围就越大。

I now fully understand the meaning of this num_samples, thank you


get_contactor_state has been added

The contactor state will be checked before the close/open command in order to avoid sending an unnecessary message if it is already closed/opened.

it could be done on josev pro without modification of iso15118.


Compilation broken for 0.10.0 for Rust edition 2015

This code does not compile in 0.10.0
#[bitfield(specifier = true)]
#[derive(Copy, Clone, PartialEq, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub struct OpMode {
  reserved: B2,
  pub modem_mode: ModemMode,
  pub listen_abort: bool,
  pub listen_on: bool,
  pub sequencer_off: bool,
}

error[E0433]: failed to resolve: use of undeclared type or module `dyn`
  --> src/register.rs:39:3
   |
39 |   reserved: B2,
   |   ^^^^^^^^ use of undeclared type or module `dyn`

Suspicion: https://stackoverflow.com/questions/51071925/error-e0433-when-dyn-used-with-absolute-path
https://github.com/Robbepop/modular-bitfield/blob/b9708ee98cf14d671bab58cf1f2b0b57dec047e0/impl/src/bitfield/expand.rs#L133

Thanks for the bug report.
Unfortunately I (again) cannot reproduce this since I am missing information about:

your rustc version
your build command: cargo build?
your special lib.rs deny, forbid warning level etc.
I assume that you are using Rust edition 2015 or some old Rust compiler, am I right?

From this answer I guess we could fix this by using some parentheses. Please confirm!
https://stackoverflow.com/a/51072034/1849963

@henrikssn Please see if this revision of modular_bitfield works for you:
https://github.com/Robbepop/modular-bitfield/commit/9f805c8087782b546d765934d41634f06e3d1edf

Seems like I was using edition 2015, upgrading to 2018 compiles fine at current HEAD (fb37b66). I can't get it to compile at 0.10.0 though but I'll just wait for next version :)
I can also confirm 9f805c8 solves the compilation issue on edition 2015.

Okay thanks a lot for the confirmation. Closed then.


[BACKLOG-20407] - Replace cache version creation

added a getCacheVersion method to the TransMeta class responsible for calculating the cache version considering only the relevant transformation properties

Build Completed
:x: This pull request has errors. They will need to be addressed before it can be accepted. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -Dsurefire.runOrder=alphabetical -B -fn -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd clean install && mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd site

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/TransMeta.java
  engine/src/test/java/org/pentaho/di/trans/TransMetaTest.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes: <0.1% (click to expand)
org.pentaho.di.job.entries.evaluatetablecontent.JobEntryEvalTableContent

Branch Change: -1% :small_red_triangle_down:
Complexity Change: -1% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.job.entries.sql.JobEntrySQL

Instruction Change: -3.3% :small_red_triangle_down:
Line Change: -3.9% :small_red_triangle_down:

org.pentaho.di.job.entries.waitforsql.JobEntryWaitForSQL

Branch Change: -0.7% :small_red_triangle_down:
Complexity Change: -0.9% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.setvalueconstant.SetValueConstantMeta

Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.synchronizeaftermerge.SynchronizeAfterMergeMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.gpload.GPLoadMeta

Branch Change: -0.9% :small_red_triangle_down:
Complexity Change: -0.8% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.ui.repository.pur.repositoryexplorer.model.UISecurityRole

Branch Change: -1.8% :small_red_triangle_down:
Complexity Change: -1.5% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.5% :small_red_triangle_down:

org.pentaho.di.trans.steps.salesforceupdate.SalesforceUpdateMeta

Instruction Change: -0.2% :small_red_triangle_down:

Checkstyle violations
The code submitted is not complying with one or more of our guidelines. To perform these checks locally, please use this tool.
/home/buildguy/project/engine/src/main/java/org/pentaho/di/trans/TransMeta.java

:heavy_exclamation_mark: '(' is not followed by whitespace. at Line: 6,293 Column: 60

:heavy_exclamation_mark: ')' is not preceded with whitespace. at Line: 6,293 Column: 66

:heavy_exclamation_mark: 'for' is not followed by whitespace. at Line: 6,333 Column: 8

:heavy_exclamation_mark: '(' is not followed by whitespace. at Line: 6,342 Column: 16

:heavy_exclamation_mark: ')' is not preceded with whitespace. at Line: 6,342 Column: 33

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -Dsurefire.runOrder=alphabetical -B -fn -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd clean install && mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd site

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/TransMeta.java
  engine/src/test/java/org/pentaho/di/trans/TransMetaTest.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes: <0.1% (click to expand)
org.pentaho.di.core.injection.bean.BeanInjector

Branch Change: -0.8% :small_red_triangle_down:
Complexity Change: -1.3% :small_red_triangle_down:

org.pentaho.di.job.entries.ftpsget.JobEntryFTPSGet

Branch Change: -0.5% :small_red_triangle_down:
Complexity Change: -0.6% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.datagrid.DataGridMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -1.7% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Method Change: -1% :small_red_triangle_down:

org.pentaho.di.trans.steps.ifnull.IfNullMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -1.9% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.salesforceinsert.SalesforceInsertMeta

Instruction Change: -0.1% :small_red_triangle_down:

@marcoslarsen @mkambol @kurtwalker please review
related to:
https://github.com/pentaho/pdi-dataservice-server-plugin/pull/272

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -Dsurefire.runOrder=alphabetical -B -fn -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd clean install && mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd site

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/TransMeta.java
  engine/src/test/java/org/pentaho/di/trans/TransMetaTest.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes: <0.1% (click to expand)
org.pentaho.di.job.entries.waitforsql.JobEntryWaitForSQL

Branch Change: -1.3% :small_red_triangle_down:
Complexity Change: -1.9% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.calculator.CalculatorMetaFunction

Branch Change: -8.7% :small_red_triangle_down:
Complexity Change: -3% :small_red_triangle_down:
Instruction Change: -0.7% :small_red_triangle_down:
Line Change: -0.9% :small_red_triangle_down:

org.pentaho.di.trans.steps.constant.ConstantMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.dbproc.DBProcMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Method Change: -1% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -5.2% :small_red_triangle_down:
Complexity Change: -5.2% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.4% :small_red_triangle_down:

org.pentaho.di.trans.steps.setvalueconstant.SetValueConstantMeta

Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.steps.sort.SortRowsMeta

Instruction Change: -0.1% :small_red_triangle_down:

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -Dsurefire.runOrder=alphabetical -B -fn -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd clean install && mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd site

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'engine' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  engine/src/main/java/org/pentaho/di/trans/TransMeta.java
  engine/src/test/java/org/pentaho/di/trans/TransMetaTest.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes: <0.1% (click to expand)
org.pentaho.di.core.injection.bean.BeanInjector

Branch Change: -0.8% :small_red_triangle_down:
Complexity Change: -1.3% :small_red_triangle_down:

org.pentaho.di.core.lifecycle.KettleLifecycleSupport

Branch Change: -8.4% :small_red_triangle_down:
Complexity Change: -9.1% :small_red_triangle_down:

org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change: -0.4% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:

org.pentaho.di.job.entries.sql.JobEntrySQL

Instruction Change: -3.3% :small_red_triangle_down:
Line Change: -3.9% :small_red_triangle_down:

org.pentaho.di.job.entries.waitforsql.JobEntryWaitForSQL

Branch Change: -0.7% :small_red_triangle_down:
Complexity Change: -0.9% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.excelwriter.ExcelWriterStepMeta

Branch Change: -1.3% :small_red_triangle_down:
Complexity Change: -0.7% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -2.1% :small_red_triangle_down:
Complexity Change: -2.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.singlethreader.SingleThreaderMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.systemdata.SystemDataMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -2% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:
Line Change: -0.8% :small_red_triangle_down:

org.pentaho.di.trans.steps.textfileinput.TextFileInputMeta

Branch Change: -0.5% :small_red_triangle_down:

org.pentaho.di.www.cache.CarteStatusCache

Instruction Change: -1.2% :small_red_triangle_down:
Line Change: -1.3% :small_red_triangle_down:

org.pentaho.di.ui.repository.pur.repositoryexplorer.model.UISecurityRole

Branch Change: -1.8% :small_red_triangle_down:
Complexity Change: -1.5% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.5% :small_red_triangle_down:

org.pentaho.di.trans.steps.salesforceupsert.SalesforceUpsertMeta

Instruction Change: -0.1% :small_red_triangle_down:


Direct download not working

I have installed droppy in my Raspberry Pi 2 and connected an HHD.
I noticed that when I try to download using the download button any file (even folders) the output always is a 18.23 kb file (hexdump output is the same for every downloaded file).
sample: doc.zip
Unlike the download button the share button retrive files correctly.
node -v
v6.6.0

You're getting the site HTML for some reason. Is your version up to date? And if so, what's the URL of the download link? Oh, and can you reproduce in the demo?

Yes, droppy is up to date
$ droppy -v
5.1.1

All the download links in my droppy behaves in the same way. None of them trigger correct download.
I forgot to mention that I use nginx proxy. Could nginx be the problem?

I forgot to mention that I use nginx proxy. Could nginx be the problem?

Possible, but I doubt it. I have a sample nginx config which you can take a look at. Note that all those proxy options aren't really required, they just help with long-running uploads.
Which URL you are seeing when hovering a download link. Is it !/file/path/to/file?

I checked the nginx config and it's exactly a copy of yours.

Is it !/file/path/to/file?
Yes, it's exactly like this

Can you show what is logged on the server when you click the link? Is there a 301 response maybe?

Also, try manually opening the same URL, but with file replaced with dl, e.g: "!/dl/path/to/file".

If the host is not the same on the address bar and on the "download link" (ex: https://www.example.com/#/ on the address bar and https://example.com/!/file.txt on the download link) it may create that kind of behavior (you're identified on example.com but not on www.example.com).
Can you check if the hosts are the same ?

Oh! I've reproduced the problem too !!!
I'm usually using Firefox. And I don't have the problem in firefox. I tried on Chrome, and I reproduce the problem...
droppy 5.1.1
node 6.3.1
(I'm using latest official Docker image)
I'm behind a nginx reverse proxy + vhost
For the record, I've tried Firefox/Windows 48.0.2 and Chrome/Windows 53.0.2785.116 m
I just also tried to directly export port 8989 (bypassing nginx) and I still reproduce the problem. So it's not nginx.
@platipo : Did you try on Firefox ?
@silverwind : Did you try on Chrome ?

Server logs when using Chrome:
droppylog | 2016-09-18 09:35:06 [INFO] [::ffff:<IP_ADDRESS>]:63845 GET /!/file/folder/file.txt [301] [1ms]
droppylog | 2016-09-18 09:35:06 [INFO] [::ffff:<IP_ADDRESS>]:63845 GET / [200] [0ms]

Server logs when using Firefox:
droppylog | 2016-09-18 09:35:44 [INFO] [::ffff:<IP_ADDRESS>]:64551 GET /!/file/folder/file.txt [200] [1ms]

So the client code seems the same, just the server returns a 301 redirect to / when using Chrome. Should be a slightly different header. Didn't sniff it yet.

URL page: https://example.com#/ (not https://example.com/#/)
URL download file: https://example.com/!/file/path/to/file
URL download dir: https://example.com/!/zip/path/to/dir
I use Vivaldi/Linux 1.4.589.15 and Chromium/Windows 55.0.2864.2
Never tried on Firefox, but I'll do ASAP.

Still cannot reproduce in Chrome unfortunately.
It may be related to cookies, as I recently changed the path attribute so the session cookie named s is scoped to the path (or paths below) that was present when logging in.
Can you go to chrome://settings/siteSettings/cookies and show what's in the path property of the cookie? Also, it might help if you just clear all cookies for that site and log in again.

Oh wait, I actually can reproduce in Chrome, checking..

Looks like we found a Chrome bug, when SameSite=strict is set on the cookie, it is not sent along with requests when clicking a link with a download attribute.
I'll work around by not setting the download attribute and instead trigger the download on the HTTP response.

Filed https://bugs.chromium.org/p/chromium/issues/detail?id=648043.

Released 5.1.2 with the fix.

Still not working on Vivaldi 1.4.589.15-1/Linux but now download button trigger no download
           .:.        __
    :::  .:::::.   --|  |---- ----- ----- ----- -- --
  ..:::..  :::    |  _  |   _|  _  |  _  |  _  |  |  |
   ':::'   :::    |_____|__| |_____|   __|   __|___  |
     '                             |__|  |__|  |_____|

 droppy 5.1.2 running on node 6.6.0
 config at /srv/droppy/config
 files at /srv/droppy/files

2016-09-18 15:04:47 [INFO] Loading resources ...
2016-09-18 15:04:48 [INFO] Loading resources done
2016-09-18 15:04:48 [INFO] Listening on http://<IP_ADDRESS>:8989
2016-09-18 15:04:48 [INFO] Caching files ...
2016-09-18 15:04:48 [INFO] Caching files done
2016-09-18 15:04:49 [INFO] Ready for requests!
2016-09-18 15:04:49 [INFO] <IP_ADDRESS>:55060 GET / [200] [48ms]
2016-09-18 15:04:49 [INFO] <IP_ADDRESS>:55060 GET /!/res/style.css [304] [7ms]
2016-09-18 15:04:49 [INFO] <IP_ADDRESS>:55060 GET /!/res/client.js [304] [3ms]
2016-09-18 15:04:54 [INFO] <IP_ADDRESS>:55060 POST /!/login [200] [33ms] User 'enrico' authenticated
2016-09-18 15:04:54 [INFO] <IP_ADDRESS>:55060 GET / [200] [6ms]
2016-09-18 15:04:54 [INFO] <IP_ADDRESS>:55060 GET /!/res/style.css [304] [1ms]
2016-09-18 15:04:54 [INFO] <IP_ADDRESS>:55060 GET /!/res/sprites.png [304] [1ms]
2016-09-18 15:04:54 [INFO] <IP_ADDRESS>:55056 GET /!/res/client.js [304] [0ms]
2016-09-18 15:04:54 [INFO] <IP_ADDRESS>:55056 GET /!/res/font.woff2 [304] [0ms]
2016-09-18 15:04:54 [INFO] <IP_ADDRESS>:47246 WebSocket [connected]
2016-09-18 15:04:54 [INFO] <IP_ADDRESS>:55056 GET /!/token [200] [5ms]
2016-09-18 15:05:01 [INFO] <IP_ADDRESS>:55056 GET / [200] [6ms]
2016-09-18 15:05:10 [INFO] <IP_ADDRESS>:55076 GET /!/dl/Work/doc/scheda_clienti.ods [301] [7ms]
2016-09-18 15:05:10 [INFO] <IP_ADDRESS>:55076 GET / [200] [3ms]
2016-09-18 15:05:31 [INFO] <IP_ADDRESS>:55076 GET /!/zip/Work/doc [301] [6ms]
2016-09-18 15:05:31 [INFO] <IP_ADDRESS>:55076 GET / [200] [5ms]

Working on Chrome 53.0.2785.116 m
2016-09-18 15:12:16 [INFO] <IP_ADDRESS>:49185 GET /!/dl/Dati appartamento/planimetria.pdf [200] [7ms]

Working on Mozilla 48.0/Android (zip raises exception):
2016-09-18 15:07:19 [INFO] <IP_ADDRESS>:48633 GET /!/dl/Dati appartamento/planimetria.jpg [200] [35ms]
2016-09-18 15:30:23 [INFO] <IP_ADDRESS>:48658 GET /!/zip/Dati appartamento [200] [2ms]
2016-09-18 15:30:23 [INFO] Streaming zip of /Dati appartamento
2016-09-18 15:30:23 [ERROR] =============== Uncaught exception! ===============
2016-09-18 15:30:23 [ERROR] invalid relative path: ../../../mnt/NAStorage/droppy/Dati appartamento/bollette-eletticità.pdf
    at validateMetadataPath (/usr/local/lib/node_modules/droppy/node_modules/yazl/index.js:352:59)
    at ZipFile.addFile (/usr/local/lib/node_modules/droppy/node_modules/yazl/index.js:24:18)
    at ReaddirpReadable.<anonymous> (/usr/local/lib/node_modules/droppy/server/server.js:1117:17)
    at emitOne (events.js:96:13)
    at ReaddirpReadable.emit (events.js:188:7)
    at readableAddChunk (/usr/local/lib/node_modules/droppy/node_modules/readdirp/node_modules/readable-stream/lib/_stream_readable.js:213:18)
    at ReaddirpReadable.Readable.push (/usr/local/lib/node_modules/droppy/node_modules/readdirp/node_modules/readable-stream/lib/_stream_readable.js:172:10)
    at ReaddirpReadable.proto._processEntry (/usr/local/lib/node_modules/droppy/node_modules/readdirp/stream-api.js:52:8)
    at /usr/local/lib/node_modules/droppy/node_modules/readdirp/readdirp.js:243:15
    at Array.forEach (native)

Working on Midori 0.5.11-4/Linux (same):
2016-09-18 15:18:18 [INFO] <IP_ADDRESS>:55210 GET /!/zip/Dati appartamento [200] [4ms]
2016-09-18 15:18:18 [INFO] Streaming zip of /Dati appartamento
2016-09-18 15:18:18 [ERROR] =============== Uncaught exception! ===============
2016-09-18 15:18:18 [ERROR] invalid relative path: ../../../mnt/NAStorage/droppy/Dati appartamento/bollette-eletticità.pdf
    at validateMetadataPath (/usr/local/lib/node_modules/droppy/node_modules/yazl/index.js:352:59)
    at ZipFile.addFile (/usr/local/lib/node_modules/droppy/node_modules/yazl/index.js:24:18)
    at ReaddirpReadable.<anonymous> (/usr/local/lib/node_modules/droppy/server/server.js:1117:17)
    at emitOne (events.js:96:13)
    at ReaddirpReadable.emit (events.js:188:7)
    at readableAddChunk (/usr/local/lib/node_modules/droppy/node_modules/readdirp/node_modules/readable-stream/lib/_stream_readable.js:213:18)
    at ReaddirpReadable.Readable.push (/usr/local/lib/node_modules/droppy/node_modules/readdirp/node_modules/readable-stream/lib/_stream_readable.js:172:10)
    at ReaddirpReadable.proto._processEntry (/usr/local/lib/node_modules/droppy/node_modules/readdirp/stream-api.js:52:8)
    at /usr/local/lib/node_modules/droppy/node_modules/readdirp/readdirp.js:243:15
    at Array.forEach (native)
2016-09-18 15:18:25 [INFO] <IP_ADDRESS>:55214 GET /!/dl/Dati appartamento/bollette-eletticità.pdf [200] [3ms]

Working on Chromium 51.0.2682.0/Windows (same):
2016-09-18 15:22:58 [INFO] <IP_ADDRESS>:49203 GET /!/dl/Dati appartamento/bollette-eletticità.pdf [200] [28ms]
2016-09-18 15:23:02 [INFO] <IP_ADDRESS>:49203 GET /!/zip/Dati appartamento [200] [3ms]
2016-09-18 15:23:02 [INFO] Streaming zip of /Dati appartamento
2016-09-18 15:23:02 [ERROR] =============== Uncaught exception! ===============
2016-09-18 15:23:02 [ERROR] invalid relative path: ../../../mnt/NAStorage/droppy/Dati appartamento/bollette-eletticità.pdf
    at validateMetadataPath (/usr/local/lib/node_modules/droppy/node_modules/yazl/index.js:352:59)
    at ZipFile.addFile (/usr/local/lib/node_modules/droppy/node_modules/yazl/index.js:24:18)
    at ReaddirpReadable.<anonymous> (/usr/local/lib/node_modules/droppy/server/server.js:1117:17)
    at emitOne (events.js:96:13)
    at ReaddirpReadable.emit (events.js:188:7)
    at readableAddChunk (/usr/local/lib/node_modules/droppy/node_modules/readdirp/node_modules/readable-stream/lib/_stream_readable.js:213:18)
    at ReaddirpReadable.Readable.push (/usr/local/lib/node_modules/droppy/node_modules/readdirp/node_modules/readable-stream/lib/_stream_readable.js:172:10)
    at ReaddirpReadable.proto._processEntry (/usr/local/lib/node_modules/droppy/node_modules/readdirp/stream-api.js:52:8)
    at /usr/local/lib/node_modules/droppy/node_modules/readdirp/readdirp.js:243:15
    at Array.forEach (native)

@platipo maybe your nginx is caching the old site? Try a CTRL-F5 or CTRL-Shift-R. I'll investigate the zip issue.

@platipo is /srv/droppy/files a symlink to ../../../mnt/NAStorage/droppy?

Restarted nginx and cleared cache now download of files work on Vivaldi.
@silverwind Yes, it's a symlink
lrwxrwxrwx 1 droppy droppy 22 Aug  9 15:30 /srv/droppy/files -> /mnt/NAStorage/droppy/

@platipo thanks. Symlinks like that shall be handled correctly now, though I recommend you just launch with droppy -f /mnt/NAStorage/droppy. 5.1.3 is building with that fix.

@silverwind thank you! Great job :+1:
Now zip works fine
2016-09-18 17:05:45 [INFO] <IP_ADDRESS>:48720 GET /!/zip/Dati appartamento [200] [16ms]
2016-09-18 17:05:45 [INFO] Streaming zip of /Dati appartamento

In Vivaldi neither file nor zip downloads works yet

In Vivaldi neither file nor zip downloads works yet

What's the issue? Everything seems to work fine in Vivaldi on Windows for me.

My bad, awesome work man! :rocket: :+1:

Hi,
I seem to get a similar problem. The difference is: I can trigger the download with ctrl + left click on "download" button. According to the log, it didn't send any request when "download" button is clicked directly. It is 6.2.1 version. In fact, I have two instances on different VPS, this one, which has the problem, was newly installed; while the other one, which was just updated to 6.2.1, doesn't have this problem. So, Maybe there is something wrong with my client side js? Thanks.

Ah, this is a issue introduced in 6.2.1 caused by a security measure inadvertently blocking downloads. This is visible in the browser console:
Refused to frame '<url>' because it violates the following Content Security Policy directive: "child-src 'none'". Note that 'frame-src' was not explicitly set, so 'child-src' is used as a fallback.

Fixed in https://github.com/silverwind/droppy/commit/aa6895f5340f163ff88db9f409010f8ac0f231fb, please update to v6.2.2.

@silverwind Great! Thanks.


Intake arm

Add logic to raise and lower the intake

We also have a lot of variables with incorrect names, see mypy


[BUG] Associative scan regression

This PR now only includes a test to reproduce a problem which arises when using linalg.solve or linalg.lu from within the associative scan operation.

The issue should now be fixed; I added a more specific unit test. If you wanted to add this test as well as a regression test, that'd be great! You'd need to clean up the PR a little bit, e.g., currently it reformats the whole test file; it should only add a new test case and not touch unrelated lines.

Thanks for the fix Peter. Indeed, I configured auto pep8 on commit in PyCharm, didn't think about the fact JAX doesn't follow it. I'll need to revert and deactivate it prior to committing again. Apologies!

Merged and updated

I slightly improved this test case in https://github.com/google/jax/pull/6741, by (a) squashing the commits, and (b) reducing the number of test cases. ~100 test cases is too many.
(I'm assuming you won't mind me merging it via my own PR, it seemed easier than going back and forth on tiny improvements to a test.)


Update RT load/entry addresses in DV during update reset

During update reset, need to call
venv.data_vault.write_warm_reset_entry4(WarmResetEntry4::RtLoadAddr, manifest.runtime.load_addr);
venv.data_vault.write_warm_reset_entry4(WarmResetEntry4::RtEntryPoint, manifest.runtime.entry_point);

This is because these values can change with newer firmware versions.
This fails today with a Store/Load Fault, presumably because the DV entries are locked? I'm not sure why they're locked though.

Why do we need load addresses?

Discussed at standup last week. I think it is fine to just have one or the other (and require that the load address and entry point are the same).
As for why we need to update them at all, the address is read from the image header. So an update could change where the RT image gets loaded.


Detect and warn when unsupported shells are being used (e.g. fish)

Runme should be able to detect when an unsupported shell is being used via $SHELL and $0 and could warn accordingly.
The current error message looks something like this which isn't particularly helpful.
error: Internal failure executing runner: open /var/folders/hn/3tbqz8pd49q9yl2ns43qx6fh0000gp/T/512117330/.env_start: no such file or directory
Let's detect unsupported shells (e.g., fish, PowerShell).
Plan to show warning message with link to documentation for unsupported shells.
Provide button to open Documentation URL to be configurable for potential Stateful-specific overrides.

Let's add a "Don't ask again" option to the notification, similar to https://github.com/stateful/vscode-runme/blob/main/src/extension/messaging.ts#L100-L102, @pastuxso, please. I think we want that before we can turn on the warning by default.

@pastuxso let's flip the experiment to be default true to expose it publicly.


Watch export

@jph00
Created watch_export to run nb_export on any modified notebook in the directory being watched.
Uses nbdev config if available by default.

Very nice! :D


ZEPPELIN-1977. spark 2.1 uses a more recent commons-lang3

What is this PR for?
The issue is that spark 2.1 use commons-lang3 3.5 while zeppelin-interpreter use 3.4. We can not just upgrade commons-lang3 to 3.5, as it just make spark 2.1 work, but would fail other versions of spark. This PR remove commons-lang3 from zeppelin-interpreter. We should keep zeppelin-interpreter's dependencies as minimum as possible. We can remove other dependencies (like commons-lang) from zeppelin-interpreter in a followup PR.
What type of PR is it?
[Bug Fix]
Todos

[ ] - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-1977

How should this be tested?
Tested manually

on 3 versions of spark (2.1, 2.0.2, 1.6.2)
Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

@Leemoonsoo @jongyoul Please help review.

LGTM

LGTM

Merge to master and branch-0.7

I'm having this issue on 0.8.1 again. It was okay in Zeppelin 0.8.0. Is it possible that dependency to commns-lang3 brought back again?
Source of conflict is the file <zeppelin-dir>/lib/interpreter/commons-lang3-3.4.jar which added in 0.8.1, it does not exist in 0.8.0.
My spark uses commons-lang3-3.5 and I'm getting this error because of this conflict:

java.io.InvalidClassException: org.apache.commons.lang3.time.FastDateParser; local class incompatible: stream classdesc serialVersionUID = 2, local class serialVersionUID = 3

Thanks @NavidHt Could you create a ticket for that ? And please describe how to reproduce this issue


Strict mode affecting lumen routes

Q
A

Bug?
yes

New Feature?
no

Framework
Lumen

Framework version
5.6

Package version
2.0.0-alpha2

PHP version
7.1

Actual Behaviour
Lumen route get validated by Dingo Acc
Expected Behaviour
Dingo strict mode shouldn't affect routes outside its own API
Steps to Reproduce
Enable strict mode, create a get request using Lumen router, see the exception.
Possible Solutions
Seems like the culprit is here:
HttpServiceProvider.php
$this->app->singleton(Request::class, function ($app) {
            $middleware = new Middleware\Request(
                $app,
                $app[ExceptionHandler::class],
                $app[Router::class],
                $app[RequestValidator::class],
                $app['events']
            );

            $middleware->setMiddlewares($this->config('middleware', false));

            return $middleware;
        });

Looks like it's injecting into the whole request middleware not just the app('Dingo\Api\Routing\Router');
I even went as far as creating a global middleware to inject the header as suggested here:
https://github.com/dingo/api/issues/734 but it's pretty clear by debugging with dd that the Accept::validate method takes precedence over everything else.
I also found references to the issue here: https://github.com/dingo/api/issues/494

same with laravel too


Latest update to openjdk breaks dbeaver

I manage my versions of openjdk and dbeaver through Homebrew. When I updated my software with brew cask upgrade I got a new version of both.
==> Casks with `auto_updates` or `version :latest` will not be upgraded
==> Upgrading 2 outdated packages:
dbeaver-community 6.2.3 -> 6.2.4, java 13,33:5b8a42f3905b406298b72d750b6919f6 -> 13.0.1,9:cec27d702aa74d5a8630c65ae61e4305
==> Upgrading dbeaver-community
==> Caveats
dbeaver-community requires Java 8+. You can install the latest version with:
  brew cask install adoptopenjdk

==> Satisfying dependencies
==> Downloading https://github.com/dbeaver/dbeaver/releases/download/6.2.4/dbeav
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'dbeaver-community'.
==> Backing App 'DBeaver.app' up to '/usr/local/Caskroom/dbeaver-community/6.2.3
==> Removing App '/Applications/DBeaver.app'.
hdiutil attach -plist -nobrowse -readonly -noidme -mountrandom /var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/d20191104-68168-t2dtgo /Users/thomasmoors/Library/Caches/Homebrew/downloads/706f3f43b98a3a7ae9037081dfbc856c873bf0eff0d5761493e5e419b3ac1978--dbeaver-ce-6.2.4-macos.dmg
mkbom -s -i /var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/20191104-68168-4ilfns.list -- /var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/20191104-68168-1n9pgoj.bom
ditto --bom /var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/20191104-68168-1n9pgoj.bom -- /private/var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/d20191104-68168-t2dtgo/dmg.XIKNap /var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/d20191104-68168-ituaix
diskutil eject /private/var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/d20191104-68168-t2dtgo/dmg.XIKNap
cp -pR /var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/d20191104-68168-ituaix/DBeaver.app/. /usr/local/Caskroom/dbeaver-community/6.2.4/DBeaver.app
chmod -Rf +w /var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/d20191104-68168-ituaix
==> Moving App 'DBeaver.app' to '/Applications/DBeaver.app'.
==> Purging files for version 6.2.3 of Cask dbeaver-community
🍺  dbeaver-community was successfully upgraded!
==> Upgrading java
==> Satisfying dependencies
==> Downloading https://download.java.net/java/GA/jdk13.0.1/cec27d702aa74d5a8630
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'java'.
==> Backing Generic Artifact 'openjdk-13.jdk' up to '/usr/local/Caskroom/java/13
Password:
==> Removing Generic Artifact '/Library/Java/JavaVirtualMachines/openjdk-13.jdk'
==> Removing directories if empty:
/Library/Java/JavaVirtualMachines
tar xof /Users/thomasmoors/Library/Caches/Homebrew/downloads/ddb80fa87a726f0e3ce87cbbe314297309c3a3ae1198e79926d0aac3b3054f51--openjdk-13.0.1_osx-x64_bin.tar.gz -C /var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/d20191104-68168-1fmcw
cp -pR /var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/d20191104-68168-1fmcw/jdk-13.0.1.jdk/. /usr/local/Caskroom/java/13.0.1,9:cec27d702aa74d5a8630c65ae61e4305/jdk-13.0.1.jdk
chmod -Rf +w /var/folders/pl/xy_dyvdj7xz4816wdbc0vsr80000gn/T/d20191104-68168-1fmcw
==> Moving Generic Artifact 'jdk-13.0.1.jdk' to '/Library/Java/JavaVirtualMachin
==> Purging files for version 13,33:5b8a42f3905b406298b72d750b6919f6 of Cask jav
🍺  java was successfully upgraded!

However now dbeaver can no longer run.
Openjdk version 13.0.1.jdk
screenshot

dbeaver的jdk是11的

This is not dbeaver bug. It is problem in AdoptOpenJDK installation, they don't do notarisation for Catalina apps.
As a workaround you can start java manually using right click->Open. Then it will be accessible to dbeaver. Maybe there are other better workarounds for it.
Or you can install dbeaver from pkg (which you can download from dbeaver.io)


Windows build with libprotobuf package

Windows builds are temporarily disabled by #12. Example failure, which had lots of linking errors like
    onnx-ml.pb.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl google::protobuf::Message::SerializeWithCachedSizes(class google::protobuf::io::CodedOutputStream *)const " (?SerializeWithCachedSizes@Message@protobuf@google@@UEBAXPEAVCodedOutputStream@io@23@@Z)
Think this is caused by https://github.com/conda-forge/libprotobuf-feedstock/pull/2. If I can't get that PR working, will try patching to make onnx use the static libprotobuf on Windows.

any updates?


How to use with sass

Hello,
Is it possible to use this framework with sass, without filling the DOM with all the classes ?
like this :
.my-column {
    @extend .col-md-6;
}

Like in here : https://coderwall.com/p/wixovg/bootstrap-without-all-the-debt
Thank you :)

Hey, I hope you can write this with any CSS framework which has support for SASS/SCSS.
As you are only extending the rules.
I feel SASS improves - speeding development but adds all @parent > child rules for all.
If I am not wrong, even if you do this the compiled version of CSS will add all classes
eg: #rule .class .somethingelse
which we can write in css like this
eg: #rule .somethinglese
Writing our own CSS styles simplifies codes and even CSS now supports $vars

Well, since CSS knows nothing about your markup
#rule .class .somethingelse

is in no way equivalent to
#rule .somethingelse

One of the reasons why you use Sass and it's nested notation is that you don't have to repeatedly type the nested selectors - not that you can avoid them altogether.

Having briefly looked over the SCSS files I haven't spotted any type selectors (apart from some in _base.scss). So something like
table {
    @extend .table;
}

should be perfectly viable.

Hey, I'm sorry, I was misinterpreting Sass docs. What I want is @include with mixins. So I have my answer, spectre classes are not declared as mixins.


aniyomi-all.missav-v14.6.apk not work in CloudStream

Source information
aniyomi-all.missav-v14.6
Source language
all
Steps to reproduce

Install CloudStream and configure Aniyomi Extensions in CloudStream
Install missav Extension in Aniyomi
Other aniyomi Extensions work fine in CloudStream, but missav Extension does not display content in CloudStream and does not support search

Expected behavior
missav Extension displays content normally in CloudStream like he does in aniyomi
Actual behavior
missav Extension does not display content in CloudStream and does not support search
Aniyomi version
<IP_ADDRESS>
Android version
Android 11
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

We are not affiliated with cloudstream and will not look at bugs made through the cloudstream app.


Add plausible tracking for maintainerinfo page views

This PR introduces changes to ensure that page views for routes matching /:owner/:repository/information-for-package-maintainers are sent to the Plausible event API. The update includes:

adding a new route wrapped with BackendReportingMiddleware to trigger Plausible event tracking specifically for the maintainer information page
a unit test has been added to verify that the Plausible event is triggered correctly

@finestructure

@cla-bot check

@finestructure closing this PR after our discussion as we decided to listen for click events not page views


⚠ Bofrost.at has degraded performance

In 1e8ba20, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 994 ms

Resolved: Bofrost.at performance has improved in b81d0b9.


for _ in tqdm(range(self.hp.maxlen2))

In eval function,  is it better to use “tf.while_loop”for this loop?

I don't understand the conditional sentence in the loop, it always false。
if tf.reduce_sum(y_hat, 1) == self.token2idx[""]: break


created api doc generator, updated readme

Build success

[ jModifier Server ]
  Bundling..        0ms
  1 method bundled  399.182121ms
  Building files..  0.035407ms
  Build complete    69.918456ms