Unable to perform db setup

[deepthought pd] python run.py maintenance reprime_cache
Unable to initialize oracle. I'll build it now. If this is happening on user time this is bad. Failed to execute `SELECT * FROM _cache_card AS c WHERE ((1 = 1) AND (1 = 1))` with `[]` because of `(1146, "Table 'magic._cache_card' doesn't exist")`
Fetching https://mtgjson.com/json/version.json (cache ok)
Database update required
Storing https://mtgjson.com/json/AllCards-x.json.zip in /Users/bakert/.Penny-Dreadful-Discord-Bot/zip/zip.zip
Storing https://mtgjson.com/json/AllSets.json.zip in /Users/bakert/.Penny-Dreadful-Discord-Bot/zip/zip.zip
Traceback (most recent call last):
  File "/Users/bakert/pd/shared/database_mysql.py", line 45, in execute
    self.cursor.execute(sql, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line 250, in execute
    self.errorhandler(self, exc, value)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler
    raise errorvalue
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line 247, in execute
    res = self._query(query)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line 411, in _query
    rowcount = self._do_query(q)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line 374, in _do_query
    db.query(q)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/connections.py", line 277, in query
    _mysql.connection.query(self, query)
_mysql_exceptions.ProgrammingError: (1146, "Table 'magic._cache_card' doesn't exist")

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/bakert/pd/decksite/__init__.py", line 13, in <module>
    oracle.init()
  File "/Users/bakert/pd/magic/oracle.py", line 17, in init
    for c in load_cards():
  File "/Users/bakert/pd/magic/oracle.py", line 65, in load_cards
    rs = db().execute(sql)
  File "/Users/bakert/pd/shared/database_mysql.py", line 56, in execute
    raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))
shared.pd_exception.DatabaseException: Failed to execute `SELECT * FROM _cache_card AS c WHERE ((1 = 1) AND (1 = 1))` with `[]` because of `(1146, "Table 'magic._cache_card' doesn't exist")`

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "run.py", line 77, in <module>
    run()
  File "run.py", line 32, in run
    task(sys.argv)
  File "run.py", line 51, in task
    from decksite.main import APP
  File "/Users/bakert/pd/decksite/__init__.py", line 16, in <module>
    multiverse.init()
  File "/Users/bakert/pd/magic/multiverse.py", line 22, in init
    update_database(current_version)
  File "/Users/bakert/pd/magic/multiverse.py", line 122, in update_database
    insert_set(s)
  File "/Users/bakert/pd/magic/multiverse.py", line 248, in insert_set
    card_id = CARD_IDS[card_name(c)]
