How to test 'ErrorAlert' which is using native 'Alert' ?

Hello,
This is not an issue, but rather a question.
I would like to test (thanks to Jest) my 'ErrorAlert' component, which is exactly the same as snowflake except that it uses the native 'Alert' rather than 'SimpleAlert'.
I tried to test it the same way @bartonhammond does but no results, do you guys have any ideas ?
Here is my ErrorAlert :
'use strict';

import {Alert} from 'react-native';
import  _ from 'underscore';

var ErrorAlert = class ErrorAlertClass{

  checkError(obj) {
    let errorMessage = '';

    if (!_.isNull(obj) && !_.isUndefined(obj)) {
      if (!_.isUndefined(obj.error)) {
        if (!_.isUndefined(obj.error.error)) {
          errorMessage = obj.error.error;
        } else {
          errorMessage = obj.error;
        }
      } else {
        errorMessage = obj;
      }
      if (errorMessage !== '') {
        if (!_.isUndefined(errorMessage.message)) {
          Alert.alert("Une erreur s'est produite",errorMessage.message);
        } else {
          Alert.alert("Une erreur s'est produite",errorMessage);
        }
      }
    }
  }
};

module.exports = ErrorAlert;

And my actual test (I tried several tests) :
'use strict';

import 'react-native';
import React from 'react';

var Alert = require('react-native');
Alert.alert = jest.genMockFunction();
var ErrorAlert = require('../ErrorAlert');

describe('ErrorAlert', () => {

  it('should be fine', () => {
    const errorAlertProps = {
      error: {
        error: 'Error occurred'
      }
    };
    new ErrorAlert().checkError(errorAlertProps);

    expect(Alert.alert.mock.calls[0][0]).toEqual("Error");
    expect(Alert.alert.mock.calls[0][1]).toEqual(errorAlertProps.error.error);
  });
});

I know I'm missing something... :/

Note how I am mocking out the react-native-simpledialog-android object.  See src/__mocks__/react-native-simpledialog-android.js.
I'm not sure if defining the mock w/in the test class works.   You might want to dump that object to the console.log to confirm you are getting that Alert as a mock.
Please provide the output from the test run npm run test src/components/__tests__/ErrorAlert-test.js

Thank you for your fast answer.
Here is my "Alert" log :
 { ActivityIndicator: [Getter],
   [...]
  PointPropType: [Getter],
  addons:
   { LinkedStateMixin: [Getter],
     Perf: [Getter],
     PureRenderMixin: [Getter],
     TestModule: [Getter],
     TestUtils: [Getter],
     batchedUpdates: [Getter],
     createFragment: [Getter],
     update: [Getter] },
  hasReactNativeInitialized: false,
  findNodeHandle: [Function: findNodeHandle],
  render: [Function],
  unmountComponentAtNode: [Function],
  unstable_batchedUpdates: [Function: batchedUpdates],
  unmountComponentAtNodeAndRemoveContainer: [Function],
  alert:
   { [Function]
     _isMockFunction: true,
     getMockImplementation: [Function],
     mock: { calls: [], instances: [] },
     mockClear: [Function],
     mockReturnValueOnce: [Function],
     mockReturnValue: [Function],
     mockImplementationOnce: [Function],
     mockImpl: [Function],
     mockImplementation: [Function],
     mockReturnThis: [Function] } }

I just tried your exact implementation (but with Alert) I've the exact same output as before, which is :
Using Jest CLI v14.1.0, jasmine2, babel-jest, jest-react-native preset
 FAIL  src\components\__tests__\ErrorAlert-test.js (5.003s)
 ErrorAlert › it should be fine
  - TypeError: Cannot read property '0' of undefined
        at Object.<anonymous> (src\components\__tests__\ErrorAlert-test.js:51:37)
  ErrorAlert
    ✕ it should be fine (33ms)

1 test failed, 0 tests passed (1 total in 1 test suite, run time 12.332s)
-----------------------|----------|----------|----------|----------|----------------|
File                   |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
-----------------------|----------|----------|----------|----------|----------------|
 components\           |    86.11 |    61.54 |      100 |    82.35 |                |
  ErrorAlert.js        |    86.11 |    61.54 |      100 |    82.35 |       37,40,44 |
 components\__tests__\ |    92.31 |       75 |      100 |    90.91 |                |
  ErrorAlert-test.js   |    92.31 |       75 |      100 |    90.91 |             52 |
-----------------------|----------|----------|----------|----------|----------------|
All files              |    87.76 |    63.33 |      100 |    85.71 |                |
-----------------------|----------|----------|----------|----------|----------------|

I'm a little lost. Thanks again for your precious help.

Note TypeError: Cannot read property '0' of undefined.  I would update the test after this line new ErrorAlert().checkError(errorAlertProps);  to dump the mocked object (e.g. console.log(Alert.alert))
You need to see what values are actually in that mocked object.

I agree, I already logged it (see the last two lines of my precedent post).
I'm not sure I understand what you mean by "update the test". How would you do that ?
Here is the logs (right after new ErrorAlert().checkError(errorAlertProps);) :
Alert.alert.mock : { calls: [], instances: [] }
Alert.alert :
function () {
      instances.push(this);
      calls.push(Array.prototype.slice.call(arguments));
      if (this instanceof f) {
        // This is probably being called as a constructor
        prototypeSlots.forEach(slot => {
          // Copy prototype methods to the instance to make
          // it easier to interact with mock instance call and
          // return values
          if (prototype[slot].type === 'function') {
            const protoImpl = this[slot];
            this[slot] = generateFromMetadata(prototype[slot]);
            this[slot]._protoImpl = protoImpl;}});

        // Run the mock constructor implementation
        return mockImpl && mockImpl.apply(this, arguments);}

      let returnValue;
      // If return value is last set, either specific or default, i.e.
      // mockReturnValueOnce()/mockReturnValue() is called and no
      // mockImplementationOnce()/mockImplementation() is called after that.
      // use the set return value.
      if (isReturnValueLastSet) {
        returnValue = specificReturnValues.shift();
        if (returnValue === undefined) {
          returnValue = defaultReturnValue;}}

      // If mockImplementationOnce()/mockImplementation() is last set,
      // or specific return values are used up, use the mock implementation.
      let specificMockImpl;
      if (returnValue === undefined) {
        specificMockImpl = specificMockImpls.shift();
        if (specificMockImpl === undefined) {
          specificMockImpl = mockImpl;}

        if (specificMockImpl) {
          return specificMockImpl.apply(this, arguments);}}

      // Otherwise use prototype implementation
      if (returnValue === undefined && f._protoImpl) {
        return f._protoImpl.apply(this, arguments);}

      return returnValue;}

What I meant is to update the test like this, so that after the checkError, you dump the mock object
    new ErrorAlert().checkError(errorAlertProps);

    console.log(Alert.alert.mock.calls);  //<<<<<< add this

    //expect(Alert.alert.mock.calls[0][0]).toEqual("Error");
    //expect(Alert.alert.mock.calls[0][1]).toEqual(errorAlertProps.error.error);

Alright then, that is exactly what I've done.
The Alert.alert.mock.calls array is empty but I don't understand why. :|

One thing I'm concerned about, I don't like that the mock object is defined w/in the __test__ class.  I'm not sure that the ErrorAlert class will pick up that mock.  Try moving the implementation to src/__mocks__/Alert.js similar to src/__mocks__/react-native-simpledialog-android.js.
See if that makes a difference.  I suspect the test class knows about the mock but the ErrorAlert class, which is being test, does not.
I think having the mock defined in the location that Jest defines is the correct design pattern and I've had very good success with it.
Since Alert is a node_module, the proper way, or recommended way, to mock it is put it in the top level directory so that all references to it will pick it up automatically.  That's why the react-native-simpledialog-android.js is declared there.
If moving the mock class to src/__mocks__ doesn't provide any insight, then I would suspect the implementation code of the ErrorAlert class.
Try putting a debugger statement in your ErrorAlert class and, from the snowflake terminal, enter npm run test-chrome src/components/__tests__/ErrorAlert-test.js and try debugging it.

Thank you for all your time and effort. I've already tried to move the implementation to src/__mocks__/Alert.js and implement it exactly the same way as you do but without success. In fact I obtain the exact same result w/ your implementation or mine.
I will try to debug ErrorAlert monday and edit this post with fresh news.
Thank you again.

I would recommend staying with the mocks location for consistency.
Good luck...let me know how it goes.
On Aug 26, 2016 12:45 PM, "Brokray"<EMAIL_ADDRESS>wrote:

Thank you for all your time and effort. I've already tried to move the
implementation to src/mocks/Alert.js and implement it exactly the
same way as you do but without success. In fact I obtain the exact same
result w/ your implementation or mine.
I will try to debug ErrorAlert monday and edit this post with fresh news.
Thank you again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bartonhammond/snowflake/issues/131#issuecomment-242803031,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABORPA7-cPLltHwqj1WbjRup06Vtr8iBks5qjyZMgaJpZM4JtCnO
.

@Brokray , any update on this?

@bartonhammond Not really, I didn't find anything to debug in my ErrorAlert.js.
At the moment I put this aside because I've other tasks to fulfil.
I will continue this a bit later and let you know how it goes. Thanks again for all your help.

I think I've answered this as best I can and have nothing more to contribute.


Issues with authorizing in IRC

