Add manual sys functions where GIR is incorrect

Issue #92
These sys functions have the wrong definition because the GIR files have incorrect array tags due to issue 189 in gi-introspection.  It occurs when the C function definition uses the [] operator in a parameter.  I've searched through header files and these are the only functions that I could find.  It's possible that I missed some though.

@bvinc Sorry for long wait for review.
Thanks for PR, but now this type of error better solved by patching .gir files.
Ex. adding to https://github.com/gtk-rs/gir-files/blob/master/fix.sh this
xmlstarlet ed -P -L \
	-u '//_:class[@name="IconTheme"]/_:method//_:parameter[@name="icon_names"]/_:array/@c:type' -v "gchar const* *" \
	Gtk-3.0.gir

can fix generation 2 function in sys
pub fn gtk_icon_theme_choose_icon(icon_theme: *mut GtkIconTheme, icon_names: *const *mut c_char, size: c_int, flags: GtkIconLookupFlags) -> *mut GtkIconInfo;
pub fn gtk_icon_theme_choose_icon_for_scale(icon_theme: *mut GtkIconTheme, icon_names: *const *mut c_char, size: c_int, scale: c_int, flags: GtkIconLookupFlags) -> *mut GtkIconInfo;

and allow generate functions in gtk
fn choose_icon(&self, icon_names: &[&str], size: i32, flags: IconLookupFlags) -> Option<IconInfo> {
    unsafe {
        from_glib_full(ffi::gtk_icon_theme_choose_icon(self.to_glib_none().0, icon_names.to_glib_none().0, size, flags.to_glib()))
    }
}

#[cfg(any(feature = "v3_10", feature = "dox"))]
fn choose_icon_for_scale(&self, icon_names: &[&str], size: i32, scale: i32, flags: IconLookupFlags) -> Option<IconInfo> {
    unsafe {
        from_glib_full(ffi::gtk_icon_theme_choose_icon_for_scale(self.to_glib_none().0, icon_names.to_glib_none().0, size, scale, flags.to_glib()))
    }
}

PS. It better be "gchar const* const*" in .gir, but glib need fix for support it too.

Fixed with gtk-rs/gir-files#23

@bvinc So you don't want update this PR with right version? 😉


instance.subnet displays wrong subnets

List of subnets of my new account:
$ awless --aws-profile MYACCOUNT list subnets

|      ID ▲       | NAME |      CIDR      |    ZONE    | DEFAULT |     VPC      | PUBLIC |   STATE   |
|-----------------|------|----------------|------------|---------|--------------|--------|-----------|
| subnet-43cafb1b |      | <IP_ADDRESS>/20 | eu-west-1a | true    | vpc-3f9f7758 | true   | available |
| subnet-7abe4a1d |      | <IP_ADDRESS>/20  | eu-west-1b | true    | vpc-3f9f7758 | true   | available |
| subnet-c6e91f8f |      | <IP_ADDRESS>/20 | eu-west-1c | true    | vpc-3f9f7758 | true   | available |

