Canvas transform precision loss

Steps to reproduce

Apply a canvas transform at a higher zoom level (2 ^ 19).
Draw a path
Translate canvas transform minimally

cc @dnfield - this is the reproducible I mentioned in: 121299
Expected results
Canvas transform keeps precision and matches result of applying matrix directly to path points.
Actual results
Canvas transform loses precision and path appears to stair-step.
Code sample
Code sample
DartPad
Difference can be seen by flipping the preTranslate bool at the top.

Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 3.4.0-40.0.pre.7, on Microsoft Windows [Version 10.0.19045.2846], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.2.3)
[√] Android Studio (version 2021.3)
[√] VS Code, 64-bit edition (version 1.71.2)
[√] Connected device (3 available)
[√] HTTP Host Availability

• No issues found!

Thanks for the report @cmkweber
Upon running the code sample using latest master ( 3.11.0-1.0.pre.4), I see below:
https://user-images.githubusercontent.com/67046386/236137841-8475dc28-7de0-415a-afd7-23be64211ffb.mov
Building with Flutter multidex support enabled.
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app-debug.apk...
Debug service listening on ws://<IP_ADDRESS>:59502/bOv7NHcbSMw=/ws
Syncing files to device Android SDK built for x86...
I/ode.flutter_ap(28839): Waiting for a blocking GC ProfileSaver

Is the issue here, that the canvas is a bit shaky leading to precision loss ?

Yes, the canvas transform is shaky, but if that same transform is applied directly to the points of the triangle and then drawn without the canvas transform, it is smooth, which can be seen by setting preTranslate to true.

Thanks for the update and feedback.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.7.12, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.7.12 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (3 days ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.11.0-1.0.pre.63, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.11.0-1.0.pre.63 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 04e284a49d (27 minutes ago), 2023-05-05 00:31:05 -0400
    • Engine revision c97a0deccb
    • Dart version 3.1.0 (build 3.1.0-77.0.dev)
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

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

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

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

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

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

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Also tested using Path.transform but that delegates to engine Path::transform which uses SkMatrix (SkScalar - float).

I'm encoutering the same problem. I try to plot a time-plot (in seconds from 1970), the curve would be messed up if no pre-translation applied before transform.  Obviously, there is precision loss.  So I'm wondering the storage of matrix4 is 64bit float?

Yes, in other areas of the api where a matrix is specified raw it’s usually a Float64List unfortunately.

I want to amend what I last said, on the dart side the precision is correct with Float64 (double), but on the engine side it narrows it here. This is likely because Skia's SkM44 is float, I'd imagine this can't be resolved until Skia is fully removed for Impeller, although it looks like the display list is using float as well - cc @flar.


Devise db authenticatable

CHANGES:
Add ability to login using email/password
trello
Description

Checklist:

[ ] Automated checks are passing locally.
[ ] CHANGELOG updated if change is worth telling users about.

General testing

[ ] Test without javascript
[ ] Test on small screen

Accessibility testing

[ ] Works keyboard only
[ ] Tested with one screen reader
[ ] Zoom page to 400% - content still visible
[ ] Disable css - does content make sense and appear in a logical order?
[ ] Passes automated checker (automated in build or manual)

@StupidCodeFactory PS there's a new govukErrorSummary helper method available for generating the error summary, see https://github.com/UKGovernmentBEIS/beis-opss-psd/pull/236/files#diff-89452878c448a286c960a46effe8de08


How to find the latest release of library?

I am using this library in my project. How can i find the latest release version of the library.
"Add the following gradle dependency exchanging x.x.x for the latest release."
What should i put at x.x.x in the compile statement?

Sorry i have found the solution from the below issue.
https://github.com/emilsjolander/StickyListHeaders/issues/422


Timed out waiting for result error

What am I doing wrong?  I have ExpressVPN installed and open.  Same issue with previous release.
./expresso -v locations
expresso v1.1.0
Log level set to Information
Manifest loaded for com.expressvpn.helper with helper at: /Applications/ExpressVPN.app/Contents/MacOS/expressvpn-browser-helper
Timed out waiting for the result.
at sttz.expresso.ExpressVPNClient.d__67.MoveNext() + 0x11c
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x1c
at expresso!+0x655df5
at expresso!+0x655d26
at sttz.expresso.ExpressVPNClient.d__58.MoveNext() + 0x183
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x1c
at expresso!+0x655df5
at expresso!+0x655d26
at sttz.expresso.ExpressoCLI.d__29.MoveNext() + 0x2cf
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x1c
at expresso!+0x655df5
at expresso!+0x655d26
at sttz.expresso.ExpressoCLI.d__20.MoveNext() + 0x1bb
Unhandled Exception: System.IO.EndOfStreamException: Reached end of stream but expected 4 more bytes.
at sttz.expresso.NativeMessagingClient.d__11.MoveNext() + 0x170
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x1c
at expresso!+0x655df5
at sttz.expresso.NativeMessagingClient.d__12.MoveNext() + 0x265
zsh: abort      ./expresso -v locations

Looks like the ExpressVPN browser helper exits immediately.
Is this the first time you've installed expresso or did you upgrade from an previous version?
What version of the ExpressVPN app are you using?
Do you have an ExpressVPN browser extension installed and is that working properly?

Ah, I was able to fix it by reinstalling the macOS ExpressVPN app.  It all works great now.  Thanks for sharing this!


Cascade Upsert

I've mentioned this before but I would like to upsert an entity and then upsert any entities contained within a relationship. Currently I get the following:

Caused by: io.requery.sql.RowCountException: Expected 1 row affected actual 0
at io.requery.sql.EntityWriter.checkRowsAffected(EntityWriter.java:163)
at io.requery.sql.EntityWriter.update(EntityWriter.java:588)
at io.requery.sql.EntityWriter.cascadeSave(EntityWriter.java:899)
at io.requery.sql.EntityWriter.updateAssociations(EntityWriter.java:697)
at io.requery.sql.EntityWriter.insert(EntityWriter.java:449)
at io.requery.sql.EntityWriter.upsert(EntityWriter.java:490)
at io.requery.sql.EntityDataStore.upsert(EntityDataStore.java:263)
at io.requery.rx.SingleEntityStoreFromBlocking$7.get(SingleEntityStoreFromBlocking.java:148)
at io.requery.rx.SingleOnSubscribeFromSupplier.call(SingleOnSubscribeFromSupplier.java:34)

The beta18 version contains this fix

How can we get CascadeMode to be UPSERT in cascadeWrite? At the moment it's AUTO which then becomes UPDATE because hasKey(proxy) is true.

Oh sorry looks like this is currently not working for SQLite or anything that doesn't upserting via a single statement. Will reopen since there are some more changes required there for those platforms.


Current value not shown if resolve-on-load="false" and options="async ..."

Version

Vue version: 3

Description
Using the code from the documentation (https://github.com/vueform/multiselect#autocomplete-with-async-options):
  v-model="value"
  :searchable="true"
  :resolve-on-load="false"
  :options="async function(query) {
    return await fetchLanguages(query)
  }"

If the value property already has a value, it's not shown in the input field.
Demo
https://jsfiddle.net/u389rv01/

I confirm this bug.
Multiselect contains next code:
<Multiselect
      v-model="innerValue"
      :searchable="true"
      @search-change="searchChangeHandler">
</Multiselect>

searchChangeHandler - it's async func, which find all options by input string.
innerValue - it's computed prop, which binded with pinia store state
const businessInfoStore = useBusinessInfoStore()

const innerValue = computed({
    get() {
        return businessInfoStore.getTaxpayerTin // getting value from store
    },
    set(newTin) {
        businessInfoStore.setTaxpayerTin(newTin) // setting value into store
    },
})

innerValue contain value after initial view, but it's not shown in the input field.
I think that needs add to check modelValue and value props while first render

@aimeos I resolve problem with prop allowAbsent="true". Try, maybe it help to you


Add image overrides for CAPI/CAPRKE2 images

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Checklist:

[ ] squashed commits into logical changes
[ ] includes documentation
[ ] adds unit tests
[ ] adds or updates e2e tests

Superseded by: https://github.com/rancher/turtles/pull/874


48 | Rotate Image | java

Title - Rotate Image
What will change - I will add to the code
Type of Issue -
Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language
Please add/delete options that are not relevant.

[x] Java

Self Check

Ask for issue assignment and wait to get assigned to it before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Discord server ✉ - https://discord.gg/CXksGdn
Happy Coding,

Can you assign this to me?

This problem already exists in the codebase.


TIFF: Tighten up logic for non-zero origin of "full" size (aka display window)

TIFF is incapable of representing non-(0,0) origin "full" (or display) window. So there are some edge cases we need to handle more deftly:

When writing to TIFF, if the ImageSpec says the full/display window is   nonzero origin, set it to 0 origin and expand the width&height   accordingly.  That's the best we can do, it's all TIFF can represent.

When reading TIFF that does not say anything about the full window   at all, assume it should be interpreted as equal to the data window.

LGTM.
I think this might change the way maketx deals with data origins on tiff files. Currently it extends the mips to include (0,0). However that is really a borderline case.
The new behavior seems to match the "consensus" when loading those tiffs and the change will make things consistent across OIIO tools.

Merged into master, also into RB-1.6 (but not yet tagged as a release).


#23 Issue: Improve front-end linting/formatting rules

Added .prettierrc file and configured Prettier. Added Maximum Line Length of 80 charachters for readablity by updating the .Hope this fixes the issue.

Thank you very much! Let me try and merge it to a branch first


chore(git) ignore kong.conf.env files

RFC
Problem
When developing locally or maintaining a .conf file that is loaded in different environments (kong.conf.dev, kong.conf.{prod, staging}) it can be helpful to not have to constantly stash the changes or keep the conf file outside the repo. This is also helpful for not accidentally checking in conf file changes. Conf files are where secrets can be stored such as db passwords, etc and so it is important to provide safeguards here. During kong development, it is common to either copy kong.conf.default to kong.env or change kong.conf.default directly to test config changes. These both result in git changesets and require the user to either add to their global .gitignore or consistently ignore the changes they've made.
Proposed solution
Add kong.conf* to gitignore
Checklist

[ ] get feedback
[x] add kong.conf and kong.conf.* to .gitignore
[ ] provide users with development docs for how they might local develop with different kong configs.

Full changelog

chore(git) ignore kong env configuration in source control
remove kong*.yml

Since those files are not officially maintained by this project nor part of an official development workflow, we'll be closing this. See https://github.com/Kong/kong/pull/3270 and https://github.com/Kong/kong/pull/3643#discussion_r205155695 for similar precedents. Feel free to add those files to your global .gitignore file.
Thanks!


TFE_DeleteContext stuck on exit

on exit  my app is stuck on inline
context::~context() {
        TFE_DeleteContext(this->tfe_context);
    }

I have a dll that loads cppflow model, , runs and on exit, the code jumps to this contex destructor, but It does not close and stays stuck on TFE_DeleteContext()
why is this. do I need to call some release function?

Please refer to https://github.com/serizba/cppflow/issues/131#issuecomment-862786913

The issue is that Contex class creates one global contex, and it is freed on the end. but when loading a the cppflow in a dll, My class usese cppflow, and I delete my class object this does not free the global contex.
The hint for solution came from here:
https://github.com/serizba/cppflow/blob/e389df06dea6dd2247276f7320cc227a3dfbe64b/include/cppflow/context.h#L43-L49
Problem with multi threaded,
Our solution was to create contex and save it, then release it manualy on exit, and removing the ~() destructor call to  TFE_DeleteContext(this->tfe_context);
our class creates
TFE_Context*_contextInference = nullptr; in constructor:
// see comments cppflow/context.h linse 44 and 88
MyClass:MyClass()
{
    TFE_ContextOptions* tfe_opts = nullptr;
    cppflow::get_global_context() = cppflow::context(tfe_opts);
    _contextInference = cppflow::context::get_context();
}
MyClass~MyClass()
{
   TFE_DeleteContext(_contextInference);
  _contextInference = nullptr;
}


Build dir

Don't pollute source tree with build files

Tested locally with a sample project, lgtm!


Organisation Code (Att) - needs formatting work (complex table)

DD team to determine priority as first step

Same applies to Org Site Code too.

New Supporting Information pages to be created and the tables moved off the attributes

This has been done for the August release.


Refactor import statements to use ES6 syntax and fix routes. This pull request have fixed major bugs in the website.

Unfortunately, the bugs fixed in this pull request have not been done before. It may conflict a lot, but all the changes are made to fix errors and enhance the future. The major bug was clashing of the ES module and Common JS module. Also, there are many fixes in the routes.

Re raise up PR as yesterday i have reverted back to some commit cuz all the deployments were failing .


Async query progress callback

Should we implement a way to check how far alasql is through a stack of queries?
For example if we had:
var sql = "CREATE INDEXEDDB DATABASE IF NOT EXISTS test;"
+"ATTACH INDEXEDDB DATABASE test;"
+"USE test;"
+"CREATE TABLE cities (city string, population number);"
+"INSERT INTO cities VALUES ('Rome',2863223),('Paris',2249975),('Berlin',3517424), ('Madrid',3041579);"
+"SELECT * FROM cities WHERE population < 3500000 ORDER BY population DESC;";

alasql(sql, [], function(res) {
	print(res);
}, function(error) {
	print(error);
});

We could add a third callback, which would be called after each query is called, and return the number of queries executed.
E.g:
var sql =
"CREATE INDEXEDDB DATABASE IF NOT EXISTS test;"
+"ATTACH INDEXEDDB DATABASE test;"
+"USE test;"
+"DROP TABLE cities;"
+"CREATE TABLE cities (city string, population number);"
+"INSERT INTO cities VALUES ('Rome',2863223),('Paris',2249975),('Berlin',3517424), ('Madrid',3041579);"
+"SELECT * FROM cities WHERE population < 3500000 ORDER BY population DESC;";

alasql(sql, [], function(res) {
}, function(error) {
}, function(progress) {
	print(progress)
});

Would Print:
1
2
3
4
5
6
7

If this was to be implemented, we would have to check whether it is possible to return something like progress in promises, similar to https://api.jquery.com/deferred.progress/

Good input.
Is this for debugging or are you thinking this for production?
Had an idea to implement it via .promise but saw that

ECMAScript 6 promises lack two features that are sometimes useful:

You can’t cancel them.
You can’t query them for how far along they are (e.g. to display a progress bar in a client-side user interface).

I was thinking it would be nice in the event that someone had a long running query chain, it could be used to implement something like a progress bar, so if you had say a hundred or so queries, taking a 10-20 seconds to execute them all, you could keep the user up to date with how far through the chain you are.

Perhaps we just add a function build into alasql, like the user defined one you supplied stored in the options, the user can override it by using alasql.options.progress = function(){};
Force the parameters of "numberofqueriestoexecute", "currentqueryindex".
alasql.options.progress(a, i){
    print(Math.round((i / a) * 100)+'%');
}

var sql =
"CREATE INDEXEDDB DATABASE IF NOT EXISTS test;"
+"ATTACH INDEXEDDB DATABASE test;"
+"USE test;"
+"DROP TABLE cities;"
+"CREATE TABLE cities (city string, population number);"
+"INSERT INTO cities VALUES ('Rome',2863223),('Paris',2249975),('Berlin',3517424), ('Madrid',3041579);"
+"SELECT * FROM cities WHERE population < 3500000 ORDER BY population DESC;";

alasql(sql, [], function(res) {
}, function(error) {
});

Thats a really good idea

Ok, So I did some playing round in the source code and have got it working in the above query, although my code is probably messy as hell.
On line 4138 I have:
alasql.options.progress = false; // Callback for async queries

I have overridden the alasql.adrun function with - line 4340:
/**
  Run multiple statements and return array of results async
 */
alasql.adrun = function (databaseid, ast, params, cb, scope) {
  var idx = 0;
  var noqueries = ast.statements.length;
  if (alasql.options.progress !== false)
    alasql.options.progress(noqueries, idx++);
//	alasql.busy++;
	var useid = alasql.useid;
	if(useid !== databaseid) {
		alasql.use(databaseid);
	}
	var res = [];

	function adrunone(data) {
		if(data !== undefined){
			res.push(data);
		}
		var astatement = ast.statements.shift();
		if(!astatement) {
			if(useid !== databaseid){
				alasql.use(useid);
			}
			cb(res);

		} else {
			if(astatement.compile) {
				var statement = astatement.compile(alasql.useid);
				statement(params, adrunone, scope);
        if (alasql.options.progress !== false)
          alasql.options.progress(noqueries, idx++);
			} else {
				alasql.precompile(ast.statements[0],alasql.useid,params);
				astatement.execute(alasql.useid, params, adrunone);
        if (alasql.options.progress !== false)
          alasql.options.progress(noqueries, idx++);
			}
		}
	}

	adrunone(); /** @todo Check, why data is empty here */
};

It runs progress when it starts, returning 0, then after each iteration it executes the function if it is defined.

Nice work. Im only on my phone but it looks really good. Lets get the changes into the code.
We might want a switch so we can turn it off if its not wanted AND speed is important

By default, it is turned off, via the alasql.options.progress = false;

I get it :)