As you see in the log below I get an error when the bot tries to log into IRC. I have no idea how to fix this. Does anyone have any suggestions?
2020-08-11T23:30:47.016Z error: Received error event from IRC {
prefix: 'irc.barafranca.com',
server: 'irc.barafranca.com',
command: 'err_unknowncommand',
rawCommand: '421',
commandType: 'error',
args: [ 'Thewiseone', 'AUTH', 'Unknown command' ],
level: undefined,
message: undefined,
timestamp: '2020-08-11T23:30:47.016Z',
splat: undefined,
[Symbol(level)]: 'error',
[Symbol(splat)]: [
{
prefix: 'irc.barafranca.com',
server: 'irc.barafranca.com',
command: 'err_unknowncommand',
rawCommand: '421',
commandType: 'error',
args: [ 'Thewiseone', 'AUTH', 'Unknown command' ]

How are you trying to authenticate (what does your autoSendCommands look like, with the password redacted)? It might be that you need to authenticate with NickServ instead.


Routing function is added to the bottom navigation bar

Feature request 🚀
Routing function is added to the bottom navigation bar
Expected:

No breaking changes

Examples:

Programme:
Others:

Yes, I think we need it. Would you like to do it for us ?

I think I can give it a try

小紫念沁
@.***

------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2023年4月22日(星期六) 凌晨0:20
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [varletjs/varlet] Routing function is added to the bottom navigation bar (Issue #987)
Yes, I think we need it. Would you like to do it for us ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

thanks for your help. 🙏


Add compatibility with react-native-maps for android.

Currently when using both the dependencies together we are getting checkDebugDuplicateClasses error when having react-native-maps as dependency error. We need to use react-native-maps to show static maps with custom marker using react-native-vector-icons` which is not supported by this sdk.
Below is the example of custom marker that we would like to implement with the dynamic text in the center:

Also their are other usecases that we are still not supported by this SDK.
For more information refer to Issue 76

@jokerttu @illuminati1911 - Just wondering if these two libraries are compatible now with all the updates to the SDK now that we're on version 0.4.3?
react-native-maps
https://github.com/bramus/react-native-maps-directions

I've created a new feature issue (#254) that should address this issue by giving way to use classic map within this library.
This won't fix the issue where two libraries are not compatible with each other, but gives workaround to use classic map views. Please follow the new issue for updates, and we’ll close this once the new feature is implemented.


Expand fsxa.config capabilities for Project Folders

Description
Currently we are implementing unit tests in our fsxa-pwa powered nuxt app.
We decided to put the unit tests beside the component into the same folders so components and tests are in the same place every time.
As we also want to test mapping functions used in our fsxa/sections templates we would also like to write unit tests for those.
Problem
When starting the application after setting up the unit tests the FSXA Library also collects the unit tests and treats them as if they're also components. This leads to errors such as Reference Error: describe is not defined as describe is one of the functions used bei jest for unit testing.
That happends because as stated in the description of the configuration it will auto collect every file with the extensions .vue, .tsx, .jsx and .ts and our unit test files of course are ending with .ts in a TypeScript project.
Proposals
Allow file extension filtering
This proposal is directly taken from the Nuxt config, as they also allow to only collect components when files have specific extensions.
export default {
  components: {
    sections: { path: '~/components/fsxa/sections', extensions: ['vue', 'tsx'] },
  },
}

Allow globs
This is a standard approach used by many tools such as webpack.
export default {
  components: {
    sections: '**/components/fsxa/sections/**/*.(vue|tsx)',
  },
}

Allow ignores with globs or extensions
export default {
  components: {
    sections: { path: '**/components/fsxa/sections/', ignore: '*.test.*' },
    layouts: { path: '**/components/fsxa/layouts/', ignore: ['ts'] },
  },
}

In the best case some mixture of those is implenented, but more freedom would be appreciated.
A quick fix for our project is to just not put unit tests into those directories, but that would break the whole directory structure and would be inconsistent with the rest of the project.

Just found out I messed up the project to post this. I will recreate this ticket in fsxa-pattern-library

@webfussel No need to move this issue :-)
Thank you for opening up this topic.
The problem you described is reasonable. The solution for it would be a fix in our fsxa-nuxt-module, in which the configuration should be expanded in such way, that not only strings are allowed in the components objects' properties.
I think the cleanest way to go would be to support the same configuration possibilities that are used in the nuxt.config (https://nuxtjs.org/docs/configuration-glossary/configuration-components/).
How urgent is this fix for your project?

Hey @henczi-espirit !
First: I'm deeply sorry if I created some chaos with the new ticket in the (sadly again...) wrong ticket board. And thank you for your answer.
I agree the cleanest way would be a configuration that's already present in a library used in the project - nuxt in that case.
(They also provide a .nuxtignore if that's something you could also consider)
Currently the setup for our unit tests is done on a separate branch, so I don't need the fix right now - but as we want to merge soon (about 1 or 2 weeks from now) it would be nice if it's fixed by then.

@webfussel I created a ticket for this in our internal Jira, but I cannot promise that the feature will arrive soon enough for your project, for there are a higher prioritized tickets before it. Though I will speak with the developers, if someone could attach this feature to their ticket.

Thanks a lot!


Unity WebGL libC error.

Hi, I am getting an error with the Unity client sample when I build for webGL. I copied the plugins folder from https://github.com/Cysharp/GrpcWebSocketBridge/tree/main/samples/GrpcSampleApp.Client.Unity/Assets/Plugins into my assets folder and am using the Sample code otherwise. The code works in editor and standalone but is still trying to access the dynamic libc library in a webgl build. My unity version is 2022.2.15, does this still work for that?
Thanks!

Did you find any solution ?

Is it fixed?


WaitForView using resource id doesn't return until timeout is reached, even when a match is found

From<EMAIL_ADDRESS>on February 19, 2015 10:36:37
What steps will reproduce the problem? 1. Create a test with waitForView(int id, int minimumNumberOfMatches, int timeout)
2. Set minimumNumberOfMatches to 0 (any number of matches)
3. Notice that even when it finds a match, Robotium waits the whole timeout before returning What is the expected output? What do you see instead? I expect that if it's looking for any matched, it would return immediately after finding one. What version of the product are you using? On what operating system? Robotium 5.3.1
Android API Level 21 Please provide any additional information below.
Original issue: http://code.google.com/p/robotium/issues/detail?id=660

From<EMAIL_ADDRESS>on March 03, 2015 13:19:19
According to our tests its working fine. Probably you are waiting for a View that doesn't show up. If you log the result returned by waitForView you will see it is false (if timeout is reached).
Status: Invalid
Owner<EMAIL_ADDRESS>

From<EMAIL_ADDRESS>on March 04, 2015 07:23:21
This is happening when waitForView returns true. I will get some example code and log together today to demonstrate. To get around this I wrote a loop that progressively increases timeouts, but I'd rather it just work.

From<EMAIL_ADDRESS>on March 04, 2015 07:50:44
Just did a simple example and it's not happening!
The scenario I was seeing this happening was when the tests target activity was replaced with a new one (code checks if you're logged in and if not redirects you to a login activity). Thinking about that, it makes some sense that it would be confused and I think this is probably outside the normal use case. Would take some time for me to provide an example of this without just exporting my whole android project. I feel a lot better about this now and feel comfortable with the resolution. Thanks!

From<EMAIL_ADDRESS>on March 04, 2015 09:19:33
Great. Thanks for letting me know.


Can we improve upon the descriptions above?

If we are going to have sentences and links then we should shorten those or redo them completely and try to make them minimal.

Yeah no one is going to read it... we should make it one sentence. It can be done after #166

There's a typo also, in the first one...

https://docs.google.com/document/d/15tZ7f17YdMTGrbFXQoMEiiPP3VCMTrkzH7dHLQriaU0/edit#

That should do the trick

Looks Great!!!

related to #221

@freedumbs00 I added the deep dive link to each icon, so the user can either mouse over the icon for a quick definition or click to go to TEC deep dive page about the param. Could you improve the following text by adding this info?
To learn more about each parameter, mouse over the “?” for definitions, or see the Hatch Spec for a more thorough explanation.

@mendesfabio I added it and made a few more revisions

@PabloCGL tackled this issue, changes are live at https://dev-tec-hatch-demo.herokuapp.com/hatch.


Implement Tests

@unnamedd What does this task mean exactly? Just add more XCTest tests?

@tfrank64 yes. Today, we do not have any tests, will be awesome start to write tests for new features.

Ok, we have 4 tests already. We can definitely add more though.


Implement Edit Feature

Implement Edit Feature
Update DG, UG

Codecov Report

Merging #102 (d8d3642) into master (cfef69e) will decrease coverage by 2.34%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #102      +/-   ##
============================================
- Coverage     34.48%   32.14%   -2.35%
  Complexity      170      170
============================================
  Files            65       67       +2
  Lines          1070     1148      +78
  Branches         94      111      +17
============================================
  Hits            369      369
- Misses          683      761      +78
  Partials         18       18

Impacted Files
Coverage Δ

...java/seedu/address/logic/commands/EditCommand.java
0.00% <0.00%> (ø)

.../seedu/address/logic/parser/EditCommandParser.java
0.00% <0.00%> (ø)

...a/seedu/address/logic/parser/TrackermonParser.java
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cfef69e...d8d3642. Read the comment docs.


Upgrade boring from v2.1.0 to v3.1.0

Also, add GHA workflows to test the update.

Before merging this, we should run a test build of teleport pointing at the commit SHA on this branch and make sure that everything builds in FIPS and non-FIPS mode.

https://github.com/gravitational/teleport/pull/34105
https://drone.platform.teleport.sh/gravitational/teleport/30250


Revisit logging framework for Antrea

From the beginning, Antrea has been using k8s.io/component-base/logs and klog for logging. There have been several changes recently in upstream K8s which had / have an impact on Antrea logging:

https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/1602-structured-logging
https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components

Starting with K8s v1.23, most klog flags have been deprecated and using them triggers a deprecation notice. These deprecated flags include --logtostderr, --log_dir, --alsologtostderr and --log_file_max_size, which are used in the Antrea deployment manifests to configure logging for the antrea-agent and antrea-controller binaries.
After merging #3742 (which updates our K8s dependencies), Antrea will be impacted, and these deprecation notices will be displayed:
The Antrea agent runs on each node.

Usage:
  antrea-agent [flags]

Flags:
      --add_dir_header                   If true, adds the file directory to the header of the log messages (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --alsologtostderr                  log to standard error as well as files (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --config string                    The path to the configuration file
  -h, --help                             help for antrea-agent
      --log-flush-frequency duration     Maximum number of seconds between log flushes (default 5s)
      --log_backtrace_at traceLocation   when logging hits line file:N, emit a stack trace (default :0) (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --log_dir string                   If non-empty, write log files in this directory (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --log_file string                  If non-empty, use this log file (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --log_file_max_num uint16          Maximum number of log files per severity level to be kept. Value 0 means unlimited.
      --log_file_max_size uint           Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800) (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --logtostderr                      log to standard error instead of files (default true) (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --one_output                       If true, only write logs to their native severity level (vs also writing to each lower severity level) (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --skip_headers                     If true, avoid header prefixes in the log messages (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --skip_log_headers                 If true, avoid headers when opening log files (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
      --stderrthreshold severity         logs at or above this threshold go to stderr (default 2) (DEPRECATED: will be removed in a future release, see https://github.com/kubernetes/enhancements/tree/master/keps/sig-instrumentation/2845-deprecate-klog-specific-flags-in-k8s-components)
  -v, --v Level                          number for the log level verbosity
      --version                          version for antrea-agent
      --vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging

Starting with K8s v1.26, KEP 2845 will go GA and the flags will be removed altogether.
There are several possible options for Antrea:

Stop using k8s.io/component-base/logs and use klog directly. This should be a pretty minor and non disruptive change. The above flags are only deprecated and removed from k8s.io/component-base/logs, not from klog itself.
Keep using k8s.io/component-base/logs for consistency with K8s components, and stop relying on deprecated flags. The Antrea logs will then always go to stderr, and the container runtime can write them to a file locally on the host. This is a disruptive change for users, as currently Antrea also writes logs in a specific location on the host file system, and handles log rotation itself for these files. Users will be in charge of running a log collection service (e.g. Fluentd), just like they would for any other Pod. This solution is in line with the decisions made by the K8s community and with https://12factor.net/logs.
"Duplicate" k8s.io/component-base/logs in Antrea, with some minor changes. This would enable us to keep the flags we need, but also benefit from the latest improvements, such as JSON logging support. However, this is a bit of a maintenance headache. Users don't need to be impacted if we preserve all the flags that we have currently.
Use a "custom" logger which implements the logr API. This can be a combination of Zap and Lumberjack (for log rotation, if we want to preserve the current behavior). The logger can then be used as the logging backend for the klog logging facade (no update is required for the codebase). This is quite similar to 3. Users don't need to be impacted if we preserve all the flags that we have currently.
Switch to a completely different logging  facade. I am not going to go into details here, as I think this is too disruptive to the codebase and to developers.

At this point I am leaning towards 1 or 4, as they are the least disruptive to users. 4 gives us a lot of control over our logging "destiny" :). 2 is also an option if we want to stay in sync with K8s, but we have to be ok with taking some out-of-the-box features away from users (log redirection to a custom file / directory, log rotation).
cc @jianjuns @tnqn

sounds a reasonable choice to me. I do not know 4) well enough, but that sounds much more work than 1)?

With 1 or 4, will there be logs of different formats due to antrea code and k8s library code using different logers?

@tnqn In both cases, we keep using the klog logging facade (klog.Info, klog.Error, ...). I think that when we consume K8s libraries in Antrea, the libraries don't initialize any specific logging backend (they just use the klog logging facade). So Antrea can configure the logging backend for klog as desired, and both Antrea + the K8s libraries should end up using the same logging facade and the same logging backend. If the logging backend is the same, the log format should be the same. I may be wrong as I haven't experimented with this yet, but that's my assumption at least.
The different between 1 & 4 is that with 1, we keep using klog as the logging backend (so facade + backend), while with 4, we are free to use another logging backend which may have better performance or more features.


Shows 3MB files as hosted on empty / fresh IPFS node

Describe the bug
Started a fresh ipfs node and browsed to the webui. On the status page it shows "Hosting 3 MB of files" - "Discovered 1392 peers" (ref. screenshot below)
But when clicked on the files section, it is empty. (ref. screenshot below)
To Reproduce
The size usually varies, but start a fresh IPFS node and you would start to see the files count, without having to add any files explicitly
Expected behavior
If this "3MB" includes "on the fly" blocks that are being wanted by other peers and just hosted temporarily on the node (which should be the case, since no files are added on the local node directly), two things are needed:

clearly indicate the nature of the hosting data. Something like Hosting y MB of peer data, z MB of local pinned files etc.
when clicked on the "Hosting 3MB of files" link, please display the list of blocks that are making up this 3MB (even if they are just "on the fly" peer data).

For beginners, web-ui is a great tool to understand what is going on, and helping them visually explore the peer data that is being hosted on the local node, is very important for debugging and many other things.
Also, the peers section lists the peers nicely - the geography map is very useful. Similarly, is there any way those peers can be "browsed" to explore which blocks and pinned files they are hosting (assuming they allow) ?
Screenshots

Desktop (please complete the following information):

OS: Windows 10
Browser [e.g. chrome, safari]: Chrome latest

Smartphone (please complete the following information): None

Thanks for the feedback @KrishnaPG I strongly agree. We could improve those stats by showing the total number blocks vs the number of pinned blocks, to compare the ephemeral cached content to the content you care about.
Providing a way to see content in the block store that isn't in the MFS is something we really need.

Thank you @olizilla
Does IPFS offer any API or some other mechanism to list the blocks on the store?
Most of the API is centered around knowing the cid before hand to get a block / file. What is needed for this is more of:  enumerate all blocks in the store (without having to know the cids). Wondering if there is a way.

Also, regarding the swarm peers, how are you keeping the peers list up-to-date? I have been looking into the ipfs swarm API, it only offers a snapshot view with ipfs.swarm.peers(), which means we have to periodically poll the method.
I was looking for more of a reactive variable or atleast connected, disconnected events from the ipfs swarm so that interested parties can keep track of the peers without having to poll. Opened a request on those lines here: https://github.com/ipfs/interface-js-ipfs-core/issues/475 requesting to enable reactivity or atleast raise events. That should make building the ui more easy

Work is underway to let users see what else is in their datastore in #1027


Bug: Fix Homebrew Cask using the old eqMac2 installation method.

Disclaimer:
Please go through existing issues to avoid creating duplicates. If you found a similar issue please post a comment there. If you are uncertain your issue is related to others then create the issue. Obvious ignorance of this rule might get you blocked from posting new issues. Please tick the box below to show that you have followed the guideline.

[x] I have checked for a similar issue and sure it hasn't been reported before.

Describe the bug
As mentioned in #188
Need to resubmit the brew cask: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/eqmac.rb
It needs to point to the new version of eqMac

created pull request here: https://github.com/Homebrew/homebrew-cask/pull/81352

Closing as the PR has been merged, just need to keep updating on releases now.


not playing sound for awakener's orb drops

not sure if it affects all bosses, or if it was manually added due to spam at new DT2 bosses, but plugin is not playing sound when an awakener's orb drops for me at leviathan

Hey, thanks for reporting this!
I suspect this might be a wider issue within RuneLite, as some Loot tracker plugins don't see any loot dropped by Leviathan (or Whisperer) either. It could be that the client itself doesn't send the message for the onLootReceived event...
But I'm getting ahead of myself. I'll look into it, thanks again!

Just checked my loot trackers (both Loot Tracker and Loot Logger) and 11 out of my 95 kills showed up with loot. Definitely something funky going on with that. None of my awakener's orbs showed up, so your hypothesis tracks.

It appears that Leviathan loot was indeed not tracked correctly, which was fixed in this commit to the RuneLite client: https://github.com/runelite/runelite/commit/9113feeb0e97b4056cdda9b168f6fba399d1db9a
I have yet to do any testing myself due to IRL intervening, but I hope this has fixed the issue! If not, I'd love to hear it (cuz that would mean I missed up somewhere and need to fix it....)


XLM TRANSFER HELP ME

Hello, I have a problem with my uploaded XLM tokens. when sending them from Binance to Coinbase, I mistakenly entered the wrong MEMO address and probably the wallet address.... I don't know how it happened, because I minimized the browser on my phone and the memo changed.... how is that possible? Through this change my mistake fell out, please help....

Hi,You are receiving this because you are subscribed to this thread..
Sent from Yahoo Mail for iPhone$&@
On Wednesday, March 2, 2022, 8:02 PM, Myhero7392 @.***> wrote:
Hello, I have a problem with my uploaded XLM tokens. when sending them from Binance to Coinbase, I mistakenly entered the wrong MEMO address and probably the wallet address.... I don't know how it happened, because I minimized the browser on my phone and the memo changed.... how is that possible? Through this change my mistake fell out, please help....
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

You will need to synchronize your wallet and then you debug it


ci: remove STATUS commands from upstream tests' Jenkinsfile

These are remnants of a past before GHPRB. At best they create uncessary noise in the logs, at worst they can interfere with the default behaviour, so let's just remove them.

/test-upstream

/test-upstream-k8s

I've included this commit in https://github.com/cilium/cilium/pull/25044.

The CI failed "as expected" (i.e. it timed out and correctly reported back as a failure on GH commit status API, which is the intended behaviour and fixing the unintended behaviour currently in main where it instead was reporting back as successful).


Deploy ova with config parameters for the network

Hi
to run the deployment script we have to set the IP first. As we are NOT running DHCP in our server network we are currently doing this via the console.
Would be nice if the basic network settings like IP, GW, Netmask could be set via OVA attributes - other network settings (dns, searchdomain are already part of the ps script)
thanks

For customers not using DCHP on server networks, allowing this information to be populated using OVA attributes would be a good solution. I'll add this to our list of product enhancements for consideration.


Weird behaviour

The editor behaves strangely:
https://gfycat.com/GrossEnchantingHuemul
Looks like problems with virtual dom – does Flarum use it?

+1 this bug seems valid
and one more again
format icon is not working like expected if you select word then select format icon (bold).
you need to give it space or some change in text editor to make it change (look in preview)
maybe you can try it @jtojnar


Legal name help text should match profile type

This is misleading - we're creating an individual profile but the help text says "eg. Open Collective Inc".
If it's an individual the help text should be a person's name, like "Maria Garcia"
If it's an organization, it should be a company name as above, e.g. "Open Collective Inc"
Our individual/organizational profile creating flow confuses users a lot already so let's make sure this is handled carefully.

Label


update Taiwan's imagery sources

update NLSC's tms url
add Taiwan historical map with gpx traces.

Hi, @happyman  thanks for the report. iD's background imagery sources come from the editor-layer-index project - can you make the pull request over in that project, and it will get accepted into iD automatically when we release a new version?  Thanks!

@bhousel thank you!


Show field instructions and other settings

I love the links back to the docs and to the control panel but Id love to see this page show any instruction text along with any field level settings.

I love the links back to the docs and to the control panel

Great! Thanks!

but

There's always a but... :wink:

Id love to see this page show any instruction text...

The intention of the Cheat Sheet is for quick reference while working on templates and accessing data. I'm curious how the instruction text would be helpful in that context? We've only used the instruction text to inform people while entering content in the CP, not while using fields in templates.
We did play around with incorporating the instruction text—but after reading it on the page I realized it was out of context. Thoughts on that?

...along with any field level settings.

This is definitely on our "experiment with" list. I tried it early on but settings can get complex. You can expect to see some setting-specific detail in the future. I just don't know what it will look like yet. As we progress through ideas I'll post them here in this issue though.


I want to add a animated background project.

Project title
(animating background)
Project Description
(Hey, project admin I'm a GSSOC participant and I want to add an animated background project created with HTML and CSS it consists of animation transforms properties merely focused on CSS animation I'm attaching the demo below please go through it and assign me the issue to work on.)
Stack:
And in order to tick the check box just put x inside them for example - [x] like this. Please delete options that are not relevant.

[x] Html
[x] CSS

https://user-images.githubusercontent.com/95171638/165969529-fd3ae505-b1da-4f0a-b7ae-c902929a600f.mp4
@gurjeetsinghvirdee as you said that I cannot add the same project to the repository. this project is not added to any repository.
assign me this issue to work on.

Copying project from same person everytime
https://www.youtube.com/watch?v=3kORIXnEg0I


Miniz vs libzip

Hi,
why do you use miniz instead of libzip? Are there any dis-/advantages?
Since the latter are already included in the engine as a third party lib?
I'am just curious because i got into troubles using another plugin (DirectExcel) that also uses miniz through the xlnt librarie so i had to rewire the third party lib to get both working.

Hi, the main rationale behind choosing miniz, specifically including it by source code, rather than using libzip from the engine's module (which is included as a dynamic/shared library), is that libzip is only supported on Windows Win64, Mac (OS X), and Unix-based platforms (Linux, Ubuntu, CentOS, etc). Therefore, libzip won't work on Windows ARM/Win32, Android, iOS, consoles (PS4/5, Xbox, Switch), VR platforms (Quest, SteamVR, Magic Leap, etc) and other platforms. There're quite a significant number of devs who use this plugin on these platforms which are not supported by libzip in UE without extending that module, which is why it uses miniz.
If you have any specific issues that you faced while using this plugin, please let me know.

Thats a good point, thanks.
Like I said, I've only had problems with this particular plugin “DirectExcel” which uses the xlnt sources and includes the miniz sources so there are naming conflicts. But i think the problem is in the DirectExcel plugin, it looks like miniz gets exposed through a public header.


Exec format error

When I tried to run a script I made, I got this message:
cannot execute binary file: Exec format error
I can run the script without any problem directly from the console, but the trigger function always get that error.
I am using raspbian if that helps.

@Gerardo34 What is the permission of your script? Do you have executable bits on? And do you have a correct shebang in the beginning of the script?

Ty, I solved it with the shebang :)


Fresh installs should have sensible defaults for periodic tasks

Today, fresh installs of Falco have no default periodic tasks, meaning that it’s up to the developper installing to created the 5-odd periodic tasks from Django Admin.
In order to make new installs simpler, it would be nice to provide :

Sensible default periodic tasks
A documentation to change/add/remove said tasks

Here is a list of tasks that I think would make sense :

3 audits per day
Fetch the available WPT configurations directly on installs (so that users can immediately create a new project)
Update of available WPT configurations every night
Cleanup of old audit statuses every night

Note: the celery.backend_cleanup is managed automatically by Celery Beat and does not need to be managed in this PR.
@alexfauquette is working on it!

Solved by #36


Pip install pymfm not working on linux(ubuntu)

Describe the bug
While doing Pip install pymfm not working on linux(ubuntu) and showing error.
Screenshot

Steps to reproduce the behavior:
Do pip install pymfm on a linux(ubuntu 24.04) system
Desktop (please complete the following information):

OS: Ubuntu 24.04

While trying to pip install pymfm the window comes up with error  " This error originates from a subprocess, and
is likely not a problem with pip."


This package shouldn't limit httpx vesrion at all

Describe the bug
This package shouldn't limit httpx vesrion at all. This package is not meant to be installed at runtime, only generation, so this just interferes for no good reason.
To Reproduce
Install this package, it'll limit httpx version.
Expected behavior
It shouldn't. The httpx requirements are:

Not actually required, they are just cautionary.
Out of scope for this lib, it should be done in docs/readme to list the supported versions.

OpenAPI Spec File
N/A
Desktop (please complete the following information):

OS: all
Python Version: all
openapi-python-client 0.11.3

Additional context
This dependency forcing meant that we were using a vulnerable httpx version for a few months (CVE-2021-41945), and really for no good reason.

It might also help move the responsibility to the end user by recommending that users pin specific versions themselves with a tool such as Poetry or pip-tools.
That way they can used a tested version of httpx safely and upgrade as needed safely each time.

I assume everyone who uses Python in a production environment does something like this.

This package will continue setting limits on httpx to ensure that the default way to install always works. This tool is meant to be treated as a standalone CLI, not a library—the recommended install method is pipx specifically to isolate this package's dependencies from any other Python packages you might be using. Any vulnerabilities which impact this tool will be prioritized.

It obviously wasn't installed in our production environment, but we still have compliance requirements where we have to address security issues in a timely manner and this prevents us from doing it. TBH, it's been a year since I opened this ticket, so I don't fully remember the context where this interfered, but I remember it was causing us trouble with our compliance stature.


Upload youtube video

Describe your suggestion
According to Youtube Data API v3

So it should be great if you can use to internal Innertube API to allow uploading videos without the restriction.
Thanks a lot.
Other details
No response
Checklist

[X] I am running the latest version.
[X] I checked the documentation and found no answer.
[X] I have searched the existing issues and made sure this is not a duplicate.
[X] I have provided sufficient information.

JFYI I found out the upload endpoints used by YouTube Studio require the browser to solve a botguard challenge,  which is out of scope for this project. On the bright side of things, however, the Android app ones seem to be free of any hurdles so we'll probably use that.

A little update:
See #115


Add docker/docker-compose support for examples

Add docker/docker-compose support for examples.

Thanks for the suggestion, are you able to help?

There is nothing special to do in a Kledex application, compared a regular dotnet one.
Following the official docs might be enough: https://docs.docker.com/engine/examples/dotnetcore/
BUT, I still think that having a docker example in the wiki might help get some traction. :)

@lucabriguglia  I can help with this :)

@Ilchuk-Mihail that would be great, thanks :-)

I have started building this. Should I only run that examples in docker or it should be docker compose to run also database? With sql server, I think everything will be ok, but not sure about cosmos db. I don't see any ways to build it in docker compose so far.

I would start simple and then add stuff where possible


Unbound misses IPv6 ACL when WAN goes up and down

This bug seems related to https://github.com/opnsense/core/issues/4142, https://github.com/opnsense/core/issues/3342 and https://forum.opnsense.org/index.php?topic=13196.msg60662
I'm on OPNsense 20.7.3
From time to time, OPNsense's Unbound refuses to answer queries from my local network via IPv6, while IPv4 works reliably.
I am on a bridged cable modem, getting a static IPv4 and a static IPv6 /56 prefix, both assigned via DHCP.
The LAN interface is configured as tracking.
While on services_unbound_acls.php the IP networks are listed correctly, it seems the start order of services causes problems, as /var/unbound/access_lists.conf is updated not reliably, missing the local /64 network, and therefore refusing queries from my local IPv6 network.
The problem occurs when the WAN interface goes down, e.g. in case of a network outage, and can at least somtimes be reproduced if I choose menu option 11 in SSH, to restart all services.
As a really ugly workaround, I've added "::/1 allow" via a custom access list, but somehow doesn't feel proper. :-)
In some issue I read restarting Unbound isn't done on purpose, to avoid purging the cache. I wonder if it doesn't make sense to propagate the link local addres (fe80) as local DNS resolver instead of the public IPv6 address, to work around this problem.

This is still an issue. It shouldn't be closed.

Several tickets still open really.

Ah, I didn't notice there were other tickets. Sorry.
For others' reference, #4970 is tracking this.


[r] Port blockwise sparse iterator from Python to R

Port #1792

@mojaveazure @eddelbuettel my understanding is this should be sequenced before #1819 -- my apologies for not having articulated this sooner


MyExpandableItemAdapter

Hello
When i choose last element in Expandable recyclerView (com.h6ah4i.android.example.advrecyclerview.demo_e.RecyclerListViewFragment)
last group not expand automatically i need to swype manually.
Look at video:
http://1drv.ms/1IVk5Pl

duplicate of #60.

Fixed in 0.8.0.


Invalid native token count

caused when syncing
I think this is caused by https://github.com/iotaledger/wallet.rs/blob/ca0c7680d99ac40bbfcc4146644cb4816a4a749b/src/account/operations/balance.rs#L34, because this type has the validation for the native tokens in a single output

Balance part is done here https://github.com/iotaledger/wallet.rs/pull/1358, needs to be also done in some other places


refactor: improve custom filters readability with optional chaining

Description
refactor customFilter.js file mentioned here: these_issues
also mentioned in this issue #1272

@ManikantaMandala please followup with failing tests. Next time, you better run them locally to make sure they pass, otherwise you will have to do this test ping pong with maintainers and wait for GitHub Actions to run tests for you

@ManikantaMandala please followup with failing tests. Next time, you better run them locally to make sure they pass, otherwise you will have to do this test ping pong with maintainers and wait for GitHub Actions to run tests for you

Thank you for the feedback @derberg
As this is my first contribution I had made some mistakes
I will do the necessary things for the next pr

@ManikantaMandala errors happen even if you make PR number 100, no worries
test run is visible in https://github.com/asyncapi/generator/actions/runs/11219255311/job/31244271269?pr=1275
and yes, run locally as described in development guide - if they pass locally, please share the log in this PR for overview

@ManikantaMandala because of a merge of one PR, you have conflicts here now, so please solve them and push updates to the PR

/rtm


Set a pipeline variable to true if scheduled build

Hi,
I want to pass additional arguments to my batch file in case the Build.Reason is not 'IndividualCI' or 'BatchedCI'. For that I am trying to set a variable to true like so, which is incorrect, because it is not under condition statement.
IsScheduledBuild: notin(variables['Build.Reason'], 'IndividualCI', 'BatchedCI')
So, how can I set a custom variable to true, if Build.Reason is a scheduled build (as against CI build)? Or, please suggest if there is an alternate way.
Essentially what I want to do it like so:
if (Build.Reason = CI Build)
{
    call MyBatchFile Args1 Args2
}
else
{
    call MyBatchFile Args1 Args2 Args3 Args4
}

Hi, sorry for the slow response - would you mind opening this issue in https://developercommunity.visualstudio.com/spaces/21/index.html - that's the best place to ask non-task specific questions about Azure Devops since this repo is dedicated mostly to tasks


Idea/Brainstorming

The .zip tld has some interesting domains proactively registered to presumably avoid the spread of unexpected nasties.— Hannah Vernon (@hannahvernon.com) November 29, 2024 at 7:41 PM

CDZS

https://sive.rs/com

Terms of Use

BY USING OR ACCESSING THE INTERNET CORPORATION FOR ASSIGNED NAMES AND NUMBERS’ (“ICANN”) CENTRALIZED ZONE DATA SERVICE (“CZDS”), YOU AGREE TO BE BOUND BY AND COMPLY WITH THESE TERMS OF USE.

IF YOU DO NOT AGREE TO THESE TERMS OF USE, PLEASE DISCONTINUE AND DO NOT PROCEED TO USE CZDS.

1. DEFINITIONS

“You” means the individual user of the CZDS (whether registered or not).

2. USE LICENSE

2.1 License Grant. Subject to complying with these Terms of Use, ICANN grants to You a limited, non-sublicenseable, non-exclusive, non-transferable log-in license to use the CZDS (“License”).

2.2 Username and Password. You are responsible for maintaining the confidentiality of your account log-in and password information, and for the security of your computer to access the CZDS. In the event of a breach of security, You agree to immediately change your password and to promptly notify ICANN of any CZDS security breach in writing.

2.3 Restrictions. You must not: (a) reverse engineer, disassemble, decompile or otherwise attempt to access or determine CZDS source code; (b) re-distribute or sublicense access to CZDS, or any part thereof, to any third party; (c) engage in any malicious or illegal behavior in connection with access or use of CZDS (including without limitation, submitting malicious code or engaging in other activity designed to compromise the availability, security or data of CZDS); (d) remove, modify or obscure any copyright, trademark or other proprietary rights notices that are contained in or on software accessed under this License; or (e) allow, assist or permit a third party to do any of the foregoing.

3. INTELLECTUAL PROPERTY RIGHTS

CZDS and all intellectual property rights therein, is licensed to You, not sold. All rights in CZDS not licensed to You under these Terms of Use are expressly retained by ICANN and its licensors. Your rights to access and use the data available through the CZDS may be subject to agreements with third parties.

4. PERSONAL INFORMATION

You acknowledge and consent that ICANN’s privacy statement posted at https://www.icann.org/privacy/policy governs the use, collection and handling of any personal data submitted, processed by or in relation to CZDS.

5. TERMINATION

ICANN may terminate the License (i) if You commit a breach of any of the Terms of Use and if capable of remedy, fail to remedy the breach within fourteen (14) calendar days of receiving written notice from ICANN or (ii) where ICANN ceases to operate or provide general access to CZDS. Notwithstanding the foregoing, ICANN may immediately terminate the License if You commit a breach of Sections 2.3 of the Terms of Use.

You may terminate the License and your personal login at anytime.

In the event of termination, You must cease using CZDS. You further acknowledge that ICANN may terminate your password, account and use of CZDS immediately upon the effective date of termination and that ICANN may retain any information previously entered into CZDS.

6. DISCLAIMER; LIMITATION OF LIABILITY & INDEMNITY

USE OF CZDS AND THIS LICENSE IS PROVIDED ON AN “AS IS” AND “AS AVAILABLE” BASIS.  ICANN MAKES NO WARRANTIES OR REPRESENTATIONS ABOUT THE FITNESS FOR USE, NON-INFRINGEMENT, AVAILABILITY OR RELIABILITY OF CZDS OR THAT CZDS IS ERROR-FREE.

 THE FOREGOING LIMITATION OF LIABILITY SHALL APPLY TO THE FULLEST EXTENT PERMITTED BY LAW IN ANY APPLICABLE JURISDICTION.

7. GENERAL

7.1 ICANN may modify these Terms of Use at any time. Any material change to these Terms of Use may be posted publicly or notified to You via written or electronic means. Any access or use of CZDS by You, following publication or notification, will be treated as your acceptance of the revised Terms of Use.

7.2 Sections 3 to 7 survive any termination or expiry of the License.

7.3 Any non-English translation of these Terms of Use that ICANN may make available are for convenience only. In the event of any inconsistency between the translated version and the English version, the English version of these Terms of Use will prevail.

7.4 These Terms of Use are governed by the laws of the State of California.

https://interisle.net/insights/cybercrimesupplychain2024


generate_workspace should/could choose highest maven version number

Migrated from issue 1573 in main repository
If generate_workspace is run with artifacts that depend on a common artifact, it will choose the version from whichever it encounters first. Alternately, it would be better (I think) if it instead chose the highest version. For example:
% bazel run //src/tools/generate_workspace -- \
  --artifact=com.amazonaws:aws-java-sdk-core:jar:1.11.10 \
  --artifact=io.dropwizard:dropwizard-core:jar:1.0.0

Generates:
 # com.fasterxml.jackson.datatype:jackson-datatype-guava:bundle:2.7.6 wanted version 2.7.6
 # io.dropwizard:dropwizard-jackson:jar:1.0.0 wanted version 2.7.6
 # com.fasterxml.jackson.datatype:jackson-datatype-jsr310:bundle:2.7.6 wanted version 2.7.6
 # com.fasterxml.jackson.module:jackson-module-afterburner:bundle:2.7.6 wanted version 2.7.6
 # com.amazonaws:aws-java-sdk-core:jar:1.11.10
 # com.fasterxml.jackson.datatype:jackson-datatype-jdk8:bundle:2.7.6 wanted version 2.7.6
 maven_jar(
     name = "com_fasterxml_jackson_core_jackson_databind",
     artifact = "com.fasterxml.jackson.core:jackson-databind:2.6.6",
     sha1 = "5108dde6049374ba980b360e1ecff49847baba4a",
 )

But if we reverse the artifacts:
% bazel run //src/tools/generate_workspace -- \
  --artifact=io.dropwizard:dropwizard-core:jar:1.0.0 \
  --artifact=com.amazonaws:aws-java-sdk-core:jar:1.11.10

Now we get:
# com.fasterxml.jackson.datatype:jackson-datatype-guava:bundle:2.7.6
# com.fasterxml.jackson.module:jackson-module-afterburner:bundle:2.7.6
# com.amazonaws:aws-java-sdk-core:jar:1.11.10 wanted version 2.6.6
# io.dropwizard:dropwizard-jackson:jar:1.0.0
# com.fasterxml.jackson.datatype:jackson-datatype-joda:bundle:2.7.6
# com.fasterxml.jackson.datatype:jackson-datatype-jsr310:bundle:2.7.6
# com.fasterxml.jackson.datatype:jackson-datatype-jdk8:bundle:2.7.6
maven_jar(
    name = "com_fasterxml_jackson_core_jackson_databind",
    artifact = "com.fasterxml.jackson.core:jackson-databind:2.7.6",
    sha1 = "c7012a59b4f36843489753a2027e169c3b8586f8",
)

Choosing the highest would also ensure the output is the same regardless of which ordering is used for the artifacts.
For context, this is coming out of a desire to manage our dependencies with a simple list of maven artifacts, and then generating the WORKSPACE and BUILD files automatically. Currently, it seems like either we have to be careful with the ordering of our list of artifacts, or we have to modify the generated WORKSPACE after the fact.

The desire to enforce consistency/reproducibility through a policy is reasonable. However, I am skeptical whether taking a greedy approach (choosing the highest version whenever possible) is the best route to handle versioning conflicts.
The problem of finding an installable package configuration (i.e. one without any package conflicts) has been found to be NP complete. The reduction can be made from 3-SAT to this problem.
Greedy Approach
Greedy, as suggested above, will prematurely fail. This makes sense when the occurrence of conflicts is low, and if one is concerned that automated conflict resolution masks underlying problem with the dependency specification. This is how Debian package managers handle this. If there is a versioning conflict is simply halts and spits out what the conflict. However, with large code bases possessing messy transitive dependency graphs, versioning conflicts will be inevitable. These are the same types of code bases Bazel is targeting.
Alternative Approaches
Alternatively, one can handle versioning conflicts by either (1) augmenting the greedy approach with backtracking, or (2) modeling the dependency graph as a satisfiability statement and using an external SAT solver. As far as pros and cons to each approach. Performance wise, they perform comparably if there is a limited number of conflicting constraints. However, with more conflicts, backtracking's performance degrades terribly, and SAT solving is a clear winner. That said, backtracking is significantly more predictability. One can explicitly state its heuristics (e.g. most recent package) and then have certain expectations as to what it selects. SAT solvers are more of a black box on this front.
The pip community had a similar discussion [0], as did the go community [1].
Between the backtracking approach and SAT solving, I am leaning towards using an external SAT solver like SAT4j to handle versioning conflicts. This is the approach used by OPAM (OCAML's package manager) [2], Dart [3], Maven, and Eclipse [4].
You're probably familiar with the problem. However, if you need a refresher, this article [5] gives a pretty good overview on the topic.
[0] pip community discussion
[1] go community discussion
[2] OPAM documentation on SAT solver
[3] Dart documentation on versioning solver
[4] Eclipse announcement of using SAT4j for handling external dependencies
[5] Overview article on the problem

I'm concerned about this eagerly downloading an exponential # of pom files.  How does that work with SAT4j, can you hook in "callbacks" for get more poms when needed?
AFAICT, most Maven packages use "anything above X" for version so I think you could start with just tracking what version packages are actually requesting (e.g., 1.2.3+ vs 1.2.3) and seeing if that's satisfiable without more info.  generate_workspace isn't even doing that, yet.

I'm concerned about this eagerly downloading an exponential # of pom files.

That is a valid concern. We could unnecessarily download pom files. We could conceivably fetch all of the transitive dependencies for group:artifact:3.4 and group:artifact:3.5.
Before I respond to the rest of your comment, let me clarify what I had in my mind for how we integrate the solver.  I imagine the sequence of steps would be to:

construct the dependency graph from provided artifacts/pom files (including transitive dependencies)
transform the dependency graph into a boolean satisfiability statement
input the statement into SAT4j to find an assignment or state that none exists
recover the specific packages from this assignment

The first step is similar to how we currently do it, with one major distinction. Currently, if we see the same artifact with multiple versions, i.e group:artifact:3.4 and group:artifact:3.5. we only download the first version's pom.
  @Override
  public ModelSource resolveModel(String groupId, String artifactId, String version)
      throws UnresolvableModelException {
    String ruleName = Rule.name(groupId, artifactId);
    // <---- COMMENT: notice how the version is not included in the key identifier
    if (ruleNameToModelSource.containsKey(ruleName)) {
      return ruleNameToModelSource.get(ruleName);
    }
    ...
  }

The approach I am proposing would download pom files for each version of an artifact we encounter. I agree this can definitely be overzealous with simpler projects.
That said, we could cache the pom files after the first build, since AFAIK the pom file for a given version of an artifact should not change.

How does that work with SAT4j, can you hook in "callbacks" for get more poms when needed?

From what I understand, SAT4j is a domain independent SAT solver. It operates on the satisfiability/constraint statement rather than our dependency graph.
If we lazily fetch pom files, we will be introducing new constraints to the SAT solver, and AFAIK SAT solvers operate on static statements. Thus, making lazy fetching a no go.
Both Maven and Eclipse use SAT4j to handle transitive dependencies, so I can investigate how they go about it.

AFAICT, most Maven packages use "anything above X" for version so I think you could start with just tracking what version packages are actually requesting (e.g., 1.2.3+ vs 1.2.3) and seeing if that's satisfiable without more info.

I see. A few comments on this front.
This would definitely reduce the size of our precomputed dependency graph. If we found a node for 1.2.5, we would not need to construct the 1.2.3's dependency subgraph. However, here are some concerns:

Our dependency graph would be highly variable, even more so than now. Our graph would depend on the order in which which we traverse the pom files as well as the dependencies within each pom file. For example, say our project has a dependency on X:2.3, b:1.2, and suppose X:2.3 depends on b:1.4. Depending on whether we traverse X:2.3 or b:1.2 first, the version of b varies between either 1.2 or 1.4.
More importantly, so long as we use a SAT solver, we would still have to precompute the entire graph before we identify satisfiability. This change would simply reduce the size of the graph.

One way to ensure consistency would be to use semantic versioning, e.g. "1.2.3" actually means [1.2.3, 2.0.0)? Maven packages are supposed to version based on MAJOR.MINOR.PATCH where only MAJOR changes are breaking. However, in practice, a nontrivial chunk of MINOR (1/3rd) and PATCH (1/4th) changes cause breaks. Ignoring this, if we aren't paranoid, and trust in semvar, then we could treat all packages versioned 1.x.x equivalently. We just fetch the newest package before version 2.0.0. Admittedly, this requires making a lot of assumptions of how things are packaged.

construct the dependency graph from provided artifacts/pom files (including transitive dependencies)
transform the dependency graph into a boolean satisfiability statement

The problem is I don't think you can make it to 2 without potentially downloading the universe.
Say we're depending on foo:bar:_any version_ and there are 43 versions available, all with different sets of dependencies at different versions.  We'd have to download them all and add them all to our equation before passing it to the SAT solver. That is a no-go, or at least a last resort.
AFAICT Maven just uses "nearest wins" for this (https://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html).  I don't know about Eclipse, if they're doing something smart, feel free to look into it.

That said, we could cache the pom files after the first build, since AFAIK the pom file for a given version of an artifact should not change.

This tool does not have a cache.

One way to ensure consistency would be to use semantic versioning, e.g. "1.2.3" actually means [1.2.3, 2.0.0)?

1.2.3 actually means 1.2.3+ in Maven (see http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html).  generate_workspace currently doesn't respect that, but it should.
We cannot enforce semantic versioning on packages.

The problem is I don't think you can make it to 2 without potentially downloading the universe.

I am in agreement on this front.

Say we're depending on foo:bar:_any version_ and there are 43 versions available, all with different sets of dependencies at different versions. We'd have to download them all and add them all to our equation before passing it to the SAT solver. That is a no-go, or at least a last resort.

Ah I see. Thanks for the concrete example. That would be a logical conclusion.
Returning to your suggestion of lazily determining version. One potential route that we could take is to leave foo:bar:_any version_ as to leave as unresolved. Then, if at any point we find a constrained version of foo:bar, e.g. goo:car --> foo:bar:3.0.1, we reduce the universe of possible foo:bar to 3.0.1+.

This tool does not have a cache.

Would it be a bad or wasteful move to include/develop?

1.2.3 actually means 1.2.3+ in Maven (see http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html). generate_workspace currently doesn't respect that, but it should.
We cannot enforce semantic versioning on packages.

Fair. I was trying to enforce things that I shouldn't.

Returning to your suggestion of lazily determining version. One potential route that we could take is to leave foo:bar:any version as to leave as unresolved. Then, if at any point we find a constrained version of foo:bar, e.g. goo:car --> foo:bar:3.0.1, we reduce the universe of possible foo:bar to 3.0.1+.

SGTM, feel free to start sending PRs :)

Conflicting info, but I'll lean towards trusting the official maven docs.

Interesting, maybe Maven was going to use it on the Maven Central servers or something.  That would make more sense to me.

This tool does not have a cache.
Would it be a bad or wasteful move to include/develop?

I'm not against it per se, it's just that there are a lot of features currently missing and I'd rather focus on those than get it working well with a cache.

This issue persists despite #45


Renaming tables not compatible with --dry-run

When using --dry-run, renaming tables causes Phinx to get confused with names and it's unable to generate the SQL commands. When just running the migrations, it works fine.
I've included example SQL to create a table, a simple migration, and the output when running phinx. I have cut repeated and unnecessary lines from the output, but the pertinent stuff is there.
CREATE TABLE `foo` (
  `old` int(11) unsigned NOT NULL AUTO_INCREMENT,
  PRIMARY KEY (`old`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

$foo = $this->table('foo');
$foo->rename('foo2');
$foo->renameColumn('old', 'new');
$foo->update();

trekkeruk: phinx migrate --dry-run
 ==<PHONE_NUMBER>3632 Test: migrating
START TRANSACTION;
ALTER TABLE `foo` CHANGE COLUMN `old` `new` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '';
RENAME TABLE `foo` TO `foo2`;
COMMIT;
INSERT INTO `phinxlog` (`version`, `migration_name`, `start_time`, `end_time`, `breakpoint`) VALUES ('20200303143632', 'Welfare', '2020-03-03 16:39:36', '
2020-03-03 16:39:36', 0);
 ==<PHONE_NUMBER>3632 Test: migrated 0.0186s

All Done. Took 0.0535s

trekkeruk: phinx migrate
 ==<PHONE_NUMBER>3632 Test: migrating
 ==<PHONE_NUMBER>3632 Test: migrated 0.0348s
All Done. Took 0.0630s

trekkeruk: phinx rollback --dry-run
 ==<PHONE_NUMBER>3632 Test: reverting
START TRANSACTION;
RENAME TABLE `foo2` TO `foo`;

In PdoAdapter.php line 212:
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'website.foo' doesn't exist

trekkeruk: phinx rollback
 ==<PHONE_NUMBER>3632 Test: reverting
 ==<PHONE_NUMBER>3632 Test: reverted 0.0379s

All Done. Took 0.0625s

PR welcome.


Feature Request: CubDB.number_of_writes/1

I would like to propose, on the same vein as CubDB.dirt_factor/1, I think it will be useful to have a public API with CubDB.number_of_writes/1, so we could manually trigger CubDB.compact/1 based these two factors.
Thank you.

Hi @eksperimental ,
Would that return the number of writes since the last compaction?
The dirt factor is calculated on the basis of the number of writes since the last compaction, and the number of entries in the database. It basically estimates how much data stored in the file is unreachable “garbage” relative to the size of the database. Automatic compaction is triggered when the dirt factor is over a given threshold, AND the number of writes since the last compaction is at least a given number.
If I understand, you would like to have a function that tells you the number of writes since the last compaction. That’s possible, but can I ask what’s the use case, and in particular why auto compaction won’t work in that case?

I have a cron job and I want to manually compact only when the cron job is executed, so I would be checking the number of writes since the last compaction AND the dirt factor, but based on what you say the dirt factor is already calculated, but the docs mentions borth value as a requirement to trigger the autocompact.

I can add such feature in the next release, possibly under a slightly different name (maybe CubDB.writes_since_compaction).

Sounds great. Looking forward to it.
Thank you @lucaong


Line 154

@EbbyEbby The stop changes data we have for Line 154 doesn't seem to make sense.  Can you have the service planners confirm?

@matikin9 Per Israel- Line 154 is an anomaly.  Due to the route dipping down to serve North Hollywood Station, it serves Lankershim/Collins twice in each direction even though it is on opposite sides of the street.
I think to make it less confusing for patrons, we can keep only one mention of this stop for eastbound, and one mention for westbound.

I agree with @EbbyEbby !

Task:

[ ] update the front end to remove duplicate stop name/direction combinations


How to pass custom parameters to Screen by routes?

Just saw this demo, want to know how to pass custom parameters to Screen View by routes(so we can change view with remote data)?

Hi @fukuball.
In our project we are using react-navigation. It has built-in support for passing parameters.

@malashkevich Cool~


Admin UI: use sessionstorage for API key

Currently the key is page-scoped and makes it hard to work with multiple articles at once.

Unfortunately, opening a new tab or window causes new session to be initiated:
https://developer.mozilla.org/en-US/docs/Web/API/Window.sessionStorage
This is partially solved by #81. Closing for now.


Patrol don't load my WebView

Steps to reproduce

Using Android Emulator API 30
Patrol_cli version is 2.2.0
patrol: ^2.3.2   patrol_finders: ^1.0.0   flutter_inappwebview: ^5.8.0 in pubspec.yaml

void main() {

  patrolTest('Login Test |',
      nativeAutomation: true,
      bindingType: BindingType.integrationTest,
      nativeAutomatorConfig: const NativeAutomatorConfig(
          packageName: 'com.project.name'), (tester) async {
    await app.main();

    await tester.pumpWidget(const AppWidget());
    await tester.pumpAndSettle();

    await Future.delayed(const Duration(seconds: 10));

   // Here i test and go to the webview page successfully

    await tester.pumpAndSettle();

    await Future.delayed(const Duration(seconds: 40));

    final webview = find.byType(InAppWebView);

    expect(webview, findsOneWidget);

    // webview not loaded, crashhh

    await tester.pumpAndSettle();
    await tester.native.enterTextByIndex('user', index: 0);

    await tester.pumpAndSettle();

    await tester.native.enterTextByIndex('password', index: 1);

    await tester.pumpAndSettle();

    await tester.native.tap(
      Selector(text: 'Login'),
    );
  });
}

Actual results
Patrol works fine, navigation to the WebView page, but when enter in the screen, webview no load, Future.delayed finish and crash. In Flutter test loads fine, in build app to.
Logs

Logs
</details>
EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ??????????????????
        : Tests on Pixel_4_API_30(AVD) - 11 failed: There was 1 failure(s).
        :
        : Test results saved as file:/C:/.../.../.../app/build/app/outputs/androidTest-results/connected/test-result.pb. Inspect these results in Android Studio by selecting Run > Import Tests From File from the menu bar and importing test-result.pb.
        :
        : > Task :app:connectedDebugAndroidTest FAILED

        FAILURE: Build failed with an exception.

        * What went wrong:
        Execution failed for task ':app:connectedDebugAndroidTest'.

        #0      AndroidTestBackend.execute.<anonymous closure> (package:patrol_cli/src/android/android_test_backend.dart:140:9)
<asynchronous suspension>
#1      DisposeScope.run (package:dispose_scope/src/dispose_scope.dart:46:7)
<asynchronous suspension>
#2      AndroidTestBackend.execute (package:patrol_cli/src/android/android_test_backend.dart:106:5)
<asynchronous suspension>
#3      TestCommand._execute (package:patrol_cli/src/commands/test.dart:277:7)
<asynchronous suspension>
#4      TestCommand.run (package:patrol_cli/src/commands/test.dart:169:23)
<asynchronous suspension>
#5      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#6      PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:321:18)
<asynchronous suspension>
#7      PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:265:18)
<asynchronous suspension>
#8      patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:77:20)
<asynchronous suspension>
#9      main (file:///C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/patrol_cli-2.2.0/bin/main.dart:6:20)
<asynchronous suspension>

Patrol version
patrol: ^2.3.2
Patrol Doctor output
patrol doctor
In next major release, patrolTest method will be intended for UI tests.
If you want to use Patrol in your widget tests, use patrol_finders package.
For more information, see https://patrol.leancode.co/patrol-finders-release
Disable this warning by setting the PATROL_FINDERS environment variable.
Patrol CLI version: 2.2.0
Program adb found in C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe
Env var $ANDROID_HOME set to C:\Users\user\AppData\Local\Android\Sdk
Flutter Doctor output
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.13.6, on Microsoft Windows [versÆo 10.0.22621.2715], locale pt-BR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.3)
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.84.2)
[√] Connected device (4 available)
[√] Network resources
• No issues found!

likely related #244


[stable/prisma] unable to load Prisma config

Describe the bug
When the Prisma pod starts up it is looking for a file at /app/config.yml, which does not exist, causing pod to go into a crash loop. /app/config.yml is hard coded for the PRISMA_CONFIG_PATH env var in the deployment.yaml. My assumption is that Prisma attempts to load config from PRISMA_CONFIG_PATH if the env var is set, which probably overrides the PRISMA_CONFIG that comes from the ConfigMap.
I have not been able to find any documentation on PRISMA_CONFIG_PATH other than this PR to update docs that seems to have been closed without merging:

Notice: you can use PRISMA_CONFIG_PATH environment variable to set the path to Prisma configuration file, that is valid yaml file with the same shape as PRISMA_CONFIG.
This can be helpfully when want to build your own Docker image.

Version of Helm and Kubernetes:
Helm: 2.13.0
Kubernetes: 1.11.7
Which chart:
stable/prisma
What happened:
Pod crash loops with the error:
Exception in thread "main" java.lang.RuntimeException: Unable to load Prisma config: java.io.FileNotFoundException: /app/config.yml (No such file or directory)
	at scala.sys.package$.error(package.scala:26)
	at com.prisma.config.ConfigLoader$.load(ConfigLoader.scala:40)
	at com.prisma.local.PrismaLocalDependencies.<init>(PrismaLocalDependencies.scala:48)
	at com.prisma.local.PrismaLocalMain$.delayedEndpoint$com$prisma$local$PrismaLocalMain$1(PrismaLocalMain.scala:13)
	at com.prisma.local.PrismaLocalMain$delayedInit$body.apply(PrismaLocalMain.scala:8)
	at scala.Function0.apply$mcV$sp(Function0.scala:34)
	at scala.Function0.apply$mcV$sp$(Function0.scala:34)
	at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
	at scala.App.$anonfun$main$1$adapted(App.scala:76)
	at scala.collection.immutable.List.foreach(List.scala:388)
	at scala.App.main(App.scala:76)
	at scala.App.main$(App.scala:74)
	at com.prisma.local.PrismaLocalMain$.main(PrismaLocalMain.scala:8)
	at com.prisma.local.PrismaLocalMain.main(PrismaLocalMain.scala)

What you expected to happen:
The pod to run without errors.
How to reproduce it (as minimally and precisely as possible):
Create a local values.yaml based off https://github.com/helm/charts/blob/fa35e13e395c8d0d748f64d949bef7b5a93e1a6e/stable/prisma/values.yaml that provides custom settings, such as:
image:
  repository: prismagraphql/prisma
  tag: 1.32

database:
  connector: mysql
  host: xxx
  port: 3306
  user: root
  password: xxx
  migrations: false

postgresql:
  enabled: false

helm install stable/prisma -f ./values.yaml -n prisma-demo

Anything else we need to know:
I've tried multiple versions of the prisma image with no luck.

@brandondoran I saw this also, if you stick to using tags with -heroku suffixed(as in default values.yaml file) I don't see this. Not sure why it is needed, @giacomoguiulfo or @kanolato Could you shed light on that?

I'm seeing this too! Very annoying

@giacomoguiulfo These Prisma issues likely should be addressed, possibly re-opened. I hit this issue and wasted a bunch of time on it.

@haysclark the Prisma chart only works with images with the -heroku suffix. This is because of the bundled envsubst script that makes proper secret handling possible.

I have a single replia set mongodb running locally. it's fine with no replica set but when I use it with replica it throws error


editorconfig not honored

I have created essentially the most basic .editorconfig file one can create, and saved it in the root of my project, but Visual Studio doesn't honor it. It does briefly say in the status bar that "user preferences overridden by .editorconfig" but the styles aren't applied.
root = true

# All files
[*]
indent_style = space
indent_size = 4
insert_final_newline = false

When I do Add > Class..., it creates a default class with the newline still there.
I don't care about the specific rule; I'm just trying to figure out how to apply any rule. I'm sure I am missing something obvious, so I'd appreciate grace in answering this question... thanks.
VS 2019 Professional 16.2.0

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

ID: 72f45eb4-3596-866a-2c16-ee225737d956
Version Independent ID: cea055e7-fe9b-95c7-6d25-086f182c01d2
Content: EditorConfig settings - Visual Studio
Content Source: docs/ide/create-portable-custom-editor-options.md
Product: visual-studio-windows
Technology: vs-ide-general
GitHub Login: @gewarren
Microsoft Alias: gewarren

@k3davis Have you tried to format the document? Edit > Advanced > Format Document or Ctrl+K, Ctrl+D. When you add a new class file, it's coming from a template so it may not format according to your preferences until you do it explicitly.

@gewarren Yes, I should have specified that. Ctrl+K+D doesn't apply any changes to match the .editorconfig file either.

On further investigation I've discovered that it is only the specific rule that isn't being honored:
insert_final_newline = false
When I add other, more complex rules, it is working as expected.

@k3davis Thanks for the update. To make sure that this problem is logged in the right place, please use the Report a Problem tool. When you do this, your report becomes part of the work items that are tracked on Visual Studio Developer Community. There, you can engage directly with the engineering team while they address and fix the problem.


Add AVPF to allowed protocols

libwebrtc uses this protocol. Can be found in rfc4585

Codecov Report

Merging #26 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master      #26   +/-   ##
=======================================
  Coverage   64.83%   64.83%
=======================================
  Files          11       11
  Lines        1038     1038
=======================================
  Hits          673      673
  Misses        276      276
  Partials       89       89

Impacted Files
Coverage Δ

unmarshal.go
61.27% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1797753...93c7ddf. Read the comment docs.


ModuleNotFoundError: No module named 'det3d' when running create_data.py

I'm following the instructions in GETTING_STARTED.md.
When running from Det3D directory:
python tools/create_data.py kitti_data_prep --root_path=KITTI_DATASET_ROOT

I'm getting the following error:
Traceback (most recent call last):
  File "tools/create_data.py", line 10, in <module>
    from det3d.datasets.kitti import kitti_common as kitti_ds
ModuleNotFoundError: No module named 'det3d'

Does anyone else have found the same issue?

that seems just a python path problem. if other things don't work, probably just try to add the path directly using sys library?

Also, make sure that the build step (setup.py) was done successfully.


label-studio requirement incorrect, also getting old

The README example does not work as is -- label-studio==1.0.0 does not provide the command label-studio-ml, and does not expose LabelStudioMLBase.
It works OK with label-studio==0.7, but that's not what's specified in requirements.txt.
(NB that it also doesn't work with the current head of label-studios-ml-backend).

Hi, @RevelaAutumn ! Thanks reporting this. Can you please drop here an issue log of what's happening after connecting to label-studio-ml-backend ? (Indeed, the ML backend has been moved to a separate repo, but API hasn't changed)

Hi @niklub , I never even get there, the issue log would be
 ~  label-studio-ml                                                                                 ✔  pyenv: label-studio-ml: command not found

Really I'm just saying that the requirements.txt shouldn't permit label-studio v1.0 until the transformers project has been tested with it!

Hi, @RevelaAutumn
Label Studio 1.0. compatibility issues have been fixed in the latest master, please try it out and reopen the issue In case you get any problem


Move DIDComm out of core to separate @credo-ts/didcomm module

Also extract all the config specifc to DIDComm from the default config. It's a bit weird now that DIDComm endpoint is configured trhough global endpoints config, but for OpenID you have to configure it on the module.
May also be nice to have some default options. So that you can just start the agent and /didcomm is used for didcomm, /oid4vci is used for openid issuance, etc..

Shoudl probably also make registerInboundTransport and registerOutboundTransport config options in the DIDComm module


phpbrew doesn't revert to system php version on apache2

I installed php 5.4.42 with apxs2, switched and restarted apache. Checked cli and phpinfo() and all was fine.
When I did phpbrew switch-off and restarted apache2, it only switched for cli. To change the php version in apache2 I had to manually change /etc/apache2/mods-available/php5.load. Now if I do phpbrew switch php-5.4.42 it only switches cli and no longer apache2.

This is not supported. you have to change the config file manually.

@c9s Still not supported? What files should I change?


listen to blockchain events to update our projections and migrate database to new model

:recycle: move github into infrastructure
:sparkles: add GithubIssue object and GithubIssueRepository in domain and implementation
:recycle: rename github::API into github::Client for consistency
✨ implement ContributionService::create to fetch data from GithubIssueRepository
:recycle: add issue_number in ContributionCreated event and use correct types
✨ create contribution observer
🙈 ignore _docker folder
♻ create ContributionWithGIthubData projection and refactor logic inside
♻ refactor whole codebase to match new DB model
✨ ♻ create on_asign observer
✨ create Confirmed observer to process events after a given confirmation block count
:art: run cargo format
♻ bring projection into scope
:sparkles: plug observers in marketplace-indexer
:art: ignore schema.rs in cargo fmt
:bug: fix unmanaged github client in rocket
:recycle: remove ProjectId to use GithubProjectId and add issue_number in contributions table
:recycle: fix rebase issues
:recycle: make usecases async and remove block_on
:recycle: remove debug print

Codecov Report

Merging #168 (598c961) into main (9e36c6e) will increase coverage by 2.34%.
The diff coverage is 73.34%.

@@            Coverage Diff             @@
##             main     #168      +/-   ##
==========================================
+ Coverage   61.24%   63.58%   +2.34%
==========================================
  Files         105      114       +9
  Lines        3073     3279     +206
==========================================
+ Hits         1882     2085     +203
- Misses       1191     1194       +3

Impacted Files
Coverage Δ

marketplace-core/src/bin/e2e/contribution/add.rs
0.00% <0.00%> (ø)

...arketplace-core/src/bin/e2e/contribution/assign.rs
0.00% <0.00%> (ø)

...ketplace-core/src/bin/e2e/contribution/validate.rs
0.00% <0.00%> (ø)

marketplace-core/src/bin/e2e/main.rs
0.00% <0.00%> (ø)

marketplace-core/src/bin/e2e/projects/add.rs
0.00% <0.00%> (ø)

marketplace-core/src/bin/e2e/utils/mod.rs
0.00% <0.00%> (ø)

marketplace-core/src/dto/contributions.rs
0.00% <0.00%> (ø)

marketplace-core/src/dto/project.rs
0.00% <ø> (ø)

marketplace-core/src/main.rs
0.00% <0.00%> (ø)

...etplace-core/src/routes/applications/accept/mod.rs
87.50% <ø> (+1.78%)
:arrow_up:

... and 61 more

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


Duplicate serial key introduced in 988be69

Commit 988be699588bf975fb62255d8deef2c0a7e37d95 in https://github.com/corelight/ecs-logstash-mappings contains a bug that causes Logstash to fail instantly.
It repeats the serial key twice in 3111-corelight-ecs-known_certs-filter.conf.
https://github.com/corelight/ecs-logstash-mappings/blob/988be699588bf975fb62255d8deef2c0a7e37d95/pipeline/3111-corelight-ecs-known_certs-filter.conf#L24
Filed as Corelight Support ticket 6294.

When you address an issue it is good to reference the issue in that commit and or otherwise note that it has been addressed at all.

thank you for the reminder.
closed via #27


The add-storage-account-v01.sh shell script has mixed CRLF and LF issue

The following snippet of that shell script is terminated by CRLF instead of LF.
for cert in sudo ls /var/lib/waagent/*.crt
do
SUBJECT=sudo openssl x509 -in $cert -noout -subject
if [[ $SUBJECT == "cluster-$CLUSTERNAME-" ]]; then
CERT=$cert
break
fi
done
The other part of the document is terminated by LF.

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

ID: 5be42fb6-e850-0990-de22-409392cb9e87
Version Independent ID: 5339ee18-6c77-1be3-e5ca-5cfd074a834d
Content: Add additional Azure storage accounts to HDInsight
Content Source: articles/hdinsight/hdinsight-hadoop-add-storage.md
Service: hdinsight
GitHub Login: @hrasheed-msft
Microsoft Alias: hrasheed

@xiopeter3345 I have contacted the product team to get the issue resolved, but still have not heard a response. I will update you when the problem is fixed.

@xiopeter3345 Happy to report that we have gotten the script updated. Please let us know if you have any further issues.

#please-close

@xiopeter3345 We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


#1432 - map Deposit/Withdrawal status for bitfinex, okcoin, kraken an…

…d btcchina. fix/adjust unit tests for this.

@mmazi I'll leave this one for you to merge...

thanks for spotting that. code committed now.
On Mon, Apr 24, 2017 at 6:12 PM, Matija Mazi<EMAIL_ADDRESS>wrote:

@mmazi requested changes on this pull request.
Looking good. Two small fixes remain, then I'll merge it.
In xchange-core/src/main/java/org/knowm/xchange/dto/account/
FundingRecord.java
https://github.com/timmolter/XChange/pull/1446#discussion_r112908411:

@@ -242,32 +242,48 @@ public static Type fromString(String ledgerTypeString) {
/** The user has requested the withdrawal or deposit, or the exchange has detected an initiated deposit,
* but the exchange still has to fully process the funding.
* The funds are not available to the user. The funding request may possibly still be cancelled though. */

PROCESSING,

PROCESSING("WAIT CONFIFMATION","EMAIL CONFIRMATION","VERIFYING","PENDING_APPROVAL","PENDING"),

"CONFIFMATION", are you sure? It's "Wait Confirmation" in
OkCoinRecords.java.
In xchange-core/src/main/java/org/knowm/xchange/dto/account/
FundingRecord.java
https://github.com/timmolter/XChange/pull/1446#discussion_r112908890:

 ;

public static Status parse(String str) {

 if (str == null) {

   return null;

private String[] statusArray;

private static final Map<String, Status> fromString = new HashMap<String, Status>();

static {

 for (final Status status : values()){

   fromString.put(status.toString(), status);

Move this line after the loop below to make code more resilient to
future errors (the correct enum value string should overwrite any others).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/timmolter/XChange/pull/1446#pullrequestreview-34256156,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AWJ9ruZq3JQH2rOHo0Hoo1btgJmkarnTks5rzHWMgaJpZM4NFo_R
.


Additional settings and log improvements

Device:

Device widget settings to adjust or disable factory reset on WiFi network connection/configuration error.

Logs:

Options to disable sequence begin, end, and step log creation.
Show log verbosity level in logs.
Improve log table formatting for long log messages.

App:

Add Logs page to navigation bar.
Restrict length of displayed username.

Coverage increased (+1.3%) to 80.277% when pulling 7c05c77b7d4d33542a34094b575af821ea58eeaf on gabrielburnworth:master into 276aba4e98dace592215254f6f33995f596849e1 on FarmBot:staging.


Number widget is typed as string

Hey, first of all, this is a very nice library!
If I define a field with widget: "number", the generated type for this field is a string. Is there a reasoning behind this or could this be changed to number?

Hello, thanks for checking out this library!
To save a number widget as a number, make sure you have defined the value_type option as either int or float, otherwise is saves the value as a string.
From Netlify CMS documentation:

value_type: accepts int or float; any other value results in saving as a string

@jsaari97 Ah, I see. Thanks for the answer :)


:bug: Prefer Task field kind over addon

Resolves: #1970

When creating a new Taskgroup, specify kind instead of addon

Process Tasks where kind may be missing and addon is given instead (i.e. tasks created before this change)

Make Task.id and Taskgroup.id required, New<> as needed

Replaces #1959


Focused active preloader sass to direct child

Proposed changes

This fixes a bug where spinners inside a collapsible will always stay on, because the parent list item will have the class "active".
Screenshots (if appropriate) or codepen:

Types of changes

[x] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to change).

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

This has been sitting here for several months. This is a very minor change. Can someone please look at it?

This has been sitting here for several months. This is a very minor change. Can someone please look at it?

this repo... idk...
but if you want, you can contribute to the forked one instead https://github.com/materializecss/materialize 😉
also, consider adding an example/a codepen/the screenshots, it will help maintainers see what's the problem are.

This has been sitting here for several months. This is a very minor change. Can someone please look at it?

this repo... idk...
but if you want, you can contribute to the forked one instead https://github.com/materializecss/materialize
also, consider adding an example/a codepen/the screenshots, it will help maintainers see what's the problem are.

I'll take a look. Thanks for turning me onto it.

Finally closing this. Nothing was ever done with it.


Support for binding to an IP address?

Could you add support for binding to an IP address? On a VPS you can't access localhost.

Nice!