Unable to create a new site

I was following the guidelines from here: http://cody-cms.org/en/install
Each time am trying to use create_site.js I am getting this error in the last step:
Creating project in  /Users/newscred/projects/personal/portfolio-ideations/portfolio-cody/

1) Enter projectname: pfoliocms
Note: also using pfoliocms as database name.
Note: by default the mysql root user has no password so you can just hit enter, if you forgot the root password http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

2) Enter root password for mysql so we can create a new database and user:

3) Enter site database user: admin

4) Enter site database password: mypassword

5) Enter hostname for site: pfoliocms.local

6) Enter a location for storing documents: ../../../../codydata

/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Parser.js:77
        throw err; // Rethrow non-MySQL errors
        ^

Error: ENOENT: no such file or directory, scandir '/Users/newscred/projects/personal/portfolio-ideations/portfolio-cody/node_modules/cody/doc/empty'
    at Error (native)
    at Object.fs.readdirSync (fs.js:808:18)
    at Query._callback (/Users/newscred/node_modules/cody/bin/create_site.js:123:24)
    at Query.Sequence.end (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
    at Query._handleFinalResultPacket (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/sequences/Query.js:144:8)
    at Query.OkPacket (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/sequences/Query.js:78:10)
    at Protocol._parsePacket (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Protocol.js:280:23)
    at Parser.write (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Parser.js:73:12)
    at Protocol.write (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Protocol.js:39:16)
    at Socket.<anonymous> (/Users/newscred/node_modules/cody/node_modules/mysql/lib/Connection.js:96:28)

Any idea?

Hello,
I have no access to the install script here, but could it be the "-" in the directory name which is not correctly escaped in the install script?
Could you try it with a directory path without the "-" in it. That would prove my guess and we could try to fix it.
Many thanks,
Johan Coppieters, Brugge.
Sent from my iPad.

On 05 Mar 2016, at 18:24, Md. Abdul Munim Dibosh<EMAIL_ADDRESS>wrote:
I was following the guidelines from here: http://cody-cms.org/en/install
Each time am trying to use create_site.js I am getting this error in the last step:
Creating project in  /Users/newscred/projects/personal/portfolio-ideations/portfolio-cody/

Enter projectname: pfoliocms
Note: also using pfoliocms as database name.
Note: by default the mysql root user has no password so you can just hit enter, if you forgot the root password http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

Enter root password for mysql so we can create a new database and user:

Enter site database user: admin

Enter site database password: sadmak194

Enter hostname for site: pfoliocms.local

Enter a location for storing documents: ../../../../codydata

/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Parser.js:77
throw err; // Rethrow non-MySQL errors
^
Error: ENOENT: no such file or directory, scandir '/Users/newscred/projects/personal/portfolio-ideations/portfolio-cody/node_modules/cody/doc/empty'
at Error (native)
at Object.fs.readdirSync (fs.js:808:18)
at Query._callback (/Users/newscred/node_modules/cody/bin/create_site.js:123:24)
at Query.Sequence.end (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/sequences/Sequence.js:96:24)
at Query._handleFinalResultPacket (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/sequences/Query.js:144:8)
at Query.OkPacket (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/sequences/Query.js:78:10)
at Protocol._parsePacket (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Protocol.js:280:23)
at Parser.write (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Parser.js:73:12)
at Protocol.write (/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket. (/Users/newscred/node_modules/cody/node_modules/mysql/lib/Connection.js:96:28)
Any idea?
—
Reply to this email directly or view it on GitHub.

Okay @jcoppieters I will try it now and let you know :+1:

No luck :-1:  Same error:
6) Enter a location for storing documents: ~/codydata

/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Parser.js:77
        throw err; // Rethrow non-MySQL errors
        ^

Error: ENOENT: no such file or directory, scandir '/Users/newscred/projects/personal/personalportfolio/pfoliocodycms/node_modules/cody/doc/empty'

And does the directory Users/newscred/projects/personal/personalportfolio/pfoliocodycms/node_modules/cody/doc/empty exist?
It is part of the normal npm install.
Johan Coppieters.
(Sent from my iPhone,
hence  the short answers)

On 05 Mar 2016, at 19:00, Md. Abdul Munim Dibosh<EMAIL_ADDRESS>wrote:
No luck  Same error:

Enter a location for storing documents: ~/codydata

/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Parser.js:77
throw err; // Rethrow non-MySQL errors
^
Error: ENOENT: no such file or directory, scandir '/Users/newscred/projects/personal/personalportfolio/pfoliocodycms/node_modules/cody/doc/empty'
—
Reply to this email directly or view it on GitHub.

I had a look at the code:
The error originated from the line below in the create site script:
fs.readdirSync(codywd+"/doc/empty").forEach(....
So it seems to my the directory (/Users/newscred/projects/personal/personalportfolio/pfoliocodycms/node_modules/cody/doc/empty) is not there (npm install cody should have created it),
or it is not accesible by the current user??
Did you install it with a different user or with the -g option?
Johan Coppieters, Brugge.
Sent from my iPad.

On 05 Mar 2016, at 19:00, Md. Abdul Munim Dibosh<EMAIL_ADDRESS>wrote:
No luck  Same error:

Enter a location for storing documents: ~/codydata

/Users/newscred/node_modules/cody/node_modules/mysql/lib/protocol/Parser.js:77
throw err; // Rethrow non-MySQL errors
^
Error: ENOENT: no such file or directory, scandir '/Users/newscred/projects/personal/personalportfolio/pfoliocodycms/node_modules/cody/doc/empty'
—
Reply to this email directly or view it on GitHub.

Thanks @jcoppieters
I installed it using -g option. When I tried using the npm install without the -g flag it didn't get installed in my current dir.

OK, that's it!
As we serve some files from the cody directory, it can't be installed outside your working directory.
please try the  "npm install cody" from within your directory and let us know if this worked.
Johan.

On 06 Mar 2016, at 19:48, Md. Abdul Munim Dibosh<EMAIL_ADDRESS>wrote:
Thanks @jcoppieters https://github.com/jcoppieters
I installed it using -g option. When I tried using the npm install without the -g flag it didn't get installed in my current dir.
—
Reply to this email directly or view it on GitHub https://github.com/jcoppieters/cody/issues/41#issuecomment-192960512.

I will shortly and let you know.
On Mon, Mar 7, 2016 at 2:45 PM, Johan Coppieters<EMAIL_ADDRESS>wrote:

OK, that's it!
As we serve some files from the cody directory, it can't be installed
outside your working directory.
please try the "npm install cody" from within your directory and let us
know if this worked.
Johan.

On 06 Mar 2016, at 19:48, Md. Abdul Munim Dibosh <
<EMAIL_ADDRESS>wrote:
Thanks @jcoppieters https://github.com/jcoppieters
I installed it using -g option. When I tried using the npm install
without the -g flag it didn't get installed in my current dir.
—
Reply to this email directly or view it on GitHub <
https://github.com/jcoppieters/cody/issues/41#issuecomment-192960512>.

—
Reply to this email directly or view it on GitHub
https://github.com/jcoppieters/cody/issues/41#issuecomment-193160146.

--
Md. Abdul Munim Dibosh
Associate Product Designer
NewsCred
http://t.sidekickopen42.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XYg2zhHjzW4X9HtM63RPb2W64k8w-56dzZqf5s-kgM02?t=http%3A%2F%2Fwww.newscred.com%2F&si=6285916075458560&pi=14e80741-0693-4e18-c3d9-e7bf9406b21a
(M) +8801946923667
Twitter
http://t.sidekickopen42.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XYg2zhHjzW4X9HtM63RPb2W64k8w-56dzZqf5s-kgM02?t=http%3A%2F%2Fwww.twitter.com%2Fnewscred&si=6285916075458560&pi=14e80741-0693-4e18-c3d9-e7bf9406b21a
| Blog
http://t.sidekickopen42.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XYg2zhHjzW4X9HtM63RPb2W64k8w-56dzZqf5s-kgM02?t=http%3A%2F%2Fblog.newscred.com%2F&si=6285916075458560&pi=14e80741-0693-4e18-c3d9-e7bf9406b21a
| Facebook http://www.facebook.com/newscred

Hello,
I might have a different issue, when I install the package and then run the command  node ./node_modules/cody/bin/create_site.js
$ node ./node_modules/cody/bin/create_site.js
Creating project in  /Users/gaurrus/Sites/cody/

Enter projectname: mySite
Note: also using mySite as database name.
Note: by default the mysql root user has no password so you can just hit enter, if you forgot the root password http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

Enter root password for mysql so we can create a new database and user: 1234567

Enter site database user: mySite

Enter site database password: 1234567

Enter hostname for site: localhost

Enter a location for storing documents: /Users/gaurrus/Sites/cody/

mkdir /Users/gaurrus/Sites/cody/mySite/controllers
mkdir /Users/gaurrus/Sites/cody/mySite/locales
mkdir /Users/gaurrus/Sites/cody/mySite/static
mkdir /Users/gaurrus/Sites/cody/mySite/static/css
mkdir /Users/gaurrus/Sites/cody/mySite/static/images
mkdir /Users/gaurrus/Sites/cody/mySite/static/js
mkdir /Users/gaurrus/Sites/cody/mySite/views
/Users/gaurrus/Sites/cody/node_modules/cody/node_modules/mysql/lib/protocol/Parser.js:77
throw err; // Rethrow non-MySQL errors
^
Error: ER_INVALID_DEFAULT: Invalid default value for 'created'
at Query.Sequence._packetToError (/Users/gaurrus/Sites/cody/node_modules/cody/node_modules/mysql/lib/protocol/sequences/Sequence.js:48:14)
at Query.ErrorPacket (/Users/gaurrus/Sites/cody/node_modules/cody/node_modules/mysql/lib/protocol/sequences/Query.js:83:18)
at Protocol._parsePacket (/Users/gaurrus/Sites/cody/node_modules/cody/node_modules/mysql/lib/protocol/Protocol.js:280:23)
at Parser.write (/Users/gaurrus/Sites/cody/node_modules/cody/node_modules/mysql/lib/protocol/Parser.js:73:12)
at Protocol.write (/Users/gaurrus/Sites/cody/node_modules/cody/node_modules/mysql/lib/protocol/Protocol.js:39:16)
at Socket. (/Users/gaurrus/Sites/cody/node_modules/cody/node_modules/mysql/lib/Connection.js:96:28)
at Socket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at TCP.onread (net.js:538:20)
--------------------
at Protocol._enqueue (/Users/gaurrus/Sites/cody/node_modules/cody/node_modules/mysql/lib/protocol/Protocol.js:141:48)
at Connection.query (/Users/gaurrus/Sites/cody/node_modules/cody/node_modules/mysql/lib/Connection.js:201:25)
at /Users/gaurrus/Sites/cody/node_modules/cody/bin/create_site.js:130:27
at fs.js:334:14
at FSReqWrap.oncomplete (fs.js:95:15)
.
what can be wrong? thanks a lot!

The error come from a line where we create a table with default datetime = "0000-00-00 00:00:00".
This is by default allowed (at least till mysql 5.7.x), so either you have a newer version or your installations disallowed the use of the 0000-00-00 date. see also the link below / doc of mysql.
http://stackoverflow.com/questions/25349126/how-can-i-set-the-default-value-of-a-field-as-0000-00-00-000000

@repoissp Thanks for letting us know.
We added this in empty.sql cdcacb3a4ae723df9cbe52fc16bdd634529420ad such that the population is executed in strict mode.


error on import in develop branch

After installing the package from develop branch, I am getting the following error on import.

`---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
 in
----> 1 import velodyne_decoder as vd
/opt/conda/lib/python3.8/site-packages/velodyne_decoder/init.py in
2 from collections import namedtuple
3
----> 4 from velodyne_decoder.velodyne_decoder_pylib import *
5 from velodyne_decoder.velodyne_decoder_pylib import version as _pylib_version
6
ModuleNotFoundError: No module named 'velodyne_decoder.velodyne_decoder_pylib'`

Sorry about that. The develop branch is under active development and I accidentally introduced a regression when migrating the packaging setup to scikit-build and conan. It's fixed now.

Thanks a lot


HFSPlus support

I see that hfsplus is available as an fs module, but after installing hfsplus, hfsutils and hfsprogs, I still get unknown filesystem type 'hfsplus'. Do I need to compile the kernel with enabled hfsplus?

How did you fix this?


Zoom pre-set and flow import

Hi,
I tried to preset the zoom level at draflow initialization using something like
editor.zoom = 0.8;

because when loading flows I'd like to make them a little smaller than the default zoom level.
What happens is that the setting seem ignored and the first connections redraw looks like it is the only part reduced. If I move on the canvas, then the zoom set comes in to effect, but the connections are still not correct:

Moreover, when switching modules it seems that the zoom setting is ignored altogether or reset to 1.
Is it possible to have a persistent, per session, zoom level applied to all the modules?
Thank,
Massimo

Hi @mcesaro
On load
 editor.start();
    editor.zoom = 0.8;
    editor.zoom_refresh();
    editor.import(dataToImport);

Onchange module:
editor.changeModule('Home');
editor.zoom = 0.8;
editor.zoom_refresh();

Jero

Hi Jero,
your suggestion works great!
Thanks


Next unanswered section

The current implementation of next unanswered task needs to be reworked and tested with a larger fixture. It needs to take the user to the next unfinished section, and also return the user to a previous section if they have reached the end.

Can this PR use the revised template please


incorrect code for nbTextWithCode with multiline string on same line as command

Compiling and running this file:
import nimib
nbInit
nbTextWithCode: """problem
solution"""
echo "nb.blk.code: ", nb.blk.code

last line of output is (when using CodeAsInSource now default):
nb.blk.code: """problem

while it should be (as it is when using -d:nimibCodeFromAst)
nb.blk.code: """problem
solution"""

fix to be done in code in src/nimib/sources.nim

In addition to this I think this also breaks:
nbCode: someTemplate:
  code block

Here's a preliminary plan for how to determine the form of the code:

startLine == endLine and lines[startLine].isCommandLine, it is either a single line expression or it contains a multiline-string

lines[startLine].count("\"\"\"") mod 2 == 0, it is a single line expression as the number of opening and closing strings match.
else, it ends with a multiline string

elif startLine == endLine, it starts on a new line and could contain either a single line expression or a multiline string. same checks as above.
else, it is a multiline expression which might or might not end with a multiline string

All branches share a lot of code so I'll try and come up with a way of splitting the logic into reusable functions more.


Theres something wrong with Youtube

No youtube videos or shorts are playing, it keeps saying "There was a problem with the server [400]". I dont know what happened but please fix it.

This is not a youtube patches repository.


What is image input size?

Is it right that model image input size is [None, 1024, 1024, 3] or it's just during training? i.e. at prediction it can be [None,None,None,3]?
https://github.com/TropComplique/FaceBoxes-tensorflow/blob/1da7d8dd3dc816eeaf36082c9679a4be2fb70b11/train.py#L21
https://github.com/TropComplique/FaceBoxes-tensorflow/blob/9c4f6cb3a736620f64e3da91c0911586ccf354de/src/input_pipeline/pipeline.py#L28
https://github.com/TropComplique/FaceBoxes-tensorflow/blob/1da7d8dd3dc816eeaf36082c9679a4be2fb70b11/config.json#L20

Yes, it can be arbitary:
https://github.com/TropComplique/FaceBoxes-tensorflow/blob/545ec4f4f3c55c3592ee189ed56a11a3fd017194/src/detector.py#L23
In paper they use VGA (640 x 480) image size at test time and 1024 x 1024 at train time.


Deprecation warning "section.id is deprecated and replaced by section.uid"

I downloaded and ran the pyats sample scripts from Cisco's DevNet GitHub repo and noticed that there was a deprecation warning.
DeprecationWarning: Starting v3.0.0, section.id is deprecated and replaced by section.uid. Please modify your scripts. This will be removed next release
  aetest.main()"

It seems that even with the most simple of test scripts (see below), you still get this deprecation warning.
from ats import aetest

class TestPyats(aetest.Testcase):
    @aetest.test
    def test(self):
        pass

if __name__ == '__main__':
    aetest.main()

$ python --version
Python 3.4.7
$ python test.py
2017-12-14T14:53:03: %AETEST-INFO: Starting testcase TestPyats
test.py:9: DeprecationWarning: Starting v3.0.0, section.id is deprecated and replaced by section.uid. Please modify your scripts. This will be removed next release
  aetest.main()
2017-12-14T14:53:03: %AETEST-INFO: Starting section test
2017-12-14T14:53:03: %AETEST-INFO: The result of section test is => PASSED
2017-12-14T14:53:03: %AETEST-INFO: The result of testcase TestPyats is => PASSED
2017-12-14T14:53:03: %AETEST-INFO: +------------------------------------------------------------------------------+
2017-12-14T14:53:03: %AETEST-INFO: |                               Detailed Results                               |
2017-12-14T14:53:03: %AETEST-INFO: +------------------------------------------------------------------------------+
2017-12-14T14:53:03: %AETEST-INFO:  SECTIONS/TESTCASES                                                      RESULT
2017-12-14T14:53:03: %AETEST-INFO: --------------------------------------------------------------------------------
2017-12-14T14:53:03: %AETEST-INFO: .
2017-12-14T14:53:03: %AETEST-INFO: `-- TestPyats                                                            PASSED
2017-12-14T14:53:03: %AETEST-INFO:     `-- test                                                             PASSED
2017-12-14T14:53:03: %AETEST-INFO: +------------------------------------------------------------------------------+
2017-12-14T14:53:03: %AETEST-INFO: |                                   Summary                                    |
2017-12-14T14:53:03: %AETEST-INFO: +------------------------------------------------------------------------------+
2017-12-14T14:53:03: %AETEST-INFO:  Number of ABORTED                                                            0
2017-12-14T14:53:03: %AETEST-INFO:  Number of BLOCKED                                                            0
2017-12-14T14:53:03: %AETEST-INFO:  Number of ERRORED                                                            0
2017-12-14T14:53:03: %AETEST-INFO:  Number of FAILED                                                             0
2017-12-14T14:53:03: %AETEST-INFO:  Number of PASSED                                                             1
2017-12-14T14:53:03: %AETEST-INFO:  Number of PASSX                                                              0
2017-12-14T14:53:03: %AETEST-INFO:  Number of SKIPPED                                                            0
2017-12-14T14:53:03: %AETEST-INFO: --------------------------------------------------------------------------------

fixed in v4.1.0


Add Wasm Specification tests (v1.0).

This PR will add all the test suites to verify that the VM complies with the semantics specified by Wasm specification 1.0, and do some refactoring after my hiatus from this project.
v1.1 will come later:D.

The purpose of this also include building the base line of performance and allow me to do tons of optimizations I can think of.


v5.0.0

What does this PR do?

chore(project): update required Node version and project dependencies
refactor(project): use husky
Set v5.0.0

How should it be tested manually?
yarn test
# or
npm test

Pull Request Test Coverage Report for Build 73

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 61:
0.0%

Covered Lines:
52

Relevant Lines:
52

💛  - Coveralls


DR2-1709 Add child count to case classes

DR2-1709 Add childCount to Dynamo case classes
This allows us to read the childCount out of Dynamo. The ticket says that this should be on all rows so I've made it mandatory.

Good point about the invalidNumericField and invalidNumericValue tests. I've added them in.


SCAD Containers Cost Allocation Dashboard : Linked Account Name and Linked Account ID do not operate.

When selecting the Linked Account Name, the Linked Account ID should either be auto-selected, or only one of these options should be displayed.

@udid-aws can you check for the next version of SCAD dashboard?

Will be fixed in the next version, so that the Linked Account ID options will be auto-selected when selecting options from the Linked Account Name, and vice-versa. Please follow the changelog for updates


Revamp Landing Page

Revamping the home page
Two sections
section1 New background images of pets could be from free stock photo
Title and Adopt a buddy today could placed where you think looks best
section 2
would have the featured pet cards
implement a transition fade in
button to get another featured pets cards with another transition

Hello, Can I work on this issue?

Hey, Can I work on this issue?

@Devenkapoor7303 is it alright if you pair up with @K-ash-ish ?

Yeah np

Thank you We are on it.

@redxzeta in section 1 are you talking about the background image for the landing page or are you talking about the background images for the cards?

background image for landing page

Okay


Restore Ordering for DependsOnGroups by using separate Priority on Configuration Methods alternative 2

Add support for Priority in Configuration Methods and restore DependsOnGroups alternativ 2
Fixes # .
Did you remember to?

[ ] Add test case(s)
[ ] Update CHANGES.txt

We encourage pull requests that:

Add new features to TestNG (or)
Fix bugs in TestNG

If your pull request involves fixing SonarQube issues then we would suggest that you please discuss this with the
TestNG-dev before you spend time working on it.

The only you need to focus on when review this PR is the ClassHierarchyPriority which replace the dependsOnUpon

I personally prefer this alternative 2 over alternative 1 which reused the regular priority which could possibly cause issues or strange sorting for someone using the regular priority.
this alternative 2 make it very clear how it sorting

@Elisedlund-ericsson  thanks Elis, If more agree with that I will try to separate the Restore of Group sorting into a different PullRequest to separate it from the priority implementation.

@juherr  classHierarchyPriority  is only set in MethodInheritance
regular priority is configured by the user in the annotation.
                    m2.addMethodDependedUpon(MethodHelper.calculateMethodCanonicalName(m1));
                    if (m1.getClassHierarchyPriority() >= m2.getClassHierarchyPriority()) {
                      m2.setClassHierarchyPriority(m2.getClassHierarchyPriority() + 1);
                    }

Both of them are later used in the comparators to sort the methods in correct order.

@martinaldrin Ok, I see 2 different subjects, right? Is it possible to make 2 different PR?

btw, I like the classHierarchyPriority idea 👍
Do you see a way to exclude it from the public API? Same remark for InterceptedPriority.

@juherr, yes
great that you liked classHierarchyPriority!
I have following PRs that I plan to work more with:
[GITHUB-2664] Restore DependsOnGroups Behaviour. #2666
Add support for Priority in Configuration Methods #2662
#2667 and #2668 was just to show the proof of concept that it was possible to solve.  So I will cancel these two and continue with the other two.

I close this PR since it was just a Proof of Concept, will continue in #2666


Possible on streaming data?

Hi,
first of all thanks for sharing such a nice tool.
I'd like to ask know like is that possible to use this get accurate date from twitter streaming api using nodejs.
the app am creating let the people to get trusted data about politics. currently am getting some few datas with accuracy from retweets only but i would like to get more accurate data from raw streaming tweets.
am streaming datas based on tracking some keywords
for example if i said "track : donald trump " this will give realtime tweets about trump. but the problem is its also returns some unwanted funny quotes, mime etc. i just want to have exact tweets for the purpose.
many thanks for any help and thanks again for this tool

Hi @ImSuriya! 👋
Thanks for your interest in franc, and thanks for the kind words! Yes, it’s possible to use franc together with the twitter streaming api.
However, your question seems to be about an entirely different topic, unrelated to franc. franc does language detection, you’re asking for something else, and I can’t help you with that.


Leaking _Closures et al when using overlapping Directory.watch streams

TL;DR: I can leak as much ram as I want. And the analyzer does.
Consider this example:
import 'dart:async';
import 'dart:developer';
import 'dart:io';

final List<StreamSubscription<FileSystemEvent>> watcherSubscriptions = [];

void main() async {
  print('pause...');
  debugger();
  for (int i = 0; i < 10; i++) {
    await create(Uri.base);
    print('$i');

    print('pause...');
    debugger();
  }
  print('Now created 10 ones...');
}

Future<void> create(Uri uri) async {
  // Create temporary one.
  List<StreamSubscription<FileSystemEvent>> tmpSubscriptions =
      <StreamSubscription<FileSystemEvent>>[];
  Stream<FileSystemEvent> stream = Directory.fromUri(uri).watch();
  tmpSubscriptions.add(stream.listen((event) {}));

  // Cancel previous one(s) if any.
  for (StreamSubscription<FileSystemEvent> prev in watcherSubscriptions) {
    await prev.cancel();
  }
  watcherSubscriptions.clear();

  // Create new one.
  stream = Directory.fromUri(uri).watch();
  watcherSubscriptions.add(stream.listen((event) {}));

  // Cancel temporary one.
  for (StreamSubscription<FileSystemEvent> prev in tmpSubscriptions) {
    await prev.cancel();
  }
}

which could be run for instance (with the file saved as leaking_closures) like this:
out/ReleaseX64/dart --enable-vm-service --serve-observatory leaking_closures.dart

This will start the observatory.
Opening it up I can go to allocation profile, hit the GC button at the top, search for _Closure and see that there's 25 of them.
I can click it, scroll down and click the all direct instances to get a list of those 25.
Clicking that list I will execute this expression:
print(map((dynamic e) => identityHashCode(e)).join(","))

and copy the data from the terminal. In my case it's
1957801911,2799861565,295749294,3607033467,2001722021,1819156124,880687672,2476592613,3065591878,1366402745,3020542853,331678246,4083017078,1514761460,1124323878,764042262,4207241379,3838757159,4215517583,219788470,556663193,3410728899,4031482779,2704432541,2323354312

I'll then go to the debugger and continue, then back to the allocation profile, hitting GC again. I now have 70 _Closure objects. Again I'll click it, click all direct instances, go to the list and this time execute
() {
var set = this.map((dynamic e) => identityHashCode(e)).toSet().difference({1957801911,2799861565,295749294,3607033467,2001722021,1819156124,880687672,2476592613,3065591878,1366402745,3020542853,331678246,4083017078,1514761460,1124323878,764042262,4207241379,3838757159,4215517583,219788470,556663193,3410728899,4031482779,2704432541,2323354312});

return this.where((e) => set.contains(identityHashCode(e))).toList();
}()

(replace the data in the hardcoded set with what you got before).
I get a list of 45 new ones. I'll pick one called Closure (_cancel), click it and execute
identityHashCode(this)

In my case it gives<PHONE_NUMBER>.
I'll also click Retaining path and I get
Closure (_cancel) {  ⊞  }
retained by onCancel of _AsyncBroadcastStreamController {  ⊞  }
retained by _controller@4048458 of _BroadcastSubscription {  ⊞  }
retained by 0 of _GrowableList (1) {  ⊞  }
retained by offset -1 of top-level final List<StreamSubscription<FileSystemEvent>> watcherSubscriptions
retained by a GC root (user global)

Going to the debugger and continuing, back to  allocation profile, hitting GC again. I now have 79 _Closure objects. Again I'll click it, click all direct instances, go to the list and execute
where((e) => identityHashCode(e) ==<PHONE_NUMBER>).toList()

(substitute with the identity hash code from above).
I get a list with one entry, I click that entry.
The retaining path is
Closure (_cancel) {  ⊞  }
retained by onCancel of _AsyncBroadcastStreamController {  ⊞  }
retained by 0 of Context (1) {  ⊞  }
retained by _context@0150898 of Closure (_close) {  ⊞  }
retained by _onDone@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by addSubscription of _AddStreamState {  ⊞  }
retained by _addStreamState@4048458 of _AsyncBroadcastStreamController {  ⊞  }
retained by _controller@4048458 of _BroadcastSubscription {  ⊞  }
retained by 0 of _GrowableList (1) {  ⊞  }
retained by offset -1 of top-level final List<StreamSubscription<FileSystemEvent>> watcherSubscriptions
retained by a GC root (user global)

I do the same thing again, there's now 91 and the retaining path for the chosen one is
Closure (_cancel) {  ⊞  }
retained by onCancel of _AsyncBroadcastStreamController {  ⊞  }
retained by 0 of Context (1) {  ⊞  }
retained by _context@0150898 of Closure (_close) {  ⊞  }
retained by _onDone@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by addSubscription of _AddStreamState {  ⊞  }
retained by _addStreamState@4048458 of _AsyncBroadcastStreamController {  ⊞  }
retained by _controller@4048458 of _BroadcastSubscription {  ⊞  }
retained by 0 of _GrowableList (1) {  ⊞  }
retained by offset -1 of top-level final List<StreamSubscription<FileSystemEvent>> watcherSubscriptions
retained by a GC root (user global)

and again: 103 and
Closure (_cancel) {  ⊞  }
retained by onCancel of _AsyncBroadcastStreamController {  ⊞  }
retained by 0 of Context (1) {  ⊞  }
retained by _context@0150898 of Closure (_close) {  ⊞  }
retained by _onDone@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by addSubscription of _AddStreamState {  ⊞  }
retained by _addStreamState@4048458 of _AsyncBroadcastStreamController {  ⊞  }
retained by _controller@4048458 of _BroadcastSubscription {  ⊞  }
retained by 0 of _GrowableList (1) {  ⊞  }
retained by offset -1 of top-level final List<StreamSubscription<FileSystemEvent>> watcherSubscriptions
retained by a GC root (user global)

and for good measure once more: 115 and
Closure (_cancel) {  ⊞  }
retained by onCancel of _AsyncBroadcastStreamController {  ⊞  }
retained by 0 of Context (1) {  ⊞  }
retained by _context@0150898 of Closure (_close) {  ⊞  }
retained by _onDone@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by _previous@4048458 of _BroadcastSubscription {  ⊞  }
retained by addSubscription of _AddStreamState {  ⊞  }
retained by _addStreamState@4048458 of _AsyncBroadcastStreamController {  ⊞  }
retained by _controller@4048458 of _BroadcastSubscription {  ⊞  }
retained by 0 of _GrowableList (1) {  ⊞  }
retained by offset -1 of top-level final List<StreamSubscription<FileSystemEvent>> watcherSubscriptions
retained by a GC root (user global)

So we're leaking 12 _Closure objects per iteration and they're seemingly leaked via the _previous pointer on _BroadcastSubscription.
This might not sound that  bad, but this - though package:watcher is done in Analyzer for the opened directories; package:watcher - on Linux (seemingly only on Linux though) - then adds watchers for all subdirectories (as I understand it it has to because inotify doesn't work recursivly, whereas the windows and mac equivalents do).
When editing a pubspec.yaml file the analyzer basically does what the above script does and will leak similarly, but now with lots more watched it will leak a lot more.
When opening pkg and editing a pubspec.yaml file inside, waits a bit, edits the yaml file file again waits a bit (and so on and so forth) --- doing it 25 times I have 937,835 _Closures (directly using 57.2MB of ram) --- and 937,057 Contexts (28.7MB), 157,623 _BroadcastSubscriptions (16.8MB) etc etc.
At somewhere between 70 and 80 iterations it's at:
_Closure: 2,998,725 (183.0MB),
Context: 2,997,881 (91.5MB),
_BroadcastSubscription: 501,262 (53.5MB)
/cc @lrhn

The many iterations isn't that far fetched btw, in https://github.com/dart-lang/sdk/issues/52447 it likely has occurred several hundred times --- though in that instance it's a mac which doesn't suffer this significantly).

And for completions sake: After 250 such iterations we're at
_Closure: 8,868,011 (541.3MB)
Context: 8,867,233 (270.7MB)
_BroadcastSubscription: 1,479,319 (158.0MB)
_AsyncBroadcastStreamController 1,477,520 (112.7MB)
_FutureListener: 1,475,922 (90.1MB)
_InotifyFileSystemWatcher: 1,475,918 (67.6MB)
(and the heap is now 2GB+)

If we keep the analyzer out of it for the moment and just look at my example code --- you tell me.
I'm not great with streams et al, but I'd say the old subscriptions have been canceled.

If we simplify the example a bit and dump a heapsnapshot:
import 'dart:async';
import 'dart:developer';
import 'dart:io';

void main() async {
  final dir = Directory.fromUri(Uri.parse('pkg/'));

  StreamSubscription? current;
  for (int i = 0; i < 15; i++) {
    final temp = dir.watch().listen((event) {});
    await current?.cancel();
    current = dir.watch().listen((event) {});
    await temp.cancel();
  }
  NativeRuntime.writeHeapSnapshotToFile('watch.heapsnapshot');

  current?.cancel();
}

then examine the watch.heapsnapshot using <sdk>/runtime/tools/heapsnapshot
(hsa) load ../../../watch.heapsnapshot
Loaded heapsnapshot from "../../../watch.heapsnapshot".

(hsa) all = closure roots
 all {#63864}

(hsa) retainers -n1 -d100 sample (filter all _Closure)
There are 1 retaining paths of
_Closure (dart:core)
⮑ ・_AsyncBroadcastStreamController.onCancel (dart:async)
    ⮑ ﹢Context ()
        ⮑ ・_Closure.context_ (dart:core)
            ⮑ ・_BroadcastSubscription._onData (dart:async)
                ⮑ ﹢_BroadcastSubscription._next (dart:async)
                    ⮑ ﹢_BroadcastSubscription._next (dart:async)
                        ⮑ ﹢_BroadcastSubscription._next (dart:async)
                            ⮑ ﹢_BroadcastSubscription._next (dart:async)
                                ⮑ ﹢_BroadcastSubscription._next (dart:async)
                                    ⮑ ﹢_BroadcastSubscription._next (dart:async)
                                        ⮑ ﹢_BroadcastSubscription._next (dart:async)
                                            ⮑ ﹢_AsyncBroadcastStreamController._firstSubscription (dart:async)
                                                ⮑ ﹢_List (dart:core)
                                                    ⮑ ・_Map.data_ (dart:collection)
                                                        ⮑ ・Isolate._idMap ()
                                                            ⮑ ・Root ()

That indicates that a static _idMap holds on to all of them, indeed we have:
class _InotifyFileSystemWatcher {
  static final Map<int, StreamController> _idMap = {};
}

Whenever we start watching a path first time we put an entry in there, whenever the last watch of a path gets cancelledwe clear it out (to share multiple watches of the same path).
Looking closer how the individual fse.watch() streams get their element we find
   _pathWatched().pipe(_broadcastController);

This will unconditionally pipe all elements from the shared watch stream into the per fse.watch() controller. Since we always keep one fse.watch() open on the path, the _patchWatched() will be an infinite stream.
Internally this _pathWatched().pipe(_broadcastController) will of course makes a .listen() on the source and adds it to the destination, but more importantly, it will never cancel that subscription.
When the fse.watch() subscription gets cancelled, we only decrement some counters, but we'll actually not stop this pipe() operation.
A change like this seems to fix it
diff --git a/sdk/lib/_internal/vm/bin/file_patch.dart b/sdk/lib/_internal/vm/bin/file_patch.dart
index d60b8f95da1..353e30430b1 100644
--- a/sdk/lib/_internal/vm/bin/file_patch.dart
+++ b/sdk/lib/_internal/vm/bin/file_patch.dart
@@ -136,6 +136,7 @@ abstract class _FileSystemWatcher {

   final StreamController<FileSystemEvent> _broadcastController =
       new StreamController<FileSystemEvent>.broadcast();
+  late StreamSubscription _sourceSubscription;

   @patch
   static Stream<FileSystemEvent> _watch(
@@ -193,7 +194,13 @@ abstract class _FileSystemWatcher {
     }
     _watcherPath = _idMap[pathId];
     _watcherPath!.count++;
-    _pathWatched().pipe(_broadcastController);
+    _sourceSubscription = _pathWatched().listen((event) {
+      _broadcastController.add(event);
+    }, onError: (error, stack) {
+      _broadcastController.addError(error, stack);
+    }, onDone: () {
+      _broadcastController.close();
+    });
   }

   void _cancel() {
@@ -222,6 +229,7 @@ abstract class _FileSystemWatcher {
       _doneWatcher();
       _id = null;
     }
+    _sourceSubscription.cancel();
   }

   // Called when (and after) a new watcher instance is created and available.

Martins proposed fix looks to be working to me!


How to Call a gen.ServerProcess?

Thank you for the great work you have done, I'm very excited about this library.
I think there is a problem with documentation. On pkg.go.dev there is an old version of documentation.
I browsed all the examples and I couldn't find information on how to make a Call request to a gen server process. What I wish is to get a process by name and then make a Call to it so that HandleCall will fire. In erlang it's easy and can be achieved with gen_server:call(pid,...) but in ergo it seams that I need to get hold of the gen.ServerProcess struct instance which appears to not be exposed.
Please help me with that.

你的邮件已查收，谢谢！！！       ------waterlemon

Thank you for the question. Yeah, there is a lack of documentation, and we are working on it.
The Cast and Call are gen.ServerProcess methods and are available within an actor only. To operate with an actor from outside, you should use gen.Process methods: Send method for async messaging or Direct to make sync calls to the actor.
PS:

gen.ServerProcess is available as a first argument in the callbacks like Init, HandleCast, HandleCall etc. (see gen.ServerBehavior interface)
gen.Process is an interface returned by Spawn method.

just checked out pkg.go.dev - it has the latest version. Here are links you might find useful
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

Thanks a lot for your answer. Indeed the docs are there. I got confused because the link on the ergo.services website leads to https://pkg.go.dev/github.com/halturin/ergo

Now all is clear. Thanks again. ergo is AMAZING!

oh, sorry for that :) yeah, it should have been updated.


linux-kernel-header Licenses aren't being packaged correctly

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
I wanted to see what was contained in recent linux-kernel-headers package, so I downloaded it from https://anaconda.org/conda-forge/kernel-headers_linux-64/3.10.0/download/noarch/kernel-headers_linux-64-3.10.0-h4a8ded7_13.tar.bz2 and opened it up to browse through without actually installing it.  When I looked in info/licenses, I only found nss_license.txt, which I found weird because I expected to find GPL-2 and the UAPI linking exception in there.
From https://docs.kernel.org/process/license-rules.html

The User-space API (UAPI) header files, which describe the interface of user-space programs to the kernel are a special case. According to the note in the kernel COPYING file, the syscall interface is a clear boundary, which does not extend the GPL requirements to any software which uses it to communicate with the kernel. Because the UAPI headers must be includable into any source files which create an executable running on the Linux kernel, the exception must be documented by a special license expression.

Looking for SPDX in the current header package is mildly disappointing (of course because SPDX was barely a thing back when 3.10 came out):
[I] ✦ ➜ grep -r SPDX .
./drm/exynos_drm.h:/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
./drm/i810_drm.h:/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
./rdma/ib_user_ioctl_verbs.h:/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */
./linux/usb/cdc.h:/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
./linux/usb/g_printer.h:/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
./linux/usb/midi.h:/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
./linux/usb/cdc-wdm.h:/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
./linux/usb/audio.h:/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
./linux/usb/ch11.h:/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
./linux/usb/ch9.h:/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
./linux/usb/video.h:/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
./linux/usb/gadgetfs.h:/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
./linux/usb/tmc.h:/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
./linux/usbdevice_fs.h:/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
./sound/usb_stream.h:/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */

sysroot/usr/include via 🅒 clang_osx-64
[I] ✦ ➜ grep -rL SPDX . | wc -l
     758

15 files with SPDX and 758 without.  2%!
sysroot/usr/include via 🅒 clang_osx-64 took 34s
[I] ✦ ➜ grep -rl 'version 2 of the License' . | wc -l
     58

sysroot/usr/include via 🅒 clang_osx-64
[I] ✦ ➜ grep -rl 'GNU General Public License' . | wc -l
    188

sysroot/usr/include via 🅒 clang_osx-64
[I] ✦ ➜ grep -rli 'License' . | wc -l
    277

sysroot/usr/include via 🅒 clang_osx-64
[I] ✦ ➜ grep -rLi 'License' . | wc -l
    496

Seems like the  linux-kernel-header subpackage needs to have it's own about section that probably says the license is GPL-2 WITH Linux-syscall-note and package those license files in the conda packages.  Alternately, we could repackage the rpm license files because I'm sure they have them although I'm not sure where to look for them.
I can submit a PR for this if you guys think it is worthwhile.
Installed packages
doesn't have to do with actually installing the packages

Environment info
doesn't have to do with my environment

@conda-forge/linux-sysroot is this something we want to address?

A PR would be great. Yes we should ensure we are shipping license files correctly.

Ok.  Thanks.  I just wanted to make sure that I wasn't missing something that meant for this to be intended before submitting something.


setFeatureSelectorTrainingParametersList error.

When I tried to execute the code.I'm getting following error near( setting) FeatureSelectorTrainingParametersList as follow
trainingParameters.setFeatureSelectorTrainingParametersList(Arrays.asList(new ChisquareSelect.TrainingParameters()));
The method setFeatureSelectorTrainingParametersList(List<AbstractTrainer.AbstractTrainingParameters>) in the type Modeler.TrainingParameters is not applicable for the arguments (List<ChisquareSelect.TrainingParameters>)
so, i changed the line as follow.         trainingParameters.setFeatureSelectorTrainingParametersList((List) new ChisquareSelect.TrainingParameters());
I'm getting exception saying:
Exception in thread "main" java.lang.ClassCastException: com.datumbox.framework.core.machinelearning.featureselection.ChisquareSelect$TrainingParameters cannot be cast to java.util.List

Please check the Java and Datumbox version that you are using. The examples in this project use Datumbox v0.8.0 and Java 8. I tried to reproduce the problem but I don't get any exceptions. Running the TextClassification example class provided in this project works fine for me.
Also note that casting the TrainingParameters to a List will not work as it is not a list. The correct way to provide the parameters is as follows:
trainingParameters.setFeatureSelectorTrainingParametersList(Arrays.asList(new ChisquareSelect.TrainingParameters()));

I just cloned the examples project and my pom file shows the following error
Missing artifact com.datumbox:datumbox-framework-lib:jar:0.8.1-SNAPSHOT
I'm using eclipse IDE to execute the codes.

Thanks I got that :)


only apply part of tag extractors to scope prefix of stats

Title: only apply part of tag extractors to scope prefix of stats
Regex extractors or token extractors are used to extract tag/tag value from the full stat names. However, the commonly used extractors (cluster name, etc.) could only be applied to the scope prefix to avoid calling extraction to every stat.
It means we can store some tags in the scopes and add them to the final Prometheus tags when we output stats with Prometheus format.
Both storage overhead and computation could be optimized.

cc @jmarantz

This is an interesting idea. But do we have data (flame-graphs) showing that tag-extraction is the bottleneck here?
There's been a lot of optimization around tag-extraction already and it's not clear that working on this can move the needle, at least in the scenarios I looked at.

Rather than bottleneck, I just think this is a point that we could do better.

If flame graph is necessary, any suggestion to this graph generation? I have no much experience about the performance evaluations of main thread.


Create other kind of aggregation

it would be great if we could also let users choose between aggregations, the default one could be gender-identity based, the other - occupation-based, for example, based on the Wikidata P106 ("occupation") property, also P27 (country of citizenship) could be very interesting...
I understand it's a lot of effort, but it would be much more viral, I suppose, and thus help spread awareness not only of the gender equality issues, which is highly important, but also of the awesome open source infrastructure that is right in front of our eyes, in OpenStreetMap and WikiData. And it would just be fun to explore :)
PS: sorry for interrupting @agron2017 🙏
Originally posted by @62mkv in https://github.com/EqualStreetNames/equalstreetnames/issues/522#issuecomment-1148892190

Thanks for the suggestion @62mkv !
It's indeed an excellent idea and it's on my mind since the beginning of the project but it's out of the scope of the EqualStreetNames project that's focusing on the gender (dis)balance.
Replicating the existing process and changing the parameters used to create the map is of course totally possible but I won't have time to work on it.


Testing system overhaul

The current testing system (spectron + mocha) is not terribly useful.  Unit testing should be implemented by testing critical redux application logic (sagas and reducers).  We can write meaningful integration tests using React's TestUtils.

This has been implemented as of #312 and test coverage is being incrementally added.


perf: use parseImports'

This uses the new dedicated import parsing function which is 10x faster than parseImports.

You appear to have mixed the master branch witht the v4.x.x branch, which one did you want this PR built upon?

The master and v4.x.x branches have diverged significantly.  From what I understand, new features should go into v4.x.x, while maintenance updates, Lean version bumps, etc., go into master.  So I've made the PR to v4.x.x, and merged master.
This PR is a new feature but requires the version bumps from master.

@gebner Ah, makes sense. I rebased v4.x.x onto master, so you should be able to rebase the PR onto it now and clean up the commit history.

Thanks! Merged.


Failure to access previous MONDO owl versions using versionIRI

Getting a 404 error when trying to access older versions of mondo.owl using the versionIRI.
Are the owl files not versioned and archived?  If they are why does the IRI not work?  It also does not work for the current version using the IRI from the file I previously downloaded.
Thanks for your assistance.
cheers,
Andy
$ wget http://purl.obolibrary.org/obo/hp/releases/2019-08-28/mondo.owl
--2019-11-07 12:36:41--  http://purl.obolibrary.org/obo/hp/releases/2019-08-28/mondo.owl
Resolving purl.obolibrary.org (purl.obolibrary.org)... <IP_ADDRESS>
Connecting to purl.obolibrary.org (purl.obolibrary.org)|<IP_ADDRESS>|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/obophenotype/human-phenotype-ontology/v2019-08-28/mondo.owl [following]
--2019-11-07 12:36:41--  https://raw.githubusercontent.com/obophenotype/human-phenotype-ontology/v2019-08-28/mondo.owl
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-11-07 12:36:41 ERROR 404: Not Found.

@aschroed I think there is a mistake in the version IRI you're checking—did that come from the ontology? Yours has 'hp' within the path.
But your point still stands; when I try the version IRI of the current release (http://purl.obolibrary.org/obo/mondo/releases/2019-10-25/mondo.owl) I get '404 Not Found'.
The problem is that the git tag has been created as 2019-10-25, when it should have been v2019-10-25. The previous release, http://purl.obolibrary.org/obo/mondo/releases/2019-09-30/mondo.owl does resolve.

@balhoff Thank you for your reply.  I apologize for including misleading information in my issue - as you noted I mistakenly included a typo in the versionIRI I posted   I appreciate that you were able to solve my issue and were able to identify the cause of my initial problem - the unexpected tag.  Thanks!

No problem, some does still need to add the tag. I'll make an issue for that, since I don't have permission to make a release here.

@aschroed your problem should now be fixed. http://purl.obolibrary.org/obo/mondo/releases/2019-10-25/mondo.owl can be downloaded from the version IRI.


Fix github action csv merge overwrite error

Fix github action errors like this one:
error: The following untracked working tree files would be overwritten by merge: esm-samples/.metrics/4.25.0.csv
It also includes a fix for the set-output deprecation.
@benelan can you double check the fix(es) we chatted about it? Thanks!

Awesome, thanks! Merging.


[Feature] close downstream if upstream is closed

HI:
I'm using Caddy as a layer4 load balancer for Kubelet to Kube-APIServer.  And I found Kubelet could be hang in some time.
After days of digging, I think I found the reason:
In the scenario of Kubernetes, the Client uses Watch&List to describe resources changing events.  This means that kube-apiserver returns all resources and pushes events only if resources changed. however, after kube-apiserver restarted, the upstream of Caddy is closed, but the downstream is still connected.  At the same time, the client is still waiting for events to come which is impossible. And the worst thing is the client will never find out this connection should be reset.
Kubernetes fix this issue in 1.20 in https://github.com/kubernetes/client-go/issues/374. but in some case, we can't upgrade to the latest version so quickly.
Here is my proposal:
Maybe we can add an option to the LoadBalancer struct, such as DisconnectDownstreamPolicy. And the value could be Never、OnAnyUpsteamClosed or OnAllUpstreamClosed.  the default value is Never which keeps the same behavior as current.
How does this sound to you?  And If you are busy, I'm ok to submit a Pull&Request and wait for you to review it. the poc change is working for me. https://github.com/xuzhenglun/caddy-l4/commit/f013a43f63667218527de3c95dbf862e14466e92

That's an interesting point, and worth considering. I like the idea. Not a huge fan of "modes" (which this kind of reminds me of) but I'm not sure a better way to do it. I think it'd be fine. I'd be open to reviewing a PR :+1:

Not a huge fan of "modes" (which this kind of reminds me of) but I'm not sure a better way to do it.

I think we should close the downstream connection if all upstream connections are closed. Only one question left is that whether we should provide an option like OnAnyUpsteamClosed, which depends on  the use case (or idea) behind the design of "multiple upstream connections per downstream connection".

Any progress on this issue?

@thehackercat Well, there was a comment 13 hours ago (7 hours before yours). Does that count?
@RussellLuo I think that makes sense. I'm not really sure what people use multiple upstreams for tbh so maybe we can shelve that particular feature until it's requested?

Sounds reasonable, I'll get it done today (the last day before holiday 😃).

Sounds reasonable, I'll get it done today (the last day before holiday 😃).

In the past months, I'm busy with my job. Sorry for it.
I read the commend above, It seems that we decide to close the downstream connection when upstream is closed without an option config?
Have you been working on it? If not, I can open a PR from https://github.com/xuzhenglun/caddy-l4/commit/f013a43f63667218527de3c95dbf862e14466e92

Have you been working on it? If not, I can open a PR from ...

Oh, I have just opened a PR. Sorry, I didn't notice your comments just now 😢

comments

It doesn't matter. I can see my change is stale and conflicts with the master code.


Change the ResourceManager to return the Resource instance instead of…

with the instance returned instead of value, the typescript implementation is simplified a lot / no need for valueFor as proposed here: https://github.com/pzuraq/ember-could-get-used-to-this/pull/30/files#diff-7aa4473ede4abd9ec099e87fec67fd57afafaf39e05d493ab4533acc38547eb8R26 (similar to what ember-concurrency-ts does)

An open question here is, should the decorator return the value or the instance?

The instance? No change in needed there though, (see use tests)

To clarify, I think this is a possible direction and am still thinking it through. I do think this would simplify a lot of things, but I'm not 100% sure about it yet. Currently busy preparing for EmberConf so I don't have time to think it through fully yet, but will update here as soon as I do.

After some discussion, decided this does make sense as the future direction. The current behavior is actually a bit confusing overall, so this should make it easier to understand I think. Now resources are like a "reactive class" instead of a "reactive function".


Update dbcc-traceon-trace-flags-transact-sql.md to include 8142 and 8145

Added 8142 and 8145

@rwestMSFT
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


More pathlib fun

Howdy
Forgot about stream_info and http_server also using os. I've included the local file casting fix (removal of "Accept-Ranges" header).
Looking forward (short-term), I'm honestly more keen on working on the save/restore stuff right now. So if it's ok with you, I'd be cool if you could make a 0.6.0 release after this is merged.
Fixes #73

Looks good to me! I can release after merge, yes, but I'm in the middle of something now, so do remind me if I forget.


Cmd-Enter should commit a card that's being edited

Also, Esc in exactly the same situations should cancel editing

Dialog already closes when you hit 'Escape'. And it's also weird to prevent default at top level in main-view when you aren't sure if any actions were actually dispatched.


How to add lumi.curtain.hmcn02 (Xiaomi BLE Curtain Driver E1)

How to add lumi.curtain.hmcn02 (Xiaomi BLE Curtain Driver E1)

Since it seems that this is a BLE device, you would need to add it through a gateway. You need to specify the ip and token of your gateway, and the deviceid and model from your device, that should make it work.

Since it seems that this is a BLE device, you would need to add it through a gateway. You need to specify the ip and token of your gateway, and the deviceid and model from your device, that should make it work.

what about reading from Mi Flora / HHCC sensors via Xiaomi Smart Home Gateway 3 gateway?

Seems to work, but you would need to configure yourself the properties manually since there is no plant monitor module yet.

Seems to work, but you would need to configure yourself the properties manually since there is no plant monitor module yet.
thanks
it is possible to add?
https://miot-spec.org/miot-spec-v2/spec/service?type=urn:miot-spec-v2:service:plant-monitor:0000784B

{"type":"urn:miot-spec-v2:service:plant-monitor:0000784B","description":"Plant Monitor","optional-properties":["urn:miot-spec-v2:property:status:00000007","urn:miot-spec-v2:property:fault:00000009","urn:miot-spec-v2:property:temperature:00000020","urn:miot-spec-v2:property:relative-humidity:0000000C","urn:miot-spec-v2:property:soil-ec:00000084","urn:miot-spec-v2:property:illumination:0000004E"]}

If there is no battery level in the spec then it means that the device does not support that. You should try to use propertyControl and propertyMonitor to expose which data you want to see.

this device definitely reports the battery status via bluetooth.
now i'm using this plugin https://github.com/oretman/homebridge-mi-flora-care but my sensors are too far away from the my ble dongle. it's enough for me to get data through the mi cloud a couple of times a day.
[2/28/2023, 10:02:43 AM] [Asparagus L] Lux: 509, Temperature: 26.5, Moisture: 31, Fertility: 674
[2/28/2023, 10:02:43 AM] [Asparagus L] Firmware: 3.3.5, Battery level: 100

It might be that it reports battery but not using the miot spec!

strange things
it's my config for plant monitor
{
"name": "MIOT Monstera",
"ip": "ххххх",
"token": "ххххх",
"deviceId": "blt.3.1bl3btnhc5g00",
"model": "hhcc.plantmonitor.v1",
"pollingInterval": 600,
"deepDebugLog": false,
"micloud": {
"username": "ххххх",
"password": "ххххх",
"country": "cn",
"forceMiCloud": true
},
"buzzerControl": false,
"ledControl": false,
"childLockControl": false,
"modeControl": false,
"propertyMonitor": [
{
"property": "plant-monitor:relative-humidity",
"name": "Hum"
},
{
"property": "plant-monitor:soil-ec",
"name": "Soil"
},
{
"property": "environment:temperature",
"name": "Temp"
}
]
}
],
but Num & Soil seems like light sensors. what am I doing wrong?

There is no humidity or soil accessory in HomeKit, hence the plugin uses a light sensor to display the raw values from the device.

There is no humidity or soil accessory in HomeKit, hence the plugin uses a light sensor to display the raw values from the device.

yes,  how to display/convert soil moisture as an air humidity sensor?

and if there is a way, for example, when the soil moisture is less than a set value (e.g. 20%) to display this as an door sensor in open state, as my current plugin does.

You can do that by specifying a value in the propertyMonitor. That will create a sensor which will trigger when the value is reached.

Please help me, I don't fully understand how to do it correctly. Thanks!

Just go check out the examples in the README.

i don't understand how to create air humidity sensor linked to plant-monitor:relative-humidity property instead of light sensor

You cannot do that! I just explained you that there is no plant monitor module yet!

thank you. can this be added in future releases?

Probably. Might have a look at it when I have some time.

Probably. Might have a look at it when I have some time.

Thanks! It will be very good! Have a good day!


[T2A5][W14-A4]TanJunAn

Read for review

Hey Jun An, did you combine activities A3, A4 and A5 into this PR? Or did you just work off the previous edits for A3 and A4? If you combined them, please separate them into different PRs with the correct activity level. Also, please write your name as in your matric card, with spacing in between. Regarding the commit messages, please keep it consistent, ie. always using a verb at the start of the message, not using 'T2A5' or 'Smellier Code'.

I am accepting this without a detailed review.


Create a Pricing Card Of Dark Background

One need to make this component using HTML and Tailwind CSS. I would suggest to use Tailwind Playgrounds to make things faster and quicker.
Here is a reference to the component.

After building the component please raise a PR with a screenshot of the component and add the component in /Pricing Components/src/pricing-card-6-black.html.
If you need to use any icon please use it from Hero Icons
Good luck.

@RavindraP04  can i work on this issue under JWOC


Looking forward for some learning based Issue :+1:


HOW TO USE THIS? ANY COMPLETE INSTRUCTIONS AVAILABLE PLEASE?

Well sorry but i dont have huge knowledge about coding, can someone teach me the whole process of this? like from beginning to test-running.

Well sorry but i dont have huge knowledge about coding, can someone teach me the whole process of this? like from beginning to test-running.

Please answers, I badly want to try these thing @spaceface777


MNT model card API cleanup

This PR takes the parts of https://github.com/skops-dev/skops/pull/71 which are not strictly related to that PR here, in a separate PR.
It makes most Card attributes private and enhances docs.

@BenjaminBossan's recently merged PR removed ellipsis so I solved a conflict. I'll edit the newly added tests as well to make variables hidden @adrinjalali

@adrinjalali it will be better if you do it given it's your fork, I don't want to open a PR to your fork 😅😂


Any examples of acceptance testing?

Does anyone have any examples of how to do acceptance testing? I have a really simple login form that just initializes the auth0 login modal on page load, but I cannot even get a basic Qunit test to pass. Here is an example of my test:
test('logging in and proceeding to the home page', function(assert){
  visit('/login');
  fillIn('#a0-signin_easy_email', 'someone@gmail.com');
  fillIn('#a0-signin_easy_password', 's3cret123');
  click('button[type="submit"]);

  andThen(function(){
    assert.equal(currentURL(), '/');
  });
});

I've tried so many variations of this, but no matter what, the test is unable to find the elements.
Here is my login route:
import Ember from 'ember';
import UnauthenticatedRouteMixin from 'ember-simple-auth/mixins/unauthenticated-route-mixin';

export default Ember.Route.extend(UnauthenticatedRouteMixin, {
  activate: function() {
    var lockOptions = {
      sso: false,
      authParams:{scope: 'openid'},
      closable: false
    };
    this.get('session').authenticate('simple-auth-authenticator:lock', lockOptions);
  }
});

The login page works great, but I cannot figure out how to actually log in via a test.

We just use the ember-simple-auth authenticateSession methods https://github.com/simplabs/ember-simple-auth#testing

Also getting this problem:
Acceptance | login: visiting /login
    ✘ Error: Element not found.

    PageObject: 'page.emailField()'
      Selector: '#a0-signin_easy_email'

Lock isn't very Ember friendly. There is are events fired when the form is ready, but I don't see how to hook into those using Ember.


[fix] [broker] local metadata sync topic contains configuration events causing all operations stuck

Motivation
Background:

PIP-136: Sync Pulsar policies across multiple clouds defines two topics below:

metadataSyncEventTopic: monitors local metadata store changes
configurationMetadataSyncEventTopic : monitors local metadata store changes

Local metadata store and Configuration metadata store share the same object in memory when their URLs are the same.

Issue 1
Since the event synchronizer is bound to the metadata store object in memory, the synchronizer receives all the events about the Local metadata store and Configuration metadata store when the two metadata stores are the same object in memory, the data in the two topics got mixed up.
Issue 2
The internal producer of the synchronizer relies on the SyncEventTopic; this topic relies on the namespace local policies; the operation of writing namespace local policies to ZK relies on the internal producer. A deadlock occurs. See the following flow:

Try to start the internal producer of the synchronizer.
Try to load the topic named metadataSyncEventTopic up.
Try to write data to the Local Metadata Store.
Try to send events to metadataSyncEventTopic before writing data to the Local Metadata Store.
The internal producer is starting now.
Stuck.....

You can reproduce this issue by the test SyncConfigStore1ZKPerClusterTest. testDynamicEnableConfigurationMetadataSyncEventTopic. This PR fixed the issue that the synchronizer got stuck due to two metadata stores relying on it. I will write a separate PR that skips syncing data that relies on the synchronizer itself.
Modifications

Create a separate configuration metadata store if users want to enable Metadata Synchronizer, even if the URL of the configuration metadata store is the same as the local metadata store.
Correct the behavior: metadataSyncEventTopic only receives the event about the local metadata store and configurationMetadataSyncEventTopic only receives the event about the configuration metadata store.
If the Broker has initialized itself with one metadata store, reject the dynamic config changes.
Add an optional choice mayEnableMetadataSynchronizer to let the Broker initialize itself with a separate configuration metadata store.

Next PRs
Skip to sync events that rely on the synchronizer itself. For example:

metadataSyncEventTopic is public/default/tp
(Highlight) Do not sync the events related to the topic public/default/tp, because the synchronizer relies on this topic 😂 , I will send a discussion for this change. See more details the Issue 2 in the section Motivation.

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: x

@poorbarcode please resolve the merge conflict

@lhotari

@poorbarcode please resolve the merge conflict

Done


Error You are not allowed to perform this action .

What steps will reproduce the problem?
I dont know
What is the expected result?
I want to go pa edit user roles and rules
What do you get instead?
Forbidden (# 403 )
You are not allowed to perform this action .
and here is what debuger
yii \ web \ ForbiddenHttpException: You are not allowed to perform this action . in /var/www/play.lc/vendor/yiisoft/yii2/filters/AccessControl.php:151
Additional info
I'd add only install extensions decided to pass on the instructions of the url . And and I point out the following URL in the widget Url Navbar and in createurl, rbac / permission / index

Q
A

Yii2 version
2.0.6

Yii2-rbac version
1.0

PHP version
7.0

Sorry for my English :)

I've got the same problem. Set up Yii-rbac 0.3.0 on Yii2 v. 2.0.9 and PHP v.5.6.19. Installed Yii2-rbac and added this to comon/config/main.php:
'modules' => [
        'user' => [
            'class' => 'dektrium\user\Module',
            'enableConfirmation' => false,
            'enableUnconfirmedLogin' => true,
        ],
        'rbac' => [
            'class' => 'dektrium\rbac\Module',
            'admins' => ['LarryTX'],
        ],
    ],

At this point everything I try to do with /rbac (/rbac/role/index, /rbac/permission/index, etc.) results in Forbidden (#403) You are not allowed to perform this action.


photoMessageViewModel property exposed

Codecov Report

Merging #477 into master will decrease coverage by 0.12%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #477      +/-   ##
==========================================
- Coverage    64.9%   64.77%   -0.13%
==========================================
  Files          76       76
  Lines        3892     3892
==========================================
- Hits         2526     2521       -5
- Misses       1366     1371       +5

Impacted Files
Coverage Δ

...essages/Views/PhotoMessageCollectionViewCell.swift
100% <ø> (ø)
:arrow_up:

...Controller/BaseChatViewController+Presenters.swift
44.44% <0%> (-4.77%)
:arrow_down:

...hatController/BaseChatViewController+Changes.swift
87.91% <0%> (-0.84%)
:arrow_down:

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 9df8759...9ee5b5b. Read the comment docs.


Update site docs for Xor changes

Current coverage is 80.93% (diff: 100%)

Merging #385 into master will increase coverage by 0.09%

@@             master       #385   diff @@
==========================================
  Files            63         63
  Lines          2019       2019
  Methods        1861       1861
  Messages          0          0
  Branches        158        158
==========================================
+ Hits           1632       1634     +2
+ Misses          387        385     -2
  Partials          0          0

Powered by Codecov. Last update c10126f...7d88afc


Feat/logs soda user

This pull request solves #10

add the name of the user in the logs when he creates a session

@ahery95 this is a good first step. Now we retrieved the user from the capabilities we need to store it in memory. By doing this we will able to reuse the user in logs for the other events (delete session, commands like screenshot/utl/source code /...)
A good way to store the information in memory is to use Redis with the pub/sub model. A library already exists.

Add a redis service to the docker-compose file on the same network as test-service
Add the library and create a module to manage the redis connection / client
Try to send pub/sub events to the Redis db

Once these first steps are working I can help you to createa specific hash containing both the session id and the user (we will manage our own id/hash that we will communicate to the client instead of the standard session id : then we will reverse the session id when forwarding the http requests to the hub).

@ahery95

Here a sequence diagram to explain you how the hash works and how to retrieve the different events.

Closing this pull request in favor of #16 - the code keep available on your repository and we will use it later for Redis.


docs: update ci module guide

Replace the unofficial node module by the one created by Dagger which impact severals code snippets and flows of execution.
This PR updates the code snippets and documentation related to this.
/cc @vikram-dagger I updated the TS snippets, I let you do the Go and Python 🚀

@TomChv @helderco please review


Added --exact flag

Similar to npm install express --save-exact

Closes https://github.com/siddharthkp/auto-install/issues/26


Some errata found on the code

Hi,
Thanks for sharing wonderful work :)
While running the code, I found some minor errata building the data augmentation module.
https://github.com/dqshuai/MetaFormer/blob/669bf18c35fdb51e35b0a79fa86224a18cd38ac5/data/build.py#L16
I guess this line should fixed with
from timm.data.transforms import str_to_pil_interp
since there is no _pil_interp in timm.data.transforms. https://github.com/rwightman/pytorch-image-models/blob/master/timm/data/transforms.py
If there is something I missed, pleased let me know :)

@seungwoos Hi,
I think it is the difference of version, and i used timm==0.4.5. https://github.com/rwightman/pytorch-image-models/blob/v0.4.5/timm/data/transforms.py#L43


🐛[BUG]: datapipes.healpix is not importable

Version
0.7.0
On which installation method(s) does this occur?
Pip
Describe the issue
Both modulus/datapipes/__init__.py and modulus/datapipes/healpix/__init__.py seem to be empty which does not allow to install  datapipes/healpix.
This blocks the use of projects like NVDLESM of this datapipes for training.
Minimum reproducible example
pip install modulus
$ python
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import modulus
modulus.datapipes.healpix
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'modulus.datapipes' has no attribute 'healpix'

Relevant log output
No response
Environment details
No response

Closed with #681


Test/assemblers: update manifest to use Fedora 40 + update manifest-db ref

Fedora 38 is EOL and unfortunately so are our F38 snapshots. Lets update the manifest to F40.
This PR also updates the manifest-db ref to the latest commit. This should fix the issue with old el8 GCP guest tools snapshots being deleted by accident.

--- a/test/run/test_assemblers.py
+++ b/test/run/test_assemblers.py
@@ -188,13 +188,13 @@ def test_qemu(osbuild, fmt, fs_type):
                                      1,
                                      boot_partition=1)
                 if fs_type == "btrfs":
-                    l2hash = "ba0ae9a8b907ad772359a6671de8af0a72def18566e9f2faf8843071777b8d0a"
+                    l2hash = "dfea8604cdcdc2cf0dc3e816929d302f837f03c98f6bb19b366fda4ee26957f1"
                 elif fs_type == "xfs":
-                    l2hash = "9c7f4633df40fec6f31a4d595bc37a263e0a778f496fa314789e60cb9688f376"
+                    l2hash = "18d145b699e0ff4a815868f0b761b4bd6ece391885830ddb56dac557eff8b732"
                 else:
-                    l2hash = "f8272df4899991b20964a568607153ff71b5742bcbf1eeabb47145ccb554a81b"
+                    l2hash = "84792ea01e63bd60c4018d686d48b6207c56d5bc844f2791634b276ce82c9116"
                 assertGRUB2(device,
                             "b8cea7475422d35cd6f85ad099fb4f921557fd1b25db62cd2a92709ace21cf0f",
                             l2hash,
                             1024 * 1024)

There is one more I think:
index d0c15494..cf4d041f 100644
--- a/test/run/test_assemblers.py
+++ b/test/run/test_assemblers.py
@@ -188,13 +188,13 @@ def test_qemu(osbuild, fmt, fs_type):
                                      1,
                                      boot_partition=1)
                 if fs_type == "btrfs":
-                    l2hash = "ba0ae9a8b907ad772359a6671de8af0a72def18566e9f2faf8843071777b8d0a"
+                    l2hash = "dfea8604cdcdc2cf0dc3e816929d302f837f03c98f6bb19b366fda4ee26957f1"
                 elif fs_type == "xfs":
-                    l2hash = "9c7f4633df40fec6f31a4d595bc37a263e0a778f496fa314789e60cb9688f376"
+                    l2hash = "18d145b699e0ff4a815868f0b761b4bd6ece391885830ddb56dac557eff8b732"
                 else:
-                    l2hash = "f8272df4899991b20964a568607153ff71b5742bcbf1eeabb47145ccb554a81b"
+                    l2hash = "84792ea01e63bd60c4018d686d48b6207c56d5bc844f2791634b276ce82c9116"
                 assertGRUB2(device,
-                            "b8cea7475422d35cd6f85ad099fb4f921557fd1b25db62cd2a92709ace21cf0f",
+                            "84792ea01e63bd60c4018d686d48b6207c56d5bc844f2791634b276ce82c9116",
                             l2hash,
                             1024 * 1024)

I tried to run this on c9s and c10s, it is still failing:
test/run/test_assemblers.py::test_rawfs[ext4] FAILED                              [ 58%]
test/run/test_assemblers.py::test_rawfs[xfs] FAILED                               [ 59%]
test/run/test_assemblers.py::test_rawfs[btrfs] SKIPPED (The btrfs was explici...) [ 59%]
test/run/test_assemblers.py::test_ostree PASSED                                   [ 59%]
test/run/test_assemblers.py::test_qemu[ext4-raw] FAILED                           [ 60%]
test/run/test_assemblers.py::test_qemu[ext4-raw.xz] FAILED                        [ 60%]
test/run/test_assemblers.py::test_qemu[ext4-qcow2] FAILED                         [ 60%]
test/run/test_assemblers.py::test_qemu[ext4-vmdk] FAILED                          [ 60%]
test/run/test_assemblers.py::test_qemu[ext4-vdi] FAILED                           [ 61%]
test/run/test_assemblers.py::test_qemu[xfs-raw] FAILED                            [ 61%]
test/run/test_assemblers.py::test_qemu[xfs-raw.xz] FAILED                         [ 61%]
test/run/test_assemblers.py::test_qemu[xfs-qcow2] FAILED                          [ 62%]
test/run/test_assemblers.py::test_qemu[xfs-vmdk] FAILED                           [ 62%]
test/run/test_assemblers.py::test_qemu[xfs-vdi] FAILED                            [ 62%]

I tried to run this on c9s and c10s, it is still failing:
test/run/test_assemblers.py::test_rawfs[ext4] FAILED                              [ 58%]
test/run/test_assemblers.py::test_rawfs[xfs] FAILED                               [ 59%]
test/run/test_assemblers.py::test_rawfs[btrfs] SKIPPED (The btrfs was explici...) [ 59%]
test/run/test_assemblers.py::test_ostree PASSED                                   [ 59%]
test/run/test_assemblers.py::test_qemu[ext4-raw] FAILED                           [ 60%]
test/run/test_assemblers.py::test_qemu[ext4-raw.xz] FAILED                        [ 60%]
test/run/test_assemblers.py::test_qemu[ext4-qcow2] FAILED                         [ 60%]
test/run/test_assemblers.py::test_qemu[ext4-vmdk] FAILED                          [ 60%]
test/run/test_assemblers.py::test_qemu[ext4-vdi] FAILED                           [ 61%]
test/run/test_assemblers.py::test_qemu[xfs-raw] FAILED                            [ 61%]
test/run/test_assemblers.py::test_qemu[xfs-raw.xz] FAILED                         [ 61%]
test/run/test_assemblers.py::test_qemu[xfs-qcow2] FAILED                          [ 62%]
test/run/test_assemblers.py::test_qemu[xfs-vmdk] FAILED                           [ 62%]
test/run/test_assemblers.py::test_qemu[xfs-vdi] FAILED                            [ 62%]

Can you please attach the full buildlog with the full failure details ?

Manifest-db in the Schutzfile needs to be updated with https://github.com/osbuild/manifest-db/commit/8b5efc273e7bf840c9219ff343777e71a57c110f now no?

I'm sorry, but I didn't notice didn't notice the problem in manifest-db repo. manifest-db already does not have runners for RHEL-8.9, therefore it did not rebuild manifests for it and https://github.com/osbuild/manifest-db/pull/132 didn't include them. As a result, the RHEL-8.9 manifests still use nonexistent GCP repositories. :man_facepalming:
I'll update the .gitlab-ci.yml in osbuild to not test on RHEL-8.9 runners, because it makes little sense and it will solve the problem.

Side note from me - after retesting on c9s and c10s it looks like this PR solves failing unit tests.


Handling of redis disconnects

I was fiddling in node console, playing with blocking blpop.
I experimented by shutting down the redis server while the blocking pop command was running... The result was quite interesting as the callback was called over 15 times...
Is there a way to handle this more gracefully?
Here's the paste from my console
> r.blpop('que1', 'que2',10, function(){console.log('blpop', arguments)});
true
> { '0': 'Redis connection gone from end event.' }
{ '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
rpop { '0': 'Redis connection gone from end event.' }
rpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }
blpop { '0': 'Redis connection gone from end event.' }

events.js:71
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: Redis connection to <IP_ADDRESS>:6379 failed - connect ECONNREFUSED
    at RedisClient.on_error (**/node_modules/redis/index.js:151:24)
    at Socket.<anonymous> (**/node_modules/redis/index.js:86:14)
    at Socket.EventEmitter.emit (events.js:96:17)
    at Socket._destroy.self.errorEmitted (net.js:329:14)
    at process.startup.processNextTick.process._tickCallback (node.js:244:9)

This is fixed in newer versions (should be since v.2.0).


Add the fallthrough attribute to silence a warning

stdlib/public/Darwin/os/format.m:67:11: warning:
unannotated fall-through between switch labels [-Wimplicit-fallthrough]

This can't be merged as it is:

swift/utils/build-script --release-debuginfo succeeds.

swift/utils/build-script --release-debuginfo --test fails:

******************** TEST 'Swift(macosx-x86_64) :: stdlib/os_log_format.m' FAILED ********************
stdlib/public/Darwin/os/format.m:15:10: fatal error: 'llvm/Support/Compiler.h' file not found

@swift-ci please smoke test

I assume the Darwin overlays are only compiled with clang, so I've used __attribute__((fallthrough)); directly, instead of adding an OS_FALLTHROUGH macro.

Cc: @ravikandhadai


Issues with sample ZSS cert definition

Description

There are several issues with the sample commands (and description) to set up secure communication with the ZSS server.
Pages to Update
https://docs.zowe.org/stable/user-guide/mvd-configuration.html#configuring-zss-for-https
Screenshots

Expected behavior

I added 2 files with updates to this issue. One with change markers from current to new content, and one with the formatted new content.
Zowe doc - ZSS cert - change markers.docx
Zowe doc - ZSS cert - final.docx
Additional context

@ajinrocket At first glance no changes we done to the page. Why is this closed?

I merged the changes to our docs-staging branch. It hasn't been updated on the page yet. Sorry, I'll reopen this issue and close it once the page has been updated.

Changes are now implemented on site. Closing issue


[REQ] Conda recipe

Hi,
I'm the lead developer of NetKet, an established machine learning / quantum physics package.
We have recently finished rewriting our core to be based on Jax (and flax), and recently released a beta version.
Since many physicists seem to use anaconda, we would also like to update our conda recipe.
However, since we depend on optax (and therefore on Chex), we would need Chex to have a Conda recipe.
Is that something you'd consider? I am willing to volunteer some work to help you.
I tried creating a recipe starting from your pypi source distribution, but that is problematic because you don't bundle your requirements.txt file, which is required to run setup.py.
I could create a recipe from the tag tarballs on GitHub, but that sometimes prevent the conda packages from auto-updating the recipe for later releases.

Hi,
Thanks a lot for using Chex and for your offer to help with a Conda recipe! It'd be great to have one for Chex. (and one for Optax :) )
Requirements should be included in Chex 0.0.6 (after #38). Please let me know if anything else is needed for setting up the recipe.

it's done. I'll now open a sister issue on the optax repo


[Backport] Fix a bug for CSVParser/DelimitedParser when empty column exists in the header row

Backport of #4504 to 0.10.1

This change is

Hm, the TeamCity build reports 13 new inspection errors, but those aren't in any of the files changed by this PR (did something go wrong with the inspection?)
Should we bounce the TeamCity build here (how do we do that?)

Hmm, it looks like triggering a custom build is not allowed for me. I'll close and reopen this pr.

@leventov wtf are these teamcity inspections and how do we disable them?

The TC error seems spurious, it refers to files that were not edited in this patch. I tried re-triggering the job.


Dev browser onboarding

Related to  TrustPoint-Project/trustpoint-dev#17
Pem files get bundled into a zip
Download token is generated
OTP entry has a limit of 3 tries
Legal

[x] I certify that I have all necessary rights to publish this contribution under the MIT license. I agree to the Trustpoint CLA and have added my name to the AUTHORS.md file.

Hey BytesWelder,
we may want to use the serializer classes for the serialization and deserialization, e.g. PKCS#12 loading and construction. Same should be true for the PEM files.
Alex

@AlexHx8472
The serializers are a good thing. Makes it a lot easier.
Thank you

@Aircoookie I merged your pki-request-pkcs12-serializer branch into this one so i can finish it.
This branch is now ready to merge.


[edn] Instants are not round-tripping correctly

Our support for #inst is patchy: we're not parsing it correctly and we're not printing it correctly.  Fix inbound.

Closed by #687.


fix(ripple): Use mdc-dom.matches instead of getMatchesProperty()

mdc-dom is implementing a matches method that wasn't used everywhere.
getMatchesProperty() will be removed in the next release of mdc-web by https://github.com/material-components/material-components-web/pull/4372.
It prevented some SSR usage of the material-components library.
This commit replaces getMatchesProperty() usage by matches.
It will partially resolve #654.

Codecov Report

Merging #706 into rc0.11.0 will increase coverage by 0.19%.
The diff coverage is 50%.

@@             Coverage Diff              @@
##           rc0.11.0     #706      +/-   ##
============================================
+ Coverage     94.98%   95.18%   +0.19%
============================================
  Files            73       73
  Lines          2912     2905       -7
  Branches        444      441       -3
============================================
- Hits           2766     2765       -1
+ Misses           50       45       -5
+ Partials         96       95       -1

Impacted Files
Coverage Δ

packages/ripple/index.tsx
90.09% <33.33%> (+4.62%)
:arrow_up:

packages/tab-scroller/index.tsx
96.9% <66.66%> (-0.04%)
:arrow_down:

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 84b6395...06eefab. Read the comment docs.

I was about to create this PR 😅but nice to see!


Cant run a chroot without it crashing

name: unity
encrypted: yes, unlocked
Entering /mnt/stateful_partition/crouton/chroots/unity...
crouton: version 1-20220111101058~master:a9eafaee
release: impish
architecture: amd64
xmethod: xorg
targets: unity
host: version 14695.85.0 (Official Build) stable-channel octopus
kernel: Linux localhost 4.14.254-19064-g577a877aa35d #1 SMP PREEMPT Wed May 25 19:32:47 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Not unmounting /mnt/stateful_partition/crouton/chroots/unity as another instance is using it.
name: xenial
encrypted: yes, locked
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

Please describe your issue:
I made a new chroot that is xenial and unity with the command

sudo crouton -e -t unity -r xenial
When I open the chroot everything looks ok, but when I click the desktop or run an application I this happens

also it appears to be installing impish even when I explicitly tell it to install xenial. This same thing happens whenever I try to run impish, it always crashes
If known, describe the steps to reproduce the issue:

Make a new chroot with

sudo crouton -e -t unity -r xenial
or

click on the desktop

Possible duplicate of #4368? Also, it appears you have two chroots (One with the name "unity" and another with "xenial").

Ok so I ran it again and I could run it just fine but upon switching back to chromeos it crashed again with this error

Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service files

Ok so I ran it again and I could run it just fine but upon switching back to chromeos it crashed again with this error

Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service files

So, this is the same error that I got in the previously linked issue, although there tends to be a little bit more to the message than just that part, is it like that for you?

check the file system if on a sdcard
crosh > shell
sudo umount /dev/*****
sudo fsck /dev/*****
reply fix? a
when clean
remount exec and symfollow
delete some chroots and try again
most of my chroots need fsck daily on external FS

mmcblk1       179:64   0 183.3G  0 disk /
zram0         252:0    0   5.5G  0 disk [SWAP]
(wrk)coco@localhost:/usr/local/bin$ df
df: /home/coco/.cache/doc: Operation not permitted
Filesystem              1K-blocks      Used Available Use% Mounted on
/dev/mmcblk1            189234312 113067328  66538008  63% /
yes fsck 1 dev at a time at shell no chroot open


travis: update to new build infrastructure

See here for the reasoning:
http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
Quick version: these changes remove our use of sudo so that we can move to the container-based
builds. This yields quicker builds and less reliance on the old infrastructure. It looks to be ~30%-50% quicker, though it's hard to tell because there's so much variance.
Since we can't use sudo, we now have to handle packages in the build-matrix rather than as part of the build step.
The second commit is pretty much unrelated, I just noticed that there was a gap in testing here.

ACK


[Storage]  Verify the code coverage and add more tests as needed

Fix nyc code coverage and see if we have missed any workflows.

Could we close this issue now as it seems to be about a past release?

Yes, I think we have good coverage now!


0 connections

Hi - I just downloaded and ran the java full node wallet in Windows 8.1. I allowed it when the firewall asked but it continues to say "0 connections" in red.
Can I add nodes in a .conf file or do anything to help it get connections to sync the blockchain?

How long did you give it to get a connection? It could take some time before it gets it first connection.


Create conda_build_config.yaml to build with R 4.1

Checklist

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

r-gpindex is now built for R 4.1, so this PR makes r-piar available for R 4.1 (and hence Windows).

@conda-forge-admin, please rerender


added continue-on-errors option for use in specific cases such as end…

…points with errors or incompatibility in legacy projects

Thanks for your PR @jmgoncalves97, and I appreciate you adding a test case too. Just left a small comment, but the rest looks good to me.
cc @tomirons

I'm happy to be able to contribute, @andreaselia !

@jmgoncalves97 do you by chance have any ideas on what could be causing a test to fail?


No QR option on DIY Jade (TTYGO)

I want to use a TTYGO as a barebones stateless seed signer. I followed all instructions on https://github.com/bitcoin-tools/diyjade and it works without any issue, except that when I reach the connect screen, there is only USB and bluetooth options, no QR option.

A standard ttgo doesn't have a camera ... ?

Maybe I misunderstood how this works, but I don't want to scan QR code, only input seed words manually. I do want however to display QR codes to sign tx or get receiving addresses.

In some way your wallet app needs to communicate with Jade.  Jade supports USB, Bluetooth(BLE), and (if it has a camera) scanning QR codes.  QR/'airgapped' mode really only works if Jade scan QR codes (and so needs a camera).
eg., to operate sign tx's in an 'airgapped' manner:
a) Jade scans a QR code of the unsigned tx (as displayed by the wallet sw)
b) Jade displays some details (spend, fees) for the user to view/confirm
c) Jade displays a QR code of the now-signed transaction (which the phone/laptop wallet app will need to scan).
Obviously we need a camera to get the tx to sign onto Jade in the first place, Step (a).  If some app has sent the tx to Jade over the USB (or Bluetooth) connection we send the signatures back in the same way.
In your scenario, how would you intend to get the transaction details onto Jade ?
Re addresses, Jade doesn't usually generate addresses on its own - usually the wallet application on your phone or laptop would be doing that - but Jade can be used to verify these addresses.

the sw wallet app derives an address and displays it as a  string, and may display it as a QR code for the coin-sender to scan
the wallet app can send jade the address path (eg. 'm/48'/0'/'0'/2'/0/1') and Jade will display the address for the user to verify (ie to check it is the same as the sw app says it is).
a Jade with a camera can scan the address QR being displayed, and will check it against expected address paths and confirm it is good.

Again some information (the address path or the address itself) has to be communicated to Jade - for a Jade without a camera this is going to be via USB or BLE ...
Perhaps I'm not fully understanding your intended use case - how would you like to work with Jade, once the seed words have been entered ?

My bad, I fundamentally misunderstood how this works, probably not enough research. Sorry for the irrelevant issue and thanks for taking the time to explain this to me in details!

No problem!


Duplicate Helm Deployment.Started/Finished CloudEvents when using helm-service on a remote execution plane

Environment

Client OS (e.g., Linux, macOS, Windows): Linux
Keptn Version (keptn version): 0.8.2
Kubernetes Cloud Provider (e.g., GKE, AKS): GKE
Kubernetes version (kubectl version): GKE 1.17

Affected Component

[ ] Docs
[ ] CLI
[x] Kubernetes Integration
[ ] Openshift Integration
[x] Helm
[ ] Istio
[ ] Bridge
[ ] Approval
[ ] Datastore
[ ] REST API
[ ] eventbroker / distributor
[ ] jmeter

Describe the bug
In both, integration tests and on a separate installation (reported by @donovanmuller - see this slack thread) there are duplicate events when deploying helm-service as a remote-execution plane service.
This leads to various problems, e.g.:

To Reproduce
Install Keptn control-plane on cluster A, and install Keptn helm-service / jmeter-service on a separate cluster according to our docs.
https://keptn.sh/docs/0.8.x/operate/multi_cluster/#install-keptn-execution-plane

We found that helm-service is receiving the .triggered event (handled in gotEvent), but it does not respond immediately with a HTTP 200 on that endpoint.
Distributor however polls .triggered event regularly, and adds them to a Cache once the receiving services has responded.
In this case, the receiving service is helm-service and does not respond quick enough (e.g., due to a git upstream delay or slow processing in general).
This is caused by the following code:
https://github.com/keptn/keptn/blob/0e13840285ac70343dab2ccfd24bc90c778fed4d/helm-service/controller/deployment_handler.go#L55-L93
The fix should be as simple as calling the go routines using go ... Handlevent() here:
https://github.com/keptn/keptn/blob/01ca31a892e783c537ee4efe709267e022f9b943/helm-service/main.go#L86-L104


Drop batching of pending indices for bulk operations

For insert from query statements we used to batch the creation of indices
(to 100) and the corresponding requests.
For tables with fewer than 100 partitions, this means that all the data that had
to be inserted was batched in memory, potentially leading to OOM for large
datasets.

Codecov Report

Merging #5953 into master will decrease coverage by 0.03%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #5953      +/-   ##
============================================
- Coverage     83.11%   83.08%   -0.04%
+ Complexity    12359    12355       -4
============================================
  Files          1429     1429
  Lines         46738    46735       -3
  Branches       5739     5738       -1
============================================
- Hits          38847    38829      -18
- Misses         5227     5241      +14
- Partials       2664     2665       +1

Impacted Files
Coverage Δ
Complexity Δ

...o/crate/operation/projectors/ShardDMLExecutor.java
88.23% <100%> (ø)
12 <0> (ø)
:arrow_down:

.../projectors/BatchIteratorBackpressureExecutor.java
93.24% <100%> (ø)
21 <0> (ø)
:arrow_down:

...e/operation/projectors/ShardingUpsertExecutor.java
87.42% <100%> (+0.38%)
30 <3> (-2)
:arrow_down:

...in/java/io/crate/lucene/match/CrateRegexQuery.java
43.47% <0%> (-30.44%)
4% <0%> (-4%)

...ration/reference/doc/lucene/IpColumnReference.java
72.72% <0%> (-13.64%)
5% <0%> (ø)

...rc/main/java/io/crate/analyze/UnboundAnalyzer.java
75% <0%> (-10%)
2% <0%> (ø)

...ate/planner/node/dql/PlanWithFetchDescription.java
80% <0%> (-10%)
12% <0%> (-2%)

...ticsearch/indices/recovery/BlobRecoveryStatus.java
63.63% <0%> (-9.1%)
3% <0%> (-1%)

...va/io/crate/planner/projection/EvalProjection.java
54.16% <0%> (-8.34%)
9% <0%> (-1%)

...peration/collect/BatchIteratorCollectorBridge.java
65.78% <0%> (-7.9%)
2% <0%> (ø)

... and 20 more

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 f2e8514...b2b7ab3. Read the comment docs.