Add gql_websocket_link adapting code from graphql-flutter

This is an adapted version of the web socket link in the graphql-flutter repo.
There are some minor changes I made:

Prevent the web socket from connecting until first request (as stated in the docs)
Making the code pedantic
Adapting it to the gql_link interface.
Copied the relevant tests files as well and made them pass.

Additionally I manually tested it and it seems to work just fine.
@comigor @klavs @smkhalsa code review and merge would be great as it is necessary for GraphQL subscriptions. (ferry lacks them for example, due to the absence of this link)

#76

Thank you @iscriptology!
Can you coordinate with @agent3bood to make sure both of your efforts are heading the same direction? see https://github.com/gql-dart/gql/pull/93

seems like dartfmt fails the checks... Executed it locally but not changing anything... Anyone?

@iscriptology what's your dartfmt version? dartfmt --version

1.3.2

dartfmt -w . from gql/gql_websocket_link worked for me. (I'm on 1.3.6)
Formatting directory .:
Unchanged example/gql_websocket_link_example.dart
Unchanged lib/gql_websocket_link.dart
Unchanged lib/src/exceptions.dart
Formatted lib/src/get_from_ast.dart
Formatted lib/src/link.dart
Formatted lib/src/messages.dart
Formatted lib/src/socket_client.dart
Unchanged test/gql_websocket_link_test.dart
Formatted test/helpers.dart
Formatted test/socket_client_test.dart

I would suggest publishing and fix issues as they are reported. No web-socket link is a major drawback to the entire ecosystem of dependant packages.
Also to get in touch with the fellows at graphql_flutter to try and utilise the shared implementation and contribute to it.

Thank you @iscriptology! This is a key piece for making gql_link a viable replacement for graphql_flutter links.
I'll try to publish it in the next 24h.

I was lucky. My automated alpha version publishing workflow worked and this is now published as https://pub.dev/packages/gql_websocket_link

Looking forward to @agent3bood contribution and to see this implementation matures


Add target

It would be great to be able to add a target to the graphs. When used with cumulative-line graph, it would, e.g., make it possible to monitor hours spend on project activities. And with bar graphs, it would allow one to monitor, e.g., how many days one meets a specific target.

Good suggestion.  Will add it to the list of feature requests.


anormDB: move the DB schema out of the code in the case of MySQL

The user will have to load the schema manually, just like when using Cassandra.
This is following a discussion on the chat about how docker-zipkin has to fetch the cassandra schema at build time while a mysql based version wouldn't have such a step.
The benefit of manually loading the schema is that we wouldn't need the collector service to start before the query service so that it can setup the schema auto-magically.
Note that the code changes are untested, I am not a scala hacker.
In other words,

@adriancole have a look when you have a minute please.

PS I'm offline until Monday. Anyone else can feel free to look at this,
else I will then.

@jfeltesse-mdsol so I think we still want this to install the schema, even if it is reading from files. (preserving the install=true contract). I'll add work on your commit to do that.

ps I think these should be the same file. the only reason the indexes weren't in the default formerly was that index syntax isn't portable.

actually I see what you mean. mysql needs a separate step to install the database anyway, and probably prod usage wouldn't want to give it access to change its schema.

#705

Thanks for the start! I added polish on the other.


last 2 versions of carrier have been crashing client (1.5.0 and 1.6.0)

Fabric 0.10.6+ B.214
MC 1.16.4
Fabric API 0.26.3+1.16
The client does not finish loading up, it crashes
[15:47:39] [main/FATAL]: Mixin apply failed carrier.mixins.json:MixinRecipeManager -> net.minecraft.class_1863: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException @At("INVOKE") on net/minecraft/class_1863::b with priority 1000 cannot inject into net/minecraft/class_1863::method_20705(Ljava/util/Map;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V merged by net.tiphainelaurent.buildersblocks.mixin.RecipesRegistrationMixin with priority 1000 [PREINJECT Applicator Phase -> carrier.mixins.json:MixinRecipeManager -> Prepare Injections ->  -> localvar$zch000$b(Ljava/util/Map;)Ljava/util/Map; -> Prepare]
org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: @At("INVOKE") on net/minecraft/class_1863::b with priority 1000 cannot inject into net/minecraft/class_1863::method_20705(Ljava/util/Map;Lnet/minecraft/class_3300;Lnet/minecraft/class_3695;)V merged by net.tiphainelaurent.buildersblocks.mixin.RecipesRegistrationMixin with priority 1000 [PREINJECT Applicator Phase -> carrier.mixins.json:MixinRecipeManager -> Prepare Injections ->  -> localvar$zch000$b(Ljava/util/Map;)Ljava/util/Map; -> Prepare]
log --> https://textbin.net/WYU8ajYyPP

It's a compatibility issue with Builder's Blocks, they are using an aggressive mixin where it's not necessary. You should report this to their github.


Change compilation strategy

Change compilation so its not done by iterating over each line, and then the whole thing. This will solve a few bugs, such as #30 and #34.

The compilation still iterates over line-by-line but is instead now done by concatenating each line with the previous ones, rather than doing each line by itself.


Refactoring the server-client logic with OOP

Implementing the client-server logic according to the draft in PR #22

Got stuck with an indentation & deserialization issue when submitting class methods build on top of ABC (Abstract Base Class) to funcX. Here is a minimum viable code that reproduces the error:
!pip install funcx
!pip install funcx-endpoint
!funcx-endpoint configure ep1
!funcx-endpoint start ep1

from abc import ABC, abstractmethod
from funcx import FuncXExecutor

ep1 = "your-endpoint-uuid"

class MyAbstractClass(ABC):
    @abstractmethod
    def greeting(self):
        pass

    @abstractmethod
    def farewell(self):
        pass

class CustomClass(MyAbstractClass):
    def __init__(self):
        self.var = "CLASS VARIABLE"

    def greeting(self):
        return "Hello, world"

    def farewell(self):
        return "Bye, world!"

ClassInstance = CustomClass()

with FuncXExecutor(endpoint_id=ep1) as fx:
    task = fx.submit(ClassInstance.greeting)

print(task.result())

Running this produces the following error:
---------------------------------------------------------------------------
FuncxTaskExecutionFailed                  Traceback (most recent call last)
[<ipython-input-9-c11343ffc4b7>](https://localhost:8080/#) in <module>
     26     task = fx.submit(ClassInstance.greeting)
     27
---> 28 print(task.result())

1 frames
[/usr/lib/python3.7/concurrent/futures/_base.py](https://localhost:8080/#) in __get_result(self)
    382     def __get_result(self):
    383         if self._exception:
--> 384             raise self._exception
    385         else:
    386             return self._result

FuncxTaskExecutionFailed:
    Traceback (most recent call last):
      File "/usr/local/lib/python3.7/dist-packages/funcx/serialize/facade.py", line 116, in unpack_and_deserialize
        deserialized = self.deserialize(current)
      File "/usr/local/lib/python3.7/dist-packages/funcx/serialize/facade.py", line 67, in deserialize
        result = self.methods_for_code[header].deserialize(payload)
      File "/usr/local/lib/python3.7/dist-packages/funcx/serialize/concretes.py", line 87, in deserialize
        exec(body)
      File "<string>", line 1
        def greeting(self):
        ^
    IndentationError: unexpected indent

Ran into another issue when working with ABCs and funcX: funcX gives a pickle error when I try to submit an ABC-based Class instance to funcX as a variable. Here is code to reproduce the error. Don't forget to create an endpoint_id.
Note: As soon as I remove dependency on the ABC class from both Class definitions, the code runs fine.
Code:
from abc import ABC, abstractmethod
from funcx import FuncXExecutor

ep1 = "your-endpoint-uuid"

class TrainerABC(ABC):
    @abstractmethod
    def fit():
      pass

    def evaluate():
      pass

class CustomTrainer(TrainerABC):
    def fit(self):
        return "Fitted the model!"

    def evaluate(self):
        return "Evaluated the model"

class MyAbstractClass(ABC):
    @abstractmethod
    def greeting(self):
        pass

    @abstractmethod
    def farewell(self):
        pass

class CustomClass(MyAbstractClass):
    def __init__(self):
        self.var = "CLASS VARIABLE"

    def greeting(self, ModelTrainer):
        return f"Hello, world! {ModelTrainer.fit()}"

    def farewell(self):
        return "Bye, world!"

ClassInstance = CustomClass()
TrainerInstance = CustomTrainer()

with FuncXExecutor(endpoint_id=ep1) as fx:
    task = fx.submit(ClassInstance.greeting, ModelTrainer=TrainerInstance)

print(task.result())

Error
Exception in thread Thread-32:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.7/dist-packages/funcx/sdk/executor.py", line 567, in _task_submitter_impl
    self._submit_tasks(futs, tasks)
  File "/usr/local/lib/python3.7/dist-packages/funcx/sdk/executor.py", line 645, in _submit_tasks
    batch.add(task.function_id, task.endpoint_id, task.args, task.kwargs)
  File "/usr/local/lib/python3.7/dist-packages/funcx/sdk/batch.py", line 53, in add
    ser_kwargs = self.fx_serializer.serialize(kwargs)
  File "/usr/local/lib/python3.7/dist-packages/funcx/serialize/facade.py", line 53, in serialize
    raise last_exception
  File "/usr/local/lib/python3.7/dist-packages/funcx/serialize/facade.py", line 41, in serialize
    serialized = method.serialize(data)
  File "/usr/local/lib/python3.7/dist-packages/funcx/serialize/concretes.py", line 24, in serialize
    x = codecs.encode(dill.dumps(data), "base64").decode()
  File "/usr/local/lib/python3.7/dist-packages/dill/_dill.py", line 364, in dumps
    dump(obj, file, protocol, byref, fmode, recurse, **kwds)#, strictio)
  File "/usr/local/lib/python3.7/dist-packages/dill/_dill.py", line 336, in dump
    Pickler(file, protocol, **_kwds).dump(obj)
  File "/usr/local/lib/python3.7/dist-packages/dill/_dill.py", line 620, in dump
    StockPickler.dump(self, obj)
  File "/usr/lib/python3.7/pickle.py", line 437, in dump
    self.save(obj)
  File "/usr/lib/python3.7/pickle.py", line 504, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/local/lib/python3.7/dist-packages/dill/_dill.py", line 1251, in save_module_dict
    StockPickler.save_dict(pickler, obj)
  File "/usr/lib/python3.7/pickle.py", line 859, in save_dict
    self._batch_setitems(obj.items())
  File "/usr/lib/python3.7/pickle.py", line 890, in _batch_setitems
    save(v)
  File "/usr/lib/python3.7/pickle.py", line 549, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib/python3.7/pickle.py", line 633, in save_reduce
    save(cls)
  File "/usr/lib/python3.7/pickle.py", line 504, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/local/lib/python3.7/dist-packages/dill/_dill.py", line 1840, in save_type
    )), obj=obj, postproc_list=postproc_list)
  File "/usr/local/lib/python3.7/dist-packages/dill/_dill.py", line 1140, in _save_with_postproc
    pickler.save_reduce(*reduction, obj=obj)
  File "/usr/lib/python3.7/pickle.py", line 638, in save_reduce
    save(args)
  File "/usr/lib/python3.7/pickle.py", line 504, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python3.7/pickle.py", line 789, in save_tuple
    save(element)
  File "/usr/lib/python3.7/pickle.py", line 504, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python3.7/pickle.py", line 774, in save_tuple
    save(element)
  File "/usr/lib/python3.7/pickle.py", line 504, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/local/lib/python3.7/dist-packages/dill/_dill.py", line 1840, in save_type
    )), obj=obj, postproc_list=postproc_list)
  File "/usr/local/lib/python3.7/dist-packages/dill/_dill.py", line 1140, in _save_with_postproc
    pickler.save_reduce(*reduction, obj=obj)
  File "/usr/lib/python3.7/pickle.py", line 638, in save_reduce
    save(args)
  File "/usr/lib/python3.7/pickle.py", line 504, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib/python3.7/pickle.py", line 789, in save_tuple
    save(element)
  File "/usr/lib/python3.7/pickle.py", line 504, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/local/lib/python3.7/dist-packages/dill/_dill.py", line 1251, in save_module_dict
    StockPickler.save_dict(pickler, obj)
  File "/usr/lib/python3.7/pickle.py", line 859, in save_dict
    self._batch_setitems(obj.items())
  File "/usr/lib/python3.7/pickle.py", line 885, in _batch_setitems
    save(v)
  File "/usr/lib/python3.7/pickle.py", line 524, in save
    rv = reduce(self.proto)
