Time Threshold does not have any effect

When I am setting Time Threshold to 20 minutes, the workflow shows all events in a day and not as expected within the next 20 minutes.
My time format is set to: HH:MM:SS (24hrs)

I did not change the default value.

@Acidham Hm, that is strange. May I ask what timezone you are in? And also what is your system-set language/locale?

May I ask what timezone you are in?

❯ python3 -c 'import time;print(time.tzname)'
('CET', 'CEST')

And also what is your system-set language/locale?
❯ python3 -c 'import locale;print(locale.getdefaultlocale())'
('en_US', 'UTF-8')

@Acidham Sorry for the delay in replying. I've been thinking about this ever since you sent your timezone/locale details above.
I've reviewed the code that does the time computation, and I can't see how the minutes can be interpreted any other way than what is correct. So I suspect the discrepancy is stemming from the data in one of your calendar events (which should always be local time, based on how I'm retrieving them, but maybe not in your case). 🤷♂😅

I tried to debug your code on my side, but after upgrading to macOS 13.0 the Workflow stopped working. It seems osascript is stuck/running forever.

@Acidham Oh, sorry to hear that. I have not yet upgraded to macOS Ventura, but I am planning to soon. I'll make a note to debug this workflow when I'm done upgrading (I use it myself, after all).

@Acidham After further research, try running xcode-select --install in the Terminal to see if Apple's Command Line Tools need to be reinstalled:
xcode-select --install

Follow the prompts if it asks you to install the Apple Command Line Tools again. Once everything downloads and installs, that may resolve the post-upgrade issues.

I already did that for my other workflows. But yours is not working and I am not sure if it is related to Ventura.
when I try to execute the apple script nothing happens and ScriptEditor need Force Quit to stop

@Acidham Hmm, how many calendars do you have enabled? On average, how many calendar events do you have per day in the Calendar app
One other thing you can try is making sure that Alfred has the appropriate permissions to run the workflow. Not sure if "Terminal" will need the same permissions, but you can probably play around and see if anything works better. 😅

For sure, Privacy&Security is set up in the right way.
What I found out after debugging your code (event.py, after 5 min wait time) is that all calendars will be loaded also the ones which are not set to active in calendar app (e.g. Family calendars).
Is there must be a way to tell the AS which calendar to load?

@Acidham That should be doable. Will take some work on my part, though. I'll create a separate issue for this, and tag you so you can follow the progress (as I will eventually want you to test the beta version).

(as I will eventually want you to test the beta version)

coun't me in!

Now that #19 is taken care of, please let me know if this time threshold quirk is still present for you.

@Acidham Just want to follow up on this: are you still experiencing issues with the time threshold?

Good that, you ask. The time threshold does not work. The workflow shows all event in the current day and not as expected in the configured time threshold.

@Acidham Interesting. I still want to get to the root of this issue, and since I am unable to reproduce the issue myself, can you please send me an email and perhaps we can schedule a Zoom call? I think some live-debugging of the workflow code on your end would really help to identity what is going on.

It is a bit weir'ed .... Any number below 17 min is not working, everything above is working. You may change some numbers below 17 min to reproduce.

@Acidham Hm, still can't reproduce on my end by changing Time Threshold to some number below 17. But of course, you'll get the "All Events" view if, say, you change the threshold to 1 minute, but the meeting is still 2 or more minutes away.
For the event you're testing with, I have three questions:

What does the result subtitle say is the start time of that event?
What does your system current time say at the moment you answer question (1) above?
What is your configured time threshold when testing all this?

The logic for the time range calculation isn't complicated, so I would expect the discrepancy would need to come from some mismatch between the system's current time and the start time of the event.
# Return True if the given date/time object is within the acceptable tolerance
# range (e.g. within the next 15 minutes OR in the last 15 minutes); if not,
# return False
def is_time_within_range(event_datetime, event_time_threshold_mins):
    current_datetime = datetime.now()
    event_time_threshold = timedelta(minutes=event_time_threshold_mins)
    min_datetime = (event_datetime - event_time_threshold)
    max_datetime = (event_datetime + event_time_threshold)
    if min_datetime <= current_datetime <= max_datetime:
        return True
    else:
        return False

I think I found the issue after debugging. Your logic line 104 is saying elif all_events and not upcoming_events: when upcomming_events (no events found in threshold) use all events.
And shame on me, the workflow result is stating exactly this, "Showing all Calendar Events". But this "feature" was somehow not expected and therefore I was confused.

@Acidham It's alright! I actually realized a few days ago that the wording isn't clear, and have pushed 0b6cb8a7923a7ddc5f9703a6e87866bee0d5c710 to improve the wording. I may still tweak this wording a bit more to make things even more clear.
All that to say, the language will be clearer in the next release of the workflow.

did you receive my email re 24/12 hour clock switch?


aggregate functions with distinct function returns no result

We use in our application a specific rate of error (type) based on unique values.  The statement below is just a example to clarify the problem.
Using the distinct functions with count works fine, using sum and count together works fine.
But using sum and count with distinct function fails.
For example:
select sum(value)/ count(distinct value2) from cpu
or
select sum(value)/ count(distinct(value2)) from cpu
returns
time
1970-01-01T00:00:00Z

value is a float.
value2 is a string (i tried also with float - same result)
I tried in 0.9.0 (ubuntu and OS X 10.10.3) and 0.9.1 rc-1(ubuntu)

@markuspatrick what are the results of select sum(value) from cpu and select count(distinct(value2)) from cpu?

@beckettsean: Below you see what I was trying:
> select * from cpu
name: cpu
tags: host=A
time				value	value2
----				-----	------
2015-07-15T06:59:10.388781057Z	2.3	1
2015-07-15T06:59:29.156098195Z	2.1	1
2015-07-15T06:59:34.115838982Z	2.4	2

> select sum(value) from cpu
name: cpu
---------
time			sum
1970-01-01T00:00:00Z	6.800000000000001

> select count(distinct(value2)) from cpu
name: cpu
---------
time			count
1970-01-01T00:00:00Z	2

> select sum(value)/count(distinct(value2)) from cpu
name: cpu
---------
time
1970-01-01T00:00:00Z

Thanks for the data @markuspatrick. I'm pretty sure this is a special case of https://github.com/influxdb/influxdb/issues/3000, since your denominator is always an integer. Closing in favor of that issue.

@beckettsean: Sorry the problem stays the same in 0.9.3 :(

Looks like it's something to do with DISTINCT in the denominator (using curl to show the null returns):
the SUM and COUNT(DISTINCT) queries run fine on their own (with a little integer math weirdness):
$ curl ...  "q=select sum(value) from funcmath"; echo
{"results":[{"series":[{"name":"funcmath","columns":["time","sum"],"values":[["1970-01-01T00:00:00Z",6.800000000000001]]}]}]}

$ curl ...  "q=select count(distinct(value2)) from funcmath"; echo
{"results":[{"series":[{"name":"funcmath","columns":["time","count"],"values":[["1970-01-01T00:00:00Z",2]]}]}]}

But dividing one by the other fails:
$ curl ...  "q=select sum(value) / count(distinct(value2)) from funcmath"; echo
{"results":[{"series":[{"name":"funcmath","columns":["time",""],"values":[["1970-01-01T00:00:00Z",null]]}]}]}

$ curl ...  "q=select count(distinct(value2)) / sum(value) from funcmath"; echo
{"results":[{"series":[{"name":"funcmath","columns":["time",""],"values":[["1970-01-01T00:00:00Z",null]]}]}]}

It appears to be isolated to the COUNT(DISTINCT) composite function. These all work:
$ curl ...  "q=select sum(value) / 2 from funcmath"; echo
{"results":[{"series":[{"name":"funcmath","columns":["time",""],"values":[["1970-01-01T00:00:00Z",3.4000000000000004]]}]}]}

$ curl ...  "q=select distinct(value2) from funcmath"; echo
{"results":[{"series":[{"name":"funcmath","columns":["time","distinct"],"values":[["1970-01-01T00:00:00Z",[1,2]]]}]}]}

$ curl ...  "q=select sum(value) / count(value2) from funcmath"; echo
{"results":[{"series":[{"name":"funcmath","columns":["time",""],"values":[["1970-01-01T00:00:00Z",2.266666666666667]]}]}]}

but these fail:
$ curl ...  "q=select 6.8 / count(distinct(value2)) from funcmath"; echo
{"results":[{"series":[{"name":"funcmath","columns":["time",""],"values":[["1970-01-01T00:00:00Z",null]]}]}]}

$ curl ...  "q=select count(distinct(value2)) / 2 from funcmath"; echo
{"results":[{"series":[{"name":"funcmath","columns":["time",""],"values":[["1970-01-01T00:00:00Z",null]]}]}]}

I think this is fixed in the latest version. As long as both of the variables are fields, I get an output. It appears like count(distinct(host)) where host is a tag doesn't work, but that query doesn't seem to work normally.
I'm going to close this as fixed. Please reopen if you have trouble with the latest version so we can resolve this issue if it still exists. Thanks.


Jestin/saas/react native/plate tapping UI

added skeleton fixes and better portrait and landscape skeleton adjustments

@Jestin64 Plz syn with dev branch


Change the values to keys in the skeleton.yaml

@wurstbrot
Until now the skeleton looks like this:
logging capabilities:
    level: Level 1
    components:
      - string: confirmed by security team member
      - date: confirmed date
      - string: project id
      - string: logging url

thresholds for logging and monitoring:
  level: Level 2
  components:
    - string: confirmed by security team member
      date: confirmed date

Shouldn't it be like this:
logging capabilities:
    level: Level 1
    components:
      - string: confirmed by security team member
      - date: confirmed date
      - string: project id
      - string: logging url

thresholds for logging and monitoring:
  level: Level 2
  components:
    - string: confirmed by security team member
    - date: confirmed date

So I mean an array in components for each activity


Gulp 4 Compat.

Updating peerDependencies to allow for anything >=3.0.0, because I keep getting this NPM warning when using Gulp v4.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.

I get the same warning even with this change. It should go away when Gulp 4 is released on npm, provided "peerDependencies" is updated as you suggest. But I don't want to update it until a stable version of Gulp 4 is released, as it should be tested against that version. Until then, I think you'll have to put up with the warning.
Does that make sense, or is there something here I'm missing?

I've decided to remove gulp from "peerDependencies" entirely. This will fix the problem. Thanks for raising this issue.


Adjust parameters to match original

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@14446be). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master       #3   +/-   ##
=========================================
  Coverage          ?   69.16%
=========================================
  Files             ?        2
  Lines             ?      120
  Branches          ?        0
=========================================
  Hits              ?       83
  Misses            ?       37
  Partials          ?        0

Impacted Files
Coverage Δ

ptavitm/vae.py
79.16% <100%> (ø)

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 14446be...5b0366c. Read the comment docs.


Fixed typo in test case and modified the test case

Tested in local machine. The solution in .json is accepted when Run Tests is clicked.
Passes npm run test-challenges.
Closes #4967
Discussion related to this code modification can be viewed at #4975.

Really appreciate the diligence on this one.  Looks great!

All credits to @BerkeleyTrue for identifying the fix for weird behavior.


Fix a typo, reformat docstrings for easier reading

Add line breaks to make things easier to read, and fix a typo. No functional change.
Fixes #4579.

Most of these changes need to be mirrored in the Swift docs too.


Missing libmonitoring-plugin-perl for crm/corosync checks on jammy

When trying to run /usr/local/lib/nagios/plugins/check_crm or check_corosync_rings on jammy machines, I got the following error:
Can't locate Nagios/Plugin.pm in INC (you may need to install the Nagios::Plugin module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/local/lib/nagios/plugins/check_crm line 70.
Installing libmonitoring-plugin-perl manually fixed it, but I guess that should be set up by the charm

(by eric-chen)
I guess it is a duplicated issue with
https://bugs.launchpad.net/charm-nrpe/+bug/2017602

(by raychan96)
Hi Marcus, thanks for reporting this issue.
Can I ask what is your deployment? As far as I know charm-nrpe does not install check_crm on its own; it's provided by other principal charms. Principal charms that are related to charm-nrpe via nrpe-external-master interface, can request extra checks, and this is one of the possible situation that check_crm and the necessary packages get installed. For example, the deployment of

keystone:ha <-> hacluster:ha
hacluster:nrpe-external-master <-> nrpe:nrpe-external-master

will install check_crm and check_corosync_rings on keystone unit with proper required dependency "libmonitoring-plugin-perl" [1]. In this case, I was not able to reproduce your issue.
[0] https://git.launchpad.net/charm-nrpe/tree/README.md#n67
[1] https://opendev.org/openstack/charm-hacluster/src/commit/0628e02983605313dd82b4501d54e9c027b669c7/hooks/hooks.py#L144
In short summary, your issue may not be related to the charm-nrpe but may be related to the principal charm itself. So it will be helpful if you can share your deployment.


Added GrapeCity FlexGrid Showcase sample

Summary
Added GrapeCity FlexGrid Showcase sample.
@OliaG told us that we can submit a PR with our sample here.
Fixes #Issue_Number, dotnet/docs#Issue_Number or dotnet/dotnet-api-docs#Issue_Number (if available)

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: gc-deniszmitrichenko sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

It is not build, wrong versions of packages, I'll submit another PR.


Ionic 3.9.2 Build Fails using --prod with browser

Ionic version:  (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
[ ] 4.x
I'm submitting a ...  (check one with "x")
[x] bug report
[ ] feature request
Current behavior:
Build fails
Expected behavior:
Build should pass
Steps to reproduce:
In package.json scripts:
    "build-dev": "ionic-app-scripts build -- --dev",
    "build-prod": "ionic-app-scripts build -- --prod",
    "build-dev-browser": "npm run build-dev && cordova build browser --debug",
    "build-prod-browser": "npm run build-prod && cordova build browser --release",

Works:
$ npm run build-dev-browser

Fails:
$ npm run build-prod-browser

Output from fail:
[14:21:00]  copy finished in 11.82 s
[14:21:07]  ionic-app-script task: "build"
[14:21:07]  Error: ./src/app/main.ts Module not found: Error: Can't resolve './app.module.ngfactory' in
            'D:\dev\mckissock\Colibri.Dashboard\src\app' resolve './app.module.ngfactory' in
            'D:\dev\mckissock\Colibri.Dashboard\src\app' using description file:
            D:\dev\mckissock\Colibri.Dashboard\package.json (relative path: ./src/app) Field 'browser' doesn't contain a
            valid alias configuration after using description file: D:\dev\mckissock\Colibri.Dashboard\package.json
            (relative path: ./src/app) using description file: D:\dev\mckissock\Colibri.Dashboard\package.json (relative
            path: ./src/app/app.module.ngfactory) no extension Field 'browser' doesn't contain a valid alias
            configuration D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory doesn't exist .ts Field
            'browser' doesn't contain a valid alias configuration
            D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.ts doesn't exist .js Field 'browser' doesn't
            contain a valid alias configuration D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.js
            doesn't exist .json Field 'browser' doesn't contain a valid alias configuration
            D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.json doesn't exist as directory
            D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory doesn't exist
            [D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory]
            [D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.ts]
            [D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.js]
            [D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.json]
            [D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory] @ ./src/app/main.ts 2:0-60
Error: ./src/app/main.ts
Module not found: Error: Can't resolve './app.module.ngfactory' in 'D:\dev\mckissock\Colibri.Dashboard\src\app'
resolve './app.module.ngfactory' in 'D:\dev\mckissock\Colibri.Dashboard\src\app'
  using description file: D:\dev\mckissock\Colibri.Dashboard\package.json (relative path: ./src/app)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: D:\dev\mckissock\Colibri.Dashboard\package.json (relative path: ./src/app)
    using description file: D:\dev\mckissock\Colibri.Dashboard\package.json (relative path: ./src/app/app.module.ngfactory)
      no extension
        Field 'browser' doesn't contain a valid alias configuration
        D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory doesn't exist
      .ts
        Field 'browser' doesn't contain a valid alias configuration
        D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.ts doesn't exist
      .js
        Field 'browser' doesn't contain a valid alias configuration
        D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.js doesn't exist
      .json
        Field 'browser' doesn't contain a valid alias configuration
        D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.json doesn't exist
      as directory
        D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory doesn't exist
[D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory]
[D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.ts]
[D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.js]
[D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory.json]
[D:\dev\mckissock\Colibri.Dashboard\src\app\app.module.ngfactory]
 @ ./src/app/main.ts 2:0-60
    at new BuildError (D:\dev\mckissock\Colibri.Dashboard\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28)
    at callback (D:\dev\mckissock\Colibri.Dashboard\node_modules\@ionic\app-scripts\dist\webpack.js:121:28)
    at emitRecords.err (D:\dev\mckissock\Colibri.Dashboard\node_modules\webpack\lib\Compiler.js:269:13)
    at Compiler.emitRecords (D:\dev\mckissock\Colibri.Dashboard\node_modules\webpack\lib\Compiler.js:375:38)
    at emitAssets.err (D:\dev\mckissock\Colibri.Dashboard\node_modules\webpack\lib\Compiler.js:262:10)
    at applyPluginsAsyncSeries1.err (D:\dev\mckissock\Colibri.Dashboard\node_modules\webpack\lib\Compiler.js:368:12)
    at next (D:\dev\mckissock\Colibri.Dashboard\node_modules\tapable\lib\Tapable.js:218:11)
    at Compiler.compiler.plugin (D:\dev\mckissock\Colibri.Dashboard\node_modules\webpack\lib\performance\SizeLimitsPlugin.js:99:4)
    at Compiler.applyPluginsAsyncSeries1 (D:\dev\mckissock\Colibri.Dashboard\node_modules\tapable\lib\Tapable.js:222:13)
    at Compiler.afterEmit (D:\dev\mckissock\Colibri.Dashboard\node_modules\webpack\lib\Compiler.js:365:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build-prod: `gulp default && ionic-app-scripts build -- --prod`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build-prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\b\AppData\Roaming\npm-cache\_logs\2017-11-08T22_21_07_587Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build-prod-browser: `gulp default && npm run build-prod && cordova build browser --release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build-prod-browser script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\b\AppData\Roaming\npm-cache\_logs\2017-11-08T22_21_07_612Z-debug.log

b@pg0 MINGW64 /d/dev/mckissock/Colibri.Dashboard (test) $

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
$ ionic info

cli packages: (C:\Users\b\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.17.0
    ionic (Ionic CLI) : 3.17.0

global packages:

    cordova (Cordova CLI) : 7.1.0
    Gulp CLI              : CLI version 1.4.0 Local version 3.9.1

local packages:

    @ionic/app-scripts : 3.1.0
    Cordova Platforms  : browser 5.0.1
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node              : v8.9.0
    npm               : 5.5.1
    OS                : Windows 10

Environment Variables:

    ANDROID_HOME : F:\Android\Sdk

Misc:

    backend : legacy

b@pg0 MINGW64 /d/dev/mckissock/Colibri.Dashboard (test) $

same here

same issue here
https://github.com/ionic-team/ionic/issues/13356

same here

Same here, but I'm getting
ionic-app-scripts build --prod

/Users/clutch/.config/yarn/global/node_modules/node-sass/lib/binding.js:13
      throw new Error(errors.unsupportedEnvironment());
      ^

Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (59)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.5.3
    at module.exports (/Users/clutch/.config/yarn/global/node_modules/node-sass/lib/binding.js:13:13)
    at Object.<anonymous> (/Users/clutch/.config/yarn/global/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (module.js:641:30)
    at Object.Module._extensions..js (module.js:652:10)
    at Module.load (module.js:560:32)
    at tryModuleLoad (module.js:503:12)
    at Function.Module._load (module.js:495:3)
    at Module.require (module.js:585:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/clutch/.config/yarn/global/node_modules/@ionic/app-scripts/dist/core/bundle-components.js:6:16)

Same, but I got
ionic-app-scripts build --prod

[06:43:49]  ionic-app-scripts 3.1.0
[06:43:49]  build prod started ...
[06:43:49]  clean started ...
[06:43:49]  clean finished in 5 ms
[06:43:49]  copy started ...
[06:43:49]  deeplinks started ...
[06:43:49]  deeplinks finished in 137 ms
[06:43:49]  ngc started ...
[06:43:50]  ionic-app-script task: "build"
[06:43:50]  Error: Cannot find module '@angular/compiler-cli/ngtools2'
Error: Cannot find module '@angular/compiler-cli/ngtools2'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at /Users/clutch/.config/yarn/global/node_modules/@ionic/app-scripts/dist/aot/aot-compiler.js:206:90
    at <anonymous>

I'm on versions
    angular stuff @5.0.0,
    "@ionic-native/core": "4.3.1",
    "@ionic-native/splash-screen": "4.3.1",
    "@ionic-native/status-bar": "4.3.1",
    "@ionic/storage": "2.1.3",
    "rxjs": "5.5.2",
    "ionic-angular": "3.9.2",
    "@ionic/app-scripts": "3.1.0",

The original stacktrace looks like it would be from app-scripts side. If you have a package-lock file, it could be caching the version. If you could, try to delete node_modules and the lock file then reinstall

I posted a possible solution (it worked from me) here:
#13356

Closing and moving over to #13356

I deleted my node_modules and package-lock.json and the original stack trace is still happening. Looking in #13356, I don't see a solution there as of now.

Related: #13372


fix(cli): kamel install fails with error: Object 'Kind' is missing in 'null'

Fix #2674

Release Note
NONE

Added another commit to make error message more friendly in case of the same issue happening next time.

There is a conflict but I think you can remove that pkg/resources/resources.go  file anyway.


Shutdown if iptables-save fails

Hi,
Thanks for an interesting exporter. We are currently investigating using it for one of our deployments.
When developing the Ansible role for deploying it to a server, I discovered that the error handling works in a slightly unusual way: if the capabilities for the process described in https://github.com/retailnext/iptables_exporter#required-permissions are not available, each request to /metrics will result in an exit status 1 error being logged to the syslog. The process will remain running.
I think this is not perhaps an ideal error handling strategy. It would be better if iptables-save would be called right on start, and if it fails, abort the process (exit with a non-zero return code). That way, the semantics are much more clearer to the user that "something is not working as it should".
Your thoughts on this, @eriksw?
Nov  6 13:43:00 scalability-test-centre iptables_exporter[71596]: time="2019-11-06T13:43:00Z" level=info msg="Starting iptables_exporter (version=0.1.0, branch=master, revision=9172cd2acb4afc4ba77d48c85a46fbef36d5cb80)" source="iptables_exporter.go:153"
Nov  6 13:43:00 scalability-test-centre iptables_exporter[71596]: time="2019-11-06T13:43:00Z" level=info msg="Build context (go=go1.10.3, user=root@f2efa59b1ef9, date=20180628-04:29:29)" source="iptables_exporter.go:154"
Nov  6 13:43:00 scalability-test-centre iptables_exporter[71596]: time="2019-11-06T13:43:00Z" level=info msg="Listening on <IP_ADDRESS>:9455" source="iptables_exporter.go:170"
Nov  6 13:43:46 scalability-test-centre iptables_exporter[71596]: time="2019-11-06T13:43:46Z" level=error msg="exit status 1" source="iptables_exporter.go:95"
Nov  6 13:44:23 scalability-test-centre iptables_exporter[71596]: time="2019-11-06T13:44:23Z" level=error msg="exit status 1" source="iptables_exporter.go:95"
Nov  6 13:44:24 scalability-test-centre iptables_exporter[71596]: time="2019-11-06T13:44:24Z" level=error msg="exit status 1" source="iptables_exporter.go:95"

One concern I have with exiting out is if there are any circumstances where an exit status of 1 from iptables-save could be transient, but I think it's entirely reasonable to expect that the exporter is run from something that will restart it.
A related thought I have is that iptables_scrape_success might not be a good idea, that it might be better if the request from Prometheus gets an http error response, so that the exporter being in an unhealthy state (unable to run iptables-save) will trip a generic "master caution" alert (up == 0) within Prometheus to draw attention to the issue.
This project isn't a high priority for me at the moment, but I'd be happy to accept a PR improving on this in either or both ways. (Also eratta like switching to go modules and bringing in a more up to date prometheus lib, etc...)

Thanks for a prompt reply. Yes, we run the exporter from systemd (like I presume most people would do), so automatic restarts are simple in that sense.

A related thought I have is that iptables_scrape_success might not be a good idea, that it might be better if the request from Prometheus gets an http error response, so that the exporter being in an unhealthy state (unable to run iptables-save) will trip a generic "master caution" alert (up == 0) within Prometheus to draw attention to the issue.

Yep, that also sounds reasonable. (We have alerts for that specific kind of scenario, as a generic fallback in case we don't have more specific alerts for a given service)

This project isn't a high priority for me at the moment, but I'd be happy to accept a PR improving on this in either or both ways.

Would be an interesting experiment, but I don't really have really any Go experience from beforehand, and it's not really very high on my priority list either. :slightly_smiling_face: (= other work is more important at the moment) Given that the exporter typically works (if the capabilities are there), this is mostly for me about being able to properly handle edge cases.
I'd suggest we leave the issue open for some time, if not for anything else that it keeps track of this discussion having taken place. Maybe it will scratch an itch for someone else with more time/urgency to get this improved. :innocent:

Thanks @eriksw for that exporter. I was about to write an uggly shellscript myself, when I found this project.
Concerning the issue, I may add, that the semantics of prometheus exporters have never been, to change the HTTP-returncode, when an error occurs for the scraping.
Signaling config- or scrape- errors in a dedicated metric is what node_exporter does for example (ie for textcollector metrics).
Having an error metric and a last-successfull-scrape metric would be suggestion, if anyone diggs into that.


noncompliant version(s) of SDK(s)

We reviewed SDKs used by your app and found noncompliant version(s) of SDK(s) which collects persistent device identifiers. Persistent device identifiers may not be linked to other personal and sensitive user data or resettable device identifiers.
Issue details
We found an issue in the following area(s):
Version code 2077:
SDK: Cardinal Commerce org.jfrog.cardinalcommerce.gradle:cardinalmobilesdk (consider upgrading to version 2.2.7-2)

Bumping the dropInUI version to 3.5.0 solves this. Long term we would like to migrate to V6.x as per: https://github.com/braintree/braintree-android-drop-in/blob/main/v6_MIGRATION_GUIDE.md
Closed with: https://github.com/cefonline/cef-react-native-braintree-payments-drop-in/pull/9/files


10883 DEV Update systemNodes post to get runtimetemplate correctly

https://github.com/Shippable/pm/issues/10883

This is complete.
Closing.


Change reference from 'transform' to 'transformWithDetails'

'transformWithDetails' differs slightly from 'transform' for the sourceMap option. With 'transform', the expected behavior is that the sourcemap is appended inline to the output. 'transformWithDetails' returns the sourcemap in the result object. Please consider this change since the options doesn't behave as expected.
Alternatively, would it be a good idea to append the sourcemap to the output within gulp-react?

I've improved the docs. Which method it uses isn't very relevant as Source Maps are handled for you.

Thanks!


TTF / WOFF/WOFF2 version?

Problem Description:
I'd live to use said font on Desktop and Web but AFAICT that's none in the files nor is there any documentation on how to build it.

Ideal Solution:
I'd love to see TrueType and WOFF2 files in the releases (or inside a released archive).

Considered Alternatives:

Trying to find a way to use the original font somehow
Looked at alternatives like Lavender that aim at the same.

Sadly, those seem to not support that either

Additional Context:
Whilst hard-baking a font into a program like a kernel or distribution like illumos it's not practical in most use cases ranging from websites to applications.

Oh, I just found out that another project had that done that, tho it's only a TTF...


Manage network interface only EIP

Hello,
When we create a NAT Gateway for exemple, the EIP associated to it only has a network interface id, no instance id.
This result that the command try to allocate this EIP to my instance but get a 400 bad request because EIP already associated to NAT gateway.
We should modify the _get_unassociated_address() to manage it because today, it only check if EIP as instance ID
Thanks !

I guess #17 would fix this.

This should be fixed in the current release.


disable unwanted logs

how to disable these logs?
[ 2][t 4][1518377013.505827904][MessagesManager.cpp:5518][!Td]  Found a gap in the chat -1001075686122 with pts = 1543315. new_pts = 1543317, pts_count = 1 in update from on_update_new_channel_message
get only json?

There are several functions to handle log:
https://core.telegram.org/tdlib/docs/td__log_8h.html
You need td_set_log_verbosity_level(1) or td_set_log_verbosity_level(0)


Integrated editor with ContentProviders

This is a big PR, but was as small as I could manage.  This integrates ContentProviders into the editor, NavigationManager, tabs, events, file selection (when dealing with files), file search, closing, and parts of rename.
Note: Commit https://github.com/dart-lang/chromedeveditor/commit/21d194ff1ad7274397632982b793bbdee184a3a2 should have read: Handled tabs, events, comparator, NavigationManager, and openFile instead of TEMP
Fixes #3433
Review @devoncarew

@umop: where are we with this? Is this complete and usable as is, or is it a part of a prospected CL chain? If the latter, would you have 20% time to finish the whole thing off?


Feature Request: Modify nuspec file by adding empty dependency group to avoid installing many packages of netstandard15 for net46x projects

I have faced a problem of installing many packages (of netstandard15, not needed) in a project net461.
I opened an issue in nuget
I was adviced by @PatoBeltran in nuget team:

CommandLineParser should contain a group without the netstandard dependencies that specifically targets .NETFramework to avoid unneeded dependencies.

I did POC, by adding an empty group for net45, as given below:
    <group targetFramework="net45"/>

View the details of the : solution
This line resolved the problem and installed ONE and only one package and avoided installation of the dependencies of netstandard15.
My Suggested solution:
You can modify  the file  CommandLine.nuspec by adding one and only one line to the dependencies section, as given below:
	<group targetFramework="net45"/>

The dependencies section  will become:
<dependencies>
  <group targetFramework="net45"/>      <!-- this line added to avoid installing netstandard15 packages -->
  <group targetFramework=".NETStandard1.5">
    <dependency id="System.Collections" version="4.0.11-rc2-24027" />
    <dependency id="System.Console" version="4.0.0-rc2-24027" />
    <dependency id="System.Diagnostics.Debug" version="4.0.11-rc2-24027" />
    <dependency id="System.Globalization" version="4.0.11-rc2-24027" />
    <dependency id="System.IO" version="4.1.0-rc2-24027" />
    <dependency id="System.Linq" version="4.1.0-rc2-24027" />
    <dependency id="System.Linq.Expressions" version="4.0.11-rc2-24027" />
    <dependency id="System.Reflection" version="4.1.0-rc2-24027" />
    <dependency id="System.Reflection.Extensions" version="4.0.1-rc2-24027" />
    <dependency id="System.Reflection.TypeExtensions" version="4.1.0-rc2-24027" />
    <dependency id="System.Resources.ResourceManager" version="4.0.1-rc2-24027" />
    <dependency id="System.Runtime" version="4.1.0-rc2-24027" />
    <dependency id="System.Runtime.Extensions" version="4.1.0-rc2-24027" />
  </group>

This line solves the problem of installing many packages in the project net461 and select net45 lib as the nearest framework not selecting netstandard15.
I tested the solution as described here
and it's working fine.
Note:
It's nice to replace all pre-release packages with its RTM release for .NETStandard1.5, e.g.

"System.Collections" version="4.0.11-rc2-24027"  => version=4.0.11

Let me know if any clarification is needed.

Yes, definitely needed.

@ravenpride , @ericnewton76
#400 was not enough to fix this problem.

Fixed


question: how to speed up the process of feeding data.

hi, i tried to do the training on the 8 gpus server, but it turns out that it's not faster than when using 4 gpus.
The most likely reason is the GPUs are faster than the processes that load and prepare the data, because i observed the gpu's utility goes down to 0% time by time.
is there any ways to speed up the data feeding process? like use multiple cpus to do the data loading?
Thanks.

Are you using the gluon or symbolic interface?

Using gluon's Dataset + DataLoader way to load the data, and use num_workers=num_of_cpu_cores for the DataLoader. This is much faster than using the old mx.io.DataIter, as I have tested.


reverse flow with battery

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Hello,
I ask for help because for months I have been trying various configurations without success, I have come to the conclusion that the problem is probably not in the card but perhaps my Voltronic inverter does not work with this card.
The problem concerns the direction of the current flow of my battery, I have "sensor.inverter_battery_load" which if it is charging (from panels) presents positive values from 0 or >0 and if instead it is discharging it presents negative values **(-1)**.
I have read the documentation several times on how and where to set the sensors for the flow or power direction but in my case this does not work, it always remains stable in one direction.
For me it would solve the problem if there was a way to control the "invert_power:" parameter (false for discharging or true for charging) based on the value of the positive or negative sensor.
I ask for help from the developer or anyone who has found a solution if they can tell me how to solve the problem.
Many compliments for the card :)
Steps To Reproduce
No response
Expected behaviour
The problem concerns the direction of the current flow of my battery, I have "sensor.inverter_battery_load" which if it is charging (from panels) presents positive values from 0 or >0 and if instead it is discharging it presents negative values **(-1)**.
I have read the documentation several times on how and where to set the sensors for the flow or power direction but in my case this does not work, it always remains stable in one direction.
Card Version
V6.1.4
Home Assistant Version
home assistant core 14.0.rc2
Configuration
type: custom:sunsynk-power-flow-card
cardstyle: full
show_solar: true
battery:
  show_daily: false
  auto_scale: true
  show_absolute: false
  invert_power: false
  charge_colour:
    - 4
    - 255
    - 0
  colour:
    - 255
    - 0
    - 0
  energy: 4800
  dynamic_colour: true
  linear_gradient: true
  hide_soc: false
  animate: true
  show_remaining_energy: true
  animation_speed: 12
  invert_flow: true
  max_power: 9600
  soc_end_of_charge: 100
  shutdown_soc_offgrid: 32
  shutdown_soc: 25
  count: 1
solar:
  show_daily: true
  mppts: 1
  pv1_name: Pannelli
  auto_scale: true
  colour:
    - 238
    - 255
    - 0
  dynamic_colour: true
  animation_speed: 24
  display_mode: 3
  max_power: 6000
  pv1_max_power: 7250
load:
  show_daily: false
  auto_scale: true
  dynamic_colour: true
  colour:
    - 0
    - 219
    - 205
  dynamic_icon: true
  essential_name: CASA
  load1_name: DEUMIDIFICATORE
  load1_icon: mdi:air-humidifier
  load2_name: Lavastoviglie
  load2_icon: mdi:dishwasher
  load4_icon: mdi:home-floor-2
  load4_name: App_B
  load3_name: App_A
  load3_icon: mdi:home-floor-1
  load5_name: Lavatrice
  load5_icon: mdi:washing-machine
  load6_name: Asciugatrice
  animation_speed: 13
  max_power: 6000
  additional_loads: 6
  load6_icon: mdi:washing-machine
grid:
  show_daily_buy: false
  show_daily_sell: false
  show_nonessential: true
  grid_off_colour:
    - 195
    - 218
    - 16
  no_grid_colour:
    - 156
    - 156
    - 156
  auto_scale: false
  invert_grid: false
  colour:
    - 25
    - 160
    - 227
  show_absolute: false
  export_colour:
    - 141
    - 25
    - 164
  grid_name: ENEL
  energy_cost_decimals: 0
  max_power: 6000
  disconnected_icon: mdi:transmission-tower-off
  off_threshold: 100
  nonessential_name: "Termo"
  nonessential_icon: mdi:heating-coil
entities:
  use_timer_248: switch.sunsynk_toggle_system_timer
  day_battery_charge_70: sensor.sunsynk_day_battery_charge
  day_battery_discharge_71: sensor.sunsynk_day_battery_discharge
  day_grid_import_76: sensor.sunsynk_day_grid_import
  day_grid_export_77: sensor.sunsynk_day_grid_export
  day_load_energy_84: sensor.sunsynk_day_load_energy
  essential_power: sensor.inverter_ac_out_watt
  day_pv_energy_108: sensor.inverter_pv_generation_day
  pv1_power_186: sensor.inverter_pv_charging_power
  pv1_voltage_109: sensor.inverter_pv_input_voltage
  pv1_current_110: sensor.inverter_pv_input_current
  inverter_voltage_154: sensor.inverter_ac_in_voltage
  load_frequency_192: sensor.inverter_ac_in_frequenz
  priority_load_243: sensor.inverter_ac_in_rating_current
  inverter_power_175: sensor.inverter_ac_out_watt
  grid_power_169: sensor.misuratore_consumi_potenza
  total_pv_generation: sensor.inverter_pv_generation_year
  essential_load1: sensor.deumidificatore_potenza
  essential_load2: sensor.lavastoviglie_potenza
  grid_voltage: sensor.misuratore_consumi_tensione_2
  essential_load4: sensor.carichi_app_b_potenza
  environment_temp: sensor.openweathermap_temperature
  essential_load4_extra: sensor.carichi_app_b_potenza
  grid_connected_status_194: "off"
  inverter_status_59: sensor.inverter_inverter_operation_mode
  inverter_current_164: sensor.misuratore_consumi_corrente_2
  grid_ct_power_172: sensor.potenza_corretta_2
  nonessential_power: sensor.consumo_termo_3
  battery_rated_capacity: sensor.inverter_battery_percent
  battery_current_191: sensor.inverter_battery_load
  battery_temp_182: sensor.inverter_battery_temperature
  battery_voltage_183: sensor.inverter_battery_voltage
  battery_power_190: sensor.inverter_ac_out_watt
  battery_soc_184: sensor.inverter_battery_percent
large_font: true
panel_mode: true
show_battery: true
show_grid: true
decimal_places: 1
dynamic_line_width: true
max_line_width: 7
min_line_width: 2
inverter:
  auto_scale: false
  modern: true
  colour:
    - 188
    - 99
    - 191
  autarky: "no"
  model: solis
grid_options:
  columns: full
wide: true
title: in test
battery2:
  energy: 4800
  shutdown_soc: 25
  soc_end_of_charge: 100
  shutdown_soc_offgrid: 32
  dynamic_colour: true
  animate: true
  show_remaining_energy: true
  linear_gradient: true
  colour:
    - 255
    - 0
    - 0
  charge_colour:
    - 43
    - 255
    - 0

Relevant log output
No response

Hi,
the issue with the direction of the animation
I am replying a bit late because I have done various tests with the various suggested settings, at the moment the battery is in the discharge phase. To obtain the discharge flow I have to set with invert_flow: true and invert_power: true (for me it is red with animation towards inverter, instead for the charge it should become green with animation towards battery with positive value.)
To avoid waiting until tomorrow at the moment I am simulating with a virtual sensor through a slider the Ampere current with positive and negative values, but even changing true and false I do not find changes in direction.

Hi,
the issue with the direction of the animation
I am replying a bit late because I have done various tests with the various suggested settings, at the moment the battery is in the discharge phase. To obtain the discharge flow I have to set with invert_flow: true and invert_power: true (for me it is red with animation towards inverter, instead for the charge it should become green with animation towards battery with positive value.)
To avoid waiting until tomorrow at the moment I am simulating with a virtual sensor through a slider the Ampere current with positive and negative values, but even changing true and false I do not find changes in direction.

The direction of flow is set by the battery power value not current.  Try creating a template sensor for battery power and see the effects.
invert_flow: true
invert_power: false

The direction of flow is set by the battery power value not current. Try creating a template sensor for battery power and see the effects.
invert_flow: true
invert_power: false

Great, I noticed differences, I did the required tests, always using a slider for negative values, 0 and positive values in the power section the flow changes direction and color as you indicated.
Maybe my inverter model "InfiniSolar V IV" is not completely compatible with this card, because it manages the power ONLY POSITIVE, these always remain positive values or 0.
What distinguishes whether the battery is in a charge or discharge state are the Amperes with which it charges, Example -2, 0, +2 defined by the sensor "sensor.inverter_battery_load".
the problem remains that to make the flow work I have to insert sensor.inverter_battery_load displaying A instead of sensor.inverter_ac_out_watt which displays the W.
could this inverter be implemented in the future?

You can create a helper that inverts your sensor.inverter_ac_out_watt when sensor.inverter_battery_load is negative. Here is an example to start with
template:
  - sensor:
      - name: "AC Out Watt with Sign"
        unique_id: "ac_out_watt_signed"
        state: >
          {% if states('sensor.inverter_battery_load') | float < 0 %}
            {{ (states('sensor.inverter_ac_out_watt') | float) * -1 }}
          {% else %}
            {{ states('sensor.inverter_ac_out_watt') | float }}
          {% endif %}
        unit_of_measurement: "W"
        device_class: power

You can create a helper that inverts your sensor.inverter_ac_out_watt when sensor.inverter_battery_load is negative. Here is an example to start with
template:
  - sensor:
      - name: "AC Out Watt with Sign"
        unique_id: "ac_out_watt_signed"
        state: >
          {% if states('sensor.inverter_battery_load') | float < 0 %}
            {{ (states('sensor.inverter_ac_out_watt') | float) * -1 }}
          {% else %}
            {{ states('sensor.inverter_ac_out_watt') | float }}
          {% endif %}
        unit_of_measurement: "W"
        device_class: power

thank you so much, it seems to work well now.
I take this opportunity to ask if the yellow line coming from the panels is normal for it to be shorter (it is far from the inverter) in wide view or if I did something wrong.

That looks like a bug. Let me investigate


allow custom name: for children (just like can be done for parents)

first off, wow!  thank you so much for your work on this sankey card and making it public!  i LOVE sankey graphs/charts, and your card has allowed me to make some beautiful and informative charts on my home power usage! (and very easily/quickly btw)!  (see my pict at the bottom, im still tweaking it).  I encourage anyone who makes use of this card to donate to mindfreeze (either via buy me coffee link, or github sponsor link).  (also btw-  using the grafana time range syntax is a great touch/idea!)
Is your feature request related to a problem? Please describe.
Would be great if we could manually set a custom name for the children of parents (just as we are able to with the parents, currently).
example of what i think would be helpful (the part under children:  allow user to optionally specify a name:  ) :
        sections:
          - entities:
              - entity_id: sensor.sum_bothmains_wh
                name: Entergy Feed Sum   < (this works / is allowed)
                color: var(--success-color)
                children:
                  - entity_id: sensor.ac_1stfl_50a_i9_wh
                    name: AC 1st Floor   < (this does NOT work , and is what im asking for in this feature request)
                  - entity_id: sensor.panel_1stfl_i7x2_wh
                    name: Panel 1st Floor

Additional context
currently the children of parents take their name from the Home assistant entity name,  which works great!  but sometimes is a bit more verbose than a user may want to display (or maybe wrong/outdated).
I'm aware a workaround is to make template sensors, however I think that's a bit overkill / additional complexity just to accomplish a rename.
thank you!

here is the full yaml for the card above, If anyone's interested, I don't include the bottom navigation bar as it's not related to this sankey project).
    cards:
      - type: custom:sankey-chart
        energy_date_selection: false
        layout: auto
        height: 690
        unit_prefix: k
        time_period_from: now/d
        round: 1
        wide: true
        show_names: true
        sections:
          - entities:
              - entity_id: sensor.sum_bothmains_wh
                name: Entergy Feed Sum
                color: var(--success-color)
                children:
                  - sensor.ac_1stfl_50a_i9_wh
                  - sensor.panel_1stfl_i7x2_wh
                  - sensor.sum_bothgrgmains_wh
                  - sensor.in_50a_i8_wh
                  - sensor.unknown_50a_i5_wh
                  - sensor.workrm_quad_50a_4_wh
                  - sensor.yardlts_gfi_emp_i11_wh
          - entities:
              - sensor.ac_1stfl_50a_i9_wh
              - sensor.panel_1stfl_i7x2_wh
              - sensor.in_50a_i8_wh
              - sensor.unknown_50a_i5_wh
              - sensor.workrm_quad_50a_4_wh
              - sensor.yardlts_gfi_emp_i11_wh
          - entities:
              - entity_id: sensor.sum_bothgrgmains_wh
                name: Garage Panel
                color: var(--success-color)
                children:
                  - sensor.ac_2ndfl_x2_i12_wh
                  - sensor.rack_quad_x2_wh
                  - sensor.poolpump_x2_i6_wh
                  - sensor.ac_minisplit_tot_wh
                  - sensor.eeareaquad_i11_wh
                  - sensor.xx_i5_wh
                  - sensor.xx_i7_wh
          - entities:
              - sensor.ac_2ndfl_x2_i12_wh
              - sensor.rack_quad_x2_wh
              - sensor.poolpump_x2_i6_wh
              - sensor.ac_minisplit_tot_wh
              - sensor.eeareaquad_i11_wh
              - sensor.xx_i5_wh
              - sensor.xx_i7_wh

pfff-  you actually can already do what im requesting here!  (so closing this).
the way you do it is under the entities (below the children:).  ie like this:
        sections:
          - entities:
              - entity_id: sensor.sum_bothmains_wh
                name: Entergy Feed Sum
                color: var(--success-color)
                children:
                  - sensor.ac_1stfl_50a_i9_wh
                  - sensor.panel_1stfl_i7x2_wh
                  - sensor.sum_bothgrgmains_wh
                  - sensor.in_50a_i8_wh
                  - sensor.unknown_50a_i5_wh
                  - sensor.workrm_quad_50a_4_wh
                  - sensor.yardlts_gfi_emp_i11_wh
          - entities:
              - entity_id: sensor.ac_1stfl_50a_i9_wh
                name: 1stFLac
              - entity_id: sensor.panel_1stfl_i7x2_wh
                name: Panel-1stFL

so forexample this child:
               children:
                  - sensor.ac_1stfl_50a_i9_wh

gets renamed to my custom name via this yaml:
                children:
                   - sensor.ac_1stfl_50a_i9_wh
          - entities:
              - entity_id: sensor.ac_1stfl_50a_i9_wh
                name: 1stFLac

(and alot more options beyond name can be set too!)


Expose _err_print_error with message parameter to GDExtension

This adds GDExtension functions for the overloads of _err_print_error that takes a message along with the error description.
This is required for godotengine/godot-cpp#1011. See that PR for details on why this is needed.
This PR also changes the signature of the existing print functions, by adding the bool p_editor_notify parameter, which is used to create toast notifications. I suppose that makes this a breaks compat change, if the ABI breakage wasn't enough already.

Is there anything I can do to disable the godot-cpp check? I would imagine this PR qualifies as needing to do that.

@mihe You should  first open a PR on Godot-Cpp that contains the updated headers files from this PR (and fix the code that need to be), then add a commit to this PR that modify the ci file to specify your own repo/branch of godot-cpp
https://github.com/godotengine/godot/blob/eaf306e0b15e4283883f06bf903b05711a4dbfe8/.github/workflows/linux_builds.yml#L197-L199

Thanks!


provider sdl validation

Validate SDL upon retrieval.  Some validations:

if DEPLOYMENT_INGRESS_STATIC_HOSTS is false then services must have a host.
Don't allow clobbering of existing ingress hosts
Add a configurable set of disallowed user-supplied hosts.

If a bid is cancelled due to hostname collision, stop bidding on orders from that addr in the network for some time period.

Yes we could do that or ignore the deployment and/or group.

Include a 32 bit hash of each hostname in the deployment (on the blockchain) and check that against the existing hosts before bidding. This increases the amount of data on the blockchain and is not perfect, for example hash collisions could cause a false positive

I like this idea.  I think we should consider it, but let's look at the various name service protocols in the cosmos space that we might be able to leverage first.
===
I think that in the case of a hostname conflict, we should just reject the manifest - return an error during send-manifest - and leave it up to the user to update the deployment or close the lease.
We definitely need the other two things too tho:

static/configurable hostname blacklist
validation

When you say " various name service protocols in the cosmos space" what are you referring to?

Next step on this is to check in the handler for send-manifest if there is a hostname conflict and reject the manifest there with appropriate error code

Next step on this is to check in the handler for send-manifest if there is a hostname conflict and reject the manifest there with appropriate error code


remove the Gossip stutter from memberlist-related config options

Overview
This PR removes the duplicated Gossip from the memberlist-related config options.
Pull request checklist

[x] I have read the contributing guide.
[x] I have agreed to the Contributor License Agreement.
[x] I have updated the documentation.
[x] I have resolved any merge conflicts.
[x] I have included tests that cover my changes.
[x] All new and existing tests pass.

Code review checklist
This is the checklist that the reviewer will follow while reviewing your pull request. You do not need to do anything with this checklist, but be aware of what the reviewer will be looking for.

[ ] Ensure that any changes to external docs have been included in this pull request.
[ ] If the changes require that minor/major versions need to be updated, tag the PR appropriately.
[ ] Ensure the new code is properly commented and follows Idiomatic Go.
[ ] Check that tests have been written and that they cover the new functionality.
[ ] Run tests and ensure they pass.
[ ] Build and run the code, performing any applicable integration testing.

were there docs updates that were going to come with this?

No, I didn't include them in the docs. I just wanted users to have the option to change the config values, but I'm not sure we need to publicize them. I'd be ok either way.


Switch Pixi reference in examples to use HTTPS

Change http://s3-eu-west-1.amazonaws.com/pixi.js/dev/pixi.min.js to https://s3-eu-west-1.amazonaws.com/pixi.js/dev/pixi.min.js.
This would prevent issues in situations where the github.io link is HTTPS rather than HTTP and throws a Mixed Content exception.

Should actually be switched to use the download urls:
https://pixijs.download/dev/pixi.min.js


CDN cache invalidation issue

we run gcloud compute url-maps invalidate-cdn-cache tuf-repo-cdn-lb --path "/*" --async after uploading content to GCS.
There are two issues that seem to lead to https://github.com/sigstore/root-signing-staging/issues/83:

We should likely not use --async: we are explicictly trying to run tests afterwards that assume the CDN serves the new files
Originally I thought --async is also hiding an authentication error: the log just says this:Invalidation pending for [https://www.googleapis.com/compute/v1/projects/projectsigstore-staging/global/urlMaps/tuf-repo-cdn-lb]
Monitor its progress at [https://www.googleapis.com/compute/v1/projects/projectsigstore-staging/global/operations/operation-1711626671146-614b723b8c66d-193e686c-73761af4]

Seeing these requires authentication: I can see the first links content with my sigstore.dev account but not the second so I can't see if there's a log or not

Production does not have this issue because it does not test the published repository at all I believe

Ok, found my way to the logs with authentication:
{
  "description": "/*",
  "endTime": "2024-03-28T05:01:19.296-07:00",
  "id": "4938490834697381696",
  "insertTime": "2024-03-28T04:51:11.617-07:00",
  "kind": "compute#operation",
  "name": "operation-1711626671146-614b723b8c66d-193e686c-73761af4",
  "operationType": "invalidateCache",
  "progress": 100,
  "selfLink": "https://www.googleapis.com/compute/v1/projects/projectsigstore-staging/global/operations/operation-1711626671146-614b723b8c66d-193e686c-73761af4",
  "startTime": "2024-03-28T04:51:11.618-07:00",
  "status": "DONE",
  "targetId": "8429254431158848030",
  "targetLink": "https://www.googleapis.com/compute/v1/projects/projectsigstore-staging/global/urlMaps/tuf-repo-cdn-lb",
  "user"<EMAIL_ADDRESS>}

Notes on potential configuration to look at:

https://cloud.google.com/cdn/docs/using-cache-modes seems to imply that USE_ORIGIN_HEADERS would make the CDN  respect any cache headers set by GCS
Could check whether we do that and what the GCS settings are
this (not caching timestamp) might not be cheap enough: but maybe invalidating just timestamp is faster?

oh and one more observation: while we can't expect every TUF client to support etag when downloading timestamp.json, I think CDN could use etag while getting the content from GCS (I don't know if it does, probably not)

As another data point, the CDN should not be caching timestamp.json (and also root.json, targets, snapshot, and registry.npmjs.org.json, the non-versioned files). I don't recall why this was not sufficient without needing to invalidate the cache. Perhaps it was the newer versioned files not being immediately available without invalidation?
Edit: Ah I think I found why. It's because we had an alert on expiring metadata that we wanted to resolve immediately, as discussed in https://github.com/sigstore/public-good-instance/pull/1683#issuecomment-1736433870 and https://github.com/sigstore/public-good-instance/issues/1684.

Perhaps it was the newer versioned files not being immediately available without invalidation?

That does make sense -- basically we want 404 to be never cached by CDN (or alternatively must use the invalidation mchanism)

Ah I think I found why. It's because we had an alert on expiring metadata that we wanted to resolve immediately, as discussed in sigstore/public-good-instance#1683 (comment) and sigstore/public-good-instance#1684.

I think this should not be very relevant anymore unless the  604800 TTL actually applies to 404s (which feels like it can't be true)


I can not have install plugins, from alpine version

Docker with alpine have error
Installing the normal version (official docker version)
docker run --rm -ti jenkins  /bin/bash
export https_proxy="https://proxy.corp.xxxxxx.com:3131/"
export http_proxy="http://proxy.corp.xxxxxx.com:3131/"
/usr/local/bin/install-plugins.sh blueocean
Creating initial locks...
Analyzing war...
Downloading plugins...
....

All is OK,
But with alpine version:
docker run --rm -ti jenkins:alpine /bin/bash
export https_proxy="https://proxy.corp.xxxxxx.com:3131/"
export http_proxy="http://proxy.corp.xxxxxx.com:3131/"
/usr/local/bin/install-plugins.sh blueocean
Creating initial locks...
Analyzing war...
Downloading plugins...
Downloading plugin: blueocean from https://updates.jenkins.io/download/plugins/blueocean/latest/blueocean.hpi
Downloading plugin: blueocean-plugin from https://updates.jenkins.io/download/plugins/blueocean-plugin/latest/blueocean-plugin.hpi
Failed to download plugin: blueocean or blueocean-plugin

WAR bundled plugins:

Installed plugins:
*:
Some plugins failed to download! Not downloaded: blueocean

The some result with docker jenkinsci/jenkins:alpine

It works without a proxy, so you may want to check if your https_proxy has a SSL certificate valid in alpine


[4.0 2017-07-11] Upgrade some deprecation warnings from Swift 3 to errors in Swift 4

cc #10908 (master) and https://github.com/apple/swift/pull/10920 (swift-4.0-branch).

@swift-ci Please test


set multiple random background image from drawable -> Exception

images randoms:ArrayListOf = [R.drawable.a,R.drawable.b,etc..]
R = random.nextInt(2)
Hey, trying to scratch.setBackroundResource(imageRandom[R]
but I got a crash ... why?

The crash is from your method:
protected void onDraw(Canvas canvas) {
    super.onDraw(canvas);
    canvas.drawBitmap(mScratchBitmap, 0, 0, mBitmapPaint);
    canvas.drawPath(mErasePath, mErasePaint);

}


[WV-726]Enhanced candidate search to support multi-word queries across multip…

…le fields

Split  term into individual words to improve search
Applied individual filters for each word across multiple fields
Add descriptive comment about search

Thank you @itcreativeusa I am approving these changes, and I moved WV-726 back to Sprint Ready.


ConLL format also labelling the next word of the annotated part of the text

Hello, sorry for the other issue I accidentally created it.
After converting to ConLL format I get mislabeled "I-entity" tags. For example: "Obama was the president" results in [B-Person, I-Person, O, O] when it should be [B-Person, O, O, O].
I looked around at the original json1 data and found that this is due to the space after the entity being included in the tag. So instead of "Obama", the original tag is "Obama ", which results in the next word being included as an entity with this module. Is there anyway to get around taht without fixing the original json1 data? I have a lot of data that is already tagged and I can't imagine relabelling each one of them one by one.
If this can't be adressed within your module, can you give me tips on how to edit the original json1 file? I can maybe substract 1 from the end of the annotated part of the text. Thanks!

It would be efficient to fix it before the transform or after the transform.
Is there any reason why you want to insert the module to fix the error in the transform process?

It would be efficient to fix it before the transform or after the transform.
Is there any reason why you want to insert the module to fix the error in the transform process?

Sorry I forgot to update. I found that it's a lot better to fix it before the transform. In python, using the json library, readt the data and put it into the format where each line is a list element. So you have a list of dictionaries. Then iterate over the list elements, and for each list element, iterate over the "labels" key, and for each element of "labels" key, see if the start index of the label equals to sapce character (where label[n][0] == " "). Then also do the same thing for the end index of the label. Then just save list as a json file.

Sorry I forgot to update. I found that it's a lot better to fix it before the transform. In python, using the json library, readt the data and put it into the format where each line is a list element. So you have a list of dictionaries. Then iterate over the list elements, and for each list element, iterate over the "labels" key, and for each element of "labels" key, see if the start index of the label equals to sapce character (where label[n][0] == " "). Then also do the same thing for the end index of the label. Then just save list as a json file.


Fix Jenkins converter's url

Description

Fix saving incorrect url to CICD's organizations and jobs. Before these changes Job's url look like: http:// and now: http://localhost:8080/job/Faros-test-job/.
Use javascript function toLowerCase instread of lodash.

Type of change

[ ] Bug fix
[ ] New feature
[ ] Breaking change

Related issues

Fix #1

Migration notes

Describe migration notes if any

Extra info

Add any additional information

Description updated


Interestesting... what's going on here?

Challenge Concatenating Strings with the Plus Equals Operator has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
The preview box states, "referenceError"... like okay?
My code:

// Example
var ourStr = "I come first. ";
ourStr += "I come second.";

// Only change code below this line

var myStr = "This is the first sentence. ";
ourStr += "This is the second sentence.";

update:  the instruction was vague so I tried:
var myStr = "This is the first sentence. ";
myStr += "This is the second sentence.";
lol.

The reason for the error was that your code said outStr += instead of ourStr +=, and outStr is not defined.
We're working on clarifying this challenge in https://github.com/freeCodeCamp/freeCodeCamp/pull/13612
Before reporting an issue, please check whether this is really an issue with freeCodeCamp, and not your code, in the chatroom.
Will the updates in #13612 take away the confusion you had?

it is very clear Instructions
Build myStr over several lines by concatenating these two strings:
"This is the first sentence. " and "This is the second sentence." using the += operator.
it said myStr.   Sorry challenge didnt asked you write ourStr.
I could understand this Instructions myself.

but we could change variables name. so it will be less misunderstand?

You don't need to change anything.  I understand that some challenges need to be vague to encourage learner to do a little research.  Part of problem-solving...
Thanks guys!

@texas2010 Keep in mind that it's easier to understand if you already know how it works. 🙂 I can see how one may have gotten confused here, but I don't think we can do more to prevent it than what we're currently working on.

@systimotic no problem.


Update _index.md Added links and descriptions of tutorials

I realized that the side bar labels don't really say what the tutorial is about so I think we need the list of tutorials.  I chose to organize them according to principle.  I think it works.

Closes #124.

This needs to remove the GH 124 comment in the page as well.


Difficulty Managing Dynamic atomFamily Instances in ScopeProvider

I'm encountering challenges while managing dynamic atomFamily instances within the ScopeProvider.
Currently, I'm unable to directly pass the entire atomFamily into the atom array of ScopeProvider. Instead, I'm forced to extract each individual atom and pass them separately. This approach becomes cumbersome in my application, where I heavily rely on atomFamily for its functionality. Manually tracking and passing every single atom instance is quite tedious and doesn't seem an option currently.
// Current workaround (tedious and error-prone):

const keys = [...]; // Array containing dynamic keys
const atomsFromFooFamily = keys.map(key => fooFamily(key));

<ScopeProvider atoms={[...normalAtoms, ...atomsFromFooFamily]}>

Ideally, I'd like to pass an entire atomFamily group into the ScopeProvider.
// Ideally, we would like to do this:
<ScopeProvider atoms={[fooFamily]}>  // Not currently supported

Is there a recommended approach to address this scenario? Any suggestions or workarounds would be greatly appreciated.

I don't have any suggestions outside of the current tedious approach you mentioned above.
Brainstorming: AtomFamily is a just a function but we can assume it returns atoms since we want to pass it in to atoms prop. Perhaps jotai-scope could expose a utility to scope functions.
import { scopableFn, ScopeProvider } from 'jotai-scope'

const scopableAtomFamily = scopableFn(atomFamily((id) => atom(id)))

<ScopeProvider atoms={[scopableAtomFamily]}>{children}</ScopeProvider>

Impl might look something like this:
type AtomFn = (...args:any[]) => AnyAtom
const SCOPABLE = Symbol()
const ScopeFnAtom = (fn: AtomFn, sub: Store['sub']) => Object.assign(Atom(null), fn, { type: SCOPABLE, sub })

export function scopableFn<T extends AtomFn>(fn: T): T {
  const store = createStore()
  const i = function interceptor(...args: unknown[]) {
    const r = fn(...args)
    store.set(a, r)
    return r;
  }
  cons sub = store.sub.bind(a)
  const a = ScopeFnAtom(i, sub)
  return a
}

export function ScopeProvider({ atoms }) {
  const [rAtoms, setRAtoms] = useState(new Set())
  const scopedAtoms = new Set([...atoms, ...rAtoms])
  function initialize(scopedAtoms) {
    return { scopedAtoms, store: createScopedStore() }
  }
  const [state, setState] = useState(initialize())
  if (!isSameSet(state.scopedAtoms, scopedAtoms) {
    setState(initialize(scopedAtoms))
  }
  // subscribe to new rAtoms
  useEffect(() => {
    const unsubs = Array.from(state.scopedAtoms)
    .filter((a) => SCOPABLE in a)
    .map((a) => {
      a.sub((r) => {
        setRAtoms((rSet) => {
          new Set([...rSet, r])
        })
      })
    })
    return () => unsubs.forEach(unsub => unsub())
  }, [state])
  const memoizedChildren = useMemo(() => children, [state])
  return <Provider store={state.store}>{children}</Provider>

}


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 2343 ms

Resolved: Bofrost.at performance has improved in 449e2d4.


CAMEL-10502 - Camel-git : Copy headers from in to out

Preferred working on separate branches instead of master as it moves a lot. Sorry for that. You can accept PRs the order you want, I'll fix the conflicts as soon as master changes...

Thanks. I will review and merge tomorrow :-)


Bug: OL nested list must use three spaces rather than two

Currently Lexical (0.2.9) treats numbered lists the same as unordered lists and indents nesting with four spaces. However lists where the marker takes up multiple spaces (ordered lists), must be treated special differently.
According to the commonmark spec:

If the list marker takes up two spaces, and there are three spaces between the list marker and the next non-whitespace character, then blocks must be indented five spaces in order to fall under the list item.

This can be quickly repro'd over here: https://codesandbox.io/s/lexical-rich-text-example-forked-e8comj?file=/src/Editor.js, by creating an ordered list and then clicking "Generate markdown" which logs the generated markdown.
refs https://github.com/facebook/lexical/issues/2208
I'm happy to try and fix my inputs with a regex if this isn't the desired functionality!

Originally I was patching the @lexical/markdown but instead ended up creating my own UNORDERED_LIST and ORDERED_LIST transforms which seemed slightly easier to keep up to date.
The downside is I ended up needing to duplicate a lot of code to get this to work, copying listReplace and listExport with very slight modifications (notice the indentSize argument that's been added to both functions and is passed in from the transform declarations.
https://gist.github.com/hanford/e15a0f3be981beb91602a6b1c82fa39a
Is there a better way to do this?


Goto address has no discoverability

Go To Address seems to only be available through the "G" key. There doesn't seem to be a context menu or menu option that even shows this functionality exists - you just have to know to hit g.

Added to the right-click menu in dev for both hex and disassembly view. I suspect we'll likely re-vamp all the navigation options into a new menu and it will go there as well, but this is a reasonable stopgap.


Similar products are listed in the Microsoft Store.

Have you ever registered in the Microsoft Store?
It looks like unauthorized software.
Please check the attached screenshot.

Ohhh, another copy of the app. :(
They removed the name of the author of the translations:

There's a tiny reference to me, tucked in the About section, I could see thanks to one frame in a gif made by the developer.
I had to download the gif and extract the frame to read it. Hahaha

Looks like the name of the de is Alexey:

Alexey, if you are reading this, it's is a 1/10 job.
Why did you remove the author names of the translations?
Why there's just one tiny reference to me, not even to the name of the app?


Revamp Navigation tool patches for Kerbin Side Remastered bases

Have developed a much better and more accurate system than was originally used when creating this version.

[ ] Kramax flight plans with variable default glide slope of 3 degrees and identify non standard approaches
[ ] More precise NavUtilities profiles for each runway

Completed an update for the TSC site in KSC Extended.
Going to postpone any work on Kramax and NavUtilities changes. Current settings are working and stable.


create 2 scripts for support: (1) list legacy policies, (2) list custom policies that use infra:* and custom roles that use infra:*

We have a request from support to have a script that will help them easily query v2 policies that contain infra:* so that they can debug/proactively address any issues.
The query can be made via cURL and parsed with jo/jq. Python or ruby are also fine.
They like to see at least the names of the policies (the id is fine in addition).

i had a different understanding of this, i was under the impression that they only wanted a list of legacy policies.. @moutons can you confirm your needs?

it would be good to know 2 things:

a list of policies flagged as migrated from v1, name & ID sufficient, not the policy content
a list of any v2 policies containing infra:* so we can bring them up as potentially undesirable

the intention is to use these IAM API queries to output files to the gather-logs bundle similar to how we do for Elasticsearch:
https://github.com/chef/automate/blob/master/components/automate-deployment/pkg/server/gather-logs.go#L142:L154

updated the title, @blakestier feel free to adjust the issue content
for (2) pretty sure we only want to include custom policies and custom roles and not chef-managed ones

The following two shell commands (using just curl and jq) will identify all policies with actions of infra:*, whether inline actions or contained within a role. It ignores any system policies (via type) as well as system-generated-project-policies.
roles=$(curl -sSkH "api-token: $TOK" "https://a2-dev.test/apis/iam/v2/roles" | \
jq -r '[ .roles[] | select( .actions[] | contains("infra:*") ) | .id ] | unique | .[]')

curl -sSkH "api-token: $TOK" $TARGET_HOST/apis/iam/v2/policies | \
jq --arg roles "$roles" '.policies[] |
  (
    select (.type == "CUSTOM") |
    select (.id | endswith("-project-owners") or endswith("-project-viewers") or endswith("-project-editors") | not) |
    select (.statements[].role != "") |
    select( [.statements[].role] | inside($roles | split("\n")) )
  ),
  (
    select( .statements[].actions[] | contains("infra:*") )
  ) |
  { id, name }'


MINOR: Fix three.js buffer conversion when index is null

Codecov Report

Merging #1041 into master will decrease coverage by 0.07%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #1041      +/-   ##
==========================================
- Coverage   45.14%   45.06%   -0.08%
==========================================
  Files         250      237      -13
  Lines       22465    22263     -202
  Branches     5093     5066      -27
==========================================
- Hits        10142    10033     -109
+ Misses      12323    12230      -93

Impacted Files
Coverage Δ

...e/harp-datasource-protocol/lib/ThreeBufferUtils.ts
15.78% <0%> (-0.88%)
:arrow_down:

...re/harp-text-canvas/lib/rendering/TextMaterials.ts
50% <0%> (-26.93%)
:arrow_down:

@here/harp-mapview/lib/ThemeHelpers.ts
6.55% <0%> (-0.68%)
:arrow_down:

@here/harp-datasource-protocol/lib/Outliner.ts
100% <0%> (ø)
:arrow_up:

...ere/harp-materials/lib/LuminosityHighPassShader.ts
100% <0%> (ø)
:arrow_up:

@here/harp-test-utils/lib/WebGLStub.ts
100% <0%> (ø)
:arrow_up:

...p-geoutils/lib/tiling/QuadTreeSubdivisionScheme.ts
100% <0%> (ø)
:arrow_up:

@here/harp-utils/lib/Mixins.ts
70% <0%> (ø)
:arrow_up:

@here/harp-materials/lib/CopyMaterial.ts
100% <0%> (ø)
:arrow_up:

...e/harp-geoutils/lib/tiling/MercatorTilingScheme.ts
100% <0%> (ø)
:arrow_up:

... and 28 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 95e01bc...634b2f7. Read the comment docs.


Failure when reading complex root file

I'm having problems reading a complex ROOT file (containing many branches with variable-length arrays) using root_numpy.
I've uploaded the first entry of the dataset here
Running the following script
from root_numpy import *

arr = root2array('out_tree.root', 'tree')
print(arr)

produces the following stack trace:
 *** Break *** segmentation violation

===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007fdabed70aaa in waitpid () from /usr/lib/libc.so.6
#1  0x00007fdabecf840b in do_system () from /usr/lib/libc.so.6
#2  0x00007fdab629aed1 in TUnixSystem::StackTrace() () from /usr/lib/root/libCore.so.5.34
#3  0x00007fdab629cf5c in TUnixSystem::DispatchSignals(ESignals) () from /usr/lib/root/libCore.so.5.34
#4  <signal handler called>
#5  OBJECT_getitem (ip=0x122deeb "C", ap=0x7fdab6c48b20) at numpy/core/src/multiarray/arraytypes.c.src:525
#6  0x00007fdabdf75758 in VOID_getitem (ip=0x122db50 "\345{\230\345\225w\250?kυ\t\317\024\v
", ap=0x7fdab6c48b20) at numpy/core/src/multiarray/arraytypes.c.src:617
#7  0x00007fdabe020fab in array_toscalar (self=0x7fdab6c48b20, args=<optimized out>) at numpy/core/src/multiarray/methods.c:680
#8  0x00007fdabfa7d153 in call_function (oparg=<optimized out>, pp_stack=0x7ffc7f132018) at Python/ceval.c:4033
#9  PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#10 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabda9b7b0, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=7, kws=0x7fdab6c70828, kwcount=0, defs=0x7fdab9b1d5a8, defcount=7, closure=0x0) at Python/ceval.c:3265
#11 0x00007fdabfa7d2aa in fast_function (nk=<optimized out>, na=7, n=<optimized out>, pp_stack=0x7ffc7f132218, func=0x7fdab9b229b0) at Python/ceval.c:4129
#12 call_function (oparg=<optimized out>, pp_stack=0x7ffc7f132218) at Python/ceval.c:4054
#13 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#14 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabfdcbc30, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=1, kws=0x0, kwcount=0, defs=0x7fdabda931a8, defcount=3, closure=0x0) at Python/ceval.c:3265
#15 0x00007fdabf9fc851 in function_call (func=0x7fdab9b25398, arg=0x7fdab0af84d0, kw=0x0) at Objects/funcobject.c:526
#16 0x00007fdabf9cd323 in PyObject_Call (func=0x7fdab9b25398, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2529
#17 0x00007fdabfa76823 in PyEval_CallObjectWithKeywords (func=0x7fdab9b25398, arg=0x7fdab0af84d0, kw=<optimized out>) at Python/ceval.c:3902
#18 0x00007fdabdf5bac4 in array_str (self=<optimized out>) at numpy/core/src/multiarray/arrayobject.c:664
#19 0x00007fdabfa1999b in _PyObject_Str (v=0x7fdab6c48b20) at Objects/object.c:430
#20 0x00007fdabfa19a8a in PyObject_Str (v=<optimized out>) at Objects/object.c:451
#21 0x00007fdabe04e80e in gentype_repr (self=<optimized out>) at numpy/core/src/multiarray/scalartypes.c.src:372
#22 0x00007fdabfa19625 in PyObject_Repr (v=0x7fdab0b306c0) at Objects/object.c:381
#23 0x00007fdabfa7e2a2 in call_function (oparg=<optimized out>, pp_stack=0x7ffc7f1325b8) at Python/ceval.c:4021
#24 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#25 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabda9b4b0, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=1, kws=0xd60ae0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3265
#26 0x00007fdabfa7d2aa in fast_function (nk=<optimized out>, na=1, n=<optimized out>, pp_stack=0x7ffc7f1327b8, func=0x7fdab9b22848) at Python/ceval.c:4129
#27 call_function (oparg=<optimized out>, pp_stack=0x7ffc7f1327b8) at Python/ceval.c:4054
#28 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#29 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabda9ba30, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=8, kws=0xd5e978, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3265
#30 0x00007fdabfa7d2aa in fast_function (nk=<optimized out>, na=8, n=<optimized out>, pp_stack=0x7ffc7f1329b8, func=0x7fdab9b22aa0) at Python/ceval.c:4129
#31 call_function (oparg=<optimized out>, pp_stack=0x7ffc7f1329b8) at Python/ceval.c:4054
#32 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#33 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabda9b5b0, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=6, kws=0x6ca8a0, kwcount=1, defs=0x7fdab9b151a8, defcount=3, closure=0x0) at Python/ceval.c:3265
#34 0x00007fdabfa7d2aa in fast_function (nk=<optimized out>, na=6, n=<optimized out>, pp_stack=0x7ffc7f132bb8, func=0x7fdab9b228c0) at Python/ceval.c:4129
#35 call_function (oparg=<optimized out>, pp_stack=0x7ffc7f132bb8) at Python/ceval.c:4054
#36 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#37 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabda9b7b0, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=7, kws=0x7fdab6c70628, kwcount=0, defs=0x7fdab9b1d5a8, defcount=7, closure=0x0) at Python/ceval.c:3265
#38 0x00007fdabfa7d2aa in fast_function (nk=<optimized out>, na=7, n=<optimized out>, pp_stack=0x7ffc7f132db8, func=0x7fdab9b229b0) at Python/ceval.c:4129
#39 call_function (oparg=<optimized out>, pp_stack=0x7ffc7f132db8) at Python/ceval.c:4054
#40 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#41 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabfdcbc30, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=1, kws=0x0, kwcount=0, defs=0x7fdabda931a8, defcount=3, closure=0x0) at Python/ceval.c:3265
#42 0x00007fdabf9fc851 in function_call (func=0x7fdab9b25398, arg=0x7fdabfe1ebd0, kw=0x0) at Objects/funcobject.c:526
#43 0x00007fdabf9cd323 in PyObject_Call (func=0x7fdab9b25398, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2529
#44 0x00007fdabfa76823 in PyEval_CallObjectWithKeywords (func=0x7fdab9b25398, arg=0x7fdabfe1ebd0, kw=<optimized out>) at Python/ceval.c:3902
#45 0x00007fdabdf5bac4 in array_str (self=<optimized out>) at numpy/core/src/multiarray/arrayobject.c:664
#46 0x00007fdabfa1999b in _PyObject_Str (v=0x7fdab0a48df0) at Objects/object.c:430
#47 0x00007fdabfa19a8a in PyObject_Str (v=<optimized out>) at Objects/object.c:451
#48 0x00007fdabfa19be2 in internal_print (op=0x7fdab0a48df0, fp=0x7fdabf057740 <_IO_2_1_stdout_>, flags=<optimized out>, nesting=0) at Objects/object.c:303
#49 0x00007fdabf9f4e48 in file_PyObject_Print (flags=1, f=0x7fdabff69150, op=0x7fdab0a48df0) at Objects/fileobject.c:110
#50 PyFile_WriteObject (v=<optimized out>, f=0x7fdabff69150, flags=1) at Objects/fileobject.c:2579
#51 0x00007fdabfa7b600 in PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:1771
#52 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabfe77e30, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3265
#53 0x00007fdabfa7ed82 in PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at Python/ceval.c:667
#54 0x00007fdabfa9eba0 in run_mod (arena=0x6825b0, flags=0x7ffc7f133480, locals=0x7fdabff17168, globals=0x7fdabff17168, filename=<optimized out>, mod=0x6c4f48) at Python/pythonrun.c:1371
#55 PyRun_FileExFlags (fp=0x6c8d10, filename=<optimized out>, start=<optimized out>, globals=0x7fdabff17168, locals=0x7fdabff17168, closeit=1, flags=0x7ffc7f133480) at Python/pythonrun.c:1357
#56 0x00007fdabfa9ed7f in PyRun_SimpleFileExFlags (fp=0x6c8d10, filename=0x7ffc7f135031 "bla.py", closeit=1, flags=0x7ffc7f133480) at Python/pythonrun.c:949
#57 0x00007fdabfab4664 in Py_Main (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:645
#58 0x00007fdabecd9800 in __libc_start_main () from /usr/lib/libc.so.6
#59 0x0000000000400649 in _start ()
===========================================================

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5  OBJECT_getitem (ip=0x122deeb "C", ap=0x7fdab6c48b20) at numpy/core/src/multiarray/arraytypes.c.src:525
#6  0x00007fdabdf75758 in VOID_getitem (ip=0x122db50 "345{230345225w250?kυt317024v
", ap=0x7fdab6c48b20) at numpy/core/src/multiarray/arraytypes.c.src:617
#7  0x00007fdabe020fab in array_toscalar (self=0x7fdab6c48b20, args=<optimized out>) at numpy/core/src/multiarray/methods.c:680
#8  0x00007fdabfa7d153 in call_function (oparg=<optimized out>, pp_stack=0x7ffc7f132018) at Python/ceval.c:4033
#9  PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#10 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabda9b7b0, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=7, kws=0x7fdab6c70828, kwcount=0, defs=0x7fdab9b1d5a8, defcount=7, closure=0x0) at Python/ceval.c:3265
#11 0x00007fdabfa7d2aa in fast_function (nk=<optimized out>, na=7, n=<optimized out>, pp_stack=0x7ffc7f132218, func=0x7fdab9b229b0) at Python/ceval.c:4129
#12 call_function (oparg=<optimized out>, pp_stack=0x7ffc7f132218) at Python/ceval.c:4054
#13 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#14 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabfdcbc30, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=1, kws=0x0, kwcount=0, defs=0x7fdabda931a8, defcount=3, closure=0x0) at Python/ceval.c:3265
#15 0x00007fdabf9fc851 in function_call (func=0x7fdab9b25398, arg=0x7fdab0af84d0, kw=0x0) at Objects/funcobject.c:526
#16 0x00007fdabf9cd323 in PyObject_Call (func=0x7fdab9b25398, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2529
#17 0x00007fdabfa76823 in PyEval_CallObjectWithKeywords (func=0x7fdab9b25398, arg=0x7fdab0af84d0, kw=<optimized out>) at Python/ceval.c:3902
#18 0x00007fdabdf5bac4 in array_str (self=<optimized out>) at numpy/core/src/multiarray/arrayobject.c:664
#19 0x00007fdabfa1999b in _PyObject_Str (v=0x7fdab6c48b20) at Objects/object.c:430
#20 0x00007fdabfa19a8a in PyObject_Str (v=<optimized out>) at Objects/object.c:451
#21 0x00007fdabe04e80e in gentype_repr (self=<optimized out>) at numpy/core/src/multiarray/scalartypes.c.src:372
#22 0x00007fdabfa19625 in PyObject_Repr (v=0x7fdab0b306c0) at Objects/object.c:381
#23 0x00007fdabfa7e2a2 in call_function (oparg=<optimized out>, pp_stack=0x7ffc7f1325b8) at Python/ceval.c:4021
#24 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#25 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabda9b4b0, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=1, kws=0xd60ae0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3265
#26 0x00007fdabfa7d2aa in fast_function (nk=<optimized out>, na=1, n=<optimized out>, pp_stack=0x7ffc7f1327b8, func=0x7fdab9b22848) at Python/ceval.c:4129
#27 call_function (oparg=<optimized out>, pp_stack=0x7ffc7f1327b8) at Python/ceval.c:4054
#28 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#29 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabda9ba30, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=8, kws=0xd5e978, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3265
#30 0x00007fdabfa7d2aa in fast_function (nk=<optimized out>, na=8, n=<optimized out>, pp_stack=0x7ffc7f1329b8, func=0x7fdab9b22aa0) at Python/ceval.c:4129
#31 call_function (oparg=<optimized out>, pp_stack=0x7ffc7f1329b8) at Python/ceval.c:4054
#32 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#33 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabda9b5b0, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=6, kws=0x6ca8a0, kwcount=1, defs=0x7fdab9b151a8, defcount=3, closure=0x0) at Python/ceval.c:3265
#34 0x00007fdabfa7d2aa in fast_function (nk=<optimized out>, na=6, n=<optimized out>, pp_stack=0x7ffc7f132bb8, func=0x7fdab9b228c0) at Python/ceval.c:4129
#35 call_function (oparg=<optimized out>, pp_stack=0x7ffc7f132bb8) at Python/ceval.c:4054
#36 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#37 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabda9b7b0, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=7, kws=0x7fdab6c70628, kwcount=0, defs=0x7fdab9b1d5a8, defcount=7, closure=0x0) at Python/ceval.c:3265
#38 0x00007fdabfa7d2aa in fast_function (nk=<optimized out>, na=7, n=<optimized out>, pp_stack=0x7ffc7f132db8, func=0x7fdab9b229b0) at Python/ceval.c:4129
#39 call_function (oparg=<optimized out>, pp_stack=0x7ffc7f132db8) at Python/ceval.c:4054
#40 PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:2679
#41 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabfdcbc30, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=1, kws=0x0, kwcount=0, defs=0x7fdabda931a8, defcount=3, closure=0x0) at Python/ceval.c:3265
#42 0x00007fdabf9fc851 in function_call (func=0x7fdab9b25398, arg=0x7fdabfe1ebd0, kw=0x0) at Objects/funcobject.c:526
#43 0x00007fdabf9cd323 in PyObject_Call (func=0x7fdab9b25398, arg=<optimized out>, kw=<optimized out>) at Objects/abstract.c:2529
#44 0x00007fdabfa76823 in PyEval_CallObjectWithKeywords (func=0x7fdab9b25398, arg=0x7fdabfe1ebd0, kw=<optimized out>) at Python/ceval.c:3902
#45 0x00007fdabdf5bac4 in array_str (self=<optimized out>) at numpy/core/src/multiarray/arrayobject.c:664
#46 0x00007fdabfa1999b in _PyObject_Str (v=0x7fdab0a48df0) at Objects/object.c:430
#47 0x00007fdabfa19a8a in PyObject_Str (v=<optimized out>) at Objects/object.c:451
#48 0x00007fdabfa19be2 in internal_print (op=0x7fdab0a48df0, fp=0x7fdabf057740 <_IO_2_1_stdout_>, flags=<optimized out>, nesting=0) at Objects/object.c:303
#49 0x00007fdabf9f4e48 in file_PyObject_Print (flags=1, f=0x7fdabff69150, op=0x7fdab0a48df0) at Objects/fileobject.c:110
#50 PyFile_WriteObject (v=<optimized out>, f=0x7fdabff69150, flags=1) at Objects/fileobject.c:2579
#51 0x00007fdabfa7b600 in PyEval_EvalFrameEx (f=<optimized out>, throwflag=<optimized out>) at Python/ceval.c:1771
#52 0x00007fdabfa7ec6e in PyEval_EvalCodeEx (co=0x7fdabfe77e30, globals=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:3265
#53 0x00007fdabfa7ed82 in PyEval_EvalCode (co=<optimized out>, globals=<optimized out>, locals=<optimized out>) at Python/ceval.c:667
#54 0x00007fdabfa9eba0 in run_mod (arena=0x6825b0, flags=0x7ffc7f133480, locals=0x7fdabff17168, globals=0x7fdabff17168, filename=<optimized out>, mod=0x6c4f48) at Python/pythonrun.c:1371
#55 PyRun_FileExFlags (fp=0x6c8d10, filename=<optimized out>, start=<optimized out>, globals=0x7fdabff17168, locals=0x7fdabff17168, closeit=1, flags=0x7ffc7f133480) at Python/pythonrun.c:1357
#56 0x00007fdabfa9ed7f in PyRun_SimpleFileExFlags (fp=0x6c8d10, filename=0x7ffc7f135031 "bla.py", closeit=1, flags=0x7ffc7f133480) at Python/pythonrun.c:949
#57 0x00007fdabfab4664 in Py_Main (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:645
#58 0x00007fdabecd9800 in __libc_start_main () from /usr/lib/libc.so.6
#59 0x0000000000400649 in _start ()
===========================================================

The error also changes depending on which variables are read in.

It just occurred to me that the count branch also has to be included in the list of branches to read.
In that case, reading from the array works.
But then I'm not sure why my larger array gets corrupted :/

Wow, thanks for reporting. I'll take a look. This could be something not covered by our unit tests.

Yes, I see this:
*** Error in `python': malloc(): memory corruption: 0x0000000003594310 ***
Aborted
I'm using ROOT 6.03/03 and Python 2.7.9.
There is something strange about this file though. ROOT is reporting a negative size on disk for each branch:
https://gist.github.com/ndawe/d054453e5899769281b1

I can reproduce the same crash after OBJECT_getitem when cloning your tree into a new file. I suspect it's either some corruption in the tree or there is a memory management problem with an np.object type.

Looks like I messed up the ROOT file when taking only one entry from it.
Somehow I managed to save an in-memory tree to disk, which is why it returned -1 for the branch sizes.
I've uploaded a new version.
This one gives sensible branch sizes with rootpy tree, but still segfaults when reading it in via root_numpy.
It could very well be some corruption in the tree, although it seems to look fine when opening it with TBrowser and looking at the individual branches.

Thanks! Yes, I still get the same segfault. My guess is that an array (from one of the array-type branches) is being deleted  / not INCREF'd properly leaving numpy with pointers to invalid memory. I'll take a closer look with valgrind.

The problematic branch is B0_DECAYMTRX (I discovered this by iterating over each branch and converting it separately). If I include all other branches except this one, root_numpy gives me an array and does not segfault. root_numpy isn't aware that B0_DECAYMTRX_LENGTH is associated to B0_DECAYMTRX and is probably accessing invalid memory.

Just wanted to write the exact same thing :D

I was also surprised at how long it took to convert just a single branch. After enabling profiling in the cython code, I discovered that the majority of the time was spent in our TreeChain destructor where we revert the status of each branch back to the original status. I need to think about that some more. There might be a faster way to do this, or we should give the user the option of not reverting the branches to save time.

The variable was written using this method: http://lhcb-release-area.web.cern.ch/LHCb-release-area/DOC/davinci/releases/latest/doxygen/d5/d75/class_tuples_1_1_tuple_obj.html#a0284acaa6c3329e2a9247f3dd649d69e
I'm surprised that ROOT can read/write variable-size matrices.
When only reading the B_DECAYMTRX variable with root_numpy, I don't get a segfault, and it looks like root_numpy only retrieves a single row (25 values) of the matrix.
Everything seems to be working fine when I exclude the variable, so I'm just going to do that for now.
Thanks for taking the time to look at this!

@ibab thanks again for reporting this. I'd still call this a bug in root_numpy. It should know to back away from a branch it doesn't know how to convert properly. I'll investigate.
This also raised the issue of how long tree2array took to convert trees with thousands of branches. Most of the time was wasted on non-essential tasks like reverting branch statuses. I've made changes in #193 that really speeds up tree2array a lot. If you update to the latest commit on the master branch, you should see this increased speed on your large tree. A new tag will come soon.

I've cornered the issue in root_numpy and I'll have a PR coming soon that fixes this.

Fixed in #202. root_numpy now handles multidimensional arrays.