PostgreSQL to AlloyDB Validation fails with error : UserWarning: Unable to create first/last aggregates: syntax error at or near "AGGREGATE"

Stack Trace :
User has installed Python 3.10.12 and pip 22.0.2 on VM
(data-validation) root@postgres-data-validation:~# data-validation validate column --source-conn source --target-conn target --tables-list 'public.realm=public.realm'/root/data-validation/lib/python3.10/site-packages/ibis/backends/postgres/init.py:162: UserWarning: Unable to create first/last aggregates: syntax error at or near "AGGREGATE"
LINE 6: CREATE OR REPLACE AGGREGATE public._ibis_first (anyelement) ...
^
warnings.warn(f"Unable to create first/last aggregates: {e}")
Traceback (most recent call last):
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1910, in _execute_context
self.dialect.do_execute(
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute
cursor.execute(statement, parameters)
psycopg2.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/data-validation/bin/data-validation", line 8, in
sys.exit(main())
File "/root/data-validation/lib/python3.10/site-packages/data_validation/main.py", line 633, in main
validate(args)
File "/root/data-validation/lib/python3.10/site-packages/data_validation/main.py", line 611, in validate
run(args)
File "/root/data-validation/lib/python3.10/site-packages/data_validation/main.py", line 578, in run
run_validations(args, config_managers)
File "/root/data-validation/lib/python3.10/site-packages/data_validation/main.py", line 534, in run_validations
run_validation(config_manager, dry_run=args.dry_run, verbose=args.verbose)
File "/root/data-validation/lib/python3.10/site-packages/data_validation/main.py", line 507, in run_validation
validator.execute()
File "/root/data-validation/lib/python3.10/site-packages/data_validation/data_validation.py", line 96, in execute
result_df = self._execute_validation(
File "/root/data-validation/lib/python3.10/site-packages/data_validation/data_validation.py", line 270, in _execute_validation
source_query = validation_builder.get_source_query()
File "/root/data-validation/lib/python3.10/site-packages/data_validation/validation_builder.py", line 361, in get_source_query
table = self.config_manager.get_source_ibis_table()
File "/root/data-validation/lib/python3.10/site-packages/data_validation/config_manager.py", line 342, in get_source_ibis_table
self._source_ibis_table = clients.get_ibis_table(
File "/root/data-validation/lib/python3.10/site-packages/data_validation/clients.py", line 134, in get_ibis_table
return client.table(table_name, database=database_name, schema=schema_name)
File "/root/data-validation/lib/python3.10/site-packages/ibis/backends/base/sql/alchemy/init.py", line 519, in table
sqla_table = self.get_sqla_table(name, database=database, schema=schema)
File "/root/data-validation/lib/python3.10/site-packages/ibis/backends/base/sql/alchemy/init.py", line 422, in get_sqla_table
table = sa.Table(
File "", line 2, in new
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py", line 375, in warned
return fn(*args, **kwargs)
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/sql/schema.py", line 618, in new
with util.safe_reraise():
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 70, in exit
compat.raise(
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 211, in raise
raise exception
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/sql/schema.py", line 614, in new
table._init(name, metadata, *args, **kw)
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/sql/schema.py", line 689, in _init
self._autoload(
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/sql/schema.py", line 724, in _autoload
conn_insp.reflect_table(
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 774, in reflect_table
for col_d in self.get_columns(
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 497, in get_columns
col_defs = self.dialect.get_columns(
File "", line 2, in get_columns
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache
ret = fn(self, con, *args, **kw)
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/base.py", line 3856, in get_columns
table_oid = self.get_table_oid(
File "", line 2, in get_table_oid
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache
ret = fn(self, con, *args, **kw)
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/dialects/postgresql/base.py", line 3733, in get_table_oid
c = connection.execute(s, dict(table_name=table_name, schema=schema))
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1385, in execute
return meth(self, multiparams, params, _EMPTY_EXECUTION_OPTS)
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 334, in _execute_on_connection
return connection._execute_clauseelement(
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1577, in _execute_clauseelement
ret = self._execute_context(
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1953, in _execute_context
self.handle_dbapi_exception(
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2134, in handle_dbapi_exception
util.raise(
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 211, in raise
raise exception
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1910, in _execute_context
self.dialect.do_execute(
File "/root/data-validation/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.InternalError: (psycopg2.errors.InFailedSqlTransaction) current transaction is aborted, commands ignored until end of transaction block
[SQL:
SELECT c.oid
FROM pg_catalog.pg_class c
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
WHERE (n.nspname = %(schema)s)
AND c.relname = %(table_name)s AND c.relkind in
('r', 'v', 'm', 'f', 'p')
]
[parameters: {'schema': 'public', 'table_name': 'realm'}]
(Background on this error at: https://sqlalche.me/e/14/2j85)
(data-validation) root@postgres-data-validation:~#

Unable to reproduce. Please re-open if this behavior is seen again.

Another user who is doing RDS postgreSQL - AlloyDB validation facing same issue

Closing with reference to #1154


add the below code on lifecycle to avoid to delete resources

lifecycle {
ignore_changes = [defined_tags, freeform_tags ]
}
add this code to generated resources to let us not to scan and correct the generated code when we need to update tags
with the current setting resources are DESTROYED and REBUILDED when there a tag change

Tag changes dont cause resources to be re-built. But they are updated in place. Resource rebuild can happen because of other changes like metadata for instances etc.
However you can put tag changes in ignore list so it doesnt remove the tags.


context canceled

context canceled

need  network config?

I also had a situation.

This is the error.
Please let us know what to do in this situation.

Thank You.

This is the error.
Please let us know what to do in this situation.

Thank You.

back to ver 17.3, this version works fine. U can also use cmd (docker run [dock_name])

Still broken in 0.17.6; 0.17.3 works.

This problem has been solved by kitematic v0.17.7


Support for Swipe Navigation in Notes Read-Only Page

Implement swipe navigation in the notes read-only page, similar to how apps like Gmail allow users to swipe left or right to navigate to the next or previous email. In DiaryVault, this feature should enable users to swipe between notes in read-only mode. Diaryault supports read mode and write mode for a note, we do not want this feature in the write mode to prevent potential data loss if unsaved changes are present when navigating away from a note.

Widget Involved:

lib/features/notes/presentation/pages/note_read_only_page.dart
lib/features/notes/presentation/widgets/note_preview_card.dart
lib/core/pages/home_page.dart

Current Setup:

The NotesReadOnlyPage widget currently takes a note.id as a parameter and loads the corresponding note from the database.
The NotesFetchState holds the list of notes fetched from the database to display on the home page.

Proposed Solution:

Utilize PageView:

Use Flutter's PageView widget to enable swipe navigation between notes.

Pass Additional Parameters:

Pass  Listview'sindex as parameter to NotePreviewCard widget from home screen. Index Represents the position of current note from the list.
Modify the NotesReadOnlyPage to accept an additional route parameter index, representing the position of the current note in the list. Actual logic for swipe natigation will be in NotesReadOnlyPage.

Access Next and Previous Notes:

Use the NotesFetchState to access the list of note IDs.
During a swipe event, determine the next or previous note by incrementing or decrementing the index.

Tasks:

[ ] Modify NotePreviewCard to accept an index parameter from home screen's Listview.
[ ] Modify NotesReadOnlyPage to accept indexas route parameter and pass index from NotePreviewCard which will serve as initial index for swipe navigation.
[ ] Implement a PageView in  NotesReadOnlyPage that allows swiping between notes in read-only mode.
[ ] Ensure that the notes load correctly when swiped left or right.

Hi again @SankethBK I would like to try

@SankethBK  Hi again, i have done this task, can I add?

Hi @zdoryyk , please raise the PR


Account call fails in 0.0.5 release

Trying to debug an issue with my homeassistant installation i resorted to runing the pybotvac calls isolated. And the Account call returns the following for me:
(homeassistant-py3.6) homeassistant@pestus:/opt/homeassistant-py3.6$ python
Python 3.6.4 (default, Feb 28 2018, 21:48:01)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pybotvac import Account
>>> for robot in Account('EMAIL','PASSWORD).robots:
... 	print(robot)
...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/pybotvac/account.py", line 61, in robots
    self.refresh_robots()
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/pybotvac/account.py", line 105, in refresh_robots
    traits=robot['traits']))
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/pybotvac/robot.py", line 36, in __init__
    if self.service_version not in SUPPORTED_SERVICES:
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/pybotvac/robot.py", line 135, in service_version
    return self.available_services['houseCleaning']
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/pybotvac/robot.py", line 131, in available_services
    return self.state['availableServices']
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/pybotvac/robot.py", line 127, in state
    return self.get_robot_state().json()
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/pybotvac/robot.py", line 103, in get_robot_state
    return self._message({'reqId': "1", 'cmd': "getRobotState"})
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/pybotvac/robot.py", line 54, in _message
    headers=self._headers)
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/requests/sessions.py", line 494, in request
    prep = self.prepare_request(req)
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/requests/sessions.py", line 437, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/requests/models.py", line 309, in prepare
    self.prepare_auth(auth, url)
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/requests/models.py", line 540, in prepare_auth
    r = auth(self)
  File "/opt/homeassistant-py3.6/lib/python3.6/site-packages/pybotvac/robot.py", line 148, in __call__
    signing = hmac.new(key=self.secret.encode('utf8'),
AttributeError: 'NoneType' object has no attribute 'encode'
>>>

To me it looks like the self.secret is null, but I don't get how as it's provided in the account call above.

I got this error when I had non-connected botvacs (ie witout wifi) tied to my account.
When looking at the code it seems to work fine for connected bots but also tries to get secrets for non-connected bots, they obviously does not have one.
Removing non-connected bots from my account got me past this...

The only botvac I have is the Connected d7 which is Wifi connected. So
unfortunately that won’t help in this case.
It seems like they introduced a new protocol with the new device that the
client library doesn’t recognize yet. Which sounds like similar failure
type, perhaps the non WiFi models also use an unsupported protocol?
On Sun, Apr 1, 2018 at 10:50 AM Manana546<EMAIL_ADDRESS>wrote:

I got this error when I had non-connected botvacs (ie witout wifi) tied to
my account.
When looking at the code it seems to work fine for connected bots but also
tries to get secrets for non-connected bots, they obviously does not have
one.
Removing non-connected bots from my account got me past this...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjabesq%2Fpybotvac%2Fissues%2F5%23issuecomment-377804197&data=02|01||fd4f6cd4c442446f107f08d597f8fa5a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636582017959371871&sdata=EoBxvMC%2BFaKTLdkUakZAr2o2e4dIBjP5mB4ELHnHQ5E%3D&reserved=0,
or mute the thread
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADyYQ1H8qixkZT7P-QxA9PE4eQopqprLks5tkRNCgaJpZM4Sqrnv&data=02|01||fd4f6cd4c442446f107f08d597f8fa5a|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636582017959371871&sdata=%2FJIhvtBogE%2FLUK%2F8%2BnlCKCt%2FPRdtAV%2FUts9Bkr%2F%2BE48%3D&reserved=0
.

I no longer have the issue as it was resolved by removing a unsused robot from my neato account. But even so still a code defect.


do not restart docker on install

Currently on prem installer is being run from a docker container. We cannot
restart the container because this will break the installer.

NAK

Don't forget to mark titles at WIP

@cmaloney correct, this is WIP, changed the title


Remove unused yaml files.

This PR is part of an effort to move or remove all files under docs/admin.

/assign @Bradamant3

/lgtm
/approve


Rewrite Lingua in Java

As I most probably won't have much time in the future to maintain Lingua due to my family life, let's rewrite Lingua in Java as long as I have time. My hope is to attract more people from the Java community to use and improve this library in the future. Having a plain Java library should simplify long-term maintenance as well due to Java's backwards compatibility.
Kotlin is a great language but a second-class citizen on the JVM. Its use did not provide significant advantages compared to a plain Java implementation. I have doubts whether Kotlin will continue to have a bright future as both Java as a language and the JVM get significantly better, especially with the release of Java 21.

Hi @pemistahl!
I really like this library, and have started to work on migrating the core library itself (excluding reports etc for now) to Java. It's still a work in progress, but I'll file a PR once the test suite is fully passing.
If interested, you can find the in progress branch here

Hi Rogier, wow, that's awesome that you are deliberately doing this tedious amount of work. Looks very good so far. Thanks a lot. :)
Compared to my other implementations of Lingua, this one here has been stuck because I could not yet motivate myself to do the rewrite. If your work is successful, I will then add the new features from the other implementations to the Java rewrite. So please pay attention to do a 1-to-1 rewrite of the current Kotlin main branch only. Again, thank you very much. :)

Hi, is there a chance for future updates for this library, or is the project closed for good?

@sergeykad As you may have seen already, I've been maintaining four implementations of this library (Kotlin, Go, Rust, Python). Since the birth of my son, my spare time for updating all these implementations is very limited. My plan is to update only the Rust and Python implementations in the future. There will be new releases for both still in this year. For Go and the JVM, I will replace the native implementations with bindings to a Web Assembly (WASM) module created from the Rust implementation. Rust is the best language for this kind of library because it has the highest speed of execution and the lowest memory requirements.

@rogierslag I'm assuming that you won't continue to port my library to Java, right? There has not been any progress on your side since your initial post.
I'm closing this issue now in favor of #214.


Bug fix

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
791

Relevant Lines:
2705

💛  - Coveralls


cmd/compile: internal compiler error: esc oas2func

What version of Go are you using (go version)?

What operating system and processor architecture are you using (go env)?
Tip (or is it HEAD these days? :) ). go version level +d733cef Tue Mar 29 11:19:31 2016 +0000 darwin/amd64.
Linux build has this problem too.

What did you do?
go get -u -v github.com/yuin/gopher-lua/...

What did you expect to see?
gopher-lua is installed. It works with 1.5.3 and 1.6.

What did you see instead?

…/GOPATH/src/github.com/yuin/gopher-lua/pm/pm.go:546: internal compiler error: esc oas2func

Bisected to 7e88826a69366bbcb64f2f89dbe02c57f7ebf678


Runtime configuration support

We configure the runtime through a simple TOML
file that describes the hypervisor and proxy settings.
Fixes #25

@sameo I think we should also add the proxy socket path in this configuration file. So that the runtime has this information and it can provide it to the shim. Indeed, the shim needs to know how to connect to the proxy.

LGTM

lgtm


Money Mask fails the integer or numeric validation

Package
filament/forms
Package Version
v3.0.39
Laravel Version
v10.21.0
Livewire Version
v3.0.1
PHP Version
8.2.x
Problem description
When we use a money mask to add a thousand separators to an input field the validation fails and says it must be a numeric input.
Expected behavior
It must mask the value in the front end and return the unmasked value to the back end.
Steps to reproduce
create a text input like this:
                Forms\Components\TextInput::make('balance')
                    ->required()
                    ->integer()
                    ->mask(RawJs::make("\$money(\$input)"))
                    ->default(0),

then send a value like 1000000 and you encounter this error:
The balance field must be a number. while the input is actually a number just masked to have a thousand separators.
Reproduction repository
https://github.com/ariaieboy/filament-mask-bug
Relevant log output
No response

Nothing we can do about this, the validation doesn't allow characters like $, it's a browser thing

Nothing we can do about this; the validation doesn't allow characters like $, it's a browser thing

That's not a browser validation error.
The problem is that the Alpine masks the 1000000 into 1,000,000, and the laravel validation does not accept 1,000,000 as an integer.
We need a way to remove the thousand separator when the value passes to the backend.
In V2, the mask option didn't have this problem. Because the mask only applies in the front end, and the value that passes to the backend is the non-masked value.

@ariaieboy same issue, any solution about this?

@Akhmami Yes you have to not use numeric for validation, and then use a cast before saving to the database.

@Akhmami Yes you have to not use numeric for validation, and then use a cast before saving to the database.

Removing the validation is not a good idea. Besides the security problems, we can not use other laravel validation rules either.
for example, if I have 2 column, one of them must be bigger than the other one, and when I use that rule without the numeric validation, laravel compare them as 2 string instead of 2 integer.
I temporarily removed the mask from my project, but since I am working with big numbers in my application, I must have a thousand separators.
1 dollar is equal to 500,000 rial over here so numbers can get big very soon 😄

the simple solution would be mutating the user input before we pass it to the validation process etc.
but we don't have a hook for it in the input level.
you can hook into beforeValidate() in you create and edit page but that's not clean in my opinion.
we need a hook on input level so we can change the specific input before validation.

@ariaieboy Hey man, I'm definitely not disagreeing with you... I was just providing the solution I was told to use.

@Akhmami until this issue get fixed you can use my filament-currency package.
instead of mask just use currencyMask

@ariaieboy Does your package work with reactive states?
Such as the following:
\Filament\Forms\Components\TextInput::make('money')
    ->currencyMask(static function (Forms\Get $get) {
            $currency_code = $get('currency_code');
            //...
    }

@andrewdwallo No
This method does not do anything in the back-end. All magic happens in the front end.
It masks the input using alpinejs $money and returns the unmasked value to the backend.
    {
        input:\$wire.{$applyStateBindingModifiers("\$entangle('{$statePath}')")},
        masked:'',
        init(){
            this.masked = this.input;
            \$watch('masked',()=>this.updateInput());
        },
        updateInput(){
            this.input = this.masked.replaceAll('$thousandSeparator','').replaceAll('$decimalSeparator','.');
        }
    }

it might not be the best solution but it solves my problem for now

I haven't actually looked through the source code, but I think I might have a solution. Having written that, Im not sure what the end goal is, so depending on that, you might want to hydrate or dehydrate.
Dehydrate is the right way to go, because you can also perform validation on it before you store it in the DB. So, one of the ideas of Field Dehydration is to show the user modified/formatted data in the front-end, while storing untouched raw data in the DB, which is what you want I believe.
I noticed you had some issues where Laravel Validation compares strings  instead of integers and it leads to false results. I believe I have that handled. Sorry for the drafted code, should be enough to get an idea:
use Validator;
use Filament\Forms\Components\TextInput;

TextInput::make('balance')
    ->required()
//    ->numeric()
    ->default(0)
    ->dehydrateStateUsing(function (string $state) {
        $moneyVal = intval($state);

        //double safety, handles numeric string
        if(is_numeric($moneyVal)) $money = (int)$moneyVal;
        else $money = 0;

        $validator = Validator::make(['balance' => $money], [
            'balance' => 'numeric',
        ]);
        if ($validator->fails()) {
            //handle
        }else {
            //store $money in DB as its the raw value
        }
        return $this->addThousandComma($money);
    })

private function _addThousandComma($value) : string
{
    $formatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY);
    return $formatter->formatCurrency($value, 'USD'); //return the modified value of $state to the user
}

Please let me know If you have tried anything and if it worked.

@sibdib I've created a small package called filament-currency that you can fix this problem using it.

Im really interested in learning more about De/Hydration in Filament, seems like a very cool thing. Since there arent many examples, I have to figure it out on my own.

Oh, wait, you're the author, lol

@danharrin I'm trying to use dehydrateStateUsing to remove commas from the string and turn it into a numeric value before it's validated, but seems like dehydration is not happening before validation.
If we could dehydrate before validation we could easily solve this issue like this:
Forms\Components\TextInput::make('price')
    ->numeric()
    ->dehydrateStateUsing(fn ($state) => floatval(str_replace(',', '', $state)))
    ->mask(RawJs::make('$money($input)')),

Fixed by #10092 when you use stripCharacters()

TextInput::make('amount')                     ->mask(RawJs::make(<<<'JS'                         $money($input, ',', '.')                         JS))
how can I do when I use the comma as thousend seperator and the dot as comma seperator?

->stripCharacters('.')
->mutateStateForValidationUsing(fn ($state) => str_replace(',', '.', $state))
->mutateDehydratedStateUsing(fn ($state) => str_replace(',', '.', $state))


Class "Book" not found

Describe the Bug
After the update, some books report an error (see screenshot)
Steps to Reproduce

use IMG lscr.io/linuxserver/bookstack:v21.12.5-ls1
create a book with pages
update on IMG lscr.io/linuxserver/bookstack:v22.11.1-ls60
displaying a book causes an error (pages are OK)

Expected Behaviour
Show pages and books
Screenshots or Additional Context

Browser Details
110.0 (64-bit) Linux
Exact BookStack Version
v22.11.1
PHP Version
8.1.14
Hosting Environment
Ubuntu 20.04.4 LTS
docker-compose 1.25.4
docker 20.10.12

stack_trace.txt

Hi @jkonecny75, A few notes:

Just an FYI, I do not manage the linuxserver container myself (Not an official part of the project) but happy to attempt to support.
Can you try on the latest version of the container? Rather than one for an old release. There may have been issues which have since been patched.
If possible, could you provide the docker-compose.yml config in use here so I can gain a full view of how the container is used, and how volumes are mapped?

Hi @ssddanbrown, thank you for your willingness
I tried the last version as a first option. After the error 'Class "Book" not found' I tried individual versions from 21.12.5-ls1.
Version v22.11.1-ls60 is the first version to throw this bug
my docker-compose.yaml:
version: "3"

services:
  bookstack:
    image: lscr.io/linuxserver/bookstack:v21.12.5-ls1
    #image: lscr.io/linuxserver/bookstack:v23.02.3-ls75
    container_name: bookstack
    environment:
      - PUID=1000
      - PGID=1000
      - APP_URL="https://wiki.ourcompany.loc"
      - APP_DEBUG=true
      - DB_HOST=bookstack_db
      - DB_USER=bookstack
      - DB_PASS=bookstack
      - DB_DATABASE=bookstack
      - AUTH_METHOD=ldap
      - LDAP_SERVER="<IP_ADDRESS>"
      - LDAP_BASE_DN="dc=allrisk,dc=loc"
      - LDAP_VERSION="3"
      - LDAP_ID_ATTRIBUTE=sAMAccountName
      - LDAP_USER_FILTER=(&(sAMAccountName=$${user}))
      - LDAP_EMAIL_ATTRIBUTE=mail
      - LDAP_DISPLAY_NAME_ATTRIBUTE=cn
      -<EMAIL_ADDRESS>      - LDAP_PASS=ourPasswd
    volumes:
      - ./data:/config
    ports:
      - "443:443"
    restart: unless-stopped
    depends_on:
      - bookstack_db
  bookstack_db:
    image: lscr.io/linuxserver/mariadb
    container_name: bookstack_db
    environment:
      - PUID=1000
      - PGID=1000
      - MYSQL_ROOT_PASSWORD=mysqlroot
      - TZ=Europe/Prague
      - MYSQL_DATABASE=bookstack
      - MYSQL_USER=bookstack
      - MYSQL_PASSWORD=bookstack
    restart: unless-stopped
    volumes:
      - ./data/:/config

Thanks for the info @jkonecny75.
So looking further, this appears to me like it might be a database migration issue.
If your database did not previously migrate correctly then it may have old references that cannot be properly resolved.
Using the latest linuxserver image, can you provide the start-up logs for the bookstack container?
I just want to see the steps it's making and confirm how the migrations are behaving.

I used IMG lscr.io/linuxserver/bookstack:v23.02.3-ls75. Here is start-up.log
FYI: The URL http://wiki.ourcompany.cz:8080 is only a debug URL for the upgrade, which means that this step is not performed in the production environment

Hi @jkonecny75,
Did you revert back before running to get that log? Just curious since it looks like there had not be a pre-existing attempt at upgrade there.
During that run for the provided logs it looks like the database is migrating fine so should hopefully be in a working state after going through those migrations. Did that instance (For which the logs have been provided for) specifically show the exact same error after starting up?

Hi @ssddanbrown,
I revert back DB and other files to snapshot at version v21.12.5-ls1 and startup with IMG v23.02.3-ls75. That log is the first within the upgrade.
The error is unfortunately the same :-(

@jkonecny75 Ah, very strange. Seems like for some reason some data in the database is not being altered as expected by the migrations.

Would you be able to provide the stack trace, as provided before, but for the version using the recent docker image?
If asked, are you comfortable with accessing the database container and running mysql commands?

Would you be able to provide the stack trace, as provided before, but for the version using the recent docker image?

Do you mean v23.02.3-ls76 instead v23.02.3-ls75 ?

If asked, are you comfortable with accessing the database container and running mysql commands?

Absolute no problem ;-)

@jkonecny75 Alrighty, can you run the following query and report back the results provided back by MySQL:
select entity_type from activities group by entity_type;

After command UPDATE activities SET entity_type = 'book' WHERE entity_type = 'Book'; that error is fixed :-D
Thank You very very much @ssddanbrown

Glad to hear this is now solved @jkonecny75.
Bit concerning though, not sure why you'd have those values in the database, especially those truncated references like pter and helf.
Keep in mind that many other columns also went through the same changes during the migrations you ran through, so whatever's occured here may affect other parts of the app/database.
Below is the migration file that performed changes to these columns, showing a list of the tables and columns where these kind of values existed. Just sharing in the event further future investigation is required upon similar issues.
https://github.com/BookStackApp/BookStack/blob/57bdd83d8c0e529ccc3095c54fba0ca4cd1e02fe/database/migrations/2022_04_25_140741_update_polymorphic_types.php#L21-L31

Ah, if I understand correctly the helf should be bookshelf and the pter should be chapter, right?
I'll check the whole DB just in case.
Thank You again for your help


Create tomuchinfo

Wall of text take one I would like to get some feed back on this.
Pick a name

tomuchinfo
walloftext

would it be worth linking to how to ask
I want to work in a way of saying something its nice that you are willing to show that you have done your homework and research but .....  you need to pair it down.
Its very admirable of you to have done such detailed research before asking your question but ... people don't have time to read war and peace to help you with your question.
This is in relation to issue 59

tomuchinfo
walloftext
...
Why not both?  I've added it to the list of redirects.

I didn't know we could do redirects.    This was just a first draft I will probably tweek it as I run across offending questions.


Keep the analyzer alive over incremental runs

Prepares for incremental analysis.
Allows us to move the InfoLoader into the Analyzer.
Overall more consistent.

Rebased onto #4824. This PR is for post 1.13.1.

I've added a commit moving error reporting into the Analyzer as well. WDYT?


Youtube Video URL?

Hi, thanks for creating this repository. Is it possible to provide a list of URLs of DeepFake videos downloaded from Youtube? Thanks!

Hi,
Thank you for reaching out. Sadly, we don't keep a record of the exact URLs of the youtube videos used to extract the Youtube data, there was a bit of a manual process in both collection and cleaning (mostly clipping and selection of relevant clips).
I hope this answers your question. Please feel free to ask if you have any other concerns!


[bug] PMP checking incorrect with icache

Since the PMP checking in Ibex is performed on external requests, any changes to PMP registers or changes between U and M mode will render the icache contents out of date. The checking cannot easily be moved after the icache as the address can be misaligned at that point due to compressed instructions.
The following solutions are proposed:

Flush the icache (and all buffered instructions) any time a PMP register is written (which should be rare).
Store the associated U/M mode status with each cache line so that the icache does not need to be flushed on every mode change (which happens on interrupts and so is more frequent)

I'm wondering if we can move it after the icache by assuming the majority of accesses won't cross a PMP boundary and doing a stall where they do.
We'd need some extra logic to say 'this access is next to the PMP region boundary end'. Overlapping PMP regions also complicates matters but perhaps something to say 'this access is next to the PMP region boundary beginning' can deal with that.
So when you get an unaligned access if the first half passes PMP and it's not next to a PMP region boundary end and not next to a PMP region boundary start you know the second half of it will also pass. Otherwise you stall to do two PMP checks.

That might be doable yes. It would be an extra two comparators (plus some adders etc.) per PMP region since those two conditions are not something we already match for, but that might be ok for timing since the address itself is straight out of a flop. We could potentially even just add an extra PMP channel and always check the address plus2 in parallel with the address!?

I was hoping the extra logic could be done without an replicated PMP channel, but I have yet to think particularly hard about it!
Replicated channel may be the way to go as it doesn't have adverse timing impact as you say, though does add area obviously.

I've knocked together the replicated channel - looks like ~5.5kGE extra on our synthesis flow so could be a goer. I'll have a look at the reduced option now.


Support for manually modifying client/server learning rate

Hi,
I'm playing around with clients learning rate but I cannot find a clean way of modifying it.
Basically, I need to change the LR following a schedule based on the current round.
Is that possible?
Thanks

Hi,
Thanks for trying out FedJAX and filing this issue!
I think this would mainly be an optax functionality since FedJAX optimizers just wrap around existing optax optimizers.
If you want a different client learning rate for each round of federated averaging, here are few suggestions:

Pass round number as part of the server_state in the federated algorithm and then create a new client optimizer with learning rate based on it at each round of federated training. (caveat: potentially slow due to effectively recompiling client optimizer apply function each round)
Optax has built-in support for learning rate decay e.g., optax.exponential_decay. Some of these schedulers can be used directly / tweaked to support your use cases.

Some potentially helpful links:

https://github.com/deepmind/optax#schedules-schedulepy (intro to schedulers in optax)
https://github.com/google/fedjax/blob/main/fedjax/experimental/notebooks/emnist_compression.ipynb (example using scheduler for server optimizer)

If you have more concrete examples of what you're trying to do, we'd be happy to look into it!


Form activity

Index.html, style.css, portfolio.js updated Form Validation Activity Week 4 Day 3

https://user-images.githubusercontent.com/65233860/197350763-26ebdc05-0bab-4a3b-8dc2-a28093e628cc.gif

!https://user-images.githubusercontent.com/65233860/197350763-26ebdc05-0bab-4a3b-8dc2-a28093e628cc.gif

https://user-images.githubusercontent.com/65233860/197350763-26ebdc05-0bab-4a3b-8dc2-a28093e628cc.gif

neymar

STATUS: APPROVED :green_circle: :clap:
Hi @amentetteh,
Your project is complete!  There is nothing else to say other than... Great job 👏
Congratulations! 🎉
TO HIGHLIGHT:

Your project is professional  :heavy_check_mark:
Your repo is professional  :heavy_check_mark:
DRY & KISS Code  :heavy_check_mark:
No Linter errors  :heavy_check_mark:
Correct GitHub Flow. :heavy_check_mark:

Now you can merge this branch and move on :1st_place_medal:
HAPPY CODING AND GOOD LUCK WITH THE COMMING ONES :crossed_fingers: :four_leaf_clover:


Final class with all dispatched events

I've added a final class with all dispatched events and some info about each event. This makes a more reliable way of hooking into the event without using a hardcoded string eventname

Thanks ;)


How to deploy?

I created a Static Web App, selecting "Other" in "Deployment details Source".
After the resource is created, there is no option to deploy an app and I cannot find the instructions mentioned. The links in Azure portal take to documentation pages that explain how to use GitHub and Azure DevOps. What about the "Other" option?

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

ID: 63230b97-2269-3fed-7fca-882bb380c5f6
Version Independent ID: feb2708e-5cea-4ad8-eaaa-f3061e18c11a
Content: Quickstart: Build your first static web app
Content Source: articles/static-web-apps/get-started-portal.md
Service: static-web-apps
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

@dluc
Thanks for your feedback! We will investigate and update as appropriate.

dluc, we'd been discussing on this internally.
Our content team is working on an update to the docs that will be a better destination for the “Other” option. Thanks for bringing this up.


encoding/gob: merges maps instead of replacing

go version: Whatever is on play.golang.org.
Operating system: Linux
What I did: used gob.Decoder.Decode to an already existing map. See: http://play.golang.org/p/yjPCjdHp93
What I expected: the map passed to Decode will be entirely overwritten by the gobbed input map.
What I got: the map passed to Decode got merged with the gobbed input map.
At the very least, the decoder merging instead of replacing maps should be documented.

Yes, this explanation is good and resolves the issue for me.


⚠ Bofrost.lu has degraded performance

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

HTTP code: 200
Response time: 915 ms

Resolved: Bofrost.lu performance has improved in 949284f after 21 minutes.


Replace #[derive(FromPrimitive)] with the enum_primitive crate

The built-in #[derive(FromPrimitive)] only works with std::num::FromPrimitive, which is still unstable.  This significantly reduces our reliance on #![feature(core)].

:heart:


WIP: prep for final step of typescript conversion

gulpify the concat of external bower css and js files into a single directory inside wwwroot.
http://screencast.com/t/jsMt4Rn4B

Deleting this PR (long tail on merge/resolution) but we can tackle it again...this scope is the size of a code-a-thon.


bug: extra slash in path on ssh connection

Did you check the docs and existing issues?

[X] I have read the docs
[X] I have searched the existing issues

Neovim version (nvim -v)
0.10.0
Operating system/version
MacOS 14.4.1
Describe the bug
Hi there! Not sure if this is a problem but I noticed that there is an extra slash in the path. This slash is added when a connection to ssh is established. It's not a bug on my end but as a perfectionist I find it a bit annoying. Thanks :)

What is the severity of this bug?
minor (annoyance)
Steps To Reproduce

nvim -u repro.lua
:e oil-ssh://user@host/

Then we get connection to path like oil-ssh://user@host//root
Expected Behavior
The path must not contain an extra slash, for example oil-ssh://user@host/root or oil-ssh://user@host:/root, I guess
Directory structure
No response
Repro
-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  {
        "stevearc/oil.nvim",
        config = function()
            require("oil").setup({
              -- add any needed settings here
            })
        end,
  },
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

Did you check the bug with a clean config?

[X] I have confirmed that the bug reproduces with nvim -u repro.lua using the repro.lua file above.

This is intentional and mirrors the format that netrw uses. Instead of scp://[<username>@]<hostname>[:<port>]/<path> we use oil-ssh://[<username>@]<hostname>[:<port>]/<path>. The key being that the / after the hostname/port is necessary so that we know when it has ended and the path is beginning. If the path on the remote machine is an absolute path, then it will start with a /. This is why the full url will have two slashes there.

Got you, thanks for the explanation!


Switch to goreleaser and github actions

Done as of https://github.com/glassechidna/stackit/releases/tag/0.0.23


Problem with opening attach pics and Viewing embedded pics

Expected behavior
Open pictures to gallery / Show new embedded picture in email instead of some kind of stored picture
Actual behavior
In the past I have had some file types not open to the correct app from K9 mail, but now even pictures (jpg) will not open with the right app or even give me a choice of app to open with.  I have double checked that the wrong apps are not “default” and have also cleared all defaults with no luck.
Also have an issue where an embedded preview picture is sent by my security cameras, but K9 keeps showing it as the same picture even though the security cam is sending different pictures (maybe with the same name?).
Steps to reproduce

Have security cam auto send different pictures with the same name
Send embedded pictures with same name
Try to view and open these pictures

Environment
K-9 Mail version:  5.207
Android version:  4.4.2
Account type (IMAP, POP3, WebDAV/Exchange):  pop3

In terms of the embedded previews, it's possible that the way the caching in the WebView works causes this.
In terms of the external opening, it's likely they don't properly support content URIs and assume there's a file to open, instead of an input stream. As for why you don't get a choice - that depends on what apps you have that claim they can handle the MIME types we provide.

So is there any way to change the "caching in the WebView" to fix this?

I'll have a look. Is it the same image being shown in different emails, or the same image being shown multiple times in a single email?

different images in different emails, but they show as the same image from one email to the next (I am guessing because the sending program doesn't change the name of it?)

Okay thanks. So we are doing the right thing in terms of providing different image files.
It looks like there's some API calls we can use:
webView.getSettings().setAppCacheEnabled(false);
webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
webView.clearCache()

Ooooh.  Um... do I need to know how to make that happen?

No, that's the point of my PR - to add them.

Oh!  Thank heavens.  I write code, but have no idea where I would put that.  LOL
Let me know when to do some testing on it.  :)

I just tried it: Clearing the cache will actually cause external images to be lost after an orientation change. The reason is that network data is currently always blocked after a save/restore cycle; see also #2685.
I had to tweak it a bit, but now PR #2716 fixes this when combined with PR #2721.

There doesn't appear to be an easy way to disable caching of inline images on all supported Android versions. But given that the Content ID is required to be globally unique, I'd rather not waste more time on supporting this on older Android versions.
@TafCaf: Since you're on an Android version lower than 5.0 you won't benefit from the caching fix. You could work around this by long-pressing the image, then selecting "View image" to open the image in an external image viewer.

Okay.  Thank you a lot for looking into it.  I will try the “view image” option.
 But given that the Content ID is required to be globally unique, I'd rather not waste more time on supporting this on older Android versions.
@TafCaf https://github.com/tafcaf : Since you're on an Android version lower than 5.0 you won't benefit from the caching fix. You could work around this by long-pressing the image, then selecting "View image" to open the image in an external image viewer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/k9mail/k-9/issues/2699#issuecomment-327550543 , or mute the thread https://github.com/notifications/unsubscribe-auth/Ad15gYC3y3L3wWKc1IIQwMEvkZr9nc2-ks5sftF_gaJpZM4PAidN .  https://github.com/notifications/beacon/Ad15gXu2DxSWZtUXHE12A18J_O_nT1nzks5sftF_gaJpZM4PAidN.gif

Since K-9 Mail 5.7xx only supports Android 5.0 and newer this issue can be closed.


Prevent overlay close

This is more of a support question.
Currently, this is working for me:
$('#my_popup').popup('show').load("subs.html");
To keep escape from closing the overlay, I've tried
$('#my_popup').popup('show', {escape: false}).load("subs.html");
and
   $.fn.popup.defaults.escape = 'false';
but that would, if it worked, only gets me halfway there.  A click on the page also closes the overlay.
I need to disable the ability to close the overlay both with escape and click outside the overlay.  How do I do that?

You can add blur: false to options, this should prevent overlay from being closed when clicking outside of it.

Curiosity has me. Why would you want to do that?  I speak from an ada perspective which is sometimes a go to for escaping an overlay.   Simply curiosity.  Good luck!
Sent from my phone

On Aug 12, 2017, at 5:34 PM, howardowens<EMAIL_ADDRESS>wrote:
This is more of a support question.
Currently, this is working for me:
$('#my_popup').popup('show').load("subs.html");
To keep escape from closing the overlay, I've tried
$('#my_popup').popup('show', {escape: false}).load("subs.html");
and
$.fn.popup.defaults.escape = 'false';
but that only gets me halfway there. A click on the page also closes the overlay.
I need to disable the ability to close the overlay. How do I do that?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

$('#my_popup').popup('show', {blur: false}).load("subscriptions.html");
Didn't work.
mrbrimm: This is for a mobile app that will require a subscription for some content, so the overlay needs to be binary, either click the button to subscribe or click the link to return to the home page.  Being able to close it would defeat the purpose, allowing users to read the story without subscribing.

Probably options can't be passed as a second parameter. You need something like this:
$('#my_popup').popup({ escape: false, blur: false, autoopen: true })

@pvgoran +1
That did the trick.  Thanks.

Aha!
Sent from my phone

On Aug 12, 2017, at 5:52 PM, howardowens<EMAIL_ADDRESS>wrote:
$('#my_popup').popup('show', {blur: false}).load("subscriptions.html");
Didn't work.
mrbrimm: This is for a mobile app that will require a subscription for some content, so the overlay needs to be binary, either click the button to subscribe or click the link to return to the home page. Being able to close it would defeat the purpose, allowing users to read the story without subscribing.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.


FFI doesn't work on some arm-v7a android devices

Problem
I maintain a package providing sqlite3 bindings with dart:ffi (called moor_ffi). Some users were reporting that on some devices, inserting a (64 bit) integer will write bogus values to the database (link to issue).
I could reproduce this with a very minimal native library:
int test_2(void* stmt, int bar, int64_t baz) {
  // same signature as sqlite3_bind_int64
  return baz >> 32;
}

I'm binding to this function in Dart using
class SomeStruct extends Struct {}

typedef test_2_native = Int32 Function(Pointer<SomeStruct>, Int32, Int64);
typedef test_2 = int Function(Pointer<SomeStruct>, int, int);

Calling test2(Pointer.fromAddress(0xdeadbeef), 123, 1); returns 1 on some devices. I would expect it to return 0, as it does on most devices. While it looks like this problem only happens on arm-v7a devices, it doesn't happen on every arm-v7a device, and also not on each android version.
Steps to Reproduce
This requires the NDK to be installed and available.

Check out https://github.com/simolus3/arm-ffi-repro
Run flutter run --release on an affected device
See exception in the output

Affected devices
@pY4x3g could reproduce this on a Moto G5 Plus, running Android 8.1. Their flutter doctor output was
[√] Flutter (Channel beta, v1.17.0, on Microsoft Windows [Version 10.0.18363.720], locale de-DE)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.6)
[!] IntelliJ IDEA Community Edition (version 2019.3)
    X Flutter plugin not installed; this adds Flutter specific functionality.
[!] VS Code, 64-bit edition (version 1.43.0)
    X Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (1 available)

! Doctor found issues in 2 categories.

If the small repro has the same underlying problem as the one in moor_ffi, devicelab failures provided by @britannio indicate that the devices listed here are affected as well.
I don't know if it helps, but it seems like this does not happen on all arm-v7a devices. The only 32 bit arm device I have is an old Galaxy S3, where this does not happen.

@simolus3, in order to identify this problem, create a release application with FFI and transfer the .apk file to the Android emulator, and you will get a crash.
Tested on the Pixel 3a API 28 emulator (with Google Play).

Seems really strange that it only affects some devices, ABI should be the same.
/cc @dcharkes

/cc @mkustermann

I added the test, but it does not repro on the phone that I'm using to test, a Nexus 5X.
$ tools/test.py -n dartk-android-debug-arm tests/ffi_2/regress_flt54948_test.dart  &&  tools/test.py -n dartkp-android-debug-arm tests/ffi_2/regress_flt54948_test.dart
Test configuration:
    dartk-android-debug-arm(architecture: arm, compiler: dartk, mode: debug, runtime: vm, system: android)
Suites tested: ffi_2
Found 1 Android devices.
[00:46 | 100% | +    1 | -    0]

=== All 1 test passed ===
Test configuration:
    dartkp-android-debug-arm(architecture: arm, compiler: dartkp, mode: debug, runtime: dart_precompiled, system: android)
Suites tested: ffi_2
Found 1 Android devices.
[00:37 | 100% | +    1 | -    0]

=== All 1 test passed ===

It also doesn't repro on QEMU, but that uses a slightly different ABI: armabihf. And unfortunately QEMU doesn't come with Cortex A53 core simulation, which are the ones in the Snapdragon 625, in the Moto 5 Plus.
$ qemu-arm -cpu cortex-a15 -L /usr/arm-linux-gnueabihf/ out/DebugXARM/dart --ignore-unrecognized-flags --packages=/usr/local/google/home/dacoharkes/dart-sdk/sdk/.packages /usr/local/google/home/dacoharkes/dart-sdk/sdk/tests/ffi_2/regress_flt54948_test.dart

@britannio It would be useful to know how exactly the FFI call fails.

Does it happen on arguments in all positions?
How are the bits mangled? Deterministic or not? Are the bits garbage, or some kind of permutation of the arguments?
Maybe to be sure that it's not some kind of build artifact, if you know how to build the Dart SDK with my testing CL, check if it reproduces on that test.

@dcharkes I'm not really involved in this so I'm tagging @simolus3

a Nexus 5X

From Wikipedia it looks like that phone has a Snapdragon S808, which according to this is 64 bit. I guess that shouldn't make a difference when running a 32-bit app but it looks like this bug is specific to some few devices.
Note that I couldn't reproduce this myself, but from this comment it sounds like the test should fail on a Moto G5 Plus.

How are the bits mangled?

If you mean the last parameter, I was just trying to iterate over random values to reproduce this. The function was supposed to mimic sqlite3_bind_int64, where the last parameter is a 64 bit int.
I'll try to reproduce this in Firebase Test Lab. If that works I can try to move the 64 bit arg to a different position as well.

@mraleph The cross compiler (simarm_x64/gen_snapshot) also doesn't trigger this on QEMU.
$ tools/test.py -n dartkp-linux-debug-arm-qemu -k -v tests/ffi_2/regress_flt54948_test.dart
Test configuration:
    dartkp-linux-debug-arm-qemu(architecture: arm, compiler: dartkp, mode: debug, runtime: dart_precompiled, system: linux, use-qemu)
Suites tested: ffi_2
Running "vm_compile_to_kernel []" command: DART_CONFIGURATION=DebugXARM /usr/local/google/home/dacoharkes/dart-sdk/sdk/pkg/vm/tool/gen_kernel --aot --platform=out/DebugXARM/vm_platform_strong.dill -o /usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.dill /usr/local/google/home/dacoharkes/dart-sdk/sdk/tests/ffi_2/regress_flt54948_test.dart --packages=/usr/local/google/home/dacoharkes/dart-sdk/sdk/.packages -Ddart.vm.product=false -Ddart.developer.causal_async_stacks=true
Running "precompiler" command: DART_CONFIGURATION=DebugXARM out/DebugSIMARM_X64/gen_snapshot --snapshot-kind=app-aot-assembly --assembly=/usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.S --no-use-integer-division --ignore-unrecognized-flags --packages=/usr/local/google/home/dacoharkes/dart-sdk/sdk/.packages /usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.dill
Running "assemble" command: DART_CONFIGURATION=DebugXARM arm-linux-gnueabihf-gcc -shared -nostdlib -o /usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.aotsnapshot /usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.S
Running "vm" command: DART_CONFIGURATION=DebugXARM qemu-arm -L /usr/arm-linux-gnueabihf/ out/DebugXARM/dart_precompiled_runtime --ignore-unrecognized-flags --packages=/usr/local/google/home/dacoharkes/dart-sdk/sdk/.packages /usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.aotsnapshot
Done dartkp-dart_precompiled debug_arm ffi_2/regress_flt54948_test: pass

Neither does not cross compiling (out/DebugXARM/clang_x86/gen_snapshot):
$ out/DebugXARM/clang_x86/gen_snapshot --snapshot-kind=app-aot-assembly --assembly=/usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.S --no-use-integer-division --ignore-unrecognized-flags --packages=/usr/local/google/home/dacoharkes/dart-sdk/sdk/.packages /usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.dill
$ arm-linux-gnueabihf-gcc -shared -nostdlib -o /usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.aotsnapshot /usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.S
$ qemu-arm -L /usr/arm-linux-gnueabihf/ out/DebugXARM/dart_precompiled_runtime --ignore-unrecognized-flags --packages=/usr/local/google/home/dacoharkes/dart-sdk/sdk/.packages /usr/local/google/home/dacoharkes/dart-sdk/sdk/out/DebugXARM/generated_compilations/dartkp/tests_ffi_2_regress_flt54948_test/out.aotsnapshot

I was also trying to double check if there is any discrepancy between standalone dart (tested to tools/test.py) and Flutter. However, I'm pretty sure this runs in 64 bit:
$ flutter run --release
Launching lib/main.dart on Nexus 5X in release mode...
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                      19.0s
✓ Built build/app/outputs/flutter-apk/app-release.apk (6.3MB).
Installing build/app/outputs/flutter-apk/app.apk...                 9.7s

Flutter run key commands.
h Repeat this help message.
c Clear the screen
q Quit (terminate the application on the device).
I/flutter (23489): check succeeded

Application finished.

We can specify a target platform when building, but not when running:
$ flutter build apk --release --target-platform=android-arm
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                       1.9s
✓ Built build/app/outputs/flutter-apk/app-release.apk (5.0MB).
$ flutter run --release --target-platform=android-arm
Could not find an option named "target-platform".

Is it possible to get flutter run to run a 32 bit app on a 64 bit phone?

Firstly thank you very much for the detailed bug report!
I have tried to follow the reproduction instructions from https://github.com/flutter/flutter/issues/54948#issue-600942944 on Moto 4G / Nexus 5X without success.
@simolus3 @pY4x3g @britannio Could I ask you confirm that this issue persists with newest master of flutter/flutter and tell us which device you can confirm this on?
If we have confirmation, we can purchase such a device and get to the bottom of it.

We don't support a targetPlatform argument to run anymore (we really should add it back). But you can simulate it by building the APK variant you want with --target-platform, and then running with flutter run --use-application-binary=path/to/app.apk

E/flutter (12232): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: test_2(1) = 1. Expected 0
E/flutter (12232): #0      runCheck (package:arm_ffi_repro/ffi_repro.dart:41)
E/flutter (12232): #1      main (file:///e:/Projects/_Flutter_Projects/repro/lib/main.dart:7)
E/flutter (12232): #2      _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:247)
E/flutter (12232): #3      _rootRun (dart:async/zone.dart:1190)
E/flutter (12232): #4      _CustomZone.run (dart:async/zone.dart:1093)
E/flutter (12232): #5      _runZoned (dart:async/zone.dart:1630)
E/flutter (12232): #6      runZonedGuarded (dart:async/zone.dart:1618)
E/flutter (12232): #7      _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:239)
E/flutter (12232): #8      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301)
E/flutter (12232): #9      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168)

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 1.19.0-2.0.pre.145, on Microsoft Windows [Version 10.0.18363.836], locale ru-RU)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Android Studio (version 3.6)
[√] VS Code (version 1.45.1)
[√] Connected device (1 available)

• No issues found!

Huawei Honor 8S (MediaTek Helio A22 MT6761), 64 bit Cortex-A53

@andreystavitsky Thank you!
We have ordered a Honor 8S 32GB, Dual SIM, Android 9.0 (Pie), MediaTek MT6761. It will take some time until it arrives. We'll update the thread once it arrives and we can verify the problem.

@andreystavitsky The good news is that our Honor 8S arrived today. The bad news is that I cannot reproduce the issue.
First I prepare my flutter checkout to have a close version to what was reported:
<flutter-flutter-checkout> % git checkout 1.19.0-2.0.pre -b ffi-bug

Then I build the app via:
% git clone https://github.com/simolus3/arm-ffi-repro
Cloning into 'arm-ffi-repro'...
remote: Enumerating objects: 47, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 47 (delta 0), reused 47 (delta 0), pack-reused 0
Receiving objects: 100% (47/47), 15.02 KiB | 0 bytes/s, done.

% cd arm-ffi-repro

arm-ffi-repro % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel unknown, 1.19.0-2.0.pre, on Mac OS X 10.15.3 19D76, locale en-US)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0-rc2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.45.1)
[✓] Connected device (4 available)

• No issues found!

% flutter build apk --release --target-platform=android-arm --split-per-abi
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                      36.6s
✓ Built build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk (5.0MB).

% adb install build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk
Performing Streamed Install
Success

=> I can launch the app without any issues on Huawei Honor 8S.
When digging a little deeper it seems like the CPU in Honor 8S is capable of 64-bit but the Android OS runs in 32-bit system.
The next hypothesis I had was that this was somehow a Windows specific problem, so I've tried to build the APK the same way on windows and install it but it sill succeeds.
@andreystavitsky Could you make the APK you built (and crashes) publicly available?

https://send.firefox.com/download/3daf11e2a8d15d64/#de2J7kIPiH7RfJdplzkYZQ

Well, I cant reproduce this bug on Mac, only on Windows
Windows 10 2004 19041.264 Pro, Hyper-V enabled, installed Docker and WSL2
d:\Projects\_Flutter_Projects\repro2>flutter doctor -v
[√] Flutter (Channel stable, v1.17.2, on Microsoft Windows [Version 10.0.19041.264], locale uk-UA)
    • Flutter version 1.17.2 at D:\Projects\_Flutter
    • Framework revision 5f21edf8b6 (6 days ago), 2020-05-28 12:44:12 -0700
    • Engine revision b851c71829
    • Dart version 2.8.3

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\andre\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.45.1)
    • VS Code at C:\Users\andre\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.11.0

[√] Connected device (1 available)
    • KSA LX9 • 3PQNU20104300142 • android-arm • Android 9 (API 28)

d:\Projects\_Flutter_Projects\repro2>flutter run --release
Launching lib\main.dart on KSA LX9 in release mode...
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                       8,9s
√ Built build\app\outputs\apk\release\app-release.apk (5.9MB).
Installing build\app\outputs\apk\app.apk...                         2,5s

Flutter run key commands.
h Repeat this help message.
c Clear the screen
q Quit (terminate the application on the device).
E/flutter (13281): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: test_2(1) = 1. Expected 0
E/flutter (13281): #0      runCheck (package:arm_ffi_repro/ffi_repro.dart:41)
E/flutter (13281): #1      main (file:///d:/Projects/_Flutter_Projects/repro2/lib/main.dart:7)
E/flutter (13281): #2      _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:241)
E/flutter (13281): #3      _rootRun (dart:async/zone.dart:1184)
E/flutter (13281): #4      _CustomZone.run (dart:async/zone.dart:1077)
E/flutter (13281): #5      _runZoned (dart:async/zone.dart:1619)
E/flutter (13281): #6      runZonedGuarded (dart:async/zone.dart:1608)
E/flutter (13281): #7      _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:233)
E/flutter (13281): #8      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301)
E/flutter (13281): #9      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168)

given that is a Windows only issue this might mean a bug similar to one fixed by dart-lang/sdk@164948ab0a88206de335b825131a7646dbb16e50 (maybe even the same bug)

Test on latest master
d:\Projects_Flutter_Projects\repro2>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 1.19.0-4.0.pre.38, on Microsoft Windows [Version 10.0.19041.264], locale uk-UA)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[!] Android Studio (version 4.0)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.45.1)
[√] Connected device (1 available)

! Doctor found issues in 1 category.

d:\Projects\_Flutter_Projects\repro2>flutter run --release
Launching lib\main.dart on KSA LX9 in release mode...
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                      20,8s
√ Built build\app\outputs\flutter-apk\app-release.apk (6.0MB).
Installing build\app\outputs\flutter-apk\app.apk...                 2,5s

Flutter run key commands.
h Repeat this help message.
c Clear the screen
q Quit (terminate the application on the device).
E/flutter (21704): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: test_2(1) = 1. Expected 0
E/flutter (21704): #0      runCheck (package:arm_ffi_repro/ffi_repro.dart:41)
E/flutter (21704): #1      main (file:///d:/Projects/_Flutter_Projects/repro2/lib/main.dart:7)
E/flutter (21704): #2      _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:247)
E/flutter (21704): #3      _rootRun (dart:async/zone.dart:1190)
E/flutter (21704): #4      _CustomZone.run (dart:async/zone.dart:1093)
E/flutter (21704): #5      _runZoned (dart:async/zone.dart:1630)
E/flutter (21704): #6      runZonedGuarded (dart:async/zone.dart:1618)
E/flutter (21704): #7      _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:239)
E/flutter (21704): #8      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301)
E/flutter (21704): #9      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168)

@mkustermann forgot to say, but APK is not crashes, it's just write some debug log to console.

@andreystavitsky Thanks a lot. I can reproduce the issue now also with on my Windows (probably I did something wrong when I first tried it).
Issue 1 (harmless)
It seems like the flutter tools

on windows uses a 32-bit gen_snapshot.exe binary (**) to produce 32-bit ARM code
on macos uses a 64-bit gen_snapshot binary (**) to produce 32-bit ARM code

(**) gen_snapshot is our AOT (cross)compiler.
This is a bit weird and we might want to change that. Though it should be safe either way. Though they compile to slightly different code in a special case:
Our assembler_arm.cc looks like this:
void Assembler::ReserveAlignedFrameSpace(intptr_t frame_space) {
  ...
  if (OS::ActivationFrameAlignment() > 1) {
    bic(SP, SP, Operand(OS::ActivationFrameAlignment() - 1));
  }
}

This uses OS::ActivationFrameAlignment() which is defined in os_win.cc:
intptr_t OS::ActivationFrameAlignment() {
#if defined(TARGET_ARCH_ARM64)
  return 16;
#elif defined(TARGET_ARCH_ARM)
  return 8;
...
}

and in os_macos.cc:
intptr_t OS::ActivationFrameAlignment() {
#if HOST_OS_IOS   // <-- This is not defined
  ...
#else
  // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI
  // Function Call Guide".
  return 16;
#endif
}

This means we use 16 byte alignment when our cross compiler runs on MacOS but only 8 byte alignment if our cross compiler runs on Windows.
Though the ABI only requires 8 so we should be safe.
Issue 2
Without having verified it, it seems to me that the FFI implementation relies on undefined evaluation order, see compiler/ffi/native_calling_convention.cc:
  const NativeLocation& AllocateArgument(const NativeType& payload_type) {
    if (payload_type_converted.IsFloat()) {
      ...
    } else {
      ...
      if (target::kWordSize == 4 && payload_type.SizeInBytes() == 8) {
        ...
        if (cpu_regs_used + 2 <= CallingConventions::kNumArgRegs) {
          return *new (zone_) NativeRegistersLocation(
              payload_type, container_type,
              AllocateCpuRegister(), AllocateCpuRegister());
              //   ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Evaluation order undefined
        }
      } else {
        ...
      }
    }
 }

C++ doesn't guarantee any order of evaluation for the two AllocateCpuRegister() calls. Windows is known to use different evaluation order.
=> I think this is the bug.
=> Made https://dart-review.googlesource.com/c/sdk/+/149980 and will try to verify it later today.

I have manually confirmed that this fixes the problem.

I have filed a cherry-pick request into beta/stable branches: https://github.com/dart-lang/sdk/issues/42184

FWIW all channels except stable contain the fix

https://github.com/flutter/flutter/issues/58631#issuecomment-643959847

removing hotfix: 1.17 label based on risk assessment, this will be in our next stable release.

https://github.com/flutter/flutter/issues/58631#issuecomment-644838695

@dcharkes When approximately will be the next release, I need This but my app is on production, so i like keep using stable channel.

The date of the next stable release is not defined yet, but it looks like it is targeting sometime in July.

/cc @eonoe - is this the issue you're hitting?

/cc @eonoe - is this the issue you're hitting?

@pcsosinski yes we think that is related with this one.

how is the situation? the 17.5 version seems to have the problem still

The cherry pick request was denied, so it has not been merged into 1.17.5.  So this fix will only be available in Flutter 1.18.x, and is available on Flutter master.

The cherry pick request was denied, so it has not been merged into 1.17.5. So this fix will only be available in Flutter 1.18.x, and is available on Flutter master.

ok, is it possible to have an idea of when the 1.18 will be released? weeks, months? ty

any updates on this issue?

As mentioned, it's available in master, and will be released in the next stable release. See Flutters release cadence on the wiki: https://github.com/flutter/flutter/wiki/Roadmap#release-channels-and-cadence.


Kubernetes-KeyVault-FlexVolume deprecated

"For more information, see the Kubernetes-KeyVault-FlexVolume project on GitHub." but this project https://github.com/Azure/kubernetes-keyvault-flexvol is deprecated in favour of https://github.com/Azure/secrets-store-csi-driver-provider-azure

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

ID: c5e2e444-d6b9-962e-56d4-8d1f3508ba9e
Version Independent ID: 061ea6aa-353b-a98d-cbf6-639209a5fd1b
Content: Microservices architecture on Azure Kubernetes Service (AKS) - Azure Architecture Center
Content Source: docs/reference-architectures/microservices/aks.md
Service: architecture-center
Sub-service: reference-architecture
GitHub Login: @MikeWasson
Microsoft Alias: pnp

Thanks for reporting - this issue is under review.  This is a Microsoft Internal DevOps Bug ID AB#213599

@fduran PR has been created for this which will address this. Thanks so much for providing the feedback that help us in improving the documentation. For now I will proceed with closure of this and If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


What are the advantages compared with windows PowerShell

With windows 10 , microsolf made a windows PowerShell，I think powerShell is good.What are the advantages compared with windows PowerShell

You can use Cash in Powershell. It's in the main the commands - powershell does not implement all of the Linux coreutils, that's what Cash aims to do.
Does that answer your question?

thanks

:+1:


Allow to pass 'options' array for s3 storage adapter

Q
A

Bugfix?
❌

Breaks BC?
❌

New feature?
✔

Issues
#416

As it turned out, this functionality is necessary for the Minio Server. Therefore, it was decided to add your pull request to the 2.8.5 release patch. This is not quite according to the rules of semantic versioning, but the functionality is critical.
Related documentation: https://github.com/spiral/docs/pull/197
Thanks again!


REPL support?

Should this be working in the toplevel?
I tried it like this:
$ \ocaml -ppx ./ppx_show.native
# [%show] 1;;
Error: I/O error: //toplevel//.cmi: No such file or directory

i didn't test it in the toplevel but it can probably be made to work


MaskerGenerator

MaskGenerator for outlier detection, including

unittests
changelog
docstring
some general docs

@gfardell , @paskino , @jakobsj , @epapoutsellis
To be honest, I do not like the name MaskGenerator. The main purpose is to detect outliers. OutlierDetector sounds clumsy. I will appreciate some suggestions.

======================================================================
ERROR: test_MaskGenerator (test_DataProcessor.TestMaskGenerator)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/conda-bld/cil_1616423386389/test_tmp/cil/Wrappers/Python/test/test_DataProcessor.py", line 699, in test_MaskGenerator
    m.set_input(data)
  File "/home/jenkins/conda-bld/cil_1616423386389/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/python3.8/site-packages/cil/framework/framework.py", line 2717, in set_input
    if self.check_input(dataset):
  File "/home/jenkins/conda-bld/cil_1616423386389/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/lib/python3.8/site-packages/cil/processors/MaskGenerator.py", line 111, in check_input
    if self.axis not in data.dimension_labels.values():
AttributeError: 'tuple' object has no attribute 'values'

This is because dimension_labels are now an ordered list instead of a dictionary. Removing .values() should be sufficient

@gfardell , @paskino , @jakobsj , @epapoutsellis
To be honest, I do not like the name MaskGenerator. The main purpose is to detect outliers. OutlierDetector sounds clumsy. I will appreciate some suggestions.

I think the name is fine as the mask is the output, not a list of outlier indices, and it can be used directly with Masker.

I think MaskGenerator is okay. Otherwise not sure. Maybe Thresholder?
On Mon, 22 Mar 2021, 16:17 Gemma Fardell, @.***> wrote:

@gfardell https://github.com/gfardell , @paskino
https://github.com/paskino , @jakobsj https://github.com/jakobsj ,
@epapoutsellis https://github.com/epapoutsellis
To be honest, I do not like the name MaskGenerator. The main purpose is
to detect outliers. OutlierDetector sounds clumsy. I will appreciate some
suggestions.
I think the name is fine as the mask is the output, not a list of outlier
indices, and it can be used directly with Masker.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/vais-ral/CCPi-Framework/pull/807#issuecomment-804144059,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACMDSCCOUIM7755N7L5XZM3TE5NSBANCNFSM4ZTG3HIA
.

Not too many changes. Let me know when you're happy for it to be merged.

I updated the processors based on you comments @gfardell , thanks you!
Happy to merge if you are happy

I think MaskGenerator is okay. Otherwise not sure. Maybe Thresholder?
…
On Mon, 22 Mar 2021, 16:17 Gemma Fardell, @.***> wrote: @gfardell https://github.com/gfardell , @paskino https://github.com/paskino , @jakobsj https://github.com/jakobsj , @epapoutsellis https://github.com/epapoutsellis To be honest, I do not like the name MaskGenerator. The main purpose is to detect outliers. OutlierDetector sounds clumsy. I will appreciate some suggestions. I think the name is fine as the mask is the output, not a list of outlier indices, and it can be used directly with Masker. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#807 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMDSCCOUIM7755N7L5XZM3TE5NSBANCNFSM4ZTG3HIA .

Thank you for suggestions. Thresholder might be confusing as we support mush fancier ways to detect outliers.
It seems that MaskGenerator is not that bad. Let's keep it then.

@paskino and I were discussing this processor and think it would benefit from a factory approach similar to the centre of rotation finder. So the user would call masker.mean() or masker.nan() etc. this means the input arguments can be specific to the mode, and simplify the doc string for each function.
The factory will return return the existing processor so no changes will be needed to these scripts.
I can implement the factory wrapper for it tomorrow if there are no objections?

@paskino and I were discussing this processor and think it would benefit from a factory approach similar to the centre of rotation finder. So the user would call masker.mean() or masker.nan() etc. this means the input arguments can be specific to the mode, and simplify the doc string for each function.
The factory will return return the existing processor so no changes will be needed to these scripts.
I can implement the factory wrapper for it tomorrow if there are no objections?

This would be fantastic @gfardell, thank you. This will also help me to understand this factory stuff a bit better.

A Factory is normally a static method of a class whose role is to create an instance of another class. The reason is to simplify the life of the user shielding them from implementation details. It also helps in readability.
In this case, you'd need to create an instance of MaskCreator with a number of appropriate parameters. These parameters depend on some choice, e.g. threshold_factor has sense if the method is mean or median, not otherwise. In the current implementation you could pass threshold_factor to method inf. It'd be discarded, but still it'd be possible.
With a factory this will not happen and

m1 = MaskGenerator.threshold((10,20))
m2 = MaskGenerator.mean(threshold_factor=5)
m3 = MaskGenerator.inf()

m1.set_input(data)
m2.set_input(data)
m3.set_input(data)

out1 = m1.get_output()
out2 = m2.get_output()
out3 = m3.get_output()

In the creation of m1, m2, m3 only the appropriate parameters are accepted, so the docstring can also be significantly simplified, and user's life made easier.


Updating HELP-Med questions

This should be the final changes! Modifying the question to encourage more verbose responses.

I've Approved your PR but I add a small change for you to do. Please after you've don it let me know so I can merge those changes


screencast with support for responsive mode, also auto reload

Is your feature request related to a problem? Please describe.

this misses the point of everything in vscode we cannot test responsiveness in vs code we have to use the browser.
Describe the solution you'd like:

auto-live server url configured. live server automatically starts in edge, screen cast of browser window with option to test responsiveness of the website.
Describe alternatives you've considered:
I have updated the config file with live-server url and installed live server nam package.

Additional context:

Loving this extension, and Microsoft edge but if we have to test the responsiveness of the website then we have to go to the browser window. and inspect it. also add autoreload.

Thank you for your feedback, we're currently looking into integrating with the live server extension and will keep you updated. As to the responsive mode, this is also something we are actively working on.


Is it possible to navigate to other page when tap on labels/bars?

yes, you can listen to touch events by touchResponseSink,
check out the samples.


Add address sanitizer build option

@cgmb Wondering if I could get your help figuring out this issue. When building with the address sanitizer flag, I get the following issue
[  8%] Linking Fortran shared library libhipsolver_fortran.so
collect2: fatal error: cannot find 'ld'
compilation terminated.
library/src/CMakeFiles/hipsolver_fortran.dir/build.make:86: recipe for target 'library/src/libhipsolver_fortran.so' failed
Suspect it has something to do with gfortran. I'm getting the same issue on hipBLAS address sanitizer. Not quite sure how to resolve it

If you build with the VERBOSE environment variable set (e.g. make VERBOSE=1 -C build/release), you can see the actual commands used and it's a lot easier to track down problems. You can copy/paste/modify the build commands for individual files, and try different variations until you find one that works.
In this case, the problem seems to be -fuse-ld=lld. gfortran is used for the linking of the Fortran shared library, and it doesn't like that flag. We could probably try a different approach that only adds these flags to selected targets, so they're not used for Fortran code.


Add back to top option in the footer

@sejalvasan  ma'am can i go ahead solving it?

Yes, go ahead @maahiunnati


Use "Load More" instead of infinite scroll for proposals feed

Currently because of absolute positioning, in proposal feed, it fetches all proposal at once, and since now we have good number of proposals, it takes some time to load them all.
@ori-near what do you think? should we move to  "Load More" to optimise the UX.

Hi @Megha-Dev-19 – yes please! Let's do it.


Would it be possible to make the use of a mac not mandatory?

Kdoctor is specifically geared towards Kotlin Multiplatform Mobile. It's ensuring that the environment is correct for the iOS side of KMM, which requires macOS


yarn ssl settings in gradle build script

I am on the build stage and my build is failing at the wherehows-web module while fetching packages via yarn.
:wherehows-web:yarn
yarn install v0.21.3
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/ember-redux-actions/-/ember-redux-actions-0.3.0.tgz: unable to verify the first certificate".
info If you think this is a bug, please open a bug report with the information provided in "/root/WhereHows/wherehows-web/yarn-error.log".

I know this error is because of my corporate firewall and I need to point yarn to the corporate self-signed certificate for it to work. But, yarn isn't installed globally and the node plugin in gradle is responsible for installing node and yarn. How would I specify something like the command yarn config set cafile <path-to-certificate.pem> within the gradle build script? Or, where do I define .yarnrc file which is picked up during the build? I don't have much experience with gradle and hence the question.

FIxed it by globally downloading node and yarn and setting the ssl certs within yarn.


Saving to my projects shows steps on the homescreen card

Describe the bug
When I choose to save to my projects after a tutorial is done, this is what I see on my homescreen:

Maybe there shouldn't be the green 6/6, since I can't view the tutorial?

that's how it always is with finished tutorials in makecode

closing, will reopen if there is user feedback after release


APSoC - Enable VSCode extension in Web

Closes #

Changes

Set up webpack config to compile extension for webworker context and made minor changes required in ts.config
Added webpack dependencies
Wrote command handlers for web in webCommandHandlers.ts after refactoring usage of glob for getModelManager()

Screenshots or Video

https://user-images.githubusercontent.com/76606666/179707670-bef9aa55-f5f7-47ef-bff0-0855465facb7.mov
Related Issues

Issue #101

Author Checklist

[x] Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
[x] Vital features and changes captured in unit and/or integration tests
[x] Commits messages follow AP format
[x] Extend the documentation, if necessary
[x] Merging to master from fork:branchname

Progress

The extension works in web
Features made available till now: Syntax-Highlighting and showPreview command.

Currently working on

Enabling automatic download of external models in web
Enabling export Class Diagram for web

Demo of Features enabled can be found below
Demo for Download Models and Export Class Diagram: https://drive.google.com/file/d/1Ml7jcCBNizOhEd039YURmdfQhHFAoGJF/view?usp=sharing
Demo for Export cicero archive and Parse Clause: https://drive.google.com/file/d/1Ml7jcCBNizOhEd039YURmdfQhHFAoGJF/view?usp=sharing

Update to use Node v16, current LTS: https://endoflife.date/nodejs

Can we close this PR?
https://github.com/accordproject/cicero-vscode-extension/pull/127


Bug in gzipstreamfile

I ran into a bug while trying to stream a fairly large line of data from a gzipped S3 file. Basically:
if len(self.unused_buffer) > size:
    return self.read_from_buffer()

is an incorrect call of read_from_buffer, which needs to have the argument size. I think the correct fix is as simple as:
if len(self.unused_buffer) > size:
    return self.read_from_buffer(size)

This seems to work in my particular case. Not 100% sure this is the generally correct solution, which if why I'm posting this issue rather than making a PR.

@jfoster17 I can see that the problem is that the statement returns the full contents of the buffer, meaning the read function could theoretically return more bytes than requested. Your proposed solution seems reasonable, but could you be a bit more specific: how did the bug manifest itself in your case? Was it an exception of some sort?
The reason I ask is that I'm trying to reproduce the problem in a unit test, and haven't been able to trigger the problem condition so far.

@jfoster17 Never mind, I reproduced the problem and am working on the fix.

Fixed in https://github.com/RaRe-Technologies/smart_open/commit/eba107ff82f1720aea2dabd8cceeadb70dc30611


buildah: add 'cachi2.env' after any mount options to RUN

If you have a Dockerfile like:
RUN --mount=type=bind,from=somedir,to=/mnt/somewhere \
   do-something /mnt/somewhere

then that will get mangled for a prefetch enabled build to:
RUN . /cachi2/cachi2.env && --mount=type=bind,from=somedir,to=/mnt/somewhere \
   do-something /mnt/somewhere

Which is of course invalid. This patch uses a more complicated sed invocation to add the cache2.env after any leading options, and handling line continuations.

/ok-to-test

New version with the link added

/retest


How can i use pscale CLI?

Hello,
How can i use pscale cli? I can't find pscale cli usage documentation. I can find CLI option but needs documentation.

Thank you.


Integrate the runtime into the ppx_interact package

This is a more common way of doing things and avoids having to do more maintenance in the future.

Thank you! Didn't realise it could be done this way.


ipconfig + wifi

minor changes to wifi main/backup behavior on startup
implemented console command ipconfig
added timezone and daylight saving time to file output for evdash-visualizer

Hi Nick, I hope this pull request works.


JSON payload not showing in dashboard

So, I was testing my first exception using HTTPie. Even though the request clearly has a body which is raising an exception, and that exception is properly reported in Sentry, the report doesn't include the body of the request. Instead, it just shows the body as {}.
For extra details, I using v1.1.1, Elixir v1.3.3, OTP 19, Phoenix 1.2.1.
POST [path] HTTP/1.1
Accept: application/json, */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 23
Content-Type: application/json
Host: [host]
User-Agent: HTTPie/0.9.6

{
    "account_uid": "blah"
}

HTTP/1.1 400 Bad Request
cache-control: max-age=0, private, must-revalidate
content-length: 45
content-type: application/json; charset=utf-8
date: Tue, 15 Nov 2016 14:49:01 GMT
server: Cowboy

{
    "errors": {
        "detail": "Internal server error"
    }
}

This is due to not providing a function to scrub sensitive data (relevant docs are here).  By default, the library doesn't attempt to scrub things like password, credit card, etc. and depends on the user to provide a function to do so.  This was done initially to avoid unintentionally sending sensitive information without the user specifying what should be excluded.  For reference, the implementation is here.
That said, other Sentry libraries do include default scrubbers, so I'll add one here as well.  Thanks for creating this issue 🙂


Add support for colored buttons

Is there the possibility to add the support of binding colored buttons to this interface? I think it might be the only feature missing to allow interaction with HbbTV application remotely

I don't know what you mean by "colored button".
Might be helpful:

https://github.com/Genymobile/scrcpy#shortcuts
#7
#712

Sorry, I should have mentioned that I am working on an Android Smart TV.
The remote of Smart TVs (and I think also standard ones) have the possibility to press the red/green/blue/yellow buttons to enable additional features. Would this be possible with scrcpy? The other commands work well so I think only the right binding is missing but I am new to Android's world and I don't know where to look at

First, you must find the keycode associated to these buttons, ie the KEYCODE_* values listed here: https://developer.android.com/reference/android/view/KeyEvent.html
To test, execute (for KEYCODE_HOME):
adb shell input keyevent HOME


fix: Pin Cython version to workaround issue when building PyArrow from source

Detail
Currently, we are unable to build our layers due to this issue in PyArrow: https://github.com/apache/arrow/issues/40375
Pinning Cython to an earlier version as a workaround.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 33adf8968f44f581cb92ec6553026b499fa0442e
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
Commit ID: 33adf8968f44f581cb92ec6553026b499fa0442e
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


add debug (pprof) handler

Codecov Report

Merging #95 into 0.6.x will decrease coverage by 1%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##            0.6.x     #95      +/-   ##
=========================================
- Coverage   39.81%   38.8%   -1.01%
=========================================
  Files          15      15
  Lines         884     907      +23
=========================================
  Hits          352     352
- Misses        517     540      +23
  Partials       15      15

Impacted Files
Coverage Δ

cmd/argot/main.go
8.51% <0%> (-2.76%)
:arrow_down:

Continue to review full report at Codecov.

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


next.material-ui.com may have caching issues/CDN 404's

[ ] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

Expected Behavior 🤔
Navigation should work, and the page would be loading these scripts.
Steps to Reproduce 🕹
N/A
Context 🔦
Feel free to close this if expected, but have tried on different devices/ISP's. May just be a simple caching issue with your CDN.
Your Environment 🌎
N/A

Problem resolved, dead links still pointed to next-* on homepage.


Fonts Don't Work. Can We Fix This?

Briefly describe the bug Ans: Tkinter-Designer does not support fonts. The font I have used in my Figma file is 'Fira Code',  yet when I build the python tkinter app with Tkinter-Designer it doesn't show it in that font. Even when I have it installed on my system.
Operating System Ans: Windows 10 2023 H1
What is the expected behavior? Ans: Check the computer to see if the required font is available on the computer, and then use that to display text in the GUI
Please provide step by step instructions on how to reproduce the bug Ans: Use any font other than the default font on Figma

Note: The default font on Windows 10 for Tkinter is 'Segoe UI'. Hope this helps someone.

canvas.create_text(
178.0,
458.0,
anchor="nw",
text="Tomorrow",
fill="#FFFFFF",
font=("Rubik Regular", 20 * -1)
)
this works for me. maybe try it

I just needed Tkinter-Designer for one project of mine, which is done so I don't think I'll open it again, but I hope this helps someone else 👍


Some images with caption drawn very small.

Sometimes an image is drawn very, very small at the bottom of the page. This seems to happen if the  image has a caption but sometimes yes and sometimes no.

Looks like the image fits the rest height of the page.
Can you show me the portion of your code where you add the image?

I populate the PDF via pdfSidecar Core Data objects that return either a text note or an image. I add a date to the image as a caption and also append some other caption text if the user has created it. The images are added in the populatePDF method in the switch statement.
PDFCreator.swift.zip

Is this solved?

I am working on a TPPDF update right now, changing the whole library logic takes a lot of work, but it will be worth it. I am also going to address this issue!

I will close this for now, to finally get ready for the release of the update. If you still encounter this afterwards, please create another issue!


Add archive S3 bucket

Create a new S3 bucket that will house the archived form responses.
Acceptance Criteria

[x] The S3 bucket is not publicly accessible
[x] The bucket lifecycles items older than 30 days

Bucket already exists and has the auto deletion after 30 days set up.


setParentGroup($group) not behaving as expected?

Maybe I am not understanding correctly, but if so i have a fix. I have a route /dragon and i want to add it to a group starting with a locale like en_GB, after which the route would become /en_GB/dragon. However, calling setParentGroup($group) has no effect.
route            expected     actual
/en_GB/yes       200           200
/dragon             404           200
/en_GB/dragon  200          404
$request = ServerRequestFactory::fromGlobals(
    $_SERVER, $_GET, $_POST, $_COOKIE, $_FILES
);

$router = new Router();

// create a group the normal way
$group = $router->group('/en_GB', function (\League\Route\RouteGroup $route) {
    $route->map('GET', '/yes', function (ServerRequestInterface $request) : ResponseInterface {
        $response = new Response;
        $response->getBody()->write('
YES
');
        return $response;
    });
});

// create a non grouped route
$route = $router->map('GET', '/dragon', function (ServerRequestInterface $request) : ResponseInterface {
    $response = new Response;
    $response->getBody()->write('
Here be Dragons!
');
    return $response;
});
// add the route to the group
$route->setParentGroup($group);

// get the response
$response = $router->dispatch($request);

I can send a pull reuest if indeed this behaviour is incorrect:
/**
     * Set the parent group
     *
     * @param \League\Route\RouteGroup $group
     *
     * @return \League\Route\Route
     */
    public function setParentGroup(RouteGroup $group) : self
    {
        $this->group = $group;
        $prefix = $group->getPrefix();
        $path = $this->getPath();
        if (strcmp($prefix, substr($path, 0, strlen($prefix))) != 0) {
            $path = $prefix . $path;
            $this->path = $path;
        }

        return $this;
    }

After which the expected routes now work.

https://github.com/thephpleague/route/pull/245

your PR is merged, will release soon

Many thanks amigo!!


critical images js doesn't play well with display

On ngx-pagespeed-discuss someone said their page was intermittently getting js plastered across it on mobile.  Specifically, PageSpeed was turning:

into:

Which looked like:

Here's a static copt with the same problem: http://www.jefftk.com/repro-bad-js-issue2?PageSpeed=off
Here's a simplified page with the same problem: http://www.jefftk.com/repro-bad-js-issue3?PageSpeed=off
The basic issue is that we're inserting JS inside a tag that they've set all the children of to display: inline-block.
A fix is to put display:none on the js we insert: http://www.jefftk.com/repro-bad-js-issue4?PageSpeed=off
$ diff repro-bad-js-issue{3,4}.html
7c7
<


Fix consume msgtrace loss

#2921

Coverage decreased (-0.02%) to 53.924% when pulling fe30242d8c7fe574812b09b2b028bbe2d85ef46a on zhangjidi2016:fix_consume_msgtrace_loss into b0a8959604ff2ec948cb43e5f578bc7a35cb21b0 on apache:develop.