TypeError: can't pickle _abc_data objects

---------------------------------------------------------------------------
CancelledError                            Traceback (most recent call last)
[<ipython-input-28-4b2aa5ce2f1f>](https://localhost:8080/#) in <module>
     42     task = fx.submit(ClassInstance.greeting, ModelTrainer=TrainerInstance)
     43
---> 44 print(task.result())

[/usr/lib/python3.7/concurrent/futures/_base.py](https://localhost:8080/#) in result(self, timeout)
    424         with self._condition:
    425             if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
--> 426                 raise CancelledError()
    427             elif self._state == FINISHED:
    428                 return self.__get_result()

CancelledError:

So far I've implemented an OOP version of the flox code and tested it in the attached Google Colab Notebook. However, I had to remove dependencies on ABC classes due to the errors above. The code is also present in basic-oop-flow branch. The notebook version works but needs to be tested with real devices too: https://colab.research.google.com/drive/17JuDesxlGbv1z3RQvQZu2cSOMtUoLMF_?usp=sharing


Support vLLM as backend

vLLM is fast and popular.
It has has the same API as OpenAPI which we already support 12.
Maybe we can simply test the OpenAI client with a different connection URL to the vLLM server?
However, for large flexibility it may be ideal to support vLLM server directly.

Solved in #152


Modified the play Speed

Your Project is very impressivly.Thank you shared it.
I had read your blog file,  and did it that store audio file in Nor Flash.
Nor Flash burn the c code can be via Ymodem protocol, it is very stablel.
I  had a issue as follow:How to Modified the speech play Speed via sample and Pwm.Thank you!

Thank you!
If you dive into the code you will see that timer1 triggers the sampling, i.e. in each call of TIM1_UP_IRQHandler() a new value is read from the SPI memory and set as PWM duty-cycle value. So the frequency of the timer1 interrupt determines the playback frequency. You have to change the following:

// so the timer overflow will occur with a frequency of 72MHz/1633=approx. 44.1kHz
TIM1->ARR = 1633;

44.1kHz is the standard frequency used in most audio recordings. If you want to change playback speed, modify the value 1663.


wip implementation of multiple connections

Closes #64
Closes #118

:+1: i like it

OK, Im always afraid of short terniary somehow)  some more tests, especially with collections are needed though.

:+1: thanks for this implementation

Don't forget to change auditable.xml and DI configuration, please. Thanks

That's why it's still WIP. I'm porting tests currently.

Ouch, hopefully finished.
@aivus , can you please test it in your environment?
@DavidBadura , can you check the code, especially at https://github.com/simplethings/EntityAudit/pull/120/files#diff-526bd1905ced8959412a89500653b48aR62 - is it a correct approach or a sh**code? Because else we'd need to use container expressions (like @doctrine.getConnection(audit)) or introduce whole Repository, which would make problems for no-symfony projects.

tonight i will send a pull request :wink:

ok, i'll wait then (though you can just offer a better approach if you can explain it)

@aivus , can you pelase test this?

@aivus , ping!

I will test it on this week

I have revision connection, but when I try set
audit_connection: revision in simple_things_entity_audit section in config.yml i got:
The service "simplethings_entityaudit.config" has a dependency on a non-existent service "revision".
How can I set connection for audit_connection?

When I use app/console doctrine:schema:update --dump-sql I expect get sql, but get created audit tables in database.

Yes, it's not a bug, it was intended to use doctrine.dbal.CONNECTIONNAMEHERE_connection as a parameter.
However, there is indeed a big hole in schema generation. @DavidBadura , can you take a look on issue below?
The thing is that we need to create audit tables for a different connections; as you can see in CreateSchemaListener we need to determine which connection we're using.
For postGenerateSchema it's a simple as $entArgs->em->getConnection() - this issue is that the connection is not accessible in postGenerateSchemaTable. Do you know a way to get a connection instance in postGenerateSchemaTable so we can do something like:
if ($this->config->getAuditConnection() && $em->getConnection() != $this->config->getAuditConnection()) {
    //skip tables for uknown connections

    return;
}

?

I've made a very basic implementation of multiple connections that cleans up uneeded tables for connections that are not audit; however, we still need to add support of multiple connections on service definition level.
@DanielBadura , can you review?

I have no time this week. I will review at the weekend. :-/

David? )

@DavidBadura , ping?

Hey @andrewtch it looks very good. What do you mean with "we still need to add support of multiple connections on service definition level."?

Em, you see...
In postGenerateSchemaTable I create audit tables. These are created for the main connection, not for the audited.
Yes, there's a workaround in postGenerateSchema that skips all "normal" tables from creation, but this is way ugly since we force the entities to be bound to audit connection (thus having 2x EntityManagers).
So the question is how to correctly schedule table creation for one connection when actually creating entities for another?

Great job @andrewtch !
will it be merged?

Closing as obsolete

@andrewtch was the only problem with this that the SchemaListener doesn't work?

@bendavies , yes, but it whould require majot workaround to deal with this.

@andrewtch yeah, that's what i thought. did you have any ideas? i couldn't see anything quickly...

I also can't except for some reflection woodoo and messing up schemalistener (see https://github.com/simplethings/EntityAudit/pull/120#issuecomment-95834844 and https://github.com/simplethings/EntityAudit/pull/120#issuecomment-83614356)

Looks like to me we can't use a schema listener if it's on it's own new connection.
I would say we need to use a command to list the sql needed to create the diff much like how init:acl works in the symfony security bundle.


feat: updated LiveSchedules models with adding packages.

Issue link
Closes #32
What does this PR do?