Hmm, I am working on implementing the changes, although I cant seem to find in what file promiseChain = function is inside, are you aware of where this is?

src/18promise.js line 39 is what you are looking for

Ouch, I'm an idiot, my fork was out of date xD

Thanks for great work.


Unpatchable atm../DSDT too large even with _OSI removed

Apologies if I'm missing something obvious.
I'm trying to apply the DSDT patch https://github.com/xCuri0/ReBarUEFI/wiki/DSDT-Patching#dsdt-broken-4g-decoding-fix-haswell-and-up to my Asrock Z97 Extreme 3 on BIOS 2.10: https://www.asrock.com/mb/intel/z97 extreme3/#BIOS
However, even with all of the _OSI methods removed, my DSDT mod is significantly larger than the original, almost 700 bytes larger using iasl from ACPICA 20221020.  This is leading to the error PE32 has .ROM but not DYNAMIC_BASE set -> Unpatchable atm.. from AmiBoardInfoTool.
Any ideas if there's any other parts that are safe to remove, or any other way to fix this?
dsdt.zip

@264-bit You can try

Remove all ADBG lines
Remove device BAT0 / BAT1`` / BAT2``
Remove device DOCK
Remove device LID0

All of these are unneeded on desktop.

Thanks, that helped a lot.
I was still a few bytes short, so I also shortened the SLIC string.  This probably breaks SLI but I'm not using it anyways.
With all of these changes, I am now able to fit my modded DSDT in my amiboardinfo.

add a comment to list of working motherboards


[4.0][Bug] view_namespace does not override

Hi :)
It seems that the view_namespace in config.backpack.base does not works properly.
When I use a custom namespace, like this :
'view_namespace' : 'vendor.everess.'
I got this error :
View [vendor.everess.auth.login] not found.
The file does not exists, right, but the backpack one should be called.
I see this method :
function backpack_view($view)
    {
        $theme = $originalTheme = config('backpack.base.view_namespace');

        if (is_null($theme)) {
            $theme = $originalTheme;
        }

        $returnView = $theme.$view;

        if (! view()->exists($returnView)) {
            $returnView = $originalTheme.$view;
        }

        return $returnView;
    }

But here, $theme = $originalTheme, so I made this fix :
function backpack_view($view)
    {
    	$originalTheme = 'backpack::';
        $theme = config('backpack.base.view_namespace');

        if (is_null($theme)) {
            $theme = $originalTheme;
        }

        $returnView = $theme.$view;

        if (! view()->exists($returnView)) {
            $returnView = $originalTheme.$view;
        }

        return $returnView;
    }

Do you think it's correct ?
Or maybe I failed somewhere in the config !
Thanks for your feedback,

Ugh. I'm pretty sure this happened recently when we fixed some merge conflicts with the original solution.
Of course you're right @KevinRignault - thanks a lot for spotting this, and letting us know. I've just implemented your solution and it works like a charm!
Let me know if you find anything else with the view_namespace functionality, or how easy it is for you to use. Out of curiosity - what do you plan to use it for - a different theme entirely, or just moving the views to a different folder?
Cheers!

Hi @tabacitu,
Thanks for your quick feedback :)
This feature is really good, in the previous Backpack v3, I've made a package to build a new theme but this method is easier !
I also find a solution to override crud views in the same folder -
In the Laravel AppServiceProvider, I added this line in the register method :
$this->loadViewsFrom(resource_path('views/vendor/everess/crud'), 'crud');
In this way, the hint 'crud' also search views in the folder and we can have a complete package with all views in the same folder.
In order to have a complete theme, ready to use, I think is to have a package with views, sass, js .. so I work on a package like this :)
The Backpack project is really awesome, very good job !
Keep in touch,

