🐛 [FirebaseMessaging] FirebaseMessaging.onBackgroundMessage throw Unhandled Exception: Null check operator used on a null value

Bug report
I followed the tutorial on how to add the library after adding everything works well except for onBackgroundMessage. It throw " Unhandled Exception: Null check operator used on a null value" .
Steps to reproduce

Expected behavior
App running normally and onBackgroundMessage trigger.

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.3, on macOS 11.2.3 20D91 darwin-x64, locale en-VN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.54.3)
[✓] Connected device (2 available)

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 2.12.2
Flutter SDK 2.0.3
driver 1.0.14+15

dependencies:
- avprinter 0.0.2+2 [flutter json_annotation]
- avwidget 0.0.1 [flutter flutter_localizations]
- cloud_firestore 1.0.3 [cloud_firestore_platform_interface cloud_firestore_web firebase_core firebase_core_platform_interface flutter meta]
- cupertino_icons 1.0.2
- device_info 2.0.0 [flutter device_info_platform_interface]
- firebase_auth 1.0.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 1.0.2 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_messaging 9.1.0 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- flutter_bloc 7.0.0 [flutter bloc provider]
- flutter_local_notifications 5.0.0 [flutter flutter_local_notifications_platform_interface platform timezone]
- flutter_localizations 0.0.0 [flutter intl characters clock collection meta path typed_data vector_math]
- flutter_secure_storage 4.1.0 [meta flutter]
- flutter_svg 0.21.0-nullsafety.0 [flutter meta path_drawing vector_math xml]
- google_fonts 2.0.0 [flutter http path_provider crypto]
- google_maps_flutter 2.0.2 [flutter flutter_plugin_android_lifecycle google_maps_flutter_platform_interface]
- http 0.13.1 [http_parser meta path pedantic]
- image_picker 0.7.4 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface image_picker_for_web]
- json_annotation 4.0.1
- local_auth 1.1.1 [flutter meta intl platform flutter_plugin_android_lifecycle]
- location 4.1.1 [flutter location_platform_interface location_web meta]
- qr_code_scanner 0.4.0 [flutter]
- qr_flutter 4.0.0 [flutter qr]
- rxdart 0.26.0
- share 2.0.1 [meta mime flutter]
- shared_preferences 2.0.5 [meta flutter shared_preferences_platform_interface shared_preferences_linux shared_preferences_macos shared_preferences_web shared_preferences_windows]
- signature 4.0.2 [flutter image]
- url_launcher 6.0.3 [flutter url_launcher_platform_interface url_launcher_linux url_launcher_macos url_launcher_windows url_launcher_web]

dev dependencies:
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]

