Can no longer make windows transparent on Linux in Flutter 3.22

Steps to reproduce

Create a new project
Make the background transparent as shown below in the code sample
flutter run

Expected results
The background should be transparent.
Actual results
The background is opaque black.
Code sample
Code sample
Add this to linux/my_application.cc:
  GdkVisual* visual;
  gtk_widget_set_app_paintable(GTK_WIDGET(window), TRUE);
  visual = gdk_screen_get_rgba_visual(screen);
  if (visual != NULL && gdk_screen_is_composited(screen)) {
    gtk_widget_set_visual(GTK_WIDGET(window), visual);
  }

Make the scaffold transparent in lib/main.dart:
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        scaffoldBackgroundColor: Colors.transparent,
        useMaterial3: true,
      ),

Screenshots or Video

Screenshots / Video demonstration
3.19.6:

3.22.3:

Logs
No response
Flutter Doctor output
Doctor output
[!] Flutter (Channel [user-branch], 3.22.3, on Arch Linux 6.9.10-arch1-1, locale en_US.UTF-8)
    ! Flutter version 3.22.3 on channel [user-branch] at /home/dark/.cache/flutter_sdk
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision b0850beeb2 (6 days ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 18.1.8
    • cmake version 3.30.1
    • ninja version 1.12.1
    • pkg-config version 2.1.1

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Arch Linux 6.9.10-arch1-1

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 4 categories.

(I installed flutter-bin from the AUR and am using git checkout 3.22.3 in /opt/flutter to change versions)

I did a bisect and found that commit 8e418d18 broke transparency. I suspect that this line is relevant.

Reproducible using the code sample provided above.

stable 3.19.6
stable 3.22.3 & master

 flutter doctor -v
[!] Flutter (Channel stable, 3.19.6, on Ubuntu 24.04 LTS 6.8.0-38-generic, locale en_US.UTF-8)
    • Flutter version 3.19.6 on channel stable at /home/daniel/fvm/versions/3.19.6
    ! Warning: `flutter` on your path resolves to /home/daniel/fvm/versions/master/bin/flutter, which is not inside your current Flutter SDK checkout at /home/daniel/fvm/versions/3.19.6. Consider adding /home/daniel/fvm/versions/3.19.6/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /home/linuxbrew/.linuxbrew/Cellar/dart/3.2.2/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /home/daniel/fvm/versions/3.19.6. Consider adding /home/daniel/fvm/versions/3.19.6/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (3 months ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[!] Flutter (Channel stable, 3.22.3, on Ubuntu 24.04 LTS 6.8.0-38-generic, locale en_US.UTF-8)
    • Flutter version 3.22.3 on channel stable at /home/daniel/fvm/versions/stable
    ! Warning: `flutter` on your path resolves to /home/daniel/fvm/versions/master/bin/flutter, which is not inside your current Flutter SDK checkout at /home/daniel/fvm/versions/stable. Consider adding /home/daniel/fvm/versions/stable/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /home/linuxbrew/.linuxbrew/Cellar/dart/3.2.2/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /home/daniel/fvm/versions/stable. Consider adding /home/daniel/fvm/versions/stable/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (6 days ago), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Flutter (Channel master, 3.24.0-1.0.pre.230, on Ubuntu 24.04 LTS 6.8.0-38-generic, locale en_US.UTF-8)
    • Flutter version 3.24.0-1.0.pre.230 on channel master at /home/daniel/fvm/versions/master
    ! Warning: `dart` on your path resolves to /home/linuxbrew/.linuxbrew/Cellar/dart/3.2.2/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /home/daniel/fvm/versions/master. Consider adding /home/daniel/fvm/versions/master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ed470fd101 (3 hours ago), 2024-07-23 00:37:30 -0700
    • Engine revision 0d32c2d195
    • Dart version 3.6.0 (build 3.6.0-71.0.dev)
    • DevTools version 2.37.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

I'm poking around in the engine, and I found that the glClearColor line I linked is indeed relevant, but not the entire issue. If I change that to red and start my application, the background is red for a second, and then becomes black when my widgets start to render.

Found it: Gtk.GLArea.has-alpha defaults to false. I'm setting up a PR to set it to true, although I'm unsure about the implications of this change.

Until the PR is merged, it's possible to find the GLArea and set its has-alpha from user code:
GtkWidget* find_gl_area(GtkWidget* widget) {
    if (GTK_IS_GL_AREA(widget)) {
        return widget;
    }

    if (GTK_IS_CONTAINER(widget)) {
        GList* children = gtk_container_get_children(GTK_CONTAINER(widget));
        for (GList* iter = children; iter != NULL; iter = g_list_next(iter)) {
            GtkWidget* child = GTK_WIDGET(iter->data);
            GtkWidget* gl_area = find_gl_area(child);
            if (gl_area != NULL) {
                g_list_free(children);
                return gl_area;
            }
        }
        g_list_free(children);
    }

    return NULL;
}

// after:
  FlView* view = fl_view_new(project);
  gtk_widget_show(GTK_WIDGET(view));
  gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));

// add:
  GtkWidget* gl_area = find_gl_area(GTK_WIDGET(view));
  if (gl_area != NULL) {
    gtk_gl_area_set_has_alpha(GTK_GL_AREA(gl_area), TRUE);
  }

However, the window will appear black until Flutter's first render.

Closed by accident?

Fixed in https://github.com/flutter/engine/pull/54575. To use you need to add the following to my_application.c:
GdkRGBA background_color;
gdk_rgba_parse(&background_color, "#000000");
fl_view_set_background_color(view, &background_color);

Note GL transparency is broken in GTK 3.24.41, which is the version in Ubuntu 24.04 - see issue for when this will be fixed.


Disable code coverage for release builds

This PR Fixes #262
We have not run into this issue yet, but I see no harm in turning this off for Release builds. There is some chatter online about this:
http://blog.carlossless.io/xcode-9-and-carthage-coverage-data
Seems related to how Carthage builds frameworks, although I suspect something else is going on here. Again I don't see any harm in changing this flag for Release builds as it shouldn't be relevant anyway. Frankly I'm not sure why the default is Yes for Release anyway.

@jeremy-w Added link to issue in the commit message


Pixel Aggregation button

@saleiva , just noticed this weirdness today (which is definitely new behavior since I know this appeared fine before). The PIXEL button appears to have some extra junk on top of it.

From the LAYERS pane, click on a map layer.
From the STYLE tab, scroll and select PIXEL.

Notice the button?

IMO response team.
cc/ @noguerol

Please, could you provide more info? Browser and version, OS,...
I've tested it in my account with Chrome and it is being displayed properly.

Browser: Chrome, Version 59.0.3071.115 (Official Build) (64-bit)
Mac OS: XEL Capitan version 10.11.6 (15G31)

Fix deployed to production.
@csobier Can you check that the icon now is well displayed on your browser? Thanks

Looks good, back to normal. Thank you!


Can I prove sth like AB=CD and AB=CD+EF?

Can I prove sth like AB=CD and AB=CD+EF?

For AB=CD just write ? cong A B C D. AlphaGeometry does not support goals like AB=CD+EF, but you can add a point say G on line CD with DG=EF, then prove cong A B C G. You cannot specify on which side of point D G falls, so it can be either CD+EF or CD-EF, but you will find that for many problems, the conclusion does not depend on the side of the point, so both points actual work. Also, AlphaGeometry will try to not let points overlap, so if there is already a point H between C and D with HD=EF, then when you construct G, it will be on the other side of D


value_from_object: Don't dump by default

Because django.forms.model_to_dict expects it to return value unchanged.

@dmkoch could you please take a look at this PR?

@peterdemin conflicts, pls resovle

It's been two years since I opened the PR, I no longer use this library. Not fixing the conflict.

This will be fixed in a refactor. In short, value_from_object was being used to prepare the value for form rendering, but the correct place to do this is form field's prepare_value method.


cleanup(sinsp): remove some duplicated code

What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area libsinsp
Does this PR require a change in the driver versions?
No
What this PR does / why we need it:
Remove some duplicated code and add some tests
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
NONE

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97
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 [Andreagit97]

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

LGTM label has been added.  Git tree hash: 41341ea96e8f22fe71386f86704869db6162298f

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97, FedeDP
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 [Andreagit97,FedeDP]

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


fix(client-navigate.ts): Wait to scroll the page until navigation has finished

What is it?

[ ] Feature / enhancement
[X] Bug
[ ] Docs / tests

Description
win.scrollTo(0,0) is being fired too early on route navigation. This causes the page to jitter to the top just before the navigation takes place. This PR aims to fix this by awaiting modification to the page before scrolling to the top.
Replicating the problem
This problem can be replicated in the project created by npm create qwik@latest by simply adding content to the body until the page scrolls and clicking the "Blow my mind 🤯" button after scrolling to the bottom of the page.
Screenshots
before these changes:

after these changes:

Checklist:

[X] My code follows the developer guidelines of this project
[X] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

Additional Information
I'm not entirely married to this solution, but I wanted to bring to attention the fact that this problem exists and that there is a solution for it. My implementation for waitForDOMNodeInserted may not be taking into consideration every edge case. I personally can't think of any edge cases to check for, but there may be one. DOMNodeInserted might also not be the best listener to wait on in order to solve this problem.
I ran the tests locally, but I was having some issues getting the e2e tests to work even on the main branch, so I must be missing something on my machine. I also am getting a weird error from stackblitz on yarn install, so 🤷♀I don't know what that is about.
I posted a little about this issue in thie #qwik-help channel in the Builder.io discord, but as I kept digging, I realized the source of the problem was this race condition in client-navigate.ts.

Hi @MarmadileManteater 👋
Thank you very much for creating this PR and pointing out the issue 🙏 and i am sorry for this ultra late response. I've just reproduced it on the current version and imo this should be fixed with qwik internal events (if possible).
@adamdbradley my reproduction is on 0.18.1 / 0.2.1 on a new starter. added some more content, throttled the network to slow 3g and hit the blow my mind button. the scrolling is happening before the router outlet is loaded on the network panel.


Command line JSON parameters files which are not intended as 'parameter files' get broken

I am trying to run a script with 3 command line parameters
smt run -e groovy-training -m myscript file1.csv file2.json file3.csv
Instead of file2.json getting passed to my script as is, it gets replaced with a file "20130321-162403.param", which is no longer in JSON format.
Imported from Bitbucket issue 164,  created by apdavison on 03-21-2013 at 20:30, last modified: 04-04-2013 at 19:17

I'm having trouble reproducing this right now, but I'll try again with tip and see if it's still happening.
Trac comment by anonymous on 03-23-2013 at 20:30