KeyError: 'Mayor of Avabruck // Howlpack Alpha'
[deepthought pd] python run.py maintenance reprime_cache
Unable to initialize oracle. I'll build it now. If this is happening on user time this is bad. Failed to execute `SELECT * FROM _cache_card AS c WHERE ((1 = 1) AND (1 = 1))` with `[]` because of `(1146, "Table 'magic._cache_card' doesn't exist")`
Fetching https://mtgjson.com/json/version.json (cache ok)
Database update required
Storing https://mtgjson.com/json/AllCards-x.json.zip in /Users/bakert/.Penny-Dreadful-Discord-Bot/zip/zip.zip
Storing https://mtgjson.com/json/AllSets.json.zip in /Users/bakert/.Penny-Dreadful-Discord-Bot/zip/zip.zip
Traceback (most recent call last):
  File "/Users/bakert/pd/shared/database_mysql.py", line 45, in execute
    self.cursor.execute(sql, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line 250, in execute
    self.errorhandler(self, exc, value)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/connections.py", line 50, in defaulterrorhandler
    raise errorvalue
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line 247, in execute
    res = self._query(query)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line 411, in _query
    rowcount = self._do_query(q)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/cursors.py", line 374, in _do_query
    db.query(q)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/MySQLdb/connections.py", line 277, in query
    _mysql.connection.query(self, query)
_mysql_exceptions.ProgrammingError: (1146, "Table 'magic._cache_card' doesn't exist")

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/bakert/pd/decksite/__init__.py", line 13, in <module>
    oracle.init()
  File "/Users/bakert/pd/magic/oracle.py", line 17, in init
    for c in load_cards():
  File "/Users/bakert/pd/magic/oracle.py", line 65, in load_cards
    rs = db().execute(sql)
  File "/Users/bakert/pd/shared/database_mysql.py", line 56, in execute
    raise DatabaseException('Failed to execute `{sql}` with `{args}` because of `{e}`'.format(sql=sql, args=args, e=e))
shared.pd_exception.DatabaseException: Failed to execute `SELECT * FROM _cache_card AS c WHERE ((1 = 1) AND (1 = 1))` with `[]` because of `(1146, "Table 'magic._cache_card' doesn't exist")`

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "run.py", line 77, in <module>
    run()
  File "run.py", line 32, in run
    task(sys.argv)
  File "run.py", line 51, in task
    from decksite.main import APP
  File "/Users/bakert/pd/decksite/__init__.py", line 16, in <module>
    multiverse.init()
  File "/Users/bakert/pd/magic/multiverse.py", line 22, in init
    update_database(current_version)
  File "/Users/bakert/pd/magic/multiverse.py", line 122, in update_database
    insert_set(s)
  File "/Users/bakert/pd/magic/multiverse.py", line 248, in insert_set
    card_id = CARD_IDS[card_name(c)]
KeyError: 'Mayor of Avabruck // Howlpack Alpha'

This is hacked around and removing the hack is covered by #4230.


New UnionRange type

Description
We would like to add a UnionRange type for representing a union combination of NotEmptyRange.
This new range type allows users to check if a specified value is contained in multiple ranges. For instance, this should be useful for the NonZeroInt type that is forced to have 2 ranges properties for achieving this behavior: positiveRange and negativeRange.
val first: NotEmptyRange<Int> = notEmptyRangeOf { 1.inclusive to 10.exclusive }
val second: NotEmptyRange<Int> = notEmptyRangeOf { 10.inclusive to 30.exclusive }
val third: NotEmptyRange<Int> = notEmptyRangeOf { 0.exclusive to (-10).inclusive }
val union: UnionRange<Int> = first + second + third
assertTrue(3 in union) // because 'first' contains 3
assertTrue(10 in union) // because 'second' contains 10
assertTrue(-7 in union) // because 'third' contains -7
assertFalse(0 in union) // because no range contains 0

Here's the minimal API that this new type should provide:
interface UnionRange<T : Comparable<T>> {
     val first: NotEmptyRange<T>
     val others: NotEmptySet<NotEmptyRange<T>>

     override fun toString(): String
 }

operator fun <T : Comparable<T>> UnionRange<T>.contains(value: T): Boolean

operator fun <T : Comparable<T>> NotEmptyRange<T>.plus(other: NotEmptyRange<T>): UnionRange<T>
operator fun <T : Comparable<T>> UnionRange<T>.plus(other: NotEmptyRange<T>): UnionRange<T>
operator fun <T : Comparable<T>> UnionRange<T>.plus(other: UnionRange<T>): UnionRange<T>

Dependencies
This issue is blocked by the following ones:

[ ] #225 for checking if the first range is not included in others and vice-versa.

Checklist

[ ] Implement and test the type, then update the public API binaries and check the generated documentation.
[ ] Implement and test the contains operation, then update the public API binaries and check the generated documentation.
[ ] Implement and test the NotEmptyRange<T>.plus(NotEmptyRange<T>) operation, then update the public API binaries and check the generated documentation.
[ ] Implement and test the UnionRange<T>.plus(NotEmptyRange<T>) operation, then update the public API binaries and check the generated documentation.
[ ] Implement and test the UnionRange<T>.plus(UnionRange<T>) operation, then update the public API binaries and check the generated documentation.
[ ] Refactor the companion object of the NonZeroInt type for using the UnionRange type instead of the positiveRange and negativeRange properties.
[ ] Update the Unreleased section in changelog.

The NotEmptyRange type will be removed in #618 due to an internal compilation error of Kotlin when comparing generic types.


Minor style updates for cookbook

Added some minor design tweaks and color to the design of SWC

r? for @brendandahl

Rebased!

Rebased again!


renameShorthandProperties has confusing name

VSCode Version: 1.43.2
OS Version: macOS 10.15.4

Steps to Reproduce:

Try to understand the renameShorthandProperties setting

I have been trying to get my head around the renameShorthandProperties setting. After reading through https://github.com/microsoft/TypeScript/issues/29238 and running some tests, it seems that this setting may have been named or configured incorrectly. For this reason, I am suggesting some changes.
As far as I can tell, the setting name represents what the setting will do when disabled—not what it will do when it's enabled (the default).
Example from https://github.com/microsoft/TypeScript/issues/29238#issuecomment-457664835:
const x = {
	y: 'value'
//  ^- rename at key
}
const { y } = x;
//      ^- rename at declaration
console.log(y);
//          ^- rename at use

What happens if I rename at use (with the default setting)?
The setting name ("rename shorthand properties") and its default value of true would seem to suggest that an alias should not be introduced, and the destructured property (aka "shorthand property") should also be renamed:
const x = {
    s: 'value',
};
const { s } = x;
console.log(s);

However, the opposite will happen: the destructured property will be aliased, not renamed:
const x = {
    y: 'value',
};
const { y: s } = x;
console.log(s);

Am I right in thinking this is potentially confusing, or do I misunderstand something?
If my thinking is correct, I believe the setting should be renamed (to avoid confusion), or the current name can stay but the default should be flipped from true to false, to reflect what the setting is actually doing. Note however that this would be a breaking change.

Does this issue occur when all extensions are disabled?: Yes
Related:

https://github.com/microsoft/vscode/commit/b4522997ac7ff1e76d49b951868c63ad683618cf
https://github.com/microsoft/TypeScript/issues/29238

Yes the general idea of what this setting does is captured in the description:

Enable/disable introducing aliases for object shorthand properties during renames

PRs welcome if you have a suggestion for a different name

I don't think we need to rename the setting, but rather I think the boolean should be flipped, so that the name matches the behaviour.

If my thinking is correct, I believe the setting should be renamed (to avoid confusion), or the current name can stay but the default should be flipped from true to false, to reflect what the setting is actually doing. Note however that this would be a breaking change.

We can't flip the value of an existing setting because that will flip the setting for everyone who has changed it, but we can flip (or modify) the setting name name if you have thoughts on that

What is currently "renameShorthandProperties": true could be mapped to:

"doNotRenameShorthandProperties": true
"safeRenames": true
"useAliasesForRenames": true

Renamed to useAliasesForRenames
For verification:

Make sure the new setting works (useAliasesForRenames)
Make sure the old setting still works if you don't use the new setting
Make sure the old setting is marked as deprecated


Bugs with the Bosses

The bosses in my game were summoning invisibility and it's basically impossible to beat someone who kills you with 1hit and is still invisible.
After dying several times, he appeared once and the movement speed is absurd, it is faster than the player himself, even if he is running.
In the link below is a screenshot showing my instant death, a short video of when he appeared in the game and the absurd speed, and lastly, the number of times I died in a short time due to this bug. Please correct this, the mod is great, but these bosses are totally unbalanced.
https://drive.google.com/drive/folders/1CyhU-fnz8s1SaaJt5CZUFdjT7qODFiT6?usp=sharing

Bosses are currently being reworked to have a fixed set of possible potion effects and attributes, so this will be resolved with that.


Bolt writes the code in the chat and not in the code editor

Describe the bug
Bolt writes the code in the chat and not in the code editor (the StackBlitz project)...
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-trxxe7rj
Steps to reproduce

Write a prompt.
Check if Bolt modifies the code.

Expected behavior
Bolt should modify the code and not writing the code in the conversation/chat window.
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = <IP_ADDRESS>
Major version = 128
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36 OPR/<IP_ADDRESS>
performance.memory = {
  "totalJSHeapSize": 154148546,
  "usedJSHeapSize": 131952570,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Username = heavenswap
Chat ID = 52dcd36ab2fa

Additional context
No response

I have the same issue, this is super annoying. Looks like some recent upgrade. it was not the case earlier.


fixed the typo in docs/index.html

Describe your changes
Found and fixed typo in the 'alt' attribute of img tag
Screenshots - If Any (Optional)
Issue ticket number and link
Checklist before requesting a review

[ ] My code follows the style guidelines of this project
[ ] I have commented on my code, particularly in hard-to-understand areas
[ ] I have performed a self-review of my code
[ ] If it is a core feature, I have added thorough tests.
[ ] New and existing unit tests pass locally with my changes

Please open the PR against the dev branch (Unless the PR contains only documentation changes)

Merged


Fixed url-generation and save button

informations:

q
a

Fixed tickets
fixes https://github.com/sulu-io/sulu/issues/428

Related PRs
none

BC breaks
none

Documentation PR
none

@danrot fixed


Create a wiki page for the repository

Create the wiki for this repository with details on the purpose and road map for the project.

I've started working on the wiki pages.  More work to do.

Wiki page added with introduction, the SQL script used and how to use the library.


Another One: Warning: a promise was created in a handler but was not returned from it

What is wrong with this function since I am getting that warning too?
// Iterate over all items stored in database.
function iterate(iterator, callback) {
    var self = this;

    var promise = new Promise(function (resolve, reject) {
        self.ready().then(function () {
            var dbInfo = self._dbInfo;
            var store = dbInfo.db.transaction(dbInfo.storeName, 'readonly').objectStore(dbInfo.storeName);

            var req = store.openCursor();
            var iterationNumber = 1;

            req.onsuccess = function () {
                var cursor = req.result;

                if (cursor) {
                    var value = cursor.value;
                    if (_isEncodedBlob(value)) {
                        value = _decodeBlob(value);
                    }
                    var result = iterator(value, cursor.key, iterationNumber++);

                    if (result !== void 0) {
                        resolve(result);
                    } else {
                        cursor['continue']();
                    }
                } else {
                    resolve();
                }
            };

            req.onerror = function () {
                reject(req.error);
            };
        })['catch'](reject);
    });

    executeCallback(promise, callback);

    return promise;
}

What is the stack trace?

Please ask support questions on e.g. stackoverflow. And attach the stack trace.


I don't know how to use it...

Hello !
I am trying to create a login system with notifications if the connection is successful or not. My website being in PHP and because I wanted to use Toastr, I discovered PHPFlasher. Unfortunately, I'm still a beginner, and I'm a bit confused by the documentation. I successfully installed the package using composer, but I can't make it work.
I take the ToastrFactory instance and I put it in a file named notifications.php. So I have that :
<?php

namespace App\Controller;

use Flasher\Toastr\Prime\ToastrFactory;

class NotifyController
{
	public function flasher(ToastrFactory $flasher)
	{
		// ...
		$flasher->addSuccess('Data has been saved successfully!');

		// ... redirect or render a view here
	}
} ?>

I do a require in the login page, and after I don't know how to use it...
So, can someone help me ? ^^

Hello @ItsWidee, thanks for using this package, I really don't have time to document all parts of this library.
do you have any github repository on which i can help you using this library.
this is my personal email<EMAIL_ADDRESS>

are you using a Framework like Symfony or Laravel or Plain PHP project ?

Hello @yoeunes, thank you for the quick answer.
I'm using plain PHP. Unfortunately, I can't share you all the code, as it is still personal. But I can share the codes of the login and notification pages.
notifications.php :
<?php

namespace App\Controller;

use Flasher\Toastr\Prime\ToastrFactory;

class NotifyController
{
	public function flasher(ToastrFactory $flasher)
	{
		// ...
		$flasher->addSuccess('Data has been saved successfully!');

		// ... redirect or render a view here
	}
} ?>

login.php :
<?php require_once 'includes/needed.php';
require_once 'includes/db.php';

if (isset($_SESSION['auth'])) {
    header('Location: account.php');
}

if (!empty($_POST['pseudo']) && !empty($_POST['mdp'])) {
    require_once 'includes/db.php';
    $req = $pdo->prepare('SELECT * FROM users WHERE (username = :username OR email = :username) AND (confirmed_at IS NOT NULL AND is_confirmed = 1)');
    $req->execute(['username' => $_POST['pseudo']]);
    $user = $req->fetch();
    if ($user) {
        if (password_verify($_POST['mdp'], $user['password'])) {
            if ($_POST['remember']) {
                $remember_token = str_random(250);
                $pdo->prepare('UPDATE users SET remember_token = ? WHERE id = ?')->execute([$remember_token, $user['id']]);
                setcookie('remember', $user['id'] . '==' . $remember_token . sha1($user['id'] . 'ratonlaveurs'), time() + 60 * 60 * 24 * 7);
                $_SESSION['auth'] = $user;
                // success notifications THEN redirection w/ header
            } else {
                $_SESSION['auth'] = $user;
                // success notifications THEN redirection w/ header
            }
        } else {
           // error notifications
        }
    } else {
       // error notifications
    }
}

?>
//There's HTML after

needed.php :
<?php

session_set_cookie_params(["SameSite" => "Strict"]); //none, lax, strict
session_set_cookie_params(["Secure" => "true"]); //false, true
session_set_cookie_params(["HttpOnly" => "true"]); //false, true
session_start(); //everything before this

if (session_status() == PHP_SESSION_NONE) {
    session_start();
}
require_once 'functions.php';

//reconnect_from_cookie();

require_once 'vendor/autoload.php';

?>
<!-- Inclusion de scripts -->
<script src="/ressources/scripts/jquery/jquery.min.js"></script>
<script src="/ressources/scripts/toastr/toastr.min.js"></script>
<script src="/ressources/scripts/options.js"></script>

<?php require 'includes/notifications.php'; ?>

Here's the important files. In the condition in the login file, as the comments said, I want to put the toastr notifications using flasher, but I don't know how to do it...

hi @ItsWidee OK, i'll look at it in a moment

No problem ! Take your time ^^

Hello again, you can take a look at this demo :
https://github.com/yoeunes/plain-php-flasher-demo
if you have any questions let me know ^^

Thanks a lot !!!
It works perfectly fine !
But I have a question : can I send the notification to another page ? After my user is successfully connected, I want to show him a notification in the account page. I've tried to create the builder in the login page then to render in the account page, but it doesn't work.

hello @ItsWidee  I just pushed the new code, to render the notification after redirection, check it out
and tell me if it works for you

Oh, I find the problem.
So, I tried to put this code in my code, and it doesn't work. I found the problem : I execute the renderer in all my pages, so if a notification is waiting, it is executed. The thing is that all the PHP code is executed, so it does a redirection, but it thinks it has already executed the notification. So when it arrives in the account file, the code doesn't render the notification.
Is there a way to correct this ?

did you try to put exit; after the redirection code ?
header('Location: /account.php');
exit();

Oh ! It seems to work, but I now have a fatal error that... I can't really understand...
Fatal error: Uncaught TypeError: Argument 1 passed to Flasher\Prime\Filter\FilterBuilder::Flasher\Prime\Filter\{closure}() must be an instance of Flasher\Prime\Envelope, instance of __PHP_Incomplete_Class given in D:\wamp64\www\StoryShare\new\vendor\php-flasher\flasher\Filter\FilterBuilder.php on line 75

if you take a look at this file : https://github.com/yoeunes/plain-php-flasher-demo/blob/main/includes/init.php
include_once __DIR__ . '/flasher.php';

if (session_status() == PHP_SESSION_NONE) {
    session_start();
}

session_start() should be declared after including the flasher.php that will resolve the problem

That is perfect, It works perfectly fine. I'm going to close this issue, because everything works now !
Thanks a lot for your help and for creating this PHP package !
Have a great day !

hello @ItsWidee thanks for your feedback,
Bonne journée à toi également ^^.


Auto light/dark mode

Is your feature request related to a problem? Please describe.
Currently changing theme is a manual process. With OS/browsers being able to automatically change from light to dark mode it'd make sense to have MS Docs have an option to follow the same light/dark mode that your browser/OS is in.
Describe the solution you'd like
There is a new CSS property to detect what mode your browser is in, https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme. It'd be nice if this was implemented under an "Auto" theme so when the clock strikes 6 and all my windows go dark, that MS Docs will follow.

Thank you for the feedback! This capability has since been implemented, and docs.microsoft.com is now OS theme-aware!


chore(model-server): remove implementation of LightModelServer from model-server code

The implementation org.modelix.model.server.handlers.LightModelServer was only used as a fake to test the light-model-client.
Renaming and moving it into the test code of the light-model-client helps to understand that.
The light-model-server implementation running in MPS is org.modelix.model.server.light.LightModelServer.
The next step would be to remove FakeLightModelServer and use org.modelix.model.server.light.LightModelServer to test the light-model-client.
See MODELIX-994
To be verified by reviewers

[ ] Relevant public API members have been documented
[ ] Documentation related to this PR is complete

[ ] Boundary conditions are documented
[ ] Exceptions are documented
[ ] Nullability is documented if used

[ ] Touched existing code has been extended with documentation if missing
[ ] Code is readable
[ ] New features and fixed bugs are covered by tests

I don't understand this PR. The title says that the model-server code is affected, but I only see changes in light-model-client. Also, some explanations in the commit message and/or the PR would be good.

I updated the commit message. It should be more clear now.

:tada: This PR is included in version 8.16.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Adding doc requirements file

What do these changes do?
Fixes memory issue with docs builds

Related issue number

[x] passes git diff upstream/master -u -- "*.py" | flake8 --diff
[x] passes black --check modin/

Merged build finished. Test FAILed.

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


lib path no longer on path?

In the beta, and latest master, git branch, merge, etc, which used import git.branch, etc, no longer function.   did we used to place stash/lib into sys.path?
If we are moving away from that, perhaps we can add _init__.py to the lib folder, so that we can use from lib.git.branch.

never mind.., apparantly i had gotten things in a funny configuration

The $STASH_ROOT/lib was not part of sys.path. Your git code manually adds it at line 44.
However, this is now changed in the dev branch with commit e59d6c76d3002cddcb08f2a2da680ec5c63d09ff
The default PYTHONPATH is set to $STASH_ROOT/lib. So any scripts run within StaSh now have the lib path in sys.path. The advantage of using an environment variable is that it only affects scripts invoked from within the shell, i.e. it won't affect the interactive prompt.


Straight up doesn't work

Basic basic usage. No other CSS or Javascript. Not colorizing at all. I tried modes and everything.

Hi, I'd just like to chime in that I'm currently in the exact same position. The Examples on the site don't clearly indicate what needs to be included and the source for the demo files has lots of stuff that isn't obviously related to editing, so again it's unclear exactly what are dependencies to get a simple HTML mode going and what is related to the greater demo page.
Even something as simple as explanatory comments in the demo pages would help. Or maybe create a basic HTML/JS/CSS demo as suggested above?
Perhaps even just explain somewhere that "htmlmixed" mode doesn't imply that it contains everything to get an html mixed mode environment working? The name suggests that the one extra file should be enough.

I had the same problem, don't want to use a dependency loader and its really not clear what the dependencies are on htmlmixed mode and the basic examples page is pretty misleading. Shame 'cause once its going its awesome.

There's no documentation anywhere that explicitly states that we have to load ANY "mode" at all. I landed here in search for the fix for htmlMode.startState is not a function, once I read someone say to "Read the documentation". Which they meant, look for that one comment that tells you vaguely how to use a project.
I would suggest reworking the project documentation, in its current state it assumes too much. Give a basic example on Prettying JS and HTML, and people will understand.

@shrimpwagon, :+1:
Indeed, it is not obvious that it is needed to include all the dependent libs to use htmlmixed mode, if no module loader is used. I've been looking through docs for some time, until I tried to google an answer and found this issue.

I also spent way too long looking for the solution to this problem.
Please consider updating the documentation.


Add Hopkins School domain for faculty and students

Hopkins School uses<EMAIL_ADDRESS>for teachers and<EMAIL_ADDRESS>for students. Both are added in this commit.
Here is our Computer Science curriculum offerings. You will also see on that page two example emails of teachers using the proper domain. We do not show any student emails publicly.

@guyest Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.

@guyest Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.


Provide an easy way to switch between RStudio, Notebook & Lab

Currently, if you wanna switch between JupyterLab / RStudio / Notebook,
you have to edit the URL. This is a clever solution but not really user
friendly.
Instead, we should make it very easy for folks to switch between these
interfaces.
Classic Notebook
We need a notebook extension that does the following:

Shows other UI options more visibly (currently they're under 'New ->').
A bit more in-your-face in the tree view
Adds an easy way to 'open current notebook in JupyterLab'

JupyterLab
The launcher already provides an easy way to get to RStudio, so we don't
actually need to do anything there for that. But...

Add an entry for classic notebook in the launcher, so people can switch
back if needed
Add an easy way to 'open current notebook in classic notebook'

RStudio
We don't have a lot of expertise in modifying & extending RStudio. Similar
switching functionality would be great, and might be provided by writing
RStudio Extensions
Home page
We should allow users to choose the interface they wanna get into from the
home page - similar to what we do in the UToronto Hub

Another option would be to decide on a centralized place to be a bottleneck for switching UIs. That way we don't have to invent 2^N UI->UI connections. E.g. we could either use the Control Panel to switch UIs, or use a "default UI" like a JupyterLab launcher window or something. Would that make sense?
I also think that being able to choose the UI from the login page, and for users to choose their own default UI, would help a lot. In my experience people don't often fluidly switch between UIs, but for some content they may prefer RStudio and others JupyterLab etc. So I don't know that it needs to be extremely easy to quickly switch UIs, just possible and predictable.


Implement evaluate_bounds for math unary functions

Is your feature request related to a problem or challenge?
I noticed during https://github.com/apache/datafusion/pull/11559 that evaluate_bounds, which is used as part of determining a functions mononicity was not implemented so the trait default is used.
For many of these functions (e.g. cos) and more narrow set of bounds can be used.
Describe the solution you'd like
Update the unary math scalar function macro to take an evaluate bounds function, and implement that function where appropriate.
Describe alternatives you've considered
No response
Additional context
No response

take

FYO @mustafasrepo and @boazberman


Implement linter and it's GitHub action

In order to maintain code consistency, a suggestion to use linter like spotless and also add it's GitHub action to check the formatting in new PRs

We already have the kotlin formatter included.


max_program_size deprecated but still enforced by client

Relevant Slack thread: https://envoyproxy.slack.com/archives/C78HA81DH/p1589406573415000
max_program_size from RegexMatcher.GoogleRE2 was deprecated in https://github.com/envoyproxy/envoy/pull/10971 in favor of having the control plane enforce the regex max program size. However the size is still enforced with a default max of 100 if the config does not specify the field: https://github.com/envoyproxy/envoy/blob/302edab55f534abd3f83a297f994b31cf3fb8f92/source/common/common/regex.cc#L50-L56
We should consider not enforcing that check if the max_program_size field isn't set in the config (which will happen soon as the field is deprecated) or having the check operate based on runtime flags, another config field, etc.

cc @htuch @jmarantz @markdroth

We should consider not enforcing that check if the max_program_size field isn't set in the config (which will happen soon as the field is deprecated) or having the check operate based on runtime flags, another config field, etc.

Agreed, this is the simple fix and we should just do it. However, I still think this information has value Envoy side and I wonder if we should warn about it? But that could be done as a separate follow up. Potentially with a max program size driven from runtime or something? Curious of the thoughts of others here.

Potentially with a max program size driven from runtime or something? Curious of the thoughts of others here.

Can we potentially add a histogram stat indicating the regex_program_size and log at debug/trace level the regex and program size - so that no additional config needed, but we get information needed?

Can we potentially add a histogram stat indicating the regex_program_size and log at debug/trace level the regex and program size - so that no additional config needed, but we get information needed?

Yeah I think we should do something like this, either with optional warnings, stats, etc. I think we should land Lisa's fix though since the current behavior is not correct, but let's discuss in the PR.


Aux window: different size monitors causes floating window to flicker

Does this issue occur when all extensions are disabled?: Yes/No
Yes

VS Code Version: 1.85.0
af28b32d7e553898b2a91af498b1fb666fdebe0c
x64

OS Version: Linux 5.15.0-89-generic #99~20.04.1-Ubuntu SMP Thu Nov 2 15:16:47 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Steps to Reproduce:

Open a floating window
Put it on another display, one that is bigger than the main window one
Move between splits in the main window
Observe editor flicker, I assume it resizes to the main window size briefly

https://github.com/microsoft/vscode/assets/25119292/7aede10e-19ae-48f8-9a15-74791d73d371
^Video example, main screen (on the right) isn't fully displayed but it's smaller than the left display. The black bar jumping is the status bar (or w.e it's called), and is the "flicker" I talk about.

Exact steps please.

Open main window on smaller monitor (1920x1080 in my case), maximize it
Open floating window View: New Empty Editor Window
Move floating window to bigger monitor (1920x1200 in my case), maximize it
Open a vertical split on both main/floating windows
Focus main window, open empty files on the splits
Spam ctrl+1/2 to switch focus between splits
Observe the bottom status bar jump up/down on the floating window (the bigger monitor) that isn't focused

I cannot reproduce and so far it was not reported by others, maybe an issue specific to your setup?
Can you see if it still reproduces when disabling the GPU support in VSCode? You can do that by running VSCode from the command line like this: code --disable-gpu
If that helps, you can permanently configure this option via:

Command Palette search for "Configure Runtime Arguments"
Set disable-hardware-acceleration: true
Restart

I have the exact same flickering issue as stated with both VSCode and VSCode Insiders.
I am using a triple monitor setup (each 1920x1080).
The size of both windows (e.g. maximized vs arbitrary size) and the number of floating windows do not seem to have any influence on the mentioned behavior, as the flickering still occurs in my tests with one or more floating windows of any size.
Copy from VSCode "About":

Version: 1.85.1
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:47:11.635Z
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: <IP_ADDRESS>-electron.0
OS: Linux x64 6.6.7-arch1-1

Is it maybe related to the window.titleBarStyle. Do people reproduce this with window.titleBarStyle set to custom?

Its quite bizarre to me: when native title is enabled, I see random Resize events on the floating window when switching window focus. The first event seems to return a height without title and then a second event comes in with the title, causing the flicker 🤔
https://github.com/microsoft/vscode/blob/b0d1f894c38a163ac23e400d41c800decede6117/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.ts#L100-L106

This bug has been fixed in the latest release of VS Code Insiders!
@losnappas, you can help us out by commenting /verified if things are now working as expected.
If things still don't seem right, please ensure you're on version 442c133fe92b5e2606c8242caae4e68938faccc7 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
Happy Coding!

I did not observe any flicker on Ubuntu 22.04 with a KDE desktop. Let me know if there are other steps needed.


Break up Encode and Decode generated methods into helper methods

@mkristian  Added some changes to the JsonEncoderDecoderClassCreator to breakup the encode and decode methods in to smaller helper methods to help avoid the Java method byte limit

@el5y I will have a look - sounds good

Not sure why the previous changes that were in master are showing up as changes here. I merged from master into my branch.

@el5y sorry for the delay but your PR was kind of messed up  somehow. I created a new PR with hopefully only your changes in place: #389
want to see what travis says to it and test it a bit locally. you could have I look if I missed something.

@mkristian  I took a look at your new PR and those changes looked ok. Made a comment over there about needing to update the pom.xml files for the examples so they reference the correct version.

Closed this since @mkristian put up a cleaner version of this


Move vector embeddings to HANA section

@MattSchur @agoerler With 5b2cda2 I propose to have also a runtime sample within the guide. From my perspective that rounds up the section. More details could be found/mentioned in the runtime specific docs.
What do you think?


Increment versions for servicefabricmanagedclusters releases

Increment package versions for servicefabricmanagedclusters releases

API change check
API changes are not detected in this pull request.


from enum import Enum
from pydantic import BaseModel, Field
class FooBar(BaseModel):
count: int
size: float = None
class Gender(str, Enum):
male = 'male'
female = 'female'
other = 'other'
not_given = 'not_given'
class MainModel(BaseModel):
"""
This is the description of the main model
"""
foo_bar: FooBar = Field(...)
gender: Gender = Field(None, alias='Gender')
snap: int = Field(
    42,
    title='The Snap',
    description='this is the value of snap',
    gt=30,
    lt=50,
)

class Config:
    title = 'Main'

this is equivalent to json.dumps(MainModel.schema(), indent=2):
print(MainModel.schema_json(indent=2))

Going to assume this was mistakenly opened.


Swift 1.2 compatibility

Small syntax change per Swift 1.2 changes to @autoclosure attribute.

Oops, didn't see the existing PR.


Missing fields in ResourceInstance for the resource controller v2 API

Describe the bug
Some fields that can be retrieved with REST calls to the API are not modeled in the ResourceInstance type, thus cannot be retrieved with the SDK.
To Reproduce

Create an instance of the cloud object store service using the resource controller v2 API.
Retrieve the instance using the SDK and the REST API
Compare fields from SDK and REST API

Expected behavior
I would expect to find the same fields from the REST call in the ResourceInstance. More specifically, the following fields are missing:

region_id
parameters

Note that region_id is not even documented in the OpenAPI V3 specs for the ResourceController, while parameters is documented in the specs but is not present in the ResourceInstance struct.
Must gather (please complete the following information):

SDK Version [e.g. 1.2.1] - v0.12.1
Go Version [e.g. 1.12.15] - 1.14.10
Name of service that you're trying to use (if applicable) - cloud-object-storage
Name of operation that you're trying to invoke (if applicable) - GetResourceInstance

Additional context
Add any other context about the problem here.
Were you able to avoid the problem by changing your application code slightly? No
Here is the JSON file for the REST API call to retrieve the service instance:
v2-instance.json.txt
There are also other fields missing when comparing the output from the REST API with the struct, but I am not currently using them - for completeness they are the following:

created_by
updated_by
deleted_by
scheduled_reclaim_at
restored_at
-scheduled_reclaim_by
restored_by
-migrated
-controlled_by.

It looks like the parameters field was only recently added to the API defn -- by this commit.  My guess is that we have not regenerated the Resource Controller service since that update.

@pdettori Thanks for finding this.  I'll follow up with the service team to get the API definition updated, then re-generate the service in the SDK.

@pdettori I've discussed this issue with one of the tech leads of the resource controller team, and also opened an issue to get the API definition updated.   As soon as that is done, I can re-generate the SDK code.
Thanks again for reporting this.

@pdettori A new version of the Go SDK (https://github.com/IBM/platform-services-go-sdk/releases/tag/v0.12.2) contains a re-gen of the Resource Controller service using the updated API definition.
Note that the "region_id" property was not added to the ResourceInstance schema because the service team does not want to expose that publicly, but I believe all the rest of the properties are now there.


Revert to renaming gamecontrollerdb.txt

Noted in Discord -- looks like GM is in-fact picking up gamecontrollerdb.txt for the internal DB as evidenced by your mac_gms2_sdlmaps.txt dump.

Implemented for v3.2.3


python3Packages.pysigma: 0.3.2 -> 0.4.1

Description of changes
https://github.com/SigmaHQ/pySigma/releases

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 164407 run on x86_64-linux 1

9 packages built:

python310Packages.pysigma
python310Packages.pysigma-backend-splunk
python310Packages.pysigma-pipeline-crowdstrike
python310Packages.pysigma-pipeline-sysmon
python39Packages.pysigma
python39Packages.pysigma-backend-splunk
python39Packages.pysigma-pipeline-crowdstrike
python39Packages.pysigma-pipeline-sysmon
sigma-cli


Update animals table

The table now has more animals and also the species column. And we did the following updates and queries:

Inside transaction set species to unspecified, verify changes, rollback and verify nothing changed.

Inside a transaction update species to digimon for the animals that the name ended in 'mon' and pokemon the rest.

In a transaction delete all records in the table and then rollback.

In a transaction delete animals born in 2022. Update weight using save points.

Here are the results of the queries to the following questions:

How many animals are there?
How many animals have never tried to escape?

What is the average weight of animals?

Who escapes the most, neutered or not neutered animals?
What is the minimum and maximum weight of each type of animal?
What is the average number of escape attempts per animal type of those born between 1990 and 2000?

@m05e5 thank you for the review.


Update docs, fix bug when white and black pass

This fixes an issue where colours that pass on white and black would return the darker solution.

Looks good to me!


Child theme inheritance issue 1227

1. Why is this change necessary?
It is useless to copy the same config fields accross themes.
Why can I set a parentThemeId when it is not using the inheritance (confusing).
2. What does this change do, exactly?
It allows to inherit the config fields from a parent theme
3. Describe each step to reproduce the issue or behaviour.
Create two themes, add one theme as parentTheme via API, try to build the childTheme after that (there will be also a core bug)
Create some config fields ... there is no inheritance from parent to child.
4. Please link to the relevant issues (if any).
See https://github.com/shopware/platform/issues/1227 and https://github.com/shopware/platform/issues/507
5. Checklist

[X] I have run the core tests without any error
[X] I have squashed any insignificant commits
[X] I have created a changelog file with all necessary information about my changes
[X] I have written or adjusted the documentation according to my changes
[ ] This change has comments for package types, values, functions, and non-obvious lines of code
[X] I have read the contribution requirements and fulfil them.

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

See https://github.com/shopware/platform/pull/1960


Update New-AutoSensitivityLabelRule.md

Docs Build status updates of commit 5edc21b:
:clock10: Full build: the average full build time is 17 min(s) 37 sec(s), this is based on the last 1000 build(s) for this repository.

@rohan-mohapata, I'm going to accept these changes, but be advised, this is what platyPS sees.

Docs Build status updates of commit 5edc21b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-AutoSensitivityLabelRule.md
:white_check_mark:Succeeded
View (exchange-ps)

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

Docs Build status updates of commit 152eb9a:
:clock10: Full build: the average full build time is 17 min(s) 37 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 152eb9a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-AutoSensitivityLabelRule.md
:white_check_mark:Succeeded
View (exchange-ps)

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


Created the README

The comprehensive work on the Maks repository allowed me to refer to it for the login process.

LGTM!!


Question: What is the lifetime instances of classes derived from, eg, SharpPropertySheet?

If I have a class derived from SharpPropertySheet and the CanShowSheet method returns true, is the instance of the class valid until the whole Properties Dialog box is destroyed, or only until another pane/sheet is selected, or some other time?
I ask so I can know if I can define and use instance variables, like an open file handle so I am not continually opening and closing files.

Hey @RichardSharpe, good question. I don't have any answer. I think, best if you check it out yourself. I am sure the SharpPropertySheet and others have some event, IDisposable or Destructors/Finalizers that you can use to observe the behaviour. Maybe there is a tool that can track the lifetime of an instance outside of the application? I am not sure if debugging with Visual Studio will work, but you might wanna try that, too. Maybe using System.Diagnostics.Debugger.Launch() works? Maybe you can check the Marshaller Count of the COM class used"?
Also consider reading the documentation at MSDN about Property Pages.
https://docs.microsoft.com/en-us/windows/win32/com/property-sheets-and-property-pages
Oh yeah, couldn't your subclass just implement IDisposable?
Any case, we appreciate it if you share the test results :)


How to make JNI.jar to make the terarkdb usable for flink?

[Enhancement]
Problem
is there any  instruc\tion for How to make JNI.jar to make the terarkdb usable for flink?
Solution

https://github.com/yapple/terarkdb/tree/flink-terark-1.0

we do some work about terarkdb for Flink , and get obvious benefit in some big backend status using KV separation
you can get this work in branch of flink-terark-1.0
most of the instruction is similar to RocksDB

感谢大佬回复，编译jni包的教程有吗

git clone https://github.com/yapple/terarkdb.git -b flink-terark-1.0
cd flink-terark-1.0 && make fterark -j10

thx, is it possible to give wechat? We are from a Shanghai e-commerce company, Hope to get some more insight into terark db

you can list some pain points when your use Flink, such as average value size, write amplification , or  the CPU usage problem

any problem we can talk in Github

Yes, actually we found some issue when we are using rocksdb to flink statebackend. The situation is the read/ iterating operation of the JNI occupies like 90% in the flame graph, but the cpu utilization is not high and the disc through put is not high either. when we reduce the level target size, it can solve the problem a little bit. Is there any suggestion to debug this kind of issue?

Caused by: java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202) ~[?:1.8.0_181]
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:216) ~[?:1.8.0_181]
at java.nio.channels.Channels.writeFullyImpl(Channels.java:78) ~[?:1.8.0_181]
at java.nio.channels.Channels.writeFully(Channels.java:101) ~[?:1.8.0_181]
at java.nio.channels.Channels.access$000(Channels.java:61) ~[?:1.8.0_181]
at java.nio.channels.Channels$1.write(Channels.java:174) ~[?:1.8.0_181]
at java.nio.file.Files.copy(Files.java:2909) ~[?:1.8.0_181]
at java.nio.file.Files.copy(Files.java:3027) ~[?:1.8.0_181]
at org.rocksdb.NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:113) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT]
at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT]
at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT]
at org.apache.flink.contrib.streaming.state.EmbeddedRocksDBStateBackend.ensureRocksDBIsLoaded(EmbeddedRocksDBStateBackend.java:860) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT]