transitive dependencies:
- archive 3.1.2 [crypto path]
- async 2.5.0 [collection]
- bloc 7.0.0 [meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.1.0
- charcode 1.2.0
- clock 1.1.0
- cloud_firestore_platform_interface 4.0.0 [collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 1.0.3 [cloud_firestore_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- collection 1.15.0
- crypto 3.0.0 [collection typed_data]
- device_info_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- fake_async 1.2.0 [clock collection]
- ffi 1.0.0
- file 6.1.0 [meta path]
- firebase_auth_platform_interface 4.0.0 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 1.0.3 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_platform_interface 4.0.0 [flutter meta plugin_platform_interface]
- firebase_core_web 1.0.2 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_messaging_platform_interface 2.1.0 [firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 1.0.3 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- flutter_local_notifications_platform_interface 3.0.0 [flutter plugin_platform_interface]
- flutter_plugin_android_lifecycle 2.0.1 [flutter]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- google_maps_flutter_platform_interface 2.0.3 [flutter meta plugin_platform_interface stream_transform collection]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- image 3.0.2 [archive meta xml]
- image_picker_for_web 2.0.0 [image_picker_platform_interface meta flutter flutter_web_plugins]
- image_picker_platform_interface 2.0.1 [flutter meta http plugin_platform_interface]
- intl 0.17.0 [clock path]
- js 0.6.3
- location_platform_interface 2.1.0 [flutter meta plugin_platform_interface]
- location_web 3.0.0 [flutter flutter_web_plugins http_parser js location_platform_interface meta]
- matcher 0.12.10 [stack_trace]
- meta 1.3.0
- mime 1.0.0
- nested 1.0.0 [flutter]
- path 1.8.0
- path_drawing 0.5.0-nullsafety.0 [vector_math meta path_parsing flutter]
- path_parsing 0.2.0-nullsafety.0 [vector_math meta]
- path_provider 2.0.1 [flutter path_provider_platform_interface path_provider_macos path_provider_linux path_provider_windows]
- path_provider_linux 2.0.0 [path xdg_directories path_provider_platform_interface flutter]
- path_provider_macos 2.0.0 [flutter]
- path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface]
- path_provider_windows 2.0.0 [path_provider_platform_interface meta path flutter ffi win32]
- pedantic 1.11.0
- petitparser 4.0.2 [meta]
- platform 3.0.0
- plugin_platform_interface 2.0.0 [meta]
- process 4.2.1 [file path platform]
- provider 5.0.0 [collection flutter nested]
- qr 2.0.0 [meta]
- shared_preferences_linux 2.0.0 [flutter file meta path path_provider_linux shared_preferences_platform_interface]
- shared_preferences_macos 2.0.0 [shared_preferences_platform_interface flutter]
- shared_preferences_platform_interface 2.0.0 [flutter]
- shared_preferences_web 2.0.0 [shared_preferences_platform_interface flutter flutter_web_plugins meta]
- shared_preferences_windows 2.0.0 [shared_preferences_platform_interface flutter file meta path path_provider_platform_interface path_provider_windows]
- sky_engine 0.0.99
- source_span 1.8.0 [charcode collection path term_glyph]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.0
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.2.19 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timezone 0.7.0 [path]
- typed_data 1.3.0 [collection]
- url_launcher_linux 2.0.0 [flutter]
- url_launcher_macos 2.0.0 [flutter]
- url_launcher_platform_interface 2.0.2 [flutter plugin_platform_interface]
- url_launcher_web 2.0.0 [url_launcher_platform_interface meta flutter flutter_web_plugins]
- url_launcher_windows 2.0.0 [flutter]
- vector_math 2.1.0
- win32 2.0.5 [ffi]
- xdg_directories 0.2.0 [meta path process]
- xml 5.0.2 [collection meta petitparser]

Hi @ThanhPhungTien,
It seems that you use an anonymous handler which is explicitly forbidden by the documentation:

It must not be an anonymous function.
It must be a top-level function (e.g. not a class method which requires initialization).

Oh. Thank you. It's my fault.


Can't find compilers installed in node_modules

Mitigate the kind of confusion expressed in #48

Thanks :)


Cannot resolve module 'react-material-design'

First, thanks for the module! When I require react-color into one of my components and run webpack I get the following error:
ERROR in ./~/react-color/src/components/swatches/Swatches.jsx
Module not found: Error: Cannot resolve module 'react-material-design' in /Users/asaldivar/fuisz/studio/node_modules/react-color/src/components/swatches
 @ ./~/react-color/src/components/swatches/Swatches.jsx 16:15-47

ERROR in ./~/react-color/src/components/material/Material.jsx
Module not found: Error: Cannot resolve module 'react-material-design' in /Users/asaldivar/fuisz/studio/node_modules/react-color/src/components/material
 @ ./~/react-color/src/components/material/Material.jsx 15:15-47

ERROR in ./~/react-color/src/components/compact/Compact.jsx
Module not found: Error: Cannot resolve module 'react-material-design' in /Users/asaldivar/fuisz/studio/node_modules/react-color/src/components/compact
 @ ./~/react-color/src/components/compact/Compact.jsx 17:15-47

I could not find a react-material-design module. Would you please point me in the right direction?

This is where I've gotten to in #9 -- the module is included with react-color, in the modules folder, but isn't resolving.

@asaldivar My mistake, I messed up with some require paths. Update via npm to 1.0.2 and that should fix all the issues!

Hmm, updated to ^1.0.2 but getting this now:
ERROR in ./~/react-color/modules/react-material-design/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./src/components/Raised in /Users/asaldivar/fuisz/studio/node_modules/react-color/modules/react-material-design
 @ ./~/react-color/modules/react-material-design/index.js 4:10-44

ERROR in ./~/react-color/modules/react-material-design/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./src/components/Tile in /Users/asaldivar/fuisz/studio/node_modules/react-color/modules/react-material-design
 @ ./~/react-color/modules/react-material-design/index.js 5:8-40

ERROR in ./~/react-color/modules/react-material-design/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./src/components/Tabs in /Users/asaldivar/fuisz/studio/node_modules/react-color/modules/react-material-design
 @ ./~/react-color/modules/react-material-design/index.js 7:8-40

I also, removed my node_modules and re-ran npm i but still getting this latest error.
I added the .jsx extension to the ./src/components/Raised, ./src/components/Tile and ./src/components/Tabs paths in /react-material-design/index.js as well as to ./Tab and ./Link in /react-material-design/src/components/Tabs.jsx and got my webpack to successfully build all modules, but now i'm getting this error in the browser:
Uncaught TypeError: Cannot set property 'HighchartsAdapter' of undefined

Thanks for hunting this down @asaldivar, I am going to go through and fix these like you suggested.
I do not know of HighchartsAdapter, is that something you are using in your project?

Still working on this. I added:
  resolve: {
    extensions: ["", ".js", ".jsx"]
  },

to get around adding the extensions. Yes, HighchartsAdapter is something on my end. I'm going to try and rule out my stuff and let you know. Thanks!

^1.0.3 - fixes all of the paths, I triple checked it: https://github.com/casesandberg/react-color/commit/28891dbc2d0fdedd84b2d6bc668c044a6f9d87ef
Thanks so much for working through this with me, I have gotten into a lot of trouble with all this Webpack magic.

Ahh, so the error,
Uncaught TypeError: Cannot set property 'HighchartsAdapter' of undefined

was caused because react-highcarts precompiles before publish so when I removed exclude: /node_modules/ from my loader (to get react-color to work) react-highcharts wouldn't work.  Is it possible for you to have react-color precompile before publish as well? Otherwise I don't believe I'll be able to use both components in my app because of the webpack configuration.

Ah! Just pushed<EMAIL_ADDRESS>which should allow you to put back in that exclude: /node_modules/!
I ended up excluding [/node_modules/, /modules/] for my webpack and was able to go through and create ES5 versions of all of the things in my modules folder. This should allows you to put back in that exclude as everything but the documentation is now ES5 by default!

Beautiful. :) Working here.

Awesome! It's working for me too! Thanks so much for solving this issue!


Reenable Components E2E

Looks looks like we are blocked until they push node.js to the helix queues (which they are waiting for after preview 4 stabailizes to do)...  these are failing with missing npm errors now
Stack Trace:
   at Microsoft.AspNetCore.E2ETesting.SeleniumStandaloneServer.InitializeInstance(ITestOutputHelper output)
   at Microsoft.AspNetCore.E2ETesting.SeleniumStandaloneServer.GetInstanceAsync(ITestOutputHelper output) in /_/src/Shared/E2ETesting/SeleniumStandaloneServer.cs:line 77
   at Microsoft.AspNetCore.E2ETesting.BrowserFixture.CreateBrowserAsync(String context, ITestOutputHelper output) in /_/src/Shared/E2ETesting/BrowserFixture.cs:line 95
   at Microsoft.AspNetCore.E2ETesting.BrowserTestBase.InitializeAsync() in /_/src/Shared/E2ETesting/BrowserTestBase.cs:line 42
[xUnit.net 00:02:03.16]     Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.CanFollowLinkToOtherPageWithQueryString [FAIL]
[xUnit.net 00:02:03.16]       System.InvalidOperationException : Failed to launch the server.
[xUnit.net 00:02:03.16]       ExitCode: 1
[xUnit.net 00:02:03.16]       Captured output lines:
[xUnit.net 00:02:03.16]
[xUnit.net 00:02:03.16]       'npm' is not recognized as an internal or external command,
[xUnit.net 00:02:03.17]       operable program or batch file.
[xUnit.net 00:02:03.17]       .
[xUnit.net 00:02:03.17]       Stack Trace:
[xUnit.net 00:02:03.17]            at Microsoft.AspNetCore.E2ETesting.SeleniumStandaloneServer.InitializeInstance(ITestOutputHelper output)
[xUnit.net 00:02:03.17]         /_/src/Shared/E2ETesting/SeleniumStandaloneServer.cs(77,0): at Microsoft.AspNetCore.E2ETesting.SeleniumStandaloneServer.GetInstanceAsync(ITestOutputHelper output)
[xUnit.net 00:02:03.17]         /_/src/Shared/E2ETesting/BrowserFixture.cs(95,0): at Microsoft.AspNetCore.E2ETesting.BrowserFixture.CreateBrowserAsync(String context, ITestOutputHelper output)
[xUnit.net 00:02:03.17]         /_/src/Shared/E2ETesting/BrowserTestBase.cs(42,0): at Microsoft.AspNetCore.E2ETesting.BrowserTestBase.InitializeAsync()
[xUnit.net 00:02:03.18]     Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.ClickingAnchorWithNoHrefShouldNotNavigate [FAIL]
[xUnit.net 00:02:03.18]       System.InvalidOperationException : Failed to launch the server.
[xUnit.net 00:02:03.18]       ExitCode: 1
[xUnit.net 00:02:03.18]       Captured output lines:
[xUnit.net 00:02:03.18]
[xUnit.net 00:02:03.18]       'npm' is not recognized as an internal or external command,
[xUnit.net 00:02:03.18]       operable program or batch file.

Getting a little farther now: error is with selenium-standalone not being found now.
Is this something that should get installed as part of the run or something that we need to pull down before running these Component E2E tests?
@javiercn @SteveSandersonMS
https://mc.dot.net/#/user/aspnetcore/pr~2Faspnet~2Faspnetcore/ci/20190422.4/workItem/Microsoft.AspNetCore.Components.E2ETests-netcoreapp3.0/wilogs
[xUnit.net 00:01:01.96]       ><EMAIL_ADDRESS>selenium-standalone C:\dotnetbuild\work\c83b73fd-01bd-4958-a429-55c880f0cd0a\Work\7463a409-fa45-476d-9616-7d1cc52f6610\Exec
[xUnit.net 00:01:01.96]       > selenium-standalone "start" "--" "-port" "50466"
[xUnit.net 00:01:01.96]
[xUnit.net 00:01:01.96]       'selenium-standalone' is not recognized as an internal or external command,
[xUnit.net 00:01:01.96]       operable program or batch file.
[xUnit.net 00:01:01.96]       npm ERR! code ELIFECYCLE
[xUnit.net 00:01:01.96]       npm ERR! errno 1
[xUnit.net 00:01:01.96]       npm ERR<EMAIL_ADDRESS>selenium-standalone: `selenium-standalone "start" "--" "-port" "50466"`
[xUnit.net 00:01:01.96]       npm ERR! Exit status 1
[xUnit.net 00:01:01.96]       npm ERR!
[xUnit.net 00:01:01.96]       npm ERR! Failed at the<EMAIL_ADDRESS>selenium-standalone script.
[xUnit.net 00:01:01.96]       npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[xUnit.net 00:01:01.96]       npm WARN Local package.json exists, but node_modules missing, did you mean to install?
[xUnit.net 00:01:01.96]
[xUnit.net 00:01:01.96]       npm ERR!      C:\Users\runner\AppData\Roaming\npm-cache\_logs\2019-04-22T10_26_39_530Z-debug.log
[xUnit.net 00:01:01.96]

It’s installed at build time with yarn install

So for the helix machines which aren't building the app, we'll need to add some custom commands to install things?

Is there a simple runtime command we can do that's equivalent to this?
https://github.com/aspnet/AspNetCore/blob/5889aea06cc7ed5c2f743e2fd8ed8abcb7c2d957/src/Middleware/NodeServices/src/Microsoft.AspNetCore.NodeServices.csproj#L24
Like before running the tests, do a 'yarn install packages.json' in the directory?

You need the packages.json along with the yarn.lock and you should have yarn installed globally.

So include packages.json and yarn.lock, and then run "yarn install" before running the tests should do the trick?

@javiercn before I dig too much farther, these tests should run on OSX and linux right?
Currently seeing
 System.ComponentModel.Win32Exception : No such file or directory
Stack Trace:
   at System.Diagnostics.Process.ForkAndExecProcess(String filename, String[] argv, String[] envp, String cwd, Boolean redirectStdin, Boolean redirectStdout, Boolean redirectStderr, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.AspNetCore.E2ETesting.SeleniumStandaloneServer.InitializeInstance(ITestOutputHelper output) in /_/src/Shared/E2ETesting/SeleniumStandaloneServer.cs:line 130
   at Microsoft.AspNetCore.E2ETesting.SeleniumStandaloneServer.GetInstanceAsync(ITestOutputHelper output) in /_/src/Shared/E2ETesting/SeleniumStandaloneServer.cs:line 77
   at Microsoft.AspNetCore.E2ETesting.BrowserFixture.CreateBrowserAsync(String context, ITestOutputHelper output) in /_/src/Shared/E2ETesting/BrowserFixture.cs:line 95
   at Microsoft.AspNetCore.E2ETesting.BrowserTestBase.InitializeAsync() in /_/src/Shared/E2ETesting/BrowserTestBase.cs:line 42
Failed   Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.ServerEventTest.PreventDefault_AppliesToFormOnSubmitHandlers
Error Message:

It seems to be weird getting Win32 exceptions on Non Windows machines...?

We only run them on windows, but we have plans to run them on Linux and MAC too. I believe @ryanbrandenburg was working on that.

Actually, I found that all of our tests actually already run on Linux and Mac? That's weird to me considering it's specifically disabled.  My preliminary guess is that a property got messed up when we added the RunTemplatesTests property to split the tests into different tasks.

Actually, I found that all of our tests actually already run on Linux and Mac. That's weird to me considering it's specifically disabled. My preliminary guess is that a property got messed up when we added the RunTemplatesTests property to split the tests into different tasks.

No they don't. The Selenium part only runs on Windows. Other parts run cross-plat. (Create/Restore/Build/Publish, etc).

@MattGal looks like something got borked after we install yarn on windows, any ideas what happened to this job?
https://mc.dot.net/#/user/aspnetcore/pr~2Faspnet~2Faspnetcore/ci/20190427.5/workItem/Microsoft.AspNetCore.Components.E2ETests-netcoreapp3.0/wilogs
Windows.10.Amd64.ClientRS4.VS2017.Open
Details from Job a096b9ca-762c-429a-902c-764f5c662eba
ExitCode: 0
Ran on Machine: a000I34
Console
 Executed on a000I34

C:\dotnetbuild\work\a096b9ca-762c-429a-902c-764f5c662eba\Work\c24d1c39-8242-4683-a274-4f318e18e6b3\Exec>npm i yarn
npm notice created a lockfile as package-lock.json. You should commit this file.
+<EMAIL_ADDRESS>added 1 package and audited 1 package in 2.719s
found 0 vulnerabilities

The other non windows queues were able to continue after the yarn install.

@HaoK this happened because your command caused exit to happen at that point with code 0.  I would expect that something is wrong with how the script being called is invoked which is promoting some other thing's exit /b 0 or equivalent into an exit.  I'd first suggest you improve logging around how this is being invoked, then use the local or VM-based repro tools if this doesn't make the problem more obvious.

I tried this Kusto query:
WorkItems | where Started > now(-10d) | where FriendlyName == "Microsoft.AspNetCore.Components.E2ETests-netcoreapp3.0" | join kind= inner (
   Jobs
| where QueueName startswith "Windows"
| order by Started desc | project  QueueName , JobId, Build, Type, Source
) on JobId
| order by Finished desc

and I find no evidence that this worked on "some other Windows queue" or was ever run there.
I suggest trying the guidance here: https://github.com/npm/npm/issues/2938

Thanks @MattGal yeah the other queues were non windows that weren't hitting this issue

Almost there it looks like, @javiercn hopefully the last issue is just another case of resolving the content root properly on helix.
Its looking for the sources using repo root which isn't there on helix
[xUnit.net 00:00:19.36]       System.ArgumentException : The content root 'F:\workspace\_work\1\s\src\Components\test\testassets\BasicTestApp' does not exist.

Looks like the logic is coming from here https://github.com/aspnet/AspNetCore/blob/helix-comp/src/Components/test/E2ETest/Infrastructure/ServerFixtures/ServerFixture.cs#L31 which is using the props setting the content root here: https://github.com/aspnet/AspNetCore/blob/5889aea06cc7ed5c2f743e2fd8ed8abcb7c2d957/src/Shared/E2ETesting/E2ETesting.targets#L93
Are you ok if I add a if helix branch which just hardcodes the content root to AppContext.BaseDirectory + "/testassets/AppName" which we can just include everything testassets in the helix payload

Replaced by https://github.com/aspnet/AspNetCore/pull/10997


python311Packages.puremagic: 1.21 -> 1.22

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.puremagic is: Implementation of magic file detection
meta.homepage for python311Packages.puremagic is: https://github.com/cdgriffith/puremagic
meta.changelog for python311Packages.puremagic is: https://github.com/cdgriffith/puremagic/blob/1.22/CHANGELOG.md
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.22 with grep in /nix/store/bmfn2wyn8nlfvmamvb3c30gq8ii3q83n-python3.11-puremagic-1.22
found 1.22 in filename of file in /nix/store/bmfn2wyn8nlfvmamvb3c30gq8ii3q83n-python3.11-puremagic-1.22

Rebuild report (if merged into master) (click to expand)

10 total rebuild path(s)

10 package rebuild(s)

First fifty rebuilds by attrpath

lacus
opsdroid
python311Packages.lacuscore
python311Packages.playwrightcapture
python311Packages.puremagic
python312Packages.lacuscore
python312Packages.playwrightcapture
python312Packages.puremagic
sabnzbd

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/bmfn2wyn8nlfvmamvb3c30gq8ii3q83n-python3.11-puremagic-1.22 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python311Packages.puremagic https://github.com/r-ryantm/nixpkgs/archive/889cd25fa8b36a1e4c3d9cffd88f0547a2f30209.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/889cd25fa8b36a1e4c3d9cffd88f0547a2f30209#python311Packages.puremagic

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/bmfn2wyn8nlfvmamvb3c30gq8ii3q83n-python3.11-puremagic-1.22
ls -la /nix/store/bmfn2wyn8nlfvmamvb3c30gq8ii3q83n-python3.11-puremagic-1.22/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

17 packages built:

lacus
lacus.dist
opsdroid
opsdroid.dist
python311Packages.lacuscore
python311Packages.lacuscore.dist
python311Packages.playwrightcapture
python311Packages.playwrightcapture.dist
python311Packages.puremagic
python311Packages.puremagic.dist
python312Packages.lacuscore
python312Packages.lacuscore.dist
python312Packages.playwrightcapture
python312Packages.playwrightcapture.dist
python312Packages.puremagic
python312Packages.puremagic.dist
sabnzbd

Maintainer pings
cc @globin for testing.

Superseded by https://github.com/NixOS/nixpkgs/pull/308734


Add a mounted example

I've updated the yew depency, and the mounted hook got removed. Which is fine, but there was no clear indication of how to keep that functionality. So I think this example should give a way forward. It could also help thos coming from other frameworks.

This is great! Could you fix CI?

I'm sorry this took so long, they should work now!

No worries! Thank you!


Fix word and symbol syntax distinction, take 2

Adapted from @roysc's PR #42.
Do not match keywords inside symbols when building the rust-mode-font-lock-keywords. This obviates changing the syntax of `_' to "w", fixing other problems.


DO NOT MERGE YET: Interactive transaction test

This adds in a longer concurrent interaction transactions test to make sure the engine doesn't deadlock.
If I use the engine on main branch the test never completes. If I use the new engine from here https://github.com/prisma/prisma-engines/pull/2619 then the test completes.
When the query-engine PR is merged I'll updated this PR to remove the tmp commit.

Seems that GitHub Actions are not running 🤔 Not sure why

Closing in favor of https://github.com/prisma/prisma/pull/10797.


Readme.md Required With Licence

A Readme File With Proper Details And Information

Hi @ST1LLWATER , I would like to work on this issue, can you please assign me?

Hi, I would like to work on this issue, please assign me.


Two simple sorting methods

Hello all,
Here are two sorting methods that I think would be fairly useful and possibly easy to implement. I'll explain why individually.
Random order:
good for reading comics or rediscovering images, easy to implement. If it is already a slideshow option, why not use the slideshow randomize instead?

Slideshow lacks quick actions, unable to share, favourite, copy, etc.
Slideshow makes you view images one at a time, so you can't go into mosaic mode and scan through quickly.

Aspect ratio/dimensions: good for finding a specific images for edge cases. In my opinion, less important than random order sort. Here's two use cases:

I can't find an image, and I didn't label it properly nor do I remember the date. I do remember it was a portrait photo. As a last resort I can sort by aspect ratio.
Surprisingly useful sorting: screenshots will be sorted automatically by aspect ratio and orientation; useful when other sort methods fail.

Thanks for considering the suggestion. Question as well; if these suggestions are approved, how long might it take to be added?

Regarding aspect ratio, there are a couple of things already available in the app:

in the search page, there are the "Portrait" and "Landscape" filters,
it's not a documented feature but in the search query (or the dynamic title filter) you can use a simple syntax like width>20000, height=2280.

if these suggestions are approved, how long might it take to be added?

It does not work like that. When I have the time and energy, I develop or fix whatever I fancy. No order, no plan.

Thanks, i didn't know that was a search query thing; are there any other undocumented ones?

From memory, there's also "size" (in bytes, but it understand "k", "g" and "m" suffix too), "year", "month" (as a number), and "day".

Related:

#735


'ThingsBoard' does not name a type; did you mean 'ThingsBoard_h'?

I was using the thingsboard library perfectly fine but then all of a sudden I started getting this error.
I tried all solutions including moving the .h and .cpp fies up a folder but issue is not resolved.
I tried to use an example code for thingsboard but still the error remains.
Below is the complete error:
In file included from C:\Users\username\AppData\Local\Temp\arduino_modified_sketch_445642\0003-esp8266_send_data.ino:1:
C:\Users\username\Documents\Arduino\libraries\ThingsBoard\src/ThingsBoard.h:28:16: error: default template arguments may not be used in template friend declarations
   28 |   friend class ThingsBoardSized;
      |                ^~~~~~~~~~~~~~~~
C:\Users\username\Documents\Arduino\libraries\ThingsBoard\src/ThingsBoard.h: In member function 'void ThingsBoardSized<PayloadSize, MaxFieldsAmt, Logger>::process_message(char*, uint8_t*, unsigned int)':
C:\Users\username\Documents\Arduino\libraries\ThingsBoard\src/ThingsBoard.h:329:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
  329 |         return false;
      |                ^~~~~
C:\Users\username\Documents\Arduino\libraries\ThingsBoard\src/ThingsBoard.h:334:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
  334 |         return false;
      |                ^~~~~
In file included from C:\Users\username\AppData\Local\Temp\arduino_modified_sketch_445642\0003-esp8266_send_data.ino:1:
C:\Users\username\Documents\Arduino\libraries\ThingsBoard\src/ThingsBoard.h: At global scope:
C:\Users\username\Documents\Arduino\libraries\ThingsBoard\src/ThingsBoard.h:582:38: error: wrong number of template arguments (0, should be 3)
  582 | using ThingsBoard = ThingsBoardSized<>;
      |                                      ^
In file included from C:\Users\username\AppData\Local\Temp\arduino_modified_sketch_445642\0003-esp8266_send_data.ino:1:
C:\Users\username\Documents\Arduino\libraries\ThingsBoard\src/ThingsBoard.h:28:16: note: provided for 'template<unsigned int PayloadSize, unsigned int MaxFieldsAmt, class Logger> class ThingsBoardSized'
   28 |   friend class ThingsBoardSized;
      |                ^~~~~~~~~~~~~~~~
0003-esp8266_send_data:20:1: error: 'ThingsBoard' does not name a type; did you mean 'ThingsBoard_h'?
   20 | ThingsBoard tb(espClient);
      | ^~~~~~~~~~~
      | ThingsBoard_h
C:\Users\username\AppData\Local\Temp\arduino_modified_sketch_445642\0003-esp8266_send_data.ino: In function 'void loop()':
0003-esp8266_send_data:38:8: error: 'tb' was not declared in this scope; did you mean 'tm'?
   38 |   if (!tb.connected()) {
      |        ^~
      |        tm
0003-esp8266_send_data:56:3: error: 'tb' was not declared in this scope; did you mean 'tm'?
   56 |   tb.sendTelemetryInt("temperature", 22);
      |   ^~
      |   tm
exit status 1
'ThingsBoard' does not name a type; did you mean 'ThingsBoard_h'?

I'm seeing the same thing. I believe this is caused by the update to the ESP8266 board library (v3.0.0). I was compiling just fine earlier this morning and then mindlessly accepted the ESP8266 board library update. Then everything broke.
I'm sorry I can't provide and solutions but just letting you know that the development environment has also changed for this user.  I'm just not competent to understand the issues.
I'm hoping the author will can prioritize the fix(es).  Please.

@abferguson  I am using MKR 1010 and I have the same error
https://forum.arduino.cc/t/connecting-mkr-iot-to-thingsboard-thingsboardhttp-error/869051/5
any suggestion?

I had accidentally updated my Thingsboard library to v0.4.0. Downgrading it back to v0.2.0 did it for me. Apparently, the updated version my not be compatible with the ESP8266 board library.

Michal,
I'm not able to help you. I do not have the skill to diagnose what is going on with your issue.
It looks like it is related to the Thingsboard logger file, which I've never used.  Perhaps if you define it in your sketch?
abf
On Tuesday, June 1, 2021, 6:59:32 AM CDT, Michal Dengusiak<EMAIL_ADDRESS>wrote:

@abferguson I am using MKR 1010 and I have the same error
https://forum.arduino.cc/t/connecting-mkr-iot-to-thingsboard-thingsboardhttp-error/869051/5
any suggestion?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


noexcept?

Hi Louis, why don't you use noexcept in most of your code? It's not important, I'm just interested.

Sorry for the slow reply, I was on vacation. The reason for not using noexcept is just simplicity, a bit like the standard library, which only talks about noexcept when it makes an obvious difference. For Hana I simply did not do it. Also, given the metaprogramming nature of Hana, I think there are fewer places where it would matter, but there are certainly places where it would. It's just a lot of work and seemed like the return on investment would be minimal. If there are places where you think noexcept would be a worthwhile addition, feel free to open a PR.


Shape incorrect when converting TensorFlow-->IR-->PyTorch

For scripts and model files, please refer to #398
Using your new commit #399 , I am not able to perform the converting, and I finally got a pytorch .py file together with a .npy model weight file.
I test the converted file with
model = KitModel('./converted_pytorch.npy')
x = torch.randn(5, 64, 64, 3)
y = model(x)
print y.shape

and got this error
Traceback (most recent call last):
  File "converted_pytorch.py", line 203, in <module>
    y = model(x)
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 477, in __call__
    result = self.forward(*input, **kwargs)
  File "converted_pytorch.py", line 101, in forward
    add_2           = conv2d_8_Conv2D + conv2d_6_Conv2D
RuntimeError: The size of tensor a (62) must match the size of tensor b (64) at non-singleton dimension 2

The converted IR file and pytorch file is available at here

Hi @ZiangYan , I searched your model and I know the problem! Please refer to this https://github.com/Microsoft/MMdnn/issues/379#issuecomment-416484025 . Now we are also thinking about the implementation of NCHW conversion. Thanks!

Thanks @namizzz !
After I generate a NHWC tf model, everything works perfectly!!


Enable search and add indexing with Algolia

Add Algolia configuration to Docusaurus config
Add indexing to CI/CD pipeline

nit: Can the "let us know" link be changed to point to our repo, or it is hardcoded by the plugin?


[SPARK-17076] [SQL] Cardinality estimation for join based on basic column statistics

What changes were proposed in this pull request?
Support cardinality estimation and stats propagation for all join types.
Limitations:

For inner/outer joins without any equal condition, we estimate it like cartesian product.
For left semi/anti joins, since we can't apply the heuristics for inner join to it, for now we just propagate the statistics from left side. We should support them when other advanced stats (e.g. histograms) are available in spark.

How was this patch tested?
Add a new test suite.

cc @rxin @srinathshankar @cloud-fan

Test build #69907 has started for PR 16228 at commit f0bbb43.

I still leave two issues undecided:

Where can we turn on/off cbo estimation? I think we need to have such switch, because otherwise we will use statistics as long as they are in the metastore, but they can become stale.
Currently we use column name as the key for column statistics, which is problematic because if the output of join have columns from different tables with the same column name, they can't be distinguished. Can we use a combination string like table name + column name? Will it have problem in case of table alias?

That is great. Would it be easier to use FK, when it is available (see HMS has FKs since Hive 2.1: https://issues.apache.org/jira/browse/HIVE-13076), and if FK between columns is not defined, then use stats.

Also, do I understand correctly, that the assumption is if two tables being joined by columns with the same name, join columns have the same stats / set of values?

Test build #69911 has started for PR 16228 at commit 64603b5.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/69911/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/69907/
Test FAILed.

@Tagar Thanks for sharing this information. Yes, it would be better to use PK/FK, but it won't be done in this pr, and we need to implement PK/FK constraints in Spark first.

the assumption is if two tables being joined by columns with the same name, join columns have the same stats / set of values?

It is true for inner join, but not true for outer joins, right?

@wzhfy, thanks for the feedback.
For outer joins, cardinaility estimates should be:

left_outer_join_cardinality(table_A, table_B) = MAX(cardinality(A), inner_join_cardinality(table_A, table_B))
So with left outer join, you'll get join cardinality at least number of the rows on the left (table A);
right outer join is similar to left outer join (with exception s/A/B/g);
full_outer_join_cardinality(table_A, table_B) = cardinality(A) + cardinality(B) - inner_join_cardinality(table_A, table_B)).
Does this sound about right?

@Tagar For full outer join, how about cardinality = MAX(card(A) + card(B), innerCard(AB)) ?

@wzhfy, it's easier to check validity of these type of expressions when you look at extreme cases.
Your formula for full outer join cardinality,

cardinality = MAX(card(A) + card(B), innerCard(AB))

in one of extreme cases when set(A) and set(B) are the same sets, then calculated cardinality would be 2 times more of the actual cardinality.
While

full_outer_join_cardinality(table_A, table_B) = cardinality(A) + cardinality(B) - inner_join_cardinality(table_A, table_B))

will produce correct result.
ps. I find this visualization http://www.radacad.com/wp-content/uploads/2015/07/joins.jpg very helpful.
https://en.wikipedia.org/wiki/Inclusion–exclusion_principle A U B = A + B - A \ B
Hope this helps. Thanks!

@Tagar We can always find extreme cases to which these formula can't apply. In my opinion, it's better to over-estimate than under-estimate, which can lead to OOM problems, e.g. broadcast a very large result.
If A is a big table and B is a small one, every A.k has a match in B (a common case for PK and FK), then

cardinality(A) + cardinality(B) - inner_join_cardinality(table_A, table_B))

becomes card(B), which is dramatically smaller than the real outer join card. Even more, it can be negative if all A.k and B.k has the same value, the inner join part becomes a cartesian product.
This formula,

cardinality = MAX(card(A) + card(B), innerCard(AB))

although over estimates sometimes, it's still obviously better than the original one in spark: card(A) * card(B).

@wzhfy, I think overestimating cardinality could be as bad as underestimating.
For example, Optimizer could prematurely switch to SortMergeJoin when it could used broadcast hash join.
But I agree, this PR is a great improvement over current cardinality estimates.

To solve the two issues I mentioned above, a separate PR is sent here.
We need to rebase this one after that one is resolved.

Test build #70533 has started for PR 16228 at commit c3e3a48.

Test build #70533 has finished for PR 16228 at commit c3e3a48.

This patch fails to build.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class LeftSemiAntiEstimation(join: Join)

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/70533/
Test FAILed.

Test build #70544 has started for PR 16228 at commit 2c9d6c7.

Test build #70544 has finished for PR 16228 at commit 2c9d6c7.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/70544/
Test PASSed.

Merged build finished. Test PASSed.

Test build #70589 has started for PR 16228 at commit de63b59.

Test build #70589 has finished for PR 16228 at commit de63b59.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/70589/
Test PASSed.

Test build #70708 has started for PR 16228 at commit df839f8.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/70708/
Test FAILed.

retest this please

Test build #70717 has started for PR 16228 at commit df839f8.

Test build #70717 has finished for PR 16228 at commit df839f8.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/70717/
Test PASSed.

Merged build finished. Test PASSed.

Test build #71307 has started for PR 16228 at commit ffb9eee.

Test build #71307 has finished for PR 16228 at commit ffb9eee.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/71307/
Test PASSed.

This pr is rebased and ready for review. @rxin

Test build #71794 has started for PR 16228 at commit 7e52a83.

Test build #71794 has finished for PR 16228 at commit 7e52a83.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/71794/
Test PASSed.

cc @cloud-fan can you please take a look?

retest this please

Test build #72642 has started for PR 16228 at commit 7e52a83.

Test build #72642 has finished for PR 16228 at commit 7e52a83.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72642/
Test PASSed.

Test build #72785 has started for PR 16228 at commit d040045.

Test build #72785 has finished for PR 16228 at commit d040045.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72785/
Test PASSed.

This pr is updated, please review @cloud-fan

Test build #72903 has started for PR 16228 at commit e8930d2.

LGTM except some minor comments, thanks for working on it!

Test build #72903 has finished for PR 16228 at commit e8930d2.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72903/
Test PASSed.

Test build #72916 has started for PR 16228 at commit 8e2d5ae.

Test build #72916 has finished for PR 16228 at commit 8e2d5ae.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72916/
Test FAILed.

Test build #72917 has started for PR 16228 at commit 8182123.

Test build #72917 has finished for PR 16228 at commit 8182123.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/72917/
Test PASSed.

Merged build finished. Test PASSed.

thanks, merging to master!


K8SPG-265 A minor fix for monitoring test

It turns out that pmm-server treats a node as entity with namespace as prefix inside a name

Test name
Status

init-deploy
passed

demand-backup
passed

start-from-backup
passed

monitoring
failed

We run 4 out of 4

commit: https://github.com/percona/percona-postgresql-operator/pull/318/commits/9cf42772906b87345cf7203d4d3aa671ed468f03
image: perconalab/percona-postgresql-operator:PR-318-9cf42772

Test name
Status

init-deploy
passed

demand-backup
passed

start-from-backup
passed

monitoring
failed

We run 4 out of 4

commit: https://github.com/percona/percona-postgresql-operator/pull/318/commits/17a2fffc9bf34c80c43cfea9c643387f32713bb8
image: perconalab/percona-postgresql-operator:PR-318-17a2fffc

Test name
Status

init-deploy
passed

demand-backup
passed

start-from-backup
passed

monitoring
passed

We run 4 out of 4

commit: https://github.com/percona/percona-postgresql-operator/pull/318/commits/903205e78374544314fc637e9809b03894881b0a
image: perconalab/percona-postgresql-operator:PR-318-903205e7


Update async version

Async version 1.5.2 is vulnerable to CVE-2021-43138 to move to the latest safe version.

Hi @yhwang thanks for the merge. I inspected the major version change of async for the two functions this repo uses are still the same and I ran the tests in this repo.


Fix all the wrong containerSecurityContext refs

This was introduced by #98, and I believe it was a copy&paste error

Hello @juan-vg can you help me updating the chart version so I can merge this pr?

@alfespa17 done!

Thank you @juan-vg


Vitis-AI 3.0 failed to run vaitrace tool

I encountered the following problems when using vaitrace tool on VCK5000:

Here are my implementation steps:
step1:
add   -v /sys/kernel/debug:/sys/kernel/debug  --privileged=true \   in docker_run.sh

step2:
run docker

step3:
sudo bash

but user is not root.
step4:
run vaitrace

How to solve the above problem? Thanks.

+1

Any update on this issue...I am also facing the same

Hi @jzymessi
Thanks for the reply.But for me it's still not working.XRT  is throwing the error.
`
vitis-ai-user@XXXX:/workspace/examples/vai_library/samples/classification$ sudo vaitrace ./test_jpeg_classification resnet50_pt sample_classification.jpg
INFO:root:VART will run xmodel in [NORMAL] mode
INFO:root:Executable file: /workspace/examples/vai_library/samples/classification/test_jpeg_classification
Analyzing symbol tables...
207 / 207
81 / 81
6 / 6
45 / 45
3 / 3
terminate called after throwing an instance of 'std::runtime_error'
what():  XILINX_XRT not set
INFO:root:Generating VTF
ERROR:root:Xmodel info raw data empty
INFO:root:[vart_trace.csv]: Events number: 0
vitis-ai-user@XXXX:/workspace/examples/vai_library/samples/classification$ echo $XILINX_XRT
/opt/xilinx/xrt`

Hi @jzymessi , Can you skip step3 and retry the vaitrace tool? Thanks!

@Dexter706
run follow:
vaitrace --fine_grained ./test_jpeg_classification xcompiler_model/reset50_pt.xmodel sample_classification

sudo -E


Project migration from the 2016 RC1 to VS 2017 with Asp Core works locally perfectly and deploys, but the deployment now seems to not bring anything from azure table storage

From @RodrigoCC90 on May 10, 2017 15:29
Background. This project was started with dotnet 1.0.0-preview2-003121 and am now in 1.0.3
(1) First changes, I simply accepted the automatic visual studio migration. Debug worked on the first try perfectly as far as I could tell. My home page loaded with images and information that are all in azure table storage.
(2) I then I decide to put this version on my already existing development web app that has hosted many different projects that I have been migrating. I open the page and it all looks good until I don't see any images loaded for different images that are brought from azure table storage. I bring the information from a "Pictures" table and the entry in the table has corresponding blob information stored. I originally think its razor, because I display the entries with an @foreach but I add a string using @Html.Raw and it appears in the deployment perfectly.
(3) At this point I open NuGet Package Manager for the solution and see that 1 of my 4 class libraries has a 1.6.0 for NetStandardLibrary and the others are 1.6.1. I try to update using the user interface but the version is blocked. From there, I Install-Package NETStandard.Library in the package manager console. Everything continuous to work locally but same problem in the deployment. Nothing else to consolidate. Important info: this specific class library is where is where I handle all the table storage things.
(4) I then see 28 updates available for packages and decide to update table storage from 7.2.1 to 8.1.1. In the solution, the web application project and 2 class library projects were updated. The class libraries update well but the web project can't. It uninstalled the older packages and installed the new then reversed the process. Project works locally and the deployment has the same error, no images or info from the tables. After debugging I checked the package manager solution to see if I could uninstall windows storage from the web app project and the version appears to be 8.1.1.
(5) Updated from 1.1.2 to "Microsoft.AspNetCore.Mvc" Version="1.1.3". Same situation.
(6) Microsoft.NETCore.App isn't in the update list but in the installed list it has a blocked option to update to 1.1.2. I decide to go for the Install-Package Microsoft.NETCore.App -Version 1.1.2 in the NuGet Package Manager. Locally doesn't work due to 2 projects the having the same dependencies but different versions. Can't find any consolidation opportunities in the nuget package manager.
Not sure what do to right now after I've touched the solution so much. Any suggestions? Im not even sure (6) is what I should have done.
Suspicions as to what the problem could be:
-- Perhaps my appsettings.Development.json is not being accessed in the deployment due to a change in some package or maybe how launchsettings.json is accessed (where I declare which environment I'm using).
-- I feel like the project NETStandardLibrary update being blocked intially by the web project meant that something important must have been relying on that previous version. But why would it work locally and not in the deployment?
Next tries:

Reverting (6) and removing dependency of web app on windows azure package through some re-coding.
Starting a new web app in my azure account and seeing if the issue could be on the azure side due to the web app having hosted projects with earlier dotnet versions.
Doing (6) and trying to make it build.

Copied from original issue: dotnet/sdk#1196

This issue is being closed because it has not been updated in 3 months.
We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.


Deleting tunnel while pending will cause tb.jar to go create lots of tunnels

When the tunnel is in a pending state and you delete the tunnel through the API, testingbot-tunnel.jar will keep creating new tunnels until it hits the maximum amount of allowed tunnels.
I see the following traceback:
tunnel:May 31, 2013 9:03:46 AM ssh.TunnelPoller$PollTask run
tunnel:SEVERE: Unable to poll for tunnel status.
tunnel:May 31, 2013 9:03:46 AM ssh.TunnelPoller$PollTask run
tunnel:SEVERE: null
tunnel:net.sf.json.JSONException: JSONObject["state"] not found.
tunnel: at net.sf.json.JSONObject.getString(JSONObject.java:2092)
tunnel: at ssh.TunnelPoller$PollTask.run(TunnelPoller.java:34)
tunnel: at java.util.TimerThread.mainLoop(Timer.java:555)
tunnel: at java.util.TimerThread.run(Timer.java:505)
tunnel:

I assume that it catches the exception and than starts a new tunnel but keeps checking the old tunnel id.

@testingbot I still have the issue now.


Cannot save entity with Cyrillic capital letter "И" (d0 98) into MariaDB

Bug description
While trying to save a Cyrillic capital letter "И" (d0 98) into MariaDB varchar field the following error appears:
code: 'P2023',   clientVersion: '3.5.0',   meta: { message: "Conversion failed: Couldn't convert data to UTF-8" }
For all the other letters seems it works OK. As the result no insert/update/delete queries may be executed on a record with a field that contains this letter.
How to reproduce

Expected behavior
Data is properly saved into DB without any excaption and can be retreived from it as well.
Prisma information

Schema example:
model Point {
  id             Int              @id @default(autoincrement())
  name           String
  @@map("point")
}

Query example
await prisma.point.create({
    data: {
      name: "И"
   }
});

Environment & setup

OS:  Windows 10
Database: 10.3.32 MariaDB
Node.js version: 16.13.0

Prisma Version
prisma                  : 3.5.0
@prisma/client          : 3.5.0
Current platform        : windows
Query Engine (Node-API) : libquery-engine 78a5df6def6943431f4c022e1428dbc3e833cf8e (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli 78a5df6def6943431f4c022e1428dbc3e833cf8e (at<EMAIL_ADDRESS>Introspection Engine    : introspection-core 78a5df6def6943431f4c022e1428dbc3e833cf8e (at<EMAIL_ADDRESS>Format Binary           : prisma-fmt 78a5df6def6943431f4c022e1428dbc3e833cf8e (at<EMAIL_ADDRESS>Default Engines Hash    : 78a5df6def6943431f4c022e1428dbc3e833cf8e
Studio                  : 0.439.0

Hey @ishestakov, did this problem solve itself? I would be interested in knowing how you could fix this.


Add pretty print feature

Codecov Report

Merging #6 (567c893) into master (b0faeb1) will decrease coverage by 0.79%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
- Coverage   98.07%   97.28%   -0.80%
==========================================
  Files           5        5
  Lines         468      479      +11
==========================================
+ Hits          459      466       +7
- Misses          9       13       +4

Impacted Files
Coverage Δ

src/progshot/film.py
98.27% <ø> (ø)

src/progshot/cli.py
97.99% <100.00%> (-0.62%)
:arrow_down:

src/progshot/progshot.py
94.84% <0.00%> (-2.07%)
:arrow_down:

Continue to review full report at Codecov.

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


Print only one header field

Is it possible to print only one, or multiple header fields?
Based on this,
'H' request headers
'B' request body
'h' response headers
'b' response body

Like, http --print=H[Host,User-Agent]b <url>

You can get the request headers with --print=H and then prepend the scheme and host, like this:
$ http httpbin.org/get key1==value1 key2==value2 --print=H |
awk '{print "http://httpbin.org" $2; exit}'
http://httpbin.org/get?key1=value1&key2=value2

what are you mean by multiple header fields? is it both request and response header field?
if it is,

@john-bonachon you want to filter the headers to only print Host and User-Agent, correct?


Error message on launch

Hi,
When I try the sudo ./newrelic_passenger_agent command, I get this error:
/usr/bin/env: ruby: No such file or directory
config file:
newrelic:

Update with your New Relic account license key:

license_key: XXXXXXXXXXXXXX(replaced)

Set to '1' for verbose output, remove for normal output.
All output goes to stdout/stderr.

verbose: 1

Agent Configuration:

agents:
passenger:
# Adjust the path to your passenger commands as appropriate
passenger_status: '~/.rvm/gems/ruby-2.1.1/bin/passenger-status'
passenger_memory_stats: '~/.rvm/gems/ruby-2.1.1/bin/passenger-memory-stats'
passenger_version: 4 #May be 3 or 4

Your environment should provide a ruby in the /usr/bin/env path - rvm should normally take care of this. You can edit the newrelic_passenger_agent.rb file to use a different path (first line of file) if needed. But really this should be present :)


Log the username that gets loaded from shared token source credential

/cc: @catalinaperalta we should make sure to add this to the logging work you're driving so that it gets implemented in all languages.

This should be mostly addressed in the latest client when IsPiiLoggingEnabled is set to true.

@christothes, @schaabs  is this still valid? I see IsPiiLoggingEnabled already exposed in TokenCredentialOptions.

IsPiiLoggingEnabled is currently internal, but this can be closed when #37463 merges.


Remove python requirement

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Thx!


Simplify logic to find missing dependencies

This simplifies the construct introduced in e160e92d8e2bf0ac36730913527a1b4a6353a7c0: scalaz now no longer comes in transitively and perhaps this logic doesn't justify introducing it.
I noticed the semantics are slightly different, but have yet to validate whether they are different in a meaningful way.
Still have to run some tests to verify performance isn't drastically degraded for large dependency trees, though intuitively I think the bottleneck should be mostly I/O anyway.

After testing with monix it turned out this was a bit too simplistic: we can/should also skip the children of evicted dependencies as done in #6


NIX_DEBUG=1 causes libtool to fail to detect if -fPIC works

When setting the attribute NIX_DEBUG=1 of any derivation that uses libtool to build a shared library, the checks performed by libtool against the compiler report that fpic is not supported.
...
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... no    <--- see here
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... no
checking if gcc supports -c -o file.o... (cached) no
checking if we can lock with hard links... yes
...

This is caused because libtool relies on the output of the compiler to be the same when compiling a simple test with and without -fPIC. As the NIX_DEBUG=1 flag causes the compiler wrapper to print it's own arguments, the output changes and libtool interprets this change as an errror, as it could happened because the compiler emitted a warning of a not recognized flag (yes this is the actual test).
I reported the problem to libtool a few days ago, but it doesn't seem to be easy to come up with a proper solution, so in the meantime I think it should be nice if we find a workaround.
To further complicate things, most packages are compiled with the "pic" hardening options by default, so even if that libtool check fails, the compiler wrapper will inject -fPIC internally when calling the actual compiler, so magically most packages are compiled without any issue.
I encountered this problem when building some custom derivations which have all hardening flags disabled, but the same behavior can be reproduced if you disable the PIC hardening with hardeningDisable = [ "pic" ]; when building a library.
Here is a reproducer with xorg, which uses libtool and builds a shared library:
$ nix-build -E 'with import <nixpkgs> {}; xorg.xorgserver.overrideAttrs (old:{NIX_DEBUG=1; hardeningDisable=["pic"];})' -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/tags/21.11.tar.gz
...
/nix/store/js66s0xwjnzg0ggi2lq9bcvlk6x2za13-binutils-2.35.2/bin/ld: .libs/helper_exec.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/nix/store/js66s0xwjnzg0ggi2lq9bcvlk6x2za13-binutils-2.35.2/bin/ld: .libs/helper_mem.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/nix/store/js66s0xwjnzg0ggi2lq9bcvlk6x2za13-binutils-2.35.2/bin/ld: .libs/xf86int10.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/nix/store/js66s0xwjnzg0ggi2lq9bcvlk6x2za13-binutils-2.35.2/bin/ld: .libs/xf86x86emu.o: relocation R_X86_64_32S against hidden symbol `x_inb' can not be used when making a shared object
/nix/store/js66s0xwjnzg0ggi2lq9bcvlk6x2za13-binutils-2.35.2/bin/ld: .libs/generic.o: relocation R_X86_64_32S against hidden symbol `genericMem' can not be used when making a shared object
/nix/store/js66s0xwjnzg0ggi2lq9bcvlk6x2za13-binutils-2.35.2/bin/ld: .libs/x86emu.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/nix/store/js66s0xwjnzg0ggi2lq9bcvlk6x2za13-binutils-2.35.2/bin/ld: .libs/xf86x86emu.o: warning: relocation against `Int10Current' in read-only section `.text'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:697: libint10.la] Error 1
make[4]: Leaving directory '/build/xorg-server-1.20.13/hw/xfree86/int10'
make[3]: *** [Makefile:870: all-recursive] Error 1
make[3]: Leaving directory '/build/xorg-server-1.20.13/hw/xfree86'
make[2]: *** [Makefile:679: all] Error 2
make[2]: Leaving directory '/build/xorg-server-1.20.13/hw/xfree86'
make[1]: *** [Makefile:616: all-recursive] Error 1
make[1]: Leaving directory '/build/xorg-server-1.20.13/hw'
make: *** [Makefile:819: all-recursive] Error 1
builder for '/nix/store/1bwgh7qdn82d8avgsn3n8icd7lxwr7sk-xorg-server-1.20.13.drv' failed with exit code 2
error: build of '/nix/store/1bwgh7qdn82d8avgsn3n8icd7lxwr7sk-xorg-server-1.20.13.drv' failed

I'm not sure what is the best way to fix this problem. Maybe we can prefix the output of NIX_DEBUG with a token which is ignored by libtool. Another option may be to tell libtool that fpic is supported by setting some variable so the test is skipped. Or patch the config.lt file in postConfigure.
Here is the offending test in libtool:
https://github.com/autotools-mirror/libtool/blob/f51eddf0dbd1a3dd3119eb215d8a0b5ca451def5/m4/libtool.m4#L4883
Notify maintainers
Not sure who maintains the stdenv builder. Ping @Ericson2314 @edolstra @alyssais
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result. (I added the -I flag, otherwise it fails as I dont set it by default).
$ nix-shell -p nix-info --run "nix-info -m" -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/tags/21.11.tar.gz
 - system: `0`
 - host os: `Linux 4.4.49-92.14-default, SLES, 12-SP2`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.10`
 - channels(root): `""`
 - channels(ram): `""`
 - nixpkgs: `0`

bug replicated, this has not been fixed.


The id is missing on the the visibile input, unfortunately by default

I just found out that flatpickr doesn't copy the id on the visibile input, as described in this issue: https://github.com/flatpickr/flatpickr/issues/1414.
This is really bad for accessibility and labels as you can imagine.
What do you think about adding an id prop on <FlatPickr> to handle this?

@jacobmischka can you please do this?

id (and all other props) should be passed through to the underlying element already:

The types should support this already as well.
I don't quite understand the issue, sorry.

Sorry and thank you.
I should have specified right away that I'm using this code: https://svelte.dev/repl/8a4850fd71154b6594e1ce8d756d80f4?version=3.59.1.

I have the same issue.... I need an ID on the second field for accessibility issues, but it only generates an ID for the hidden field.

I have the same issue too. In my case, if I set altInput property as true, it causes generating a clone input and original input element is being hidden. Clone input is taking original inputs classes but does not take id or name attributes. Because of this problem I could not use jquery validations classic validation methods then I used class based rules etc.

Sorry for being absent for a while. This is an upstream issue unfortunately: https://github.com/flatpickr/flatpickr/issues/579 https://github.com/flatpickr/flatpickr/issues/1630

Sorry for being absent for a while. This is an upstream issue unfortunately: flatpickr/flatpickr#579 flatpickr/flatpickr#1630

Maybe if you write something to them thay can create a PR for that.
Or you know how to write a PR already?

There are upstream issues already and I unfortunately don't have the time to look into a PR in the upstream library, sorry. I think you'll have to not use altInput and intead manage the inputs yourselves in svelte as a workaround in the meantime.

My workaround is to add a new ID (prefixed with an underscore) to the altInput DOM element and then update the corresponding label:
flatpickr('#date', {
    allowInput: true,
    altInput: true,
    altFormat: 'd/m/Y',
    dateFormat: 'Y-m-d',
    onReady(){
        if (this.altInput) {
            this.altInput.id = '_' + this.input.id;
            document.querySelector('label[for="' + this.input.id + '"]').htmlFor = '_' + this.input.id;
        }
    }
});


Intellisense - duplicates

After a while, I am getting the same suggestions multiple times in the list. For instance, I am adding an action to a new page and in the beginning I am seeing a list like this (correct):
*AccessByPermissions
*ApplicationArea
*CaptionML
*Description
Now, I can't yet find a pattern, but after a while, I am seeing (in the same area - and after making several changes):
*AccessByPermissions
*AccessByPermissions
*AccessByPermissions
*AccessByPermissions
*ApplicationArea
*ApplicationArea
*ApplicationArea
*ApplicationArea
*CaptionML
*CaptionML
*CaptionML
*CaptionML
*Description
*Description
*Description
*Description
So, basically, everything is shown 4 times. When I restart VSCode, it's fine again. This is happening with CodeLens = true. I am trying now to turn it off and monitor, if this has anything to do with it.

Without codelens it just started happening as well. But now, I also got the following errors in the output window together with the message "The AL server crashed 5 times in the last 3 minutes...".
Process is terminated due to StackOverflowException.
[Info  - 4:32:55 PM] Connection to server got closed. Server will restart.
Process is terminated due to StackOverflowException.
[Info  - 4:33:05 PM] Connection to server got closed. Server will restart.
Process is terminated due to StackOverflowException.
[Info  - 4:33:14 PM] Connection to server got closed. Server will restart.
Process is terminated due to StackOverflowException.
[Info  - 4:33:26 PM] Connection to server got closed. Server will restart.
Process is terminated due to StackOverflowException.
[Error - 4:33:38 PM] Connection to server got closed. Server will not be restarted.
When I restart VSCode again, it works somewhat, but now the rest is going haywire - probably due to the AL Server not running anymore (trying to restart it now). Getting things like this:
severity: 'Error'
message: 'The name 'ddrraazziiWWeetteellppmmooCC' does not exist in the current context'
at: '58,28'
source: 'AL'

or
severity: 'Error'
message: 'The name 'ddrraazziiWWeetteellppmmooCC' does not exist in the current context'
at: '58,28'
source: 'AL'

and I don't think this is just some foreign language.
But one other thing I was noticing: When restarting VSCode, it all worked fine (Intellisense) until I created a new action manually (not using taction). As soon as the first warning showed up (I am using CodeAnalysis), I started getting duplicated suggestions.

The same issue in https://github.com/Microsoft/AL/issues/540
I found this in wizard pages. Also after adding action or group.

Could it be that you have duplicate extensions installed? This usually happens to me when I mess something up and have 2 versions installed

No, I only have 1 version of an extension installed. However, I haven't seen this anymore for the past week or so, after I upgraded to the CTP14 version of AL. I am going to keep monitoring, if this still happens. What does still happen is that it gets a little confused in Wizard or other pages with a lot of groups and then it slows down and takes a while to figure out what actual errors are or not (so error highlighting doesn't catch up).

I can confirm that this "The AL server crashed 5 times in the last 3 minutes..." happens with Wizard pages and the October build.

same experience here as well. - Might this be related to the al.enablecodeanalysis = true ?


We should apply the validations specified in params.json to taxsaveinputs fields

Per https://github.com/OpenSourcePolicyCenter/Tax-Calculator/issues/331
We'd like to do this both for form POST (server-side) and via javascript (client-side).

@talumbau, @zrisher, I'm not getting the server-side validation on https://ospc-taxes5.herokuapp.com/taxbrain/. Could you check?

Apologies. The test site was not updated for webapp-public master. It is
now. The internet where I am is abysmal. Will try to stay in touch. Please
update on whether the issue is now resolved.
On Mon, Oct 5, 2015 at 7:08 PM, Matt Jensen<EMAIL_ADDRESS>wrote:

@talumbau https://github.com/talumbau, @zrisher
https://github.com/zrisher, I'm not getting the server-side validation
on https://ospc-taxes5.herokuapp.com/taxbrain/. Could you check?
—
Reply to this email directly or view it on GitHub
https://github.com/OpenSourcePolicyCenter/webapp-public/issues/52#issuecomment-145618421
.

@MattHJensen I just did the Django migrations on ospc-taxes5. I ran a policy to the output page, then edited it with the Edit Parameters button, then changed the values to something not allowed, saw the error message, then changed the values to all allowed values and ran to the output page. Let me know if this works for you. thanks!

Looks great.

This is resolved with #55. Closing.


Embed Youtube Videos in GitPages

<figure class="video_container">
  <iframe src="https://www.youtube.com/embed/W07E3NOc7pQ" frameborder="0" allowfullscreen="true"> </iframe>
</figure>

^^ I got the embed link by clicking "share" under the youtube video and clicking "embed," **You only have to copy the embed link from "src" to "true" (I think!)

@am0eba-byte I'm going to be adding a video to my repository soon. Do you know if there's a way for me to embed the video file directly, or is it only through Youtube?

@arrowarchive I've never done it with videos before, but it should probably work just like any other image, i think? make sure you put the video file inside of your docs folder which holds your github website, and then when you create the link when writing the code in your HTML document just make sure that you link to the correct file name and relative file location. if it doesn't work, then i'm not sure and you might have to look it up


services.xserver naming is confusing

From the man page:

The X Window System (X11) provides the basis of NixOS’ graphical user interface. It can be enabled as follows:
services.xserver.enable = true;

From the default generated configuration.nix:
# Enable the X11 windowing system.
services.xserver.enable = true;

The file is also located in nixos/modules/services/x11/xserver.nix
BUT
I need to set services.xserver.enable = true, even though I use Gnome on Wayland without any X11 running. The name xserver and its relation to the X11 configuration is really misleading
Additional context
I was wondering why my GUI wasn't showing up until I found out that I must set services.xserver.enable = true;.
Notify maintainers
Didn't find any.
Metadata

system: "x86_64-linux"
host os: Linux 5.4.54, NixOS, 20.03.2685.977000f149b (Markhor)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3.6
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module: `services.xserver`

I'm not really sure if there's a suggestion to a solution here? services.xserver.enable is a perfectly correct naming for enabling xserver, and 99% of the desktop-managers still need xserver, excluding gnome which has a wayland and a xorg session.
Is it that you believed gnome to be a wayland only environment, and were confused that you had to enable xserver?
I can understand that assumption even if it didn't turn out to be true.
So I don't think we can do away with services.xserver.*,  but I think there should be another namespace to cater to wayland only environments.

I'm not really sure if there's a suggestion to a solution here?

I'm not suggesting a solution, because I don't think I know enough about the whole situation. One possibility would be to move desktopManager and displayManager out of xserver, maybe into a new attribute (graphical? desktop?).
While 99% of the desktop and window managers still need X, this will obviously shift in the future. I expect existing environments to slowly transition to Wayland and new ones to be built exclusively for Wayland. Thus, collecting them under the xserver attribute (or any single protocol-specific name) will sooner or later lead to confusion.

Is it that you believed gnome to be a wayland only environment, and were confused that you had to enable xserver?

Yes, exactly. I know GDM still uses X but it feels weird nevertheless. And the current documentation about this attribute re-enforces this.
I've now enabled xserver so I'd expect to be able to use all of the other xserver.* options, but most of them should have no effect on a Wayland session.
Another confusion point is that enabling xserver is required for any of the desktop environments to work. From a Nix/module perspective, this is fine and makes perfectly sense. But from an intuition stand point, I'd think enabling Gnome should enable all used components.

Another confusion point is that enabling xserver is required for any of the desktop environments to work. From a Nix/module perspective, this is fine and makes perfectly sense. But from an intuition stand point, I'd think enabling Gnome should enable all used components.

I agree with this as well. It's actually pretty easy to forget to enable xserver when you'd think that would be enabled implicitly.

If you want to use GDM Wayland, you have to enable this option, which also installs programs like xterm. I just ran across this when trying to remove xterm from my GNOME Wayland machines. It definitely seems like there's some room for improvement in what's installed for a pure Wayland machine.
Is xterm even a requirement on X11, for that matter? https://github.com/NixOS/nixpkgs/commit/b7b1f5d1ccdda107a4502c9b9453aee95e36b755

Duplicate of https://github.com/NixOS/nixpkgs/issues/102542

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/enabling-x11-still-results-in-wayland/25362/2

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/chroot-23-11-within-22-11-bare-metal-because-nvidia/37283/35

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/nixos-config-shows-x11-but-i-am-running-wayland-what-is-going-on/42090/2

In the last stable release cycle the plasma 6 people including me put a lot of effort into making plasma 6 as xserver options free as possible. There are a few small leftovers but I think this issue is mostly solved.
If no one disagrees I think we can close this issue.

plasma 6

Yes, but what about GNOME, which I know is also a wayland DE by default? It's still in services.xserver.desktopManager. I mean, it seems like this is a broader issue
p.s. Thank a lot for your work on KDE


How to export text with superscript and subscript characters

How can I export the text with superscript and subscript?

You can find it in typeTool data. It is called FontBaseline
you need to interpret the values as bellow
0 - normal
1 - superScript
2 - subScript


How do I handle different configurations with find_library?

https://github.com/microsoft/vcpkg/blob/030cfaa24de9ea1bbf0a4d9c615ce7312ba77af1/docs/examples/installing-and-using-packages.md#handling-libraries-without-native-cmake-support
find_library always finds debug version of the library at least on Windows. For now, I just replace /debug/lib/ with /lib/ in paths and use generator expressions to link libraries depending on config:
find_path(ChakraCore_INCLUDE_DIR NAMES ChakraCore.h)
find_library(ChakraCore_LIBRARY_Debug NAMES ChakraCore)
string(REPLACE "/debug/lib/" "/lib/" ChakraCore_LIBRARY_Release "${ChakraCore_LIBRARY_Debug}")
target_link_libraries(${target} PUBLIC "$<IF:$<CONFIG:Debug>,${ChakraCore_LIBRARY_Debug},${ChakraCore_LIBRARY_Release}>")
target_include_directories(${target} PUBLIC ${ChakraCore_INCLUDE_DIR})

But it doesn't seem very portable. Is there a best practice on it? Can it be handled better?

Multi-config generates are not correctly supported by vcpkg.  If you consume a library via find_library - which is hopefully wrapped within a Find<Module>.cmake - there is no way to differentiate the configuration if upstream does not provide a suffix. This is pure CMake limitation.
You can however do what most vcpkg-cmake-wrappers.cmake do and add something like to your module:
    find_library(CHARSET_LIBRARY_DEBUG NAMES charsetd libcharsetd charset libcharset NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH)
    find_library(CHARSET_LIBRARY_RELEASE NAMES charset libcharset NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH)
    find_library(CHARSET_LIBRARY_RELEASE NAMES charset libcharset NAMES_PER_DIR PATH_SUFFIXES lib) # this ensures that without vcpkg something is still found

& a call to select_library_configurations.
Also define imported targets and set the IMPORTED_LOCATION_<CONFIG> property to the found library instead of having a target_link_libraries call with generator expressions;


Synchronize version number with React?

It's easier to remember just the React version instead of two unrelated versions (e.g. 0.13.1 for React and 0.5.3 for jsx-requirejs-plugin) when maintaining bower.json.

It's easier to remember just the React version instead of two unrelated
versions (e.g. 0.13.1 for React and 0.5.3 for jsx-requirejs-plugin) when
maintaining bower.json.

I thought about syncing the two version numbers, but it's problematic
because I may add breaking changes to the plugin itself and we should be
able to version that.
To simplify things, I'm updating the minor version number instead of the
patch number when upgrading React (e.g. 0.5.2 -> 0.6.0 in the last upgrade
to React 0.13.1).
On Mon, Mar 23, 2015 at 1:50 PM, Victor Homyakov<EMAIL_ADDRESS>wrote:

It's easier to remember just the React version instead of two unrelated
versions (e.g. 0.13.1 for React and 0.5.3 for jsx-requirejs-plugin) when
maintaining bower.json.
—
Reply to this email directly or view it on GitHub
https://github.com/philix/jsx-requirejs-plugin/issues/42.

@philix So just to clarify, now that React 0.13.2 is out would the plugin update to 0.7.0 ?

Let's go to 0.6.1 and reserve 0.7.0 to when React goes to 0.14.
Last update was from 0.12.2 to 0.13.1.
__
Felipe O. Carvalho
http://felipe.rs
On Apr 24, 2015 3:01 PM, "tsjoberg"<EMAIL_ADDRESS>wrote:

@philix https://github.com/philix So just to clarify, now that React
0.13.2 is out would the plugin update to 0.7.0 ?
—
Reply to this email directly or view it on GitHub
https://github.com/philix/jsx-requirejs-plugin/issues/42#issuecomment-96014363
.

ah makes sense, hope to get PR done for new version this weekend if you or someone else doesn't beat me to it!

Feel free to do it. :)
On Apr 24, 2015 3:06 PM, "tsjoberg"<EMAIL_ADDRESS>wrote:

ah makes sense, hope to get PR done for new version this weekend if you or
someone else doesn't beat me to it!
—
Reply to this email directly or view it on GitHub
https://github.com/philix/jsx-requirejs-plugin/issues/42#issuecomment-96016824
.


nothing happening

stays like this and doesnt inject into the game, followed the steps and this shows. any solutions?
thank you

where can i find the renzskin.7z file. i download the source code zip and follow the instructions as written but cant seem to make it work.


[Feature] Support for Custom Pool Selection in dbt-Cosmos for Airflow

Description
Title: Support for Custom Pool Selection in dbt-Cosmos for Airflow
Description:
Currently, when using dbt-Cosmos, we are limited to a specific pool in Airflow. However, we would like to schedule models based on their characteristics, as follows:
Pool Size 1: For heavy tasks to be processed one at a time, dedicating DW resources exclusively to a single task.
Pool Size 10: For lightweight tasks, allowing multiple queries to be executed concurrently.
If a model does not specify a pool, it should use the default pool. However, if a pool is defined in the model’s configuration, that pool should be applied to the task.
  - name: model_name
    description: description
    meta:
      owner: "owner"
      cosmos:
         pool: custom_pool

This feature would allow for better resource management and parallelization based on the workload requirements of each model.
Additionally, it would be useful to allow more flexible configurations under meta.cosmos, such as specifying multiple values for dbt-Cosmos use. For example, setting a custom warehouse in Snowflake.
Use case/motivation
No response
Related issues
No response
Are you willing to submit a PR?

[x] Yes, I am willing to submit a PR!

This looks cool! Please let me know when you have something ready; I would love to review and test it.

Hey @wornjs, would you like to draft a PR for this? I'm happy to test and merge it.

@pankajastro
Sorry for the delay. Could you take a look at this PR
https://github.com/astronomer/astronomer-cosmos/pull/1339

@pankajastro Sorry for the delay. Could you take a look at this PR #1339

Hey, @wornjs, Thank you for the PR, I'll review it soon.

It seems the discussion migrated to the PR instead of sticking in the issue; I have some added discussion here. https://github.com/astronomer/astronomer-cosmos/pull/1339#issuecomment-2536348630


Problem in the Code

[Whats up i tried making the code work in my pc and the file path when i run this line
dynamic rFile = new ReadOnlyFile(@"....\TextFile1.txt");
from the example make a problem when i go over the walkthrough
but when i changed it to have one more "..\ " it worked fine
dynamic rFile = new ReadOnlyFile(@"..\..\..\TextFile1.txt");

]

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

ID: f63fb701-91e9-5723-add6-33d2288431a3
Version Independent ID: e9d33444-b5f7-96d4-9c33-dd29913349d5
Content: Walkthrough: Creating and Using Dynamic Objects (C# and Visual Basic)
Content Source: docs/csharp/programming-guide/types/walkthrough-creating-and-using-dynamic-objects.md
Product: dotnet-csharp
Technology: csharp-fundamentals
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks for noting this @dolev146
This needs to be updated to match where build outputs are written using the latest .NET SDK.


Introduce yourself by commenting on this issue.

Comment below to say hello to other contributors and find partners for your work.
Use this template and example to help write your own introduction:

Your Name: Jason Heppler
Your GitHub handle: hepplerj
What brings you to this project: I am an advocate for publicly available data.
What you would like to work on for this project: I want to connect people who work with publicly available data so they can work together on creating new events, curricula, awareness, and advocacy.

Your Name: David Bleckley
Your GitHub handle: bleckley
What brings you to this project: I am the Project Manager for DataLumos, a crowd-sourced archive for government data.
What you would like to work on for this project: I would like to help out wherever needed (I'll be in East Lansing on Friday). I am interested in identifying areas of need (related to endangered data) and collaborating to find solutions--especially ways our work can complement/supplement each other.

Your Name: Daniel Mietchen
Your GitHub handle: Daniel-Mietchen
What brings you to this project: I am helping with a Mozsprint project (Joint Roadmap for Open Science Tools) to map out the landscape of open science tools and infrastructure, with the aim of facilitating collaboration, coordination and other forms of interaction across projects. Our ticket number 1 is about reviewing other Mozsprint projects for potential synergies, both during the sprint but especially in the long run.
What you would like to work on for this project: Not sure. But I have been following Endangered Data Week last year and gave a talk this year and plan to engage in the future as well.

Welcome, David! I'm eager to find ways we can collaborate with you and DataLumos.

Hi @Daniel-Mietchen! I'll pop over and introduce myself as well. Your talk looks fantastic -- maybe we can find a way to include that within the EDW resources for others to reuse/remix?

Absolutely, @hepplerj! I hope to talk a lot with @brandontlocke tomorrow. Looking forward to working together in any way we can.

Maybe tomorrow @bleckley and I can do a conference call with whoever's interested?

@brandontlocke I'd be interested!

Your Name: Brandon Locke
Your GitHub handle: brandontlocke
What brings you to this project: I think a lot about the ways that technical skills and digital literacies intersect with citizenship. I also value open scholarship/data/software and gov't transparency, so enduring access to these materials is very important to me.
What you would like to work on for this project: Mostly curricula. Perhaps some advocacy materials.

Your Name: Sarah Melton

Your GitHub handle: svmelton

What brings you to this project: I am interested in how we can both advocate for government transparency through open data and critique data as a self-evident category.

What you would like to work on for this project: Educational resources about endangered data. Advocacy materials.

@hepplerj I'm sure happy with people reusing my talk - it is CC0 for precisely this reason. Some of the images have different licenses though, as indicated next to them.

Manasvi Lalwani:
manasvil:
Part of Mozilla's open leadership training, I am also working on a curriculum and so I wanted to see how you were developing yours. Here is a link to my repo: https://github.com/manasvil/RapidPrototyping-Curriculum:
I can help with research and design work:

Your Name: Madison Sullivan
Your GitHub handle: beastlibrarian
What brings you to this project: I'm a librarian and advocate for open data.
What you would like to work on for this project: I'm not sure, but I'm interested in how libraries and librarians can advocate and contribute to raising awareness about why endangered data is important.

Your Name: Rachel Mattson
Your GitHub handle: rachmattson
What brings you to this project: I'm an archivist + historian with an interest in government records and data transparency, part of the EDW team and an organizer of the Digital Library Federation's interest group on gov't records transparency.
What you would like to work on for this project: I'm interested in expanding out the available resources to include materials that can help folks think about the complicated meanings of "endangerment" and "data" - I'll probably use my Mozilla Sprint time to add to the bibliography and upload some already-created materials.

Your Name: Joseph Koivisto
Your GitHub handle: 23koivisto
What brings you to this project: I have been one of the University of Maryland EDW liaisons and coordinators for the past two years. I have actively contributed to data rescue events held in the DC area and have been actively engaged in conversations around government records and data accessibility and transparency on our campus.
What you would like to work on for this project: Interested in raising up the notion of digital infrastructure (as systems, as policies, as networks of accountability) as a vital and sometimes invisible element of data sustainability and accessibility. Would like to create a disciplinary interzone for library and info science, social scientists, policy experts, advocates, and everyday people in which to discuss the national/global implications of these infrastructures and the literacies necessary to tackle these complex issues. Perhaps this is community building, perhaps this is curricula design, perhaps this is skills tutorials and other forms of training. (Sorry if this is response is a little squishy and protean).
Sorry I came to the party late!

Your Name: B. Shine Cho
Your GitHub handle: shinecho724
What brings you to this project: I'm a doctoral student in public administration and my specialty is in local government budgeting and citizen participation. I have studied open data movement at the local level focusing on budgeting and accounting data. I heard about this project from @hepplerj, and it sounded like a great chance for me to look for a collaboration opportunity related to the project in my mind in regard the transparency and visualization of the local government budgeting and accounting data.
What you would like to work on for this project: I would like to share my idea about budgeting and accounting data. In addition, I would like to contribute anything possible for a person with limited experience in coding and programing. I have handled many statistical data for my quantitative studies, and hope that it would be helpful for this project, too.

Your Name: Mary Grueser
Your GitHub handle: EducationalVideoCenter
What brings you to this project: I am part of the Open Leadership program and have been interested in checking our your project.  We are in the same cohort!
What you would like to work on for this project: Not sure.  Much of your curriculum is new for me but I am interested in thinking about how to modify this curriculum to get high school age youth involved with these issues.

We work with youth making social justice oriented documentary films.  Here is our repo on our Urban-Rural Curriculum:  https://github.com/EducationalVideoCenter/WAC
It would be great to get your comments on on our t-chart:  https://docs.google.com/document/d/1MAswOOi1dCkss9z91yVW3Ie8K4TyYpJ6XqAW_AlGVxY/edit


Custom partitioning and raid

There's an existing document at
https://support.packet.com/kb/articles/custom-partitioning-raid
which talks about how to do custom drive partitioning. I'd like to see it expanded out a little bit, with examples targeted at the c2.large.arm (which is the system we are running into needs to get a custom file system on) and examples that include file systems other than ext4 (namely XFS).

this has been updated/merged etc. feel free to submit any additional PRs that you find need updated.


[android] Can't call connect on an already connected device

This line fails with "No bluetooth device found with given prefix":
https://github.com/orbital-systems/react-native-esp-idf-provisioning/blob/master/android/src/main/java/com/espidfprovisioning/EspIdfProvisioningModule.kt#L339

createESPDevice had an incorrect if-block which resulted in a new (incorrect) scan returning no results even though the device existed in the espDevices[] list...


DoctrineDataSource: Added data loaded callback

We should talk about the name of the method/property for this callback as I am not satisfied with this name.
I've tested this on one of my projects and it already cut 14 queries to just 4 thanks to the post fetching the entities for associations in separate query.
This is how I've used it:
$grid->getDataSource()->setLoadedCallback(function ($orders) {
	$this->orderRepository->createQueryBuilder('o', 'o.id')
		->select('partial o.{id}, v, c')
		->leftJoin('o.vehicles', 'v')
		->leftJoin('o.comments', 'c')
		->where('o IN (:orders)')
		->getQuery()
		->setParameter('orders', $orders)
		->getResult();
});

//cc @JakubKontra

You can use native nette events instead of these hardcoded callbacks.

@paveljanda I'd have to use Nette\Object or that new trait which is little overkill for simple data source. You don't need multiple callbacks, you need just one, to execute query after data are loaded to post fetch few more data.

Besides, this has type hinting, is more compatible with IDEs and such :)

I've renamed it to setPostFetchCallback.

@paveljanda I've done few more code touches, maybe check them out if there is something you don't like.

If you have entity with *toMany associations and you need them loaded, it is much better to initialize those associations after the parent entities are loaded.
To do this simple, use onDataLoaded event of the Doctrine data source to post fetch those associated entities.
use Ublaboo\DataGrid\DataGrid;

class SimplePresenter extends BasePresenter
{
	/** @var Doctrine\ORM\EntityRepository */
	private $orderRepository;

	public function createComponentSimpleGrid(string $name)
	{
		$grid = new DataGrid($this, $name);
		$grid->setDataSource($this->orderRepository->createQueryBuilder('o', 'o.id'));
		$grid->getDataSource()->onDataLoaded[] = function (array $orders) {
			$this->orderRepository->createQueryBuilder('o', 'o.id')
				->select('partial o.{id}, i')
				->leftJoin('o.items', 'i')
				->where('o IN (:orders)')
				->setParameter('orders', $orders)
				->getQuery()->getResult();
		};

		$grid->addColumnText('name', 'Name');
	}
}

For more information check Optimizing QueryObjects in Kdyby/Doctrine.

Thanks!


[EASI-4282] System intake form refactor

EASI-4282

Changes and Description

Refactored System Intake form Request Details and Contract Details sections to use React Hook Forms

Contact Details refactor was completed in previous PR

Fixed issue with auto save in Contact Details section of form
Refactored Funding Sources component with RHF

Created new component (/components/FundingSources) for system intake form
Moved old FundingSources component to TRB folder

How to test this change

Test system intake form
Make sure form auto saves changes
"Back" and "save and exit" buttons should save data but not validate fields

PR Author Review Checklist

[ ] Met the ticket's acceptance criteria, or will meet them in a subsequent PR.
[ ] Added or updated tests for backend resolvers or other functions as needed.
[ ] Added or updated client tests for new components, parent components, functions, or e2e tests as necessary.
[ ] Tested user-facing changes with voice-over and the rotor menu

PR Reviewer Guidelines

It's best to pull the branch locally and test it, rather than just looking at the code online!
Check that all code is adequately covered by tests - if it isn't feel free to suggest the addition of tests.
Always make comments, even if it's minor, or if you don't understand why something was done.

There's also some validation getting skipped on the Funding sources.
To reproduce, partially fill out both form sections and see that Next/Back will does not associate with Funding sources fields. From a UI/UX pov, maybe a possible fix is disabling the main form, when Funding source is active?

@adamodd changes are done!
For the collaborator fields validation, I ended up having to refactor the fields from an array field type to a nested object. There was some weirdness with the array type field names that was causing the validation issues.
I also fixed the missing error messages in the ErrorAlert component (see your second screenshot where there are no messages under "please check and fix the following").


Find All Triplets with Zero Sum - POTD - 4-Nov-2024

Find All Triplets with Zero Sum
Link
Difficulty: Easy
Given an array arr[], find all possible indices [i, j, k] of triplets [arr[i], arr[j], arr[k]] in the array whose sum is equal to zero. Return indices of triplets in any order and all the returned triplets indices should also be internally sorted, i.e., for any triplet indices [i, j, k], the condition i < j < k should hold.
Note: Try to solve this using the O(n2) approach.
Examples:
Input: arr[] = [0, -1, 2, -3, 1]
Output: [[0, 1, 4], [2, 3, 4]]
Explanation: Triplets with sum 0 are:
arr[0] + arr[1] + arr[4] = 0 + (-1) + 1 = 0
arr[2] + arr[3] + arr[4] = 2 + (-3) + 1 = 0
Input: arr[] = [1, -2, 1, 0, 5]
Output: [[0, 1, 2]]
Explanation: Only triplet which satisfies the condition is arr[0] + arr[1] + arr[2] = 1 + (-2) + 1 = 0
Input: arr[] = [2, 3, 1, 0, 5]
Output: [[]]
Explanation: There is no triplet with sum 0.

Constraints:

3 <= arr.size() <= 103
-104 <= arr[i] <= 104

Solved
#User function Template for python3
class Solution:
    def findTriplets(self, arr):
        ans=[]
        for i in range(0,len(arr)):
            d={}
            for j in range(i+1,len(arr)):
                if -(arr[i]+arr[j]) in d:
                    for num in d[-(arr[i]+arr[j])]:
                        ans.append([i,num,j])
                if arr[j] in d:
                    d[arr[j]].append(j)
                else:
                    d[arr[j]]=[j]
        return ans
        # Your code here