@tabacitu Doesn't work as of Backpack 5.4.14.
I've tried every permutation in config/backpack/base.php of:

'view_namespace' => 'vendor.myviews.',
'view_namespace' => 'vendor.myviews.base.',
'view_namespace' => 'vendor.myviews.base.inc',
'view_namespace' => 'myviews.',
'view_namespace' => 'myviews.base.',
'view_namespace' => 'myviews.base.inc.',

etc I can think of, with periods, colons, everything, even copying the whole backpack views folder from vendor and trying the same thing in AppServiceProvider::register(). No error, no log entries, no nothing, it just fails. Even after php artisan config:clear and reloading the browser a bunch to maybe regenerate views.
Can you share an example with a full directory structure in resources/views and the view_namespace value that works?
Or is there an example project that shows how to use view_namespace? Or are there unit tests we can run that show the view_namespace working? Maybe I could step through that in XDebug.
The instructions at https://backpackforlaravel.com/docs/5.x/base-how-to#create-a-new-theme-child-theme are somewhat ambiguous, so I don't know what to do. I need to have a way to create views outside of resources/views/vendor.
Thanks for any help you can provide!

@tabacitu I managed to fix it 🎉
Here's a full working example:
# config/backpack/base.php

'view_namespace' => 'my_namespace.base.', // resources/views/my_namespace/base falls back to resources/views/vendor/backpack/base falls back to vendor/backpack/crud/src/resources/views/base
// 'view_namespace' => 'backpack::', // resources/views/vendor/backpack/base falls back to vendor/backpack/crud/src/resources/views/base

# (optional) equivalent method by KevinRignault in AppServiceProvider::register() with config left as default 'view_namespace' => 'backpack::'

public function register()
{
    $this->loadViewsFrom(resource_path('views/my_namespace/base'), 'my_namespace');
}

# project structure:

# copied manually from vendor/backpack/crud/src/resources/views/base
resources/views/my_namespace/base/inc/sidebar_content.blade.php
resources/views/my_namespace/base/inc/topbar_left_content.blade.php
resources/views/my_namespace/base/inc/topbar_right_content.blade.php
resources/views/my_namespace/base/dashboard.blade.php

# created by: `composer require backpack/crud`
vendor/backpack/crud/src/resources/views/base/inc/sidebar_content.blade.php
vendor/backpack/crud/src/resources/views/base/inc/topbar_left_content.blade.php
vendor/backpack/crud/src/resources/views/base/inc/topbar_right_content.blade.php
vendor/backpack/crud/src/resources/views/base/dashboard.blade.php

*Note the discrepancy in how the namespace must be my_namespace.base. instead of my_namespace. for all path hierarchies to match form.
If trying this in a local dev environment, be sure to clear caches:
php artisan config:clear
php artisan view:clear

Just FYI: I substituted backpack everywhere you see my_namespace above for my namespace and folders, and it all "just worked". So there's no conflict with the backpack:: namespace in vendor.

The problem was due to:

The recommended 'view_namespace' => 'my_namespace.' setting in config/backpack/base.php pointing to resources/views/vendor/backpack is inconsistent with the vendor/backpack/crud/src/resources/views/base path hierarchy corresponding to the backpack:: default.

I worked around it by specifying 'view_namespace' => 'my_namespace.base.' but Backpack's scan should instead start at resources/views/my_namespace/base when we specify 'view_namespace' => 'my_namespace.'
It could be a missed opportunity, because customizing folders outside the base folder is difficult as it stands now. Maybe that's intentional, so I tend to think of this kind of design decision as a bug/feature. I'd recommend fixing it in the next major version release and documenting the upgrade steps for the user's view hierarchy.
I've noticed this trend throughout the documentation: it says what to do without providing examples or enough details. The docs need to be very specific, similar to what's written above. Some additional examples:

Most users will end up repeating the steps above if they want to populate the left sidebar with their own view outside of a vendor folder. It would be better to read an array from config or have a callback method in CrudController or a CrudService so Backpack can fetch the list from us without involving the frontend.
I had to dig deep into the styling to figure out how to widen the sidebar to fit the item names. This is not future-proof, because the next Backpack version will likely change css rule(s). And I still can't figure out how to make the sidebar overlap the page content (like it used to) rather than shift it right.
I couldn't figure out how to turn off beautified column names to show exact database column names instead. That's opinionated behavior that might be undocumented and/or doesn't seem to have a corresponding setting?
Setting 'responsiveTable' => false in config/backpack/operations/list.php shows the horizontal scrollbar, but causes the (+) icon to disappear from the start of each row. Again, that's opinionated behavior outside of core functionality, which creates a feeling of anxiety for users (I still don't know how to fix it). It's best to decouple behaviors into separate settings with sane defaults.
The search field appears to search all columns, with no way to pass a hint like id:123 or specify column(s) or even set a debounce time between keystrokes. Most people are going to need to tweak this, so again it feels a bit opinionated.

(Minor) the setting show_getting_started in config/backpack/base.php defaulted to true after upgrading to backpack/crud 5.4, so the edits I was doing to my local copy of dashboard.blade.php weren't being reflected in the browser, which sent me down a rabbit hole.

But hey, it's pretty great now that it's working! I went into detail above with the hopes of improving your process, not to nitpick. The problem with the above issues is that they force people to learn nearly the entirety of your framework to do even the simplest things (like populate the sidebar). In fairness, this is a huge problem with nearly all frameworks, so no explanation is needed.
To anyone reading this: please @ me about any mistakes and I'll try to correct them, thanks!

Backpack's default configuration for comparison:
# installed by: `php artisan backpack:install --no-interaction`
resources/views/vendor/backpack/base/inc/sidebar_content.blade.php
resources/views/vendor/backpack/base/inc/topbar_left_content.blade.php
resources/views/vendor/backpack/base/inc/topbar_right_content.blade.php
# (optional) copied manually from vendor/backpack/crud/src/resources/views/base/dashboard.blade.php
resources/views/vendor/backpack/base/dashboard.blade.php

# created by: `composer require backpack/crud`
vendor/backpack/crud/src/resources/views/base/inc/sidebar_content.blade.php
vendor/backpack/crud/src/resources/views/base/inc/topbar_left_content.blade.php
vendor/backpack/crud/src/resources/views/base/inc/topbar_right_content.blade.php
vendor/backpack/crud/src/resources/views/base/dashboard.blade.php