Caused by: java.nio.channels.ClosedByInterruptException at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202) ~[?:1.8.0_181] at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:216) ~[?:1.8.0_181] at java.nio.channels.Channels.writeFullyImpl(Channels.java:78) ~[?:1.8.0_181] at java.nio.channels.Channels.writeFully(Channels.java:101) ~[?:1.8.0_181] at java.nio.channels.Channels.access$000(Channels.java:61) ~[?:1.8.0_181] at java.nio.channels.Channels$1.write(Channels.java:174) ~[?:1.8.0_181] at java.nio.file.Files.copy(Files.java:2909) ~[?:1.8.0_181] at java.nio.file.Files.copy(Files.java:3027) ~[?:1.8.0_181] at org.rocksdb.NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:113) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT] at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT] at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT] at org.apache.flink.contrib.streaming.state.EmbeddedRocksDBStateBackend.ensureRocksDBIsLoaded(EmbeddedRocksDBStateBackend.java:860) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT]

Have you met this problem, when flink tries to copy the .so file to /tmp?

Caused by: java.nio.channels.ClosedByInterruptException at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202) ~[?:1.8.0_181] at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:216) ~[?:1.8.0_181] at java.nio.channels.Channels.writeFullyImpl(Channels.java:78) ~[?:1.8.0_181] at java.nio.channels.Channels.writeFully(Channels.java:101) ~[?:1.8.0_181] at java.nio.channels.Channels.access$000(Channels.java:61) ~[?:1.8.0_181] at java.nio.channels.Channels$1.write(Channels.java:174) ~[?:1.8.0_181] at java.nio.file.Files.copy(Files.java:2909) ~[?:1.8.0_181] at java.nio.file.Files.copy(Files.java:3027) ~[?:1.8.0_181] at org.rocksdb.NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:113) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT] at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT] at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT] at org.apache.flink.contrib.streaming.state.EmbeddedRocksDBStateBackend.ensureRocksDBIsLoaded(EmbeddedRocksDBStateBackend.java:860) ~[flink-dist_2.11-du-1.13-SNAPSHOT.jar:du-1.13-SNAPSHOT]