pip install django-mysql for adding List values with updating deps in requirements.txt
Merged migration files with adding LiveSchedule model
Made minor changes in code visibilities in models/*.py
Updated fixtures for LiveSchedule model
Updated template rendering with values from models
Adjusted current UI in /discography

What does not include in this PR?

As noted in PR description, we would adopt to use django-mysql package with ListCharFields, in order to store list data directly into Django backend MySQL.
This requires us to:

MySQL as prerequisites in local environment, since this fields does not support with any database, except MySQL
package installations of django-mysql

But as we have already noted in README, this application would be expected to run with requirements of MySQL, so this changes would not be so critical.

Confirmed migration with fixtures would be success. Note that since we have merged current migration file into a single one with same name, 0001_initial.py, we have to clean database in production environment.
# Cleanup current database
(Python:3.12.1 .venv) 24-01-16 11:53:53 git/bennu-official [feat/32/finalize_lives_models] % docker exec -u root -it mysql mysql --user=root --password=root --execute='drop database bennu;' bennu
mysql: [Warning] Using a password on the command line interface can be insecure.

# Apply new migrations with merged file
(Python:3.12.1 .venv) 24-01-16 11:53:57 git/bennu-official [feat/32/finalize_lives_models] % docker exec -u root -it mysql mysql --user=root --password=root --execute='create database bennu;'
mysql: [Warning] Using a password on the command line interface can be insecure.

(Python:3.12.1 .venv) 24-01-16 11:54:13 git/bennu-official [feat/32/finalize_lives_models] % python manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, bennuhp, contenttypes, sessions
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying auth.0010_alter_group_name_max_length... OK
  Applying auth.0011_update_proxy_permissions... OK
  Applying auth.0012_alter_user_first_name_max_length... OK
  Applying bennuhp.0001_initial... OK
  Applying sessions.0001_initial... OK

# Load fixtures
(Python:3.12.1 .venv) 24-01-16 11:54:22 git/bennu-official [feat/32/finalize_lives_models] % python manage.py loaddata initial_data
Installed 11 object(s) from 1 fixture(s)

Same clean operations in productions below. Since we have Procfile to execute migrate/loaddata as initContainer, all we have to do in production is DROP/CREATE operation of target database.
% kubectl -n bennuhp exec -it mysql-5b59dd6949-2bxkb -- mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 71
Server version: 8.2.0 Source distribution

Copyright (c) 2000, 2023, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
mysql>
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| bennu              |
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
5 rows in set (0.00 sec)

mysql> drop database bennu;
Query OK, 13 rows affected (0.65 sec)

mysql>
mysql> create database bennu;
Query OK, 1 row affected (0.01 sec)
mysql> exit
Bye

Confirmed migrate/loaddata operation have been success in production
# Update image
(Python:3.12.1 .venv) 24-01-16 12:01:41 git/bennu-official [main] % kubectl -n bennuhp rollout restart deploy/django
deployment.apps/django restarted

(Python:3.12.1 .venv) 24-01-16 12:03:09 git/bennu-official [main] % kubectl -n bennuhp logs django-86ddb954dd-trs8x -c migrate
Operations to perform:
  Apply all migrations: admin, auth, bennuhp, contenttypes, sessions
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying auth.0010_alter_group_name_max_length... OK
  Applying auth.0011_update_proxy_permissions... OK
  Applying auth.0012_alter_user_first_name_max_length... OK
  Applying bennuhp.0001_initial... OK
  Applying sessions.0001_initial... OK

(Python:3.12.1 .venv) 24-01-16 12:03:33 git/bennu-official [main] % kubectl -n bennuhp logs django-86ddb954dd-trs8x -c loaddata
Installed 11 object(s) from 1 fixture(s)

(Python:3.12.1 .venv) 24-01-16 12:04:40 git/bennu-official [main] % kubectl -n bennuhp get pods
NAME                      READY   STATUS    RESTARTS   AGE
django-86ddb954dd-trs8x   1/1     Running   0          2m54s
mysql-5b59dd6949-2bxkb    1/1     Running   0          6d19h


implicit nullable parameter deprecation warning with php 8.4

Two deprecation warnings are generated using php 8.4.

Deprecated: Illuminate\Container\Container::makeOr(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in michael-rubel/laravel-enhanced-container/src/Overrides/Container.php on line 770

Deprecated: Illuminate\Container\Container::remember(): Implicitly marking parameter $callback as nullable is deprecated, the explicit nullable type must be used instead in michael-rubel/laravel-enhanced-container/src/Overrides/Container.php on line 793

Since the package requires at least php 8.3 it should be just adding the nullable option to the parameter types
public function makeOr($abstract, $parameters = [], ?Closure $callback = null) {
...
}

Thanks for the report @ainesophaur!
Are you willing to contribute? 😊
If not, I'll look into it on the weekend.

Certainly, however, dependency updates are required to test on php 8.4 (brianium/paratest, phpunit/phpunit just to name a few). Let me know if you'd want the contribution to include those updates or just fix the issue w/o testing (since the nullable parameter change is very minor)

I've updated the PR a bit, and tagged the 13.0.3
Thanks!


feat(hlgroups): do not override existing hlgroups

Implement request from #47.

Thanks man!

Never mind. I really appreciate our work on this plugin!


Update netty-codec, ... to 4.1.93.Final

Updates

io.netty:netty-codec
io.netty:netty-transport-native-epoll
io.netty:netty-transport-native-kqueue

from 4.1.84.Final to 4.1.93.Final.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.netty" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.netty" }
}]

labels: library-update, commit-count:1

Superseded by #165.


Issue 20: Unable to run 'rake figaro:heroku' task

Updated the Rake task to use the ` (backtick) operator instead of calling Kernel.system().  The backtick operator will return the required standard out information while the Kernel.system call will only return true or false based on whether the command was successfully executed.

Hi,
I'm having a problem running the rake command.  Here's what I'm doing and the result:
rake figaro:heroku
rake aborted!
Don't know how to build task 'figaro:heroku' (see --tasks)

My .yml file looks like:
development:
    stripe_api_key: "sk_test_xxxxxxxxxxxxxxx"
    stripe_publishable_key: "pk_test_xxxxxxxxxxxxxxx"
#
production:
    stripe_api_key: "sk_live_xxxxxxxxxxxxxxx"
    stripe_publishable_key: "pk_live_xxxxxxxxxxxxxxx"

As you can see I tried quotes.  Also tried single quote and brackets.  Help would be much appreciated!
Thanks,
Greg


Folds cannot be used for generic use cases without hacking around visibility

https://github.com/plotly/react-chart-editor/blob/master/src/components/containers/Fold.js#L29-L42
ensures that Folds will disappear if they contain children that are not plotly.js attr connected components. This makes it difficult for users (like the Batch Reporter) to construct their own custom panels.

yeah.. well I don't see a reason why we couldn't add support for a flag (ie show) on custom components, that would make the Fold show if it contains a child with that flag..


Add supporting code for user authentication and session management

With this batch of updates I've tried to add some of the basic logic for handling users signing up or logging in to their existing accounts without actually interacting with a persistent user pool. When signing up or logging in you can put anything in the username and password fields and as long as it passes basic structural validation you will be signed in as user ID 1.
GraphQL queries issued server-side from Remix now use a JSON Web Token (JWT) for auth instead of the admin secret. The JWT payload looks like the following:
{
  "https://hasura.io/jwt/claims": {
    "x-hasura-allowed-roles": [ "user" ],
    "x-hasura-default-role": "user",
    "X-Hasura-User-Id": "1"
  }
}

For the three tables that are currently configured (positions, employers, users) this has the effect of returning only the rows which belong to the authenticated user, even though there isn't a filter explicitly provided in the query like where: { user_id: { _eq: "1" } }.
I also installed the Mantine React component library and used it for the outer site layout (header nav and currently-unused sidebars) and the login/signup form inputs.

Ended up adding some code to allow automatically logging-in when you navigate to /login - we can add separate configurations for dev/test/prod later.


browser error?

ua:
Mozilla/5.0 (Linux; Android 5.0.2; vivo X6Plus A Build/LRX22G; wv) AppleWebKit/537.36 (KHTML like Gecko) Version/4.0 Chrome/48.0.2564.116 Mobile Safari/537.36 T7/10.0 baiduboxapp/<IP_ADDRESS> (Baidu; P1 5.0.2)
browser should return baidu but Chrome.

it is not a python-user-agents issue, please report to https://github.com/ua-parser/uap-core


Update tapir-core, tapir-http4s-server, ... to 1.9.7

About this PR
📦 Updates

com.softwaremill.sttp.tapir:tapir-core
com.softwaremill.sttp.tapir:tapir-http4s-server
com.softwaremill.sttp.tapir:tapir-json-circe
com.softwaremill.sttp.tapir:tapir-openapi-docs
com.softwaremill.sttp.tapir:tapir-swagger-ui
com.softwaremill.sttp.tapir:tapir-swagger-ui-bundle

from 1.9.6 to 1.9.7
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.softwaremill.sttp.tapir" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.softwaremill.sttp.tapir" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, version-scheme:early-semver, commit-count:1

Superseded by #900.


Actualize the project to work with current dokcer-compose versions

This project needs an update as docker-compose supports new formats, etc. Therefore, the project needs updating.

Updated the docker-compose with nginx proxy to auto detect when new containers are added/removed


No scan when storage is locked

Hi
I have the storage locked to specific networks and MS trusted services is ticked. But it still fails to scan, it only works when it is open to all networks.
We're using SQL server with elastic pool (not managed instance). Please check and update the documentation
Thanks

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

ID: 96e129fb-ad18-ca97-d020-aaf5c6b2c74f
Version Independent ID: d7a88d51-9803-f308-3517-01dfbcf12f5d
Content: Store Vulnerability Assessment scan results in a storage account accessible behind firewalls and VNets - Azure SQL Database
Content Source: articles/sql-database/sql-database-vulnerability-assessment-storage.md
Service: sql-database
Sub-service: security
GitHub Login: @barmichal
Microsoft Alias: mibar

@sarah026 Thank you for bringing this to our attention. Let me walk through this and see what is occurring. What region are your services deployed?

West EU plz

@sarah026 I stepped through this tutorial and found what is likely needing to be added.
I have an Azure SQL Database, Azure Storage, and a single VNET with two subnets (azsql & azstorage). I created the Azure SQL Database with Vulnerability Assessments disabled, and then created the Storage account with the VNET. The Microsoft.Storage service was added to the azstorage subnet during service deployment.

I then added the azsql subnet to the Azure SQL Database followed by adding the Microsoft.Sql service to the azstorage subnet (this is step 3 in the managed instance scenario):

This allows access to the storage account from the azsql subnet. I think this one step will resolve your issue but also wanted to point out that when you add the storage account to be used for the vulnerability assessment scans, that storage account should have the VNET in place in order to grant the applicable permissions for the service to write to the blob storage.

Since the assessment scans run every Sunday, I added audit logs to get activity to generate to make sure I could write to the blob storage as a test.

Please let me know if you have any additional questions.

We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


updating backend-tasks and tech-insights to work together

Hey, I just made a Pull Request!
This PR opens up the tech-insights backend to integrate with backend-tasks so tasks are kicked off based on Cron schedule and continues to support the V1 frequency setting to avoid immediate breaking changes.
This had to update backend-tasks to support cronjob strings, as well as update the fact retrievers to no longer use
their own scheduling system.
:heavy_check_mark: Checklist

[x ] A changeset describing the change and affected packages. (more info)
[x ] Added or updated documentation
[ x] Tests for new functionality and regression tests for bug fixes
[x ] All your commits have a Signed-off-by line in the message. (more info)

@freben here's a cleanroom from #9866, I'll rebase off #10062 when it's merged 😄

It looks like these packages now have dependencies on the next branch in stable, is that expected?

We have a single-trunk development model where the entire repo right now is in "pre" mode, where any release will be to the -next.* train. So unless you see released non-next packages depending on next packages, it's fine.

OK now the tasks update is merged!

We have a single-trunk development model where the entire repo right now is in "pre" mode, where any release will be to the -next.* train. So unless you see released non-next packages depending on next packages, it's fine.

Oh that's interesting! I've never heard of that kind of model! Thanks for the details.

Think this is ready for rebasing now @Erog38

Thanks @benjdlambert! I'm finally back home and I'll get this guy all nice and tidied up.

also some older comments left to address!

For sure! :D Is it best for me to resolve conversations here when they're updated? So far I've had reviewers resolve their own threads to confirm that the changes were solid.

Ah either way - i guess it's arguably a little bit better if the one that posted the comment closes it, but I see both approaches used a lot

We just did a release that resulted in conflicts, rebased and pushed - let's see if I can get this one in

Thanks @freben, I appreciate all your input and help on this one


Minio docs - initial commit

@krishnasrinivas Thanks! I will review with the docs team and let you know any feedback they have.


Proper documentation

Either need an extensive readme, with doctests, or Sphinx.

Docs will be here (as soon as the build finishes): https://propublica-congress.readthedocs.io/en/latest/


Make WordSeg benchmarks support x10 as an option

Also convert WordSeg example to x10.

@BradLarson How are you running on your machine? I can look into it as well, for my runs it didn't recompile.

@asuhan - I used the following to run the benchmarks:
swift run -c release Benchmarks measure --benchmark WordSegScore --batchSize 4 --batches 20 --warmupBatches 10 --training --x10

and
swift run -c release Benchmarks measure --benchmark WordSegScoreAndGradient --batchSize 4 --batches 20 --warmupBatches 10 --training --x10

You can swap out --x10 for --eager to compare eager / X10 timings. Saw a lot of ptxas in top during the X10 benchmarks. This was with CUDA 10.1 and the current nightly toolchain.

@BradLarson I've tried and there are no recompilations, at least on our side, with the CUDA_CACHE_MAXSIZE environment variable set to<PHONE_NUMBER>.
The first benchmark, WordSegScore, is indeed 4.4x slower with x10 on my GPU. The second one, WordSegScoreAndGradient, is 2.7x faster, which bodes well for training workloads. It's still worth looking into the slowdown, of course. Is this what you're seeing as well?


Error running the docker image on Mac

Overview:
When cloning the repo and running it locally on a Mac, the site is not accessible at port 5000.
Steps to reproduce:

cloning the repo
rename .env-dist to .env
running make build and make run

Expected behavior:
The site is accessible at localhost:5000
Actual behavior:

localhost:5000 does not connect
The following is output to the command line:

in text form:
Jamess-MacBook-Pro-3:website jamestimmins$ make run
docker-compose up
Starting website_db_1    ... done
Starting website_app_1   ... done
Starting website_redis_1 ... done
Starting website_web_1    ... done
Starting website_worker_1 ... done
Attaching to website_app_1, website_redis_1, website_db_1, website_worker_1, website_web_1
redis_1   | 1:C 20 Nov 21:26:34.096 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis_1   | 1:C 20 Nov 21:26:34.096 # Redis version=4.0.2, bits=64, commit=00000000, modified=0, pid=1, just started
redis_1   | 1:C 20 Nov 21:26:34.096 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1   | 1:M 20 Nov 21:26:34.100 * Running mode=standalone, port=6379.
redis_1   | 1:M 20 Nov 21:26:34.100 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1   | 1:M 20 Nov 21:26:34.100 # Server initialized
app_1     | Waiting for db to respond...
app_1     | Waiting for redis to respond...
db_1      | LOG:  database system was shut down at 2018-11-20 21:24:31 UTC
redis_1   | 1:M 20 Nov 21:26:34.102 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
worker_1  | Waiting for redis to respond...
db_1      | LOG:  MultiXact member wraparound protections are now enabled
db_1      | LOG:  database system is ready to accept connections
db_1      | LOG:  autovacuum launcher started
redis_1   | 1:M 20 Nov 21:26:34.102 * DB loaded from disk: 0.000 seconds
redis_1   | 1:M 20 Nov 21:26:34.103 * Ready to accept connections
web_1     | Waiting for db to respond...
web_1     | Waiting for redis to respond...
worker_1  | Waiting for db to respond...
website_app_1 exited with code 1
website_worker_1 exited with code 1
website_web_1 exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
Stopping website_redis_1  ... done
Stopping website_db_1     ... done

Additional thoughts:
It's very possible that the issue has to do with my local environment as I'm new to Docker. So my apologies if this is a personal problem! Thanks very much for any assistance in looking into this!

I was trying to set up the website to fix a bug, but it looks like that has since been fixed! Closing this ticket.


Android failing to launch on react-native 0.70.6

What happened?
We are trying to bump our project to react-native: 0.70.x but are running in to issues on detox. Android doesn't seem to run/launch.
I created a repo of the DetoxTemplate and reproduced the android issue. Since I needed to make changes to get this to work with the latest react-native and detox version, it's possible I'm missing some other changes but this seems to be the same issue that we are running in to with our project.
iOS built and ran fine but for android, only the build succeed. This is happening in our project as well.
Probably too much/unnecessary details but we do run in to this issue on Circleci for both android and iOS 🤷 but locally iOS is working
What was the expected behaviour?
Android successfully runs and passes the demo test
Was it tested on latest Detox?

[X] I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

[X] I have followed the instructions under Identifying which synchronization mechanism causes us to wait too much.

Help us reproduce this issue!
Repo: matthewparavati/DetoxTemplate
npm install
npm run build:android-release
npm run test:android-release
In what environment did this happen?
Detox version: 20.1.1
React Native version: 0.70.6
Node version: 14.21.1
Device model: Pixel 5
Android version: 31
Test-runner (select one): jest
Detox logs
Detox logs
10:58:37.010 detox[53470] i child-process:EXEC_FAIL ""/Users/matthewparavati/Library/Android/sdk/platform-tools/adb" -s emulator-11606 shell "ps | grep \"com\.detoxtemplate$\""" failed with error = ChildProcessError: Command failed: "/Users/matthewparavati/Library/Android/sdk/platform-tools/adb" -s emulator-11606 shell "ps | grep \"com\.detoxtemplate$\""
 `"/Users/matthewparavati/Library/Android/sdk/platform-tools/adb" -s emulator-11606 shell "ps | grep \"com\.detoxtemplate$\""` (exited with error code 1) (code=1), stdout and stderr:

10:58:37.010 detox[53470] i child-process:EXEC_FAIL
10:58:37.011 detox[53470] i child-process:EXEC_FAIL
10:58:37.512 detox[53470] i child-process:EXEC_CMD "/Users/matthewparavati/Library/Android/sdk/platform-tools/adb" -s emulator-11606 shell "ps | grep \"com\.detoxtemplate$\""
10:58:38.101 detox[53470] B artifacts-manager onHookFailure
  args: ({"error":"Exceeded timeout of 120000 ms for a hook.\nUse jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test.","hook":"beforeAll"})
10:58:38.103 detox[53470] E artifacts-manager onHookFailure
10:58:38.105 detox[53470] E lifecycle beforeAll
  error: 'Exceeded timeout of 120000 ms for a hook.\n' +
    'Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test.'

 FAIL  e2e/ExampleScreen.e2e.js (122.034 s)
  Example Screen Tests
    ✕ should type into the text field (4 ms)

  ● Example Screen Tests › should type into the text field

    thrown: "Exceeded timeout of 120000 ms for a hook.
    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

      1 | describe('Example Screen Tests', () => {
    > 2 |   beforeAll(async () => {
        |   ^
      3 |     await device.launchApp();
      4 |   });
      5 |

      at ExampleScreen.e2e.js:2:3
      at Object.<anonymous> (ExampleScreen.e2e.js:1:1)

10:58:38.155 detox[53470] i ipc dispatching event to  primary-53468 /tmp/detox.primary-53468  :  reportTestResults , {
  testResults: [
    {
      success: false,
      testFilePath: '/Users/matthewparavati/Code/DetoxTemplate/e2e/ExampleScreen.e2e.js',
      testExecError: undefined,
      isPermanentFailure: false
    }
  ]
}
10:58:38.155 detox[53468] i ipc received event of :  reportTestResults {
  testResults: [
    {
      success: false,
      testFilePath: '/Users/matthewparavati/Code/DetoxTemplate/e2e/ExampleScreen.e2e.js',
      isPermanentFailure: false
    }
  ]
}
10:58:38.155 detox[53468] i ipc dispatching event to socket  :  reportTestResultsDone {
  testResults: [
    {
      success: false,
      testFilePath: '/Users/matthewparavati/Code/DetoxTemplate/e2e/ExampleScreen.e2e.js',
      isPermanentFailure: false
    }
  ]
}
10:58:38.156 detox[53468] i ipc broadcasting event to all known sockets listening to  /tmp/detox.primary-53468  :   sessionStateUpdate {
  testResults: [
    {
      success: false,
      testFilePath: '/Users/matthewparavati/Code/DetoxTemplate/e2e/ExampleScreen.e2e.js',
      isPermanentFailure: false
    }
  ]
}
10:58:38.156 detox[53470] i ipc ## received events ##
10:58:38.156 detox[53470] i ipc detected event reportTestResultsDone {
  testResults: [
    {
      success: false,
      testFilePath: '/Users/matthewparavati/Code/DetoxTemplate/e2e/ExampleScreen.e2e.js',
      isPermanentFailure: false
    }
  ]
}
10:58:38.173 detox[53468] E lifecycle Command failed with exit code = 1:
jest --bail --config e2e/jest.config.js

Subsequent runs showed a slightly different output:
FAIL  e2e/ExampleScreen.e2e.js (103.692 s)
  Example Screen Tests
    ✕ should type into the text field (1 ms)

  ● Example Screen Tests › should type into the text field

    PID still not available

      1 | describe('Example Screen Tests', () => {
      2 |   beforeAll(async () => {
    > 3 |     await device.launchApp();
        |                  ^
      4 |   });
      5 |
      6 |   it('should type into the text field', async () => {

      at ExampleScreen.e2e.js:3:18
      at asyncGeneratorStep (../node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
      at _next (../node_modules/@babel/runtime/helpers/asyncToGenerator.js:22:9)
      at ../node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:7
      at ../node_modules/@babel/runtime/helpers/asyncToGenerator.js:19:12

Device logs
Device logs

More data, please!
No response

Hi @matthewparavati, RN .70 is not yet officially supported by Detox, we're not testing this version yet (see: https://github.com/wix/Detox#react-native).
We will certainly check that once we work on the v.70 upgrade for our tests suite. Thanks for the report.
You might find it helpful to join our Discord server, perhaps someone has already solved it in his project.

Hey @asafkorem, thanks for the response. Yeah, I saw that. We were trying to upgrade to expo 47 and RN 0.70.6 and everything seems to be working pretty well for us except our detox tests.
Thanks, I'll check it out 🤞

@asafkorem I see some "issues" that look to be tracking detox's work on the RN 70 updates, is there a potential timeline on those upgrades being worked on and/or completed?

@matthewparavati Please track this under #3732

Updated with some device logs about the specifics of the crash

Closing this as our android builds are working again. I don't recall if I made any specific changes or if it was a result of a more recent detox update that officially supported RN 0.70.x 😅


Make db/seeds work again after pointer fixes

Bootstrapping a new clone broke because there were still a couple references to this column which now doesn't exist and shouldn't be referenced after f56aa55843a9962cdbc7a71299c36463a86f4250. :fire:
Error was:
ActiveModel::UnknownAttributeError: unknown attribute 'pointer_id' for Plant.
/Users/airhorns/Code/Farmbot-Web-App/db/seeds.rb:58:in `block in <top (required)>'
/Users/airhorns/Code/Farmbot-Web-App/db/seeds.rb:57:in `times'
/Users/airhorns/Code/Farmbot-Web-App/db/seeds.rb:57:in `<top (required)>'
/Users/airhorns/.rbenv/versions/2.5.1/bin/bundle:23:in `load'
/Users/airhorns/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'

Coverage remained the same at 90.863% when pulling 1d01c6390698d0842ad87cf9c84796ee32c7711e on airhorns:couple-more-pointer-refs into e71cce4c1f46a1336a7b3a563c0ec736ee782fc7 on FarmBot:staging.

Good catch- thanks! The removal of pointer_id is very new stuff (this morning).


first residue number of the chain

Hi,
I am able to find the first residue number by using residueStore. However it gives the first chain's residue number.
firstResidueNo = o.structure.residueStore.resno[0]
I would like to get residue number for each chain by using chain index or name. I suppose that I should use  chainStore.  But residueOffset of chainStore is not giving the first residue number of the given chain.
Is there any other way to get the first residue number of each chain?
Thanks

to get the specific residue object from the id stores in residueOffset[], you can use the structure.getResidueProxy() method. It will give you a ResidueProxy object with the resno property.
Beware that in the residueOffset array, each chain can appear several times if several biological entities are present in the file (e.g. protein, ligand, water...), so you might want to add an extra step to your code to ensure that it's only the first residue per chain that you get.

There's one  instance of each Store, (ChainStore, ResidueStore etc) per structure. The residueOffset for a chain is the index of the first residue for that chain in the residue store, so if you want to access this stuff directly I'd do:
var cp = structure.getChainProxy();
cp.index = 1;
console.log(cp.chainname) // "B"
var rp = structure.getResidueProxy();
rp.index = cp.residueOffset // Just an integer offset
console.log(rp.resno) // First residue number of chain B

Relatedly, and a bit to do with @ppillot's point about the "first in the file" vs "minimum number":
You can use the eachChain, eachResidue functions to iterate without having to create proxies, set indices etc. Snippet below finds lowest numbered residue in each chain by iterating over all chains and each residue in each chain. (There are many ways to do this, but just wanted to flag up the iterators as they're quite handy)
stage.loadFile( "rcsb://1bcc", { defaultRepresentation: true } ).then(
    function(component) {
        var firstResidues = {};
        component.structure.eachChain(function (c) {
            c.eachResidue(function(r)  {
                var prev = firstResidues[c.chainname];
                if (prev == undefined || prev > r.resno) {
                    firstResidues[c.chainname] = r.resno;
               }

            })
        })

        console.log(firstResidues);
 });

Chain and Residue relation is very clear now. I've realized that each chain can appear several times. Already took that into account.  Thanks!


Listview.builder inside ExpansionTile throws exception: type 'bool' is not a subtype of type 'double' in type cast

when i have listview.builder inside ExpnasionTile children it cause error
this is my code :
ListView.builder(
                              itemCount: snap.data['result'].length,
                              itemBuilder: (context1, pos1) {
                                return ExpansionTile(
                                  children: <Widget>[
                                    ListView.builder(
                                        itemCount:snap.data['result'][pos1]['branches'].length,
                                        itemBuilder: (context2,pos2){
                                          return ExpansionTile(
                                            key: PageStorageKey(snap.data['result'][pos1]['branches'][pos2]['branch_name']),
                                            title:snap.data['result'][pos1]['branches'][pos2]['branch_name'] ,
                                          );
                                        })
                                  ],
                                  key: PageStorageKey(snap.data['result'][pos1]['cross_section_name']),
                                  title: Text(
                                    snap.data['result'][pos1]['cross_section_name'],
                                    style: TextStyle(fontSize: Components.getTitleSize(),
                                    ),
                                  ),
                                );
                              }),

this is the error i get
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following _CastError was thrown building ListView(scrollDirection: vertical, primary: using primary controller, AlwaysScrollableScrollPhysics, dependencies: [PrimaryScrollController, MediaQuery]):
type 'bool' is not a subtype of type 'double' in type cast

The relevant error-causing widget was:
  ListView file:///D:/AndroidStudioProjects/ebag/lib/tabBars/tabBarCaregoryScreen/handouts.dart:114:46
When the exception was thrown, this was the stack:
#0      ScrollPosition.restoreScrollOffset (package:flutter/src/widgets/scroll_position.dart:382:102)
#1      new ScrollPosition (package:flutter/src/widgets/scroll_position.dart:108:7)
#2      new ScrollPositionWithSingleContext (package:flutter/src/widgets/scroll_position_with_single_context.dart:57:8)
#3      ScrollableState._updatePosition (package:flutter/src/widgets/scrollable.dart:374:10)
#4      ScrollableState.didChangeDependencies (package:flutter/src/widgets/scrollable.dart:382:5)

flutter doctor :
[√] Flutter (Channel stable, v1.17.2, on Microsoft Windows [Version 10.0.18362.900], locale en-US)
    • Flutter version 1.17.2 at D:\flutter_sdk\flutter_windows_v1.7.8+hotfix.4-stable\flutter
    • Framework revision 5f21edf8b6 (5 weeks 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 28.0.3)
    • Android SDK at D:\Android\Sdk\tools_r25.2.5-windows
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = D:\Android\Sdk\tools_r25.2.5-windows
    • Java binary at: D:\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at D:\Android\Android Studio
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 5.1.1 (API 22) (emulator)

• No issues found!

Pubspec.yaml :
name: ebag
description: A new Flutter application.

# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.3
  flutter_svg: ^0.17.3+1
  connectivity: ^0.4.8+6
  http: ^0.12.1
  shared_preferences: ^0.5.7+1
  cached_network_image: ^2.2.0+1
  flutter_image: ^3.0.0
  expandable: ^4.1.3
  flutter_rating_bar: ^3.0.1+1
  #  incrementally_loading_listview: ^0.3.0
  shimmer: ^1.1.1
  #  rflutter_alert: ^1.0.3
  pull_to_refresh: ^1.5.7

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
    #   - lib/assets/Intro/arrowRight.svg
    - lib/assets/Intro/pagination_1.svg
    - lib/assets/Intro/pagination_2.svg
    - lib/assets/Intro/pagination_3.svg
    - lib/assets/Intro/pagination_4.svg
    #   - lib/assets/Intro/ButtonRectangle.svg
    - lib/assets/Intro/backGroundIntro_1.svg
    - lib/assets/Intro/backGroundIntro_2.svg
    - lib/assets/Intro/backGroundIntro_3.svg
    - lib/assets/Intro/backGroundIntro_4.svg
    - lib/assets/login/backGroundTest.png
    - lib/assets/login/systemLogin.svg
    - lib/assets/login/googleLogin.svg
    - lib/assets/login/rectAngle.svg
    - lib/assets/bottomNavigation/addHandoutItem.svg
    - lib/assets/bottomNavigation/categoryItem.svg
    - lib/assets/bottomNavigation/homeItem.svg
    - lib/assets/bottomNavigation/profileItem.svg
    - lib/assets/bottomNavigation/shelfItem.svg
    - lib/assets/actionbar/cart.png
    - lib/assets/actionbar/notification.png
    - lib/assets/filterBtns/books.png
    - lib/assets/filterBtns/filter.png
    - lib/assets/filterBtns/handout.png
    - lib/assets/filterBtns/nemoneSoal.png
    - lib/assets/openItemMainAssets/bookmark.png
    - lib/assets/openItemMainAssets/cart.png
    - lib/assets/openItemMainAssets/prvScreen.png
    - lib/assets/openItemMainAssets/unBookmark.png
    - lib/assets/test.png
    - lib/assets/vip.png
    - lib/assets/comments/like.png
    - lib/assets/comments/dislike.png
    - lib/assets/profile/editProfile.png
    - lib/assets/profile/menu.svg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

the error says type 'bool' is not a subtype of type 'double' in type cast
but i dont have bool or even double !

@mostafa2142 Make sure with your data which you assign from the snapshot.
Somewhere you are trying to give bool value instead of double.
Especially here itemCount: snap.data['result'].length, or may be here itemCount:snap.data['result'][pos1]['branches'].length,

@mostafa2142 Make sure with your data which you assign from the snapshot.
Somewhere you are trying to give bool value instead of double.
Especially here itemCount: snap.data['result'].length, or may be here itemCount:snap.data['result'][pos1]['branches'].length,

i printed snap.data['result'].length and itemCount:snap.data['result'][pos1] its not bool

@mostafa2142 Make sure with your data which you assign from the snapshot.
Somewhere you are trying to give bool value instead of double.
Especially here itemCount: snap.data['result'].length, or may be here itemCount:snap.data['result'][pos1]['branches'].length,

even if i give the ItemCount something static like 10 it still throw error

Hi @mostafa2142
you can fix it with adding key to your ListView.builder inside of ExpansionTile
import 'package:flutter/material.dart';

void main() => runApp(MaterialApp(home: MyApp()));

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
        body: ListView.builder(
          itemCount: 5,
          itemBuilder: (context1, pos1) {
            return ExpansionTile(
              children: <Widget>[
                ListView.builder(
                  itemCount: 5,
                  shrinkWrap: true,
                  itemBuilder: (context2, pos2) {
                    return ExpansionTile(
                      key: PageStorageKey(pos2),
                      title: Text('title'),
                    );
                  },
                  key: PageStorageKey(pos1),     // add here
                ),
              ],
              key: PageStorageKey(pos1),
              title: Text('Text'),
            );
          },
        ),
      ),
    );
  }
}

But yes, it's completely not obvious from the exception

Hi @mostafa2142
you can fix it with adding key to your ListView.builder inside of ExpansionTile
import 'package:flutter/material.dart';

void main() => runApp(MaterialApp(home: MyApp()));

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
        body: ListView.builder(
          itemCount: 5,
          itemBuilder: (context1, pos1) {
            return ExpansionTile(
              children: <Widget>[
                ListView.builder(
                  itemCount: 5,
                  shrinkWrap: true,
                  itemBuilder: (context2, pos2) {
                    return ExpansionTile(
                      key: PageStorageKey(pos2),
                      title: Text('title'),
                    );
                  },
                  key: PageStorageKey(pos1),     // add here
                ),
              ],
              key: PageStorageKey(pos1),
              title: Text('Text'),
            );
          },
        ),
      ),
    );
  }
}

But yes, it's completely not obvious from the exception

Hi i already did that but its still the same

i created new project and copy pasted the code and it works fine without error,  but it throws error in the Main Project !!
Although both of them have same code !

Somehow the Error Fixed by it self i dont even know how its possible

i was checking my code and i find out if i pass a key from another dart file to this one the error will appear again !

@mostafa2142 Hello Dear, Have you fix this problem. Actually, I'm also facing the same problem.

@mostafa2142 Hello Dear, Have you fix this problem. Actually, I'm also facing the same problem.

hi, sorry for late response yes i actually fixed it
i cant remember how exactly i fixed it
but if im no mistaken the issue was from a globalkey
i had to remove it. then the code worked perfectly


gateway/lambda_function: redirect to documentation for crawlers

Does this make sense if just surfing to
https://rpmrepo.osbuild.org/
(what also crawlers do), this should result in something other than a 4xx error?
like redirecting to the documentation what rpmrepo actually is?

@ondrejbudai I guess the url rpmrepo.osbuild.org just has to be referenced anywhere on the internet for crawlers to pick it up. 🤷♂


ERR_MODULE_NOT_FOUND: Cannot find module flowbite/plugin

[x] I have searched the Issues to see if this bug has already been reported
[x] I have tested the latest version

Steps to reproduce

Have ESM Tailwind config (.mjs)
Import flowbite-react the new way: import flowbite from 'flowbite-react/tailwind';
Add content and plugin

Current behavior
Getting error
[Failed to load PostCSS config: Failed to load PostCSS config (searchPath: /Users/antonioivanovski/dev/verified-os/applications/web/dashboard): [Error] Cannot find module '/Users/antonioivanovski/dev/verified-os/node_modules/.pnpm/flowbite-react@0.9.0_react-dom@18.2.0_react<EMAIL_ADDRESS>imported from /Users/antonioivanovski/dev/verified-os/node_modules/.pnpm/flowbite-react@0.9.0_react-dom@18.2.0_react<EMAIL_ADDRESS>Did you mean to import<EMAIL_ADDRESS>Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/antonioivanovski/dev/verified-os/node_modules/.pnpm/flowbite-react@0.9.0_react-dom@18.2.0_react<EMAIL_ADDRESS>imported from /Users/antonioivanovski/dev/verified-os/node_modules/.pnpm/flowbite-react@0.9.0_react-dom@18.2.0_react<EMAIL_ADDRESS>Did you mean to import<EMAIL_ADDRESS>    at finalizeResolution (node:internal/modules/esm/resolve:264:11)
    at moduleResolve (node:internal/modules/esm/resolve:917:10)
    at defaultResolve (node:internal/modules/esm/resolve:1130:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36)] {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/antonioivanovski/dev/verified-os/node_modules/.pnpm/flowbite-react@0.9.0_react-dom@18.2.0_react<EMAIL_ADDRESS>}

Node.js v20.11.0

Expected behavior
The config is loaded correctly
Context
The import in the flowbite-react/tailwind for the flowbitePlugin needs to be import flowbitePlugin from 'flowbite/plugin.js';
My current workaround is to do pnpm patch for this import.

Hey @toteto
import { content, plugin } from "flowbite-react/tailwind"
have you tried importing this way? this one works for me in my tailwind.config.ts

Hey @toteto
import { content, plugin } from "flowbite-react/tailwind"
have you tried importing this way? this one works for me in my tailwind.config.ts

Have tried with the latest 0.10.1 version, still same issue. Still resorting to the patch.

Running into the same error on version 0.10.2 - "Cannot find module 'flowbite-react/tailwind' or its corresponding type declarations."

@anshul-kai same error here. In my case this resolved both the warnings  and styling problems:
/** @type {import('tailwindcss').Config} */
...
import flowbitePlugin from 'flowbite/plugin';
...

