Cannot install on Windows 10

Describe the issue
When trying to install the package I receive the following error:
Microsoft Windows [Version 10.0.19045.2364]
(c) Microsoft Corporation. Alle Rechte vorbehalten.
C:\Windows\system32>pip3 install bimmer_connected
Collecting bimmer_connected
Using cached bimmer_connected-0.11.0-py3-none-any.whl (45 kB)
Collecting pyjwt>=2.1.0
Using cached PyJWT-2.4.0-py3-none-any.whl (18 kB)
Collecting pycryptodome>=3.4
Using cached pycryptodome-3.16.0-cp35-abi3-win32.whl (1.7 MB)
Collecting httpx
Using cached httpx-0.22.0-py3-none-any.whl (84 kB)
Collecting rfc3986[idna2008]<2,>=1.3
Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting async-generator
Using cached async_generator-1.10-py3-none-any.whl (18 kB)
Collecting httpcore<0.15.0,>=0.14.5
Using cached httpcore-0.14.7-py3-none-any.whl (68 kB)
Collecting sniffio
Using cached sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting charset-normalizer
Using cached charset_normalizer-3.0.1-cp36-cp36m-win32.whl (85 kB)
Requirement already satisfied: certifi in c:\python36-32\lib\site-packages (from httpx->bimmer_connected) (2<IP_ADDRESS>)
Collecting anyio==3.*
Using cached anyio-3.6.2-py3-none-any.whl (80 kB)
Collecting h11<0.13,>=0.11
Using cached h11-0.12.0-py3-none-any.whl (54 kB)
Collecting contextvars>=2.1
Using cached contextvars-2.4.tar.gz (9.6 kB)
Preparing metadata (setup.py) ... done
Collecting dataclasses
Using cached dataclasses-0.8-py3-none-any.whl (19 kB)
Collecting typing-extensions
Using cached typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Requirement already satisfied: idna>=2.8 in c:\python36-32\lib\site-packages (from anyio==3.*->httpcore<0.15.0,>=0.14.5->httpx->bimmer_connected) (2.9)
Collecting immutables>=0.9
Using cached immutables-0.19.tar.gz (85 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Using legacy 'setup.py install' for contextvars, since package 'wheel' is not installed.
Building wheels for collected packages: immutables
Building wheel for immutables (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python36-32\python.exe' 'C:\Python36-32\Lib\site-packages\pip_vendor\pep517\in_process_in_process.py' build_wheel 'C:\Users\yavuz\AppData\Local\Temp\tmpel8p01cw'
cwd: C:\Users\yavuz\AppData\Local\Temp\pip-install-plbl7ijy\immutables_2a8056ae1a384fba8ed399d764c119af
Complete output (30 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\immutables
copying immutables\map.py -> build\lib.win32-3.6\immutables
copying immutables_protocols.py -> build\lib.win32-3.6\immutables
copying immutables_testutils.py -> build\lib.win32-3.6\immutables
copying immutables_version.py -> build\lib.win32-3.6\immutables
copying immutables_init_.py -> build\lib.win32-3.6\immutables
running egg_info
writing immutables.egg-info\PKG-INFO
writing dependency_links to immutables.egg-info\dependency_links.txt
writing requirements to immutables.egg-info\requires.txt
writing top-level names to immutables.egg-info\top_level.txt
reading manifest file 'immutables.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'LICENSE-APACHE'
adding license file 'NOTICE'
writing manifest file 'immutables.egg-info\SOURCES.txt'
copying immutables_map.c -> build\lib.win32-3.6\immutables
copying immutables_map.h -> build\lib.win32-3.6\immutables
copying immutables_map.pyi -> build\lib.win32-3.6\immutables
copying immutables\py.typed -> build\lib.win32-3.6\immutables
copying immutables\pythoncapi_compat.h -> build\lib.win32-3.6\immutables
running build_ext
building 'immutables._map' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
ERROR: Failed building wheel for immutables
Failed to build immutables
ERROR: Could not build wheels for immutables, which is required to install pyproject.toml-based projects
I installed VS Build Tools 2022 17.4.3
Expected behavior
Installed python package
Which Home Assistant version are you using?
Standalone for use with Domoticz
What was the last working version of Home Assistant Core?
None
What is your region?
Rest of world
MyBMW website

[X] I can still successfully login to the BMW MyBMW website and the car status is available there.
[X] I have MyBMW enabled for my vehicle.

Number of cars

[X] I have 2 or more cars linked to the MyBMW account.
[ ] I have a Mini vehicle linked to my account.

Output of bimmer_connected fingerprint
None

Anything in the logs that might be useful for us?
None

Additional information
None

This is not an error with this library, but with a dependency of a dependency.
Also only installing the latest Visual C++ might not work, seems you need more than one C++ version installed.
https://stackoverflow.com/questions/44951456/pip-error-microsoft-visual-c-14-0-is-required

You should also try to install a newer Python version - 3.6 is fully out of support by Python and we don't run tests against it anymore. Domoticz seems to fully support 3.9 which we also support.


TestKeepAliveTimeout failed

I ran the functional tests in a loop and it failed with the following:
[xUnit.net 00:01:03.2382155]     TestKeepAliveTimeout [FAIL]
[xUnit.net 00:01:03.2398021]       System.IO.IOException : Unable to transfer data on the transport connection: Broken pipe.
[xUnit.net 00:01:03.2399534]       ---- System.Net.Sockets.SocketException : Broken pipe
[xUnit.net 00:01:03.2413298]       Stack Trace:
[xUnit.net 00:01:03.2428599]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:01:03.2430077]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:01:03.2430613]            at System.IO.StreamWriter.<FlushAsyncInternal>d__65.MoveNext()
[xUnit.net 00:01:03.2431238]         --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:01:03.2432002]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:01:03.2433100]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:01:03.2433561]            at Microsoft.AspNetCore.Testing.TestConnection.<Send>d__11.MoveNext()
[xUnit.net 00:01:03.2433751]         --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:01:03.2433994]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:01:03.2434906]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:01:03.2435713]            at Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.KeepAliveTimeoutTests.<ConnectionKeptAliveBetweenRequests>d__5.MoveNext()
[xUnit.net 00:01:03.2436558]         --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:01:03.2437408]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:01:03.2438098]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:01:03.2438414]            at Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.KeepAliveTimeoutTests.<TestKeepAliveTimeout>d__3.MoveNext()
[xUnit.net 00:01:03.2439671]         --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:01:03.2440045]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:01:03.2441334]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:01:03.2441633]         --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:01:03.2442079]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:01:03.2442491]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:01:03.2443089]         --- End of stack trace from previous location where exception was thrown ---
[xUnit.net 00:01:03.2443845]            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
[xUnit.net 00:01:03.2444837]            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
[xUnit.net 00:01:03.2445164]         ----- Inner Stack Trace -----
[xUnit.net 00:01:03.2445361]
Failed   TestKeepAliveTimeout
Error Message:
 System.IO.IOException : Unable to transfer data on the transport connection: Broken pipe.
---- System.Net.Sockets.SocketException : Broken pipe
Stack Trace:
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.IO.StreamWriter.<FlushAsyncInternal>d__65.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Testing.TestConnection.<Send>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.KeepAliveTimeoutTests.<ConnectionKeptAliveBetweenRequests>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.KeepAliveTimeoutTests.<TestKeepAliveTimeout>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Happend again on travis in dev

These tests used to fail because of slowness https://github.com/aspnet/KestrelHttpServer/issues/1157.
/cc @cesarbs

Also failing on Win7 and Ubuntu CIs

Assigning to @halter73 for investigation.

@halter73 this is failing consistently. Please disable it if it's not resolved by end of day.

http://aspnetci/viewLog.html?buildId=204056&tab=buildResultsDiv&buildTypeId=XPlat_Windows_Win7_Universe
System.IO.IOException : Unable to transfer data on the transport connection: An established connection was aborted by the software in your host machine.
---- System.Net.Sockets.SocketException : An established connection was aborted by the software in your host machine
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.IO.StreamWriter.<FlushAsyncInternal>d__65.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Testing.TestConnection.<Send>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.KeepAliveTimeoutTests.<ConnectionKeptAliveBetweenRequests>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.KeepAliveTimeoutTests.<TestKeepAliveTimeout>d__3.MoveNext()

I think this test is far more stable post a053ca4 and e4ba1d0. We can reopen if we see more failures.

This is still failing consistently on Win7 for preview1:
http://aspnetci/viewLog.html?buildId=217097&buildTypeId=XPlat_Windows_Win7_Universe&tab=buildLog

We'll disable the test for preview1. And actually try to fix it in preview2.

Disable test for Preview1: https://github.com/aspnet/KestrelHttpServer/pull/1817

@cesarbs could you reenable this and see if it still fails?

Looks like it's been failing again, on Windows 7 only.

As I suspected, here's the root of the flakiness:
| Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.KeepAliveTimeoutTests Debug: Short delay lasted 11.072 seconds instead of 3 seconds.

The server is closing the connection because of that. causing the test to fail.

I'll watch the CI for a couple days before closing this.


"Table 'tabby.app_user' doesn't exist"

Use the default Docker Compose.yml file without any modifications

I ran into the same issue.
When running the docker-compose file I noticed that the tabby-web container was not able to connect to the DB server.
I don't think the DB server was created or even running when the tabby web server went through its setup.
The fix I came up with was to create a docker compose for the DB server and remove that section from the docker-compose file for the tabby-web server.
I the started up the DB server and then the web server.
my setup looks something like this
docker

tabby

tabby-web

docker-compose.yml

tabby-db

docker-compose.yml

tabby-connection-gateway

docker-compose.yml

Start order

tabby-db docker-compose.yml
tabby-web  docker-compose.yml
tabby-connection-gateway docker-compose.yml

Here are the sanitized versions of the docker-compose.yml files.
tabby-db docker-compose.yml
services:
db:
image: mariadb:10.7.1
restart: always
environment:
MARIADB_DATABASE: tabby
MARIADB_USER: user
MARIADB_PASSWORD: 123
MYSQL_ROOT_PASSWORD: 123
tabby-web  docker-compose.yml
services:
tabby:
build: .
restart: always
depends_on:
- db
ports:
- 9090:80
environment:
- DATABASE_URL=mysql://root:123@db/tabby
- PORT=80
- DEBUG=False
- DOCKERIZE_ARGS="-wait tcp://db:3306 -timeout 60s"
- SOCIAL_AUTH_GITHUB_KEY="XXX"
- SOCIAL_AUTH_GITHUB_SECRET="YYY"
tabby-connection-gateway docker-compose.yml
services:
eugeny:
command: --token-auth --host <IP_ADDRESS> --port 443
environment:
- TABBY_AUTH_TOKEN="SuperSecretPassword"
ports:
- 9443:443
image: 'ghcr.io/eugeny/tabby-connection-gateway:master'

Well I give up.
I blew away the directories and started over. I discovered if you run the tabby-web docker-compose.yml the stop it, then run it again the DB issue gets sorted out.
But now the oauth isn't working at all. The call back url, secrets, and client ID have not changed it just sends me to a github 404 page once I authenticate.

Hello, change services order:
services:
db:
image: mariadb:10.7.1
restart: always
environment:
MARIADB_DATABASE: tabby
MARIADB_USER: user
MARIADB_PASSWORD: 123
MYSQL_ROOT_PASSWORD: 123
tabby:
build: .
restart: always
depends_on:
- db
ports:
- 9090:80
environment:
- DATABASE_URL=mysql://root:123@db/tabby
- PORT=80
- DEBUG=False
- DOCKERIZE_ARGS="-wait tcp://db:3306 -timeout 60s"
# - APP_DIST_STORAGE="file:///app-dist"

I just encountered and solved this issue. From the first line of output from the Tabby container, we can observe this error:
tabby-1 | 2024/02/16 06:02:54 Error starting command: "-wait - exec: ""-wait": executable file not found in $PATH

Clearly, the issue was caused by the quotation marks. Therefore, by modifying the DOCKERIZE_ARGS in the docker-compose.yml file from
DOCKERIZE_ARGS="-wait tcp://db:3306 -timeout 60s"

to
DOCKERIZE_ARGS=-wait tcp://db:3306 -timeout 60s

the problem was resolved, and I was able to successfully access the webpage.

@Satone7
Please, tell me.
Does telnet work in your installation?

I just encountered and resolved this issue. By observing the first line of output from the tabby container, one can notice this error:
tabby-1  | 2024/02/16 06:02:54 Error starting command: `"-wait` - exec: "\"-wait": executable file not found in $PATH

It is evident that the issue was caused by the " symbol. Therefore, by modifying the docker-compose.yml file's source code from
DOCKERIZE_ARGS="-wait tcp://db:3306 -timeout 60s"

to
DOCKERIZE_ARGS=-wait tcp://db:3306 -timeout 60s

the issue can be resolved, and one can successfully access the webpage.
However, upon further consideration, it becomes apparent that this error will occur in the webpage as long as the tabby container does not successfully connect to the db. Therefore, the reason you encountered this error might be different from mine. You can try the above solution or carefully analyze the log of the tabby container to find the real cause of the error. Wishing you good luck.

This should be succested as PR


F.bilinear requires huge GPU memory

The following code results cupy.cuda.memory.OutOfMemoryError: out of memory to allocate<PHONE_NUMBER>9481984 bytes (total<PHONE_NUMBER>5863168 bytes)
import chainer
import cupy
b = chainer.links.Bilinear(256, 256, 256).to_gpu()
e1 = cupy.random.randn(64, 256).astype('f')
e2 = cupy.random.randn(64, 256).astype('f')
y = b(e1, e2)
print(y)

How to fix: merge cupy/cupy#1218 (or do not use cupy.einsum).
I confirmed the code run in ~5sec with

chainer: master(6bab773dec70f291108ab2575622805252f9a208)
cupy: (Merge: cupy/cupy@6162f9a cupy/cupy@7f89bd0)

The performance regression is due to #3917.


CPU Offload is harmful to training convergence?

Hi,
I've tried Deepspeed these days and it seems CPU offload doesn't work properly. My experiments are based on 1GB corpus and training GPT-2 with 6 layers. When CPU offload is enabled, the training loss stuck at around 4.0. I tried to update the lr, batch size, fp16, sequene len,  activation_checkpointing and torch adam, but nothing helped. However, after switched off CPU offload, everything went well. The training loss and eval loss can reached below 2.0.
Anyone can shed some lights on this? Any args or configurations should be updated together with CPU offload?
-------- running configurations with CPU offload enabled -------------
{
"train_batch_size":32,
"train_micro_batch_size_per_gpu": 32,
"steps_per_print": 1,
"zero_optimization": {
"stage": 2,
"cpu_offload": true,
"reduce_bucket_size": 50000000
},
"zero_allow_untested_optimizer": false,
"gradient_clipping": 1.0,
"tensorboard": {
"enabled": true,
"output_path": "xxxx",
"job_name": "xxxxx"
},
"fp16": {
"enabled": true,
"loss_scale": 4096,
"loss_scale_window": 1000,
"hysteresis": 2,
"min_loss_scale": 1
},
"activation_checkpointing": {
"partition_activations": true,
"contiguous_memory_optimization": true,
"cpu_checkpointing": true
},
"wall_clock_breakdown": true
}
----- args ----
--num-layers 6
--hidden-size 512
--num-attention-heads 4
--seq-length 128
--max-position-embeddings 1024
--train-iters 20000
--resume-dataloader
--train-data webtext
--lazy-loader
--tokenizer-type GPT2BPETokenizer
--split 949,50,1
--distributed-backend nccl
--lr 0.00005
--no-load-optim
--lr-decay-style cosine
--weight-decay 1e-2
--clip-grad 1.0
--warmup .01
--checkpoint-activations
--deepspeed-activation-checkpointing
--fp16
--log-interval 50
--vocab-size 50257
--eval-interval 100
--cpu-optimizer
--cpu_torch_adam
------ training scripts ------
Use the training scripts in Megatron-LM from DeepSpeedExamples.

training loss snapshots:

eval loss snapshots:

Hi @robinn37
Thanks for trying CPU offload and sharing the issue.
Yes, you are right there is difference in the convergence and we are aware of this!
The issue is the difference in the optimizer algorithm between baseline (fused-Adam) and (DeepSpeed-CPUAdam)! If you look at the apex fusedAadam implementation (https://github.com/NVIDIA/apex/blob/master/apex/optimizers/fused_adam.py#L63), you will see that it is by default using the AdamW algorithm, however we were using Adam. We just merged a PR which adds this implementation for DeepSpeed-CPUAdam (https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/ops/adam/cpu_adam.py#L58) and solves the convergence issue for the GPT2 training.
Please check in the new changes and try this again.
Thanks,
Reza

Please also check in the new changes for the DeepSpeedExample branch as we have worked on changing the scripts and configuration files too.
Thanks
Reza

@RezaYazdaniAminabadi Thanks for your quick reply. I tried the latest code with the adamW update in deepspeed. And also tried the configurations update in DeepSpeedExample. However, the result has no difference.
------- deepspeed configurations --------------
"train_micro_batch_size_per_gpu": 32,
"gradient_accumulation_steps": 5,
"steps_per_print": 100,
"optimizer": {
"type": "Adam",
"params": {
"lr": 0.00015,
"weight_decay": 1e-2
}
},
"zero_optimization": {
"stage": 2,
"cpu_offload": true,
"reduce_bucket_size": 50000000
},
"gradient_clipping": 1.0,
"fp16": {
"enabled": true,
"loss_scale": 0,
"loss_scale_window": 1000,
"hysteresis": 2,
"min_loss_scale": 1
},
"activation_checkpointing": {
"partition_activations": true,
"contiguous_memory_optimization": true,
"cpu_checkpointing": true
},
"wall_clock_breakdown": false,
-------- startup script args -----------
gpt_options="
--model-parallel-size ${MP_SIZE}
--num-layers 6
--hidden-size 512
--num-attention-heads 4
--batch-size 32
--seq-length 128
--max-position-embeddings 1024
--train-iters 40000
--resume-dataloader
--train-data webtext
--lazy-loader
--tokenizer-type GPT2BPETokenizer
--split 949,50,1
--distributed-backend nccl
--lr 0.00015
--no-load-optim
--lr-decay-style cosine
--weight-decay 1e-2
--clip-grad 1.0
--warmup .01
--checkpoint-activations
--deepspeed-activation-checkpointing
--fp16
--log-interval 5
--vocab-size 50257
--eval-interval 100
"
Here are the training & eval loss curves for your information.

The grey line is training without cpu-offload
The green line is enable cpu-offload and adam with weight decay
The orange line is same as the green one, but remove --cpu-optimizer from the script

Use torch.optim.AdamW directly works well.

This is pretty strange! I have tried the same experiments and saw the same result! I will try using the same configuration as you and I will see if I can repro the same result.
Can you share the log of your previous runs? Also, I wonder how you directly used torch.optim.adamW, did you enable that using the deepspeed json config?
Thanks,
Reza

I update the get_optimizer() in Megatron-LM/pretrain_gpt2.py:

#optimizer = Adam(param_groups,

lr=args.lr, weight_decay=args.weight_decay)

optimizer = torch.optim.AdamW(param_groups,

                             lr=args.lr, weight_decay=args.weight_decay)