# .gitignore and .dockerignore rules (some projects don't track vendor folders, so had the namespace fix not worked, here's a fallback way to specify exceptions):
# /resources/views/vendor
/resources/views/vendor/*
!/resources/views/vendor/backpack/

Thanks a lot for the write-up @zmorris !
I agree, this will change in v6, and we'll allow custom directories with better docs. That's when we'll add "themes". Instead of specifying the view_namespace you'll probably be specifying the theme, which will point to a directory in resources/views/vendor/backpack/themes/your-theme-name (or a custom directory if you want). That will allow you to create a theme to override some files. For anything else, Backpack will fall back to files in the "parent theme". Since the blade files will be more atomic (small and many), we hope this will allow you to create a super-custom UI, more easily.


Relate application to mysql router: The MySQL server is running with the --super-read-only option

To reproduce:

Deploy mysql-k8s-bundle
Relate application to mysql-router
mysql-k8s leader unit in blocked status with message Failed to create scoped user

Snippet of juju debug-log from running tox -e integration on https://github.com/canonical/mysql-k8s-bundle/commit/28ddddaa4a272f524064772d30161f5040e6f91c
unit-mysql-k8s-0: 20:13:19 WARNING unit.mysql-k8s/0.juju-log database:5: Failed to grant privileges to user relation-5@%
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-mysql-k8s-0/charm/src/mysql_k8s_helpers.py", line 491, in _run_mysqlsh_script
    stdout, _ = process.wait_output()
  File "/var/lib/juju/agents/unit-mysql-k8s-0/charm/venv/ops/pebble.py", line 1307, in wait_output
    raise ExecError(self._command, exit_code, out_value, err_value)
ops.pebble.ExecError: non-zero exit code 1 executing ['/usr/bin/mysqlsh', '--no-wizard', '--python', '--verbose=1', '-f', '/tmp/script.py', ';', 'rm', '/tmp/script.py'], stdout='', stderr='Cannot set LC_ALL to locale en_US.UTF-8: No such file or directory\nverbose: 2023-01-19T20:13:19Z: Loading startup files...\nverbose: 2023-01-19T20:13:19Z: Loading plugins...\nverbose: 2023-01-19T20:13:19Z: Connecting to MySQL at<EMAIL_ADDRESS>2023-01-19T20:13:19Z: Shell.connect: tid=108: CONNECTED: mysql-k8s-0.mysql-k8s-endpoints\nverbose: 2023-01-19T20:13:19Z: Session.run_sql: tid=108: MySQL Error 1290: The MySQL server is running with the --super-read-only option so it cannot execute this statement, SQL: GRANT CREATE USER ON *.* TO \'relation-5\'@\'%\' WITH GRANT OPTION\nTraceback (most recent call last):\n  File "<string>", line 2, in <module>\nmysqlsh.DBError: MySQL Error (1290): Session.run_sql: The MySQL server is running with the --super-read-only option so it cannot execute this statement\n'

Full tox output:
ubuntu@dev-env-2:~/repos/mysql-k8s-bundle$ tox -e integration
integration: commands[0]> pytest -v --tb native --ignore=/home/ubuntu/repos/mysql-k8s-bundle/tests/unit --log-cli-level=INFO -s --durations=0
=========================================================================== test session starts ===========================================================================
platform linux -- Python 3.10.6, pytest-7.2.1, pluggy-1.0.0 -- /home/ubuntu/repos/mysql-k8s-bundle/.tox/integration/bin/python
cachedir: .tox/integration/.pytest_cache
rootdir: /home/ubuntu/repos/mysql-k8s-bundle, configfile: pyproject.toml
plugins: operator-0.23.0, asyncio-0.20.3
asyncio: mode=auto
collected 2 items

tests/integration/test_bundle.py::test_deploy_bundle
----------------------------------------------------------------------------- live log setup ------------------------------------------------------------------------------
INFO     pytest_operator.plugin:plugin.py:618 Adding model micro:test-bundle-8z98 on cloud microk8s
------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------
INFO     juju.bundle:bundle.py:384 Applying change: upload charm mysql-k8s from channel latest/edge
INFO     juju.bundle:bundle.py:384 Applying change: upload charm mysql-router-k8s from channel latest/edge
INFO     juju.bundle:bundle.py:384 Applying change: upload charm tls-certificates-operator from channel latest/edge
INFO     juju.bundle:bundle.py:384 Applying change: deploy application mysql-k8s with 3 units using $addCharm-0
INFO     juju.model:model.py:1928 Deploying ch:amd64/jammy/mysql-k8s-30
INFO     juju.bundle:bundle.py:384 Applying change: deploy application mysql-router-k8s with 1 unit using $addCharm-3
INFO     juju.model:model.py:1928 Deploying ch:amd64/jammy/mysql-router-k8s-6
INFO     juju.bundle:bundle.py:384 Applying change: deploy application tls-certificates-operator with 1 unit using $addCharm-6
INFO     juju.model:model.py:1928 Deploying ch:amd64/focal/tls-certificates-operator-20
INFO     juju.bundle:bundle.py:384 Applying change: add relation $deploy-1:certificates - $deploy-7:certificates
INFO     juju.bundle:bundle.py:902 Relating mysql-k8s:certificates <-> tls-certificates-operator:certificates
INFO     juju.bundle:bundle.py:384 Applying change: add relation $deploy-1:database - $deploy-4:backend-database
INFO     juju.bundle:bundle.py:902 Relating mysql-k8s:database <-> mysql-router-k8s:backend-database
INFO     juju.bundle:bundle.py:384 Applying change: set annotations for $deploy-1
INFO     juju.bundle:bundle.py:384 Applying change: set annotations for $deploy-4
INFO     juju.bundle:bundle.py:384 Applying change: set annotations for $deploy-7
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-k8s/0 [allocating] waiting: installing agent
  mysql-k8s/1 [allocating] waiting: installing agent
  mysql-k8s/2 [allocating] waiting: installing agent
  tls-certificates-operator/0 [allocating] waiting: installing agent
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-k8s/0 [executing] maintenance: installing charm software
  mysql-k8s/1 [executing] maintenance: installing charm software
  mysql-k8s/2 [executing] maintenance: installing charm software
  tls-certificates-operator/0 [executing] maintenance: installing charm software
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-k8s/0 [executing] maintenance: Initialising mysqld
  mysql-k8s/1 [executing] maintenance: Initialising mysqld
  mysql-k8s/2 [idle] maintenance: Initialising mysqld
  tls-certificates-operator/0 [idle] active:
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-k8s/0 [executing] active: Unit is ready: Mode: RW
  mysql-k8s/1 [idle] waiting: Waiting for instance to join the cluster
  mysql-k8s/2 [idle] waiting: Waiting for instance to join the cluster
  tls-certificates-operator/0 [idle] active:
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-k8s/0 [executing] active: Unit is ready: Mode: RW
  mysql-k8s/1 [idle] waiting: Awaiting restart operation
  mysql-k8s/2 [idle] waiting: Waiting for instance to join the cluster
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-k8s/0 [executing] active: Unit is ready: Mode: RW
  mysql-k8s/1 [executing] active:
  mysql-k8s/2 [executing] active: Unit is ready: Mode: RO
  tls-certificates-operator/0 [idle] active:
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-k8s/0 [idle] active: Unit is ready: Mode: RW
  mysql-k8s/1 [executing] maintenance: Executing restart operation
  mysql-k8s/2 [idle] active: Unit is ready: Mode: RO
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-k8s/0 [idle] active:
  mysql-k8s/1 [idle] active: Unit is ready: Mode: RO
  mysql-k8s/2 [idle] active: Unit is ready: Mode: RW
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-router-k8s/0 [idle] waiting:
PASSED
tests/integration/test_bundle.py::test_mysql_primary_switchover
------------------------------------------------------------------------------ live log call ------------------------------------------------------------------------------
INFO     pytest_operator.plugin:plugin.py:497 Using tmp_path: /home/ubuntu/repos/mysql-k8s-bundle/.tox/integration/tmp/pytest/test-bundle-8z980
INFO     pytest_operator.plugin:plugin.py:941 Building charm application
INFO     pytest_operator.plugin:plugin.py:946 Built charm application in 32.45s
INFO     juju.model:model.py:1928 Deploying local:focal/application-0
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-k8s/0 [idle] active: Unit is ready: Mode: RO
  mysql-k8s/1 [idle] active: Unit is ready: Mode: RO
  mysql-k8s/2 [idle] active: Unit is ready: Mode: RW
  mysql-router-k8s/0 [idle] waiting:
  application/0 [allocating] waiting: installing agent
FAILED
---------------------------------------------------------------------------- live log teardown ----------------------------------------------------------------------------
INFO     pytest_operator.plugin:plugin.py:761 Model status:

Model             Controller  Cloud/Region        Version  SLA          Timestamp
test-bundle-8z98  micro       microk8s/localhost  2.9.29   unsupported  20:13:21Z

App                        Version                  Status   Scale  Charm                      Channel  Rev  Address        Exposed  Message
application                                         waiting      1  application                           0  <IP_ADDRESS>  no       installing agent
mysql-k8s                  8.0.31-0ubuntu<IP_ADDRESS>  active       3  mysql-k8s                  edge      30  <IP_ADDRESS>  no
mysql-router-k8s                                    waiting      1  mysql-router-k8s           edge       6  <IP_ADDRESS>  no       installing agent
tls-certificates-operator                           active       1  tls-certificates-operator  edge      20  <IP_ADDRESS>  no

Unit                          Workload  Agent      Address       Ports  Message
application/0*                waiting   idle       <IP_ADDRESS>
mysql-k8s/0*                  blocked   idle       <IP_ADDRESS>         Failed to create scoped user
mysql-k8s/1                   active    idle       <IP_ADDRESS>         Unit is ready: Mode: RO
mysql-k8s/2                   active    idle       <IP_ADDRESS>         Unit is ready: Mode: RW
mysql-router-k8s/0*           waiting   executing  <IP_ADDRESS>
tls-certificates-operator/0*  active    idle       <IP_ADDRESS>

INFO     pytest_operator.plugin:plugin.py:767 Juju error logs:

controller-0: 20:08:34 ERROR juju.worker.caasapplicationprovisioner.runner exited "mysql-k8s": Operation cannot be fulfilled on pods "mysql-k8s-0": the object has been modified; please apply your changes to the latest version and try again

INFO     pytest_operator.plugin:plugin.py:786 juju-crashdump command was not found.
INFO     pytest_operator.plugin:plugin.py:854 Resetting model test-bundle-8z98...
INFO     pytest_operator.plugin:plugin.py:843    Destroying applications mysql-k8s
INFO     pytest_operator.plugin:plugin.py:843    Destroying applications mysql-router-k8s
INFO     pytest_operator.plugin:plugin.py:843    Destroying applications tls-certificates-operator
INFO     pytest_operator.plugin:plugin.py:843    Destroying applications application
INFO     pytest_operator.plugin:plugin.py:859 Not waiting on reset to complete.
INFO     pytest_operator.plugin:plugin.py:832 Forgetting main...

================================================================================ FAILURES =================================================================================
______________________________________________________________________ test_mysql_primary_switchover ______________________________________________________________________
Traceback (most recent call last):
  File "/home/ubuntu/repos/mysql-k8s-bundle/tests/integration/test_bundle.py", line 47, in test_mysql_primary_switchover
    await ops_test.model.wait_for_idle(
  File "/home/ubuntu/repos/mysql-k8s-bundle/.tox/integration/lib/python3.10/site-packages/juju/model.py", line 2523, in wait_for_idle
    _raise_for_status(blocks, "blocked")
  File "/home/ubuntu/repos/mysql-k8s-bundle/.tox/integration/lib/python3.10/site-packages/juju/model.py", line 2465, in _raise_for_status
    raise error_type("{}{} in {}: {}".format(
juju.errors.JujuUnitError: Unit in blocked: mysql-k8s/0
---------------------------------------------------------------------------- Captured log call ----------------------------------------------------------------------------
INFO     pytest_operator.plugin:plugin.py:497 Using tmp_path: /home/ubuntu/repos/mysql-k8s-bundle/.tox/integration/tmp/pytest/test-bundle-8z980
INFO     pytest_operator.plugin:plugin.py:941 Building charm application
INFO     pytest_operator.plugin:plugin.py:946 Built charm application in 32.45s
INFO     juju.model:model.py:1928 Deploying local:focal/application-0
INFO     juju.model:model.py:2530 Waiting for model:
  mysql-k8s/0 [idle] active: Unit is ready: Mode: RO
  mysql-k8s/1 [idle] active: Unit is ready: Mode: RO
  mysql-k8s/2 [idle] active: Unit is ready: Mode: RW
  mysql-router-k8s/0 [idle] waiting:
  application/0 [allocating] waiting: installing agent
-------------------------------------------------------------------------- Captured log teardown --------------------------------------------------------------------------
INFO     pytest_operator.plugin:plugin.py:761 Model status:

Model             Controller  Cloud/Region        Version  SLA          Timestamp
test-bundle-8z98  micro       microk8s/localhost  2.9.29   unsupported  20:13:21Z

App                        Version                  Status   Scale  Charm                      Channel  Rev  Address        Exposed  Message
application                                         waiting      1  application                           0  <IP_ADDRESS>  no       installing agent
mysql-k8s                  8.0.31-0ubuntu<IP_ADDRESS>  active       3  mysql-k8s                  edge      30  <IP_ADDRESS>  no
mysql-router-k8s                                    waiting      1  mysql-router-k8s           edge       6  <IP_ADDRESS>  no       installing agent
tls-certificates-operator                           active       1  tls-certificates-operator  edge      20  <IP_ADDRESS>  no

Unit                          Workload  Agent      Address       Ports  Message
application/0*                waiting   idle       <IP_ADDRESS>
mysql-k8s/0*                  blocked   idle       <IP_ADDRESS>         Failed to create scoped user
mysql-k8s/1                   active    idle       <IP_ADDRESS>         Unit is ready: Mode: RO
mysql-k8s/2                   active    idle       <IP_ADDRESS>         Unit is ready: Mode: RW
mysql-router-k8s/0*           waiting   executing  <IP_ADDRESS>
tls-certificates-operator/0*  active    idle       <IP_ADDRESS>

INFO     pytest_operator.plugin:plugin.py:767 Juju error logs:

controller-0: 20:08:34 ERROR juju.worker.caasapplicationprovisioner.runner exited "mysql-k8s": Operation cannot be fulfilled on pods "mysql-k8s-0": the object has been modified; please apply your changes to the latest version and try again

INFO     pytest_operator.plugin:plugin.py:786 juju-crashdump command was not found.
INFO     pytest_operator.plugin:plugin.py:854 Resetting model test-bundle-8z98...
INFO     pytest_operator.plugin:plugin.py:843    Destroying applications mysql-k8s
INFO     pytest_operator.plugin:plugin.py:843    Destroying applications mysql-router-k8s
INFO     pytest_operator.plugin:plugin.py:843    Destroying applications tls-certificates-operator
INFO     pytest_operator.plugin:plugin.py:843    Destroying applications application
INFO     pytest_operator.plugin:plugin.py:859 Not waiting on reset to complete.
INFO     pytest_operator.plugin:plugin.py:832 Forgetting main...
============================================================================ slowest durations ============================================================================
260.92s call     tests/integration/test_bundle.py::test_deploy_bundle
60.50s call     tests/integration/test_bundle.py::test_mysql_primary_switchover
4.61s teardown tests/integration/test_bundle.py::test_mysql_primary_switchover
0.73s setup    tests/integration/test_bundle.py::test_deploy_bundle

(2 durations < 0.005s hidden.  Use -vv to show these durations.)
========================================================================= short test summary info =========================================================================
FAILED tests/integration/test_bundle.py::test_mysql_primary_switchover - juju.errors.JujuUnitError: Unit in blocked: mysql-k8s/0
================================================================= 1 failed, 1 passed in 326.85s (0:05:26) =================================================================
integration: exit 1 (328.67 seconds) /home/ubuntu/repos/mysql-k8s-bundle> pytest -v --tb native --ignore=/home/ubuntu/repos/mysql-k8s-bundle/tests/unit --log-cli-level=INFO -s --durations=0 pid=1917429
  integration: FAIL code 1 (328.73=setup[0.06]+cmd[328.67] seconds)
  evaluation failed :( (328.78 seconds)

Replicated using tests/integration/application_charm from https://github.com/canonical/mysql-k8s-operator and tests/integration/application-charm from https://github.com/canonical/mysql-router-k8s-operator

Replicated on charmhub revisions:
mysql-k8s: 30
mysql-router-k8s: 6
tls-certificates-operator: 20
mysql-k8s: 30
mysql-router-k8s: 6
tls-certificates-operator: 19
mysql-k8s: 30
mysql-router-k8s: 6
tls-certificates-operator: 13
mysql-k8s: 30
mysql-router-k8s: 6
tls-certificates-operator: 16
mysql-k8s: 24
mysql-router-k8s: 5
tls-certificates-operator: 19

The backlog bugreport created to pickup the next sprint: https://warthogs.atlassian.net/browse/DPE-1139


CodePen Icon

It would be great to have an icon for CodePen.io.

Hi,
I am closing all icon requests in an effort to keep this project clean. We unfortunately don't have the time to implement all the icon ourselves and it would be misleading to keep these issues open.
The good news is that I have also made icon contribution much easier (aka possible). There are the documented steps that you can follow if you would really like to see your icon included: https://github.com/samcollins/css-social-buttons#how-to-contribute . Please keep in mind that this icon set is for social icons.
Mistakes happen so if you feel that I have unjustly closed this issue please let me know.
Cheers,
zimbatm


[TC-510] cannot apply ipv6 on delivery services

attempt to change ipv6 flag from ipv4 to ipv6 results in a / unable to update delivery service.
on trafficops, 2.1.0-6566.3980b417.el7 Also receive following error:

Traffic Ops fatal error occurred while processing your request.
Error at line 50 (    %= field('ds.cdn_id')->select( \@{$cdns} );)
Global symbol "$cdns" requires explicit package name at template delivery_service/_form.html.ep line 50. Global symbol "$profiles" requires explicit package name at template delivery_service/_form.html.ep line 375.

Author: Sean Aoyagi
JIRA Link: https://issues.apache.org/jira/browse/TC-510
Found Version: 2.1.0

Changing to 2.2 based on comment in Jira by Dylan Volz on 8/16/17:

I believe this can be left for 2.2 because updating delivery services with ipv6 works via the api route, exercised via the new traffic portal. I verified this today.

TO UI will be deprecated shortly in favor of TP so closing this


Bugfix/#3187

Related issues

closes #3187
Short description and why it's useful

I expand ProdutImage component, now it:

detect default images aspect ratio, base on config (default is true but you can disabled for example ProductTile
detect widthnes or hightnes image and use right behavior for it
With components used ProductImage?

[ ] ProductGalleryCarousel
[ ] ProductGalleryZoomCarousel
[ ] Microcart
[ ] ProductTile
[ ] Wishlist
[ ] Checkout
[ ] ProductGallery

Screenshots of visual changes before/after (if there are any)

Which environment this relates to
Check your case. In case of any doubts please read about Release Cycle

[x] Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
[ ] RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
[ ] Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

[ ] No upgrade steps required (100% backward compatibility and no breaking changes)
[x] I've updated the Upgrade notes and Changelog on how to port existing VS sites with this new feature

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change
Contribution and currently important rules acceptance

[x] I read and followed contribution rules
[x] I read the TypeScript Action Plan and adjusted my PR according to it
[x] I read about Vue Storefront Modules and I am aware that every new feature should be a module

@przspa does this also close #3196?

@przspa does this also close #3196?

yes 👍 I close it


Improve parsing

Remove transform between String and Substring. Implement CSV.jl or CSVFile.jl only for parsing data .csv

CSV.jl appears to be faster. Thus, I only replaced it's usage with CSVFile.jl where CSV.jl was failing.

@claytonpbarrows I am still surprised it breaks only for some files, I am wondering why

since CSV hangs, I'll use Pandas.

Things seem to be better now, I'm closing this


fix: Use github.rest namespace for calling octokit

Per https://github.com/actions/github-script#breaking-changes-in-v5


Enabled hook inside the Unity Editor

I discovered a cause of unity editor crash bug.
In unity editor, some times drag and drop file event does not have any file path.
So, I added file path count check.
And in unity editor, I added feature that OnDroppedFiles function invoke only in game view window.
I confirmed this in Unity 2019.3.0f6 and 2018.4.3f1.

I'm sorry but your changes don't make much sense and I won't include them. First of all your file count check is pretty pointless and for sure not the cause of the crash in the editor. It was most likely more related to native callbacks registrated in managed memory. In the current Unity version ( 2019.3.0f6 ) I don't have and kind of crash inside the editor if I re-enable the hook inside the editor. However I will keep it disabled anyways.
Next is all your drop point adjustments to account for the editor offset it pretty pointless for several reasons. As I have repeatedly answered on other issues and pull requests, this script was never meant to work inside the editor.  If was just kinda nice that (at least for me) it just worked. However other people have reported crashes when running unit-tests (no window created). Further more the gameview is the biggest issue. First of all the gameview doesn't need to be attached to the Unity main window. It could be part of a floating container window, maybe even on another monitor (I've had this setup a couple of times). So properly identifying the actual window is quite difficult. Depending on the used layout and Unity version most of your offsets would probably not work.
Finally you replaced the callback null check with a null conditional operator which is a C# 6 feature. This makes the class incompatible with older versions of Unity for no reasons.
So I don't really see a justified reason for your changes.
For in-editor testing it's generally easier to setup test cases with hardcoded / configured test files. So the drag and drop support stays a standalone build feature.


Fix issues and make improvements

The ui enhancement suggested is working.  Issue no. #18

Kindly add context {{request.user}} after greeting, that will display the username of user's account.
The greet line should be one-lined.


Remove RequestContextListener definition from MojarraSpringBootAutoConfiguration

RequestContextListener bean definition blocks WebMvcAutoConfiguration s RequestContextFilter bean to be defined.
https://github.com/spring-projects/spring-boot/blob/v1.3.5.RELEASE/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java#L184
Hence ServletRequestAttributes is not set appropriately (ie. HttpServletResponse is not set).
The very same configuration is present for MyFaces also.

Hi @nyilmaz
I see your question, however RequestContextListener is usually commented as necessary when running jsf + spring.
Is it not necessary when integration Jsf + Spring Boot anymore?

Well it seems this is the outdated version of setting things into work. See https://github.com/spring-projects/spring-boot/issues/2637. Besides, now, I am able to run your sample project with this issue applied and it worked flawlessly :).
The point here with RequestContextFilter  and RequestContextListener  is that both are setting HttpServletRequest. I do not think things will get weird, when we remove RequestContextListener. Because in a typical webapp spring-boot will have already registered RequestContextFilter which is ordered early. Although if things get weird and does not work, you can provide both of above. This means an addition of RequestContextFilter. Thus HttpServletResponse will be set also.
Btw i did some refactoring into my jsf code replacing yours (using jetty server), I got it work too, without any modification (apart from some yaml configuration), fyi.

Thanks for you explanation @nyilmaz . I'll be done at next release.
I'll create jsf jetty spring boot starter also. I was suggested by @cemo in #28 .
Any help would be appreciated.


remove service user from get acls

remove users associated with service tokens from the get_samples_acls method
https://kbase-jira.atlassian.net/browse/SCT-3079

@slebras Do you mind taking a look?

this seems like a crazy hack. Why not just not put the service users in the acl in the first place?

this seems like a crazy hack. Why not just not put the service users in the acl in the first place?

When the indexer reads the sampleset object (so it can index it), the workspace then grants the indexer read permission to the samples.  So this is what we are trying to mask.  While we could try to make changes to the workspace to not do the ACL update in some scenarios, this seemed like the easiest solution.

I see. An alternative workaround would be to have the indexer remove itself from the acl once it's done, so you remove the ACL pollution rather than mask it.

But wait a sec - why is the indexer triggering based on sample set objects? Why doesn't it just trigger on the kafka messages from the sample service?

But wait a sec - why is the indexer triggering based on sample set objects? Why doesn't it just trigger on the kafka messages from the sample service?

It will trigger on both.  But the issue here is it gets triggered on the sample set and when it reads the object data that triggers the sample acl update.  We could have it drop the ACL after it is done but I'm not convinced that is a great option either.  I think this will work okay for now.  We are going to switch the indexers to use a special account so we can safely mask it since it shouldn't be used for general use.

We are going to merge this.  Long-term we want to look at some better alternatives since this is a bit of a hack.  But this seems acceptable for now.


run_slam.py error for the video with fixed camera

Hi,
As I mentioned in another #2 issue, I ran into the following error when I tried to use my own custom video.
File "/home/eric-gtxrar/documents/slahmr/third-party/DROID-SLAM/droid_slam/factor_graph.py", line 374, in add_proximity_factors     ii, jj = torch.as_tensor(es, device=self.device).unbind(dim=-1) ValueError: not enough values to unpack (expected 2, got 0)
After looking into the code and testing with different videos, I realized that if the camera is fully fixed (e.g. mounted on a tripod) in the video, it will have the above error. But the camera is not fixed, I can successfully generate the result below. Any suggestion to make it work for videos with a fixed camera would be appreciated. Thanks!

I just found a temporary solution to this issue. In the DROID-SLAM, the motion_filter.py filters incoming frames so that there is enough motion. If the camera is fixed, the computed value will be below the current default value of 2.5 and not be added in the later processing. So what I did is lower the threshold value to 0.1 and it works for video with the fixed camera now.


feat(#981): add majority voter with multi label support

Closes #981
This PR adds a MajorityVoter to our label models and supports a WeakMultiLabels object. In the multi-label case, this label model simply sets the probability to 1, if at least one rule voted for the respective label. Otherwise, the probability is zero.
I think a lot of the logic can be shared with the FlyingSquid label model, but I would like to do the refactoring in a separate PR. Also, Ruan is working heavily on this label model, so I would like to wait for his PR to go in.
You can find the tutorial here: https://rubrix.readthedocs.io/en/feat-majority_vote_model/tutorials/weak-supervision-multi-label.html
I'm not super thrilled about the tutorial, mainly because of the bad results. Either the datasets are really challenging, or I'm simply bad at finding good heuristics. I doubt that a more sophisticated label model will bring much improvement, but we can use those results as a baseline. @dvsrepo feedback would be much appreciated!

cc @frascuchon @dvsrepo

From a quick read of the tutorial it looks great for a first iteration!!! My only comment would be to add an info box in the define rules section to explicitly say that this rules can be defined with the UI too. No need to add screenshots or anything, to avoid maintenance overhead, but I'd like to make clear you can use the UI for that. I'd probably add a link to the UI ref for the define rules module (Q: will Leire update that guide with info about multilabel weak labeling?)

(Q: will Leire update that guide with info about multilabel weak labeling?)

Yes, we have to update this guide anyways, since we now also have the filters available.


[Feature][lmprovement] Master/Worker restore fault tolerant optimization

● These tasks that are in the normal execution state will not be re-executed after the main/worker program is restarted.
● During fault-tolerant recovery, the Shell node is able to retrieve its previous state normally.
● During fault-tolerant recovery, Yarn-related tasks are able to obtain their previous state normally.

When worker failover, it's better to take-over the remote task instance which running in yarn or some else. This should have a design doc, and it's better to split the first run and failover-run.

When worker failover, it's better to take-over the remote task instance which running in yarn or some else. This should have a design doc, and it's better to split the first run and failover-run.

As this is an ospp project, the first phase plan is to achieve task monitoring through polling, and comprehensive takeover is the future optimization point, exceeding the project plan.


PermShk's are not random enough

In some circumstances, our consumer AgentTypes are, in simulation, experiencing more highly correlated permanent income shocks than is probable.
This seems to be happening closer to the beginning of a simulation, in the first N periods. It depends somewhat but not entirely on the random seeds chosen.
Here is an example that exposes the issue:
First, create two identical ConsumerTypes that differ only in a random seed. Solve and simulate them.
from HARK.ConsumptionSaving.ConsPortfolioModel import SequentialPortfolioConsumerType

a1 = SequentialPortfolioConsumerType(seed = 1000, T_sim = 30, AgentCount = 5, UnempPrb = 0.0)
a1.solve()
a1.track_vars += ["pLvl", "mNrm", "cNrm", "Share", "Risky", "PermShk"]
a1.initialize_sim()
a1.simulate()

a2 = SequentialPortfolioConsumerType(seed = 200, T_sim = 30, AgentCount = 5, UnempPrb = 0.0)
a2.solve()
a2.track_vars += ["pLvl", "mNrm", "cNrm", "Share", "Risky", "PermShk"]
a2.initialize_sim()
a2.simulate()

a1.history['PermShk'] - a2.history['PermShk']

This last line compares the PermShk permanent incomes shocks. We expect these shocks to be idiosyncratically drawn from a lognormal distribution that is discretized to 7 values.
Here is what this is generating:
array([[ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.17305358,  0.        ,  0.        ,  0.        ,  0.        ],
       [-0.08931416, -0.12008051, -0.04086614,  0.07720723,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        , -0.14608218,  0.        ,  0.        ],
       [-0.17305358,  0.17305358,  0.07720723, -0.16094665,  0.12008051],
       [ 0.10974109, -0.18380317, -0.1353326 ,  0.08931416,  0.        ],
       [ 0.04601844,  0.        ,  0.03772098,  0.03634109,  0.        ],
       [-0.20939467,  0.25026081,  0.06887496, -0.31913576,  0.20939467],
       [-0.03634109,  0.03634109,  0.04086614, -0.07720723, -0.08373942],
       [ 0.04601844,  0.07406208,  0.20939467,  0.10974109, -0.31913576],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
       [ 0.        ,  0.03772098,  0.        ,  0.        ,  0.        ],
       [ 0.        , -0.11492821,  0.        ,  0.11492821,  0.1353326 ],
       [-0.31913576,  0.18380317, -0.11492821,  0.        ,  0.07720723]])

Notice that for 19 out of 30 periods, the permanent income shocks are identical between the two simulation runs, across 5 agents. The odds of this happening with equiprobable distributions are (1/7)^5^19, which is an extremely small number.
With different random seeds, the problem is somewhat reduced, but even picking random numbers for the seeds exhibits this phenomenon much more than expected. I have been unable to find seeds that do not get perfect shock matches between the two simulations in the second period.

Seb,
I know you’ve been working on a whole new scheme for simulation.  Is this from that new scheme, or from our existing simulation tools?
From: Sebastian Benthall @.>
Date: Tuesday, February 6, 2024 at 15:16
To: econ-ark/HARK @.>
Cc: Subscribed @.***>
Subject: [econ-ark/HARK] PermShk's are not random enough (Issue #1379)
In some circumstances, our consumer AgentTypes are, in simulation, experiencing more highly correlated permanent income shocks than is probable.
This seems to be happening closer to the beginning of a simulation, in the first N periods. It depends somewhat but not entirely on the random seeds chosen.
Here is an example that exposes the issue:
First, create two identical ConsumerTypes that differ only in a random seed. Solve and simulate them.
from HARK.ConsumptionSaving.ConsPortfolioModel import SequentialPortfolioConsumerType
a1 = SequentialPortfolioConsumerType(seed = 1000, T_sim = 30, AgentCount = 5, UnempPrb = 0.0)
a1.solve()
a1.track_vars += ["pLvl", "mNrm", "cNrm", "Share", "Risky", "PermShk"]
a1.initialize_sim()
a1.simulate()
a2 = SequentialPortfolioConsumerType(seed = 200, T_sim = 30, AgentCount = 5, UnempPrb = 0.0)
a2.solve()
a2.track_vars += ["pLvl", "mNrm", "cNrm", "Share", "Risky", "PermShk"]
a2.initialize_sim()
a2.simulate()
a1.history['PermShk'] - a2.history['PermShk']
This last line compares the PermShk permanent incomes shocks. We expect these shocks to be idiosyncratically drawn from a lognormal distribution that is discretized to 7 values.
Here is what this is generating:
array([[ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],
   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.17305358,  0.        ,  0.        ,  0.        ,  0.        ],

   [-0.08931416, -0.12008051, -0.04086614,  0.07720723,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        , -0.14608218,  0.        ,  0.        ],

   [-0.17305358,  0.17305358,  0.07720723, -0.16094665,  0.12008051],

   [ 0.10974109, -0.18380317, -0.1353326 ,  0.08931416,  0.        ],

   [ 0.04601844,  0.        ,  0.03772098,  0.03634109,  0.        ],

   [-0.20939467,  0.25026081,  0.06887496, -0.31913576,  0.20939467],

   [-0.03634109,  0.03634109,  0.04086614, -0.07720723, -0.08373942],

   [ 0.04601844,  0.07406208,  0.20939467,  0.10974109, -0.31913576],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ],

   [ 0.        ,  0.03772098,  0.        ,  0.        ,  0.        ],

   [ 0.        , -0.11492821,  0.        ,  0.11492821,  0.1353326 ],

   [-0.31913576,  0.18380317, -0.11492821,  0.        ,  0.07720723]])

Notice that for 19 out of 30 periods, the permanent income shocks are identical between the two simulation runs, across 5 agents. The odds of this happening with equiprobable distributions are (1/7)^5^19, which is an extremely small number.
With different random seeds, the problem is somewhat reduced, but even picking random numbers for the seeds exhibits this phenomenon much more than expected. I have been unable to find seeds that do not get perfect shock matches between the two simulations in the second period.
—
Reply to this email directly, view it on GitHubhttps://github.com/econ-ark/HARK/issues/1379, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAKCK72EWRK55GZIMSL7WRDYSKFTRAVCNFSM6AAAAABC4T5JIKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZDCNJZGQ4DCOI.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Good question @llorracc  It's existing tools.


Ensure all of these edge cases have unit tests and are supported

See: https://github.com/Col-E/Recaf/issues/305

Old issue, and they are covered AFAIK.
If an issue arises with JVM file handling, we'll open a new issue,

Comment is simply here because I needed a image host that doesn't strip metadata.


Aiven Glossary

What should we add to our content collections?
A summary of terms used within Aiven that can be defined in one sentence.
Some examples:

Service
Account
User
Project
Service User
User Configuration
Fork

Is this something you would work on yourself?
Happy to work on this if wanted but not volunteering :D If you would like, feel free to assign to me.
[ ] I plan to open a pull request for this

I love this idea! Saving it for a rainy day if nobody beats me to it ....


Editor doesn't run at monitor refresh rate

Operating system or device, Godot version, GPU Model and driver (if graphics related):
3.0 latest
Issue description:
When dragging stuff around in the editor, there is a noticeable delay/lag

I know a lot of people don't have 144hz monitors so it might be hard to tell however I think it'd be amazing to have an option in the editor settings to run the editor outside of the fixed interval (60fps)
Would make moving objects in the scene much smoother for us 60hz monitor and higher users!

Similar to https://github.com/godotengine/godot/issues/11030 ?

Similar to #11030 ?
(note that 60Hz+ is barely noticeable to the human eye)

This issue isn't entirely the same – #11030 is about reducing the stuttering caused by the redraw checker (it performs checks every so often to see if there is a need to redraw the viewport). This issue is about changing the viewport FPS limit (ideally automatically, based on the monitor refresh rate – it can be acquired using xrandr on Linux, and there surely is an API on Windows for this).

@Zylann I cannot go back to 60hz monitors now it looks like 20fps :P the difference is night and day imo, but yeah

Bug triage note: The original issue reporter closed all their issues before deleting their account. If you are affected by a similar issue/want a similar feature, please file a new ticket (referencing this one if it contains useful information) so that it can be further looked at and eventually resolved.


Inaccurate removal and update of facility latitude/longitude

Cases
Case 1 - Removal Inconsistency
When a user attempts to remove a generated latitude/longitude by clearing the input fields, a toast message displays success, but the values persist. This only occurs for generated coordinates; manually entered values can be removed successfully.
Case 2 - Zero Input Handling
Entering "0" (zero) in both latitude and longitude fields and saving doesn't update the facility details page. However, reopening the edit modal and saving again with "0" in both fields allows the update. This behavior needs correction for a consistent user experience.
Case 3 - Editing Restriction
Users cannot edit existing latitude/longitude values by typing and saving changes within the input fields. This results in an error message.
Expected Behavior
Case 1: Users should be able to remove previously generated latitude/longitude coordinates by clearing the input fields and saving. The toast message should accurately reflect this action.
Case 2&3: The system should prevent saving invalid coordinates like "0" or any other character(except '.' and '-') for both latitude and longitude. Ideally, an error message should prompt the user in this case.
Steps to Reproduce
Login the app with valid user credentials.
On the find facilities page, open the facility details of any facility.
Case 1. Unable to Remove Generated Latitude/Longitude

Attempt to remove the generated latitude/longitude.
Note that the toast message indicates successful removal, but the values remain unchanged.

Case 2. Handling '0' Inputs in Latitude/Longitude Fields

Enter '0' in both the latitude and longitude input fields.
Save the changes and observe the latitude/longitude section on the details page not updating.
Reopen the modal and attempt to save.
Now again type the same values for both the fields i.e. 0 and try to save the changes.

Case 3. Error When Editing Field Values

Try to edit and save characters inside longitude and latitude field values.
Note the error message preventing successful updates.

Environment details
App environment : UAT
App version : v1.7.0
Additional information
https://jam.dev/c/66947943-b96d-46a0-bbce-c3f0a285b42a

@R-Sourabh Few more points needs to be considered while fixing this issue -
Case A
When latitude/longitude are not generated and user clicks on 'Add' button
1.1. If the latitude/longitude is generated successfully, it should get disabled.
1.2. If unable to find the latitude/longitude for types Zip code, generate button should appear enabled.
If latitude/longitude are generated successfully and saved.
1.3 On opening the edit modal, generate button should appear disabled until any changes are made to the Zip code field.
1.4 On entering the same value for which latitude/longitude were generated previously, the button should again get disabled.
Case B
User should not be allowed to enter any special character except (-) or 0 inside the Zip code field.


FEC with h264

Hi I am sending video over rtp using openh264 due to udp packet lost nature I am having artifacts is there a way to add fec into the frame from video codecs settings to recover lost parts of the picture ?
Regards
Zahid Nisar

Thanks @peererror  for your interest on this. Currently there's no way to add FEC in video codec. A dummy way is duplicate the NAL packet to decrease the loss rate.

@huili2 probably question for another issue but I'll try: despite FEC RTP mechanism there is a another way to do some workaround on picture decoding partial failure - when decoder detects that the some slice/picture data is corrupted and the current frame cannot be properly rebuild then its calling application with some sort of notification or appropriate return code. Application itself might utilitilze RTCP mechanism with PLI/SLI requests that notify other side encoder about this problem. In the next round encoder will try to re-send corresponding data to application so decoder will try to rebuild current frame or continue to work on P frames with no heavy IDR requests. Well yes, it's purely described plain(no SVC) mechanism used in VP8 encoder but is it worth a try to implement it in openh264?


Netcore build and CI tests

In this commit:

Build all test assemblies for netcore
Run tests using the netcore xunit runner in the build
Disable many causes of crashes on netcore
Modify RebuildWithLocalMSBuild.cmd (CI build entry point) to build + test only netcore for now.

Expect ridiculous numbers of failures.  But we should be running tests!

LGTM, with some comments.


Defining application.properties file

Currently we have the application properties file and the related values in our documentation here.
It does not show the details of the features. For example:
installApp
This does not define the parameters for instrumentation, both web and sensor. We need the documentation updated to show the correct code for the application.properties file, which includes the exact code writing for each function and all the related parameters, including how it looks in Quantum.
Support gets these questions A LOT.

Thanks for the feedback. We will update the documentation on this.


Contributions section

We're keen to encourage external improvements to these resources but we don't yet have a contributions section that explains how we will review and moderate.

CONTRIBUTING.md added, issue closed.


result.match throws error

nlp_compromise.sentence("Where are you?").match("are")[0].match("are")
TypeError:  _match is not a function
Version: latest from head

ha, you got me. I went to answer your question and found the same thing ;)
will fix it today. it should return another [Result] i believe, but will check.
i owe you a beer

so this is happening because ./match.js requires ./result.js, and ./result.js requires ./match.js.
I had no idea that javascript would let this fail silently, or just return a null.
if anyone has any good ideas.. I may just shove some code around until it works. This stuff endlessly confuses me

Recursive dependencies are not fun.

hey, got this figured out now in v7. :dancing_men:  !
https://runkit.com/583f2a3dc534df0014136221/58c82491ee89c00015029394
thanks a bunch
cheers


Add Color module.

@MoOx As discussed on Discord:

This replaces Style.color with Color.t.
The latter is now not an abstract type anymore, but an alias to string.
This way people can just pass strings to color props like they can in JS.
This makes the API easier to use, but less safe.
For mitigation, we provide helper functions and constants for safe color creation/use in the Color module.

Being able to pass strings has upside in ease and downside in less safety, on the other hand, now people will not make mistakes with named colors (cornflowerblue, etc.) if they use the constants and not simply pass their names as string.
We could always move back to an abstract type, simply by adding a type-conversion function and defining an appropriate interface for the module. So overall, I agree this is a good move.
Great work and thanks for the huge effort.


Quiz with Ebbinghaus’ savings method / Spaced Repetition

More information about how to use Ebbinghaus’ savings method for the quiz here

#31 #34


⚠ Bofrost.lu has degraded performance

In 81dc23c, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1005 ms

Resolved: Bofrost.lu performance has improved in 2fa709a.


Apply changes returned by a server after PATCH request

JSONAPI allows server to return new data in response to PATCH request. Currently Orbit ignores these updates. I added this function by reusing the code that handles POST requests.

Published in v0.15.23


Update nearcore crates to include new function call weight

Needed for unit and sim tests. Updating this slipped my mind. There was also a refactor with that change that cuts the amount of code we need and makes unit tests match the actual runtime execution.
@miraclx do you still handle the releases for internal crates?
It's a quick change to make on the SDK and I will do this.

Yes, 0.13.0 is planned for the end of the month, do you need it sooner than that?

Closed with #820


List pack dependents

Answers the question: what packs depend on the provided pack?
pks list-pack-dependents <pack_name> will list the "public" dependents (better name?) and the dependents in violation (not using public API).

Thanks for your patience on the review for this one 🙏🏼 feel free to ping me if I haven't gotten to something in a bit

I made the requested changes. Thanks for the careful review @alexevanczuk!
I'm converting this to "draft" until I get back from vacation.


Crashes on 4 fingers touchpad swipes

Hyprland Version
 System/Version info
Hyprland, built from branch main at commit 7283dde8784ece1e5c0a47e9cbcc1696535ef098 dirty (screenShader: allow camel for screensize).
Date: Tue Mar 19 02:51:32 2024
Tag: v0.37.1-15-g7283dde8

flags: (if any)

System Information:
System name: Linux
Node name: TheLaptop
Release: 6.8.1-arch1-1-surface
Version: #1 SMP PREEMPT_DYNAMIC Thu, 21 Mar 2024 10:48:58 +0000

GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01) (prog-if 00 [VGA controller])

os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

plugins:

Bug or Regression?
Bug
Description
Hyprland freezes and crashes when swiping with more than three fingers on the touchpad.
I encountered the bug on surface laptop studio. I can not test on other devices. But here is the output of hyprctl devices. I thought it might be relevant.
mice:
	Mouse at 572363e44f50:
		microsoft-surface-045e:09ae-keyboard-1
			default speed: 0.00000
	Mouse at 572363fef000:
		microsoft-surface-045e:09af-mouse
			default speed: 0.00000
	Mouse at 572363e3d260:
		microsoft-surface-045e:09af-touchpad
			default speed: 0.00000

Keyboards:
	Keyboard at 572363e3cfa0:
		video-bus
			rules: r "", m "", l "us", v "", o "caps:escape, ctrl:menu_rctrl"
			active keymap: English (US)
			main: no
	Keyboard at 572363f9d7f0:
		microsoft-surface-045e:09ae-keyboard
			rules: r "", m "", l "us", v "", o "caps:escape, ctrl:menu_rctrl"
			active keymap: English (US)
			main: no
	Keyboard at 572363ff04c0:
		microsoft-surface-045e:09b0-keyboard
			rules: r "", m "", l "us", v "", o "caps:escape, ctrl:menu_rctrl"
			active keymap: English (US)
			main: no
	Keyboard at<PHONE_NUMBER>c0:
		microsoft-surface-045e:09ae
			rules: r "", m "", l "us", v "", o "caps:escape, ctrl:menu_rctrl"
			active keymap: English (US)
			main: yes
	Keyboard at 5723646ce250:
		wlr_virtual_keyboard_v1
			rules: r "", m "", l "us", v "", o "caps:escape, ctrl:menu_rctrl"
			active keymap: wvkbd
			main: yes

Tablets:
	Tablet at 57236340d720:
		intel-touch-host-controller-stylus

Touch:
	Touch Device at 572363db9a90:
		intel-touch-host-controller-touchscreen

Switches:
	Switch Device at 572363f5a5f0:
		Lid Switch
	Switch Device at 57236400c3d0:
		Microsoft Surface POS Tablet Mode Switch

How to reproduce
Swipe with more than 3 fingers on the touchpad
Crash reports, logs, images, videos
--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
*thud*

Hyprland received signal 11 (Segmentation fault)

Version: 7283dde8784ece1e5c0a47e9cbcc1696535ef098
Tag: v0.37.1-15-g7283dde8

System info:
	System name: Linux
	Node name: TheLaptop
	Release: 6.8.1-arch1-1-surface
	Version: #1 SMP PREEMPT_DYNAMIC Thu, 21 Mar 2024 10:48:58 +0000

GPU:
	00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] [8086:9a49] (rev 01) (prog-if 00 [VGA controller])

os-release:
	NAME="Arch Linux"
	PRETTY_NAME="Arch Linux"
	ID=arch
	BUILD_ID=rolling
	ANSI_COLOR="38;2;23;147;209"
	HOME_URL="https://archlinux.org/"
	DOCUMENTATION_URL="https://wiki.archlinux.org/"
	SUPPORT_URL="https://bbs.archlinux.org/"
	BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
	PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
	LOGO=archlinux-logo

Backtrace:
	#0 | Hyprland(_Z12getBacktracev+0x62) [0x5809f375b272]
		getBacktrace()
		??:?
	#1 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x6d3) [0x5809f371b7c3]
		CrashReporter::createAndSaveCrash(int)
		??:?
	#2 | Hyprland(_Z25handleUnrecoverableSignali+0x48) [0x5809f36b1658]
		handleUnrecoverableSignal(int)
		??:?
	#3 | /usr/lib/libc.so.6(+0x3c770) [0x7053da65a770]
		??
		??:0
	#4 | Hyprland(_ZN13CInputManager13onSwipeUpdateEP30wlr_pointer_swipe_update_event+0x42) [0x5809f37980c2]
		CInputManager::onSwipeUpdate(wlr_pointer_swipe_update_event*)
		??:?
	#5 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7053db12a01e]
		??
		??:0
	#6 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7053db12a01e]
		??
		??:0
	#7 | /usr/lib/libwlroots.so.13032(+0x50cbc) [0x7053db186cbc]
		??
		??:0
	#8 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xa2) [0x7053db12bae2]
		??
		??:0
	#9 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7053db12c2d7]
		??
		??:0
	#10 | Hyprland(main+0x7fa) [0x5809f3697d2a]
		main
		??:?
	#11 | /usr/lib/libc.so.6(+0x25cd0) [0x7053da643cd0]
		??
		??:0
	#12 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7053da643d8a]
		??
		??:0
	#13 | Hyprland(_start+0x25) [0x5809f36ae5c5]
		_start
		??:?

Log tail:
[LOG] Registered signal for owner 5809f59ad830: 5809f59ad538 -> 5809f59ad8e0 (owner: CWLSurface)
[LOG] CWLSurface 5809f59ad830 called init()
[LOG] LayerSurface 5809f5a58560 mapped
[LOG] Registered signal for owner 5809f59e4490: 5809f59adf88 -> 5809f59e44d8 (owner: CWLSurface)
[LOG] Registered signal for owner 5809f59e4490: 5809f59adf48 -> 5809f59e4540 (owner: CWLSurface)
[LOG] CWLSurface 5809f59e4490 called init()
[LOG] [hookSystem] New hook event registered: mouseButton
[LOG] [hookSystem] New hook event registered: keyPress
[LOG] Keybind triggered, calling dispatcher (64, , 65293)
[LOG] Executing kitty
[LOG] Process Created with pid 107625
[LOG] New TextInput added!
[LOG] Registered signal for owner 5809f5a50ef0: 5809f59c8de8 -> 5809f5a50f08 (owner: textInput)
[LOG] Registered signal for owner 5809f5a50ef0: 5809f59c8df8 -> 5809f5a50fd8 (owner: textInput)
[LOG] Registered signal for owner 5809f5a50ef0: 5809f59c8e08 -> 5809f5a50f70 (owner: textInput)
[LOG] Registered signal for owner 5809f5a50ef0: 5809f59c8e18 -> 5809f5a51040 (owner: textInput)
[LOG] New XDG Toplevel created. (class: null)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f5a61568 -> 5809f5a5ec28 (owner: XDG Window)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59c4b48 -> 5809f5a5ecf8 (owner: XDG Window)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f5a61558 -> 5809f5a5ebc0 (owner: XDG Window)
[types/xdg_shell/wlr_xdg_surface.c:169] A configure is scheduled for an uninitialized xdg_surface 0x5809f59c4aa0
[LOG] Searching for matching rules for kitty (title: kitty)
[LOG] Layout predicts size [Vector2D: x: 1920, y: 1280] for [Window 5809f5a5ebc0: title: ""]
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59fc9b0 -> 5809f5a5f170 (owner: Toplevel)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59fc9c0 -> 5809f5a5f1d8 (owner: Toplevel)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59fc9d0 -> 5809f5a5f108 (owner: Toplevel)
[LOG] Registered signal for owner 5809f5a5f3e0: 5809f5a61598 -> 5809f5a5f428 (owner: CWLSurface)
[LOG] Registered signal for owner 5809f5a5f3e0: 5809f5a61558 -> 5809f5a5f490 (owner: CWLSurface)
[LOG] CWLSurface 5809f5a5f3e0 called init()
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f5a61578 -> 5809f5a5ec90 (owner: CWindow)
[LOG] Registered signal for owner 5809f59ca9a0: 5809f5a61588 -> 5809f59caa70 (owner: CSubsurface Head)
[LOG] Registered signal for owner 5809f59e4cc0: 5809f59c4b68 -> 5809f59e4e40 (owner: CPopup Head)
[LOG] Searching for matching rules for kitty (title: bash)
[LOG] OPENINGON: [Node nullptr], Monitor: 0
[LOG] Set keyboard focus to surface 5809f5a61280, with [Window 5809f5a5ebc0: title: "bash"]
[LOG] Searching for matching rules for kitty (title: bash)
[LOG] [hookSystem] New hook event registered: activeWindow
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59cd168 -> 5809f5a5ed60 (owner: XDG Window Late)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59cd0f8 -> 5809f5a5ef68 (owner: XDG Window Late)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59cd118 -> 5809f5a5ef00 (owner: XDG Window Late)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59cd128 -> 5809f5a5ee98 (owner: XDG Window Late)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59cd138 -> 5809f5a5efd0 (owner: XDG Window Late)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59cd108 -> 5809f5a5ee30 (owner: XDG Window Late)
[LOG] Registered signal for owner 5809f5a5ebc0: 5809f59c4b88 -> 5809f5a5f378 (owner: XDG Window Late)
[LOG] Map request dispatched, monitor eDP-1, window pos: [332.00000, 1491.00000], window size: [1896.00000, 1217.00000]
[LOG] Searching for matching rules for kitty (title: bash)
[LOG] cursorImage request: shape 9
[LOG] cursorImage request: shape 9
[LOG] cursorImage request: shape 9
[LOG] [hookSystem] New hook event registered: windowTitle
[LOG] Searching for matching rules for kitty (title: user@TheLaptop:~)
[LOG] Window 5809f5a5ebc0 set title to user@TheLaptop:~
[LOG] cursorImage request: surface 0
[LOG] Activate request for surface at 5809f5a61280

this was fixed, update


Epic science update

Briefly, what does this PR introduce?
This PR introduces update on ePIC Science webpage for the public. It incorporates feedback from @ullrich-bnl and includes pictures from BNL resources.
What kind of change does this PR introduce?

[ ] Bug fix (issue #__)
[x] New feature (issue #__)
[ ] Documentation update
[ ] Other: __

Please check if this PR fulfills the following:

[ ] Tests for the changes have been added
[ ] Documentation has been added / updated
[x] Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?
No
Does this PR change default behavior?
Yes

@buddhasystem, I did not modify the css style for the figure caption, but feel free to add the style I introduced directly in the caption in the css style file if you wish so.
        figure {
            text-align: center;
        }
        figcaption {
            font-size: 0.9em;
            font-style: italic;
            color: #555;
            margin-top: 10px;
        }
        .main-text {
            margin-top: 20px;
        }

Regarding the picture sizes. I didn't modify them in any way and they are really huge for the webpage (for the square pictures). One could fix it for 50% page width or so for the square pictures, but this looks bad on small screens (phone). I do not know if github pages can easily introduce a mobile friendly version of the webpage, but for now I leave it like that. Feel free to introduce other solution.

I'll update the code for better figure resizing.


Fixes issue #23

Didn't intend to include the last 2 commits with this pull request but I couldn't figure out a way to remove them ... githubfail

saw change in 3d1d804 was already added so no pull required


Only able to access LAN

Setup the container using docker-compose up, no changes to the configuration. Then created a new device, selected iOS and scanned the QR code.
I can then connect and the web interface traffic stats start to go up. When trying to access any webpage, I get a connection time out. Connecting to any of my internal devices (ie. router webpage) seems to work no problem. I'm not sure if having my network on 172.16.x.x has caused some kind of conflict?
I'm not sure what logs I can post to help debug this. If you know of any information I can get that would be useful, i'll be happy to post it.

Looks like this was a DNS issue, changing the DNS fixed this issue.

@Adzter glad you got it fixed. what did you need to change to solve your issue?
my goal is to make this the easiest VPN solution to run for enthusiasts so I want to make sure the defaults work out of the box :)