Awless display wrong subnets (it's another account):
$ awless --aws-profile MYACCOUNT create instance keypair=MYKEY
Please specify (Ctrl+C to quit, Tab for completion):
instance.name? test
instance.subnet?
subnet-2c360c74      subnet-34e41a53      subnet-b24bb0fb

Thanks for the bug report.
This is very probably because the last local model that was stored locally was using a different AWS profile. As a result, the subnets proposed by completion are those of this other profile.
We will fix that after 0.1.0 by improving the way we store local models. Actually, we have the same problem if you switch region using, for example, the --aws-region flag.

True after 0.1.0, we will be able to store multi-{region/profile} simultaneously, which will solve the problem.
As for now, it seems the use of --aws-profile as a quick handy flag to be in the correct profile (before creating resource) might be due to the fact that it is currently a pain to set anther profile and region through the cumbersome command awless config set aws.profile my-profile
Maybe an awless switch specific for quickly setting profile/region could come in handy. On this command an --no-sync flag could be used to not trigger sync when switching profile.
If doing an awless switch command before next week, smart completion of your (often used/most used, like a stack) profile/region would be paramount!

This is fixed (since 0.1.1) and completion now works as expected.


Dynamic replaceable templates

I'm building a plugin to automatically create tables based on given properties array and row items. Simplifying:

      ${item[property]}

This works like a charm, but it would be useful to let the plugin user to customize the rendering of some property with a template. For example, given items of type:
{
  "id": 123,
  "name": "Aurelia",
  "description": "Awesome framework"
}

one may use a template to customize the rendering of item.name like this:
<custom-table items.bind="items", properties.bind="properties">
  <template replace part="name">
    ${item.name}
  </template>
</custom-table>

I've tried to bind the part attribute to the property name, this way:

      <template replaceable part.bind="property">
        ${item[property]}
      </template>

with no success. Is it possibile in some way, or will it be?

seems to be working now: https://gist.run/?id=2fb02c423647ec726c5830461e13f7d8

@jdanyow  the plunk you provided shows the router functionality but does not show any thing about making part bindable . Can you clarify how that solves the issue.


also add schema test in fields for default values and others

Follow up on #8080. which only tested in SerDe. this explicitly add tests on different underlying data type.

Codecov Report

Merging #8088 (2b36bf4) into master (0fe7ef8) will decrease coverage by 42.21%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master    #8088       +/-   ##
=============================================
- Coverage     71.24%   29.03%   -42.22%
=============================================
  Files          1607     1598        -9
  Lines         83409    83061      -348
  Branches      12458    12420       -38
=============================================
- Hits          59426    24113    -35313
- Misses        19941    56756    +36815
+ Partials       4042     2192     -1850

Flag
Coverage Δ

integration1
29.03% <ø> (+0.05%)
:arrow_up:

integration2
?

unittests1
?

unittests2
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Axis scaling: Time ignores bound option and max option.

When I set bound to fit to the data, it still draws with extra padding to the right of the data.
When I force it with max to fit the data, it still adds padding to the right to draw the label rather than not drawing the label or culling it.

@joeyhub can you add an interactive example on plukr, codepen (e.g. https://codepen.io/pen?template=JXVYzq), or a similar site?

I'm seeing a lot of things that are a bit off.
The fiddle doesn't have moment.
var ctx = document.getElementById("myChart");
var myChart = new Chart(ctx, {
    type: 'line',
    data: {
        datasets: [{
            data: [{x: new Date(0), y: 123}, {x: new Date((86400 - 3600) * 1000), y: 321}]
        }, {
            data: [{x: new Date(0), y: 12}, {x: new Date((86400 - 3600) * 1000), y: 32}]
        }]
    },
    options: {
        scales: {
            xAxes: [{
                display: true,
                type: 'time',
                time: {unitStepSize: 1, unit: 'day'},
                ticks: {
                    display: true
                }
            }]
        }
    }
});

There's also some mess up with the timezones. Ticks are drawn to UTC but points to GMT / DST. The documentation doesn't mention TZ but in any event if not specified it should be the same everywhere! I'm guessing you're using toLocaleString but just pulling the MS for the points without applying the offset.
In my graph in the legacy code, it's not drawing the label at an angle, I have no idea why as maxRotation is left to default.
In the fiddle, changing source to data causes rotation! It appears to be arbitrary. It also seems to snap it to UTC? Or not, it's just snapping to points then flooring? This produces double printed points of the same day that overlap!
When it orients horizontally in my legacy case, it prints extra padding at the end.
Angular chart 1.1.1 -> Chart.js 2.3.0.

For me in my legacy example, the grid lines are drawing all the way up to the bounding box defined by labels where as in the fiddle about they truncate / are cropped to the date bounds rather than the label overflow.
In my legacy case they also protrude ever so slightly because of the TZ error. There's another oddity that when replicated in the fiddle the protrusion doesn't result in grid lines being drawn, I'm guessing someone has mucked around with the global defaults in my case such the gridlines snap to the parent box though I don't see any obvious settings that would do that being changed.

https://jtblin.github.io/angular-chart.js/
A lot of the examples here overshoot. Though I don't see anything in their lib that would obviously cause that.

This is weird. I copy the chart data from the angular-chart.js example page of one with over draw....
Chart.defaults.global.multiTooltipTemplate = '<%if (datasetLabel){%><%=datasetLabel%>: <%}%><%= value %>';
Chart.defaults.global.tooltips.mode = 'label';
Chart.defaults.global.elements.line.borderWidth = 2;
Chart.defaults.global.elements.rectangle.borderWidth = 2;
Chart.defaults.global.legend.display = false;
Chart.defaults.global.colors = [
    '#97BBCD', // blue
    '#DCDCDC', // light grey
    '#F7464A', // red
    '#46BFBD', // green
    '#FDB45C', // yellow
    '#949FB1', // grey
    '#4D5360'  // dark grey
  ];

var ctx = document.getElementById("myChart");
var myChart = new Chart(ctx, {
  "type": "line",
  "data": {
    "labels": [
      "Monday",
      "Tuesday",
      "Wednesday",
      "Thursday",
      "Friday",
      "Saturday",
      "Sunday"
    ],
    "datasets": [
      {
        "backgroundColor": "rgba(151,187,205,0.2)",
        "pointBackgroundColor": "rgba(151,187,205,1)",
        "pointHoverBackgroundColor": "rgba(151,187,205,0.8)",
        "borderColor": "rgba(151,187,205,1)",
        "pointBorderColor": "#fff",
        "pointHoverBorderColor": "rgba(151,187,205,1)",
        "label": "Series A",
        "data": [
          65,
          59,
          80,
          81,
          56,
          55,
          40
        ],
        "yAxisID": "y-axis-1"
      },
      {
        "backgroundColor": "rgba(220,220,220,0.2)",
        "pointBackgroundColor": "rgba(220,220,220,1)",
        "pointHoverBackgroundColor": "rgba(220,220,220,0.8)",
        "borderColor": "rgba(220,220,220,1)",
        "pointBorderColor": "#fff",
        "pointHoverBorderColor": "rgba(220,220,220,1)",
        "label": "Series B",
        "data": [
          28,
          48,
          40,
          19,
          86,
          27,
          90
        ],
        "yAxisID": "y-axis-2"
      }
    ]
  },
  "options": {
    "responsive": true,
    "colors": [
      "#97BBCD",
      "#DCDCDC",
      "#F7464A",
      "#46BFBD",
      "#FDB45C",
      "#949FB1",
      "#4D5360"
    ],
    "doughnut": {
      "cutoutPercentage": 60
    },
    "bubble": {
      "tooltips": {
        "enabled": false
      }
    },
    "scales": {
      "yAxes": [
        {
          "id": "y-axis-1",
          "type": "linear",
          "display": true,
          "position": "left"
        },
        {
          "id": "y-axis-2",
          "type": "linear",
          "display": true,
          "position": "right"
        }
      ]
    }
  }
});

This is actually the wrong one, I intended to copy the reactive one.
In the fiddle it doesn't show the overdraw at the top.
On the demo page though it does.

Half the issue is that angular-chart.js is unmaintained abandonware. I've raised an issue with them to either transfer it or shut it down via a great big notification in their readme, possibly with a redirect to something else that's the same (or back down to bare chart.js).
I'm guessing in some version after 2.3.0 you changed how grid lines are drawn?

I'd highly recommend using 2.8.0. There's too much different that's changed since 2.3.0 to really be able to effectively offer much guidance

I have managed to swap out 2.3 for 2.8 which fixes the grid over draw issue now that I know the version bundled with the angular lib wasn't actually the latest.
The only thing remaining is that even with 2.8 there appears to potentially be a discrepancy when using Date with points versus ticks and timezones. I'm not sure if it's the case for use with moment though.

You could try the luxon adapter. It has timezone support, which moment doesn't by default

It seems the issue is here:
https://github.com/chartjs/Chart.js/issues/4334
It should be possible to implement UTC versus local, in JS you should normally always have support for both locale and UTC using either native (albeit hacksome) or moment. For others that's an additional feature.
const
  start = new Date(0),
  middle = new Date((86400 + start.getTimezoneOffset() * 60) * 1000),
  end = new Date(86400 * 1000),
  datasets = {
    a: [
      {data: [{x: start, y: 123}, {x: middle, y: 132}, {x: end, y: 321}]},
      {data: [{x: start, y: 12}, {x: middle, y: 13}, {x: end, y: 32}]}
    ],
    b: [
      {data: [{x: moment(+start), y: 123}, {x: moment(+middle), y: 132}, {x: moment(+end), y: 321}]},
      {data: [{x: moment(+start), y: 12}, {x: moment(+middle), y: 13}, {x: moment(+end), y: 32}]}
    ]
  };

for(let k in datasets)
  new Chart(document.getElementById(`chart_${k}`), {
    type: 'line',
    data: {datasets: datasets[k]},
    options: {
      legend: {display: false},
      scales: {
        xAxes: [{
          display: true,
          type: 'time',
          time: {unitStepSize: 1, unit: 'day'},
          ticks: {display: true}
        }]
      }
    }
  });

.chart_holder {
  max-width: 600px;
  max-height: 400px;
  display: inline-block;
}

      <canvas id="chart_a" width="600" height="400"></canvas>

      <canvas id="chart_b" width="600" height="400"></canvas>

This is due to how moment formats dates. Using another date adapter such as luxon solves the problem https://jsfiddle.net/joLp0fw5/


UI for setting multiple repos to install pkgs from

pls provide UI for specifying where to pick up pkgs from.  eg:

path to internal server 1
path to internal server 2
gohlke
pypi

paths are search in order to find pkgs.

Until we add UI for this, you can set it via pip.ini.

We're closing old issues with no recent activity. If this is still important, please open a new issue.


Show dataframe index in grid

Currently dataframes are displayed without their index columns.
Suggested solution:
Add another for loop before this one:
https://github.com/PablocFonseca/streamlit-aggrid/blob/e329bce74c0df5e4f4eba4d110c9461b578bf3ce/st_aggrid/grid_options_builder.py#L43
With the following code:
index = dataframe.index
if isinstance(index, MultiIndex):
    for level in index:
        gb.configure_column(field=level.name, type=type_mapper.get(level.dtype.kind, []))
else:
    gb.configure_column(field=index.name, type=type_mapper.get(index.dtype.kind, []))

Note that index name could be None, I dunno how it handles such a case.
It might be convenient to wrap this piece of code in some kind of "display index column" configuration (through grid options?) that lets the user decide whether to display the index or not.
And... it seems the above code indeed adds an index column, but doesn't populate it.

Interested by this too...
Does anyone have a functionning workaround ?
I guess one can had a column copying the index in the meantime, but doesn't sound right ^^
Thx!

My workaround is just calling df.reset_index() before passing it to aggrid.


Can we remove the replicated code

Having replicated code elsewhere makes the power pack very fragmentary especially when the code has been updated elsewhere.
Wouldn't it make sense to just remove it?

Closing this as the powerpack has been split into multiple projects https://github.com/fsprojects/powerpack/blob/master/README.md


Adopt working CI

https://github.com/jonhoo/rust-ci-conf

Miri failures are expected; see https://github.com/jonhoo/arccstr/pull/7.


1

Description

Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Checklist

ℹ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

[ ] If you introduce new functionality, document it. You can run documentation with pnpm run docs:dev command.
[ ] Run the tests with pnpm test.
[ ] Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Summary by CodeRabbit
Release Notes

New Features

Added a new script for a dedicated development environment for the @vben/web-demo package.

Changes

Updated directory references from @core to _core across various documentation and configuration files.
Removed Baidu tracking scripts from multiple HTML files, indicating a shift in analytics strategy.

Bug Fixes

Adjusted ESLint configurations to reflect updated directory paths.

These changes enhance project organization and streamline the development process.

手残提交的,可删除


[Event Request] Codeunit 5813 "Undo Purchase Receipt Line" - OnCheckPurchRcptLineOnBeforeCollectItemLedgEntries

Describe the request
Could you please add the following OnCheckPurchRcptLineOnBeforeCollectItemLedgEntries event to procedure CheckPurchRcptLine in Codeunit 5813 "Undo Purchase Receipt Line"?
This event request is motivated by the fact that we need to extend only a piece of the code and not the whole function. This way we can keep what we extend to a minimum.
Current:
    with PurchRcptLine do begin
        if Correction then
            Error(AlreadyReversedErr);
        if "Qty. Rcd. Not Invoiced" <> Quantity then
            if HasInvoicedNotReturnedQuantity(PurchRcptLine) then
                Error(Text004);
        if Type = Type::Item then begin
            TestField("Prod. Order No.", '');
            TestField("Sales Order No.", '');
            TestField("Sales Order Line No.", 0);

            UndoPostingMgt.TestPurchRcptLine(PurchRcptLine);
            UndoPostingMgt.CollectItemLedgEntries(TempItemLedgEntry, DATABASE::"Purch. Rcpt. Line",
              "Document No.", "Line No.", "Quantity (Base)", "Item Rcpt. Entry No.");
            UndoPostingMgt.CheckItemLedgEntries(TempItemLedgEntry, "Line No.", "Qty. Rcd. Not Invoiced" <> Quantity);
        end;
    end;

Requested:
    with PurchRcptLine do begin
        if Correction then
            Error(AlreadyReversedErr);
        if "Qty. Rcd. Not Invoiced" <> Quantity then
            if HasInvoicedNotReturnedQuantity(PurchRcptLine) then
                Error(Text004);
        if Type = Type::Item then begin
            TestField("Prod. Order No.", '');
            TestField("Sales Order No.", '');
            TestField("Sales Order Line No.", 0);

            UndoPostingMgt.TestPurchRcptLine(PurchRcptLine);
            IsHandled := false;
            OnCheckPurchRcptLineOnBeforeCollectItemLedgEntries(PurchRcptLine, TempItemLedgEntry, IsHandled);
            if not IsHandled then begin
                 UndoPostingMgt.CollectItemLedgEntries(TempItemLedgEntry, DATABASE::"Purch. Rcpt. Line",
                   "Document No.", "Line No.", "Quantity (Base)", "Item Rcpt. Entry No.");
                 UndoPostingMgt.CheckItemLedgEntries(TempItemLedgEntry, "Line No.", "Qty. Rcd. Not Invoiced" <> Quantity);
            end;
        end;
    end;

    ...
    [IntegrationEvent(false, false)]
    local procedure OnCheckPurchRcptLineOnBeforeCollectItemLedgEntries(var PurchRcptLine: Record "Purch. Rcpt. Line"; var TempItemLedgEntry: Record "Item Ledger Entry" temporary; var IsHandled: Boolean)
    begin
    end;

Additional context
This event request is motivated by the fact that we need to extend only a piece of the code from Codeunit 5813 "Undo Purchase Receipt Line" and not the whole procedure (CheckPurchRcptLine ). This way we can keep what we extend to a minimum, and also better respect the development guidelines.
Internal work item: AB#523886

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 18389.


5-3 cutscene Wesker invisible (except head) when exported

Resident Evil 5 Gold Edition
With uEm80_arc
Blender version 2.78
Albam version 0.3.0
Observed behavior
After doing any edit to Wesker his body appears invisible in the 5-3 cutscene. In gameplay it's fine.
Additionally, the originally intended model appears for a split second, possibly suggesting is a LOD issue.
Expected behavior
The body should show.
Steps to reproduce
Import and export Wesker.

Fixed in Albam Reloaded and backported to Albam.


failed to install

excute this command,
npm install node-fprint
below are the error log

<EMAIL_ADDRESS>install /root/node_modules/node-fprint
node-gyp rebuild

Package libfprint was not found in the pkg-config search path.
Perhaps you should add the directory containing libfprint.pc' to the PKG_CONFIG_PATH environment variable No package 'libfprint' found gyp: Call to 'pkg-config --libs libfprint' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 4.6.3-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/node_modules/node-fprint
gyp ERR! node -v v6.3.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.
npm ERR! Linux 4.6.3-1-ARCH
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "--save" "install" "node-fprint"
npm ERR! node v6.3.0
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-fprint package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-fprint
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-fprint
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /root/npm-debug.log

No package 'libfprint' found

Most probably you should install libfprint-dev package.

Hi,
Please advise where and how tom install 'libfprint' package.
Thanks

Thanks.
working ok now.
using 'pacman -S libfprint' command

how can we install libfprint-dev package on windows 10


invalid response body "Server error"

Since two days we have started to experience problems with github-release.
This is sufficient to reproduce the problem: github-release  info --user ghostery --repo user-agent-desktop
Output:
error: invalid response body: {
  "message": "Server Error"
}

This happens on both v0.10.0 and v0.9.0 regardless of auth user.

Here's the entire request/response loop. My guess is that you need to specify a github token now. I don't know that we can really control the fact that a 502 is being returned by Github.
GET /repos/ghostery/user-agent-desktop/releases?per_page=100 HTTP/1.1
Host: api.github.com
User-Agent: github-release/0.9.0 rest-client/2.2 (https://github.com/kevinburke/rest) go/devel +4fd9455882 Mon Dec 28 17:15:36 2020 +0000 (darwin/amd64)
Accept: application/json
Accept-Charset: utf-8
Accept-Encoding: gzip

HTTP/1.1 502 Bad Gateway
Content-Length: 32
Content-Type: application/json
Date: Tue, 19 Jan 2021 17:12:33 GMT
Etag: "6007102e-20"
Server: GitHub.com
Vary: Accept-Encoding, Accept, X-Requested-With
X-Github-Request-Id: DEC8:1E11:6288:75F9:6007130C
X-Ratelimit-Limit: 60
X-Ratelimit-Remaining: 54
X-Ratelimit-Reset:<PHONE_NUMBER>
X-Ratelimit-Used: 6

{
  "message": "Server Error"
}

Here's the entire request/response loop. My guess is that you need to specify a github token now. I don't know that we can really control the fact that a 502 is being returned by Github.
GET /repos/ghostery/user-agent-desktop/releases?per_page=100 HTTP/1.1
Host: api.github.com
User-Agent: github-release/0.9.0 rest-client/2.2 (https://github.com/kevinburke/rest) go/devel +4fd9455882 Mon Dec 28 17:15:36 2020 +0000 (darwin/amd64)
Accept: application/json
Accept-Charset: utf-8
Accept-Encoding: gzip

HTTP/1.1 502 Bad Gateway
Content-Length: 32
Content-Type: application/json
Date: Tue, 19 Jan 2021 17:12:33 GMT
Etag: "6007102e-20"
Server: GitHub.com
Vary: Accept-Encoding, Accept, X-Requested-With
X-Github-Request-Id: DEC8:1E11:6288:75F9:6007130C
X-Ratelimit-Limit: 60
X-Ratelimit-Remaining: 54
X-Ratelimit-Reset:<PHONE_NUMBER>
X-Ratelimit-Used: 6

{
  "message": "Server Error"
}

Pass --security-token to make the request with a token.

Pass --security-token to make the request with a token.

I'm using GITHUB_TOKEN env variable with the same effect. Also this is a public repository.
Does the command work fine if you pass the --security-token ?
PS. All was working fine since few days ago.

I'm using GITHUB_TOKEN env variable with the same effect. Also this is a public repository.
Does the command work fine if you pass the --security-token ?
PS. All was working fine since few days ago.

The command works for me with GITHUB_TOKEN present in the environment, and the most recent github-release commit, or v0.10.0.
$ DEBUG_HTTP_TRAFFIC=true GITHUB_TOKEN=$(cat ~/cfg/personal-github-token) github-release info --user ghostery --repo user-agent-desktop | head -n 10
GET /repos/ghostery/user-agent-desktop/tags?per_page=100 HTTP/1.1
Host: api.github.com
User-Agent: github-release/0.9.0 rest-client/2.2 (https://github.com/kevinburke/rest) go/devel +4fd9455882 Mon Dec 28 17:15:36 2020 +0000 (darwin/amd64)
Accept: application/json
Accept-Charset: utf-8
Authorization: Basic <redacted>
Accept-Encoding: gzip

HTTP/1.1 200 OK
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
Cache-Control: private, max-age=60, s-maxage=60
Content-Security-Policy: default-src 'none'
Content-Type: application/json; charset=utf-8
Date: Tue, 19 Jan 2021 18:14:26 GMT
Etag: W/"401f648e01d61998c271337fe69eed9d92cb9f3bdf1556c526531183955138cc"
Last-Modified: Tue, 19 Jan 2021 18:11:03 GMT
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Server: GitHub.com
Status: 200 OK
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
Vary: Accept, Authorization, Cookie, X-GitHub-OTP
Vary: Accept-Encoding, Accept, X-Requested-With
Vary: Accept-Encoding
X-Accepted-Oauth-Scopes:
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Github-Media-Type: github.v3
X-Github-Request-Id: E256:8A22:22603:2B702:60072182
X-Oauth-Scopes: admin:repo_hook, delete:packages, repo, user, workflow, write:packages
X-Ratelimit-Limit: 5000
X-Ratelimit-Remaining: 4997
X-Ratelimit-Reset:<PHONE_NUMBER>
X-Ratelimit-Used: 3
X-Xss-Protection: 1; mode=block

Also works if I set --security-token.
$ DEBUG_HTTP_TRAFFIC=true github-release info --security-token $(cat ~/cfg/personal-github-token) --user ghostery --repo user-agent-desktop | head -n 10
GET /repos/ghostery/user-agent-desktop/tags?per_page=100 HTTP/1.1
Host: api.github.com
User-Agent: github-release/0.10.0 rest-client/2.5 (https://github.com/kevinburke/rest) go/devel +682a1d2176 Fri Jan 15 23:38:58 2021 +0000 (darwin/amd64)
Accept: application/json
Accept-Charset: utf-8
Authorization: Basic <redacted>
Accept-Encoding: gzip

HTTP/1.1 200 OK
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
Cache-Control: private, max-age=60, s-maxage=60
Content-Security-Policy: default-src 'none'
Content-Type: application/json; charset=utf-8
Date: Tue, 19 Jan 2021 18:15:55 GMT
Etag: W/"401f648e01d61998c271337fe69eed9d92cb9f3bdf1556c526531183955138cc"
Last-Modified: Tue, 19 Jan 2021 18:11:03 GMT
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Server: GitHub.com
Status: 200 OK
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
Vary: Accept, Authorization, Cookie, X-GitHub-OTP
Vary: Accept-Encoding, Accept, X-Requested-With
Vary: Accept-Encoding
X-Accepted-Oauth-Scopes:
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Github-Media-Type: github.v3
X-Github-Request-Id: E263:1E0F:F3AC:13794:600721DB
X-Oauth-Scopes: admin:repo_hook, delete:packages, repo, user, workflow, write:packages
X-Ratelimit-Limit: 5000
X-Ratelimit-Remaining: 4995
X-Ratelimit-Reset:<PHONE_NUMBER>
X-Ratelimit-Used: 5
X-Xss-Protection: 1; mode=block

The command works for me with GITHUB_TOKEN present in the environment, and the most recent github-release commit, or v0.10.0.
$ DEBUG_HTTP_TRAFFIC=true GITHUB_TOKEN=$(cat ~/cfg/personal-github-token) github-release info --user ghostery --repo user-agent-desktop | head -n 10
GET /repos/ghostery/user-agent-desktop/tags?per_page=100 HTTP/1.1
Host: api.github.com
User-Agent: github-release/0.9.0 rest-client/2.2 (https://github.com/kevinburke/rest) go/devel +4fd9455882 Mon Dec 28 17:15:36 2020 +0000 (darwin/amd64)
Accept: application/json
Accept-Charset: utf-8
Authorization: Basic <redacted>
Accept-Encoding: gzip

HTTP/1.1 200 OK
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
Cache-Control: private, max-age=60, s-maxage=60
Content-Security-Policy: default-src 'none'
Content-Type: application/json; charset=utf-8
Date: Tue, 19 Jan 2021 18:14:26 GMT
Etag: W/"401f648e01d61998c271337fe69eed9d92cb9f3bdf1556c526531183955138cc"
Last-Modified: Tue, 19 Jan 2021 18:11:03 GMT
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Server: GitHub.com
Status: 200 OK
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
Vary: Accept, Authorization, Cookie, X-GitHub-OTP
Vary: Accept-Encoding, Accept, X-Requested-With
Vary: Accept-Encoding
X-Accepted-Oauth-Scopes:
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Github-Media-Type: github.v3
X-Github-Request-Id: E256:8A22:22603:2B702:60072182
X-Oauth-Scopes: admin:repo_hook, delete:packages, repo, user, workflow, write:packages
X-Ratelimit-Limit: 5000
X-Ratelimit-Remaining: 4997
X-Ratelimit-Reset:<PHONE_NUMBER>
X-Ratelimit-Used: 3
X-Xss-Protection: 1; mode=block

Also works if I set --security-token.
$ DEBUG_HTTP_TRAFFIC=true github-release info --security-token $(cat ~/cfg/personal-github-token) --user ghostery --repo user-agent-desktop | head -n 10
GET /repos/ghostery/user-agent-desktop/tags?per_page=100 HTTP/1.1
Host: api.github.com
User-Agent: github-release/0.10.0 rest-client/2.5 (https://github.com/kevinburke/rest) go/devel +682a1d2176 Fri Jan 15 23:38:58 2021 +0000 (darwin/amd64)
Accept: application/json
Accept-Charset: utf-8
Authorization: Basic <redacted>
Accept-Encoding: gzip

HTTP/1.1 200 OK
Transfer-Encoding: chunked
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
Cache-Control: private, max-age=60, s-maxage=60
Content-Security-Policy: default-src 'none'
Content-Type: application/json; charset=utf-8
Date: Tue, 19 Jan 2021 18:15:55 GMT
Etag: W/"401f648e01d61998c271337fe69eed9d92cb9f3bdf1556c526531183955138cc"
Last-Modified: Tue, 19 Jan 2021 18:11:03 GMT
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Server: GitHub.com
Status: 200 OK
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
Vary: Accept, Authorization, Cookie, X-GitHub-OTP
Vary: Accept-Encoding, Accept, X-Requested-With
Vary: Accept-Encoding
X-Accepted-Oauth-Scopes:
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Github-Media-Type: github.v3
X-Github-Request-Id: E263:1E0F:F3AC:13794:600721DB
X-Oauth-Scopes: admin:repo_hook, delete:packages, repo, user, workflow, write:packages
X-Ratelimit-Limit: 5000
X-Ratelimit-Remaining: 4995
X-Ratelimit-Reset:<PHONE_NUMBER>
X-Ratelimit-Used: 5
X-Xss-Protection: 1; mode=block

It works for me now as well, with token and without. Earlier Today it was working in 1 of 10 times.
Somehow you was also able to experience "Server Error" problem.
Right now I'm no longer sure where the problem lies:

it may be on github side, but githubstatus.com did no report any related issues
it may be data it ghostery/user-agent-desktop repository, but why it would start working again?

It works for me now as well, with token and without. Earlier Today it was working in 1 of 10 times.
Somehow you was also able to experience "Server Error" problem.
Right now I'm no longer sure where the problem lies:

it may be on github side, but githubstatus.com did no report any related issues
it may be data it ghostery/user-agent-desktop repository, but why it would start working again?


Improve monitoring of external data services.

https://chef-software.ideas.aha.io/ideas/CHEF-I-25
As we move towards more usage of external PostgreSQL and Elasticsearch, the opportunities for network latency between those services and chef-sever increase. We should make it easier to diagnose when those services are misbehaving, and harden our services to be more robust in the face of those.
This probably should involve

better logging and monitoring around the external accesses. This includes statsd, prometheus, and maybe logging.
Statistics include pool size, utilization. HTTP latency, request counts, request latency and error counts.  (maybe broken out by POST/GET)

This should as much as possible cover postgres elasticsearch and maybe external S3

We have various internal timeouts around those services; and we know at least approximately their values. We should be explicitly flagging when the above latencies are at risk of triggering those timeouts. Maybe that's in the form of log messages, or maybe we expose that in the status endpoint or other monitoring tools.

#2000 #1997 #1982


chore(Go): updated Go version (1.14[.x]->)1.15

Q
A

Bug fix?
no

New feature?
no

API breaks?
no

Deprecations?
no

Related tickets
-

License
Apache 2.0

What's in this PR?

Updating Go versions to 1.15.
Why?

For staying up to date with Golang development version.
Checklist

[ ] Implementation tested (with at least one cloud provider)
[X] Code meets the Developer Guide
~OpenAPI and Postman files updated (if needed)~
~User guide and development docs updated (if needed)~
~Related Helm chart(s) updated (if needed)~

Maybe I'm just missing something, but how come we don't have the go version in the please configs?

Maybe I'm just missing something, but how come we don't have the go version in the please configs?

The Go version in the make files was used to check that the Go version is at least the specified version. Since Go modules, Go does that for us, so it's not necessary anymore.

Waiting for Homebrew support.


Allow to fold item groups

If you have a group of items like this:
Some todos
[ ] One
[ ] Two
[ ] Three

then it would be cool if you could fold (collapse) all the items if you don’t want to see them.
I’m not sure this is possible by default in Sublime (via the little triangle-icon in the side bar).
Otherwise it might be an option to write a macro that uses the regular “fold” command from the menu.

Unfortunately, folding (collapsing) via the triangle icon is based on indentation, so it appears that it can’t be enabled by assigning scope for example.
What still works as usual is collapsing selected text via CMD+OPT+[.


chore: bdd-nh-import-1573040149 to 0.0.1

chore: Promote bdd-nh-import-1573040149 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Which Python + CUDA version do you recommend for LLaVA on Windows 10 Pro 64-bit?

Hey, I would appreciate recommendation on the specific versions of Python + CUDA environment on Windows that have been tested by you guys and proven to work well with LLaVAv1.6 and LLaVAv1.6 with CUDA GPU support in the latest releases. Can you provide me with some suggestions?
I have noticed that the LLaVA projector works fine for me when using "cuBLAS", but encounters issues when using "CUDA".
I tried to run it on a Python 3.11.4 64-bit + CUDA 12.1 and then with the latest CUDA 12.4.1 environments with llama-cpp-python installed with the adequate wheels, and without wheels through CMAKE_ARGS = "-DLLAMA_CUDA=on" , but couldn't get either LLaVAv1.5 or LLaVAv1.6 projectors to work correctly on release versions above 0.2.64.
There has been a change I can't identify between the release of 0.2.64 and 0.2.65, most likely related to CUDA/cuBLAS or chat_handler, that breaks how projectors work for me.
I fought with it the whole yesterday and eventually just gave up and reverted back to 0.2.64. The project I'm working on is currently running Bakllava-1-7b or LLaVAv1.5 without issues in a Python 3.10.11 64-bit + CUDA 11.7 environment using "cuBLAS on" with release version 0.2.64. I would like to upgrade to LLaVAv.1.6, at some point in the future.

Hey, I would appreciate recommendation on the specific versions of Python + CUDA environment on Windows that have been tested by you guys and proven to work well with LLaVAv1.6 and LLaVAv1.6 with CUDA GPU support in the latest releases. Can you provide me with some suggestions?
I have noticed that the LLaVA projector works fine for me when using "cuBLAS", but encounters issues when using "CUDA". I tried to run it on a Python 3.11.4 64-bit + CUDA 12.1 and then with the latest CUDA 12.4.1 environments with llama-cpp-python installed with the adequate wheels, and without wheels through CMAKE_ARGS = "-DLLAMA_CUDA=on" , but couldn't get either LLaVAv1.5 or LLaVAv1.6 projectors to work correctly on release versions above 0.2.64.
There has been a change I can't identify between the release of 0.2.64 and 0.2.65, most likely related to CUDA/cuBLAS or chat_handler, that breaks how projectors work for me.
I fought with it the whole yesterday and eventually just gave up and reverted back to 0.2.64. The project I'm working on is currently running Bakllava-1-7b or LLaVAv1.5 without issues in a Python 3.10.11 64-bit + CUDA 11.7 environment using "cuBLAS on" with release version 0.2.64. I would like to upgrade to LLaVAv.1.6, at some point in the future.

Has anyone been able to get LLaVA 1.6 up and running on Windows using this library?


[Question]: How to retrieve sub nodes using RecursiveRetriever

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
I am using RecursiveRetriever to fetch nodes and it returns the IndexNode nodes. I would like to fetch the child nodes as well.
from llama_index.retrievers import RecursiveRetriever

retriever_chunk = RecursiveRetriever(
    "vector",
    retriever_dict={"vector": vector_retriever_chunk},
    node_dict=all_nodes_dict,
    verbose=True,
)

@dosubot, can you give me an example of query_engine_dict?

@dosu-bot can you give me an example of query_engine_dict?


issue #40 feat: populate the Web Dev section (added the first 5 videos)

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[ ] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[ ] This PR does not contain plagiarized content.
[ ] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Summary by CodeRabbit

New Feature: Added a series of educational resources to the documentation. These resources include video tutorials on creating CRUD Rest APIs using various technologies such as Rust, Python with Flask, Next.js with TypeScript, and more.
Value Proposition: These additions will provide users with valuable learning resources, enhancing their understanding and ability to utilize our software effectively.

great pr, thanks!


MRG: use  dipole output for sparse inverse methods

This PR adds dipole output to our sparse solvers.
Visualization is currently done with plot_dipole_locations looping over dipoles or by giving the list of dipoles to plot_dipole_locations

Codecov Report

Merging #4296 into master will decrease coverage by 11.81%.
The diff coverage is 6.12%.

@@             Coverage Diff             @@
##           master    #4296       +/-   ##
===========================================
- Coverage    86.2%   74.38%   -11.82%
===========================================
  Files         346      346
  Lines       64674    64708       +34
  Branches     9907     9914        +7
===========================================
- Hits        55754    48135     -7619
- Misses       6205    13725     +7520
- Partials     2715     2848      +133

@yousrabk can you have a look?

I renamed mxne_inverse._make_dipoles to mxne_inverse._make_dipoles_sparse to avoid duplication of function names with the function called by rap music

Basically I am applying our sparse imaging methods with different setting and then testing that the location of the first active source in the stc is the same as the dipole position. To speed up, we could  test only 1 setting per method. The last commit also contains a small change to avoid a divide by 0 warning in the computation of the GOF, which only appears for TF-MxNE due to the applied Hann window.

ok
see how much you can reduce test time while still testing what needs to be
thx

Can someone give me a hint how to get rid of this CircleCI error?

I restarted appveyor and circleci

@agramfort the same errors are still present in appveyor and circleci.

running gamma map example i see this scrambled fig:

regarding failures on circle and appveyor maybe try to plot less things. Plotting all dipoles etc can maybe use a lot of RAM.
btw we should have a way to plot the dipoles with a glass brain using nilearn
https://nilearn.github.io/auto_examples/01_plotting/plot_demo_glass_brain.html#sphx-glr-auto-examples-01-plotting-plot-demo-glass-brain-py
and overlay the dipoles like BESA. See upper right plot at:
http://wiki.besa.de/index.php?title=File:DipoleFromSource2arrow.jpg
here we ave 4 dipoles for gamma map and we end up with 4 figures and there is no way to have position and orientation of the 4 dipoles in 1 figure.
@jaeilepp feeling bored?

What I have locally is a visualization showing dipole positions and orientations of all dipoles in orthoview. Basically I check the dipole times of the dipoles (after concatenation to one big dipole) and then plot all dipoles with orientation which are active at the same time point. But a glass brain might be better, that's why I loop over dipoles in the example and show separate figures.
Ideally, for spatio-temporal dipoles, we would have an interactive dipole plotting tool showing dipole activations and locations in the glass brain and which allows one to select a specific dipole and time point in the activation and then shows the orthoview image for this dipole.

Ok, I will try to reduce the number of plots in the examples to see if this fixed the errors

I tried debugging the circle failure, but was unable to reproduce it on SSH. The failure is caused by this line: tail $CIRCLE_ARTIFACTS/log.txt | grep "auto_tutorials\[100%\] plot_". In fact, I don't even understand the purpose of this line

btw we should have a way to plot the dipoles with a glass brain using nilearn

Can I copy the drawing of glass brain from nilearn to make this happen?

It seems the circle error is this:
WARNING: /home/ubuntu/mne-python/examples/inverse/plot_time_frequency_mixed_norm_inverse.py failed to execute correctly:Traceback (most recent call last):
  File "/home/ubuntu/mne-python/sphinx-gallery/sphinx_gallery/gen_rst.py", line 454, in execute_code_block
    exec(code_block, example_globals)
  File "<string>", line 9, in <module>
AttributeError: 'list' object has no attribute 'crop'

Thanks @jaeilepp! Found the issue. Working on the fix now.

@agramfort I cannot reproduce the scrambled image in the gamma_map example locally

All checks pass now. Setting to merge.
@agramfort, @jaeilepp can you please double check the rotation of the coordinate systems in _make_dipoles_sparse (line 194-197 in mxne_inverse).
I simplified the examples and removed some of the dipole plots (leaving the option to plot all dipoles as a comment). The examples now compute the inverse solution only once (returning dipoles) and generate the stc with make_sparse_stc_from_dipoles.
@jaeilepp are you working on a separate PR for the glass brain plotting?

Can I copy the drawing of glass brain from nilearn to make this happen?

yes but we already rely on nilearn for plotting so maybe add a weak
dependency on nilearn for this plot
I'll look at the details when I have time

The problem with adding a dependency is that AFAIK the nilearn plotting function wants a filename. So we would have to save the data first.

@jaeilepp are you working on a separate PR for the glass brain plotting?

Yeah I'll do it after this gets merged, so I can use the functions in this for creating the source estimates.

The problem with adding a dependency is that AFAIK the nilearn plotting function wants a filename. So we would have to save the data first.

Can you look into making a PR to nilearn to allow it to take an appropriate instance (of a nibabel object I guess?) instead?

@agramfort do you have time to have a look? I'd like to use this PR here as the basis for reopening #3641

that's it for me

ok fair enough. Yes it's done also indeed in rap-music

@agramfort do you still have these scrambled figs on this branch?
Can someone restart Travis? There's a download error on one Travis run. The other runs are green.

thx heaps @joewalter  !

I just had to push a cosmit:
https://github.com/mne-tools/mne-python/commit/9d9fbd30da64c0abaf574ea8072ddf579791584a


sched: fix bug in the function nxsched_resume_scheduler

Don't reset the task's timeslice if no task switch.
Signed-off-by: walker.zeng<EMAIL_ADDRESS>

This commit is abandoned, I will do a new one soon.
The BUG is as follow:

Suppose there are two ready tasks t1 and t2 have the same priority, and t1 is the running.
A new, higher priority task t0 (such as hpwork) is ready, then switch to t0.
After t0 is suspended, then switch to t1 and reset the t1's timeslice.
goto 2

The t2 will have no chance to run.

@zhaoxiu-zeng could you split the unrelated patch to the different PR? So people can get the summary info from title and review the change more smooth.


Logs not properly being flushed

Problem/Motivation
running the flush logs script in the UI, does not actually clear out the database, and the log rotate may not be happening either.
Expected behavior
when clicking the flush logs, I expect the graphs to clear the data.
Actual behavior
the data is still in the graphs.
Steps to reproduce
using docker exec into the running container and running pihole -f shows this output
[i] Flushing /var/log/pihole.log ...error: Ignoring /etc/logrotate.d/pihole because it is writable by group or others.

error: Ignoring /etc/logrotate.d/pihole because it is writable by group or others.

/opt/pihole/piholeLogFlush.sh: line 59: sqlite3: command not found

[✓] Flushed /var/log/pihole.log

[✓] Deleted  queries from database

Proposed changes
in the container /etc/logrotate.d/pihole original permissions were
-rw-rw-rw- 1 root root  208 Jun 15  2018 pihole

I was able to fix the log rotate issue by running,
chmod 644 /etc/logrotate.d/pihole

In the v2.1.0 repo tag the file shows the proper file permissions, -rw-r--r-- I've dug around, but I couldn't find where it's getting changed or where to change it in the install/docker process.
and to install sqlite, sqlite-3.24.0-r0 is the version it installed
apk --no-cache add sqlite

I'm assuming that would just get added to the docker file in the normal app install process.
After those tweaks running pinhole -f shows data being removed from the /etc/pihole/pihole-FTL.db file.

Same problem.
Is anyone trying to solve it?
Regards :-)

Bump, because it’s still a problem.

On Apr 26, 2019, at 7:59 AM, addons-assistant[bot]<EMAIL_ADDRESS>wrote:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Same issue here. Log is about 1GB at the moment. I've set up the fix by @DigitalRogues and am testing it now. Will report back whether or not this issue has resolved.

Bump. This is still an issue.

Still an issue, bump
Jacob Knapp

On Aug 9, 2019, at 6:22 AM, addons-assistant[bot]<EMAIL_ADDRESS>wrote:

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Issue has been fixed an adressed in the current dev version of the add-on.


Temp review PR for NEOS 15 support pieces

Still in flux, for internal discussion of update process

opendbc is changed in this PR? I assume that's not intentional

opendbc is changed in this PR? I assume that's not intentional

Correct, it's just behind-the-times since my last rebase. I'll be rebasing again before I make the last anticipated RC this weekend.


VST/AU plugin instances not resizable

Hi,
That would be so nice to have the option to make the VST/AU container resizeable. Right now the restricted instance frames are locked by default. Nowadays people use either HD displays or HiDPI 4K+ screens, it's either too big or too small.
Being able to apply zoom factors and resizing the container proportionally would be a nice added value instead of having to export 2 different size instances.
JUCE functions is available in the class WIndow >>> Resizable Window
"ResizableCornerComponent"  (for VST2 and AU) lets the user the possibility to drag the corner to resize the container.
"setResizable(true, true)" enables the resize.
"setResizeLimits(minWidth, minHeight, maxWidth, maxHeight)" sets the min/max values.
Implementing those functions would be really nice!
Thanks

Yes, I support that request fully!

I did manage to compile for Mac a CTRLR version with resizable windows for AU/VST3 plugins.

Excellent. I would be glad to have a version able to export VST3 correctly. Is there one?
With 5.3.201 it is VST2.
Thx

Only for Mac, but not yet fully tested. CTRLR v5.6.23

Hi @bijlevel that sounds good! Can you please let us know how do you set the window resizable or not? Is it via Lua when the pannel loads or with a checkbox in the global variables? Or something else? thanks

Hi @bijlevel that sounds good! Can you please let us know how do you set the window resizable or not? Is it via Lua when the pannel loads or with a checkbox in the global variables? Or something else? thanks

I have explained in discussion #336 how I did it. Try to compile using my guide 😉 to compile the Mac version for CTRLR. Would be a good excercise! OTOH I can upload the app on the website of Godlike Productions, see discussion #278.

@bijlevel oh yeah I remember, you already gave me the details. Sure , if godlike can host it I'll download it. Have a nice day

I've uploaded it.
You can find them all here - https://godlike.com.au/index.php?id=361

@Godlike-Productions I just downloaded the files on your website. Just for the info, what do you mean about "pace compatible"? thanks ;)

I use iLok (Pace) to secure my Jupiter 8 Plugin, that I sell.  The PACE wrapper requires some space in the header, that by default isn't available in the AU version.  This version has a compile flag allowing this.  It is otherwise identical.
If you want to add iLok support for anti-piracy and registration, then you must use the PACE compatible version.

Yes, that is correct.  If you get an agreement with PACE, and Derek is OK with it, I can run you through the process or getting ctrlr stuff wrapped, though I'm far from an expert.  PACE has an NDA clause, so can't really discuss the nuts and bolts in a public forum.


HDDS-3403. Generate ozone specific version from type in FSProto.proto

What changes were proposed in this pull request?
FSProtos.proto is copied from the Hadoop and used during the proto file generation BUT the types defined in FSProtos.proto are generated by Hadoop subproject.
This makes it hard to use Ozone with older Hadoop versions as the types of FSProtos are available only from Hadoop 3.x.
An easy fix is to generate our own version based on the existing FSProtos.proto
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-3403
How was this patch tested?
CI tests.

Merging to the master. Thanks @adoroszlai the review.


Testproject

Title
This project aims at testing things
Is this a new project?
yes
People involved
Steffen Bollmann, @stebo85<EMAIL_ADDRESS>Project Description

What are you doing, for whom, and why?
Testing to apply for a project and provision resources

Link to project repository/sources
https://github.com/stebo85
What resources do you require?
Virtual Machines, Object Storage, other
Anything else?
no

project created and all working. Please reopen for any changes or problems


[WIP] Fix Samples

We accidentally broke the samples with #286 and #282 as they're in a separate solution not referenced in the main solution.
This PR intends to start fixing that, first:

Building samples solution in GitHub CI for validation

TODO:

Remove old duplicate mobile page copies from sample
Fix samples building by updating to new pattern for 3.0

Just wanted to get the CI to validate this first before digging in so we can validate the final result.

As expected:

"D:\a\XamlBehaviors\XamlBehaviors\samples\CS\XAMLBehaviorsSample.sln" (default target) (1) ->
(Build target) ->
D:\a\XamlBehaviors\XamlBehaviors\samples\CS\XAMLBehaviorsSample.sln.metaproj : error MSB3202: The project file "D:\a\XamlBehaviors\XamlBehaviors\src\BehaviorsSDKManaged\Microsoft.Xaml.Interactions\Microsoft.Xaml.Interactions.csproj" was not found. [D:\a\XamlBehaviors\XamlBehaviors\samples\CS\XAMLBehaviorsSample.sln]

Will pick this up again tomorrow afternoon, hopefully.


[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 10:15:29 on 2023.08.07
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 3, errors out: 0
Original problem ID: 34650
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23483&eventid=34650

Problem has been resolved in 6m 0s at 10:21:29 on 2023.08.07
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 34650


const correct get_context() in svm_ptr

gcc 8.1 now considers this an error.

Thanks, but it's been already solved in https://github.com/boostorg/compute/pull/776. Also, pull request should be against develop branch.


Caching gufunc wrapper

... to improve further reduce import time.
Extends https://github.com/numba/numba/pull/2190

Testcase: https://gist.github.com/sklam/fe5569992eab4a6ff0c17ef2d08b5870
A significant amount of time is spent building the wrapper.

I have a hack that would make cache the wrapper.  I will push a patch once I clean it up.

This was completed.


AI Integration: User Experience on Application Insight

User Journeys:

Health of Cosmos Db part
Debugging any exception:
a) Latency
b) Connection Timeout
c) Others
Understand particular kind of requests.

Before AI Integration:

AI Integration:
DIRECT Mode

GATEWAY Mode

Samples are developed and present in V3 SDK repo.


Adds HubSpot analytics tracking code

What is this exactly?

Coverage remained the same at 96.262% when pulling d31f786b3973e5a79bf2eb0e73d60f73e1d3487c on hubspot-analytics into f7b9199559bd4613dbae4d81a9b5cdda18fc59cb on master.

I think we should hold off on hubspot until we can analyze the performance. Tracking scripts have a tendency to hurt performance and we want to prevent that since that's what we sell with DoneJS.
In particular I'd like to see:

How big is the script's payload.
How is it being cached.
How frequently is it phoning home.
If this can integrate with Google Analytics then we should remove the Google Analytics script.

I don't have any problem with this any more. Should we merge this? Still desirable?


Cribl edge - Transports - defaults and priorities

TODO:

[x] Modify/adjust existing tests
[ ] Extend new tests which use edge and default values of cribl backend
[ ] Provide a documentation/release note about the new defaults and priorities
[ ] Verify CLI behavior e.g. in case of ./scope --eventdest=/tmp/file
The issue is with cli is described below:

Before changes introduced in this Pull Request when we run:
 scope run -- curl https://wttr.in/94105
 scope events

We were able to observe the events.
After changes introduced in this Pull Request:
 scope run -- curl https://wttr.in/94105
 scope events

We will see information about Empty event file.
The reason of this behaviour that in this Pull Request we enable cribl backend by default
The current workaround for this Pull Request is to disable cribl engine e.g. by:
SCOPE_CRIBL_ENABLE=false scope run -- curl https://wttr.in/94105
scope events

[ ] Add QA instruction

Ref #697

Summary of changes related to existing behavior:

Behavior
Before
After

cribl backend
disabled by default
enabled by default

cribl transport type
TCP by default
edge by default

environment variablefor cribl backend
by define SCOPE_CRIBL or SCOPE_CRIBL_CLOUD
by define SCOPE_CRIBL_ENABLE

deactivate cribl backend
-
SCOPE_CRIBL_ENABLE=false

action when cribl backend is activated
force enabling metrics and events backends
-

Responsiblity of SCOPE_CRIBL/SCOPE_CRIBL_CLOUD`
- enabling the cribl backend- define the cribl backend transport destination
- define the transport - define the cribl backend transport destination

The work will be continue in Pull Request 704


Fix publish value

What does the pull request do?
I don't understand this code at all but it seems PublishValue can be called in some cases (binding error published with UnsetValue) even if the BindingExpression is not started. We should probably proactively start it.
Should fix https://github.com/AvaloniaUI/Avalonia/issues/14753
What is the current behavior?
Crash
What is the updated/expected behavior with this PR?
No crash + binding to UnsetValue + binding error
How was the solution implemented (if it's not obvious)?
Probably incorrectly fixed but describes the problem.
I based this on another PR - please check just the second commit. Sorry for that (I need a CI build)
Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/avalonia-docs with user documentation

Breaking changes
none
Obsoletions / Deprecations
none
Fixed issues
https://github.com/AvaloniaUI/Avalonia/issues/14753

This still does not work reliably. It sometimes fails when closing the window.
The Error being set is "Ancestor not found." So I guess any reference to the parent control will crash on window close due to this.

@ltetak  maybe you forgot to change the branch, Commit cedbdeaeea3faf2005c6a6f03c2d8040d9eb7c56 is PR #14782

I think the correct fix is to make calling PublishValue on a non-running binding expression a no-op. Please see https://github.com/AvaloniaUI/Avalonia/pull/15170 for what I think is a reasonable fix.

@grokys @ltetak I guess, this PR can be closed?


FAQ - fixes

I ran into git issues with the previous PR, so started a new branch with FAQ updates and fixes.

Looks great to me!


update font-awesome icons (release 5.4.2)

this now use css instead of less.
this partly fix #226, but please do not close that issue since there is some iconsets that still need to be updated.
we can close #188 with this pull request.
Thanks.

@suda can you review this? please.
Thanks.

Thanks for the PR @unluisco! Merging and releasing now :)

Just to inform ^^ Brand icons like Github or Chrome are broken since this update due to the separation of brand icons in v5 of Font-awesome.

thanks for the clarification, @mistergraphx


⚠ Bofrost.be has degraded performance

In c851030, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1628 ms

Resolved: Bofrost.be performance has improved in 0605fb9.


No icon in chrome

I have installed <IP_ADDRESS>-stable and I can see it in the extension page but I can not see it icon button in chrome.
Is there any setting I should make?

Please refer to Chrome help: https://support.google.com/chrome_webstore/answer/3060053?hl=en-GB
You also have an tutorial about that in settings.

Yes, I can launch it from bookmarks bar and chrome://apps/
but what I meant is "Chrome App Launcher on Chromebooks" which is located on the right side of address bar and left side of setting button. Can you guys see it there?

Thanks for clarification.
Apps can't be opened as extension - from the icon reserved for extensions. This is how the platform works.


There are no commands defined in the "handler" namespace.

Laravel Version: 5.2.43
PHP Version: 5.5.38
Database Driver & Version:

Description:
I'm trying to create a new event handler for my application in the terminal on my mac.
Steps To Reproduce:

Go to terminal
Went into the application folder
Type: php artisan handler:event HandleNewStudentAdded --event=StudentAdded
Received Error: [Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "handler" namespace.

@themsaid Why you closed this issue? Can you please help me fix this?

There's no such command as handler:event in laravel. You may add the class names in the EventService provider and then run php artisan event:generate to create the handlers.
Check https://laravel.com/docs/5.2/events

Oh okay. Thanks!

The laravel documentation is errored (you would think they would've corrected by now) ...
The command is make:listener
php artisan make:listener EmailXXXChanged --event=XXXChanged --queued


SGS policy methods and parameters

📚 Documentation
Further documentation needed for

values of enumeration class BasePolicyMethod
parameters of PolicyMethodParams

In particular the parameters delta_time_freedom, delta_index_freedom and their respective policy methods are unclear.

Solved at least partly in #357


lxc/publish: Fix ETag race condition

Closes #8816
Signed-off-by: Stéphane Graber<EMAIL_ADDRESS>

Thanks, that was super quick!

Nitpick: Would this warrant an additional test to avoid regressions?

Added a test to the chunk we already had around ephemeral instances.


docs(layout): Update notice with URL for published v2 docs

Previously this was a link to the doc source. A Container
Days conference attendee just pointed out that it would
be more convenient to be linked to the published docs
instead. I think he's right.

merging since this is just a docs fix. :+1: