dtype mismatch with --quantize

Hi there,
when I run make run-bloom-560m-quantize I get a type error when I query the server.
{"error":"Request failed during generation: Server error: \"self and mat2 must have the same dtype\""}2023-01-31T14:05:33.860375Z ERROR shard-manager: text_generation_launcher: "Method Generate encountered an error.
Traceback (most recent call last):
  File \"/home/user/.conda/envs/inferenceserver/bin/text-generation-server\", line 8, in <module>
    sys.exit(app())
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/typer/main.py\", line 311, in __call__
    return get_command(self)(*args, **kwargs)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/click/core.py\", line 1130, in __call__
    return self.main(*args, **kwargs)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/typer/core.py\", line 778, in main
    return _main(
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/typer/core.py\", line 216, in _main
    rv = self.invoke(ctx)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/click/core.py\", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/click/core.py\", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/click/core.py\", line 760, in invoke
    return __callback(*args, **kwargs)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/typer/main.py\", line 683, in wrapper
    return callback(**use_params)  # type: ignore
  File \"/home/user/text-generation-inference/server/text_generation/cli.py\", line 47, in serve
    server.serve(model_name, sharded, quantize, uds_path)
  File \"/home/user/text-generation-inference/server/text_generation/server.py\", line 114, in serve
    asyncio.run(serve_inner(model_name, sharded, quantize))
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/asyncio/runners.py\", line 44, in run
    return loop.run_until_complete(main)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/asyncio/base_events.py\", line 634, in run_until_complete
    self.run_forever()
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/asyncio/base_events.py\", line 601, in run_forever
    self._run_once()
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/asyncio/base_events.py\", line 1905, in _run_once
    handle._run()
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/asyncio/events.py\", line 80, in _run
    self._context.run(self._callback, *self._args)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/grpc_interceptor/server.py\", line 153, in invoke_intercept_method
    return await self.intercept(
> File \"/home/user/text-generation-inference/server/text_generation/interceptor.py\", line 20, in intercept
    return await response
  File \"/home/user/text-generation-inference/server/text_generation/server.py\", line 35, in Generate
    generated_texts, next_batch = self.model.generate_token(batch)
  File \"/home/user/text-generation-inference/server/text_generation/models/causal_lm.py\", line 298, in generate_token
    logits, past = self.forward(
  File \"/home/user/text-generation-inference/server/text_generation/models/bloom.py\", line 240, in forward
    outputs = self.model.forward(
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/transformers-4.26.0.dev0-py3.9.egg/transformers/models/bloom/modeling_bloom.py\", line 941, in forward
    transformer_outputs = self.transformer(
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/torch/nn/modules/module.py\", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/transformers-4.26.0.dev0-py3.9.egg/transformers/models/bloom/modeling_bloom.py\", line 809, in forward
    outputs = block(
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/torch/nn/modules/module.py\", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/transformers-4.26.0.dev0-py3.9.egg/transformers/models/bloom/modeling_bloom.py\", line 448, in forward
    attn_outputs = self.self_attention(
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/torch/nn/modules/module.py\", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/transformers-4.26.0.dev0-py3.9.egg/transformers/models/bloom/modeling_bloom.py\", line 318, in forward
    fused_qkv = self.query_key_value(hidden_states)  # [batch_size, seq_length, 3 x hidden_size]
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/torch/nn/modules/module.py\", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File \"/home/user/.conda/envs/inferenceserver/lib/python3.9/site-packages/torch/nn/modules/linear.py\", line 114, in forward
    return F.linear(input, self.weight, self.bias)
RuntimeError: self and mat2 must have the same dtype
" rank=1

There seems to be an issue with the code that quantizes to the linear layers.

Should be solved by #45.
Can you re-install using make install and try again?

works now!

On 31. Jan 2023, at 17:41, OlivierDehaene @.***> wrote:
Should be solved by #45 https://github.com/huggingface/text-generation-inference/pull/45.
Can you re-install using make install and try again?
—
Reply to this email directly, view it on GitHub https://github.com/huggingface/text-generation-inference/issues/43#issuecomment-1410712388, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARTQF26LMMHE5C3RO5ARSLWVE6BZANCNFSM6AAAAAAUMPLOSE.
You are receiving this because you authored the thread.

Dr. rer. nat. Lukas Pfahler
Lamarr Institute for Machine Learning and Artificial Intelligence
Department of Computer Science
TU Dortmund University
Otto-Hahn-Str. 12, R4.017
Dortmund, Germany
Tel.: +49 (0)231 755 8229
https://lamarr-institute.org/


What is Approximate GA date for integrating Kafka Connect with an event hub?

As per document this feature is in preview, when can we expect GA for this feature?
I want to use Debezium in Azure. If we don't even have a rough guess/date I don't want to choose event hubs for this.

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

ID: a585d03f-fa14-f78f-65d7-c8a92b6f1c1f
Version Independent ID: 7420d0da-80c7-4289-68dd-b131baf3ee70
Content: Integrate with Apache Kafka Connect- Azure Event Hubs - Azure Event Hubs
Content Source: articles/event-hubs/event-hubs-kafka-connect-tutorial.md
Service: event-hubs
GitHub Login: @spelluru
Microsoft Alias: spelluru

Thanks for the feedback and bringing this to our notice . At this time we are reviewing the feedback and will update the document as appropriate .

My apologies but I am not authorized to share release dates without a Non-Disclosure Agreement.


flutter_scure_storage does not work with android studio lady bug

When I upgraded my android studio to lady bug from koala, flutter_secure_storage would bomb the android emulator and project would not compile and run on android. I had to uninstall ladybug and go back to koala

I haven't found any. So I took the path of least resistance and downgraded  to koala, which targets jdk(java) version 17. That fixed it for me. I spent a day trying other hacks but nothing worked.

We have the same issue, although the project builds correctly in Android Studio itself, it does not work from IntelliJ. . The errors we are getting are:
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in C:\Users\owen\Documents\Projects\Yodobashi\yds-design-system\yds_design_system\yodobashi_point_app\example\example-point-app\build\app\outputs\mapping\release\missing_rules.txt.
ERROR: R8: Missing class com.google.errorprone.annotations.CanIgnoreReturnValue (referenced from: com.google.crypto.tink.KeysetManager com.google.crypto.tink.KeysetManager.add(com.google.crypto.tink.KeyTemplate) and 52 other contexts)
Missing class com.google.errorprone.annotations.CheckReturnValue (referenced from: com.google.crypto.tink.InsecureSecretKeyAccess and 1 other context)
Missing class com.google.errorprone.annotations.Immutable (referenced from: com.google.crypto.tink.InsecureSecretKeyAccess and 40 other contexts)
Missing class com.google.errorprone.annotations.RestrictedApi (referenced from: com.google.crypto.tink.aead.AesEaxKey$Builder com.google.crypto.tink.aead.AesEaxKey.builder() and 6 other contexts)
Missing class javax.annotation.Nullable (referenced from: java.lang.Object com.google.crypto.tink.PrimitiveSet$Entry.fullPrimitive and 86 other contexts)
Missing class javax.annotation.concurrent.GuardedBy (referenced from: com.google.crypto.tink.proto.Keyset$Builder com.google.crypto.tink.KeysetManager.keysetBuilder and 3 other contexts)

We have tried adding these classes to proguard-rules.pro as suggested by the compiler, but this did not fix the error.

@ssarhangi ssarhangi I had same issue on Koala. When I wrote proguard rules like below issue mentioned, the errors are fixed.
https://github.com/mogol/flutter_secure_storage/issues/748

@SugiKent Thanks, I will try that.


Add "End timeline" command

Splits the "no return" unimplemented behavior from the return command
Implement "repeat" and "next" behaviors for the return command, expose these settings to the user
Add a hint string to the return command
Add an option for the Return command to return to last timeline rather than last goto (though it'll still resume from the last timeline's jump)

Thank you, used as base for #62


bug(login): User is taken to create account when wrong PIN is entered

Issue:
If you already have an account, and you exit and re open the app and type in the incorrect PIN you will be taken to the Create Username page instead of having the Wrong PIN error appear.
2023-07-07 22:35:47 | DEBUG | received warp cmd: Tesseract { AccountExists }
2023-07-07 22:35:47 | DEBUG | account_exists: true
2023-07-07 22:35:47 | TRACE | rendering unlock layout
2023-07-07 22:36:03 | TRACE | rendering unlock layout
2023-07-07 22:36:03 | TRACE | rendering unlock layout
2023-07-07 22:36:03 | TRACE | rendering unlock layout
2023-07-07 22:36:03 | TRACE | rendering unlock layout
2023-07-07 22:36:03 | DEBUG | received warp cmd: MultiPass { TryLogIn }
2023-07-07 22:36:03 | INFO | unlock failed: DecryptionError

OS:
All
Video:
https://github.com/Satellite-im/Uplink/assets/29093946/3c71aa26-e991-49c3-a644-ae941c1d495c

could be related with https://github.com/Satellite-im/Uplink/pull/929/ as @phillsatellite suggested, also agree


cannot find value SO_INCOMING_CPU in crate libc

docker run --rm --privileged=true -v /d/rust/ddnsv6-rust/src:/home/rust/src messense/rust-musl-cross:mipsel-musl  cargo build --release

I think it's fixed in libc 0.2.93, see https://github.com/rust-lang/libc/pull/2135 , please check that the libc version in your Cargo.lock is new enough?

https://github.com/dosgo/ddnsv6-rust/blob/0f08595e612796c2c8c9124d9b94ba65a28f1bdb/Cargo.lock#L888 it's 0.2.89, you need to run cargo update -p libc to update it.

OK, thank you very much.


[Terminal Finder] Option to use other console app

Extension – Terminal Finder
Author: @yedongze
The idea and function behind the extension are great, albeit limited if the user doesn't prefer the Terminal or iTerm.
Describe the feature and the current behavior/state.
I am suggesting a third set of commands, Finder -> Console and Console -> Finder, where Console is a terminal application other than the (Apple's) Terminal or iTerm. The user should select their console app of preference in a Finder dialog, and the extension should remember their selection. Suggested interactions:

The naming of the user-specified terminal app and the extension commands could change; it could be Other Terminal App instead of Console, for example.
Who will benefit with this feature?
Users who don't use Terminal or iTerm, so let's say they are using Hyper. They won't use the extension unless they can utilise their favourite console application.
Any Other info.

I didn't even know that people actually use different consoles other than terminal or iterm.
There is however an issue with your proposal: each console app (such as iterm or terminal) requires a different set of (AppleScript) commands for this extension to work. Looking at the source code of this extension, this also seems to be the case here.


This is not working!?

When I start typing in the editor, all the buttons start hiliting on and off, but no characters get typed into the editor. I also tried running it from localhost server, to see if that helped – same thing.
Tested in FireFox 46.0.1 and 50.0.2661.94 (64-bit).

@blaasvaer Thanks for reporting this issue. If you could answer the few questions below it would help me get an idea what might be causing this problem. Thanks!

What file are you looking at when this issue occurs?
Did you install all bower and npm dependencies before attempting to test the editor?

I was having the same issue, make sure you update your dependencies.
In my case once I updated jquery.hotkeys everything worked again

A version number will not work because there is no Bower package for jQuery Hotkeys.

I guess there is a jquery.hotkeys bower package but it's the wrong repo and it's not compatible with this project. So it either needs to be removed from the bower.json or something because it's pulling in the wrong library.

@mcshiz I just deleted my bower_components folder, did a bower install and it downloaded the correct file from GitHub.

Yup, fixed the problem. Thanks.


DeploymentConfig defaults to 0 replicas, should be 1

Specifying no replicas in DeploymentConfig results in 0 replicas. It should be 1, like in case of Kubernetes.
controller: deploymentconfig
name: httpd
containers:
- image: centos/httpd
services:
- name: httpd
  type: NodePort
  ports:
  - port: 8080
    targetPort: 80

Similar discussion in https://github.com/kedgeproject/kedge/pull/315#discussion_r143998519

duplicate of https://github.com/kedgeproject/kedge/issues/357


pre-commit: PR114262

Link: https://github.com/llvm/llvm-project/pull/114262
Requested by: @michaelmaitland

/add-label reviewed
/close


Implementing a new backend for benchmark

Hi，I am trying to implement a new backend for RK (Rockchip) based on rk3588. I have a few questions about testing this benchmark via the command line tool (the main binary file).

For testing accuracy by imageNet dataset for mobile_edge_tpu, I can't find the mean and std for this model anywhere in this repo and other repo as well. Can anyone tell me what should be the mean and std for this model as well as for other models that require for mobile inference 2.0?
Where I can find the label for imageNet dataset? I can't reproduce the same accuracy result even with the tflite backend for mobilenet_edge_tpu. Can anyone upload the imagenet_val_full.txt for groundtruth file?
For every task in the benchmark, should vendor only provide one model for each task for submission?

Thanks,

Hi，I am trying to implement a new backend for RK (Rockchip) based on rk3588. I have a few questions about testing this benchmark via the command line tool (the main binary file).

Great to hear that.

For testing accuracy by imageNet dataset for mobile_edge_tpu, I can't find the mean and std for this model anywhere in this repo and other repo as well. Can anyone tell me what should be the mean and std for this model as well as for other models that require for mobile inference 2.0?

For mean and std, I assume you mean values used in normalization of inputs. For MobileNet EdgeTPU, or to be more precise, for ImageNet, the normalization is done at https://github.com/mlcommons/mobile_app_open/blob/master/flutter/cpp/datasets/imagenet.cc#L85
  builder.AddDefaultNormalizationStep();

which in turn is TFLite's tflite::evaluation::ImagePreprocessingStage::AddDefaultNormalizationStep(). As you can see,
void AddDefaultNormalizationStep() {
    switch (
        config_.specification().image_preprocessing_params().output_type()) {
      case kTfLiteFloat32:
        AddNormalizationStep(127.5, 1.0 / 127.5);
        break;
      case kTfLiteUInt8:
        break;
      case kTfLiteInt8:
        AddNormalizationStep(128.0, 1.0);
        break;
      default:
        LOG(ERROR) << "Type not supported";
        break;
    }
}

And you can find what

Where I can find the label for imageNet dataset? I can't reproduce the same accuracy result even with the tflite backend for mobilenet_edge_tpu. Can anyone upload the imagenet_val_full.txt for groundtruth file?

It's distributed with ImageNet. I guess we cannot distribute it due to license issue.

For every task in the benchmark, should vendor only provide one model for each task for submission?

What do you mean by "one model for each task"? For closed one, yes, say, if you have both float and quantized models, you have to choose one to submit. For open one, you are free to submit as many models as you want.
Please check submission docs below,

https://github.com/mlcommons/mobile_open/blob/main/rules/submissionRuleV2_0.adoc
https://github.com/mlcommons/mobile_open/blob/main/rules/mobile_inference_rules.adoc

And maybe you or your colleagues want to join mobile working group's weekly meeting

@TheKanter You might be interested knowing this that Rockchip is interested in adding a new backend.

Hi @NullCarrier can you contact me via email<EMAIL_ADDRESS>?

HI, @freedomtan , thanks very much for the reply, we are making progress on implementing backend for RK3588. And @TheKanter , I am gonna close this issue and contact you later on via the email, thanks for the help


Add commands to test development/kops/install_requirements.sh

Issue #, if available:
Description of changes:
Add make targets for testing the files in development/kops/*.sh like development/kops/install_requirements.sh. These files are important to our build tasks and should be tested validity when changed.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


Artisan make:component with dot notation creates a faulty folder and class structure.

Laravel Version: 8.12
PHP Version: 7.4

Description:
When creating a new component using dot notation and the artisan command using the example layout.skeleton, it creates the views correctly inside: views/components/layout/skeleton.blade.php, but it does not create correctly the php class and its folder structure, making it as: View/Components/layout.skeleton.php, having inside a class like:
<?php

namespace App\View\Components;

use Illuminate\View\Component;

class layout.skeleton extends Component
{
    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\Contracts\View\View|string
     */
    public function render()
    {
        return view('components.layout.skeleton');
    }
}

Steps To Reproduce:
Run php artisan make:component layout.skeleton

Dot notation isn't supported and I saw that we don't document yet how to create components in sub directories. I've just sent in a PR to the docs for that: https://github.com/laravel/docs/pull/6586
You probably need:
php artisan make:component Layout/Skeleton


Decrypt notes in groups

I would to be able to decrypt a folder or a group of notes instead of 1 by 1. Is that possible? Thanks!

The settings mentions "Remember Password Using | Remember passwords by using File Name or Parent Folder matching"
I'm not sure what that feature means, and I was hoping it meant something along the lines of "decrypt notes in groups" as loosely described in this issue. I imagine that the groups could be determined by the folder structure.


No Erizo Controller available

The server is not stable, i'm getting the following errors from time to time:
2016-04-17 12:16:44.165  - ERROR: TokensResource - No Erizo Controller available. Error creati
ng token
Error when creating token:  404 ErrorNo Erizo Controller found
2016-04-17 12:16:44.171  - ERROR: TokensResource - No Erizo Controller available. Error creati
ng token
Error when creating token:  404 ErrorNo Erizo Controller found
ESC[0mPOST /createToken/ ESC[0m- ESC[0m- ms - -ESC[0m
ESC[0mPOST /createToken/ ESC[0m- ESC[0m- ms - -ESC[0m
Unhandled connection error: CONNECTION_FORCED - broker forced connection closure with reason '
shutdown'
2016-04-18 05:25:19.042  - ERROR: AMQPER - Connection error... { [Error: CONNECTION_FORCED - b
roker forced connection closure with reason 'shutdown'] code: 320 }
Error: CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'
at Connection._onMethod (/opt/licode/node_modules/amqp/lib/connection.js:508:15)
at AMQPParser.self.parser.onMethod (/opt/licode/node_modules/amqp/lib/connection.js:136:12
)
at AMQPParser._parseMethodFrame (/opt/licode/node_modules/amqp/lib/parser.js:363:10)
at frameEnd (/opt/licode/node_modules/amqp/lib/parser.js:93:16)
at frame (/opt/licode/node_modules/amqp/lib/parser.js:78:14)
at AMQPParser.header as parse
at AMQPParser.execute (/opt/licode/node_modules/amqp/lib/parser.js:137:21)
at Connection. (/opt/licode/node_modules/amqp/lib/connection.js:174:21)
at Connection.emit (events.js:95:17)
at Socket.emit (events.js:95:17)
at Socket. (_stream_readable.js:765:14)  killing process.
Unhandled connection error: CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'
2016-04-18 05:25:19.051  - ERROR: RPC - Connection error... { [Error: CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'] code: 320 }
Error: CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'
at Connection._onMethod (/opt/licode/node_modules/amqp/lib/connection.js:508:15)
at AMQPParser.self.parser.onMethod (/opt/licode/node_modules/amqp/lib/connection.js:136:12)
at AMQPParser._parseMethodFrame (/opt/licode/node_modules/amqp/lib/parser.js:363:10)
at frameEnd (/opt/licode/node_modules/amqp/lib/parser.js:93:16)
at frame (/opt/licode/node_modules/amqp/lib/parser.js:78:14)
at AMQPParser.header as parse
at AMQPParser.execute (/opt/licode/node_modules/amqp/lib/parser.js:137:21)
at Connection. (/opt/licode/node_modules/amqp/lib/connection.js:174:21)
at Connection.emit (events.js:95:17)
at Socket.emit (events.js:95:17)
at Socket. (_stream_readable.js:765:14)  killing process.
Unhandled connection error: CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'
2016-04-18 05:25:19.051  - ERROR: RPC - Connection error... { [Error: CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'] code: 320 }
Error: CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'
at Connection._onMethod (/opt/licode/node_modules/amqp/lib/connection.js:508:15)
at AMQPParser.self.parser.onMethod (/opt/licode/node_modules/amqp/lib/connection.js:136:12)
at AMQPParser._parseMethodFrame (/opt/licode/node_modules/amqp/lib/parser.js:363:10)
at frameEnd (/opt/licode/node_modules/amqp/lib/parser.js:93:16)
at frame (/opt/licode/node_modules/amqp/lib/parser.js:78:14)
at AMQPParser.header as parse
at AMQPParser.execute (/opt/licode/node_modules/amqp/lib/parser.js:137:21)
at Connection. (/opt/licode/node_modules/amqp/lib/connection.js:174:21)
at Connection.emit (events.js:95:17)
at Socket.emit (events.js:95:17)
at Socket. (_stream_readable.js:765:14)  killing process.

Looks like the components of Licode are having problems connecting to rabbitmq. Is it installed in the same host?

it is installed on the same server, and it works for few times(around 10 times) and then i'm getting the above error.

I have the same error:
2016-10-15 15:11:29.159  - ERROR: CloudHandler - No erizoController is available. 2016-10-15 15:12:08.956  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:12:26.960  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:12:34.965  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:13:55.597  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:14:09.345  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:14:23.574  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:14:37.798  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:14:54.057  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:15:07.264  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:15:23.202  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:15:37.454  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:15:51.705  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:16:05.960  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:16:20.216  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:16:35.024  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:16:49.248  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:17:03.459  - ERROR: TokensResource - No Erizo Controller available. Error creating token 2016-10-15 15:17:17.728  - ERROR: TokensResource - No Erizo Controller available. Error creating token

I have the same problem :(
Note:  rabbitmq is installed in the same host
2018-10-04 20:13:36.194  - ERROR: CloudHandler - No erizoController is available.
2018-10-04 20:13:47.209  - ERROR: TokensResource - message: createToken error, errorMgs: No Erizo Controller available
Error creating token 404 ErrorNo Erizo Controller found
POST /createToken/ 401 11038.980 ms - 25

still get this error now

I am also getting part of the same error, and would love to know what is really the problem; what is the code trying to do - what exactly fails just before printing:
2020-05-13 09:51:52.518  - ERROR: TokensResource - message: createToken error, errorMgs: No Erizo Controller available
Error creating token 404 ErrorNo Erizo Controller found
POST /createToken/ 401 529.295 ms - 25

The docker image provided by yours works fine ( Not saying I was able to run the test connection ) . But I wanted to make some changes and buid a new image. So these are what I did and what error it cause.
sudo docker build -t licode-image .

Without changes also the build was throwing error
Starting Nuve
2020-10-29 16:13:12.883  - ERROR: RPC - message: AMQP connection error killing process, errorMsg: errno: ECONNREFUSED, code: ECONNREFUSED, syscall: connect, address: <IP_ADDRESS>, port: 5672
Starting erizoController
Starting erizoAgent
Starting basicExample
2020-10-29 16:13:17.687  - INFO: ErizoAgent - message: launched new ErizoJS, erizoId: 61a7fa06-4e3f-7c4f-1584-93ba2a9f2188
[erizo-61a7fa06-4e3f-7c4f-1584-93ba2a9f2188] 2020-10-29 16:13:18.003  - INFO: ErizoJS - Starting ioThreadPool
[erizo-61a7fa06-4e3f-7c4f-1584-93ba2a9f2188] 2020-10-29 16:13:18.050  - INFO: ErizoJS - message: Started, erizoId: 61a7fa06-4e3f-7c4f-1584-93ba2a9f2188, isDebugMode: false
2020-10-29 16:13:22.823  - WARN: ErizoController - message: addECToCloudHandler cloudHandler does not respond, attemptsLeft: 5
2020-10-29 16:13:30.829  - WARN: ErizoController - message: addECToCloudHandler cloudHandler does not respond, attemptsLeft: 4
2020-10-29 16:13:38.832  - WARN: ErizoController - message: addECToCloudHandler cloudHandler does not respond, attemptsLeft: 3

2020-10-29 16:13:46.837  - WARN: ErizoController - message: addECToCloudHandler cloudHandler does not respond, attemptsLeft: 2

2020-10-29 16:13:54.843  - WARN: ErizoController - message: addECToCloudHandler cloudHandler does not respond, attemptsLeft: 1
2020-10-29 16:13:57.845  - ERROR: ErizoController - message: addECtoCloudHandler cloudHandler does not respond - fatal

Using the latest commit 0f781ce2177d347a25c6e8768a9190c64aad46f6 .
Note : The reason I was trying to create the build was to make change in licode_config.js .
// This configuration is used by the clients to reach erizoController
// Use '' to use the public IP address instead of a hostname
config.erizoController.hostname = 'nlicode.buildful.com'; //default value: ''
config.erizoController.port = 443; //default value: 8080
// Use true if clients communicate with erizoController over SSL
config.erizoController.ssl = true; //default value: false

I don't find an easy way to change the config and start the docker container. Evern if we change file in container stopping and starting container will over write. I am new to docker, so wondering it would have been good if we can pass an ENV value to the port and ssl would be good.


added options in likert plugin & abortExperiment

hi josh,
wanted to let you know about two modifications that might be valuable to others too:

i added the option to set force responses to "true" in the likert plugin: https://github.com/adrianoesch/jsPsych/blob/master/plugins/jspsych-survey-likert.js

additionally i added the abort experiment function (instead of endExperiment) so that it cancels keyboard listeners, a bug i encountered. i use this function in the fullscreen change event listener. https://github.com/adrianoesch/jsPsych/blob/master/jspsych_ao.js#L172

cheers.
PS: i noted that the preamble option isn't in the documentation of the likert plugin ;)

thanks! I'll merge these improvements in once I get around to the next release...

I'm sure I'm missing an obvious situation, but what's the benefit of calling this.finishTrial() in abortExperiment?

i’m not completely sure anymore but i think the experiment would be stuck within the trial and if there’s no timeout set, and therefore the end_message wouldn’t be displayed either. i used the end message in this case to make the participants aware of the failure (f.e. leaving fullscreen).
cheers,
adrian
PS: it might make sense to register timeouts in the core somewhere (similar to the key event listeners) so we could control them from anywhere and kill the timeout with a plugin api call, and not just from within the trial function.
and while i’m writing you already, here’s another thing that might improve the library even further. the more an experiment is relying upon up-to-date api’s it might make sense to check for browser compatibility before launching. i do this with a custom function (https://github.com/timgroup-eth/experiment-dereky/blob/master/anna.html#L111 https://github.com/timgroup-eth/experiment-dereky/blob/master/anna.html#L111), why not add something similar to the core? also, checking for a minimum screen size could be of great importance to make sure stimuli are displayed properly.

On 28 Jun 2016, at 03:04, Josh de Leeuw<EMAIL_ADDRESS>wrote:
I'm sure I'm missing an obvious situation, but what's the benefit of calling this.finishTrial() in abortExperiment?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/jodeleeuw/jsPsych/issues/249#issuecomment-228920720, or mute the thread https://github.com/notifications/unsubscribe/AEO1u5nlcF8nPENJLuDAdRzBzpNPZ0ybks5qQHM1gaJpZM4H8Ghj.

I think those are both great ideas.
I've been wanting to add feature detection (#19) for a while now. And custom exclusions (#253), too. If you want to contribute, feel free!

I split this issue up (#279, #280, #253) to make it easier to track progress.


Simulation using TyphoidDemographics template should not have individuals that are over 125 years old

Tested with emod_typhoid-0.0.7.dev3.
Simulation:
https://comps2.idmod.org/#explore/Simulations?filters=Id=3d5b962a-0c96-ee11-92fe-f0921c167864&offset=0&count=100&selectedId=3d5b962a-0c96-ee11-92fe-f0921c167864
Please see the following csv in the Outputs tab for Individuals that are in age_bin=nan, which means age over 125 years old:

The demographics looks like:
{"AgeDistribution":{
  "NumDistributionAxes":0,
  "ResultUnits":"years",
  "ResultScaleFactor":365,
  "ResultValues":[0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100,120],
  "DistributionValues":[0,0.1264,0.2502,0.3698,0.4808,0.5786,0.6615,0.7355,0.7981,0.8451,0.8803,0.9108,0.938,0.9594,0.9754,0.9868,0.994,0.9979,0.9995,0.9999,1,1]}}

We should not have individual with age over 100 years old in this configuration.

I think this may have been because we were using SIMPLE age initialization instead of COMPLEX and it was using the exponential distribution params. Which means we can close this.


Thank you for the docs

To get your WORKSPACE_ID and PRIMARY_KEY_OR_SECONDARY_KEY, in your workspace go to Agents management -> Log Analytics agent instructions.

I just wanted to thank you for putting this in your docs ☝ for the life of me I couldn't figure it out! They really hide that information.

@justinmchase Haha, it took me a lot of time to figure it out. Glad to know it helped you!


Location Levels should allow arbitrary units

#596 indicates that the current location levels endpoints assumes users will only required "SI" units. This is an incorrect assumptions.
Location levels can be any unit and the user should be allowed to specify them.

#664 removed the SI-only requirement.   But levels does not yet support arbitrary user-supplied units.


Add support for Rule Exclusions for the Template Analyzer

Issue
Currently the configuration items for the Template Analyzer through this app are defined here.
There is no way to add rule exclusions. This is useful in the case where some of the rules might not apply and we don't want them to fail the pipeline.
On the Template Analyzer application directly it does have support for rule exclusions via a configuration file as documented here.
Suggestion
Include a way to define rule exclusions that can be passed to the template analyzer app. Alternatively provide a way to provide a configuration file to the app (this will make the tool much more flexible).

Hi Team, we also need support for rule exclusions in our team. This functionality is essential for cases where specific rules may not apply, and we want to prevent them from failing the pipeline. Including an option to define rule exclusions or providing a way to supply a configuration file to the Template Analyzer app would greatly enhance the tool's flexibility and usability for us as well.


Refactor POST /:eventid/attendees

Summary

Testing

Notes

Side note: Might be a good idea (just like what you have done here) to incrementally refactor the backend before we roll out the tickets with respect to the endpoints that will be used. This way, we don't accumulate bugs

Yep that's the general idea, I'll be making more backend refactoring PRs like this as the sprints progress


Debug Adapter Protocol

Implement Debug Adapter Protocol

https://www.timdbg.com/posts/writing-a-debugger-from-scratch-part-1/


revert to expected behavior when providing ns resolution

Thanks @drahnreb for clarifying it:

This is somewhat expected behavior when providing ns resolution.
>>> np.datetime64('2019-09-02T09:30:00', 'ns').tolist()
1567416600000000000
>>> np.datetime64("2019-09-02T09:30:00.0000000").tolist()
1567416600000000000

It's a very old and complex (if not weird) behavior.
Numpy considers datetime still experimenting, and this might change anytime, but I would prefer to mimic rather than sacrificing non-vectorized performance.

Originally posted by @drahnreb in https://github.com/scikit-hep/awkward-1.0/pull/835#r649397958

yes, it looks like only ak.layout.NumpyArray with M8[ns] format is affected:
>>> array = ak.layout.NumpyArray(df_ns)
>>> array
<NumpyArray format="M8[ns]" shape="3 1" strides="8 0" data="0x 00f00cda 1795c015 00f07118 7af5c315 00807ca2 7f8cc615" at="0x7ffb72d685e0"/>
>>> array[0]
<NumpyArray format="M8[ns]" shape="1" strides="0" data="2019-09-02T09:30:00" at="0x7ffb72d685e0"/>
>>> ak.to_list(array)
[[1567416600000000000], [1568367000000000000], [1569096000000000000]]
>>> ak.to_list(array[0])
[1567416600000000000]

PyArrow converts a NumPy datetime64 array to a TimestampArray:
>>> numpy_array = np.array(["2020-07-27T10:41:11", "2019-01-01", "2020-01-01"], "datetime64[ns]")
>>> numpy_array
array(['2020-07-27T10:41:11.000000000', '2019-01-01T00:00:00.000000000',
       '2020-01-01T00:00:00.000000000'], dtype='datetime64[ns]')
>>> nparr = pyarrow.array(numpy_array)
>>> nparr
<pyarrow.lib.TimestampArray object at 0x7ffb68a6d820>
[
  2020-07-27 10:41:11.000000000,
  2019-01-01 00:00:00.000000000,
  2020-01-01 00:00:00.000000000
]

Are we required to reproduce NumPy's tolist behavior?

I would say no. When it comes to timestamp handling everyone is doing it differently and even inconsistently within the same package. With my latest comment I opted for a most coherent solution (that introduces a new way - but for the good...).
List of py_obj or not I think you should always expect the same datatype (be it np.datetime or int etc.) no matter what unit.

Are all datetimes turned into integers, or just the ns resolution ones?

Like @ianna described, this is just the case for ns resolution. datetime.datetime does not support ns (or even beyond).

comment in numpy/core/src/multiarray/_datetime.h
    # /*
    # * Converts a datetime into a PyObject *.
    # *
    # * For days or coarser, returns a datetime.date.
    # * For microseconds or coarser, returns a datetime.datetime.
    # * For units finer than microseconds, returns an integer.
    # */
    # NPY_NO_EXPORT PyObject *
    # convert_datetime_to_pyobject(npy_datetime dt, PyArray_DatetimeMetaData *meta);

Link and the same applies for timedelta.

What about timedelta objects, which are more number-like than datetimes (in the sense that they have a meaningful zero)?

Similar, just that datetime[Y] and datetime[M] is converted into int too - just like anything with precision greater than datetime[us]. (I think the first might be a numpy bug)

what does pyarrow's to_pyobj do?

Of the four precision that pyarrow supports ("s", "ms", "us", "ns"), to_pylist converts to either datetime.datetime objects when possible otherwise to pa.Timestamp.

I'm inclined to reproduce NumPy's behavior, strange as it is, but could we check it first? For both datetime and timedelta, and for different resolutions?

I compiled quick snippet of conversions for various combinations (could be partially included in tests, if necessary and a behavior is reproduced).

Code
    import numpy as np
    # general datetime units; neglecting modulo event units e.g. [60s]//10
    np_base_units = ("Y", "M", "W", "D", "h", "m", "s", "ms", "us", "ns", "ps", "fs", "as")

    np_dts = {bu: np.datetime64('1970', bu) for bu in np_base_units}  #-01-01T01:01:01
    np_tds = {bu: np.timedelta64(1, bu) for bu in np_base_units}

    # NaT
    np_special_units = ('NaT', "", None)
    np_dt_spec = {u: np.datetime64(u) for u in np_special_units}
    np_td_spec = {u: np.timedelta64(u) for u in np_special_units}

    py_scalar_from_np_dt = {unit: timeobj.item() for unit, timeobj in np_dts.items()}
    py_scalar_from_np_td = {unit: timeobj.item() for unit, timeobj in np_tds.items()}

    # tolist converts to the "nearest compatible builtin python type" via .item()
    dt_arrays = {unit: np.asarray(timeobj) for unit, timeobj in np_dts.items()}
    dt_arrays['mixed'] = np.asarray(list(py_scalar_from_np_dt.values()))
    td_arrays = {unit: np.asarray(timeobj) for unit, timeobj in np_tds.items()}
    td_arrays['mixed'] = np.asarray(list(py_scalar_from_np_td.values()))

    py_list_from_np_dt = {unit: timearr.tolist() for unit, timearr in dt_arrays.items()}
    py_list_from_np_td = {unit: timearr.tolist() for unit, timearr in td_arrays.items()}

    import pyarrow as pa
    pa_base_units = ("s", "ms", "us", "ns")

    pa_t32s = [pa.time32(u) for u in pa_base_units[:2]]
    pa_t64s = [pa.time64(u) for u in pa_base_units[2:]]
    pa_ts = [pa.timestamp(u) for u in pa_base_units]

    import datetime
    np_from_pa_ts = {pa.array(
            [datetime.datetime(2002, 1, 23), datetime.datetime(2019, 2, 20)],
            type=t,
        ).to_numpy(False).dtype: pa.array(
            [datetime.datetime(2002, 1, 23), datetime.datetime(2019, 2, 20)],
            type=t,
        ).to_numpy(False) for t in pa_ts}
    np_from_pa_opt = {pa.array(
            [None, datetime.datetime(2002, 1, 23)],
            type=t,
        ).to_numpy(False).dtype: pa.array(
            [None, datetime.datetime(2002, 1, 23)],
            type=t,
        ).to_numpy(False) for t in pa_ts}

    def try_numpy_roundtrip(pt):
        try: return pa.array([pt]).to_numpy(False)
        except BaseException as e: return str(e)
    pa_dts = {repr(pt): try_numpy_roundtrip(pt) for pt in np_dts.values()}
    pa_tds = {repr(pt): try_numpy_roundtrip(pt) for pt in np_tds.values()}

    def try_to_py_obj(pt):
        try: return pa.array([pt]).to_pylist()
        except BaseException as e: return str(e)
    py_list_from_pa_dts = {repr(pt): try_to_py_obj(pt) for pt in np_dts.values()}
    py_list_from_pa_tds = {repr(pt): try_to_py_obj(pt) for pt in np_tds.values()}

    # dtype conversion from numpy
    def try_from_numpy(np_type):
        try: return pa.from_numpy_dtype(np_type)
        except BaseException as e: return str(e)

    pa_conv_dts = {unit + f'_{repr(np_dt)}': try_from_numpy(np_dt) for unit, np_dt in np_dts.items()}
    pa_conv_dt_special = {str(unit) + f'_{repr(np_dt)}': try_from_numpy(np_dt) for unit, np_dt in np_dt_spec.items()}

    pa_conv_tds = {unit + f'_{repr(np_td)}': try_from_numpy(np_td) for unit, np_td in np_tds.items()}
    pa_conv_td_special = {str(unit) + f'_{repr(np_td)}': try_from_numpy(np_td) for unit, np_td in np_td_spec.items()}

    import pandas as pd
    pd_ts = pd.DataFrame.from_dict([np_dts], orient='columns')
    # ignored:  pd_ts = pd.DataFrame.from_dict([np_dts['m']], orient='columns').astype('datetime64[M]')
    pd_ts_dtypes = pd_ts.dtypes
    pa_table = pa.Table.from_pandas(pd_ts)
    table_schema = pa_table.schema
    py_dict_from_pa_table = pa_table.to_pydict()

    ... # ellipsis for debug breakpoint

It's quite a mess... Honestly, as long as int conversions work and data can be loaded, I'd say most applications are feasible.

@drahnreb, I see that https://github.com/scikit-hep/awkward-1.0/issues/367#issuecomment-859169528 describes two different options for what tolist could do:

return datetime.datetime objects, but there are resolutions it doesn't handle
return np.datetime64 objects (scalars), but Nones from option-type (or worse from union-type) would make these arrays read back into NumPy as dtype="O".

As you say above, it should consistently return only one type, and I agree wholeheartedly. The lack of some resolutions for datetime.datetime, I believe, rules that out. I think it's fine to always return np.datetime64 objects from tolist, even though there are cases that if read back into NumPy would be read back as dtype="O". You could say the same thing about
>>> np.array(ak.Array([1, 2, 3, None, None, 6]).tolist())
array([1, 2, 3, None, None, 6], dtype=object)

So I think having tolist always return np.datetime64 from an ak.Array of np.datetime64 (or np.timedelta64 from an ak.Array of np.datetime64) is best. I see no reason to be consistent with this:
>>> np.array([1, 2, 3], "M8[us]").tolist()
[datetime.datetime(1970, 1, 1, 0, 0, 0, 1), datetime.datetime(1970, 1, 1, 0, 0, 0, 2), datetime.datetime(1970, 1, 1, 0, 0, 0, 3)]
>>> np.array([1, 2, 3], "M8[ns]").tolist()
[1, 2, 3]

(Also unlike other NumPy functions, we haven't been attempting to make tolist behave like NumPy's tolist: consider, for instance, NumPy masked arrays, which return a masked object, whereas we would return None. Maybe we should have followed pyarrow's to_pyobj from the beginning and matched all the types there—and we still can, since we haven't use the name "to_pyobj" yet.)
So let's just return np.datetime64 (and np.timedelta64) objects from tolist uniformly. Does that work for you, @drahnreb?

@ianna and I agreed to close this: the desired behavior is in main.

So let's just return np.datetime64 (and np.timedelta64) objects from tolist uniformly.  Does that work for you, @drahnreb?

Yes, that works, @jpivarski. 👍🏼

Maybe we should have followed pyarrow's to_pyobj from the beginning and matched all the types there—and we still can, since we haven't use the name "to_pyobj" yet.

I assume you mean pyarrow.NumericArray.to_pylist (and py_dict on Tables) which acts on a scalar level via .as_py().
If to_pyobj gets implemented I‘d maybe suggest the coercion type int (and None instead of the generic time types for eg. NaT) as pure python objects.
Thus, drop unit information (one would usually know the uniform array’s unit) but enforce consistent behavior of the method independent of underlying different units (given uniformity along axis).
Simply to prevent this (lost information, or sloppy behavior at day unit):
>>> supported_py_datetime_units = ("D", "M", "h", "m", "s", "us")
>>> _np_times = np.datetime64, np.timedelta64
>>> for unit in supported_py_datetime_units:
        for _method in _np_times:
            arr = np.array([_method(1, unit)])
            print(repr(arr))
            try:
                parr = pa.array(arr)
                pa_type = parr.type
                py_type = type(parr.to_pylist()[0])
            except pa.lib.ArrowNotImplementedError as e:
                pa_type = f'{e}: {unit}'
                py_type = '-'

            print('  -> pyarrow type: ', pa_type)
            print('  -> python type: ', py_type)

        print('\n')

array(['1970-01-02'], dtype='datetime64[D]')
  -> pyarrow type:  date32[day]
  -> python type:  <class 'datetime.date'>
array([1], dtype='timedelta64[D]')
  -> pyarrow type:  Unsupported timedelta64 time unit: D
  -> python type:  -

array(['1970-02'], dtype='datetime64[M]')
  -> pyarrow type:  Unsupported datetime64 time unit: M
  -> python type:  -
array([1], dtype='timedelta64[M]')
  -> pyarrow type:  Unsupported timedelta64 time unit: M
  -> python type:  -

array(['1970-01-01T01'], dtype='datetime64[h]')
  -> pyarrow type:  Unsupported datetime64 time unit: h
  -> python type:  -
array([1], dtype='timedelta64[h]')
  -> pyarrow type:  Unsupported timedelta64 time unit: h
  -> python type:  -

array(['1970-01-01T00:01'], dtype='datetime64[m]')
  -> pyarrow type:  Unsupported datetime64 time unit: m
  -> python type:  -
array([1], dtype='timedelta64[m]')
  -> pyarrow type:  Unsupported timedelta64 time unit: m
  -> python type:  -

array(['1970-01-01T00:00:01'], dtype='datetime64[s]')
  -> pyarrow type:  timestamp[s]
  -> python type:  <class 'datetime.datetime'>
array([1], dtype='timedelta64[s]')
  -> pyarrow type:  duration[s]
  -> python type:  <class 'datetime.timedelta'>

array(['1970-01-01T00:00:00.000001'], dtype='datetime64[us]')
  -> pyarrow type:  timestamp[us]
  -> python type:  <class 'datetime.datetime'>
array([1], dtype='timedelta64[us]')
  -> pyarrow type:  duration[us]
  -> python type:  <class 'datetime.timedelta'>

Generally, working with time gets non-trivial easily and in this case the sdtlib datetime.datetime is a limiting factor. Requirements for time data are very use case specific, but I would say a) arithmetics are not done in the python space b) scientific arithmetics tend to require precisions beyond the provided datetime units c) datetime.datetime is left with the task of "formatting" and d) you can work your way around it with a much simpler type or convert back.
As such, I currently do not see why a list of maybe richter but not guaranteed datetime.datetime obj would be preferred ever (maybe pickling)?

Thanks @drahnreb, I did mean to_pylist and to_pydict. (I didn't look up and check the name before writing it.)
So Arrow returns datetime.datetime objects, too... sometimes. Well, we're satisfying criteria (a) and (b) at least.
I had another thought about this, which is that np.datetime64/np.timedelta64 can easily be converted into datetime.datetime/datetime.timedelta:
>>> numpy.datetime64(1, "s").item()
datetime.datetime(1970, 1, 1, 0, 0, 1)
>>> numpy.timedelta64(1, "s").item()
datetime.timedelta(seconds=1)

but the reverse isn't true. We strictly depend on NumPy, so it's definitely available, and that makes returning np.datetime64/np.timedelta64 more powerful than returning datetime.datetime/datetime.timedelta. If you have a list of NumPy datetimes, you can write a very easy list comprehension to turn them into standard library datetimes, but it's not as easy the other way around. np.datetime64(stdlib_datetime) is not much harder than np_datetime.item(), but dealing with inconsistent types is.
So I think we all agree that Awkward Array's tolist should continue returning NumPy np.datetime64/np.timedelta64, as it is in main.


Query on Dataloader

How do I use a dataloader for the generalized dataset? I see we require a custom batch iterator.

How do I use a dataloader for the generalized dataset? I see we require a custom batch iterator.

I want to use dataloder to load data as well,so ,have you solved this issue?

Since the model only support batch_size = 1, I think there is no need to use a dataloader.
If you want to learn more about loading data, you may refer to my another repo: YOLOv5-PyTorch
It contains many skills on how to load data faster, e.g. data_prefetcher, distributed dataloader, and DALI dataloader.


Hide "skip" property if it's not enabled

Reported by @crystalwarrior

This can be easily solved using skip_ignore in its _get method.

ye


fix #63

introduce a new "sealed" node/formula struct
unwrap seals in check-ex-spec
new syntax to make seals = "pred wheat ...." "pred chaff ...."

I don't know whether the kodkod change is right ...
can students get extra info with the current unwrapping?

Anyway for now, here's an example:
wheat "utree.rkt"
#lang forge

sig Node {edges: set Node}

pred wheat isUndirectedTree {
    -- Symmetric
    edges = ~edges

    -- Connected
    Node->Node in *edges

    -- Do not allow self-loops
    no iden & edges

    -- Minimally connected - there aren't multiple paths from one node to another.
    all n : Node | {
        all m : Node | {
            (n->m + m->n) in edges implies (n->m + m->n) not in ^(edges - (n->m + m->n))
        }
    }
}

run {isUndirectedTree} for 7 Node

student code "main.rkt"
#lang forge/core

(require "utree.rkt")

isUndirectedTree
;; prints #<wheat>

Ah, the kodkod change was probably needed to allow run {isUndirectedTree} for 7 Node at the bottom of the wheat file.
Tonight, I'll try to remove that & only wrap on export.

Ah, the kodkod change was probably needed to allow run {isUndirectedTree} for 7 Node at the bottom of the wheat file.
Tonight, I'll try to remove that & only wrap on export.


FullScreen CodeView unscrollable when using suneditor option "height: 'auto'"

Describe the bug
When using codeView in fullScreen mode and suneditor created with height: 'auto' in SunEditorOptions object scrollbar is totally broken and content can't be scrolled.
To Reproduce
Steps to reproduce the behavior:

Go to http://suneditor.com/sample/html/examples.html#groups
Scroll down to 'Char count, Button groups, toolbar container' sub-title (#anchor to it added in url above)
Click 'Full screen' button
Add lines to text-area so the vertical scrollbar appear
Click 'Code view' button
See the totally broken and unusable vertical scrollbar.

Expected behavior
Totally serviceable and usable vertical scrollbar and scrolling :)
Screenshots

Desktop (please complete the following information):

OS: Windows 10
Browser: chrome
Version: latest

Additional context
It looks like the problem is in this line:
https://github.com/JiHong88/SunEditor/blob/00b9eff22be0f7385e8588218230c79b2d4c0df1/src/lib/core.js#L4277
It sets the text-area element height to be higher than the parent's.
Looks like we should use some other height there. Why can't we just not change it and leave it at "100%"?
Possible solutions

Use the appropriate height (where can we get it?)
Provide the correct value in context.element.code.scrollHeight (where can we get it?)
Do we really need this line? (lol)
Add !fullscreen condition.
I tested this way, and it works for this issue, but I am not sure if this is the correct solution in general, so without pull-request right now.

 if (options.height === 'auto' && !options.codeMirrorEditor && !this._variable.isFullScreen) context.element.code.style.height = context.element.code.scrollHeight > 0 ? (context.element.code.scrollHeight + 'px') : 'auto';

P.S. this line is too complicated.
Maybe you should also check other places that use this height.

This issue applies to more than just the full-screen code view.  The textarea containing the code view has overflow-hidden style applied to it directly. Removing overflow hidden corrects the behaviour.
Add the following to your page CSS
// Sidestep a bug in the editor code view, where it has no scrollbars!
.sun-editor .se-wrapper .se-wrapper-code {
  overflow: auto !important;
}

The 2.42.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.


WIP: Try {{ compiler(cgo) }} >=1.17, add {{ compiler(c) }}

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Trying the suggestion from https://github.com/conda-forge/podman-feedstock/pull/15#discussion_r827600620

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

@conda-forge-admin, please rerender

@jakirkham I've tried your suggestion from https://github.com/conda-forge/podman-feedstock/pull/15#discussion_r827600620 but it fails:
Mamba failed to solve:
 - libselinux-cos7-x86_64
 - go-md2man
 - make
 - go-cgo_linux-64 >=1.17
 - pkg-config
 - gcc_linux-64 10.*
 - sysroot_linux-64 2.17.*
 - go-licenses >=0.0.44

with channels:

The reported errors are:
- Encountered problems while solving:
-   - package go-cgo_linux-64-1.17.6-hb09e268_1 requires _go_select ==2.3.0 cgo, but none of the providers can be installed
-
Traceback (most recent call last):
  File "/opt/conda/lib/python3.9/site-packages/boa/cli/mambabuild.py", line 124, in mamba_get_install_actions
    solution = solver.solve_for_action(_specs, prefix)
The reported errors are:
- Encountered problems while solving:
-   - package go-cgo_linux-64-1.17.6-hb09e268_1 requires _go_select ==2.3.0 cgo, but none of the providers can be installed
-

xref: https://github.com/conda-forge/go-feedstock/issues/141
☝ I think this needs to be fixed upstream. IIUC the go package needs to be recompiled to be compatible with the latest C compilers.


Get GitHub username automatically from login session

Allah ka khauf kro Aditya Bhai! 😂
Kitna Open source kroge akele?

Allah ka khauf kro Aditya Bhai! 😂 Kitna Open source kroge akele?

arey sir maaf karein 🙈🙏

रावण में लाख बुराई थी... But he never stole anyone's idea and implemented it

रावण में लाख बुराई थी... But he never stole anyone's idea and implemented it

I didn't steal the idea for how to implement either, though 😏

FYI


Use nbsphinx to execute demo notebook

Description of proposed changes
Automatically execute the demo notebook when building the docs.

Fixes #

Codecov Report

Merging #125 (035bf65) into main (f04ad18) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 035bf65 differs from pull request most recent head 5b5d4ba. Consider uploading reports for the commit 5b5d4ba to get more accurate results

@@           Coverage Diff           @@
##             main     #125   +/-   ##
=======================================
  Coverage   97.97%   97.97%
=======================================
  Files           5        5
  Lines         198      198
  Branches       35       35
=======================================
  Hits          194      194
  Misses          4        4

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Just some minor comments, otherwise good! For reference, readthedocs build at https://readthedocs.org/projects/xbatcher/builds/18654567/ took 4min 13sec.

Thanks Wei Ji! It'll be interesting to see the speedup after fixing https://github.com/xarray-contrib/xbatcher/issues/121.


KeePassXC: Touch ID and Apple Watch unlock support on macOS doesn't work

Describe the bug
KeePassXC supports unlocking the database using Touch ID and Apple Watch. This works in the build provided on the upstream GitHub, however in the nixpkgs build, even if enabled it doesn't work.
The build log does consider the features supported:
keepassxc> -- Biometry compiler support: TRUE
keepassxc> -- Touch ID compiler support: TRUE
keepassxc> -- Apple watch compiler support: TRUE

I haven't looked too much into what would be needed to make this work yet beyond checking the cmake file and build README (I expected detecting these features would fail and it would need additional dependencies, but apparently not).
Steps To Reproduce
Steps to reproduce the behavior:

Start KeePassXC on macOS
Open database
Enable Touch ID support in settings
Lock database (e.g. by locking the Mac)
Unlock database by hitting enter in empty password box

Expected behavior
It should prompt for unlocking using Touch ID or a prompt on a connected Apple Watch.
Screenshots
Upstream's build

Nixpkgs build

Additional context
/
Notify maintainers
@jonafato @turion @rapenne-s
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 22.5.0, macOS 13.4`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.16.1`
 - channels(saiko): `""`
 - channels(root): `""`
 - nixpkgs: `/etc/nix/inputs/nixpkgs`

According to @reckenrode this would probably require codesigning to work. (#38624 is the closest thing to a tracking issue for it I guess)

Hey @2xsaiko! Did you manage to resolve this issue in some way? The PR you mentioned above seems to be old and stale.

No, for unlock to work the built app bundle has to be signed, which is not currently possible/implemented because it would have to happen outside of the Nix build. At least I don't think anything has changed in that regard.


JOINDIN-564 Logout should leave me on the same page

Hi team,
This is my first contribution of this project.
I tried to solve below issue.
https://joindin.jira.com/browse/JOINDIN-564
Thanks!
Kazu

Can one of the admins verify this patch?

ok to test

The build for this pull request has failed, you can view the output of the build (http://jenkins.joind.in/job/web2-pr-build/255/console) to find the exact error messages, but they are all coding standards fixes.  We use PSR2 so please correct the issues (mostly whitespace) and when the build passes, we'll take another look at the patch.

ok I'll check it and fix coding style.
The other hand,  I found an error in self-test.
So, I'll fix it too and send new pull request.
Thanks!

There's no need to close this PR. You can make the changes on your JOINDIN-564 branch and push them. Github will notice and update this PR appropriately.

Can one of the admins verify this patch?

Thanks for your advice, Rob:)
So please wait a moment to push code...

I pushed my changes to JOINDIN-564 branch.
Please confirm that.
Thanks!

ok to test

One error left: http://jenkins.joind.in/job/web2-pr-build/258/console

I pulled changes again

I think that passing a redirect variable to the view in every single controller action isn't the right approach.
It would be better to either add a variable called currentPath to the Twig global context or by using a Twig extension function accessed as {{ currentPath() }}.
Also, in layout.html.twig, I don't want to see  ?redirect= when there isn't a path set be set.

Thank you for your review.
OK, I'll refactoring my code

I pushed all my changes.
Please confirm it again.
Thanks!

I think we're definitely on the right track now.
Next things:

Please revert all unnecessary changes in the controllers, including the change to the Login link as this issue is for log out.
It doesn't actually work. When I click log out, I always end up on the home page.

OK so at first, I revert unnecessary changes.

and about 2nd problem.
I cannot confirm( or sorry but cannot understand..) this problem.
Could you explain in detail?
Thanks a lot!

I can reproduce what @akrabat describes. I open up the joind.in-website (web2) and go to any events detail-page. I then click onto the login-button and login. I'd expect that, after a successfull login, I'd be redirected to the events detail-page I've been on before. Instead I see the "Hot Events" and the URL reads <server-address>:<port>
The same happens when I'm on any detail-page and click "logout". I'd expect to see the detail-page again, but instead I see the "Hot Events". The URL reads <server-address>:<port>/?redirect=/event/ruby-meetup.

Note that this issue & PR should only be for handling the logout link.

Thank you all.
Okay, I'll fix it!

Hi all,
I've fixed the problem.
Please confirm it.
By the way, there is something I'm worrying about a little.
The route "/user/" should have a login filter.
How about it?
Thanks all!

Thanks kazu9su, I'll review the changes when I can.
/user/username certainly shouldn't have a login guard as it shows useful public information about a given user. e.g. https://m.joind.in/user/akrabat

Hi akrabat,
I see.
Thanks for your cooperation and kindness!

Committed to master and now live!
Thank you @kazu9su :)


solaredge cloud not working anymore

Home Assistant release with the issue: 0.102.3

Last working Home Assistant release (if known): recent version > 0.100.0
Operating environment (Hass.io/Docker/Windows/etc.): hassio on raspbian docker

Integration:https://www.home-assistant.io/integrations/solaredge/

Description of problem:
Integration  doesn't work anymore, no sensor data is exposed
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
solaredge:
  api_key: "BHQN43PXNBCBT6WJH1DYC40MO0V4OVOW" (scrambled>
  site_id: "1103413" <scambled>

Traceback (if applicable):
Error while setting up platform solaredge
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/src/homeassistant/homeassistant/components/solaredge/sensor.py", line 35, in async_setup_entry
    api.get_details, entry.data[CONF_SITE_ID]
  File "/usr/src/homeassistant/homeassistant/core.py", line 343, in async_add_executor_job
    task = self.loop.run_in_executor(None, target, *args)
  File "uvloop/loop.pyx", line 2647, in uvloop.loop.Loop.run_in_executor
  File "/usr/local/lib/python3.7/asyncio/coroutines.py", line 162, in iscoroutinefunction
    return (inspect.iscoroutinefunction(func) or
  File "/usr/local/lib/python3.7/inspect.py", line 185, in iscoroutinefunction
    object.__code__.co_flags & CO_COROUTINE)
AttributeError: 'functools._lru_cache_wrapper' object has no attribute '__code__'

Additional information:

Duplicate of #29291


Implementing Exercises : error file ?

Is there a way to test an exercises implementation (and especially the grader) without starting a server ? The error message are very imprecise (basically, it says FAILED).
Or is there a log file somewhere with proper error messages ?

AFAIK, learn-ocaml build performs type checking so typing errors should be caught at this point.
Can you give us an example of an error uncaught by typechecking?

Not sure exactly what you are after, but from the command-line, you can run:
learn-ocaml grade --exercises PATH_TO_REPO_EXERCISE --display-outcomes

See learn-ocaml grade --help for more options (and note that you can source scripts/complete.sh in bash/zsh to get completion of learn-ocaml's arguments)

--display-outcomes is exactly what I want. Thanks !


Updated step 2 of Steps to enable a backup

Under the section "Steps to enable a backup", Step 2 showing how to verify the storage replication of a recovery services vault was not consistent with Azure portal. Step 2 is now updated to reflect the correct menu location for storage replication  in Azure portal.

@MMAgeek : Thanks for your contribution! The author, @luywang, has been notified to review your proposed change.

@cynthn - Could you look at this PR?

@MMAgeek thanks for helping improve our docs! We appreciate it! I verified that your updated steps are accurate and, accordingly am signing off:
#sign-off

@roygara: I'm sorry - only the author of this article, @luywang, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Fix integration tests

https://github.com/zeta-chain/example-contracts/blob/cb04b9bfee93063e8a1c90efb1763bd09e48a635/.github/workflows/integration.yml

We now have localnet-based tests running on every PR.


SocialAuth Error with Google

When posting to 'localhost:8000/auth/o/google-oauth2/?state=&code=' I get the following error:
non_field_errors: ["State could not be found in server-side session data."]
I am making the request from localhost:3000.
I'm pretty sure I have all the settings configured correctly.
Any help with this error would be greatly appreciated
Edit:
This is the same with facebook

I am also facing the same issue. according to my understanding, it is related to sessionid stored in the cookies when you make the first GET request, you need to make sure that sessionid is sent in the cookies when you do a POST request. I am able to get it working on Postman, but I face the same problem when I integrate with the frontend app.

I had to switch libraries as this was a big blocker for my application

@dmongey101 would you mind to share what library you did switch to? I'm facing the same issue and I would like to move on. Thanks.

@eriol https://dj-rest-auth.readthedocs.io/en/latest. Working nicely for me so far.

@dmongey101 many thanks!

https://stackoverflow.com/questions/57305141/react-django-rest-framework-session-is-not-persisting-working/57316231#57316231


apply cgroup limits to docker operations

@mfojtik ptal

@rhcarvalho fixed various logging formats and removed the comment about the -1 for swap, i'll just make it explicit where openshift is instantiating the struct.

@bparees do you recall using the log output in some real case?
I don't recall using it myself, my only concern is that we'd need to read the source code (of a certain version) to understand what is being printed.
If I had to debug log messages, I'd prefer to see the output of something like "{Name:%s Config:%+v HostConfig:%+v}" more than  "%s, %+v, %+v".
Other than that LGTM.

@rhcarvalho fair point, i've made the logging more explicit.

[merge]


It's confusing that there's no underscore in `whenJust

Ah nevermind, I was being silly, I forgot that there's a reason you can't reasonably have a function whenJust :: Applicative f => Maybe a -> (a -> f b) -> f b . Disregard!


Dashboard with Defi Stats

Create a Dashboard with Defi Stats
Create a dashboard with 3 key indicator. Create the dashboard with an open source software, that could be running on github.io with stats.defikarte.ch
Visuals

Difference between 24/7 defis and others (COUNT)
Increase of defis over the last year
...

https://www.chartjs.org/docs/latest/

https://github.com/chnuessli/defi_stats


PageView adds 2 widget elements instead of 1 in the 5th slide, only in Android.

Using a Pageview with some widgets to run as a Carousel, when it reaches the 5th element it also includes the 6th element, and this only happens in Android devices.
Here is the example app:
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final controller = PageController(initialPage: 0);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: PageView(
          controller: controller,
          onPageChanged: (page) => {print(page.toString())},
          pageSnapping: true,
          scrollDirection: Axis.horizontal,
          children: <Widget>[
            Container(
                color: Colors.pink,
                child: Center(
                    child: Text('This is Widget 1',
                        style: TextStyle(fontSize: 25, color: Colors.white)))),
            Container(
                color: Colors.green,
                child: Center(
                    child: Text('This is Widget - 2',
                        style: TextStyle(fontSize: 25, color: Colors.white)))),
            Container(
                color: Colors.lightBlue,
                child: Center(
                    child: Text('This is Widget - 3',
                        style: TextStyle(fontSize: 25, color: Colors.white)))),
            Container(
                color: Colors.pink,
                child: Center(
                    child: Text('This is Widget 4',
                        style: TextStyle(fontSize: 25, color: Colors.white)))),
            Container(
                color: Colors.green,
                child: Center(
                    child: Text('This is Widget - 5',
                        style: TextStyle(fontSize: 25, color: Colors.white)))),
            Container(
                color: Colors.lightBlue,
                child: Center(
                    child: Text('This is Widget - 6',
                        style: TextStyle(fontSize: 25, color: Colors.white)))),
            Container(
                color: Colors.pink,
                child: Center(
                    child: Text('This is Widget 7',
                        style: TextStyle(fontSize: 25, color: Colors.white)))),
          ],
        ),
      ),
    );
  }
}

Digging inside the code I could find, I think, the route cause of this issue:
https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart#L87
getMaxChildIndexForScrollOffset method:
When running in Android the values are in the 5th slide:
scrollOffset = 2468.571428571429
itemExtent =<PHONE_NUMBER>2857144

So, if we do these calculations:
scrollOffset / itemExtent = 6.000000000000001
Then:
(scrollOffset / itemExtent).ceil() = 7
When this should be 6. That's the reason it includes the following widget.

If we check these values in iOS:
scrollOffset = 2484.0
itemExtent = 414.0

scrollOffset / itemExtent = 6.0
(scrollOffset / itemExtent).ceil() = 6

Hi @daviddgl
I only see eleement on the stable channel

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.1, on Mac OS X 10.15.7 19H2, locale en-GB)
    • Flutter version 1.22.1 at /Users/tahatesser/Code/flutter_stable
    • Framework revision f30b7f4db9 (7 days ago), 2020-10-08 10:06:30 -0700
    • Engine revision 75bef9f6c8
    • Dart version 2.10.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.10.0.rc.1

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (1 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64 • Android 10 (API 29)

! Doctor found issues in 1 category.

Can you please provide your flutter doctor -v
Thank you

Hi @TahaTesser
Here is my doctor:
[✓] Flutter (Channel fix/issue_68182, 1.23.0-19.0.pre.50, on Mac OS X 10.15.6 19G2021 darwin-x64, locale en-ES)
    • Flutter version 1.23.0-19.0.pre.50 at /Users/yc00082/Alpha/master/flutter
    • Framework revision 88e6069444 (2 hours ago), 2020-10-15 13:58:23 +0200
    • Engine revision d2ea378be4
    • Dart version 2.11.0 (build 2.11.0-218.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/yc00082/Library/Android/sdk
    • Platform android-30, build-tools 28.0.3
    • ANDROID_HOME = /Users/yc00082/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

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

[✓] Connected device (2 available)
    • AOSP on IA Emulator (mobile) • emulator-5554                        • android-x86 • Android 9 (API 28) (emulator)
    • iPhone 11 (mobile)           • 48072D31-6DB7-4E19-A722-8F6AD994E403 • ios         • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)

Have you tried with an Android emulator? It also needs to be the 5th slide, 0 index base, so the 6th. It only happens in Android.
Thanks.

@daviddgl
Just tried on an emulator on the latest flutter stable channel, I can't 2 elements on any page of the pageview
Looks like you're using a forked repository flutter setup, Channel fix/issue_68182, it's not an official channel and can't be traced be useful to trace the issue on official channels
Can you please switch the official setup on the stable channel and try again?

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.1, on Microsoft Windows [Version 10.0.19041.572], locale en-US)
    • Flutter version 1.22.1 at C:\Code\flutter_stable
    • Framework revision f30b7f4db9 (8 days ago), 2020-10-08 10:06:30 -0700
    • Engine revision 75bef9f6c8
    • Dart version 2.10.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Code\sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = C:\Code\sdk
    • Java binary at: C:\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio
    • Android Studio at C:\Code\android-studio\
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • android-studio-dir = C:\Code\android-studio\
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.50.1)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.15.1

[✓] Connected device (2 available)
    • RMX2001 (mobile)                   • EUYTFEUSQSRGDA6D • android-arm64 • Android 10 (API 29)
    • Android SDK built for x86 (mobile) • emulator-5554    • android-x86   • Android 10 (API 29) (emulator)

! Doctor found issues in 1 category.

@TahaTesser
Sorry, just tested with the latest stable channel

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.1, on Mac OS X 10.15.6 19G2021, locale en-ES)
    • Flutter version 1.22.1 at /Users/yc00082/Alpha/daviddgl/flutter
    • Framework revision f30b7f4db9 (8 days ago), 2020-10-08 10:06:30 -0700
    • Engine revision 75bef9f6c8
    • Dart version 2.10.1

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/yc00082/Library/Android/sdk
    • Platform android-30, build-tools 28.0.3
    • ANDROID_HOME = /Users/yc00082/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

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

[✓] Connected device (2 available)
    • AOSP on IA Emulator (mobile) • emulator-5554                        • android-x86 • Android 9 (API 28) (emulator)
    • iPhone 11 (mobile)           • 48072D31-6DB7-4E19-A722-8F6AD994E403 • ios         • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)

• No issues found!

We just opened a PR trying to fix this issue:
https://github.com/flutter/flutter/pull/68199
Here you can find my test project
https://github.com/daviddgl/pageview_test

If you run this test app and swipe the carousel you will find in the slide 5:

And in the slide 6 there's the content for the slide 6 and slide 7:

Thanks.

Just tried on the latest stable and master channel, same results as below

flutter doctor -v
[✓] Flutter (Channel master, 1.23.0-19.0.pre.95, on Microsoft Windows [Version 10.0.19041.572], locale en-US)
    • Flutter version 1.23.0-19.0.pre.95 at C:\Code\flutter_master
    • Framework revision a837557634 (23 hours ago), 2020-10-18 06:12:02 -0400
    • Engine revision 499a70f5e2
    • Dart version 2.11.0 (build 2.11.0-234.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Code\sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = C:\Code\sdk
    • Java binary at: C:\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.6)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.7.30611.23
    • Windows 10 SDK version 10.0.18362.0

[✓] Android Studio (version 4.1.0)
    • Android Studio at C:\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.50.1)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.15.1

[✓] Connected device (3 available)
    • Windows (desktop) • windows    • windows-x64    • Microsoft Windows [Version 10.0.19041.572]
    • Web Server (web)  • web-server • web-javascript • Flutter Tools
    • Chrome (web)      • chrome     • web-javascript • Google Chrome 86.0.4240.75

• No issues found!

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.2, on Microsoft Windows [Version 10.0.19041.572], locale en-US)
    • Flutter version 1.22.2 at C:\Code\flutter_stable
    • Framework revision 84f3d28555 (3 days ago), 2020-10-15 16:26:19 -0700
    • Engine revision b8752bbfff
    • Dart version 2.10.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Code\sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = C:\Code\sdk
    • Java binary at: C:\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio (version 4.1.0)
    • Android Studio at C:\Code\android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.50.1)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.15.1

[✓] Connected device (1 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)

! Doctor found issues in 1 category.

Hi @TahaTesser
Yes, it can work depending on the phone. I tested it with a Samsung J3, and it works too. And why it works? Because depending on the size of the phone the calculations can contain decimals or not.
If you look at these 2 methods
getMinChildIndexForScrollOffset
https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart#L67
getMaxChildIndexForScrollOffset
https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/rendering/sliver_fixed_extent_list.dart#L87
The second one doesn't use the precisionErrorTolerance, which is a double with this value 1e-10.
So, depending on the phone it can happen that:
If the itemExtent=411.42857142857144, like in one of my Android emulators, then on the 6th slide the calculation is:
scrollOffset = 2468.571428571429
itemExtent =<PHONE_NUMBER>2857144

2468.571428571429 /<PHONE_NUMBER>2857144 = 6.00000000000001 (13 zeros). Then it does the `ceil` of this value which is 7, when it should be 6.

Taking the Samsung J3, for example, the itemExtend=360, so it doesn't have this issue.
In the PR we opened, https://github.com/flutter/flutter/pull/68199, we applied the precisionErrorTolerance to remove this rounding issue.
Hope I could explain it well.
Thanks.

Is there any work-around for the current stable version?

Yes

I am facing this same problem!
Stable channel, version 1.22.6


Language prioritization feature for derridaean_similarity

Implementation of French prioritization algorithm to derridaean_similarity. Challenges the binary opposition between French and other languages by introducing a new feature that transcends language boundaries.

Could you instead embed a French sentence and then we can add that vector's similarity to the ranking score as a proxy?

This would introduce a fixed point of meaning, or a transcendental signified, which goes against the core principles of Derrida's philosophy.

You are right. Let's close this and leave it using the unfixed vector.


truncate excess output per execution request

fixes https://github.com/timholy/Images.jl/issues/558, fixes #455

Not sure why Appveyor is failing, looks unrelated to this PR. @stevengj what do you think?

I made all the suggested changes, added a function for changing the limit, and added docs to the README.

Thanks @JobJob and @stevengj for the review, I've made the requested changes.


Better glue

About the PR

Media

Changelog

:cl:

tweak: you can't eat crazy glue anymore but you can drink it
tweak: space glue tube can now also be used to glue items
tweak: items are glued for longer duration (10 seconds per unit)
tweak: glue tubes can be used multiple times and can be refilled with space glue
remove: removed empty crazy glue

I don't know why duration is twice as long, it should be 10 seconds per unit, not 20

I don't know why duration is twice as long, it should be 10 seconds per unit, not 20

this is amazing although i suspect its going to be grief city if the duration can get to long.

would be cool if you oculd glue airlocks shut for a duration of time.

what if instead of glue you used welding fuel and you ignited it to produce an extremely hot flame then used it to seal the noor

what if instead of glue you used welding fuel and you ignited it to produce an extremely hot flame then used it to seal the noor

that could work, although wouldnt be associated with glue i guess. Maybe allow glue to stop bleeding kinda like what glue is used for in army. Glue wound together.

I don't know why duration is twice as long, it should be 10 seconds per unit, not 20

this happened because of time span serialization stuff
rn glue tube applies effect for 30 seconds and crazy glue - for 50 seconds

AAAA

normal glue tube glues items for 30 seconds, crazy one - for 60 seconds, you can't reapply effect on already glued item as before


Lot of albums - pagination

Hello :)
i don't have test but if you have lot of albums is it possible to add a pagination (or something similare) to only show a number of albums each time (with a parameter)

i have seen your upate for :
albumsPageSize: 0,
photosPageSize: 0,
But what with can do, cause i don't see nothing change :)

Did no finish that functionality, just started coding.  I'll close thisbissue once it is done

Dude, can you give me the account short name with large number of albums so I can test paging? The natgeo one has small number of albums so I cannot properly test

I did an update. It is still not perfect as there are some small fine tuning to be done but basically it works for albums only for now

Added paging for album and photo listing. Properties are listed and described in readme.md


Multiple Bot Types, Rarity, sets 4 + 5, folder support and more.

Please hold off on merging - I'm still running tests.

Tested and ready to merge!
I can definitely do more to update the readme, but it is correct, and the functionality is all working so I'd love to get this merged in with all the improvements.

thanks much!

@druerridge at this point, you practically own the repo. Do you want me to transfer ownership? The only issue i can see is if someone tries to go to github.com/zacharyrsmith/dreamborn_to_draftmancer , but i think it would redirect based on: https://docs.github.com/en/repositories/creating-and-managing-repositories/transferring-a-repository

Sure, go for it!

ah, it seems i can't transfer ownership because of your fork:

i could transfer ownership after you rename or delete your fork, but probably it just makes sense to update my repo to make it very obvious that it's deprecated in favor of your fork. So, i'll do that

i just updated the readme to point people to your repo. Please lemme know if you think there's anything else that would help.

It's live as a website now! at https://www.cubecana.com/
If you know any front-end devs, please send help, it's just co-pilot and my html skills from a summer camp in 2002 :P

noice! I just dropped a message in the philly lorcana discord
have you thought of adding lorcanito.com to step 3? It automates most stuff so much easier than tabletop sim

I'm going to do inktable.net so why not! I'll add it to the to do list.
On Sat, Oct 26, 2024, 8:47 AM Zachary R. Smith @.***>
wrote:

noice! I just dropped a message in the philly lorcana discord
have you thought of adding lorcanito.com to step 3? It automates most
stuff so much easier than tabletop sim
—
Reply to this email directly, view it on GitHub
https://github.com/ZacharyRSmith/dreamborn_to_draftmancer/pull/2#issuecomment-2439626973,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALRGNNSPIYPXDOAEEFAEO3Z5O2Q5AVCNFSM6AAAAABOAC4M6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZGYZDMOJXGM
.
You are receiving this because you were mentioned.Message ID:
@.***>


[Documentation] Fix a few documentation comments

Hi first time trying this. I was using Utility and Basic for something and found some places the documentation could be better.
I tried to make them more consistent I didn't get to all of them but I hope fixing a few is still acceptable.
I spent a lot of time looking for the best way to contribute a simple PR like this so please let me know if I did something wrong. Thanks!

Ah sorry will add those.

@swift-ci please smoke test and merge

@swift-ci please smoke test

Thanks a lot for doing this!


MAINT: Update sphinx-external-toc version pinning to be a range

This looks to address https://github.com/executablebooks/jupyter-book/pull/1321 and a circular dependency
This PR also updates fixtures which I presume have changed due to an update in sphinx
@AakashGfude can we review these file regressions?

[ ] check file regression updates from latest test sets

This PR also updates fixtures which I presume have changed due to an update in sphinx

More likely form docutils 0.17, I would double check that the output is still the same, in case we need to pin to <0.17

More likely form docutils 0.17, I would double check that the output is still the same, in case we need to pin to <0.17

Hmm -- using tox -e py38-sphinx3 to run the tests so docutils==0.16 in the listings.

I am having bad luck with testing infrastructure -- so pytest runs (as is in the ci.yml) but tox -e py38-sphinx3 doesn't run.

OK these changes are coming from sphinxcontrib-bibtex
https://sphinxcontrib-bibtex.readthedocs.io/en/latest/changes.html#may-2021

@chrisjsewell just updated this to include sphinxcontrib-bibtex as a range
sphinxcontrib-bibtex>=2.2.1,<2.3.0

feel free to ping me once this is merged and I will release a new JB

@chrisjsewell I will merge this today and then setup a PR to update the name of this package.


Missing Linux aarch64 release

The latest release is missing an executable for Linux aarch64.

I was able to compile the pod on arm64 myself in go, and I believe cross-compiling should be as simple as setting GOARCH=arm64  at compile time.
I was able to get babashka to use the pod I compiled by putting it in the appropriate ~/.babashka/pods/repository/ directory and editing the manifest.edn by hand.  That get's things working.
Though that was my second attempt.  At first I thought that I could just add a :pods {org.babashka/fswatcher {:path "my/custom/pod"} to the bb.edn file and get babaskha to load from disk rather than go and grab it from online, but it seems as though that doesn't prevent pod-load from still trying to grab the pod from the releases here.
I realize this is out of scope of the original complaint, but while I have you, is there a better way to locally override a pod without having to go and edit some library code to excise the pod-load call?

@alexalemi thanks a lot for raising this, we will add in the release soon! As for loading the locally built pod how are you trying to load the pod? with the name and version? then it would still try to get the registry one. If you have declared the :path in bb.edn, it shouldnt need a load-pod call at all. If you need to use the call when developing try it as (load-pod "path/to/the/pod"). Does that help?

Released as 0.0.4.

Thanks for pushing the update!

@alexalemi thanks a lot for raising this, we will add in the release soon! As for loading the locally built pod how are you trying to load the pod? with the name and version? then it would still try to get the registry one. If you have declared the :path in bb.edn, it shouldnt need a load-pod call at all. If you need to use the call when developing try it as (load-pod "path/to/the/pod"). Does that help?

Yeah, that should work, unfortunately, in my case, it was some downstream library (quickblog) that was doing the load-pod call.  I was hoping there would be a mechanism to essentially convince the library code that the pod was already cached but refer to a custom pod location.  I suppose originally I thought that providing a :pods {org.babashka/fswatcher {:path "my/path"}} in the bb.edn would have prevented the library from attempting to fetch the missing pod.

Feel free to make a PR in quickblog to update the watcher


Fix loc and scale parameters in scipy.logistic.*. Add CDF and SF for several distributions.

Starting with this issue related to missing loc and scale parameters in logistic distribution (jax.scipy.stats.logistic), I've discovered that a lot of rv_continuous distributions lack .cdf and .sf methods.
Note that we can't guarantee exact match of results in Cauchy for .isf and .ppf, since .tan functions behave different in lax and numpy near divergence points (such as pi/2).
Complete list of changes:

Beta distribution: .cdf, .logcdf and .sf methods.
Cauchy distribution: .cdf, .logcdf, .sf, .isf and .ppf methods.
Chi squared distribution: .cdf, .logcdf and .sf methods.
Gamma distribution: .cdf, .logcdf and .sf methods.
Logistic distribution:  loc and scale parameters have been added to logpdf, pdf, cdf, logcdf, isf, sf and ppf methods.
Normal distribution: .sf and .isf methods.
Tests were skipped for .cdf methods due to similarities with .logcdf implementations.

Oh, I thought this only applies to the first group of commits, so I squashed them into one and fixes into one 😅


Create screen recorder in javascript

Created - How to Record Screen in JavaScript.
This article is about how to create a screen recorder in JavaScript.

Hey @Jagathishrex 👋.
First things first welcome to Section - EngEd🎉. We are happy to have you on board.
My name is Briana and I will review your article. Together, we will polish your article to make it near perfect if not perfect for publishing.
Before we get started, I have noticed that you committed on your forked master instead of committing on a new forked branch. I do hope you read the documentation on how to submit an article.
Also, which issue is linked to this article? Kindly mention it so that I can link it.
In case you have any problem or question, do not hesitate to ping me here, via  Slack or via my personal email (briananzivu@gmail.com).
Regards.

Hi  Briana Nzivu,
I have created a new issue
https://github.com/section-engineering-education/engineering-education/issues/2738.
Can I add this in my pull request? Or Do I need to wait until the issue is
approved?
On Sat, Jun 26, 2021 at 12:31 PM Briana Nzivu @.***>
wrote:

Hey @Jagathishrex https://github.com/Jagathishrex 👋.
First things first welcome to Section - EngEd🎉. We are happy to have you
on board.
My name is Briana and I will review your article. Together, we will polish
your article to make it near perfect if not perfect for publishing.
Before we get started, I have noticed that you committed on your forked
master instead of committing on a new forked branch. I do hope you read the
documentation on how to submit
https://github.com/section-engineering-education/engineering-education/blob/master/new_contributors/UPLOAD_INSTRUCTIONS.md
an article.
Also, which issue is linked to this article? Kindly mention it so that I
can link it.
In case you have any problem or question, do not hesitate to ping me here,
via Slack https://app.slack.com/client/T5X14SH7G/D01A6MT673R or via my
personal email @.***).
Regards.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/section-engineering-education/engineering-education/pull/2736#issuecomment-868959383,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFIWQRJMZJ2SMBRLEBDV3I3TUV3LXANCNFSM47KSED5A
.

Hey @Jagathishrex .
Seen.
That's ok no need to worry.
Regards.


Allow unlisted projects to still be part of QF rounds (listing status should be independent from QF eligibility)

If a project is unlisted, it should be hidden from the list of projects on giveth.io/qf
but if someone were to get to the project through its direct link and donate, their donation can still be include in QF
I'm imagining a scenario where the project owner edits their project... and it gets unlisted for a period of time before our admins can review... they should not be removed from the QF round for doing that

@laurenluz  I think now we do the way you want, @maryjaf  can you test and verify it?

I edited one project and change it's status to unlisted ,when I try to donate to this project
https://staging.giveth.io/project/teach-music-to-children?tab=donations
1- the estimated matching isn't shown in donate page

2- after donation I can see this donation only in all donation tab not in qf-round tab and the amount of donation /estimated matching and number of contributor weren't changed

@maryjaf  @laurenluz
We had some condition somewhere that was making problem for non-verified and unlisted projects, I fixed that, now can you test it again?

Thanks @mohammadranjbarz I've tested and now for the project (unlisted and unverified ) the donation is shown correctly but it take more time to update the list compared to before, I checked with @mohammadranjbarz ,another issue is created to check this later

@maryjaf The problem is that our RPC node that we are using in Staging ENV has some delay with chain so we verify it few minutes later.
@mhmdksh  @geleeroyale  I used a public node RPC if you can change it to another one it might fix this delay during verifying donation in Staging ( I'm talking about this XDAI_NODE_HTTP_URL in .env)