export default {
    ...
    content: [
       './node_modules/flowbite-react/dist/esm/**/*.mjs',
    ],
    plugins: [
        flowbitePlugin
    ]
}

Thanks, @hgutierrez. It certainly is another solution for eliminating typescript errors, but I still require custom style overrides.


Continuation indent missing on lines after index expression

Expected Behavior
    val a1 = a
        .aList[0].let {
            a // <---
        }

Observed Behavior
    val a1 = a
        .aList[0].let {
        a // <---
    }

Steps to Reproduce
class A(val a: A? = null) {
    val aList = listOf(this)
}

fun main() {
    val a = A(A(A()))

    val a1 = a
        .aList[0].let {
        a // <--- Oh, no!
    }

    val a2 = a
        .a.let {
            a // <--- The above should be like this.
        }
}

Your Environment

Version of ktlint used: 0.46.1
Relevant parts of the .editorconfig settings: none
Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): id("com.diffplug.spotless") version "6.8.0"

Related

The IntelliJ IDEA formatter behaves alike. The issue has been reported as https://youtrack.jetbrains.com/issue/KTIJ-22206.

Tnx for taking the effort to raise an issue and including the reference to the IntelliJ issue.
I agree with you that the indenting of bot ktlint and IntelliJ IDEA default formatter is not correct in the case above. This can however not be fixed in ktlint until it is resolved in IntellI IDEA default formatter as well. Other wise it would result in a conflict between ktlint and the IDEA formatter which we currently still try to prevent (see discussion #1526).


Add distribute_from_whales real time functionality

Implements #7
Additionally fixes #5
Reasoning:
Locally defined whales are outdated and have mismatches with real data on-chain
Solution:
Fetch whales in real time from Ethplorer API and distribute tokens from forked chain
Done:

Add separate module distribute_from_whales_realtime
Add function is_address_eoa to check if address is eoa. We don't want to distribute from "whale" contracts, only from eoa
Add ehtplorer_utils module to interact with ethplorer API
Lots and lots of taste to cover this all

Codecov Report

Merging #8 (25bce00) into master (c73fdec) will increase coverage by 1.53%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
+ Coverage   86.89%   88.42%   +1.53%
==========================================
  Files          30       32       +2
  Lines         702      743      +41
==========================================
+ Hits          610      657      +47
+ Misses         92       86       -6

Impacted Files
Coverage Δ

badger_utils/constants.py
100.00% <100.00%> (ø)

badger_utils/ethplorer_utils.py
100.00% <100.00%> (ø)

...ils/token_utils/distribute_from_whales_realtime.py
100.00% <100.00%> (ø)

badger_utils/utils.py
92.85% <100.00%> (+1.94%)
:arrow_up:

badger_utils/token_utils/utils.py
90.24% <0.00%> (+14.63%)
:arrow_up:

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 c73fdec...25bce00. Read the comment docs.

@SHAKOTN, I attempted to import the distribute_from_whales_realtime function on the fork environment, as we will always do with this function, and it returned the same error seen before regarding the fork being un-recognized as a chain:

This is a good opportunity to fix this issue,. To replicate:

brownie console

from badger_utils.token_utils.distribute_from_whales_realtime import distribute_from_whales_realtime

brownie console

Alright, will check it now

@SHAKOTN, I attempted to import the distribute_from_whales_realtime function on the fork environment, as we will always do with this function, and it returned the same error seen before regarding the fork being un-recognized as a chain:

This is a good opportunity to fix this issue,. To replicate:

brownie console
from badger_utils.token_utils.distribute_from_whales_realtime import distribute_from_whales_realtime

Fixed

Got the following error when running the distribute_from_whales_realtime function while it processed the 4th token from the list: 0xcD7989894bc033581532D2cd88Da5db0A4b12859. Did you encountered this? I don't think it is related to the token but rather to the rpc call but can't check in detail right now.

...

Also, my apologies, we really don't need to run these functions in development but rather on fork which works well. I am just not used to having the dev environment as the default so when I ran brownie console I assumed it was running mainnet-fork as usual but it was development, which is fine.
I will remember to test these functions using brownie console --network mainnet-fork from now and on as this is the environment where tests are executed in the other repos.

Tested both distribute_from_whale_realtime and distribute_from_whales_realtime and they worked like a charm.

A little nit suggestion is that I would align the order of parameters of these two functions for ease of use: token, receiver, %. Otherwise it LGTM!

Tested functions with parameters order change and it worked perfectly. LGTM


Update gui.md

Filipino translation. Ready for review

Nice reviews @cordeta , keep it up.
Hope @agentzero1  can also do the same on your PR.
Cheers!

@cordeta  Thank you for review and I'm sorry for not having review your PR . (Babawi na lang ako next time)

I update all the problems . Ready for merging

I update all the problems. Ready for merging


au-sa-heritage-places

Southern Australia maintains a registry of "heritage places" that achieves useful density in some areas and is licensed under CC-BY.
https://www.sa.gov.au/topics/housing-property-and-land/building-and-development/land-supply-and-planning-system/planning-data-for-research-and-mapping/spatial-data-downloads#title1
for a tabular example:
http://apps.planning.sa.gov.au/HeritageSearch/SearchResultPage.aspx?p_searchtype=LOCATION&p_suburb=ADELAIDE&p_lga=ALL&p_class=ALL
visual sample of Adelaide:
http://f.cl.ly/items/1Z3t0O0I291f0r28452z/Image 2014-10-29 at 4.25.36 PM.png

Going to close this since the GNAF release should cover these.


Add 'configurable: true' to descriptors in __createBinding and __setModuleDefault

This is the companion PR to microsoft/TypeScript#57784 which improves compatibility with Jest's module mocking mechanism.

Following discussion in the Design Meeting, we've decided not to take this fix as we would be inconsistent with esbuild, babel, et al. There are already workarounds for this, such as using jest.unstable_moduleMock, and this seems like an issue Jest would need to address in their mock implementation so as to be compatible with other transpilers, such as replacing the module object, introducing a Proxy, etc.


chore: namespace lemmas to CStarAlgebra instead of CStarRing

This changes the namespace from CStarRing to CStarAlgebra for any lemmas whose hypotheses imply Module ℂ A. We reserve CStarRing for lemmas pertaining only to the normed ring structure, but which do not involve the ℂ-algebra structure.

Looks good!
bors r+


access the v-link-active element on beforeEach and afterEach

Would be helpful to access the a elements which fired a route event.  Currently trying to do this with
  router.afterEach(function (transition) {
    console.log( "after", transition );
    var $vlink = document.querySelector('.v-link-active');
    console.log( "$vlink", $vlink );
  });

returns the last a element, not the current one.
I want this so I can trigger javascript animations on the a element.

overall goal, perhaps more elegantly solved another way, is to perform JS animations on the v-link-active elements

Try
router.afterEach(function (transition) {
    console.log( "after", transition );
    // The DOM is not updated

    this.$nextTick(() => {
        // The DOM is updated now
        var $vlink = document.querySelector('.v-link-active');
        console.log( "$vlink", $vlink );
    })
});

@jedierikb I think @fnlctrl 's suggestion should work.
Obviously it's much easier to use CSS animations for v-link-active elements - if you do want to use JS animations, another way to achieve that is writing a custom directive that watches vm.$route and applies animations accordingly:
bind () {
  this.vm.$watch('$route', route => {
    if (route.path === this.path) {
      // ...
    } else {
      // ...
    }
  })
},
update (path) {
  this.path = path
}


Error with --significant_reads

Hi,
I used sicer2 to process an histone ChIP-seq data.
If I add --significant_reads, it will report the following error and I can't get output from this parament:
`multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/public/home/anyang/tool/conda/miniconda3/envs/py3/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/public/home/anyang/tool/conda/miniconda3/envs/py3/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/public/home/anyang/tool/conda/miniconda3/envs/py3/lib/python3.7/site-packages/sicer/src/filter_raw_tags_by_islands.py", line 27, in filter_tags_by_islands
island_list = np.load(file_name + '_' + chrom + '_island_summary.npy', allow_pickle=True)
File "/public/home/anyang/tool/conda/miniconda3/envs/py3/lib/python3.7/site-packages/numpy/lib/npyio.py", line 428, in load
fid = open(os_fspath(file), "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'K27me3_rmDup_chr5_island_summary.npy'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/public/home/anyang/tool/conda/miniconda3/envs/py3/bin/sicer", line 235, in
main()
File "/public/home/anyang/tool/conda/miniconda3/envs/py3/bin/sicer", line 229, in main
run_SICER.main(args)
File "/public/home/anyang/tool/conda/miniconda3/envs/py3/lib/python3.7/site-packages/sicer/main/run_SICER.py", line 96, in main
filter_raw_tags_by_islands.main(args, pool)
File "/public/home/anyang/tool/conda/miniconda3/envs/py3/lib/python3.7/site-packages/sicer/src/filter_raw_tags_by_islands.py", line 56, in main
pool.map(filter_tags_by_islands_partial, chroms)
File "/public/home/anyang/tool/conda/miniconda3/envs/py3/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/public/home/anyang/tool/conda/miniconda3/envs/py3/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
FileNotFoundError: [Errno 2] No such file or directory: 'K27me3_rmDup_chr5_island_summary.npy'
`
My sicer2 version in conda is py37h97743b1_0.

Hi Kevin,
Sorry for the delay, it does have some problem due to some ungenerated files. We will update a new version in a short time including fixing this issue. Thanks for bring it up!
Best,
Shiyu


"Coral Utopia" advancement bug report + question regarding suitability value

Any blocks placed in "high suitability" seem to grant the advancement, not only calcite.
Now for the question:
could you share more info in mod features doc regarding suitability? How does it exactly depend on temperature and continentalness? (what's the formula?) What is the minimum suitability needed to get the aforementioned advancement? How does the chance of converting upon a random tick depend on suitability?
Thank you in advance for your answer.

Thanks for reporting the bug.
The math is defined in this file: https://github.com/jsorrell/CarpetSkyAdditions/blob/main/src/main/java/com/jsorrell/carpetskyadditions/helpers/CoralSpreader.java
In pseudocode:
if dimension is not overworld then
    suitability = 0
else if flat world then
    suitability = 0.5
else
    # This value is clamped between 0 and 1
    suitability = 1 - ((temperature - 0.65)^2 + (continentalness + 0.3)^2)

The chance of conversion upon a random tick is = suitability * 0.49 + 0.01

Oh, and the advancement triggers at 99%.
I'll add this info to the docs.


Accessing content of request in several handlers does not work (WebServer)

Environment Details

Helidon Version: 2.0.0-M3
Helidon SE
JDK version:
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.20.0, JRE 14 Linux amd64-64-Bit Compressed References 20200416_44 (JIT enabled, AOT enabled)
OpenJ9   - 05fa2d361
OMR      - d4365f371
JCL      - 5757187cae based on jdk-14.0.1+7)
OS:
Linux
Docker version (if applicable):

Problem Description
When using the Reactive web server it seems that handlers can only consume the payload of the
request once. Not sure if that is a bug or by design?
Steps to reproduce
Given the following handlers:
        Handler filter = (req, res) -> {
            if (request.headers().value(HEADER_NAME).isPresent()) {
                req.next();
            } else {
                response.status(404).send();
            }
        };

        Handler filterWithPayload = (req, res) -> {
            if (request.headers().value(HEADER_NAME).isPresent()) {
                req.content().as(byte[].class).thenAccept(bytes -> {
                   if (bytes.length > 0) {
                       req.next();
                   } else {
                       response.status(403).send();
                   }
                });
            } else {
                response.status(404).send();
            }
        };

        Handler actualHandler = Handler.create(JsonNode.class, (req, res, entity) -> {
            System.out.println(entity);
            response.status(200).send();
        });

        // actualHandler is called.
        rules.post("/foo", filter, actualHandler);
        // actualHandler is never called.
        rules.post("/bar", filterWithPayload, actualHandler);

This is by design, you can consume the payload of a request only once.


Using LINQ expression to handle DateTime comparisons produces inconsistent results.

Referenced Lines:
https://github.com/supabase-community/postgrest-csharp/blob/a0b36bdf5d6413ba7bbb0ed1aa6211668dce6b9c/Postgrest/Linq/WhereExpressionVisitor.cs#L184-L215
Issue Report:
Re: https://github.com/supabase-community/supabase-csharp/discussions/121
Reproducing this issue [from @aquatyk here]
DateTime day1 = DateTime.Now.AddDays(-1);
string day = day1.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);