Have you met this problem, when flink tries to copy the .so file to /tmp?

Yes, actually we found some issue when we are using rocksdb to flink statebackend. The situation is the read/ iterating operation of the JNI occupies like 90% in the flame graph, but the cpu utilization is not high and the disc through put is not high either. when we reduce the level target size, it can solve the problem a little bit. Is there any suggestion to debug this kind of issue?

can you add your flame graph and your rocksdb LOG
i think you can focus on the read write throughput, latency, to analysis the real bottleneck of your system

Yes, actually we found some issue when we are using rocksdb to flink statebackend. The situation is the read/ iterating operation of the JNI occupies like 90% in the flame graph, but the cpu utilization is not high and the disc through put is not high either. when we reduce the level target size, it can solve the problem a little bit. Is there any suggestion to debug this kind of issue?

can you add your flame graph and your rocksdb LOG
i think you can focus on the read write throughput, latency, to analysis the real bottleneck of your system

thanks for replay, finally we found flink turn off the pin high priority buffer to result in these issues.

One more thing, does byte dance use the terak db as flink state backend?

Yes, this month , we publish a release version to flink

Hi, @yapple !
Could you please advise me - where can I get the terarkdbjni.jar ? Or how can I build it?
I tried to build it from sources (from https://github.com/bytedance/terarkdb/tree/dev.1.4 and from https://github.com/yapple/terarkdb/tree/flink-terark-1.0). But everytime I got a lot of compilation errors.
I just want to benchmark terarkDB for Flink inside our infrastructure. And it would be great if you already have any benchmark results for comparison?

@yapple 大佬，我发现三个问题：
terark 跑一些小任务的波动要大于一般的rocksdb
terark的目录下面的LOG里面没有内容

You can open a new issue to discuss what you found, you should add more contextual information about the issue so we can understand it

Sorry for the late reply, is the problem solved now?


pkg/providers: Adding HashiCorp Vault provider

This PR adds the initial version of the HashiCorp Vault provider for Secret Store CSI driver.

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

Thanks @anubhavmishra 🎉  Left few comments but other than those, LGTM.

/lgtm


What was the design of the multi_scale before entering the backbone?

What was the design of the multi_scale before entering the backbone? It seems to work better without using multi_scale on my dataset. In addition, I would like to ask how many rounds of general training, the training dataset is obtained by slicing, there are about 16,000 pieces, when the training is 72 rounds best_stat_epoch=71, do you need to continue training? When training for 120 rounds, the AP@0.5:0.95 improved, but the<EMAIL_ADDRESS>remained almost the same. There is also a question about the selection of test results, because EMA is used, should the test results be the last round of test results? Which PTH file should I choose as the final model result? How much is it reasonable to have about a difference in APs between epochs in the later stages of training?

似乎ema没有发挥作用？存储时ModelEMA这个类的state_dict中return的是dict(module=self.module.state_dict(),...)，测试时是module=self.ema.module if self.ema else self.model，所以使用的还是self.module，并不是平均的结果？

测试时是module=self.ema.module if self.ema else self.model，所以使用的还是self.module，并不是平均的结果？

self.ema不是None的话  测试时候也是用self.ema.module的

@lyuwenyu 但self.ema.module存的还是当前epoch的self.module？似乎没发挥ema的作用？


[CE-144] Support dynamic payload size for structures defined in transaction.py

Accomplished via two new classes (in unaligned_bit_structure.py): DynamicByteField and DynamicByteFieldInstance. Specify DynamicByteField in _fields if you want the class to support a dynamically-sized payload (or byte field in general). A class can only have one DynamicByteField, and it must be the last field in the class (i.e. no field can come after it).
Internally, DynamicByteFields are used to generate DynamicByteFieldInstancess, "smart" resizing fields capable of serializing to byte fields of any length. They are used to implement dynamically-sized payloads in CxlIoMemWr and CxlIoCompletionWithData packets. There is no limit to the width of a DynamicByteFieldInstance.
Since different instances of dynamically-sized packet classes may differ in size (ex. one CxlIoMemWr instance could have a payload of 40 bytes, while another could have a payload of 200), the developer should never specify DynamicByteFieldInstance in the _fields field of any class. Instead, they should specify a DynamicByteField with default values of their choice, which as stated above will then act as a "factory" that creates new, distinct, independent DynamicByteFieldInstances. If the developer does not do this, the resulting side-effects can cause some major headaches while debugging!
Apart from the addition of DynamicByteField and DynamicByteFieldInstance, some changes have been made to logging in order to ease debugging---most notably, exceptions thrown during a run of the emulator are printed at INFO level rather than DEBUG level.

Please create a PR on v0.3-dev.


Android Google Chrome issue

The current version doesn't seem to work with Google Chrome on Android. The reason seems to be navigator.getUserMedia, which is going to be deprecated. I tried using the navigator.mediaDevices.getUserMedia promise, but it doesn't work either.

You still have working .textRequest. Just do not import StreamClient and use google chrome native speech recognition

Good idea, thank you. So in the future we can only use textRequest with API.AI?

I believe we will integrate some other services (and of course any possible local speechrec) at least in SDK's to make it transparent to do requests with ASR.
The big point is that our service is not about ASR at all.
Our company's main focus is NLU (natural language understanding) and dialog management. We provide a platform for creating conversational interfaces (called agents) for apps, bots, and devices. These interfaces are designed to receive text as input information.


Fix sisl settings include.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 69.92%. Comparing base (acb04e8) to head (179825f).
Report is 12 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #200      +/-   ##
==========================================
+ Coverage   68.69%   69.92%   +1.23%
==========================================
  Files          30       30
  Lines        1581     1536      -45
  Branches      163      157       -6
==========================================
- Hits         1086     1074      -12
+ Misses        408      375      -33
  Partials       87       87

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


'React' is declared but its value is never read.

I am having a hard time using this library as it seems like I'm not picking up the build js files, but rather typescript is using the source files and having opinions about them! My tsconfig.json has skipLibCheck: true. It seems that it is not finding the correct export? I get the above error just by running tsc --noEmit
Right now my solution is to patch comment out the React references so my project will build.
I pulled down the repo to check things out. It looks like the tsconfig could be updated with "jsx": "react-jsx" as with React 17+, you no longer need to ghost import React to handle jsx and they suggest moving away from it. After updating the react eslint extends with "plugin:react/jsx-runtime" and removing the react import, all seemed well...
Except I can't build because of linting errors in react-portable-text.tsx that exist on main...
Are there settings I need to adjust on my end or can I help put up PR once the build issues get resolved?

Do you have a code sandbox that reproduces this situation?

My bad! I was able to repro this by turning the tsconfig option "noUnusedLocals": true. This is a setting I'd like to keep on...
Let me know if there is anything else I can do to this example to help!
https://stackblitz.com/edit/vitejs-vite-askzne?file=tsconfig.json

The example is throwing a different error than the one you mentioned.
is this the error you mean?
I'm also seeing an error on

I'm also seeing an error on the PortableText import though, both are different than your original error.

Is the project you're working in a vite project also?

Hmmm... that's bizarre. My error appears consistent.

and yes, we have a vite project, pretty much like the stackblitz example

I have the same problem with just plain tsc:
$ tsc --noEmit
node_modules/@portabletext/react/src/components/defaults.tsx:1:1 - error TS6133: 'React' is declared but its value is never read.

1 import React from 'react'
  ~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@portabletext/react/src/components/list.tsx:1:1 - error TS6133: 'React' is declared but its value is never read.

1 import React from 'react'
  ~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@portabletext/react/src/components/marks.tsx:2:1 - error TS6133: 'React' is declared but its value is never read.

2 import React from 'react'
  ~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@portabletext/react/src/components/unknown.tsx:1:1 - error TS6133: 'React' is declared but its value is never read.

1 import React from 'react'
  ~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@portabletext/react/src/react-portable-text.tsx:1:8 - error TS6133: 'React' is declared but its value is never read.

1 import React, {ReactNode, useContext, useMemo} from 'react'

The problem is probably the d.ts file in dist refers to src directory.

@swalker326 Sorry, just realized the React errors on main.tsx and I have no idea why not seems to be exportable from @portabletext/react...
However, it still isn't building and I think @gadkadosh is right that the error is from the d.ts file referring src instead of some dist artifact

Closing as this appears to be fixed 🤷


[MRTK 2.8.3 Build Call] Controller visualization for Quest 2 does not match Quest 2 controllers

Describe the bug
Controller visualization was set to default controllers, not the intended version for Quest 2
To reproduce
Launch MRTK2 Examples hub, controllers will clearly change from intended white when pressing the home button on the controller, to the default black when inside the MRTK 2.8.3 examples hub
Expected behavior
controller visualization stays consistent throughout use
Screenshots

This video shows the change between models when using the home button on the controller to take a video
https://user-images.githubusercontent.com/110259320/203622819-37a4dbca-b3e7-4745-9e1d-9aa60d18ff7e.mp4
Your setup (please complete the following information)

Unity Version 2020.3.31f1

Target platform (please complete the following information)

Quest 2

Issue was not seen with proper setup, closing issue


Adapts to quality as per the bandwidth

Hi,
Videos do not flow/stream smoothly. Is there anybody have the same problem with me? or any issue with my implementation?
So you expressed " no way to set custom video quality" but I need lower video quality to stream, or else solution
Best regards

Both real device (debug) and emulator the same result

@SayaGames It's working smoothly for me. Could you describe more about the issue ?

Reopen if the issue persists with Version 5.1.0


Not possible to download a package with all languages from the website

https://highlightjs.org/download - if I select all languages (it also happens for some smaller undefined number of languages), the downloaded zip is always 139 bytes and it's broken.

I have the same issue, so i can verify that this is an issue. I talked to others and they have the same thing.

more info, i did some digging, and i found that it outputs 502 Bad Gateway when the request is sent.

it currently works with one lang at a time

Closing as duplicate of https://github.com/highlightjs/highlightjs.org/issues/15


Failed to execute script 'gyb' due to unhandled exception!

Please confirm the following:

I have upgraded to the latest GYB release from https://github.com/jay0lee/got-your-back/releases and I still have this issue.
Yes
I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/got-your-back/wiki
Yes

Full steps to reproduce the issue:
Backed up mail from gmail.com, trying to restore into a GSuite Legacy account - no issues
Using the command:

gyb --email<EMAIL_ADDRESS>--action restore --local-folder<EMAIL_ADDRESS>--label-restored "Restore"

Expected outcome (what are you trying to do?):
Mail is restored
Actual outcome (what errors or bad behavior do you see instead?):
Using backup folder<EMAIL_ADDRESS>Traceback (most recent call last):
File "gyb.py", line 2817, in
File "gyb.py", line 2254, in main
File "gyb.py", line 1990, in convert_timestamp
File "_strptime.py", line 555, in _strptime_datetime
File "_strptime.py", line 336, in _strptime
ValueError: unconverted data remains: .156000
[40044] Failed to execute script 'gyb' due to unhandled exception!

After some testing with the python source, and adding in a print(val) to see what it was actually falling over on, I have found a few dates written into the database that it cannot process.
For example:
b'2013-03-24 17:34:40.756000'
I am now using DB Browser for SQLite to edit the date fields and will try running the code again.

I came across exactly the same issue. Thanks @quack79 for poining me to the manual edit route so that I can continue for now.

See https://github.com/GAM-team/got-your-back/issues/459

Manual edit worked great. Thanks @quack79


Github Actions

Removed "pull_request: branches: [...]" from feature/github-actions becase a PR has no access to credentials (for security reasons) and can't succeed.
I like to can trigger a test also by some temporary branch e.g. "actions" and eventually play with local_settings etc.
Travis is restricted to a branch "travis" because no branch should trigger Actions and Travis concurrently.
Added an environment "clean" that is useful after an interrupted test. It works with any Python 3.

couple tiny issues, i'm on them now.

Thanks to this problem both test environments could run concurrently and be triggered by the main branch - until your Travis credit expires probably on November 11.
Maybe some test on a new database will be not skipped correctly without a custom field. I will prefer to not add a custom field manually again, but to skip a test conditionally now and to add the field later by an unofficial migrate code that is not committed yet to master.

The failed test is in testenv dj20-py36
I will copy it here before I restart the test job.
======================================================================
FAIL: test_aggregate_query (salesforce.tests.test_integration.BasicSOQLRoTest)
Test for different aggregate function.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/django-salesforce/django-salesforce/salesforce/tests/test_integration.py", line 773, in test_aggregate_query
    'UnitPrice__min': 80, 'UnitPrice__max': 100})