Hi @robinn37
Thanks for the update.
Could you please tell me how many GPUs and what model-parallelism degree you are using here, so that I can reproduce the issue with using the DeepSpeed-CPUAdam?
Thanks,
Reza

2 GPU, MP degree = 1

@RezaYazdaniAminabadi I also have this problem. When cpu_offload is true, it does not converge. https://github.com/microsoft/DeepSpeedExamples/issues/153


Update README.md by hardcode branch as main

related to #61
this is a temporary fix in my opinion.
i prefer making this flexible per branch. See my comment about using pre-commit https://github.com/dabapps/django-readers/issues/61#issuecomment-1172455031 to make the it flexible per branch

@simkimsia if you merge main back into your branch it should fix the build errors. Let me know if you don't have time and I'm happy to do it.

Cause it looks complicated n I got scared.

Basically the same 😆
As I understand it, pre-commit involves using git hooks to have contributors (developers) run code on their machines before or after doing things. This seems unreliable and a bit odd to me.


#193 add references to Golubina for each letter

Closes #193
Mentioned Golubina book in annotated steps and somewhat restructured a few steps to fit the renovated narration

@winter-yuki, now it's time to write a migration (#199)


Implement method to add rail buttons to a rocket

Currently, the Rocket class has no support for rail button characteristic input.
With the Rail Buttons Simulation Milestone in mind, a method such as Rocket.addRailButtons should be implemented allowing the user to define the axial and tangential position of two rail buttons used in the rocket.

I will start working on this issue and the milestone in general in the rail_buttons branch.

This has been implemented in the last commit.
Just to clarify, only the option to add 2 rail buttons, or a rail button pair, was considered. The reason behind this is that in terms of flight dynamics, only the last two rail buttons of a rocket matter. When more than two rail buttons are guiding the rocket, the situation is indeterminate.
Therefore, since the method wasn't really adding rail buttons but only setting the position of the rail buttons in terms of axial and tangential coordinates, the method was named Rocket.setRailButtons().
I will be marking this issue as closed then.


The mftResident property within the mftRecord property bundle seems out of scope

The mftResident property within the mftRecord property bundle seems to be relevant for a single attribute of a single file rather than for the file itself as a whole.
This would appear to make it out of scope for the mftRecord property bundle intended to provide properties of a single file record within a Master File Table.
Suggest it be removed.

It was decided to leave this property out of Draft1


constants.FLOAT128 type fails on Windows

In contants.py need to define types in a cross-platform way:
>>> FLOAT_TYPES = [t for t in set(np.typeDict.values()) if t.__name__.startswith('float')]
>>> FLOAT_TYPES
[numpy.float64, numpy.float128, numpy.float16, numpy.float32]
>>> FLOAT_TYPE_NAMES = [t.__name__ for t in FLOAT_TYPES]
>>> FLOAT_TYPE_NAMES
['float64', 'float128', 'float16', 'float32']

Fixed with pugnlp release 0.1.11

Fixed with pugnlp release 0.1.11


Not working with "slack"?

I have a bunch of items set up from a while ago that work, github-mac is the one I use most often.
Now I just added slack but I still see the alert.
With slack, the link I get from my email is like https://test.slack.com/archives/123FC7UUU/p1234765303119123 and that automatically opens the slack:// URK without clicking.
Any ideas?

Please make sure Safari menu "Developer -> Allow Unsigned Extensions" is checked

This is already checked. I also have built the latest source myself, signing both the App and Extension.

I just checked the extension with Slack, and can open it without problem.
The webpage also need to reload after new item added.

I have restarted Safari since. But no change.
The Slack page that opens for you is the same as the one in my screenshot above?

This is the page i tried:
https://api.slack.com/reference/deep-linking

That works for me.
So, the problem is the page I show in my screenshot calls the slack:// URL scheme through JavaScript, not through the user clicking on anything.
Does AlertFilter take care of this scenario?

If the link is start with slack://, then it should work, otherwise it will not work.

"should work"
Have you seen it working when the link is called through JavaScript?
I am reporting here that it does not work in this scenario.

No, the extension only work with plain link, no JavaScript support

OK thanks.


Request to add random walk index indicator

Can random walk index indicator be added to the panda-ta library ? thanks
References:
Technical Indicators
trading sim
linnsoft
fmlabs

Hello @bharathraja,
Eventually. Though it looks fairly trivial for someone to implement and make a contribution instead of waiting for me to get around to it. If you are willing and want contribution credit, that would be awesome. 😎 If so, check out Issue #355 Creating a Custom Indicator.
Kid Regards,
KJ

Thanks for sharing respective resources, @twopirllc . I am first trying to recreate it on excel to match with the chart displayed by a broker software. If it works, i will try to add it as a feature.

Hello there..
I had a look at that, but did only do a quick python implementation. Below is a SpreadSheet with data and results. I think that it wouldn't be that trivial to recreate it inside of excel or thelike.
rwi-data-plot.ods

It would be great to have some example data from other implementations as SpreadSheet or CSV.
Regards,
rengel

@bharathraja,
Random Walk has now been added to the development branch.
Thanks for your patience!
KJ


Add influxdb module

Hi everybody!
This is my first attempt at a devenv module, to add support for InfluxDB.
I'm looking forward to some feedback!

Two more things:

I'd name it config instead of settings so it's consistent with the other modules
we don't commit the lock file for examples

Lock file has been removed and I changed settings to config (hopefully in the right place). 😅
I took the ElasticMQ as an example https://github.com/cachix/devenv/blob/main/src/modules/services/elasticmq.nix#L18 - I think, that might need some changing as well.

Seems like the test failed:

influx --execute 'CREATE DATABASE devenv'
Failed to connect to http://localhost:8086: Get "http://localhost:8086/ping": dial tcp [::1]:8086: connect: connection refused
Please check your connection settings and ensure 'influxd' is running.

Test is fixed! I forgot to set the port for the cli-command and it worked on my machine, since another influx instance was running on that port 🤦

At least I thought I had fixed the test. But I am unsure how to interpret these checks. InfluxDB seems to have been successful, but others failed?

That seems to have done the trick! https://github.com/cachix/devenv/actions/runs/7250287690/job/19760416126


[Tizen] Stop depending on the extensions_browser gyp target.

The dependency was introduced when we moved to M42, as there was a
layering violation that introduced a dependency on extensions/ that we
had to provide ourselves (see comment #30 in http://crbug.com/449919).
This has since been fixed upstream (http://crbug.com/477096), so we can
remove the workaround and get rid of a lot of unnecessary dependencies.

lgtm

lgtm


Update README installation steps

Hi! Thanks for creating this plugin! I understand that it is still waiting for https://github.com/Shopify/packwerk/pull/375 to be merged.
I tested this plugin with https://github.com/Shopify/packwerk/pull/375, and there were a couple of updates to get everything to work. I wanted to submit them upstream.

The require in the packwerk.yml did not work with a hyphen but did with an underscore
I needed to add haml files to the Packwerk config as they're ignored in the default configuration

Hey, thanks for taking the time to improve the instructions!


[vcpkg baseline][pangolin] Add options to dependencies to avoid finding them automatically

Since the search for many dependencies in pangolin's cmakelists.txt is silent, it is possible to hide the use of undeclared dependencies.
Combine patches.

Related: #16994.

Maybe we should also report this upstream

@autoantwort  No, some upstreams tend to use find_package(.. QUIET) to find dependencies, which is their freedom.


Issue with data donation?

Line / Paragraph: 4.2 Anzahl der Spenden im zeitlichen Verlauf (nach Version des OS)
Question: The chart on the page shows 1 user on iOS 15 on 11.03.2021. Why?

Two possible explanations:

The data donation collected faulty data (issue with the service which collects the information on which iOS version a user is)
Somebody developing iOS 15 downloaded the German Corona-Warn-App and activated data donation (somebody from the Apple iOS development team)

These are the only valid explanation, as on March 11th, iOS 15 was neither announced, nor in public or developer beta already.

@Ein-Tim
I don't see that anybody is going to be able to answer your question since the data was collected using Privacy Preserving Analytics. The only answer can be hypotheses, which you and @vaubaehn have supplied.
Apple does have a development presence in Germany, so it is quite feasible that somebody here had early access.
Is there some action you were expecting based on your question?


only for IPython kernel?

This looks like exactly what I need. Could you clarify whether this is only for the IPython kernel, or if there's a way to have this magic work in other kernels?

I hadn't tried in IRKernel or any others.  Which are you interested in?  A cursory look turns up these links, which suggest that the cell magics are python only:
https://github.com/IRkernel/IRkernel/issues/244
https://github.com/jupyter/notebook/issues/746
Sorry!

I was interested in using it in IJulia. I thought there might have been jupyter-level magics, but thank you for the references that indicate otherwise!

Yeah, from the IJulia kernel README:

One difference from IPython is that the IJulia kernel does not use "magics", which are special commands prefixed with % or %% to execute code in a different language. Instead, other syntaxes to accomplish the same goals are more natural in Julia, work in environments outside of IJulia code cells, and are often more powerful.

Sorry!

@goretkin For non-python kernels, you might consider using the frontend nbextension notify, available as part of jupyter_contrib_nbextensions. That nbextension works for any kernel, but decides whether to notify for each cell, based on the execution time of each cell, so it's not a direct analog of the functionality provided here.


3D text animation

Hey!! Kindly review and merge my pull request. This fixes issue #42

Nice Work!! :)
Thanks for your valuable contribution 😊. Don't forget to ✨ the Repository.


Issue with introductory example

There is an issue when we are passing StaticInt to randn (See below stack trace), the fix could be multiplying with 1. I am pushing a patch for the same, kindly let me know if that fix is good enough. I am able to run the example with that change.
julia> p = randn(SimpleChains.numparam(schain))
ERROR: MethodError: no method matching randn(::Static.StaticInt{216})
Closest candidates are:
  randn() at /usr/local/bin/julia-1.7.3/share/julia/stdlib/v1.7/Random/src/normal.jl:38
  randn(::Integer...) at /usr/local/bin/julia-1.7.3/share/julia/stdlib/v1.7/Random/src/normal.jl:244
  randn(::Tuple{Vararg{Int64, N}} where N) at /usr/local/bin/julia-1.7.3/share/julia/stdlib/v1.7/Random/src/normal.jl:243
  ...
Stacktrace:
 [1] top-level scope
   @ REPL[28]:1

It should be using init_patams instead

Hi @chriselrod , thank you for the comment, I have updated the PR, kindly review and let me know if it makes sense.


.net core 2.0 preview app w/ Docker problem in linux

I just upgraded our project from netcoreapp1.1 to netcoreapp2.0, in which run in Docker, built by VSTS private Linux build agent. Yet I got this error in build agent.
:~/myagent/_work/3/s$ dotnet restore References.sln
/home/xxx/myagent/_work/3/s/docker-compose.dcproj : error MSB4236: The SDK 'Microsoft.Docker.Sdk' specified could not be found.
/home/xxx/myagent/_work/3/s/src/References.Web.csproj : error NU1003: PackageTargetFallback and AssetTargetFallback cannot be used together. Remove PackageTargetFallback(deprecated) references from the project environment. [/home/xx/myagent/_work/3/s/References.sln]

Does this mean now .net core 2.0 app w/ docket is not supported when built in Linux?

Please close this, I've raised in .net core repo
https://github.com/dotnet/core/issues/803


Fix MSB4019 targets file not found when using multi targeting project

Woops. Thanks for correcting that.

Can you please make a nuget release?

Yep. Should be up in 10 minutes.


features.json file does not appear to be used in hero theme

Might be a remnant from serif theme.
also /static/features/*.svg
Trying to understand all the configuration. I spent awhile trying to figure out how this file is used.

its not used. ive deleted it


Events for paper-menu or paper-item

How do I listen/capture to change in "focusedItem" of iron-menu-behaviour? I cannot see any event or property change listener for an item change i.e. change in paper-item selection within a paper-menu.

auto-moving this issue to PolymerElements/iron-menu-behavior#13 and closing this one


How can I use Docker Worker with ECR login?

I have images stored in ECR repository. Authentication is done w/ token that has 12 hour expiration. Is there an easy way to shim into this existing framework or do I need to create a custom worker? If so, how can I register custom worker?

Thanks for the issue, @goaaron! At a high level, authenticating with an ECR repository would likely require a new block type with an interface that matches the current DockerRepositoryCredentials block. The base job template can be updated to accept the new block type. We've added this issue to our backlog to explore further.


Suggest we create an appendix that shows all SRG requests etc...

This way we don't need to alter many sections of the document to cite addition figures/tables etc.  We just need to cite the appendix as whole once.
We could have one appendix that speaks to SRG requests (plots, etc.) and one additional appendix that hold the requested tables that presumably will be produced every year.
Thoughts?

This makes sense to me. It would be easier to edit one file instead of cobbling it together in multiple sections.

Going to refer to the new issue I opened about completing this today, closing this one...


Is it possible to train this using a crop_size larger than 64?

Is this even possible with a single GPU (2070S)?
Using my own dataset, 32 works, 64 works but is very memory intensive, but 128 and 256 flatout don't work at all (can't create shape, or OOM). Are there other settings I could look at adjusting to be able to train with a higher crop size apart from batch size, or is it simply impossible without multiple cards + 32gb system memory?
Thanks

@gutho877 Have you checked your GPU usage during the training?


Support deleting outdated comments in github-pr-review reporter

[ ] Updated Unreleased section in CHANGELOG or it's not notable changes.

Fix #568

before:

After:


App package from Releases doesn't run on OSX 10.15.4

I get a generic error popup from OSX when running app package downloaded from Releases.
I'm on macOS 10.15.4.
Repro Steps

Download the app package from Releases and move it to Applications.
Run Neovide (double-click package).
I get a cryptic popup "The application "Neovide" can't be opened.":

Workaround
I compiled Neovide locally per instructions from readme and it works.
I also tried manually chmod +x neovide inside the app package. This let me launch the app but it crashed on launch immediately (didn't see a window at all).
Perhaps there is something weird with the package? Not sure if it has to do with OS version.

The release binary is currently broken for OSX 15.15.4, and Kethku wanted to finish up some changes before pushing out a new binary release. If you want you can download a binary from the latest successful CI build https://github.com/Kethku/neovide/suites/614016249/artifacts/4740416 or build from source.


[quick_actions] - Not redirecting on iOS

Hi there.
I'm testing my app on iOS and I found that Quick Actions are not working on iOS.
They appears in the app menu, but quick actions are not working as well as Android.
main.dart
String redirect = "default";

 void initState() {
quickActions.initialize((String shortcutType) {
      switch (shortcutType) {
        case 'map':
          return setState(() {
            redirect = "map";
          });
        case 'files':
          return setState(() {
            redirect = "files";
          });
        default:
          return setState(() {
            redirect = "map";
          });
      }
    });
    quickActions.setShortcutItems([
      ShortcutItem(
          type: 'map',
          localizedTitle: "Map",
          icon: Platform.isAndroid ? 'short_map' : 'map'),
      ShortcutItem(
          type: 'file',
          localizedTitle: "Files",
          icon: Platform.isAndroid ? 'short_files' : 'files'),
    ]);

    if (redirect == "map") {
            debugPrint(">> SHORTCUT > MAP");
            Navigator.pushAndRemoveUntil(
              context,
              MaterialPageRoute(builder: (context) => MapPage()),
              (Route<dynamic> route) => false,
            );
            Navigator.of(context).push(_map());
          }
 if (redirect == "files") {
            debugPrint(">> SHORTCUT > FILES");
            Navigator.pushAndRemoveUntil(
              context,
              MaterialPageRoute(builder: (context) => FilesPage()),
              (Route<dynamic> route) => false,
            );
            Navigator.of(context).push(_files());
          }
  }

It is working on Android but on iOS I only get icons.
If I tap on a quick action, it just opens the app but not at the desired page.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.4 21F79 darwin-x64, locale it-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google
    Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.68.1)
[✓] Connected device (1 available)
    ! Device f2c44a6d is not authorized.
      You might need to check your device for an authorization dialog.
[✓] HTTP Host Availability

! Doctor found issues in 1 category.

I'm using the latest version of quick_actions (0.6.0+11)

Hi @giovanni256, you appear to be on an older version of flutter. Kindly upgrade to the latest version of flutter to see if you still experience this issue.
If you do, please provide the updated output of flutter doctor -v as well as a complete minimal reproducible code sample so that we can investigate this.
Thank you

Hi @giovanni256, you appear to be on an older version of flutter. Kindly upgrade to the latest version of flutter to see if you still experience this issue.
If you do, please provide the updated output of flutter doctor -v as well as a complete minimal reproducible code sample so that we can investigate this.
Thank you

Hi there, thanks for your time.
I want to use this Flutter versione because I don't want to use the non-nullable language since I'm still learning Flutter.
Can I do something to avoid that?

Hi @giovanni256, I'm not sure I fully understand your question.
Can you provide a bit more detail?

Yes, sure.
I want to keep the actual 2.10.5 Flutter version because if I upgrade to 3.0.4 I will have to fix a loro of bugs because of the null safety.
In addition I don't understand why the 2.10.5 version should cause this issue since in the changelog Quick Actions supports versions > 2.8

Hi @giovanni256,

I want to keep the actual 2.10.5 Flutter version because if I upgrade to 3.0.4 I will have to fix a lot of bugs because of the null safety.

You will eventually have to upgrade. My recommendation is to do it as early as you can so you don't have more to fix later on. The transition from 2.10 to 3.0 was quite painless, in my experience.

In addition, I don't understand why the 2.10.5 version should cause this issue since in the changelog Quick Actions supports versions > 2.8

There have been instances where the are some improvements in the engine/framework that have fixed issues we weren't aware of (this goes in the other direction too), that is why we usually request that people upgrade to the latest version of flutter so that if it works, you can just continue with your project and not wait for a fix/workaround.
That being said, please provide a complete minimal reproducible code sample so that we can investigate this.
Thank you


use fast base58 encode implementation (20~60% performance gain)

$ go test -bench=. base58/base58bench_test.go
BenchmarkBase58FastEncode-7        	      30	  45674986 ns/op	   0.11 MB/s
BenchmarkBase58SlowEncode-7        	      20	  63573231 ns/op	   0.08 MB/s
BenchmarkBase58FastEncodeSmall-7   	 1000000	      1712 ns/op	  17.52 MB/s
BenchmarkBase58SlowEncodeSmall-7   	  300000	      5336 ns/op	   5.62 MB/s
BenchmarkBase58Decode-7            	     300	   5276054 ns/op	   1.29 MB/s

Hi @rubensayshi
Can you please rebase and fix the Travis CI errors?

And while it's useful for the benchmarks, now that we've seen them, there's no reason to keep the slow implementation around.

Indeed. A FastEncode method is really not necessary. Just replace the existing encode implementation with the fast one.

Thanks for the PR.  As others have mentioned, I'd really prefer just replacing the Encode with the new faster method.  If you would please do that and rebase/squash everything down, I'll get this approved and merged.

@davecgh okay, glad to see it's well received, I'll cleanup the PR ;)

whoops, almost forgot the important stuff!
the implementation is from https://github.com/mr-tron/go-base58 MIT license
how to properly incorperate this?

For the license, you can simply copy it into the source file.

Oh, I didn't realize it had another license.  Everything in btcsuite must be licensed under the ISC license.  Unfortunately, I'm going to have to decline it as is unless you can get permission to relicense it.

@davecgh Isn't the ISC license totally equivalent to the MIT license?

The ISC license is a permissive free software license written by the Internet Systems Consortium (ISC). It is meant to be functionally equivalent to the simplified BSD and the MIT licenses, differing in its removal of language deemed unnecessary following the global adoption of the Berne Convention.

I gave permission special for this project.

@davecgh @mr-tron here is the original author, is that enough or you need some more explicit?

Great.  Thanks @mr-tron.
@rubensayshi Thanks for following up.  The author has provided permission.  That's all we needed.

For those following along: I opened a new PR based on a newer iteration of pretty much the same code. Enc/Dec of b58 addresses is 4+/7+ times faster: https://github.com/btcsuite/btcutil/pull/170#issue-426748886

👍  @ribasushi , I'll close my PR and trust you'll pull yours to the finish line :)

@rubensayshi I am sorry your PR got stuck, not sure why it happened :(
If time permits and you happen to have a more extensive test suite: it would be great if you test the proposed changes a bit more. You know... just to be sure ;)

no worries, it happens and I didn't bother reviving it so it's on me ;)
I don't have any more tests and no longer work with the codebase that was using this either so can't run it through that testsuite sorry


Content type and site mapping can only be extended once

Describe the feature
If a site needs to extend content type or site mapping with extra fields this can only be done once.
Currently you can import the site mapping or a specific content types mapping, modify that to include your extra fields, then register your version instead of the core version.
However this won't be aggregated across sources, by this I mean if you have separate packages (or layers) that both need to extend the site mapping, they won't be merged and only one layer will win.
Motivation
Supporting extending core mapping from multiple sources in case several separate packages need to extend the mapping.
Proposal
Merge additional mapping with defaults, this would mean layer 1 adds mapping which merges with core, then layer 2 can add more mapping which merges with core/layer 1.
Benefits
Core mapping can be extending without having to worry about it being overriden later by another package/layer.
Drawbacks
If we need the ability to remove mapping added from previously layers (or core), we'll need to come up with a good approach to handle this.
Adoption strategy
Document it.
Additional information

[X] Would you be willing to help implement this feature?
[ ] Could this feature be created outside of Ripple-framework as a layer?

Final checks

[X] I have read the contribution guide for information on submitting a feature request.
[X] I have checked the discussions and issues for duplicate feature requests.

Closing as this has been addressed in the PR below, now site and page mapping will be merged instead of overridden.
https://github.com/dpc-sdp/ripple-framework/pull/1099


Views in collection view blocks are not ready to have filters added immediately after creation

ref: https://github.com/jamalex/notion-py/pull/38#discussion_r315471514
After creating and adding a new collection_view to a CollectionViewBlock, one must wait a second or two before setting additional properties such as queries. Attempting to set these properties without waiting throws an error, but does not persist the change.

I was unable to replicate this with the time.sleep(3) commented out, so I'm hoping it's been fixed on the server side. For now, I've removed the sleep in https://github.com/jamalex/notion-py/pull/89 -- if the issue recurs in the new version, please post a code sample here and re-open.


Calculations with decimal places in a cell

Describe the bug
When attempting to perform calculations involving decimal places in a cell, an #ERROR! is returned, indicating incorrect behavior.
To Reproduce
Steps to reproduce the behavior:

Go to the "Demo" page.
Click on a cell to activate it.
Enter the formula "=100*0.8".
See the #ERROR! result.

Screenshots

Expected Behavior:
The calculation "=100*0.8" should yield the correct result without any errors.

sure, we will look into it


Enable weighting of TDE boundary conditions

Add parameters to *_mesh_parameters.json that provide scalar values for setting the weights for the TDE boundary conditions.  This will enable more tuning between smoothing and boundary condition application.
@jploveless What do you think of this?

I think this is very important to implement! I also think that it requires being able to manually set color limits on the plot, to make sure that various weighting factors show the expected influence on the slip distribution.

Sound good. I'll start just by adding reasonable variable names for this to the cascadia mesh file.

The only one of these parameters that is currently used is the one for the bottom BC on each mesh.  That weight is currently applied to all BCs associated with that mesh.  The others are read in but not used for the QP+KL case.  Change?  Also, for the QP+KL case the command.tri_con_weight is not currently used but it could used to pre-multiply all of the individual mesh weights as a sort global scaling


update pubspec dependencies

...in particular the xml package, to avoid conflicts with other popular packages that have updated their dep to v6 and up.
Addresses #5

@f-prime, please consider merging this soon as it conflicts with packages like flutter_svg.
In the meantime, one can use this PR like this:
flutter_app_name:
    git:
      url: https://github.com/qixotic/flutter_app_name

Any updates on this ?


[Fixed #4933] - App viewer will not be able to export app

Description
Added a condition to hide export option for members with appViewer permission.
Fixes # (issue)
#4933
Type of change

Bug fix (non-breaking change which fixes an issue)

Test coverage results :test_tube:
:white_circle: Total coverage has not changed
No changes to code coverage between the base branch and the head branch

/ok-to-test sha=64bbcd3


enable openmp parallel with cython; always return latlon with Proj

[x] Closes #364 #356
[x] Tests added
[x] Fully documented, including history.rst for all changes and api/*.rst for new API

Does not appear to be stable. Tests pass on my machine. Depending on OS, it seems different tests fail ...

First, only one failed on windows .. then 3 fail.

Making it optional to enable with default being off. Added warning to docs about instability & being experimental.

Cool! Thanks for working on this
Do you have any idea why it is even failing on linux? (that seems like the minimal OS to have it working?)
Do you plan to test it with conda-forge?

Some feedback on the Transformer: in contrast with the geodesic and Proj functions, here it is not the actual PROJ call that is parallelized, but only the possible conversion to/from radians (since the actual PROJ call already works on an array level, so the loop does not happen in the pyproj cython code). Did you do any benchmark to see if this part is actually significant in the overall performance?
Because if it is not, I am not sure adding the prange in that case is necessarily beneficial. Actually, when using eg dask to parallelize this, having it spawn multiple threads when the bulk is operating in a single thread anyway might even slow down things (not an expert here, only guessing).
To be clear, making those nogil is still essential for those. But so in practice, it might be that ensuring that the bulk of the operation (the actual PROJ call to proj_trans_generic, assuming this is the bulk) is behind a nogil call is more important (I am not sure this is currently the case?) when trying to speed up this operation (eg in a dask / geopandas setting).

Do you have any idea why it is even failing on linux?

I am not entirely sure. It seems like I am completely missing something. The behavior is inconsistent. Sometimes it works and sometimes it doesn't.

Do you plan to test it with conda-forge?

I think I will wait until it is stable. It is off by default because it is unstable. Maybe in a future iteration.

Transformer

I was planning on digging deeper into this later. Probably open up some issues. One idea was to re-create proj_trans_generic in cython with a parallel call. It would be very similar to PROJ.
Also, good point about the nogil. More functions could probably use them.
This is the beginning stage to hopefully bring it some thought/ideas after some people try it out in various scenarios. The orange can take in the num_threads argument. It might be nice to expose that. But, I was thinking about waiting to expose those until it was more stable.

Reason for instability is that only one thread can use a PJ* at a time. https://github.com/OSGeo/PROJ/blob/f567ee4b8739505716cbb000093d78678a97b170/src/iso19111/c_api.cpp#L338

Ah, that's a good reason ...
Do you know if there is an issue or discussion on the PROJ side about thread safety? Otherwise it might be worth opening one? (unless they already decided it is out of scope)
I think keeping some of the nogil parts of the code is still useful as I mentioned above, will open an issue for that.


getChannels review

The initiation of this review is to allow to use *Dao when getting the channels to propagate alterations

fix #180


For next iteration of the course (June 2023) , add this piece of code into the script day1_code.R

add this piece of code into the script day1_code.R
change  class of these three vectors to factor
snps$chr <-factor(snps$chr)
snps$minor <-factor(snps$minor)
snps$major <-factor(snps$major)
it should go after the summary( snps ) command

code added to the files. Thanks.


CopyBufInto should attempt to write whenever the buffer is !empty

CopyBufInto::poll will exit immediately if poll_fill_buf returns Pending, when it should instead also attempt to write the buffer if it exists and only return Pending if the buffer is empty or both return Pending.

I can take a look at fixing this tomorrow.

The current implementation appears correct to me. AsyncBufRead::poll_fill_buf must only return Pending if the buffer is empty, it should attempt to pull more data into the buffer if it is available, but even if it doesn't it should return Ready with the same data as was available the last time.

Good point, I misread the docs of poll_fill_buf, and checking on the source says you're correct.


[WIP] Initial support for reserving multiple blocks during writing

WIP - Please review and comment only, DO NOT MERGE
This change has not yet been performance tested and is merely presented as a way to gather feedback on the proposed approach.
Approach
When the block size is smaller than the file size the write performance
can be significantly reduced because the client keeps having to go back
to the master to obtain new block IDs.  This commit adds a framework for
allowing users to configure reserving multiple blocks at a time.  When
configured the client will reserve N blocks in a single request to the
master and won't need to go back to the master until those N blocks are
used up.
If the client ends up needing less blocks than were allocated the extra
blocks are cancelled when the write is completed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/2929/
Test FAILed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/2931/
Test PASSed.

Could you open a JIRA ticket for this please?

If you have benchmarked the improvement this feature brings, could you please provide the results? Thanks!

No haven't had chance to benchmark yet, just wanted to get feedback on whether the basic approach looked sane

Oh okay, the reason I ask is because if the primary motivation behind this feature is to increase performance, it would be good to do some kind of sanity check to see that it does give good results to avoid doing a lot of work for little gain.

Yes obviously the next step is to benchmark this proposed change and see if and how this improves performance

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/4974/
Test PASSed.


Tensorflow dependency

Thanks for this very useful package! It helps me a lot in several projects and I'd like to use it for several others, but a very big downside is the dependency on tensorflow. Looking at the code, it seems to be only used very sparingly, and it would be amazing if tensorflow would no longer need to be a dependency, or an optional dependency otherwise.

The TensorFlow dependency is intentional since we aim to reuse the parsing logic in TensorFlow/TensorBoard. (less error-prone, especially for images and audio)
If your training code uses a different version of TensorFlow, you can isolate your parsing/plotting code in another virtual environment to avoid dependency conflict.
I wonder if you have any special use case that must not use TensorFlow as a dependency?

Thanks for your quick answer! While we could include tensorflow as a dependency, IMO keeping dependencies to a minimum is good practice. In this case especially, since tensorflow is huge! Using pytorch (or jax, ...) but then having to install the entirety of tensorflow just for parsing of logs is quite undesirable and not something I can sell to my team..,.

I got your point, I overlooked the size of the tensorflow package. (since it's cached on my machine)
I agree that tensorflow is huge (400+MBs), and so is the tensorflow-cpu package (200+MBs). Moreover, there isn't a simple way to only depend on either tensorflow or tensorflow-cpu, which means that if tensorflow-cpu is already installed, the tensorflow package will still be downloaded.
As you have mentioned, the best solution is to remove all TensorFlow operations and only depend on tensorboard (5.8 MBs), or make TensorFlow an optional dependency when parsing images and audio.
Removing all TensorFlow operations isn't a trivial task, and may not be preferred when supporting more event types in the future. Maybe it's better to make TensorFlow an optional dependency, which only requires modifying this line.
I may try to implement this during my free time (hopefully within a few weeks). Meanwhile, you may need to put up with the large size of TensorFlow.

This issue is resolved in<PHONE_NUMBER>a1e2052ec77887bac1d385dca5fef0, and fixed in the latest release (v0.0.7) on PyPI.
Please follow the following document for using tbparse without TensorFlow:
https://tbparse.readthedocs.io/en/latest/pages/installation.html#tbparse-installing-without-tensorflow

Thanks, this is very helpful!


refactor: move removal of lm_head to save method

Description of the change

Utilize the removal of duplicated lm_head weight in granite models with llama arch in sft_trainer instead of just in accelerate_launch script. Removal of lm_head weight still occurs in the save_model_dir OR the last checkpoint.
Now on call to sft_trainer.save() the lm_head weight will automatically be removed
No longer need to reload the checkpoint to remove lm_head

Related issue number

How to verify the PR

Currently testing
Was the PR tested

[ ] I have added >=1 unit test(s) for every new method I have added.
[ ] I have ensured all unit tests pass

will close in favor of PR: https://github.com/foundation-model-stack/fms-hf-tuning/pull/333


Windows: Fix vendor-helpers.sh

Signed-off-by: John Howard<EMAIL_ADDRESS>@tianon - oopsies got carried over in the SQLite PR.

:heart: LGTM
(thanks for taking care of it!)

LGTM


Bump uber/athenadriver.

Fixes #447

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


no jira: javadoc:aggregate seems to work locally

The only issue I'm observing so far: All links to JDK classes points to Java8 API .....

If this fixes the javadoc issue then you could use WICKET-6884 in the title

The result of mvn clean deploy javadoc:aggregate-no-fork can be checked here: https://ci-builds.apache.org/job/Wicket/job/wicket-9.x/javadoc/


Error when trying to upgrade rails admin from 2.0.2 to 3.0.0.beta

Describe the bug
Hello! 👋
I'm getting an error when trying to run the generator to migrate to rails_admin 3.0.0.beta with rails <IP_ADDRESS> and ruby 2.7.4.
          ?  Where do you want to mount rails_admin? Press <enter> for [admin] > admin
       route  mount RailsAdmin::Engine => '/admin', as: 'rails_admin'
      insert  config/initializers/rails_admin.rb
           -  Using [webpacker] for asset delivery method
Traceback (most recent call last):
        19: from bin/rails:4:in `<main>'
        18: from bin/rails:4:in `require'
        17: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/railties-<IP_ADDRESS>/lib/rails/commands.rb:18:in `<top (required)>'
        16: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:46:in `invoke'
        15: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/railties-<IP_ADDRESS>/lib/rails/command/base.rb:69:in `perform'
        14: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
        13: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
        12: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
        11: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/railties-<IP_ADDRESS>/lib/rails/commands/generate/generate_command.rb:26:in `perform'
        10: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/railties-<IP_ADDRESS>/lib/rails/generators.rb:276:in `invoke'
         9: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
         8: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor/group.rb:232:in `dispatch'
         7: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `invoke_all'
         6: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `map'
         5: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `each'
         4: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor/invocation.rb:134:in `block in invoke_all'
         3: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
         2: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
         1: from /home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/rails_admin-3.0.0.beta/lib/generators/rails_admin/install_generator.rb:26:in `install'
/home/ubuntu/.rvm/gems/ruby-2.7.4@ark/gems/rails_admin-3.0.0.beta/lib/generators/rails_admin/install_generator.rb:51:in `configure_for_webpacker5': uninitialized constant RailsAdmin::Version (NameError)

Reproduction steps

Have rails_admin installed in version 2.0.2 ( gem 'rails_admin', '~> 2.0.2' in Gemfile).
Change rails_admin to version 3.0.0.beta.
Run bundle update rails_admin.
Run bundle exec rails g rails_admin:install

Expected behavior
I expect to have a rails_admin.rb initializer with the updated values for 3.0.0.beta.
Additional context

rails version: <IP_ADDRESS>
rails_admin version: 3.0.0.beta
full stack trace (if there's an exception)

Add any other context about the problem here.

After manually editing lib/generators/rails_admin/install_generator.rb yo not use the rails_admin version constant, yarn ask me to select 3.0.0.beta or 3.0.0.alpha so I'm not sure if the gem really needs to depend on that.

Thanks for reporting, just pushed the fix. Could you try with the master branch?
gem 'rails_admin', github: 'railsadminteam/rails_admin'

working as expected 😀


[FEATURE]: We are trying to integrate conductor with oracle nosql/mongo db, Is it already done by  someone OR if you can refer some articles on same

Please read our contributor guide before creating an issue.
Also consider discussing your idea on the discussion forum first.
Describe the Feature Request
A clear and concise description of what the feature request is.
Describe Preferred Solution
A clear and concise description of what you want to happen.
Describe Alternatives
A clear and concise description of any alternative solutions or features you've considered.

@Viky-Viky its possible, check the implementations for mysql or postgres.  However, mongo might not be the best backend for Conductor - We use Redis + Postgres for some of hour high performance low latency installations.  Happy to chat more.


Update deps for v1.10

Signed-off-by: Paul S. Schweigert<EMAIL_ADDRESS>Don't merge until the current release is done
/hold

/lgtm
/approve
We've cut all the branches now.
This should turn releasability red when it propagates to the different repos.

All the release tasks are done
/hold cancel


Cannot get values on multiple grid

I am having an issue with Custom type. I am using the code from the Custom Type example. The problem is when I click fast on the up or down on the spinner control, I get an error popup "Cannot get values on multiple grid".  When I click slowly there is no problem. Here is the code I am using:
$('#btnGetValue').button().click(function () {
// Get the row count
var rowCount = $('#tblAppendGridSurvey').appendGrid('getRowCount');
// Check the number of row in grid
if (rowCount <= 1) {
alert('Warning: Row 2 is not found');
} else {
// Row index is start from 0. So, index=2 means the second row
alert($('#tblAppendGridSurvey').appendGrid('getCtrlValue', 'Perc_time', 1));
}
});
I have no idea where that error is coming from.
I am also not seeing the up or down arrows as you can see on these spinners.

Hi richb201,
The "Cannot get values on multiple grid" message will be displayed when there are multiple table elements returned by jQuery. I can see your are using ID as selector so it should not happened.
After checking the source code, I guess one of the possibility to trigger this message is $('#tblAppendGridSurvey') cannot be selected by jQuery. For example, it is removed from DOM.
Alternatively, it may be a good choice to use "change" instead of "spin". I guess it will solve the time issue since "change" event will trigger one time only but "spin" will be triggered multiple time as user clicked on the up/down button.
For the missing up/down arrows, it may due to incorrect image path or CSS classes overridden by other frameworks. You may put a testing input element on the same page and initialize it as Spinner to check the arrows are there or not.
Hope it can help. Thanks!


I can't seem to start a collaborative session in offline mode and go online after the fact.

Hi, I'm trying to use slate-yjs to see how things can work, and I'm using y-websocket to test things out. I'm having trouble with the initial setup of the editor+slate-yjs. The problem seems to be that withYjs requires a sharedType and while shareType is ok with  a [] initial value, the slate editor is not (i.e. an empty document is actually a single block with an empty text node).
So these are the steps I take

Get the current value of my document (from storage) - if it's a new document and doesn't exist, set the value to the emptyDocument
Initialize a sharedType with Y.Doc.getArray
Initialize a provider with new WebsocketProvider which requires the doc and also sets the "slug" for the doc
Create the editor with withYjs which requires the sharedType

Then I have a useEffect that is dependent on provider that sets the events on the provider (sync and status) and:

Calls toSharedType with the current value of the document.

The problem is at the very start. User A stars a document with slug X and User B starts a document with slug X. If this document does not exist in storage it will be given the empty slate doc, which is:
{
  type: 'paragraph',
  children: [{text: ''}],
}

And this will be what is called with toSharedType
And when User B comes in, they also get the empty document. Now when they both go online, the sharedType is updated with two empty documents and becomes this:
[{
  type: 'paragraph',
  children: [{text: ''}],
},
{
  type: 'paragraph',
  children: [{text: ''}],
}]

If I do not call toSharedType on an initial empty document, then the slate editor does not work and i get
react-editor.ts:458 Uncaught Error: Cannot resolve a Slate point from DOM point: [object HTMLDivElement],0
    at Object.toSlatePoint (react-editor.ts:458)
    at Object.toSlateRange (react-editor.ts:516)
    at HTMLDocument.<anonymous> (editable.tsx:422)
    at invokeFunc (debounce.js:95)
    at leadingEdge (debounce.js:105)
    at HTMLDocument.debounced (debounce.js:172)

Any help here would be awesome!

Hi Ali,
you can solve this 2 ways, either by initializing the document server-side with a custom y-websocket server like here: https://github.com/BitPhinix/slate-yjs-example/blob/306364182f24414503c08d0fdbb412f649417696/server/server.ts (the code is using an old version of slate-yjs but it should be almost identical)
Or, in a very hacky way client-side like in the example project here: https://github.com/BitPhinix/slate-yjs-example/blob/d8be483453e9f5968c6ed0013f56478048e2e3aa/src/Client.tsx#L79
Hope this helps!

Sorry, didn't read the offline part in the title. Not sure about that one tbh, you should ask about providing an initial value for offline clients in https://discuss.yjs.dev/ (Kevin, the creator of yjs is super active there and hopefully can answer your question)

Ah ok. Thanks! Will probably ask there then 🙇

For reference: https://discuss.yjs.dev/t/initial-offline-value-of-a-shared-document/465


[View event preview card] System doesn’t redirect to Event details page, when user clicks on the button “Join event”

Environment: Windows 11 Home 22H2, Opera One(version: 108.0.5067.29
Reproducible: always.
Build found: 02.04.2024
Steps to reproduce

Go to the Website  https://www.greencity.social/#/greenCity .
Sign in as a user
Click on the button "Events".
Click on the "Join Event" button

Actual result
System doesn’t redirect user to the  Event details page and shows the same page.
Expected result
System redirects User to  Event details page.
User story and test case links
E.g.: "User story #3374,  #5006
[Test case] https://jira.softserve.academy/browse/GC-9096
Labels to be added
"Bug", Priority ("pri: "), Severity ("severity:"), Type ("UI, "Functional"), "API" (for back-end bugs).

not a bug


⚠ PrivateHD has degraded performance

In d0632fb, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 2123 ms

Resolved: PrivateHD performance has improved in 5d8bbf0.


Add medals for alpha testers, beta testers and beta players

Also add ex-tester for people who join testing team after release then leave


🧪 Unit Test Creation for MTA-STS

User Need
As a software engineer working in the Operations Engineering team,
I want to have comprehensive unit tests for the "check_mta_sts.py" file in the repository /ministryofjustice/bin/check_mta_sts.py,
so that we can ensure the script's functionality remains intact and maintainable
Value
Adding comprehensive unit tests to the bin/check_mta_sts.py script will provide confidence in its correctness and help catch any regressions introduced by future modifications. This will contribute to maintaining a reliable email security service by ensuring the integrity of the MTA-STS (SMTP MTA Strict Transport Security) configuration checks for the specified domains.
Functional Requirements:

Wrap the contents of the "check_mta_sts.py" script in a function to facilitate unit testing.
Create a new test file to house the unit tests for the "check_mta_sts.py" script.
Write unit tests to cover the core functionality of the script.
Ensure that the unit tests cover edge cases and potential failure scenarios.

Non-Functional Requirements:

The unit tests should be maintainable, readable, and follow best practices and coding standards.
The test suite should have high coverage and be easily extendable.
The addition of unit tests should not negatively impact the performance of the script.

Acceptance Criteria:

The "check_mta_sts.py" script is wrapped in a function to enable unit testing.
A new test file is created to contain the unit tests for the "check_mta_sts.py" script.
Unit tests are written to cover the core functionality of the script, including domain checks, error handling, and edge cases.
The unit tests pass successfully, verifying the correctness of the script's behaviour.
The changes are reviewed by a member of the Operations Engineering team to ensure code quality and adherence to team standards.

Notes:

https://github.com/ministryofjustice/operations-engineering/commit/f2a0d83012466e50269fbd7ccac56148799cf985

https://github.com/ministryofjustice/operations-engineering/pull/4542

https://github.com/ministryofjustice/operations-engineering/pull/4546/files

https://github.com/ministryofjustice/operations-engineering/pull/4546

https://github.com/ministryofjustice/operations-engineering/compare/main...unitest

https://github.com/ministryofjustice/operations-engineering/pull/4571/files

https://github.com/ministryofjustice/operations-engineering/pull/4571/files

https://github.com/ministryofjustice/operations-engineering/pull/4571/files

https://github.com/ministryofjustice/operations-engineering/pull/4571


Patch bootscript

Using scaleway_cli, how can i change bootscript because my server can't load iptables.
uname -r = 4.8.3-std-1
ls -l modules = drwxr-xr-x 3 root root 4096 Sep 26 07:29 4.4.4-std-3/
Folder 4.8.3 is not present in /lib/modules
And iptables :
iptables -L = iptables v1.4.21: can't initialize iptables table filter': Table does not exist ...`

Hi @WonderWheel,
Can you try to fetch the modules with scw-sync-kernel-modules && depmod -a and retry your iptables command.

Perfect, problem solve !


Add community standards

We would want to meet all community standards
Reference - https://github.com/sratslla/MorseCode/community

@sratslla can you add the description for the repository?

Done!


Cached commit offsets can become stale and cause record replay after group rebalance

Thanks for this useful library.
We're using the Akka actor consumer for a consumer group comprised of 6 servers consuming from a 3-partition topic in auto-commit mode. and were having a mysterious problem after rolling consumer restarts: sometimes 1 or more of the consumers would start re-consuming old records from their partition. After digging through the logs we found a smoking gun:
2020-02-06 22:11:30.912 - - INFO c.k.a.TrackPartitionsCommitMode .. Seeking partition: [mytopic-0] to offset [94143]
2020-02-06 22:11:30.912 - - INFO c.k.a.TrackPartitionsCommitMode .. Seeking partition: [mytopic-1] to offset [94158]
2020-02-06 22:11:30.912 - - INFO c.k.a.TrackPartitionsCommitMode .. Seeking partition: [mytopic-2] to offset [74342]

Each of the partitions have approximately the same number of records and the consumers are generally caught up, but as we see above after the rebalance the partition 2 consumer was told to start consuming ~20k records back in the history (offset 74k instead of 94k).
Looking into how TrackPartitionsCommitMode handles rebalancing (partition revocation and assignment), I found the problem: the optimization it attempts to do for cases when the consumer is re-assigned the same partitions -- wherein it locally caches the current offsets upon revocation and restores them via seek after assignment -- fails to clear the cache in the case the revoked partition set is empty. Thus if a consumer owns a given set of partitions, then rebalancing hands it an empty set of partitions, then a later rebalance hands it the original set of partitions again, it tells the client to seek to the stale cached offsets and resume from there. In our case the cached offsets were almost a week old which is how they were 20k records behind.
It's an easy fix, but the larger question for me is whether this attempted optimization even achieves anything in the happy path? From what I can tell in that case it just asks Kafka for the current offsets upon revocation, then tells it to seek to those after assignment, which is what Kafka would have done anyway in auto-parition mode. How is it any different or what does it yield in savings?
Given this in the upcoming PR I've provided both a fix to TrackPartitionsCommitMode and a variant TrackPartitionsCommitModeBasic which does away w/ the whole caching business.

It's been a while since i coded this, but i think the main purpose of this optimisation was to prevent repartitions causing unnecessary message redeliveries.  The Kafka driver is designed for synchronous polling from a single thread, which doesn't play well with our approach of using multiple threads.


WX_KEY_EXCEPTION_SDK_INIT_JSFM_INIT_FAILED，显示空白

在ios上运行,看到log错误:[error]WXMonitor.m:250, [WX_KEY_EXCEPTION_SDK_INIT_JSFM_INIT_FAILED] script don't exist:(null)，显示空白。

me too !!
WeexDemo[42071:9139198] [error]WXMonitor.m:250, [WX_KEY_EXCEPTION_WXBRIDGE] [undefined:4507:47] ReferenceError: Can't find variable: document
webpack_require
webpack_require
webpack_require
webpack_require
webpack_require
webpack_require
webpack_require
webpack_require
webpack_require
webpack_require
webpack_require
anonymous
native-bundle-main.js:1:40926
createInstance@native-bundle-main.js:1:40937
native-bundle-main.js:1:255299
2018-06-09 03:08:06.445066+0800 WeexDemo[42071:9140131] [] nw_connection_get_connected_socket 1 Connection has no connected handler
2018-06-09 03:08:06.447359+0800 WeexDemo[42071:9140131] TCP Conn 0x60400016e100 Failed : error 0:60 [60]
fire

This PR/issue doesn't received response since Weex migrated to Apache two years ago and this repository is no longer active yet.
Feel free to ask question in new repository and thanks for your contribution.

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.


Regarding to obtaining  F1, precision and recall from generate_ROC.py

from tpr and fpr how to obtain  F1, precision and recall? thanks in advance.

Hi @cervantes-loves-ai,
These are two lists with values corresponding to the threshold values. Thus you have 2 options:

You firstly specify a threshold value and then for each element decide whether it belongs to the positive class or the negative class. After that, you can use library functions like sklearn.metrics.recall_score for computing the desired metric.
For a pair of tpr, fpr you can calculate TP,FP,FN, TN by:

tp = tpr * p
fp = fp * n
tn = (1-fpr) * n
fn = (1 - tpr) * p

There you have all the values for recomputing the f1-score or our metrics as you want, using the original formulas.

thank you for your quick reply
one thing
what will be positive samples and negative samples in generate_ROC.py?

Positives are frames that contain an anomaly


SvMap: portal Faction is parsed incorrect

Describe the bug
There is implementation of faction for SvMap:
public class Portal : IBinary
{
        public Vector3 Position { get; set; }
        public FactionInt Faction { get; set; }
        ...
}

public enum FactionInt
{
        Light,
        Fury,
        Any
}

The problem is that for portals Light has value 1 and Fury has value 2. And if value is > 2, then portal is activated with boss death.
Expected behavior
Rethink how portal faction is parsed.
Screenshots
Can be easily checked for map № 2 (start Fury map):

Or with map № 50 (GBR map), portal is opened on boss death:

that id is also used by the invasion system. the client expects certain ids to be sent in packets for the notices (see sysmsg-uni.txt) to work correctly. here's the Obelisk.ini configuration for reference.
`ini
;Deep Desert
[Portal_001, (0, 1010) ]
[light] = (0,Obelisk_001),(0,Obelisk_002),(0,Obelisk_005)
[Portal_002, (0, 1020) ]
[fury]  = (0,Obelisk_003),(0,Obelisk_004),(0,Obelisk_005)
;Stable Erde
[Portal_003, (0, 1011) ]
[light] = (0,Obelisk_001),(0,Obelisk_005),(0,Obelisk_006)
[Portal_004, (0, 1021) ]
[fury]  = (0,Obelisk_004),(0,Obelisk_005),(0,Obelisk_007)
;Kanos Illium
[Portal_001, (70, 1060) ]
[light] = (70,Obelisk_001),(70,Obelisk_002),(70,Obelisk_003)
[Portal_002, (70, 1061) ]
[fury]  = (70,Obelisk_001),(70,Obelisk_002),(70,Obelisk_003)
`
i think it should just be an integer number without any kind of enumeration.

You're right Anna. Thank you for your input. This was fixed in Bowie's latest PR which he linked above.


why createNotificationChannel is not in index.d.ts?

react-native-fcm: 16.1.0
i had a problem in android 8 which didn't receive push notification. it worked when i sent the "channel":"default" from server. i found somewhere that this method is needed in client side:
FCM.createNotificationChannel({
            id: 'default',
            name: 'Default',
            description: 'default',
            priority: 'high'
 });

now its working fine but why is it deleted from the index.d.ts?

just missed it. will add


Limit this fix to apple clang only

Use "apple_build_version" macro to distinguish Apple's Clang while brew installed LLVM will compile caffe2 without trouble.

Thanks so much!


bad design

When you need to lookup functionality, instead of trying keyboard shortcuts one by one, searching around text of file is more efficient

Okay, there's an input box to filter out shortcuts by description


URL is needed

My play Sound lib require real path (/storage/emulated/0/appiwell/music/abc.mp3) but Document picker return content://com.android.providers.media.documents/document/audio%3A11649 and I am being blocked here.

Duplicate of #70
Android's DocumentPicker rightly returns a DocumentProvider URI, not a file, since it is not your file. If you absolutely need a file, you'll have to fetch the data and save it to one of the folders your app has access to (some data folder, or cache/temp forlder). RNFS may be useful for the latter part of deciding where to save it and saving the data.


[FEATURE] Collapsible Node Boxes

See: https://github.com/FlowiseAI/Flowise/issues/1373
Double click over the box header to collapse.

thanks @eleonel for the PR! will review and give feedback in these few days.


Unify and minimize tester boilerplate

I started using this one-line boilerplate a while back and it seems to tidy things up a bit.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @paulmelnikow!

:book:

Thanks for contributing to our documentation. We :heart: our documentarians!

  Generated by :no_entry_sign: dangerJS


Better feedback

￼No speak on background functions
Only speak on user interaction
Using format not %

Thank you, I will merge these changes with the ones I've made in the improved-logging branch

Did this all get included in that branch?  Shall we close this PR?

Fine with me.


Grid boxsizing polyfill error

There is an error in main.less: @grid_box-sizing-polyfill-path: "/cfgov-refresh/static/vendor/box-sizing-polyfill"; should be @grid_box-sizing-polyfill-path: "/static/vendor/box-sizing-polyfill";
Reported by @himedlooff

@anselmbradford did this get fixed with #499 changes?

Appears to have been fixed in https://github.com/cfpb/cfgov-refresh/commit/99252f0d60c3d57b963f94e4e941d5bbbb762245#diff-087eea46a52d1a7e1e93f584045979f4R136


enlarge default batch points for influxdb to 2w

This PR will enlarge default batch points for influxdb from 10000 to 20000. As for our usage, for 10000 data points, the post body size is almost 1.5MB. When the Kubernetes cluster is large enough, sequential sendData invoke will take more roundtrip to send all data points to InfluxDB.
It should be fine to enlarge default batch points for influxdb from 10000 to 20000, the post body data size is almost about 3MB which should be ok for InfluxDB to handle this.
/cc @DirectXMan12 @loburm

This change is


(maint) More rubocop improvements

Sort disabled cops by group/name so it's easier to visualize the important Lint cops vs less important Style cops. Remove some unneeded exclusions, and fix LiteralInInterpolation cop.

CLA signed by all contributors.

Needs more work, going to close this and reopen later


How to Abort a Multipart Upload Request.

Hey @adam-fowler, days ago you help me to understand how to upload with multipart. #308
This time, I want to understand how to cancel that upload. I know there is a function AbortMultipartUploadRequest, but it requires an uploadId and in don't know how to get that uploadId using your previous solution.
What is the best way to cancel the multipart upload?
I appreciate any help.

You can throw an error from the progress closure, to quit the upload. This will do all the clean up for you

Hey, thanks again. That was just what I needed!


Develop Diary Bot

Diary Bot
An optional component bot of the Memory Bot Team, the Diary Bot will be an assistant bot that helps members process their innermost thoughts in productive ways. While not limited to privacy, it is paramount in this intelligence by default. It is assumed to be used by ages 15 and up, with likely transition through several evolving journalers to match adulthood and identity.
Specifications

[ ] Options

[ ] level of detail in summary
[ ] interests
[ ] flags topics or content, member-indicated
[ ] notifications (tbd)
[ ] privacy/vault/locked
[ ] age range? clickable bar
[ ] tone (cheerful, not-so-much, fun to click  would think and watch the change; on tone change, fire off request to rephrase recent dynamic greeting in new variant, mindful and useful of any intermediary dialog?)
[ ] personality (+gender, etc)
[ ] tags/keywords/relationship search

[ ] Summary Instructions Defaults

[ ] ability to disguise names (personally encrypt by member?) [or more simply, E. did this, etc.
[ ] general categorization
[ ] Member-driven tagging/categorization
[ ] rethink (as disguise) how to better handle relationships array, perhaps BY RELATIONSHIP that is member-defined or inferred (i.e., friend, close friend, new friend, sibling, ...?)
[ ] mood dynamic categorization (unexposed, note to privacy doc, also exempt user, that is a build)

[ ] Functionality

[ ] entrySummary [add/update]
[ ] dynamic greeting
[ ] setup - instructions
[ ] analysis

[ ] define JSON alterations to package
[ ] backend

[ ] privacy alterations (less visible to avatar, setting to only share with you, not "avatar", might be general best practice)

[ ] interface

[ ] designed for younger adults
[ ] higher privacy requirement
[ ] "Give me a suggestion..." "where did we leave off?" button(s)

Dev Day One

[ ] instructions, yadda

Specifications for Day One

build instructionset and test against requests (no backend functionality)
test public GPT

Successes and failures to handle requests
Open-forum like this is one of the ways we test

Session two

[ ] dynamic knowledge: actions and functions
[ ] openai schema for api
[ ] register Diary Bot instance
[ ] server environment variables (NO SHOW)
[ ] simple authentication on member end
[ ] test against MyLife platform data
[ ] prototype draft proofed!

Original Specifications

[ ] Options

[ ] level of detail in summary
[ ] interests
[ ] flags topics or content, member-indicated
[ ] notifications (tbd)
[ ] privacy/vault/locked
[ ] age range? clickable bar
[ ] tone (cheerful, not-so-much, fun to click  would think and watch the change; on tone change, fire off request to rephrase recent dynamic greeting in new variant, mindful and useful of any intermediary dialog?)
[ ] personality (+gender, etc)
[ ] tags/keywords/relationship search

[ ] Summary Instructions Defaults

[ ] ability to disguise names (personally encrypt by member?) [or more simply, E. did this, etc.
[ ] general categorization
[ ] Member-driven tagging/categorization
[ ] rethink (as disguise) how to better handle relationships array, perhaps BY RELATIONSHIP that is member-defined or inferred (i.e., friend, close friend, new friend, sibling, ...?)
[ ] mood dynamic categorization (unexposed, note to privacy doc, also exempt user, that is a build)

[ ] Functionality

[x] changeTitle (placeholder)
[x] entry (create)
[ ] obscureEntry (placeholder)
[ ] obscureRelationships (placeholder)
[x] updateEntry (placeholder)
[ ] dynamic greeting
[x] setup - instructions
[ ] analysis

[ ] define JSON alterations to package
[ ] backend

[ ] privacy alterations (less visible to avatar, setting to only share with you, not "avatar", might be general best practice)

[ ] interface

[ ] designed for younger adults
[ ] higher privacy requirement
[ ] "Give me a suggestion..." "where did we leave off?" button(s)


Use --release compiler argument for java version

This makes use of the more modern --release compiler argument in place of the older -source and -target arguments

Is there a reason for this not to configure the maven compiler plugin?