// Produces incorrect result.
var result = await _client.From<Item>().Where(x => x.Created_at >= day1).Get();

// Produces correct result.
var result = await _client.From<Item>().Filter("created_at", Operator.GreaterThanOrEqual, day).Get();

@wiverson do you see any obvious reason why it would be problematic to remove .ToUniversalTime() on L205 there?

This is a deviation from how the original query worked, so it's been removed. It is incorrect to force a ToUniversalTime conversion in the clause here.
Now available in 3.2.10

Sorry I'm late, FWIW I think most ORMs would prefer deferring to the underlying datetime w/tz instead of the conversion. I wish all dbs and timestamps were UTC but alas.
FWIW I'd add some test cases to cover more time/date stuff for the different db date/time configurations or at least add as a issue for later?

Agreed! I'll add it as a chore.


Extremely slow Intellisense

Type: Bug
Intellisense is extremely slow on one of my projects. Number of files wise, it is the smallest. The only two things that are "different" with this project is that I use bun instead of npm (I tried using it on another project though, and did not see the issue) and that I have some 200GB sqlite files in the directory structure (though they are ignored in tsconfig et al).
VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:34:01.965Z)
OS version: Darwin arm64 22.3.0
Modes:
Sandboxed: Yes

System Info

Item
Value

CPUs
Apple M2 Max (12 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
2, 2, 2

Memory (System)
64.00GB (23.79GB free)

Process Argv
--crash-reporter-id baceda6d-5dd3-442f-8639-ba24bf49d7ae

Screen Reader
no

VM
0%

Extensions: none
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30660299
azure-dev_surveyone:30548225
pyindex848:30662994
nodejswelcome1cf:30587006
3biah626:30602489
pyind779cf:30662993
89544117:30613380
pythonsymbol12cf:30657549
vsctsb:30662444

Here is an example of "Loading" which can take 5 minutes.

 I have moved all my data files out of the project, deleted the node_modules folder, and still have the issue. :/

I have also restarted VS Code a few times. I have two project windows open and the big project is fast as it ever was. The small one (and the one i am working on right now) just has Intellisense hung.

Hmmm, if I remove the tsconfig.conf file, Intellisense works again!

It is "strict": true that is causing Intellisense to stall for minutes at a time.

OK, it is "strict": true plus some code and types. Every time I try and reduce it down to a simple test the problem goes away.
But the type file that if missing, causes the problem to go away for sure is this:
type oneToFour = 1 | 2 | 3 | 4;
type oneToNine = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
type zeroToNine = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
export type YYYY =
  | `19${zeroToNine}${zeroToNine}`
  | `20${zeroToNine}${zeroToNine}`;
type MM = `0${oneToNine}` | `1${0 | 1 | 2}`;
type DD = `${0}${oneToNine}` | `${1 | 2}${zeroToNine}` | `3${0 | 1}`;
export type FullDateString = `${YYYY}-${MM}-${DD}`;
export type OptionalFullDateString = FullDateString | '';
export type Frame = `CY${YYYY}Q${oneToFour}I`;

That said, just including a simple project, this file, and using something like FullDateString is not quite enough to kill Intellisense. I can give access to private github or send the project via email if needed.


Quick question: Is there a non-causal optimized form of Flash Linear Attention?

Great work!
It appears that both GLA and RetNet are optimized only for causal cases. Is there an optimized linear attention for non-causal scenarios?

Thanks for your interest - we plan to implement this soon

One quick question: is there any place that I can directly use the plain flash linear attention with Triton, without adding the forget gate?

https://github.com/sustcsonglin/flash-linear-attention/blob/main/fla/layers/linear_attn.py

Thanks so much for your quick response!

In this case, there is only chunk, fused_chunk and recurrent mode right? In the case, there is a green line without using chunkwise parallel at all. I thought it is different from the "recurrent" mode defined in https://github.com/sustcsonglin/flash-linear-attention/blob/main/fla/layers/linear_attn.py, right?

Thanks for your interest - we plan to implement this soon

Really looking forward to it! Any updates? Thanks! 😄

Hi,
I have preliminarily implemented a Triton version of non-causal linear attention here.
Many thanks to the authors of this repository for the inspiration—feel free to give it a try!


support sbt-coursier

https://github.com/alexarchambault/coursier/ - a faster dependency engine pluggable into sbt
this probably means just adding caching for ~/.coursier

This looks like a good idea. I'll will investigate after the holidays.
If you have a sample app prepared (and on Github) that would be a great help.

I've created the branch coursier to work on this. Can test it by running:
$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-scala#coursier

And then redeploying? Thanks.

thanks, it works!


Cosmos DB documents no longer visible

Storage Explorer Version: 1.6.0
Platform/OS: Windows
Architecture:
Regression From: Was this working in a previous version? Yes. 1.5.0
Bug description
After installing 1.6.0, when I navigate to my documents and click, the Documents tab is empty.
Steps to Reproduce
List the minimal steps clearly and concisely to reproduce the behavior:

Open Storage Explorer
Expand the Pay-As-You-Go
Expand Cosmos DB Accounts (Preview)
Expand my database account
Expand my database
Expand my collection
Click on Documents

Expected Experience
I expected a tab to open in the right pane with my documents visible.
Actual Experience
Documents tab is opened but there are no documents.
Additional Context
I figure I'm missing a release note somewhere on this.  I tried the --disable-gpu but that didn't help.

I had the same problem updating to 1.6.0
Screenshot:

Green is redacted names, everything else in the screenshot is how it appears -- notice the blank black space in the open documents tab.
Some other notes:

Bug exists with other color themes
Bug exists when accessing document when using quck access and when not using quick access
After the 1.6.0 update I had to re-authenticate with Azure within Storage Explorer, and then "Remove from Quick Access" and re-"Add to Quick Access".  This was not required following previous updates.

We are preparing a hotfix for this.

This is happening for me also. Forced to use the document explorer in Azure portal now until the hotfix!

I'm experiencing the same issue. Tried the suggested fix "./StorageExplorer.exe --disable-gpu" but it made no difference.

When will be ready the hot fix patch??

We will fix this in version 1.6.1 which is planning release in 17th Dec.

Same issue on mac, blank screen when clicking documents. The "hack" from @darrengillis made a temporary fix.

For anyone facing this issue, we're shipping a hotfix to fix this regression. Until then you can either do the hack as others have suggested, or if you'd like to preview the hotfix simply go to the "Help" menu on Windows and Linux/app menu on macOS ->" Opt in to Insider Builds" We'll still doing some final testing and a few other fixes, but we wanted to at least let people who needed the fixes we have done so far, have them. Thanks!

Fix was merged a few days ago for 1.7.0.

Still not able to see documents with Mongo protocol. I don't think it matters but here is my system info
Version: 1.13.0
AzCopy Version: 10.4.2

Platform: macOS
Architecture: x64
Build Number: 20200430.5
Commit: c82c50eca
Support ID: 55ae0cb1-287f-89f2-cebf-7cadf440b255

@joedevgee Can you open a new issue, please? This issue has been closed for a while.

Here's the link to the new issue for MongoDB: https://github.com/microsoft/AzureStorageExplorer/issues/2584


Kibana Login Problem

I followed the steps you explained in Readme. I reset the passwords, but when I log in to Kibana with the elastic user, the page refreshes without any errors and the same place opens again. What could be the problem?
Docker setup
$ docker version

Client: Docker Engine - Community
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        afdd53b
 Built:             Thu Oct 26 09:08:01 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.7
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.10
  Git commit:       311b9ff
  Built:            Thu Oct 26 09:08:01 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.26
  GitCommit:        3dd1e886e55dd695541fdcd67420c2888645a495
 runc:
  Version:          1.1.10
  GitCommit:        v1.1.10-0-g18a0cb0
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

$ docker-compose version

docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.7.10
OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019

Was the issue closed on purpose?

Yes, I'm sorry to bother you, I would have left it simple. It didn't work after a few tries, so I wanted to ask you, but I fixed it later. It was a browser problem