I think I've fixed this: at least, the file should now retain its JSON format and ".json" extension, although it will still get a new name.
Trac comment by apdavison on 03-25-2013 at 18:02


process replay for test/*

I used a .sh version of this to verify the UPat from_dict diff, now we have the infra to run it on github actions.

Starts automatically if the commit message contains [run_process_replay].
Starting manually from github's UI is possible as well: https://github.com/tinygrad/tinygrad/actions/workflows/test.yml

@chenyuxyz fyi I need to bump timeout to 20m because process replay runs tests on both master and the PR.
https://github.com/tinygrad/tinygrad/pull/4645


Update readme version #

Housekeeping: Readme reflects wrong version number. (v0.3.4 vs v0.3.5)

Thanks! Fixed.


[Loc] Fix for duplicate strings in LCL files

This PR fixes #

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
27179

Relevant Lines:
59207

💛  - Coveralls


Paper links

Do you have a paper link? the results look very interesting.

Paper is coming soon, I will update the link when it is out.


URL not exported from 'Software' type citation

Zotero version: <IP_ADDRESS>
BBT version: 6.1.2
Support log ID: ABNKJZ9P-euc
Exporter used: Better BiBTeX
Expected behavior:
@misc{marksCddpython2021,
  title = {Cdd-Python},
  author = {Marks, Samuel},
  year = {2021},
  url = {https://github.com/offscale/cdd-python}
}

Actual behavior:
@misc{marksCddpython2021,
  title = {Cdd-Python},
  author = {Marks, Samuel},
  year = {2021}
}

Here's what it looks like from Zotero:
not a support log ID

please send a debug log

ABNKJZ9P-euc

I need a debug log as described in point one above.

(3)(+0000000): Better BibTeX: 199

(3)(+0000000): BibTeX: 200

(3)(+0000000): COinS: 310

(3)(+0000000): Better CSL YAML: 800

(3)(+0000048): BBT: loading ExportOptions

(3)(+0000276): BBT: ExportOptions loaded

(3)(+0006170): {better-bibtex} +19754 export overrides: {"postscript":null,"preferences":null,"strings":null}

(3)(+0000000): {better-bibtex} +0 worker translation: true

(3)(+0000001): {better-bibtex} +1 worker context: version=<IP_ADDRESS>&platform=mac&translator=Better%20BibTeX&output=%2FExported%20Items.bib&localeDateOrder=mdy&debugEnabled=true&worker=1

(3)(+0000006): {better-bibtex} +3 export scope: {"items":[{"key":"I6LR2EN4","version":1616,"itemType":"computerProgram","title":"cdd-python","date":"2021","url":"https://github.com/offscale/cdd-python","accessDate":"2021-12-28","creators":[{"firstName":"Samuel","lastName":"Marks","creatorType":"programmer"}],"tags":[],"collections":["HW4RUC4X"],"relations":{},"dateAdded":"2021-12-28T20:52:22Z","dateModified":"2021-12-28T20:56:22Z"}],"type":"items"}

(3)(+0000001): {better-bibtex} +3 cache-rate: starting prep

(3)(+0000008): {better-bibtex} +9 cache-rate: prep done

(3)(+0000000): {better-bibtex} +0 cache-rate: load cache? true

(3)(+0000000): {better-bibtex} +0 cache-rate: load item cache

(3)(+0000005): {better-bibtex} +5 cache-rate: cache loaded

(3)(+0000001): {better-bibtex} +1 worker: kicking off, config is 3497

(3)(+0000000): {better-bibtex} +0 worker: post-kickoff, config now 0

(3)(+0000365): {better-bibtex Better BibTeX (worker 1)} +null worker: received {"isTrusted":true,"kind":"start"}

(3)(+0000000): {better-bibtex Better BibTeX (worker 1)} +1 worker: starting

(5)(+0000004): Translate: Running handler 0 for itemDone

(5)(+0000000): Translate: Running handler 0 for itemDone

(3)(+0000027): {better-bibtex} +396 worker translation done, result: false

(3)(+0000001): Translate: Translation successful

please read point 1. I need a debug logs ID with -refs in it.

So looks like it does appear in the RDF export:
<rdf:RDF
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:z="http://www.zotero.org/namespaces/export#"
 xmlns:foaf="http://xmlns.com/foaf/0.1/"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:dcterms="http://purl.org/dc/terms/"
 xmlns:bib="http://purl.org/net/biblio#">
    <bib:Data rdf:about="https://github.com/offscale/cdd-python">
        <z:itemType>computerProgram</z:itemType>
        <z:programmers>
            <rdf:Seq>
                <rdf:li>
                    <foaf:Person>
                        <foaf:surname>Marks</foaf:surname>
                        <foaf:givenName>Samuel</foaf:givenName>
                    </foaf:Person>
                </rdf:li>
            </rdf:Seq>
        </z:programmers>
        <dc:title>cdd-python</dc:title>
        <dc:date>2021</dc:date>
        <dc:identifier>
            <dcterms:URI>
               <rdf:value>https://github.com/offscale/cdd-python</rdf:value>
            </dcterms:URI>
        </dc:identifier>
        <dcterms:dateSubmitted>2021-12-28</dcterms:dateSubmitted>
    </bib:Data>
</rdf:RDF>

Also the CSL JSON (also works with 'Better CSL JSON'):
[
	{
		"id": "marksCddpython2021",
		"type": "book",
		"title": "cdd-python",
		"URL": "https://github.com/offscale/cdd-python",
		"author": [
			{
				"family": "Marks",
				"given": "Samuel"
			}
		],
		"accessed": {
			"date-parts": [
				[
					"2021",
					12,
					28
				]
			]
		},
		"issued": {
			"date-parts": [
				[
					"2021"
				]
			]
		},
		"citation-key": "marksCddpython2021"
	}
]

Even 'Better BiBLaTeX' works:
@software{marksCddpython2021,
  title = {Cdd-Python},
  author = {Marks, Samuel},
  date = {2021},
  url = {https://github.com/offscale/cdd-python},
  urldate = {2021-12-28}
}

But 'Better BiBTeX' gives:
@misc{marksCddpython2021,
  title = {Cdd-Python},
  author = {Marks, Samuel},
  year = {2021}
}

Can you please just get me a support log with -refs in it. See point 1.

A support log ID gives me a copy of the item in your database, plus your current BBT settings.
bibtex does not support URL fields, but there are various workarounds you can enable in BBT.

closing for inactivity.

@retorquere I thought you gave the answer:

bibtex does not support URL fields, but there are various workarounds you can enable in BBT.

So you can add the tag 'expected result' or whatever

I generally don't close issues until I have confirmation that the user has a working situation. That it's the expected result is not always helpful, so I generally stick around to find workarounds when needed.


xkdc demo fails

2 issues in the XKDC demo:
1: The file reference in the readme is wrong.
2: Running the demo as described fails with the following error:
 autorest --powershell --input-file:./xkcd.yaml
AutoRest code generation utility [cli version: 3.2.0; node: v14.16.1, max-memory: 4096 MB]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
   Loading AutoRest core      'C:\Users\Ax\.autorest\@autorest_core@3.4.0\node_modules\@autorest\core\dist' (3.4.0)
INFORMATION:
The default version of @autorest/powershell has been bumped from 2.1+ to 3.0+.
 > If you still want to use 2.1+ version, please specify it with --use<EMAIL_ADDRESS>e.g 2.1.401.

INFORMATION: > Loading AutoRest extension '@autorest/powershell' (~3.0.0->3.0.428)
INFORMATION: > Loading AutoRest extension '@autorest/modelerfour' (4.15.414->4.15.414)
Process() cancelled due to failure
ERROR: Schema violation: should match format "uri" (externalDocs > url)
  format: uri
    - file:///C:/dev/temp/xkdc/xkcd.yaml:25:2 ($.externalDocs.url)
ERROR: Schema violation: should match format "uri" (externalDocs > url)
  format: uri
    - file:///C:/dev/temp/xkdc/xkcd.yaml:25:2 ($.externalDocs.url)

I found that the xkcd.yaml had https: [space] // instead of https://
However I'm still stuck afterwards but can't figure out why (and it's probably unrelated with this issue)
(FYI here is my error
C:\Workspace\Test\powershell\generated\Xkcd.csproj : error NU1100: Unable to resolve 'NETStandard.Library (>= 2.0.3)' for '.NETStandard,Version=v2.0'. C:\Workspace\Test\powershell\generated\Xkcd.csproj : error NU1100: Unable to resolve 'PowerShellStandard.Library (>= 5.1.0)' for '.NETStandard,Version=v2.0'. C:\Workspace\Test\powershell\generated\Xkcd.csproj : error NU1100: Unable to resolve 'Microsoft.CSharp (>= 4.4.1)' for '.NETStandard,Version=v2.0'.
)

Please run autorest --reset and then re-run the autorest. With the latest version of autorest, autorest/powershell and autorest/core, it works for me.
dolauli@debian9hk:~/src/autorest.powershell/samples/Xkcd$ autorest --powershell --input-file:./xkcd.yaml
AutoRest code generation utility [cli version: 3.2.0; node: v14.15.5, max-memory: 2048 MB]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest

There is a new version of AutoRest available (3.2.3).
 > You can install the newer version with with npm install -g autorest@latest

   Loading AutoRest core      '/home/dolauli/.autorest/@autorest_core@3.4.5/node_modules/@autorest/core/dist' (3.4.5)
INFORMATION:
The default version of @autorest/powershell has been bumped from 2.1+ to 3.0+.
 > If you still want to use 2.1+ version, please specify it with --use<EMAIL_ADDRESS>e.g 2.1.401.

INFORMATION: > Loading AutoRest extension '@autorest/powershell' (~3.0.0->3.0.433)
INFORMATION: > Loading AutoRest extension '@autorest/modelerfour' (4.15.414->4.15.414)

WARNING (PreCheck/CheckDuplicateSchemas): Checking for duplicate schemas, this could take a (long) while.  Run with --verbose for more detail.
[3.9 s] Generation Complete
dolauli@debian9hk:~/src/autorest.powershell/samples/Xkcd$ ls
generated  xkcd.yaml
dolauli@debian9hk:~/src/autorest.powershell/samples/Xkcd$ cd generated/
dolauli@debian9hk:~/src/autorest.powershell/samples/Xkcd/generated$ pwsh build-module.ps1
Creating isolated process...
Cleaning build folders...
Compiling module...
Creating cmdlets for specified models...
Creating exports and docs...
Creating format.ps1xml...
Creating psd1...
Creating test stubs...
Creating example stubs...
-------------Done-------------
To run this module in an isolated PowerShell session, run the 'run-module.ps1' script or provide the '-Run' parameter to this script.

@Clebam

Hi @dolauli, I reset and updated autorest and pwsh but got the same issue. I'll have to find some time to dig into this issue I guess.

Closed since no further update from the reporter.


Update CODEOWNERS to include brandonpollack23

Include @brandonpollack23 as a code owner of lium 🙌

!
You sure we align enough yet?
There's no rush

Given that you contributed to lium so actively (e.g. creating internal documents, hosting an intern to work on lium, code reviews etc...), I think having you as a code owner will make lium better (of course, sometimes we have conflicts, but discussion is a good thing, so I'm confident that we are aligned now 😉 ) Thanks for all the contributions so far!
... of course, I want to hear the other maintainer's opinion as well (and this pull request will not be merged until another one agrees, so I think it should be safe enough)
So existing maintainers, please don't hesitate to raise your opinion ( regardless you agree / disagree with this proposal!)

+1


cannot read from property.id

defined like this
const config = {
endpoint: "<Your Azure Cosmos account URI>",
key: "<Your Azure Cosmos account key>",
databaseId: "Tasks",
containerId: "Items",
partitionKey: { kind: "Hash", paths: ["/category"] }
};
module.exports = config;
Quote like this
const databaseId = config.database.id;
const containerId = config.container.id;
which caused null value

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

ID: 40462fee-eb9e-5874-35b8-26d4605e390f
Version Independent ID: bccb7915-dca2-7f10-9ccc-33fdf26baf65
Content: Node.js tutorial for the SQL API for Azure Cosmos DB
Content Source: articles/cosmos-db/sql-api-nodejs-get-started.md
Service: cosmos-db
Sub-service: cosmosdb-sql
GitHub Login: @deborahc
Microsoft Alias: dech

@akirajay Thank you for your feedback! We will review and update as appropriate.

I stepped through this tutorial, both by attempting to create the app.js and config.js files as per the examples and cloning the Git project. I receive the following error when running the Git project:

C:\Users\miubezzi\projects\git-samples\azure-cosmos-db-sql-api-nodejs-getting-started>node app.js
Created database:
Tasks
Created container:
Items
Querying container: Items
Created new item: 3 - Complete Cosmos DB Node.js Quickstart ⚡
Entity with the specified id does not exist in the system.,
RequestStartTime: 2020-04-01T21:06:16.4069227Z, RequestEndTime: 2020-04-01T21:06:16.4069227Z,  Number of regions attempted:1
ResponseTime: 2020-04-01T21:06:16.4069227Z, StoreResult: StorePhysicalAddress: rntbd://cdb-ms-prod-westus2-fd6.documents.azure.com:14364/apps/a5556683-236a-4be0-87da-4e9f2d118f97/services/86a315ab-a6bb-428d-9349-57f3f1ae24d3/partitions/9e8cbafa-c6b1-4ba8-98b9-59955680cf07/replicas/132302398069330871p/, LSN: 2, GlobalCommittedLsn: 2, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 404, SubStatusCode: 0, RequestCharge: 1.24, ItemLSN: -1, SessionToken: -1#2, UsingLocalLSN: False, TransportException: null, ResourceType: Document, OperationType: Replace
, Microsoft.Azure.Documents.Common/2.10.0
C:\Users\miubezzi\projects\git-samples\azure-cosmos-db-sql-api-nodejs-getting-started>

Some observations:
The config.js references:   partitionKey: { kind: "Hash", paths: ["/category"] }
The app.js references: const partitionKey = { kind: "Hash", paths: ["/Country"] };
The Git project app.js and the document walk-through results is two different versions of app.js.
I am going to have the content team take a look at this tutorial and update as needed.

@akirajay Thanks for pointing out the issue. I submitted a PR to fix the sample to match what's in Github.


Support only rake 12.x on Java plugin's gemspec

For #1061
Open-ended dependency by using >= is not recommended by recent gem command.
So I made it narrower, only support rake v12.x.
What do you think about this? @sakama  @dmikurube

thank you for reviewing!


Invalid argument passed to k_sleep

https://github.com/zephyrproject-rtos/zephyr/blob/0b76b12837deb995077bf026de01a6e9a9e50dfe/subsys/net/lib/app/net_app.c#L1300
k_sleep(MSEC(50));
MSEC will return the number of ticks whereas k_sleep accepts number of milliseconds.
MSEC was probably confused with K_MSEC

Issue occurs in several places in Zephyr.

This is fixed by #7711


bump iohk-nix, run regen

This failure https://hydra.iohk.io/build/782311 is due to https://github.com/commercialhaskell/stackage/issues/4466
You will need to adjust your stack.yaml with these additions:
  # Work around http://hackage.haskell.org/package/transformers-<IP_ADDRESS>/transformers.cabal
  # This is the version of transformers which ships with GHC-8.6.4
  - transformers-<IP_ADDRESS>
  # ghc-8.6.4 ships with process-<IP_ADDRESS>, not <IP_ADDRESS> as stackage claims. <IP_ADDRESS> isn't even compatible with
  # base 4.12 that ghc ships.
  - process-<IP_ADDRESS>

Force-pushed to sign commits.


Feature/camelize cli options

I'll take a look at this later in the day. Looks very promising! :)

@wafflepie I will address and correct the issues either today or close to end of the week.
I wanna add some stuff to simplify the union.config.js even more.
Following should work:
module.exports = ["app1", "app2"]

module.exports = { templateFilename: "start.ejs", aps: ["app1", "app2"] }

and if the union.config.js is not specified at all, than the names of the aps should be interfere from the names of the dis in the default paths.public directory.
If we follow this logic we do not need config at all.

@wafflepie Can you check it?

Done and merged

Nice work :)


Error after selecting network config. (v 2.2.0)

After I select wifi or ethernet, it throws this:
Unhandled rejection SyntaxError: Invalid MBR boot signature. Expected 0xAA55, but saw 0xC9B9
    at Function.MBR.detectFormat (/usr/local/lib/node_modules/resin-cli/node_modules/resin-device-init/node_modules/resin-image-fs/node_modules/mbr/lib/mbr.js:83:11)
    at Function.MBR.parse (/usr/local/lib/node_modules/resin-cli/node_modules/resin-device-init/node_modules/resin-image-fs/node_modules/mbr/lib/mbr.js:64:20)
    at new MBR (/usr/local/lib/node_modules/resin-cli/node_modules/resin-device-init/node_modules/resin-image-fs/node_modules/mbr/lib/mbr.js:14:16)
    at exports.parse (/usr/local/lib/node_modules/resin-cli/node_modules/resin-device-init/node_modules/resin-image-fs/node_modules/partitioninfo/build/boot-record.js:58:10)
    at tryCatcher (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/async.js:15:14)
    at processImmediate [as _immediateCallback] (timers.js:383:17)

@craig-mulligan What was the command that triggered the error?
It happens when the CLI tries to read the MBR of an image to analyse it's partitions before configuring, but for some reason the MBR is invalid. I would suggest checking that:

The image you're trying to modify is indeed a valid image containing a MBR (maybe it's corrupted?).
If the error happened when trying to read the config.json from a provisioned device, can you make sure you selected the correct drive (maybe you selected an un-provisioned drive instead)?

Anyway, I think we can hugely improve this error message.

@jviotti encountered when running resin quickstart. It downloaded a fresh copy of the OS so it's possible that was corrupted somehow. Also just realized I didn't run the command with sudo, although this error seems unrelated.

@jviotti where are the images stored? So I can delete and try again

@craig-mulligan resin quickstart now automatically prompts you to run with sudo only when needed, to prevent other files being owned by root by accident (which was the source of other issues).
The images are stored in $HOME/.resin/cache.

@jviotti I deleted the image and re-downloaded a new image, still running into the same issue. :/

@craig-mulligan Can you paste the whole output, since you run the command?

➜  ~  sudo resin quickstart
Password:
? Select an application myApp
Getting device operating system for raspberry-pi2
The image was downloaded to /tmp/tmp-7475SuG9WYIsjorA
Registering to myApp: 029ac06b54752e37237d8647ff826d6b04c3fc97a75a615022f1c950e8a25d
Configuring operating system image
? Network Connection ethernet
Unhandled rejection SyntaxError: Invalid MBR boot signature. Expected 0xAA55, but saw 0xC9B9
    at Function.MBR.detectFormat (/usr/local/lib/node_modules/resin-cli/node_modules/resin-device-init/node_modules/resin-image-fs/node_modules/mbr/lib/mbr.js:83:11)
    at Function.MBR.parse (/usr/local/lib/node_modules/resin-cli/node_modules/resin-device-init/node_modules/resin-image-fs/node_modules/mbr/lib/mbr.js:64:20)
    at new MBR (/usr/local/lib/node_modules/resin-cli/node_modules/resin-device-init/node_modules/resin-image-fs/node_modules/mbr/lib/mbr.js:14:16)
    at exports.parse (/usr/local/lib/node_modules/resin-cli/node_modules/resin-device-init/node_modules/resin-image-fs/node_modules/partitioninfo/build/boot-record.js:58:10)
    at tryCatcher (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/promise.js:507:31)
    at Promise._settlePromiseAt (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/promise.js:581:18)
    at Promise._settlePromises (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/resin-cli/node_modules/bluebird/js/main/async.js:15:14)
    at processImmediate [as _immediateCallback] (timers.js:383:17)
➜  ~

@craig-mulligan I've tried many ways to reproduce this without luck. Can you upload the raspberry pi 2 image the CLI is using (located in $HOME/.resin/cache/raspberry-pi2.img) somewhere so I can inspect in detail?

I think I know the cause of the issue:
There were recent changes in resin-request to read the brand new x-transfer-length HTTP header which contains the compressed transfer length for static images.
The change introduced a subtle bug that makes resin-request pipe compressed data using uncompressed content length information.
I'll publish a PR soon.


Optimize speed of iterative deployments for small changes

With https://github.com/zulip/zulip/pull/1457, we'll now have code to deploy from a git repository again.
However, the experience is still really slow for a few reasons:

We download all the npm dependencies in update-prod-static every time.  We should be able to fix this by reusing the code from tools/provision.py for caching the npm downloads (similar to what we've done with the Python virtualenvs).
Building static assets is really slow.  Most of this is running our minifier.  I would be up for experimenting with just not minifying static assets (or having an option to do that in /etc/zulip/zulip.conf?), since we're open source anyway and they're already compressed on the wire anyway.  Or we could replace the minifier with a faster one, a la #693.

We've done everything in this list other than the static assets piece, which is #693, so I'm closing this.


refactor: organise by feature

Try out this version of the Stacks Wallet - download extension builds.

Following on from https://github.com/blockstack/stacks-wallet-web/discussions/1286, this PR serves as an initial effort to add some structure where, previously, there was none/very little.
I don't claim perfection. We can continue to make changes/discuss different org. strategies. Though given the scope for merge errors, we should aim to merge ASAP.

Should we move all the React stuff into an app folder with this PR? Is that still a goal?

I personally am not in favor of that

Should we move all the React stuff into an app folder with this PR? Is that still a goal?

I personally am not in favor of that

I think I got in my head that is the direction we wanted to go from this thread: https://github.com/blockstack/stacks-wallet-web/issues/1207#issuecomment-846417104


wESP32-PoE Won't Pair

Hi! Thanks for providing this project!
I've installed ESPSomfy-RTS on a wESP32-PoE, which I've connected to a E07-M1101D v2.0 board that appears to be identical to the one used in your guide. With this setup, I see logs for my Somfy remote sending commands to my outdoor roller shutter, including the prog command when I press the prog button on the remote. However when I attempt to pair to the shade by pressing PROG in the pairing wizard, the shutter doesn't respond.
I read through some closed issues here and it looks like this typically means that the RX and TX pins are reversed. I think that mine are correct (see photos) and are consistent with the setup that I entered into the radio configuration (screenshotted). I also briefly physically swapped the TX and RX pins to see if that would help and it did not.
Any suggestions? I did see one comment claiming that the pairing process had to be done extremely closely to the shutter controller. I'm standing about one meter away, though there's an exterior wall in between.

Just to be sure.  Does your remote have the letters io on it?

@rstrouse no, at least I don't think so. It's labeled Somfy Inteo White Single Channel and it fits into a decora wall box / plate.

I don’t have that equipment.  Look at the docs and find a suitable pin for GDO0.  You can get away without hooking up GDO2 and set the RX and TX to the GDO0 pin.

No luck: I set RX and TX to the same pins, and tried this on IO4 / pin 15 and IO2 / pin 18. ESPSomfy won't let me set TX to a pin higher than IO30, and I'm assuming that TX requires analog I/O.
With TX and RX set to the same pins, I can still see messages coming from the remote, but ESPSomfy still isn't able to make the motor jog a second time during pairing.
Could this be caused by some kind of weird configuration on the existing remote? For example, if it was already configured with rolling codes or something like that.

Which button do you press on the remote to jog it the second time?

I didn't: it would only jog the one time after holding the programming button on the remote for a few seconds. The programming message is recorded in the ESPSomfy radio logs.
However when I'm in the ESPSomfy pairing UI and I hold the remote's programming button until the motor jogs, the instructions tell me to press "prog" in ESPSomfy afterwards and that the motor should jog again to confirm that it's paired. This doesn't happen.
If I tap the programming button on the remote after attempting this, the motor will immediately jog, however I think that this just means that it's ending the pairing process.

You know this can happen if the motor memory is full.  I would reset the motor and try again.  You have all the symptoms.

I'll try that!

I'll try that!

I’m having the same problem. Have you found a solution?

I’m away for a little while, and I didn’t want to reset the memory on my shutters before I left, just in case they wouldn’t close. I’m going to attempt this in January.

From: joaohess @.>
Sent: Saturday, December 9, 2023 3:29:13 PM
To: rstrouse/ESPSomfy-RTS @.>
Cc: Morgan McLean @.>; Author @.>
Subject: Re: [rstrouse/ESPSomfy-RTS] wESP32-PoE Won't Pair (Issue #198)
I'll try that!
I’m having the same problem. Have you found a solution?
—
Reply to this email directly, view it on GitHubhttps://github.com/rstrouse/ESPSomfy-RTS/issues/198#issuecomment-1848095854, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIXLK5IU6IHSQ6W7J3JR23YIPEHTAVCNFSM6AAAAAA774PXFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBYGA4TKOBVGQ.
You are receiving this because you authored the thread.Message ID: @.***>

@joaohess are you using a wESP32-PoE?

@joaohess are you using a wESP32-PoE?

Sorry, no, I'm on a ESP-32 WROOM. But I managed to make it work! I'm new to github, so I didn't know closed issues were hidden! I've found the solution on issue 121: I added the URL /shadeCommand?shadeId=1&command=prog&repeat=20 while pairing and it worked!
Thank you

@mtwo did you finally get paired?

Still on my trip, I’ll be home in a few days and I’ll attempt this once I have a few days back!

From: rstrouse @.>
Sent: Friday, December 22, 2023 3:16:19 PM
To: rstrouse/ESPSomfy-RTS @.>
Cc: Morgan McLean @.>; Mention @.>
Subject: Re: [rstrouse/ESPSomfy-RTS] wESP32-PoE Won't Pair (Issue #198)
@mtwohttps://github.com/mtwo did you finally get paired?
—
Reply to this email directly, view it on GitHubhttps://github.com/rstrouse/ESPSomfy-RTS/issues/198#issuecomment-1868073925, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIXLK2F2DX7QXCUCONBGA3YKX2CHAVCNFSM6AAAAAA774PXFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGA3TGOJSGU.
You are receiving this because you were mentioned.Message ID: @.***>

Let me know how it goes.

@mtwo I am going to close this if you are still having pairing issues please open another issue.

Yep, understood. I've been stymied by travel and bad weather when I haven't been traveling (the shutters are only accessible from outside). Once I have time to investigate further, I'll follow up here if I was able to fix it and I'll open a new issue if I can't. Apologies for the delay!


Add new format type, migrate to Dart 2.12

I've talked about that feature in #11. This PR adds new option to format function for generating string in format like 14 days, 4 hours, 55 minutes, 6 seconds.
I added support for Dart 2.12 - its around corner and I thought that I will do that in this PR.
TODO:

[x] Add support for seconds
Currently lib doesn't have support for seconds - should I add seconds in this PR?
[x] Add support for years
[ ] Update changelog, readme, docs and examples
[ ] Update arabic language and verify turkish

Is API looking good or should this feature be in its own separate function or maybe class?

Hi @l7ssha, thank you for contributing!

Upgrading to Dart 2.12
this version of dart has some cool features like null safety..etc, but we should keep in mind flutter developers who have dartlang integrated with flutter sdk which is so far version 2.10. i think we stick with this version for now.

API
as i said dart 2.12 with its cool features will result in a cleaner code as you have written. without that i guess we just have to do it the classic way until flutter upgrades the integrated dart sdk in the stable channel.
the couple functions of short and long form format are ok since we don't have much code in them.

Format
i think we can have two functions, format which is the default, and formatFull which allows the user to select which units to format. can be something like :

String formatFull(DateTime date,
    {String locale = 'en',
    DateTime clock,
    bool years = false,
    bool days = true,
    bool hours = true,
    bool minutes = true,
    bool seconds = true}) {
  final language = _languages[locale] ?? English();
  final duration = clock.difference(date);
  final buffer = StringBuffer();

  if (days) {
    buffer.write(language.days(duration.inDays));
    buffer.write(', ');
  }
  if (hours) {
    buffer.write(language.hours(duration.inHours % 24));
    buffer.write(', ');
  }
 .
 .
 .

  return buffer.toString();
}

let me know what you think. thank you!

About upgrade with Dart 2.12 - I was thinking about merging this PR with same time as release of Dart 2.12 - so as you said flutter and other project will catch up with adapting.
Rest of comments looks good for me - I will fix the code according to them.
Thanks for you time!

I've decided to not include flag for displaying all constraints separately (bool years = false, bool days = true, bool hours = true) because it would add too much complexity. I've added two more test to cover more cases and Arabic needs to be updated, and Turkish verified if everything all right.

Hi @l7ssha! thank you for adding the seconds unit!
i will implement the Arabic translation.
meanwhile @bgoktugozdemir, can you verify the Turkish translation of the latest modifications in this PR?
Thank you guys!

@BaderEddineOuaich I didn't see any problem on the files changed tab.

Perfect! time to merge and implement Arabic, and then publish to pub.dev
once again, Thanks @l7ssha Teşekkürler @bgoktugozdemir

You are welcome :) @BaderEddineOuaich


[6.4.x] ENTESB-5168] drools-osgi: upgrade javax.servlet to 3.1.0

this is needed to support Fuse 6.3
the javax.servlet:javax.servlet-api:3.1.0 is artifact used in
Fuse 6.3.x. Works in Fuse 6.2.x as well.

Merged by https://github.com/droolsjbpm/droolsjbpm-integration/commit/a0411e7533a346f5c55e2d28eb80a4f5a41ab100


Rework integrations tests to compare pdf screenshots instead of raw content

What kind of change does this PR introduce?
It changes how integration tests work. Instead of comparing raw content compares image screenshots.
Hopefully this fixes the inconsistencies across different systems #1154 #1161

Checklist:

[ ] Unit Tests
[x] Documentation
[x] Update CHANGELOG.md
[x] Ready to be merged

This is ready to go.
In the current iteration works in two different systems (windows / linux)
The only limitation if when using system fonts where each system render differently, something somewhat expected.


Selector for nodes

Hi, actually the select function returns a ElementRef element, which is usually not an issue if we does not have a way to select a Text node, then I found this: https://stackoverflow.com/a/70757577/4652030
For today docs:
https://developer.mozilla.org/en-US/docs/Web/CSS/::target-text
https://github.com/w3c/csswg-drafts/issues/2208
Be able to select Nodes and not just Elements could be a break change for the selector function, or the need of a different one.
This has some issues that are WIP, so I open this just to have this clear.

So you're asking for a function that returns a Node instead of an ElementRef. What would be the benefit of this?

mm, how the actual selector would works, if we select a Text element? Text elements are not ElementRef.

Could you show me the kind of syntax that you would like to achieve?


clarification needed for model/saving loading

A model saved via XGBoosterSaveModelToBuffer can be loaded by creating a booster object with the parameter model_buffer, however, attempting to load this model into a booster object using XGBoosterLoadModelFromBuffer gives an error such as
[14:09:10] /workspace/srcdir/xgboost/src/learner.cc:764: Check failed: mparam_.num_feature != 0 (0 vs. 0) : 0 feature is supplied.  Are you using raw Booster interface?
Stack trace:
  [bt] (0) /home/expandingman/.julia/artifacts/dcee79537e0e0f3f2ef6acf4b886a1dd6adcc6c8/lib/libxgboost.so(+0x660dd4) [0x7fdd0aa60dd4]
  [bt] (1) /home/expandingman/.julia/artifacts/dcee79537e0e0f3f2ef6acf4b886a1dd6adcc6c8/lib/libxgboost.so(xgboost::LearnerConfiguration::ConfigureNumFeatures()+0x2af) [0x7fdd0aa74eff]
  [bt] (2) /home/expandingman/.julia/artifacts/dcee79537e0e0f3f2ef6acf4b886a1dd6adcc6c8/lib/libxgboost.so(xgboost::LearnerConfiguration::Configure()+0x535) [0x7fdd0aa82605]
  [bt] (3) /home/expandingman/.julia/artifacts/dcee79537e0e0f3f2ef6acf4b886a1dd6adcc6c8/lib/libxgboost.so(xgboost::LearnerImpl::Predict(std::shared_ptr<xgboost::DMatrix>, bool, xgboost::HostDeviceVector<float>*, int, int, bool, bool, bool, bool, bool)+0x69) [0x7fdd0aa7a769]
  [bt] (4) /home/expandingman/.julia/artifacts/dcee79537e0e0f3f2ef6acf4b886a1dd6adcc6c8/lib/libxgboost.so(XGBoosterPredictFromDMatrix+0x2be) [0x7fdd0a77c62e]
  [bt] (5) [0x7fdeda52bc64]
  [bt] (6) [0x7fdeda52bcc4]
  [bt] (7) /opt/julia/bin/../lib/julia/libjulia-internal.so.1.10(ijl_apply_generic+0x2ae) [0x7fdeda846a0e]
  [bt] (8) [0x7fdeda50c2ae]

This may be a bug in XGBoosterLoadModelFromBuffer, but it seems more likely that I just don't understand how to properly use that function.  This comment in the python wrapper would seem to suggest that this is not the intended use of XGBoosterLoadModelFromBuffer.  At the very least, I find this very confusing since XGBoosterSaveModelToBuffer and XGBoosterLoadModelFromBuffer sure sound like they are inverse of each other.  I think some clarification in the docs would be useful (I didn't see one but I might be missing it).
For context, I'm one of the maintainers of the Julia wrapper, and confusion over serialization methods has popped up a number of times, most recently here.

Sorry, I seem to have gotten myself confused somehow... I thought I had reproduced the problem and indeed the error above was real, but today I went to try to reproduce it to report back here and I can't.  At this point I'm not sure if this is a mistake on my end, an intermittent (or hardware dependent) issue in libxgboost or a bug in the Julia wrapper.  Now I am kicking myself for not saving exactly what I did to get the error above.  I will try to think of some other way of reproducing the error and report back here if I can find it.

@ExpandingMan Any updates on this issue?

Feel free to reopen if there's a way to reproduce.

Sorry for not responding, yeah never ran into this again, don't know what I did.


CAS representation for alternative data stream

Fix #47
Signed-off-by: Akihiro Suda<EMAIL_ADDRESS>

LGTM
Does this need code to handle extraction and application?

LGTM

@stevvooe
Yes, but I think we can defer implementation until someone needs this

@AkihiroSuda Agreed!


Avoid IDE folders

I made a search in the PR's and nothing came up, so hence my PR.
As most used IDE's for development are Jetbrains IDEA / Webstorm etc which use .idea and Visual Studio Code which uses .vscode.
I want to add these to the templates of the gitignore files, so they are ignored by default.

Often people do want to commit IDE folders to include things like launch configurations in VSCode. So while some people would want to exclude these folders I think just as many people would want to include them. I'd rather leave this as is. It's easy enough for people to customize gitignore to their liking.


Make RequestContextAwareLogger push context

Motivation:
RequestContextAwareLogger currently does not push the context when
logging, which means RequestContextExporter will not be able to export
the properties to MDC.
Modifications:

Push the context every time RequestContextAwareLogger logs.
Use TemporaryThreadLocals when building a log message.

Result:

RequestContextAwareLogger pushes the context as expected by
RequestContextExporter, and thus the properties are exported to MDC.

Thanks for quick reviews.


Add detailed balance info to WalletBalance RPC

Replaces current balance field by 3 fields, TotalBalance, ConfirmedBalance and UnconfirmedBalance to store the respective balance information.
Closes #415.

Two other things: you will need to rebase your branch with master to resolve, and also reformat commit messages, as mentioned in the style guide -
https://github.com/lightningnetwork/lnd/blob/master/docs/code_contribution_guidelines.md#44-model-git-commit-messages
All commits should begin with the subsystem or package primarily affected by the change - in this case you could split up your commits into proto (for the *.proto changes) and lncli for code that uses those changes.

@mlerner : I think I've addressed all changes you mentioned now. Thanks for letting me know. I'll do similar changes with #417 commit messages as well. :)
Note: Seems like the travis build is failing for unrelated reasons.

@Roasbeef : Addressed the nits, sorry about those.

Hey @nalinbhardwaj, can you rebase this? A recent PR went in that also modified the protos. You'll just need to rebuild them.

@roasbeef done. Not sure why there’s a commit you made “with me” though? I don’t see a way to remove that offline, let me know if that’s a problem.

@nalinbhardwaj you'll need to remove that last commit. When rebasing you should ensure that your master branch is up to date with the remote origin branch.

Done now @Roasbeef sorry about the weird error, not sure why I got that into commit history in first attempt. It's clean now.

Is your PGP key available on any public key server?

@roasbeef I have it on keybase


[excel] (Properties) Add a section about worksheet-level custom properties

A conceptual article section discussing this new set of APIs.

Docs Build status updates of commit 1c8fd5c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/excel/excel-add-ins-workbooks.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 9393c2d:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/excel/excel-add-ins-workbooks.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 76a38d4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/excel/excel-add-ins-workbooks.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Add kg2_json_to_kgx_tsv.py to Rule TSV

I'm currently running kg2-json_to_kgx_tsv.py manually when the build is finished running. This should ideally be included in Rule TSV.
Rule TSV currently generates the TSVs for loading into Neo4j, so I also need to rename the files for clarity.

Rule TSV is in Snakefile-post-etl


DataTree.lineage should be renamed to .parents

Open Points

[x] (1) Should a deprecation warning be added? Currently, no deprecation warning.

Yes

[x] (2) Should an sub-issue be created from #283, or is the task small enough that it can leave in a Pull Request?

No

[x] (3) Should lineage and iter_lineage be removed from api.rst?

No
Reason: See https://github.com/xarray-contrib/datatree/pull/286#issuecomment-1837556861

Checklist

[x] Subtask  DataTree.lineage should be renamed to .parents of #283
[x] Tests added

Renamed test_lineage to test_parents
Rewrote test_lineage so that it tests that the lineage and  parents properties are equivalent
Wrote test_iter_lineage to verify that iter_lineage and iter_parents yield the same results

[x] Passes pre-commit run --all-files

:warning: I had to add a #type: ignore comment

[x] New functions/methods are listed in api.rst

lineage and iter_lineage removed (see open point (3))
parents and iter_parents added

[x] Changes are summarized in docs/source/whats-new.rst

In section  "Deprecation"

Thanks for this! I will give a proper review tomorrow!

Should a deprecation warning be added?

Technically we should add the new method, alias the old method to point to the new, and raise a DeprecationWarning whenever the old method is used.

Does this need it's own issue?

No, we'll just tick off that bullet point when this done.

So, I added back lineage in api.rst and my credit, it is ready for review!

I don't know why I keep having to re-approve the automated tests on this PR ☹
This is looking great @etienneschalk ! Tag me when you feel it's ready for another review!

Hello @TomNicholas ,
It seems that the CI is not automatically triggered on push and required manual intervention from a maintainer.
I assume that having passing CI checks is a pre-condition to make a new review from your side worth it.
What actions can I do on my side to fix these tests? I see some are failed or cancelled.
Locally, what I do currently before pushing is:

Run pytest
Make sure pre-commit pass

However, I don't:

Build the docs (I cannot currently, https://github.com/xarray-contrib/datatree/issues/284#issuecomment-1837293602 )
Test other python versions (I am using a dev environment with Python 3.10.12)

It seems that the CI is not automatically triggered on push and required manual intervention from a maintainer.

Yeah... I'm trying to work out what's causing that but drawing a blank so far.

What actions can I do on my side to fix these tests? I see some are failed or cancelled.

I think we have another issue caused by using the most recent version of xarray, see https://github.com/xarray-contrib/datatree/issues/270.

This PR should be ready to be merged, after https://github.com/xarray-contrib/datatree/pull/298 has been merged (and https://github.com/xarray-contrib/datatree/issues/ fixed)

Thanks so much @etienneschalk ! Sorry it took me a while to look at this ❤


Sort - ordering on topic-list-header click

Looks great :+1: please can you add some tests to check that the ordering works for both the group and the user endpoints?


Additional packers to consider

Additional packers to consider that maybe more opsec friendly:

https://github.com/EgeBalci/amber
https://github.com/phra/PEzor

I will look into them

I will look into them


Kind e2e test failure when pulling flow-aggregator image

Describe the bug
Recently I have noticed the kind e2e test sometimes failed with the errors below. The error may not show up after re-running the test, but I'm not sure what is the root cause.
 Events:
          Type     Reason     Age                    From               Message
          ----     ------     ----                   ----               -------
          Normal   Scheduled  6m13s                  default-scheduler  Successfully assigned flow-aggregator/flow-aggregator-95f95b7bd-4lxj6 to kind-worker2
          Normal   Pulling    4m37s (x4 over 6m13s)  kubelet            Pulling image "projects.registry.vmware.com/antrea/flow-aggregator:latest"
          Warning  Failed     4m37s (x4 over 6m12s)  kubelet            Failed to pull image "projects.registry.vmware.com/antrea/flow-aggregator:latest": rpc error: code = NotFound desc = failed to pull and unpack image "projects.registry.vmware.com/antrea/flow-aggregator:latest": failed to copy: httpReadSeeker: failed open: content at https://projects.registry.vmware.com/v2/antrea/flow-aggregator/manifests/sha256:b3594bd6fa1a8c5b12f2bdda5a4ddc5f7903f892660a1b4f832b245cf6082f77 not found: not found
          Warning  Failed     4m37s (x4 over 6m12s)  kubelet            Error: ErrImagePull
          Warning  Failed     4m23s (x6 over 6m12s)  kubelet            Error: ImagePullBackOff
          Normal   BackOff    67s (x20 over 6m12s)   kubelet            Back-off pulling image "projects.registry.vmware.com/antrea/flow-aggregator:latest"

Here are some cases for this failure:

https://github.com/antrea-io/theia/runs/7104761249?check_suite_focus=true
https://github.com/antrea-io/theia/runs/7100491020?check_suite_focus=true
https://github.com/antrea-io/theia/runs/7099069286?check_suite_focus=true
https://github.com/antrea-io/theia/runs/7048586961?check_suite_focus=true

It is probably caused by the habor registry cache issue. Antrea recently merged a PR https://github.com/antrea-io/antrea/pull/3642 which updates the flow-aggregator image. I added a commit in PR #71 to replace the harbor registry image to dockerhub image.

Closed via #71


Fix link to CSSStyleSheet.insertRule

Link has /fela/ in it which results in a 404 page on MDN

This change is

Thank you! Must have been a replace mistake :)


Failing tests on master : LapackTestsC LapackTestsF

Issue Description
At master, d27065c8177fc6896b9a8f59ee0cd5e56b18332c, two failing tests  on cpu or cuda :
  LapackTestsC.testGetRF1DifferentOrders:47 » Blas Failed to execute dgetrf
  LapackTestsF.testGetRF1DifferentOrders:47 » Blas Failed to execute dgetrf

Bisection shows them failing since c82ced7a31453bbc0646041c95a37ffb4e6a5331 where the defensive condition introduced by @rcorbish triggers on
https://github.com/deeplearning4j/nd4j/commit/c82ced7a31453bbc0646041c95a37ffb4e6a5331#diff-40677e3ab82a3c8df095927ea2daa9c0R41
/cc @raver119 @agibsonccc @rcorbish

Strange, I remember Adam asking me to check this, but it didn't fail on my
end when I last checked 2 weeks ago. Let me see now.

Sorry - silly bug. Thanks @saudet


Some icons not updated

Some icons, for example Document Heart and Equal Off cannot be found in the web client.

The icon database updates automaticlly weekly. If the icons you mentioned are new, check again next week, if not, try clearing your browser cache.

Hi, I checked and some of the icons like the Document Heart and Equal Off that were added a few weeks back are still not on the site.

I have updated the icons manually, You can use find all the new icons now.
Please let me know next time there is a new icon so I can check if the pipeline is working correctly. (I Believe everything works fine)

Most of the icons from this PR https://github.com/microsoft/fluentui-system-icons/pull/257 is still not updated. 😅

You were right!
It seems that angular bundled some of the icons definitions. Since the the weekly update action only updated the definitions file and not built the site, it was not updated.
It seems to work fine now (just clear your cache if it doesn't).
I'll update the action late this week, thank for letting me know about this issue!


Strange action for workspace view

Git clone webida-client.git
open apps/index.html
Sync with apps/index.html on
(Reload webida ide)
Delete webida-client.git project
Git clone webida-client.git
workspace tree is automatically opened and apps/index.html is selected in the workspace

It is in normal operation. Can't reproduce.


Unreachable Tests

Unreachable Tests
Summary:
SI tests for testing the unreachable strategy for Marathon.
To run:

create and setup new  cluster
shakedown -q tests/system/test_unreachable.py::test_unreachable_within_inactive_time[1200-1200]

This test is currently failing expectations.   1200 seconds is 20 mins.   The new task should not be created until 25 mins after the agent is shutdown.   Currently it is:
Inactive Time from unreachable: 0.215 seconds
Expunge Time from unreachable: 8.207 seconds
The app deployed is:
{'id': '/unreachable-9b00a701cf9443dd95549dee80084b07', 'cpus': 0.1, 'mem': 32, 'disk': 0, 'instances': 1, 'container': {'type': 'DOCKER', 'docker': {'image': 'redis', 'network': 'HOST', 'privileged': False, 'forcePullImage': False}}, 'portDefinitions': [{'port': 10013, 'protocol': 'tcp'}], 'unreachableStrategy': {'inactiveAfterSeconds': 1200, 'expungeAfterSeconds': 1200}}

JIRA issues:

sleeps in this case are not flaky... and actually may be necessary.


Fix float (de)serialization

Another set of fixes for handling floats.

Thank you very much for upstreaming your fixes. Currently, I'm still on vacation. I will take a look at this later this week when I return.

Thanks again for the fixes.
Small tip: When you merge the 'master' branch into your branch, it helps to rebase on top of it instead. This makes merging easier for me and also creates a cleaner history :)


Uplift third_party/tt-metal to 3389120b3747b521fa9b7ef333a379554359d961 2024-12-05

This PR uplifts the third_party/tt-metal to the 3389120b3747b521fa9b7ef333a379554359d961

I kicked off tt-forge-fe CI with this uplift last hour, results are here:
https://github.com/tenstorrent/tt-forge-fe/actions/runs/12182044073

several xpass tests (remove xfail tag to solve)
and several data-mismatches all on "flatten op" @pilkicTT will look into, but got thumbs up to consume this tt-metal in the meantime.

It was discussed that landing tt-metal uplifts in less than "24 hour requirement for merging PR's" is reasonable exception, so merging this.


memory limit ?

Is there a minimum memory limit required for the GPUs? I tried training without changing any of the code on the S3DIS dataset and usually get an error after the 2nd or 3rd step. Usually something like this.
RuntimeError: CUDA out of memory. Tried to allocate 4.11 GiB (GPU 0; 10.91 GiB total capacity; 6.00 GiB already allocated; 256.38 MiB free; 10.14 GiB reserved in total by PyTorch)

See previous issues #24


Add support for Function Overloading

Potential solution: each send/call function should keep track of its index in the ABI, and the associated methodData, rather than receiving a new index from renderFunctions()

Fixed in production (hidden)


Export using workflow versions

Do not merge until we've backfilled production.
Review checklist

[ ] First, the most important one: is this PR small enough that you can actually review it? Feel free to just reject a branch if the changes are hard to review due to the length of the diff.
[ ] If there are any migrations, will they the previous version of the app work correctly after they've been run (e.g. the don't remove columns still known about by ActiveRecord).
[ ] If anything changed with regards to the public API, are those changes also documented in the apiary.apib file?
[ ] Are all the changes covered by tests? Think about any possible edge cases that might be left untested.

a first pass on this look ok - specs are failing though i haven't looked into why.

Ah a test that factories up an invalid classification without a workflow now crashes because the factory can't get the workflow version without a workflow... :P Will fix


[WIP] Build example and deploy on travis.

It kinda-work on my fork, but I need to polish rough edges.
Travis also got Github-request throttled.
I could also integrate with http://typedoc.io/ to get doc autobuild on every push.
I'll rebase and squash the commits later.

Right ! it works !
Litlle ugly, had to workaround github being DDOS'ed, so blocking some requests.

(last commit add the type definitions and remove the tds reinstall -so, but need to be reverted)

docs also build.

Good stuff... was thinking the same way, but hadn't thought about the publishing and multiple groups route. Also tinkering with a docker machine, as i find the build chain a little weird... typings etc. as you discovered. Interested to get a good look at it, a little disappointed about yet another package manager for javascript required.

Yeah... We'll see. Trying to automatize as much as possible to lower friction and things I actually have to remember.
Also playing with design a bit to change from code.

Some takes on green, rather than React Teal™

Any clue why tsd reinstall 403 on https://api.github.com/repos/borisyankov/DefinitelyTyped/branches/master from travis and not locally.
Maybe @sccolbert know another way to get the types definitions ?

Hmm just seeing this now (apparent you don't auto-follow your own repos), sorry for the delay.
@carreau - no idea about the travis issue. If it becomes a problem, I can manually check in the typings.

@bollwyvl Those are pretty awesome!

@carreau - is this ready to go?

Nah, I think I figured it out. Need to use a github token

I'll try with one of my own token (just pushed) if ti work I'll create a token for Phosphor org, and replace it.

Yeah!!! seem to build !
@sccolbert can you make me an admin or the org, even for a limitted amount of time so that I can enable travis on the master branch, and create a token for the org ?

@Carreau working on that now - quite a bit of waiting (probably due to DDOS)

for some reason travis is not syncing my repositories - it just hangs on the sync step and spews a bunch of errors to the console.

I think DDoS is finished, but it's true that travis might be annoying when syncing sometimes.

Added a tool to generate/encrypt ssh deploy keys on  a per repo basis.
The token is still needed for tsd to not be rate limited by github.

So of course my token is only decrypted on my repository... so annoying. Did you acchieve to encrypt one of your tokens ?

The Travis gem is broken on windows:
https://github.com/rubygems/rubygems/issues/1219
I'll have to fire up a vm.

You can try https://www.npmjs.com/package/travis-encrypt I guess.

Can you retarget this PR to the feature-travis branch which I just created? I can merge that immediately and work on the token issue.


Study guidance group "Courses of population" doesn't show all courses

Study guidance groups sometimes don't actually show all courses in "Courses of population". This bug happens somewhere between db -> front, but hasn't been pinpointed and is a bit fuzzy - the exact boundaries of this bug are unknown (what is dropped, where, why)
One example case is student XXXXXXXXX (ask @SNurmivaara for demo/student number) who is in study guidance group "Tietojenkäsittelytiede 2017, avoimen väylä (Matti Luukkainen)" that has "Hyl." for course TKT21009 in db. This course is dropped somewhere, as on the front it isn't anywhere (not even redux).
This problem is not simply "Don't show courses that have only failures", as course MAT22002 is exactly the same kind of course down to the credit type code, that has only fails (2 students), but is still seen in the "courses of population".

The course TKT21009 can be seen when using the "Show courses as flat list". The course is probably not in the programme structure and therefore not visible in the default view.


Update Add CLA Manager API for CLAGroupID

Add CLA Manager API consumer doesn't need to pass CLA GroupID as a project will be associated with only one CLA Group. So, the API will need to figure out the CLAGroup for its usage.

Resolved.


match choice:           ^ SyntaxError: invalid syntax

Traceback (most recent call last):
  File "C:\Users\Rohan\Desktop\prin_ceofland.py", line 1, in <module>
    from BlankOBFv2 import BlankOBFv2
  File "C:\Users\Rohan\AppData\Local\Programs\Python\Python39\lib\BlankOBFv2.py", line 204
    match choice:
          ^
SyntaxError: invalid syntax

Process finished with exit code 1

What i did was, I copied your BlankOBFv2.py to this location:-
C:\Users\Rohan\AppData\Local\Programs\Python\Python39\lib\BlankOBFv2.py
So that, i can directly import it in Pycharm. Now, im getting the above error. What can i do?

What is the output of python --version in the console?

The match statement is introduced in python 3.10, and fron your path, I am assuming you are using python 3.9.
You need to upgrade to the newer version.

Ohhk. Thanks


[request] - Implement custom scrollbars

I'm submitting a ...  (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[X ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior
When scrollbarV is set to true,
I can't implement a custom scrollbar (like ngx-perfectScrollbar)
Expected behavior
Want to control the theme (at least) of a scrollbar inside the table
Reproduction of the problem
What is the motivation / use case for changing the behavior?
A better looking scrollbar ?
Please tell us about your environment:
Windows 10...

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
any

Language: [all | TypeScript X.X | ES6/7 | ES5]
any

Thank you !

I've been considering doing this for some time now. Its a big undertaking to make it perfect.
I would have to roll my own to make the integration tight so using something like ngx-perfectscrollbar is kinda a no go.

@amcdnl any new? )

i need this too

This would be an outstanding feature to have!

This would be great!

Would love this too!


pkg/checkpoint: support both CRI v1alpha1 and v1alpha2

Fixes https://github.com/kubernetes-incubator/bootkube/issues/934
Generated proto files taken from the following paths:
https://github.com/kubernetes/kubernetes/tree/v1.9.6/pkg/kubelet/apis/cri
https://github.com/kubernetes/kubernetes/tree/v1.10.0-rc.1/pkg/kubelet/apis/cri

could you add a README in the v1alpha1 directory where those files came from?

could you add a README in the v1alpha1 directory where those files came from?

Yeah will do. Going to let CI see if this works first.

Testing this locally with v1.10-rc.1

This appears to work. I was able to get a v1.10-rc.1 cluster running and the checkpointer behaves fine.


fix draggable elements in IE11.

I'm playing with React and the drag-and-drop API. I love your demo.
I discovered that it isn't working in IE. Here's what I found:
IE doesn't seem to fire dragover event on block-level items. As developers, it seems incumbent on us to  ensure that draggables are not set to display: block if we want HTML5 drag-and-drop to work in IE.
If you open IE11, you'll notice that in your demo, the grid view works perfectly but the list view on the left side does not allow dragging at all. This changeset seems to solve the problem. IE exhausts me.

Merged https://github.com/danielstocks/react-sortable/pull/10 instead


Custom Headers

Many existing APIs use their own set of headers. We should allow users to customize the header format in Comms. For instance a message might have a format:
id: 8 bytes, height: 4 bytes, width: 4 bytes, img: height*width*3*8
We should support this with a JSON that allows users to give Comms:
{
  "id": { "length": 8 },
  "foo": { "length": 4 },
  "size": { "length": 4, "type": "int" },
  "img": { "length": "size", "type": "bytes" }
}

And later, add math support
{
  "id": { "length": 8 },
  "height": { "length": 4, "type": "int" },
  "width": { "length": 4, "type": "int" },
  "img": { "length": "height*width*3*8", "type": "bytes" }
}

All of the parsed content can then be placed into a dictionary<string, byte[]> and passed to any listeners

This will be handled in #9


merge of evoked data obtain for example on different raw files

here is a tiny function that allows to concatenate or merge evoked data. It allows you to write stuff like:

epochs1 = mne.Epochs(raw1, events1, event_id, tmin, tmax, picks=picks, baseline=(None, -0.2), reject=reject)
epochs2 = mne.Epochs(raw2, events2, event_id, tmin, tmax, picks=picks, baseline=(None, -0.2), reject=reject)
evoked1 = epochs1.average()
evoked2 = epochs2.average()
evoked = merge_evoked([evoked1, evoked2])

I am however not sure it's the best way to do it.
Any thoughts on how to improve it or make it more generic?
How about:

evoked = evoked1 + evoked2

What would be the most natural way to compute a contrast?

evoked = evoked1 - evoked2

?

I vote for using arithmetic operators, it seems most logical and generic to me and it is also consistent with stc.

You are right, I didn't think about how to handle the number of averages. How were you thinking of doing this? To me, it is not clear what should happen when a user does "evoked1 + evoked2". In one situation evoked1 and evoked2 could be from two raw files, let's say averaged over 100 epochs each. Ignoring some numerical inaccuracies, the combined data would be for 200 averages. In another situation, a user may create evoked1 and evoked2 from two different type of events, combining the two would not increase the number of averages. Right?
I wonder if it would be better to create a way to combine Epochs before averaging.

I thought about working with the Epochs and allow Epochs to be constructed from multiple raw files. It makes the Epochs object more complex and I am not sure I want to pay that price. Maybe @manfredg and @mshamalainen have an opinion?

Hi Alex,
thanks for doing this. It's easy for me to have an opinion, if you have
to implement it :-) That said, it would be nice of course to be able to
combine multiple files for epoching. Do you foresee compatibility
problems with legacy and MNE data, or would it just produce too big an
overhead in the Epochs object?
Thanks again,
      Manfred

On 01/23/2012 12:49 PM, Alexandre Gramfort wrote:

I thought about working with the Epochs and allow Epochs to be constructed from multiple raw files. It makes the Epochs object more complex and I am not sure I want to pay that price. Maybe @manfredg and @mshamalainen have an opinion?

Reply to this email directly or view it on GitHub:
https://github.com/mne-tools/mne-python/pull/18#issuecomment-3618290

--
Manfred G. Kitzbichler
https://www.nmr.mgh.harvard.edu/martinos/people/showPerson.php?people_id=1377,
Research Fellow
Harvard Medical School & Mass General Hospital
Martinos Center for Biomedical Imaging
149 Thirteenth Street, Rm 10.018
Charlestown, MA 02129, USA
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

thanks for doing this. It's easy for me to have an opinion, if you have
to implement it :-)

:)

That said, it would be nice of course to be able to
combine multiple files for epoching. Do you foresee compatibility
problems with legacy and MNE data, or would it just produce too big an
overhead in the Epochs object?

it's mostly because of the overhead. Maybe it's the Raw object that
should accept to be build with different fif files. I don't have any
strong opinion on this as it's unclear what is the best way to do
this.

I think it's best not to modify Raw. One problem with Raw from multiple fif files is the absolute time stored in the fif files, i.e., when combining two fif files, there will be gaps (or overlaps) in time, which will be tricky to handle. Even if the Raw object could handle this, it won't be possible to write it to a single fif file.
Conceptually, combining (adding, subtracting) two Epochs or two Evoked is pretty much the same thing. The user could combine an Epochs object with 20 events of type A with an Epochs object with 30 events of type B, in this case the number of averages would be 50 but in reality we didn't use 50 events of each type. The same problem occurs when combining Evoked. I guess this use case may not be realistic and it should only be possible to combine events of the same type.

I think it's best not to modify Raw. One problem with Raw from multiple fif files is the absolute time stored in the fif files, i.e., when combining two fif files, there will be gaps (or overlaps) in time, which will be tricky to handle. Even if the Raw object could handle this, it won't be possible to write it to a single fif file.

I agree there is no real need to do this.

Conceptually, combining (adding, subtracting) two Epochs or two Evoked is pretty much the same thing. The user could combine an Epochs object with 20 events of type A with an Epochs object with 30 events of type B, in this case the number of averages would be 50 but in reality we didn't use 50 events of each type.

yes but it's interesting only when the epochs come from different raw
files otherwise you should just edit the events.

after discussion with brainstorm folks the arithmetic of Evoked is only valid taking into account the number of averages. I've therefore added the support of addition and subtraction of Evoked. Ready to merge for me. ok?

On Jan 25, 2012, at 9:46 AM, Alexandre Gramfort wrote:

after discussion with brainstorm folks the arithmetic of Evoked is only valid taking into account the number of averages. I've therefore added the support of addition and subtraction of Evoked. Ready to merge for me. ok?

Sounds good. Each of the averages summed has just to be weighted with N_k/N_tot

Matti

Matti Hamalainen, Ph.D.
Athinoula A. Martinos Center for Biomedical Imaging
Massachusetts General Hospital
<EMAIL_ADDRESS>The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

clicked on the green button to merge ! thanks for the feedback.


Make package index available as JSON.

The packages site was recently updated to expose the sqlite database directly (super cool!), it'd be nice if all the package info was available as JSON too. I'd like to create a lustre tutorial for folks to follow along with that recreates the packages site just as a client app (no backend or anything) and it'd be super nice I could just point people to a /packages.json endpoint.
Elm's package site provides this sort of info at:

https://package.elm-lang.org/all-packages/
https://package.elm-lang.org/search.json

These kinds of tutorial projects historically use things like the reddit, twitter, or hackernews api, but I think it'd be kinda nice if we could keep it all "in-house" and use only gleamy things, if it's not too much work to add this :)

What information would you be after? I don't think it's suitable to put the whole database as one JSON payload so we'd need more precise APIs.
The Elm endpoints there seem to offer a very small amount of the information for each package, but that seems like it wouldn't be useful to many people.


Quantity(): add optional meta argument to use meta when available

In order to speed up the chain generation process, we need to be able to force View dataframes and therefore the result of to_df() method being able to create a multindex on the 1/0 axis based on response codes found in the meta.
How to achieve this:

class constructor gets argument use_meta, defaulting to False
If True: matrix and matrix defintitons obey to the codes from the meta
to_df() picks up the meta-based values when constructing the multiindex

This will be resolved by #290.


Add logo to README.md

As logo enhances visual identification it is good to have it in README file.
It is already done in Shipkit Changelog.

Thank you @koral--  for your suggestion.


Print shader compiler error when betsy shader fails to compile

Currently if you have a compile error, nothing is printed.
CC @BlueCube3310 This should help as you continue to work on the Betsy integration

Thanks!


build error

osx: 10.9 node -v: 0.10.21 mapnik: 2.2.0
Ran through the source install steps as described here.
Getting the following error on node index.js
dyld: lazy symbol binding failed: Symbol not found: __ZN6mapnik16datasource_cache20register_datasourcesERKSs
  Referenced from: /Users/Jacques/bin/tm2/node_modules/mapnik/lib/_mapnik.node
  Expected in: dynamic lookup

dyld: Symbol not found: __ZN6mapnik16datasource_cache20register_datasourcesERKSs
  Referenced from: /Users/Jacques/bin/tm2/node_modules/mapnik/lib/_mapnik.node
  Expected in: dynamic lookup

[1]    71880 trace trap  node index.js

I'd happily just use one of the binaries, but https://tilemill.s3.amazonaws.com/index.html?path=dev/ just sits at loading... forever.
I want to make cool maps like AJ Ashton!
:love_letter:

Thanks! springmeyer's workaround worked for me too


Small cleanup, and putting copyright in new travis-related files

Codecov Report

Merging #21 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #21   +/-   ##
=======================================
  Coverage   78.57%   78.57%
=======================================
  Files          21       21
  Lines         994      994
  Branches       59       59
=======================================
  Hits          781      781
  Misses        213      213

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 6d443f4...612ee64. Read the comment docs.


Canvas Draw Circle Custom Paint Arc is not correctly aligned in iPhone Xs in Landscape Mode

I am creating a timer using a CustomPainter.  I am drawing a circle with a stroke and using it as a circular progress of the timer.  Everything works great. portrait / landscape, etc...  but... when I load up the iPhone X / Xs / any model with the safeArea / notches I notice that the Circle is not correctly aligned with itself.   the color circle is not perfectly overlapping the background circle (which is the same object so it really should align?)  It aligns fine in every version of every iphone portrait and landscape except the Notched versions.  If you zoom in on the top section of the circle you can see the iPhone Xs does not align but the iPhone 5s does.

class TimerPainter extends CustomPainter {
  TimerPainter({
    this.animation,
    this.backgroundColor,
    this.color,
  }) : super(repaint: animation);

  final Animation<double> animation;
  final Color backgroundColor, color;

  @override
  void paint(Canvas canvas, Size size) {
    Paint paint = Paint()
      ..color = backgroundColor
      ..strokeWidth = 20.0
      ..strokeCap = StrokeCap.round
      ..style = PaintingStyle.stroke;

    canvas.drawCircle(size.center(Offset.zero), size.width / 2.0, paint);
    paint.color = color;
    double progress = (1.0 - animation.value) * 2 * math.pi;
    canvas.drawArc(Offset.zero & size, math.pi * 1.5, -progress, false, paint);
  }

  @override
  bool shouldRepaint(TimerPainter old) {
    return animation.value != old.animation.value ||
        color != old.color ||
        backgroundColor != old.backgroundColor;
  }
}

@zurie
I can't reproduce it with current master 1.21.0-6.0.pre.90 running on iPhone 7 iOS 13.6.

code sample
import 'dart:ui';

import 'package:flutter/material.dart';
import 'dart:math' as math;

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyPainter(),
    );
  }
}

class MyPainter extends StatefulWidget {
  @override
  _MyPainterState createState() => _MyPainterState();
}

class _MyPainterState extends State<MyPainter>
    with TickerProviderStateMixin {

  Animation<double> animation;
  AnimationController controller;

  @override
  void initState() {
    super.initState();

    controller = AnimationController(
      vsync: this,
      duration: Duration(seconds: 4),
    );
    Tween<double> _rotationTween = Tween(begin: -math.pi, end: math.pi);

    animation = _rotationTween.animate(controller)
      ..addListener(() {
        setState(() {});
      })
      ..addStatusListener((status) {
        if (status == AnimationStatus.completed) {
          controller.repeat();
        }
        else if (status == AnimationStatus.dismissed) {
          controller.forward();
        }
      });

    controller.forward();
  }

  @override
  void dispose() {
    controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: Padding(
          padding: const EdgeInsets.all(20.0),
          child: Container(
            width: 300,
            height: 300,
            child: AnimatedBuilder(
              animation: animation,
              builder: (context, snapshot) {
                return CustomPaint(
                  painter: TimerPainter(
                      animation: animation,
                      backgroundColor: Colors.green,
                      color: Colors.red
                  ),
                  child: Container(),
                );
              },
            ),
          ),
        ),
      ),
    );
  }
}

class ShapePainter extends CustomPainter {
  final double sides;
  final double radius;
  final double radians;
  ShapePainter(this.sides, this.radius, this.radians);

  @override
  void paint(Canvas canvas, Size size) {
    var paint = Paint()
      ..color = Colors.teal
      ..strokeWidth = 5
      ..style = PaintingStyle.stroke
      ..strokeCap = StrokeCap.round;

    var path = Path();

    var angle = (math.pi * 2) / sides;

    Offset center = Offset(size.width / 2, size.height / 2);
    Offset startPoint =
    Offset(radius * math.cos(radians), radius * math.sin(radians));

    path.moveTo(startPoint.dx + center.dx, startPoint.dy + center.dy);

    for (int i = 1; i <= sides; i++) {
      double x = radius * math.cos(radians + angle * i) + center.dx;
      double y = radius * math.sin(radians + angle * i) + center.dy;
      path.lineTo(x, y);
    }
    path.close();
    canvas.drawPath(path, paint);
  }

  @override
  bool shouldRepaint(CustomPainter oldDelegate) {
    return true;
  }
}

class TimerPainter extends CustomPainter {
  TimerPainter({
    this.animation,
    this.backgroundColor,
    this.color,
  }) : super(repaint: animation);

  final Animation<double> animation;
  final Color backgroundColor, color;

  @override
  void paint(Canvas canvas, Size size) {
    Paint paint = Paint()
      ..color = backgroundColor
      ..strokeWidth = 20.0
      ..strokeCap = StrokeCap.round
      ..style = PaintingStyle.stroke;

    canvas.drawCircle(size.center(Offset.zero), size.width / 2.0, paint);
    paint.color = color;
    double progress = (1.0 - animation.value) * 2 * math.pi;
    canvas.drawArc(Offset.zero & size, math.pi * 1.5, -progress, false, paint);
  }

  @override
  bool shouldRepaint(TimerPainter old) {
    return animation.value != old.animation.value ||
        color != old.color ||
        backgroundColor != old.backgroundColor;
  }
}

flutter doctor -v
[✓] Flutter (Channel master, 1.21.0-6.0.pre.90, on Mac OS X 10.15.6 19G73, locale en-GB)
    • Flutter version 1.21.0-6.0.pre.90 at /Users/nevercode/dev/flutter
    • Framework revision 531ee9452a (85 minutes ago), 2020-07-29 02:26:03 -0400
    • Engine revision 1ba310017c
    • Dart version 2.10.0 (build 2.10.0-1.0.dev 24c7666def)
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/nevercode/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.47.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.12.2

[✓] Connected device (6 available)
    • Redmi Note 7 (mobile)       • 6345c469                                 • android-arm64  • Android 9 (API 28)
    • Nevercode’s iPhone (mobile) • b668e524315069f3db3661ac11ff1f66afafebdb • ios            • iOS 13.6
    • iPhone 11 Pro Max (mobile)  • 55C8466B-5367-492B-8EFE-EC45D980571F     • ios            • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
    • macOS (desktop)             • macos                                    • darwin-x64     • Mac OS X 10.15.6 19G73
    • Web Server (web)            • web-server                               • web-javascript • Flutter Tools
    • Chrome (web)                • chrome                                   • web-javascript • Google Chrome 84.0.4147.105

• No issues found!

Closing as fixed. If this is not so, please provide a complete minimal reproducible code sample and I'll reopen


Irish biometric visa clarification (3 of 5)

Content update to help users recognise an Irish biometric visa.

Closed as it has been superseded by: https://github.com/alphagov/smart-answers/pull/2596


LoadFromFile logs errors on 404s

If you turn on LoadFromFile then 404s turn into errors in the log.
To reproduce:
$ fname=${RANDOM}.nonexistent.png
$ curl www.jefftk.com/$fname -o /dev/null
$ curl -sS http://www.jefftk.com/pagespeed_admin/message_history | grep -o "Failed to stat /var/www/$fname"

fix is ready for review, going into mod_pagespeed code.

closed via https://github.com/pagespeed/mod_pagespeed/commit/170f4455d591bb7da160e81092c16b5516aedcfe

Hi @jeffkaufman and @crowell, I am pulling my hair over an issue I am facing and I wonder if its related to this issue reported here. My joomla site on nginx occasionally throws a 404 error when page exists and the user sees a 404 page. But when they refresh that page, the page loads fine. By checking all settings from both server end and joomla end, I couldnt find anything wrong with it. I was then suspecting if pagespeed was causing the 404 error due to perhaps cache unavailable which shouldnt really happen. This is when I came across this ticket. Could this issue posted here by @jeffkaufman be the reason for my 404 error on page? My error log looks like this when I got a 404 error when page exists:
49.xxx.xxx.xx - - [16/Aug/2015:21:43:42 +1000] "GET /category/articles/example-article-name HTTP/1.1" 404 9729 "-" "Mozilla/5.0 (iPad; CPU OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B440 Safari/600.1.4"
49.xxx.xxx.xx - - [16/Aug/2015:21:43:46 +1000] "GET /templates/portfolio/fonts/fontawesome-webfont.woff?v=4.2.0 HTTP/1.1" 200 65452 "http://example.com.au/category/articles/example-article-name" "Mozilla/5.0 (iPad; CPU OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B440 Safari/600.1.4"
49.xxx.xxx.xx - - [16/Aug/2015:21:43:46 +1000] "GET /media/com_easysocial/fonts/easysocial.woff HTTP/1.1" 200 42800 "http://example.com.au/category/articles/example-article-name" "Mozilla/5.0 (iPad; CPU OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B440 Safari/600.1.4"

Same link when it was clicked again, opened fine with 200 status:
49.xxx.xxx.xx - - [16/Aug/2015:22:02:47 +1000] "GET /category/articles/example-article-name HTTP/1.1" 200 17683 "-" "Mozilla/5.0 (iPad; CPU OS 8_1_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B440 Safari/600.1.4"

However, the second time when the error did not happen, no .woff file was requested. Not sure if they are related, or if my problem is related to the pagespeed cache not found causing a 404 in Joomla like the issue reported above.
I have nginx + pagespeed on debian 7 which was installed using Dotdeb Extras package.
Lastly, if I do apt-get update, would the ngx_pagespeed in dotdeb be updated too?
Can you share your thoughts please? I have been investigating this unknown issue for weeks now.


Atom letter is drawn at the cursor after user selects structure/part of structure on the canvas and then click atom on the toolbar

Steps to Reproduce

Open Ketcher
Add any structure to the canvas
Select structure / part of the structure using any selection tool
Click any atom on the atom toolbar, e.g. oxygen

Actual behavior
Selected atom(s) are replaced by the chosen atom. Atom letter is drawn at the cursor.
Expected behavior
Selected atom(s) are replaced by the chosen atom. Selection tool is active, atom letter isn't drawn at the cursor.
Screenshots
https://user-images.githubusercontent.com/124911723/228552951-7e6988f7-453a-46e9-ad10-26577d7a8d9a.mov
Desktop (please complete the following information):**

OS: Macos 13.2.1 (22D68)
Browser Chrome
Version 111.0.5563.110 (Official Build) (x86_64)

Ketcher version [e.g. v2.4.2].
[Version 2.9.0-rc.5]

Just a note, according to https://github.com/epam/ketcher/issues/2490#issuecomment-1543873680

Actual behavior
If in 'Atom properties' modal window we enter atom symbol and click Apply, then this atom appears under the cursor, but it cannot be applied when clicking on canvas.

Expected behavior
Selected atoms are replaces with those assigned to the hotkey.
Selected tool remains active and the atom does not appear under mouse cursor.

Just a note for testers and code reviewers.
According to https://github.com/epam/ketcher/issues/2490#issuecomment-1543873680, part of #2490 should be done in the scope of this current issue (#2428).
That part is if replacing atom using atom hotkey, Selected Tool remains active and the atom does not appear under the mouse cursor.


Upgrade Rails to 4.1.5

We are resolving security vulnerabilities across our apps.
Vulnerability: http://www.securitytracker.com/id/1035122
From Trello card: https://trello.com/c/GTKxL301/361-check-apps-for-rails-vulnerability-and-upgrade-where-needed

Ran the tests locally, all :green_apple: ! Merging