AssertionError: {'UnitPrice__sum': Decimal('1414.559999999999945430317893624[171 chars]25')} != {'UnitPrice__sum': 180, 'UnitPrice__count': 2, 'UnitPrice__a[50 chars] 100}

- {'UnitPrice__avg': 471.52,
?                    ^^^ ^^
+ {'UnitPrice__avg': 90.0,
?                    ^^ ^

-  'UnitPrice__count': 3,
?                      ^
+  'UnitPrice__count': 2,
?                      ^

-  'UnitPrice__max': Decimal('1234.55999999999994543031789362430572509765625'),
+  'UnitPrice__max': 100,
-  'UnitPrice__min': Decimal('80'),
?                    ---------  --

+  'UnitPrice__min': 80,
-  'UnitPrice__sum': Decimal('1414.55999999999994543031789362430572509765625')}
+  'UnitPrice__sum': 180}

Resume: The failed test was caused by interrupting the previous test run 321 two days ago manually in the middle of test_decimal_precision. It was cleaned by the first failed test suite and fortunately that problem has been fixed by it.
It was not a bug

Yes, we will use Travis on the origin repository on the "main" branch and the status green/red icon will depend on it. I will use Actions on my fork for more various development tests, because they are very configurable and I don't need to ask for credits too. The configuration file workflow/main.yml remains in in the origin repository, but will not trigger anything.
Everything was OK. Just I removed details about the failed test because it was provably only a random consequence of a manually interrupted test that leaved some known residues in the database in the next run. Details can be still found in the edit history.


remove assertion for docstring even when no assert is not set

Thank your for contributing to Nuitka!
!! Please check that you select the develop branch (details see below link) !!
Before submitting a PR, please review the guidelines:
Contributing Guidelines
What does this PR do?
This PR removes the assertion for docstring to exists when docstring is removed even when assertion is not disabled for xgboost. See also #3258
Why was it initiated? Any relevant Issues?
Currently xgboost checks for docstring with assertion, but the standard package config only fix the case when both assertion is disabled and docstring is removed, not when only docstring is removed
PR Checklist

[x] Correct base branch selected? Should be develop branch.
[x] Enabled commit hook or executed ./bin/autoformat-nuitka-source.
[ ] All tests still pass. Check the Developer Manual about Running the Tests. There are GitHub
Actions tests that cover the most important things however, and you are welcome to rely on those,
but they might not cover enough.
[ ] Ideally new features or fixed regressions ought to be covered via new tests.
[ ] Ideally new or changed features have documentation updates.

Summary by Sourcery
Bug Fixes:

Remove assertion for docstring existence in xgboost when only docstring is removed.

Looks good, you didn't use commit hook, therefore auto-format is not going to work. I will take it from here, and merge it for the next hotfix.

my bad, I have it on my system thought it already applied. Will be more careful next time.
Thanks!


Create appInsights.md

Will link to in root readme when PR is accepted & link exists

You don't need to wait for the file to make into master if you use relative links. See line 62 of Deployment.md


portable-ruby: fix more compiler toolchain references

We already get rid of the compiler shim references in rbconfig.rb, but there are still some more that may not be valid on the target system:
$ brew ruby -e 'p RbConfig::CONFIG.select { |k, v| v.match? /gcc-(.*)-\d+/ }'
{"RANLIB"=>"gcc-ranlib-11", "NM"=>"gcc-nm-11", "AR"=>"gcc-ar-11"}

We can replace them with ranlib, nm, and ar, respectively.
This should help to avoid issues like the one spotted in Homebrew/brew#17114.

Maybe the solution for the core problem is to have the Ruby builder use these agnostic names in the first place?

Interesting. Portable Ruby. I know RubyInstaller2 for Windows is portable, but never knew that Mac and Linux also have this.

Maybe the solution for the core problem is to have the Ruby builder use these agnostic names in the first place?

That's possible too; they can be overridden with ENV["AR"], etc. Those gcc-* tools are wrappers that pass the LTO plugin, although we don't seem to have enabled LTO.

Interesting. Portable Ruby. I know RubyInstaller2 for Windows is portable, but never knew that Mac and Linux also have this.

This is for Homebrew's internal use only; we don't advertise it or provide download or support for general usage like RubyInstaller or others do.

Maybe the solution for the core problem is to have the Ruby builder use these agnostic names in the first place?

Same has applied to cc for years - this is just an extension to that workaround to cover ar too. In our particular case, the host compiler doesn't necessarily match the target compiler, so we replace gcc-XX references with cc etc.

Thanks @ZhongRuoyu!


Crashlytics.crash() in Android shows error.

In react-native
crashlytics.crash( ) gives the error Index out of bounds..
says
length=2 index=10

I believe that's supposed to happen, that's how it crashes so you can test it out


When tablet set to tablet mode the Back button disappears

Hi ,
I'm using VS2017 , UWP , XAML C#
I have noticed a very strange behavior in my Windows PRO tablet where I have installed my app.
When I am in tablet mode the back button from my XAML page disappears.
If I 'm not in tablet mode then the back arrow appears.
What is going on?
Is it something that I need to change ? Something to fix?
Where can I look for this problem ?
Appreciate your assistance on this
thank you

That's in line with the design guidelines for Windows 10. When you switch to tablet mode, there is  a global back button next to the start menu:

Hi Darenm ,
Yes I know. And I tried to disable  this option , switched to off the Hide app icons on the task bar etc from the tablet mode settings.
I want inside my app no matter what to always display the back button.
Can this be done ?
Or if it cannot be done any ideas to by pass it ?

Although I set the boolean to true it doesn't seem to work
public bool UseShellBackButton
{
get { return _helper.Read(nameof(UseShellBackButton), true); }
set
{
_helper.Write(nameof(UseShellBackButton), value);
BootStrapper.Current.NavigationService.GetDispatcherWrapper().Dispatch(() =>
{
BootStrapper.Current.ShowShellBackButton = value;
BootStrapper.Current.UpdateShellBackButton();
});
}
}

I have also tried the below code but it doesn't seem to work
SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;

Try setting BootStrapper.Current.ForceShowShellBackButton = true

Hi darenm ,
Tried that already in the weekend without success.
I have also tried  this.pageHeader.BackButtonVisibility = Visibility.Visible;
When I placed the above line of code in the OnNavigatedTo even a strange thing happened.
When I was in tablet mode for a second the Shell button appeared and then it disappeared again.
Which means for me that something after the OnNavigatedTo Event is running and disabling the button.
It is too much work for me right now to do this because I am launching my app and I'm trying to think a work around with less effort.
Thank you darenm.

Hi darenm ,
I have downloaded the sources , went to the Template10.Common, NavButtonsHelper.cs made some changes there (making visible were it should be non visible ) , recompiled and it worked.
But I don't want to make this change on my own if you know what I mean. I want to follow this project and update my app normally through Nuget.
Is it anyway for this case to give us another property so we can bypass this ?

@zakkar I think if you have special needs for you project behavior, you should use your custom code in your project and update it and change it as windows keeps changing.
I think T10.1 is dying since we are close to T10.2 release version via prism.

Thanks Quico20... I will have to make a decision here .


Add features required for the migration of rusty-machine to nalgebra

See that issue from rusty-machine.
So far, the following features are missing from nalgebra:

[x] Simplify the construction of DVector by addressing https://github.com/rustsim/nalgebra/issues/377 This will require breaking changes.
[x] Add statistics functions: variance, mean.
[x] Add more general norms by addressing https://github.com/rustsim/nalgebra/issues/258
[x] Add row and column iterators.
[x] Add .select_rows(iterator) and .select_columns(iterator) to extract a subset of rows or columns from a matrix.
[ ] Allow the concatenation of rows or columns by addressing #446.
[ ] Document all the added features, including doc-tests.

More element may be added to this list as I study the codebase of rusty-machine.

Not sure if this belongs here, but I'm the author of ffsvm (a SVM classifier) and I also considered migrating to nalgebra for my math, and to simplify data exchange.
We use ffsvm in our company as a module in VR and gaming libraries, where literally every microsecond (and allocation) counts.
Right now there are 2 features missing in nalgebra that prevent me from making a switch. I generally believe they are essential for any performance sensitive SVM implementation; rusty-machine, ffsvm, or otherwise:

[ ] sparse vectors
[ ] properly aligned SIMD vectors

Sparse vectors are basically needed for high-dimensional SVMs, like word lists, where a vector might have +30k entries, out of which only very few are actually used. Using dense vectors here would be a big performance hit.
Conversely, for "fully dense" SVMs, properly aligned SIMD vectors are the way to go. When I started looking into ffsvm about a year ago I evolved the code from "naive" over "manual vectorization" to "actual SIMD":

At least back then, there was a 2x speed difference between "trusting the compiler" and "do SIMD yourself". I wouldn't be surprised if that difference is up to >4x even today when considering various compiler flags, target platforms, ... On top of that (not properly reflected in the graph because the test vectors were so big) is a performance impact when dealing with unaligned SIMD data.
If I had to prioritize between these I'd pick SIMD over sparse vectors.
Long story short, I have seen you have tracking issues for these items already. However, I wanted to post this as more of a note that I would also love to align with rustsim / nalgebra, but those issues are holding me back.

@ralfbiedert Thank you for describing your needs and use-case! There is an increasing demand for SIMD and sparse vectors/matrices in nalgebra so those are the two big topics we will want to address in 2019. To help prioritize our work could you:

Provide in that issue details about the kind of operations you need on sparse vectors.
Provide in that issue details about the linear algebra operations you are using expensively in ffsvm. You seem to have a great deal of experience with SIMD, so we will greatly appreciate if you share any expertise about the best practices or even contribute to the nalgebra code if you which!


Replace services with mocks in DI container

It would be great to test Maui application in isolation from backend in some cases. Therefore, the ability to replace services in DI container with mocks would be useful. Usually that applies to Http clients, but other things are possible as well.
I'm not sure if that's possible with the current approach though.
Are there any ideas how that could be achieved?

First of all you would probably want a mutable container such as DryIoc which Prism uses. Second you want probably want to use a back door method to update the registration with your mock and set the state in your app that you want.


Nonroot user permission issue for accessing logs

when fluentd securitycontext is modified to use non root user like runAsUser: 999. It changes the user but in the logs i see lot exception as below.
[error]: #0 unexpected error error_class=Errno::EACCES error="Permission denied @ rb_sysopen - /var/log/fluentd-containers.log.pos"

We have the same issue..
Tried below Security Context:
Pod level Security Context:
      securityContext:           runAsUser: 1001           runAsGroup: 1001           fsGroup: 1001
Container level security context:
          securityContext:               capabilities:                 drop:                 - ALL               readOnlyRootFilesystem: true               runAsNonRoot: true               runAsUser: 1001               runAsGroup: 1001
Looks like /var/log filesystem access for FluentD requires root user permission. However this is a security issue to allow root user permission. I have even tried with latest image version fluent/fluentd-kubernetes-daemonset:v1.12.3-debian-azureblob-1.0 but no luck..
Is there any way to workaround this issue? Any response on this will be much helpful for us....

How about using CAP_READ_SEARCH capabilities for Container level security context and using together with Fluentd's Linux capability mechanism:  https://docs.fluentd.org/deployment/linux-capability

@cosmo0920 ..Thanks for the suggestion..
Tried below capabilities..but still same issue..
Security Context at container level:
          securityContext:             readOnlyRootFilesystem: true             runAsNonRoot: true             runAsUser: 1001             runAsGroup: 1001             capabilities:               add: ["DAC_OVERRIDE","DAC_READ_SEARCH"]
Error:
2021-05-17 18:20:49 +0000 [info]: gem 'fluent-plugin-systemd' version '1.0.4'
2021-05-17 18:20:49 +0000 [info]: gem 'fluentd' version '1.12.3'
2021-05-17 18:20:49 +0000 [error]: config error file="/fluentd/etc/fluent.conf" error_class=Fluent::ConfigError error="Directory is not writable for plugin storage file '/var/log/fluentd-journald-kubelet-cursor.json'"

Is there anything I am still missing? If not can this issue be address in FluentD?

Also when trying with the latest version of the chart from repo, got this error,
Unexpected error Read-only file system - connect(2) for /tmp/SERVERENGINE_SOCKETMANAGER_2021-05-17T19:03:22Z_6   /fluentd/vendor/bundle/ruby/2.6.0/gems/serverengine-2.2.2/lib/serverengine/socket_manager_unix.rb:86:in initialize'
/fluentd/vendor/bundle/ruby/2.6.0/gems/serverengine-2.2.2/lib/serverengine/socket_manager_unix.rb:86:in new'   /fluentd/vendor/bundle/ruby/2.6.0/gems/serverengine-2.2.2/lib/serverengine/socket_manager_unix.rb:86:in start_server'
/fluentd/vendor/bundle/ruby/2.6.0/gems/serverengine-2.2.2/lib/serverengine/socket_manager.rb:94:in initialize'   /fluentd/vendor/bundle/ruby/2.6.0/gems/serverengine-2.2.2/lib/serverengine/socket_manager.rb:87:in new'
/fluentd/vendor/bundle/ruby/2.6.0/gems/serverengine-2.2.2/lib/serverengine/socket_manager.rb:87:in open'   /fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.12.0/lib/fluent/supervisor.rb:68:in before_run'
/fluentd/vendor/bundle/ruby/2.6.0/gems/serverengine-2.2.2/lib/serverengine/server.rb:125:in main'   /fluentd/vendor/bundle/ruby/2.6.0/gems/serverengine-2.2.2/lib/serverengine/daemon.rb:119:in main'
/fluentd/vendor/bundle/ruby/2.6.0/gems/serverengine-2.2.2/lib/serverengine/daemon.rb:68:in run'   /fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.12.0/lib/fluent/supervisor.rb:803:in supervise'
/fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.12.0/lib/fluent/supervisor.rb:652:in run_supervisor'   /fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.12.0/lib/fluent/command/fluentd.rb:341:in <top (required)>'
/usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'   /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'
/fluentd/vendor/bundle/ruby/2.6.0/gems/fluentd-1.12.0/bin/fluentd:8:in <top (required)>'   /fluentd/vendor/bundle/ruby/2.6.0/bin/fluentd:23:in load'
/fluentd/vendor/bundle/ruby/2.6.0/bin/fluentd:23:in <main>'
Security context tried:
helm install fluentdtest fluent/fluentd --set  securityContext.runAsNonRoot=true --set securityContext.runAsUser=1001 --set securityContext.runAsGroup=1001 --set securityContext.readOnlyRootFilesystem=true --set capabilities.add="DAC_READ_SEARCH" --set podSecurityContext.fsGroup=1001 --set podSecurityContext.runAsUser=1001 --set podSecurityContext.runAsGroup=1001

Is there anything I am still missing? If not can this issue be addressed in FluentD?

Fluentd itself doesn't depends on capng_c gem which handles Linux capability?
Dis you read the Linux capabilities on Fluentd document and install capng_c on your image?

@rramadoss4 And your issue is addressed in fluentd helm charts not for daemonset. Thanks for the using Fluentd.


RC0 - icon fonts not added

Many times in my upgrade path to RC0 I encountered an error when all the ionicon fonts were missing. They were just not included in www/assets/fonts folder. Though nothing was outputted to console it seemed to be related to messing up styles. For example when I used "ion-button" together with "icon-right" class when actually I didn't have an icon inside the button element.

This issue was moved to driftyco/ionic-app-scripts#73

Hello, thanks for opening an issue with us! Because this is a build related issue I have moved this issue to the ionic-app-scripts repo. Thanks!


libSVM data problem

LightGBM print log, "[LightGBM] #data:18269614 #feature:43".
The datas have 44 dimensions started with 0, why the log says #feature:43? It's something wrong?


Definition of kvm image kind of useless now

What happened:
The kvm and kvm-dev images are now defined with

hard immutability using verity and
no container run-time.

So there is no way to install anything.
What you expected to happen:
Install docker or something like that.

Hi @waldiTM ,
you're right. verity must be moved to _readonly.

Hi @waldiTM @nanory,
I just spoke with @waldiTM - we need to discuss what we really want to achieve. I don't want to say the current kvm-dev packages are useless since you still may create an overlay fs for further tests but I agree that this should be as an expected default for the kvm-dev image. Therefore, I think we have several options:

We can create an overlay for this (like /var etc. for other mnts)
We can move verity to feature _readonly and include this for needed image types
We can just provide docker/containerd binaries and provide a solution for executing images instead
Maybe other options?

IMHO, (re)moving verity from kvm-dev (to _readonly) could be an easy way to solve this. But I'd prefer a solution by using overlays. What do you think?

Hi @gyptazy,
as discussed in the last meeting, we will revert the fstab of the kvm feature, so that it doesn't contain the dm-verity functionality and ensure that the root partition is writable again.
However, since we need dm-verity, we will move it to the _readonly feature by doing the following steps:

Revert to a generic fstab in the kvm feature again.
Add an executable called fstab_mod to each modifier feature which modifies a given fstab of a plattform feature (e.g. kvm)  and extends it with proper fstab entries needed by the corresponding modifier.

In our case, this script would be part of the modifier feature _readonly for example.

Integrate the script to the build pipeline, so that it is called during the creation of the rootfs.

As discussed, I'm assigning this ticket to @gehoern , which will take care of the fstab_mod script.

Hi @gehoern,
as discussed in our last meeting, a short reminder that we want to adjust the fstab_mod script in that way, that it ensures to set the read-write partition at the end of the fstab before it hands it over to the makepart script.
Thus, fstab_mod ensures that the read write partition can be resized properly.
Modifying this script would also resolve the issue #631 and we could probably skip the Merge Request of #673 then which tries to change the order after makepart.

https://github.com/gardenlinux/gardenlinux/pull/678 just got merged. This removed the verity feature for kvm(-dev) images. I'm not quite sure if we need this issue anymore. However, the reintegration of verity will be done within https://github.com/gardenlinux/gardenlinux/issues/679.
ping: @waldiTM @nanory

The verity feature was completely disabled for now.


Workflow "any" should check async and return as soon as condition is met

any is implemented to wait for all results before checking the conditions. This means that the execution time is that of the slowest of all events. Instead, it should be implemented to return as soon as the first is done without waiting for the rest. This would change execution time to that of the fastest in the set.

Side Note: In it's current form it is already faster than the concurrent-ruby implementation.
The concurrent-ruby method waits until one event is completed before it starts the execution of the next. In the Factor implementation we start the execution of all first. This means that the concurrent-ruby execution time is the sum of all execution times. The Factor execution time is that of the slowest.


Added initial docs for SRE processes for Obs-plat team.

Tried to elaborate on our processes. PTAL (:
Signed-off-by: Bartlomiej Plotka<EMAIL_ADDRESS>

Thanks all for reviews, addressed ALL I think.

PTAL (: