Circular dependencies between consul and mongodb health contributor

Description
If consul heartbeat it's configured to use actuator health(the default configuration) and we have some mongo repositories on classpath a circular dependency it's created between them:
The dependencies of some of the beans in the application context form a cycle:

   apiController (field private com.sample.service.ReactiveAutenticationService com.sample.controller.ApiController.reactiveAutenticationService)
      ↓
   reactiveAuthenticationServiceImpl (field private com.sample.repository.AccountRepository com.sample.service.ReactiveAuthenticationServiceImpl.accountRepository)
      ↓
   accountRepository defined in com.sample.repository.AccountRepository defined in @EnableReactiveMongoRepositories declared on ApplicationEntryPoint
┌─────┐
|  reactiveMongoTemplate defined in class path resource [org/springframework/boot/autoconfigure/data/mongo/MongoReactiveDataAutoConfiguration.class]
↑     ↓
|  mappingMongoConverter defined in class path resource [org/springframework/boot/autoconfigure/data/mongo/MongoReactiveDataAutoConfiguration.class]
↑     ↓
|  mongoMappingContext defined in class path resource [org/springframework/boot/autoconfigure/data/mongo/MongoDataConfiguration.class]
↑     ↓
|  consulAutoServiceRegistrationListener defined in class path resource [org/springframework/cloud/consul/serviceregistry/ConsulAutoServiceRegistrationAutoConfiguration.class]
↑     ↓
|  consulAutoServiceRegistration defined in class path resource [org/springframework/cloud/consul/serviceregistry/ConsulAutoServiceRegistrationAutoConfiguration.class]
↑     ↓
|  consulServiceRegistry defined in class path resource [org/springframework/cloud/consul/serviceregistry/ConsulServiceRegistryAutoConfiguration.class]
↑     ↓
|  ttlScheduler defined in class path resource [org/springframework/cloud/consul/support/ConsulHeartbeatAutoConfiguration.class]
↑     ↓
|  actuatorHealthStatusProvider defined in class path resource [org/springframework/cloud/consul/support/ConsulHeartbeatAutoConfiguration$ActuatorBasedApplicationStatusProviderConfig.class]
↑     ↓
|  healthEndpoint defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]
↑     ↓
|  healthContributorRegistry defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]
↑     ↓
|  mongoHealthContributor defined in class path resource [org/springframework/boot/actuate/autoconfigure/data/mongo/MongoReactiveHealthContributorAutoConfiguration.class]
└─────┘

If spring.cloud.consul.discovery.heartbeat.use-actuator-health it's set to false then the dependency chain it's broken and everything works.
Sample
Please check the repository here
Versions
Spring boot: 3.1.5
Spring cloud: 2022.0.4
Java: 17

Another "solution" is to remove the Mongo health. e.g.: when using spring-boot-starter-data-mongodb-reactive

@SpringBootApplication(exclude = MongoReactiveHealthContributorAutoConfiguration.class)
public class MongoStorageApplication


更详细的环境配置信息

您好，我下载了代码并安装了相应的包，但是还是无法直接运行。请问有更详细的环境配置信息吗，比如python版本，cuda版本。
Traceback (most recent call last):   File "/home/tianpengfei1/Time-LLM/run_main.py", line 132, in <module>     model = TimeLLM.Model(args).float()   File "/home/tianpengfei1/Time-LLM/models/TimeLLM.py", line 53, in __init__     self.llama = LlamaModel.from_pretrained(   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/site-packages/transformers/modeling_utils.py", line 2256, in from_pretrained     quantization_config, kwargs = BitsAndBytesConfig.from_dict(   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/site-packages/transformers/utils/quantization_config.py", line 189, in from_dict     config = cls(**config_dict)   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/site-packages/transformers/utils/quantization_config.py", line 118, in __init__     self.post_init()   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/site-packages/transformers/utils/quantization_config.py", line 144, in post_init     if self.load_in_4bit and not version.parse(importlib.metadata.version("bitsandbytes")) >= version.parse(   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/importlib/metadata.py", line 569, in version     return distribution(distribution_name).version   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/importlib/metadata.py", line 542, in distribution     return Distribution.from_name(distribution_name)   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/importlib/metadata.py", line 196, in from_name     raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: bitsandbytes ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 9021) of binary: /home/tianpengfei1/anaconda3/envs/llmtime/bin/python Traceback (most recent call last):   File "/home/tianpengfei1/anaconda3/envs/llmtime/bin/accelerate", line 8, in <module>     sys.exit(main())   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/site-packages/accelerate/commands/accelerate_cli.py", line 45, in main     args.func(args)   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/site-packages/accelerate/commands/launch.py", line 932, in launch_command     multi_gpu_launcher(args)   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/site-packages/accelerate/commands/launch.py", line 627, in multi_gpu_launcher     distrib_run.run(args)   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/site-packages/torch/distributed/run.py", line 785, in run     elastic_launch(   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 134, in __call__     return launch_agent(self._config, self._entrypoint, list(args))   File "/home/tianpengfei1/anaconda3/envs/llmtime/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 250, in launch_agent     raise ChildFailedError( torch.distributed.elastic.multiprocessing.errors.ChildFailedError:

Joining in. I need more detailed documentation. I also encountered problems during the library installation from requirements.txt, but different ones problems.
I found out that Python no higher than 3.9.x is needed and a GPU, but still, there were problems afterward.

For me, installation of the package Time-LLM works when I select the python package 3.8.
However, I am getting the following error-
RuntimeError: CUDA error: invalid device ordinal
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

@TPF2017 and @m6129, can you give a try with the following configuration to see whether this works in your local environments:

Python=3.8.5
PyTorch=2.0.1
CUDA and pytorch-cuda=11.7
accelerate=0.21.0
transformers=4.29.2
deepspeed=0.10.0

Other dependencies:

numpy=1.24.3
pandas=1.5.3
scikit_learn=1.2.2
reformer_pytorch=1.4.4
tqdm=4.65.0

For me, installation of the package Time-LLM works when I select the python package 3.8. However, I am getting the following error when I try to execute " bash ./scripts/TimeLLM_ETTh1.sh":-
RuntimeError: CUDA error: invalid device ordinal CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

@akbism Could you first check whether num_process=8 is compatible with your local environment? This value should typically correspond to the number of GPUs utilized. Let me and @kwuking know if this issue persists.

This issue has been closed as there were no further questions.


Fix insufficient validation of the Uri authority component can lead to a panic when calling host() afterwards.

Previously only the presence of both square brackets was checked, but not the order. This made ]o[ validate as a good uri authority. However, calling the Authority::host function then panics.
I also added a check for too many : chars in the authority.

CI is failing, but the issue seems unrelated. @seanmonstar can you verify please?

Oh, yea, seems like a dev-dependency is past our MSRV. I've filed #614 to only run cargo check.

Ok, fixed that, if you want to rebase, it should be better here.


Using String Algorithms.

since our project uses string algorithms, there is no clear idea as how we are supposed to use them, so here is my take on this.

[ ] If the uploaded document is in PDF format, we first need to capture the text from PDF, if the doc is in TXT format than all good.

[ ] now that captured text needs to be tokenized to words using NLP algorithms.

[ ] after this is done, our API gives us three keys as result, for the uploaded document those keys are URL , Match Ratio %, No. of copied words as JSON and It doesn't give the actual words or sentences which are copied

[ ] so here string matching algorithms will come into play, we can make a result section in our website where it will be divided into three sub vertical sections, something like this:

If there are any suggestions, discuss here.

@code-monk08 Idea is good. Here are my reviews :-

No need for upload button
After submitting the files and pressing the a button for results we will display redirect the user of another page which you are saying.
Also we will use some visualization tool. chatJS etc.

chart.js to visualize what?

2. After submitting the files on home page and pressing the a button for results we will redirect the user to another page which you are saying.

alright, this is fine.

3\. Also we will use some visualization tool. chatJS etc.

chart.js to visualize what?

chart.js to visualize what?
To visualize no. of copied words and % matched

We can visualize it on the same page since we don't have much data to be visualized. Also we will have to look into the child process functionality of node in order to get the NLP python script running.


Mac OSX Connection String Environment Variable

To be able to read the Connection String Environment Variable I have to add into:
~/.bash_profile
this line:
export storageconnectionstring="myOwnStorageConnectionString"
And to read it successfully I have to use:
string environmentVariableValue = Environment.GetEnvironmentVariable(environmentVariable,  EnvironmentVariableTarget.Process);
or
string environmentVariableValue = Environment.GetEnvironmentVariable(environmentVariable);

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

ID: 60e56e69-1c44-2056-ad5f-319535e4b525
Version Independent ID: 49fa6098-0b8e-ebf5-efe7-f50f3604e325
Content: Azure Quickstart - Upload, download, and list blobs in Azure Storage using .NET
Content Source: articles/storage/blobs/storage-quickstart-blobs-dotnet.md
Service: storage
GitHub Login: @tamram
Microsoft Alias: tamram

@mcbarre Thank you very much for your feedback. We will investigate your inquiry and get back with you.

@mcbarre - Thank you for your feedback.
I've fixed the first problem you note by adding the missing string value, and the update is now live.
In regards to reading the environment variable from MacOS, there is an open issue in .NET Core relating to environment variables. Please see https://github.com/dotnet/corefx/issues/20147.
We will track this issue and update the sample appropriately in the future.
#please-close


Add file hint in namespaces-cpp.md

@TylerMSFT
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Refactor logging system to use custom logger across the codebase

Preparing review...

PR Analysis

🎯 Main theme: Refactoring the logging system to use a custom logger across the codebase
📝 PR summary: This PR replaces the standard Python logging module with a custom logger across the entire codebase. The new logger is imported from the pr_agent.log module. The PR also includes changes to the order of imports and minor code formatting.
📌 Type of PR: Refactoring
🧪 Relevant tests added: No
⏱ Estimated effort to review [1-5]: 2, because the PR is large in terms of the number of files changed, but the changes themselves are straightforward and repetitive.
🔒 Security concerns: No security concerns found

PR Feedback

💡 General suggestions: The PR is well-structured and the changes are consistent across all the files. It would be beneficial to ensure that the new logging system is thoroughly tested, as logging is a critical part of any application. Additionally, it would be helpful to include some context in the log messages, such as the file or function name where the log is being generated, to make debugging easier.

 🤖 Code feedback:

relevant file: pr_agent/tools/pr_code_suggestions.py
suggestion: Consider adding more context to the log messages. For example, you could include the function name in the log message to make it easier to trace the source of the log. [medium]
relevant line: get_logger().info('Generating code suggestions for PR...')

relevant file: pr_agent/servers/github_app.py
suggestion: It's a good practice to include error details in the log when an exception is caught. This can provide valuable information for debugging. [important]
relevant line: get_logger().error("Error parsing request body", e)

/reflect_and_review


SimpleRNNCell/GRUCell/LSTMCell failed to be converted

To reproduce:
# create keras model
rnn_cell = keras.layers.SimpleRNNCell(C, activation='relu')
rnn_layer = keras.layers.RNN(rnn_cell)(inputs)
outputs = keras.layers.Dense(W, activation='sigmoid')(rnn_layer)
keras_model = keras.Model(inputs=inputs, outputs=outputs)

#  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/keras2onnx-1.4.0-py3.7.egg/keras2onnx/ktf2onnx/tf2onnx/rewriter/loop_rewriter_base.py", line 230, in _check_in_read_only_mode
#    self._parse_loop_variables(context)
#  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/keras2onnx-1.4.0-py3.7.egg/keras2onnx/ktf2onnx/tf2onnx/rewriter/loop_rewriter_base.py", line 244, in _parse_loop_variables
#    loop_var = self._get_loop_var_from_switch(s)
#  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/keras2onnx-1.4.0-py3.7.egg/keras2onnx/ktf2onnx/tf2onnx/rewriter/loop_rewriter_base.py", line 391, in _get_loop_var_from_switch
#    ta_gather_node = [n for n in exit_consumers if is_tensor_array_gather_op(n)][0]
# IndexError: list index out of range
onnx_model = keras2onnx.convert_keras(keras_model, keras_model.name)

@fjfjfan As you can see in the error message, keras2onnx converter does not handle SimpleRNNCell for now, so we pass this to tensorflow-onnx converter to do that. Unfortunately there is error there. Will treat this as enhancement

@fjfjfan, You can directly use keras.layers.SimpleRNN(inputs) to replace RNN + Cell, which is supported now.
RNN + customized cell will not be able to supported in the short term, neither in tf2onnx nor or in  keras2onnx


Qwen2-VL: Model Test Structure Improvements

With the introduction of Qwen2-VL and growing model support, the testing framework could be refactored to maintain better separation of functionality between models
To start, I'll address the request from https://github.com/Blaizzy/mlx-vlm/pull/63#issuecomment-2386775484 separating out the Qwen2-VL tests into their own specific model / folder.

Can you send a PR with your proposed changes?


"Could not load theme even. Is it installed?"

My GitHub pipeline is failing to load the Even theme.
https://github.com/jasonpatrickellykrause/jasonpatrickellykrause.github.io/actions/runs/4722875572/jobs/8378060651#step:3:20
Run npm update -g npm --no-fund
  npm update -g npm --no-fund
  npm install resumed -g --no-fund
  npm install jsonresume-theme-even -g --no-fund
  npm root
  npm root -g
  resumed validate resume.json
  resumed render resume.json --theme even --output index.html
  shell: /usr/bin/bash -e {0}

removed 1 package, and changed 43 packages in 10s

added 10 packages in 1s

added 16 packages in [2](https://github.com/jasonpatrickellykrause/jasonpatrickellykrause.github.io/actions/runs/4722875572/jobs/8378060651#step:3:2)s
/home/runner/work/jasonpatrickellykrause.github.io/jasonpatrickellykrause.github.io/node_modules
/usr/local/lib/node_modules
Your resume.json looks amazing! ✨
Could not load theme even. Is it installed?
Error: Process completed with exit code 1.

I am guessing I need to specify the path to the theme, but I have not been able to figure that out. 🤷🏽

You must specify the fully-qualified theme name, e.g. --theme jsonresume-theme-even.
See v2.0.0 release notes.

You can find your rendered resume at index.html. Nice work! 🚀


(111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server

Hi,
I've followed the instructions here https://elephant-track.github.io/#/?id=setting-up-with-singularity
git clone https://github.com/elephant-track/elephant-server
cd elephant-server
make singularity-build
make singularity-launch

But I get this error:
base) oamsalem@colab00:~/Downloads/elephant-server$ make singularity-launch
singularity instance start --nv --bind /home/oamsalem/.elephant_binds/var/lib:/var/lib,/home/oamsalem/.elephant_binds/var/log:/var/log,/home/oamsalem/.elephant_binds/var/run:/var/run,/home/oamsalem/Downloads/elephant-server/workspace:/workspace elephant.sif elephant
INFO:    instance started successfully
if [ all = all ]; then \
        singularity exec instance://elephant /start.sh; \
else \
        SINGULARITYENV_CUDA_VISIBLE_DEVICES=all singularity exec instance://elephant /start.sh; \
fi

Checking for script in /app/prestart.sh
Running script /app/prestart.sh
set RUN_ON_FLASK
2023-08-17 15:43:46,197 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
Unlinking stale socket /var/run/supervisor.sock
2023-08-17 15:43:46,521 INFO RPC interface 'supervisor' initialized
2023-08-17 15:43:46,521 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2023-08-17 15:43:46,521 INFO supervisord started with pid 19
2023-08-17 15:43:47,525 INFO spawned: 'rabbitmq-server' with pid 31
2023-08-17 15:43:47,528 INFO spawned: 'redis-server' with pid 32
2023-08-17 15:43:47,531 INFO spawned: 'uwsgi' with pid 33
2023-08-17 15:43:47,534 INFO spawned: 'celery' with pid 34
2023-08-17 15:43:47,536 INFO spawned: 'nginx' with pid 36
32:C 17 Aug 15:43:47.724 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
32:C 17 Aug 15:43:47.724 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=32, just started
32:C 17 Aug 15:43:47.724 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
32:M 17 Aug 15:43:47.725 * Increased maximum number of open files to 10032 (it was originally set to 1024).
32:M 17 Aug 15:43:47.726 * Running mode=standalone, port=6379.
32:M 17 Aug 15:43:47.726 # Server initialized
32:M 17 Aug 15:43:47.726 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
32:M 17 Aug 15:43:47.726 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
32:M 17 Aug 15:43:47.726 * Ready to accept connections
2023/08/17 15:43:47 [warn] 36#36: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
[uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini
[uWSGI] getting INI configuration from /app/uwsgi.ini

;uWSGI instance configuration
[uwsgi]
chown-socket = 1001:1001
uid = 1001
gid = 1001
ini = /etc/uwsgi/uwsgi.ini
ini = /app/uwsgi.ini
module = main
callable = app
cheaper = 2
processes = 16
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664
hook-master-start = unix_signal:15 gracefully_kill_them_all
need-app = true
die-on-term = true
show-config = true
route = ^/state/gpus* donotlog:
;end of configuration

*** Starting uWSGI 2.0.18 (64bit) on [Thu Aug 17 15:43:48 2023] ***
compiled with version: 7.3.0 on 22 July 2019 16:35:30
os: Linux-5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022
nodename: colab00
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 40
current working directory: /home/oamsalem/Downloads/elephant-server
detected binary path: /opt/conda/bin/uwsgi
*** dumping internal routing table ***
[rule: 0] subject: path_info regexp: ^/state/gpus* action: donotlog:
*** end of the internal routing table ***
your processes number limit is 1159763
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
chown(): Operation not permitted [core/utils.c line 2649]
2023-08-17 15:43:48,198 INFO exited: uwsgi (exit status 1; not expected)
2023/08/17 15:43:48 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023-08-17 15:43:48,740 INFO success: rabbitmq-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-17 15:43:48,740 INFO success: redis-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-17 15:43:48,741 INFO success: celery entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-17 15:43:48,741 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-08-17 15:43:49,744 INFO spawned: 'uwsgi' with pid 263
2023/08/17 15:43:49 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
[uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini
[uWSGI] getting INI configuration from /app/uwsgi.ini

;uWSGI instance configuration
[uwsgi]
chown-socket = 1001:1001
uid = 1001
gid = 1001
ini = /etc/uwsgi/uwsgi.ini
ini = /app/uwsgi.ini
module = main
callable = app
cheaper = 2
processes = 16
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664
hook-master-start = unix_signal:15 gracefully_kill_them_all
need-app = true
die-on-term = true
show-config = true
route = ^/state/gpus* donotlog:
;end of configuration

*** Starting uWSGI 2.0.18 (64bit) on [Thu Aug 17 15:43:49 2023] ***
compiled with version: 7.3.0 on 22 July 2019 16:35:30
os: Linux-5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022
nodename: colab00
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 40
current working directory: /home/oamsalem/Downloads/elephant-server
detected binary path: /opt/conda/bin/uwsgi
*** dumping internal routing table ***
[rule: 0] subject: path_info regexp: ^/state/gpus* action: donotlog:
*** end of the internal routing table ***
your processes number limit is 1159763
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
chown(): Operation not permitted [core/utils.c line 2649]
2023-08-17 15:43:49,757 INFO exited: uwsgi (exit status 1; not expected)
2023/08/17 15:43:50 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023/08/17 15:43:51 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023-08-17 15:43:52.551472-04:00 [notice] <0.44.0> Application syslog exited with reason: stopped
2023-08-17 15:43:52.562684-04:00 [notice] <0.230.0> Logging: switching to configured handler(s); following messages may not be visible in this log output
2023-08-17 15:43:52,565 INFO spawned: 'uwsgi' with pid 264
[uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini
[uWSGI] getting INI configuration from /app/uwsgi.ini

;uWSGI instance configuration
[uwsgi]
chown-socket = 1001:1001
uid = 1001
gid = 1001
ini = /etc/uwsgi/uwsgi.ini
ini = /app/uwsgi.ini
module = main
callable = app
cheaper = 2
processes = 16
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664
hook-master-start = unix_signal:15 gracefully_kill_them_all
need-app = true
die-on-term = true
show-config = true
route = ^/state/gpus* donotlog:
;end of configuration

*** Starting uWSGI 2.0.18 (64bit) on [Thu Aug 17 15:43:52 2023] ***
compiled with version: 7.3.0 on 22 July 2019 16:35:30
os: Linux-5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022
nodename: colab00
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 40
current working directory: /home/oamsalem/Downloads/elephant-server
detected binary path: /opt/conda/bin/uwsgi
*** dumping internal routing table ***
[rule: 0] subject: path_info regexp: ^/state/gpus* action: donotlog:
*** end of the internal routing table ***
your processes number limit is 1159763
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
chown(): Operation not permitted [core/utils.c line 2649]
2023-08-17 15:43:52,581 INFO exited: uwsgi (exit status 1; not expected)
2023/08/17 15:43:52 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"

  ##  ##      RabbitMQ 3.12.3
  ##  ##
  ##########  Copyright (c) 2007-2023 VMware, Inc. or its affiliates.
  ######  ##
  ##########  Licensed under the MPL 2.0. Website: https://rabbitmq.com

  Erlang:      <IP_ADDRESS> [jit]
  TLS Library: OpenSSL - OpenSSL 1.1.1  11 Sep 2018
  Release series support status: supported

  Doc guides:  https://rabbitmq.com/documentation.html
  Support:     https://rabbitmq.com/contact.html
  Tutorials:   https://rabbitmq.com/getstarted.html
  Monitoring:  https://rabbitmq.com/monitoring.html

  Logs<EMAIL_ADDRESS>        <stdout>

  Config file(s): (none)

  Starting broker...2023/08/17 15:43:53 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023/08/17 15:43:54 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023-08-17 15:43:55,758 INFO spawned: 'uwsgi' with pid 265
2023/08/17 15:43:55 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
[uWSGI] getting INI configuration from /etc/uwsgi/uwsgi.ini
[uWSGI] getting INI configuration from /app/uwsgi.ini

;uWSGI instance configuration
[uwsgi]
chown-socket = 1001:1001
uid = 1001
gid = 1001
ini = /etc/uwsgi/uwsgi.ini
ini = /app/uwsgi.ini
module = main
callable = app
cheaper = 2
processes = 16
socket = /tmp/uwsgi.sock
chown-socket = nginx:nginx
chmod-socket = 664
hook-master-start = unix_signal:15 gracefully_kill_them_all
need-app = true
die-on-term = true
show-config = true
route = ^/state/gpus* donotlog:
;end of configuration

*** Starting uWSGI 2.0.18 (64bit) on [Thu Aug 17 15:43:55 2023] ***
compiled with version: 7.3.0 on 22 July 2019 16:35:30
os: Linux-5.15.0-46-generic #49~20.04.1-Ubuntu SMP Thu Aug 4 19:15:44 UTC 2022
nodename: colab00
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 40
current working directory: /home/oamsalem/Downloads/elephant-server
detected binary path: /opt/conda/bin/uwsgi
*** dumping internal routing table ***
[rule: 0] subject: path_info regexp: ^/state/gpus* action: donotlog:
*** end of the internal routing table ***
your processes number limit is 1159763
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
chown(): Operation not permitted [core/utils.c line 2649]
2023-08-17 15:43:55,778 INFO exited: uwsgi (exit status 1; not expected)
2023/08/17 15:43:56 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023-08-17 15:43:56,759 INFO gave up: uwsgi entered FATAL state, too many start retries too quickly
 completed with 0 plugins.
2023/08/17 15:43:57 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"

 -------------- celery@colab00 v5.0.5 (singularity)
--- ***** -----
-- ******* ---- Linux-5.15.0-46-generic-x86_64-with-debian-buster-sid 2023-08-17 15:43:58
- *** --- * ---
- ** ---------- [config]
- ** ---------- .> app:         main:0x7f66f63a4090
- ** ---------- .> transport:   redis://localhost:6379//
- ** ---------- .> results:     redis://localhost:6379/
- *** --- * --- .> concurrency: 40 (thread)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
--- ***** -----
 -------------- [queues]
                .> celery           exchange=celery(direct) key=celery

2023/08/17 15:43:58 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023/08/17 15:43:59 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023/08/17 15:44:00 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023/08/17 15:44:01 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023/08/17 15:44:02 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
2023/08/17 15:44:03 [error] 52#52: *2 connect() to unix:///tmp/uwsgi.sock failed (111: Connection refused) while connecting to upstream, client: <IP_ADDRESS>, server: , request: "GET /state/gpus HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:", host: "localhost:8080"
^C2023-08-17 15:44:03,921 WARN received SIGINT indicating exit request

Any suggestions?
Thanks,
Oren

Thanks @mestia  so what should I do?

You need to clone the repository, modify the 2 mentioned above files and re-build the singularity image with make singularity-build
After that one should be able to start the singularity instance and access the server from a browser.


capture args and fetch them from the API

I do think it'd be neat to build some conveniences around mock-bin, like the ability to capture args and return/fetch them from the API, but I guess that could always be another module/package. ¯_(ツ)_/¯

https://github.com/conventional-changelog/standard-version/pull/36#issuecomment-220434860
This will go to another wrapper module but putting it here as reference :)

Probably not possible.
EG: git --no-pager log doesn't equal git log --no-pager. Not to mention some programs don't follow the standard.
Better to handle argv by users themselves.


Create GitHub release after deploy

Also modernize how the package is generated using build instead of deprecated setup.py.
Close #139

Looks good 👍

Is there any downside I am not aware of by splitting this file in multiple workflows?


vstest 16.4.0 vstest.console process failed to connect to testhost process after 90 seconds

Description
Vstest console 16.4.0 started using translationlayer client cannot connect to testhost on macosx or ubuntu
Steps to reproduce
https://github.com/stryker-mutator/stryker-net/pull/803
https://dev.azure.com/stryker-mutator/Stryker/_build/results?buildId=3194&view=logs&j=8dcd3b11-13fb-50f0-4b7f-731992d2cc40&t=cb30da9f-d093-5976-a5a7-fb4ed5357abf
Expected behavior
test discovery succeeds and testrun is executed
Actual behavior
test discovery is canceled and testruns fail
Diagnostic logs
vstest-log.txt
Environment
    <PackageReference Include="Microsoft.TestPlatform" Version="16.4.0" />
    <PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.4.0" />
    <PackageReference Include="Microsoft.TestPlatform.Portable" Version="16.4.0" />
    <PackageReference Include="Microsoft.TestPlatform.TranslationLayer" Version="16.4.0" />

vstest.console and testhost are extracted from Microsoft.TestPlatform.Portable and launched through Microsoft.TestPlatform.TranslationLayer. Issue occurs on azure devops hosted pipeline agents ubuntu-latest and macos-latest
See diagnostic logs attached for all trace logging. If neccesary any other required logging can easily be provided.

@Mobrockers You are right. This seems to be a duplicate of the tagged issue. Closing this one.


chore(deps): bump https://github.com/zeebe-io/zeebe-operate-helm from 0.0.20 to 0.0.21

Update zeebe-io/zeebe-operate-helm from 0.0.20 to 0.0.21
Command run was jx step create pr chart --name zeebe-operate --version 0.0.21 --repo https://github.com/zeebe-io/zeebe-full-helm.git

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: salaboy
If they are not already assigned, you can assign the PR to them by writing /assign @salaboy in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


cf run-task app "ls -al" didn't display output

$ cf run-task ghost "ls -al"
Creating task for app ghost in org dingotiles / space blog-production as<EMAIL_ADDRESS>OK

Task 0 has been submitted successfully for execution.

I was expecting that the command would be run inside an app container and the stdout/stderr would be displayed to my terminal.

CLI Version  cf version 6.23.0+c7866be18-2016-12-22
CC API Endpoint Version  https://api.run.pivotal.io
Platform & Shell Details  Mac OS X 10.11.6 iTerm

I've discovered that the stdout/stderr go to logs. I can understand this as a side effect; but as a user it isn't my expected behavior. I'd like the output returned - I can then process it, filter it, etc in bash script.

We initially wanted to display the logs, or even briefly just the initial logs (especially useful for tasks that fail early because e.g. you have a typo in your command) but this plan changed for a few reasons:

There currently isn't a way for the CLI to obtain the logs for a particular task:
The log stream includes logs for the app and all its tasks, keyed by task name, which is not unique.
Several backend teams need to be involved to solve that problem, but I think they're waiting for more user feedback about the task feature itself to determine the direction to take it to. @SocalNick @ematpl please correct me if I'm wrong.
In the user testing we did, users were fine to use cf logs or even would be using tools like papertrail anyway to view/analyse logs.

There are other concerns as well that we'd need to work out. I believe (long-running/hanged) tasks time out by default after 48 hours. A synchronously logging cf run-task command could therefore hang a script for that long. Currently only interactive commands and cf logs do not come back as it tails logs and I'm not sure people would be expecting this from other commands.
We are currently discussing the lack of documentation around logging of tasks (all we have is the hint of logs in the SEE ALSO). Hope to get that addressed soon.
Thanks for the feedback!

Documentation has been improved to mention about cf logs:
http://docs.cloudfoundry.org/devguide/using-tasks.html#run-tasks

Thanks for reply and bonus docs.
What is the mechanism by which cf push can show logs? Can we borrow that?
On Fri, Dec 23, 2016 at 10:17 AM +1000, "Dies Koper"<EMAIL_ADDRESS>wrote:
Documentation has been improved to mention about cf logs:
http://docs.cloudfoundry.org/devguide/using-tasks.html#run-tasks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I'll need to ask my team to confirm (or you can check the code), but I believe cf push uses the same mechanism as cf logs to display staging logs, taking advantage of the knowledge that at push time no instances or tasks for the app are running and the staging process is the only process emitting logs for the app.

Hi @drnic
We've just released cf CLI 6.23., which shows a tip in cf run-task -h to use cf logs to inspect the logs.
Hopefully no confusion here anymore.
https://github.com/cloudfoundry/cli#downloads
Thanks for the feedback.
Regards,
Dies Koper
CF CLI PM


feature: change output format to hash:plain

Most cracking utilities use hash:plain format.
Among other benefits, since many hashes are a fixed length, this significantly improves readability. It also makes it easier to parse plains with spaces, colons, etc. as part of a commandline workflow.

Good point, thank you and done.
https://github.com/sensepost/ntcrack/commit/95ddbcd6f5fc84cc6a77fc0c56929dbe58a0386f


wired inference results

Thanks the authors for releasing the codes! I have got very poor results similarly as discussed in this thread https://github.com/zhijieshen-bjtu/DOPNet/issues/1. I also tried the most recently updated codes, which didn't work neither. Could you please take a look again? Are the shared models correct? Thanks.

It seems that the same issue posed by @CBS5181 has been resolved, how about you?

Im having the same issue. I even had to edit code in some places

ok, this is funny. If anyone has wierd results, please download the checkpoints! They are empty folders by default and doesnt contain *.pth files. The only auto download thing is resnet I think from torchvision.
Authors should check if ckpt_dir is present or at least put some warning message or something.

It seems that the same issue posed by @CBS5181 has been resolved, how about you?

Yes, this issue has been resolved. The pretrained models were not downloaded correctly, I re-downloaded the models and it worked! Thanks!


merge v1.2.0

@WhiteEgg Which version of IPFS does this update correspond to?

@WhiteEgg Which version of IPFS does this update correspond to?

v0.7.0

Sounds good, please submit a PR to main go-btfs after this.


Example WindowWrapper Signal

Hi Marco,
I paste my code with a WindowWrapper example :
date_start='2000-01-01'
date_end='2021-01-01'
data = pdr.get_data_yahoo('AAPL', start=date_start, end=date_end)
CL = data['Close'].values
sm = []
window = 20
dzero = np.zeros((window - 1,), dtype=int)
smoother = WindowWrapper(ConvolutionSmoother(window_len=20, window_type='ones'), window_shape=window)
smoother.smooth(CL)
for i, (true, smooth) in enumerate(zip(smoother.Smoother.data, smoother.Smoother.smooth_data)):
sm.append(smooth[-1])
sig = np.append(dzero, sm, axis=0)
data['SM'] = sig
plt.plot(data['Close'])
plt.plot(data['SM'])
plt.show()
Can you confirm me that is the right way for build a smooth signal without look ahead bias ?
Sorry but python isn't my native language :)
Regards.
Ludo.

Hi, yes it seems ok
Bye


Crashes on mousemove

In this REPL

Thanks for this tool!

Thanks for the repl link, that's very helpful!
This bug has been fixed. I did find some other issue while playing with your reply, that one I've filed under #91.


报错求教！Cannot read property 'dismiss' of undefined

Cannot read property 'dismiss' of undefined
RN版本0.57

这个原因可能是因为你没有link
执行react-native link react-native-keyboard-view看看


Flat (stripped folders) of ZIPs / Update download to 5

I was downloading a a zip file, but the first level of folders inside the zip was always stripped, breaking the folder structure completely. Similar to #12
I was trying to fiddle around with the strip option, but no difference.
I used the download package directly and it failed, too. But after installing the current version 5 of download my script worked and the zip was extracted correctly. So, maybe if you update this dependency these errors resolve.
The zip file: http://kangoextensions.com/kango/kango-framework-latest.zip

Closing as download has now been updated.


OSX ARM64

Hi! This is the friendly automated conda-forge-webservice.
I've started rerendering the recipe as instructed in #98.
If I find any needed changes to the recipe, I'll push them to this PR shortly. Thank you for waiting!
Here's a checklist to do before merging.

[ ] Bump the build number if needed

Fixes #98

@conda-forge-admin please rerender

Well that's a pleasant surprise to pass. I question nothing 🙊


rework machineid code

This adds char machine_id[SIGAR_SYS_INFO_LEN] to struct sigar_sys_info_t and pulls the call to sigar_get_machine_id into sigar_sys_info_get_uname() so that it will work across build targets.
Windows is next.  It currently does nothing with the array.
(I'm not sure why linux_sigar.c has such a huge diff ......)

The diff was because all of the whitespace changed from 4->2 spaces. I'm going to close this one and reopen with more around how I think this should work.

See #3 - this follows more of a 'when in rome' approach to adding the uuid extraction code, extending sys_info and not really worrying about returning in-library memory, instead preferring to take a buffer from the caller (which can choose to simply call this only once).


azure-keyvault: support all foramt for keyvault

Signed-off-by: Long Dai<EMAIL_ADDRESS>Thank you for helping make the Dapr documentation better!
Please follow this checklist before submitting:

[x] Read the contribution guide
[x] Commands include options for Linux, MacOS, and Windows within codetabs
[x] New file and folder names are globally unique
[x] Page references use shortcodes instead of markdown or URL links
[x] Images use HTML style and have alternative text
[x] Places where multiple code/command options are given have codetabs

In addition, please fill out the following to help reviewers understand this pull request:
Description
Add comment about vaultName.
Issue reference

Fix #1597

@AaronCrawfis done.

Waiting on https://github.com/dapr/components-contrib/pull/944 to merge

ping @AaronCrawfis


[Docs]: Create a "Testing" section and move that out of getting started

I do think it's very important to list the steps for testing, but I think it would be beneficial to create a dedicated testing section to explain the process and how the tests work. For the most part, a new contributor may not need to know about testing when initially diving in until they are developing or closer to time when they want to open a PR.
While it's good to test as you go, I don't think it's needed in the "first steps" section.

What should I do here to contributing in these no code repo?


logging - edited

This issue was originally created as issue 71 on gh:federatedbookkeeping/github-dxos

Commenting in downstream.

Commenting in upstream


preprocessEmbeddedTemplates appears to be processing jsdoc comments

I'm not 100% sure ^^^ is what is happening.
I'm getting this report on my prettier plugin:

JS comments are being parsed by the plugin, and if the plugin finds invalid syntax, it throws errors. This is common in our codebase when people write example usages of a component invocation, and it even catches on some JSDoc comments. really, any JS comment with {{ will attempt to be parsed by the plugin.
example: this JSDoc comment with a type annotation containing an object, which looks like a double-curly template invocation:
  /**
   * Error message from loading the suggestions and whether the user can retry.
   * @type {{ errorMessage: string, canRetry: boolean} | undefined }}
   */

this breaks the prettier plugin
✖ yarn prettier:
[error] packages/addons/profile-shared/addon/components/generated-suggestions/generated-suggestion-edit-view.gjs: SyntaxError: Unexpected token (544:9)
[error]   542 |
[error]   543 |
[error] > 544 |  export default [__GLIMMER_TEMPLATE(`{{!voyager-i18n-resource}}
[error]       |         ^
[error]   545 | {{t-def "Original" key="i18n_original"}}
[error]   546 | {{t-def "Dismiss" key="i18n_dismiss"}}
[error]   547 | {{t-def "Something went wrong. Please try again." key="failure_toast"}}

something about the double-curly in the comment block is throwing off prettier, because when i delete that line it works fine

https://github.com/gitKrystan/prettier-plugin-ember-template-tag/issues/84

The plugin just passes the file contents to preprocessEmbeddedTemplates though:
https://github.com/gitKrystan/prettier-plugin-ember-template-tag/blob/1ab2de020a80cb507d69007aeaf6901b3f654221/src/parse.ts#L56-L66

This API has been removed in v4. You'll want to use content-tag for low level tooling work.


Migrate orthographic view controller

Closes #218
This PR includes the migration and refactoring of FixedOrientationOrthoViewController, with the addition of tests. It also includes some refactoring of the OrbitViewController and ViewController classes.
Furthermore, the method FixedOrientationOrthoViewController::mimic() has been slightly modified to obtain a consistent behaviour when switching between different view controllers.

CI:

Linux
Linux-aarch64
macOS
Windows


sap.m.Wizard Styling Errors

OpenUI5 version: 1.88 and below
Browser/version (+device/version): Chrome 90, macOS 11.3
Any other tested browsers/devices(OK/FAIL): -
URL (minimal example if possible): https://sapui5.hana.ondemand.com/#/entity/sap.m.Wizard/sample/sap.m.sample.WizardSingleStep
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:

Open Wizard Dialog
Navigate to step 4 "Pricing"

What is the expected result?
The label of the step "Pricing" is fully visible, the number of the task is vertically and horizontally aligned in the circle
What happens instead?

The label of the step "Pricing" is cropped, the "g" is slightly cut off
The number of the step is misaligned in the circle, this is also the case for any other steps

Any other information? (attach screenshot if possible)
The step number is misaligned:

The text is cut off:

Hi @fatschi,
Thanks for the issue. It was address with internal reference:<PHONE_NUMBER>
Best regards,
Nayden

Hi @fatschi ,
I am unable to reproduce the problem, can you please confirm it is still reproducible?
Also can you please clarify if you have zoomed the browser, that may cause the pixel calculations of some stiles to go a bit off.
I checked 1.88 and 1.89 versions. In both I could not find any cut text.
Best Regards,
Hristo

Hello,
Since there is no response from the author for more than 4 weeks I'm closing the ticket.
Kind Regards,
Niya


upgrade kali 2017.3 rolling got me into 'unhandled exceptions' what an irony

Issue Description
I get a stack trace when I... launch the client
Error Type: builtins.TypeError
Error Details: TypeError("argument of type 'NoneType' is not iterable",)
Error UID: c3ae98e1-df6e-41dd-a404-7c6d34c02998
RPC Error: N/A (Not a remote RPC error)
King Phisher Version: 1.9.0-beta4 (rev: cc43c91ff98e)
Platform Version: Linux: Kali 2017.04 rolling
Python Version: 3.5.4
Gtk Version: 3.22.24
Thread Information:
=> MainThread (alive=True daemon=False)
Reproduction Steps

Start King Phisher
Do something to trigger the crash
i had previously cleaned up params in ~/.config/king-phisher/config.json
changed host ip:port, date, sftp params, ssh key type .
but i also had a massive update,i checked for it after filezilla had its own non fatal wxGTK3 exception. ,rebooted and switched server config to Http ,changed to port 81 and removed ssl certs. I had given up on https , after countless tries ,plus self signed certificates wont do anyways, will try certbot eventually.

Environment Details
Host OS:Kali 2, 2017.04 rolling (Debian 4.9.18-1kali1 (2017-04-04) x86_64 GNU/Linux)
King Phisher Version: 1.9.0-beta4
Error Details / Stack Trac/opt/king-phisher$ ./KingPhisher
Traceback (most recent call last):
File "/opt/king-phisher/king_phisher/client/application.py", line 486, in do_config_load
self.config = serializers.JSON.load(tmp_file)
File "/opt/king-phisher/king_phisher/serializers.py", line 114, in load
return cls.loads(file_h.read(), *args, **kwargs)
File "/opt/king-phisher/king_phisher/serializers.py", line 154, in loads
return json.loads(data, object_hook=cls._json_object_hook)
File "/usr/lib/python3.5/json/init.py", line 332, in loads
return cls(**kw).decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 61 column 24 (char 2057)
ERROR    error uid: b3fddb5f-de7c-4491-8c20-5ffe894af185 an unhandled exception was thrown
Traceback (most recent call last):
File "/opt/king-phisher/king_phisher/client/application.py", line 380, in do_activate
self.main_window = main.MainAppWindow(self.config, self)
File "/opt/king-phisher/king_phisher/client/windows/main.py", line 251, in init
mailer_tab = MailSenderTab(self, self.application)
File "/opt/king-phisher/king_phisher/client/tabs/mail.py", line 1059, in init
config_tab = MailSenderConfigurationTab(self.application)
File "/opt/king-phisher/king_phisher/client/tabs/mail.py", line 835, in init
super(MailSenderConfigurationTab, self).init(*args, **kwargs)
File "/opt/king-phisher/king_phisher/client/gui_utilities.py", line 656, in init
self.objects_load_from_config()
File "/opt/king-phisher/king_phisher/client/tabs/mail.py", line 856, in objects_load_from_config
super(MailSenderConfigurationTab, self).objects_load_from_config()
File "/opt/king-phisher/king_phisher/client/gui_utilities.py", line 733, in objects_load_from_config
if not gtype in GOBJECT_PROPERTY_MAP or not config_name in self.config:
TypeError: argument of type 'NoneType' is not iterable
--->
great project thanks

It looks like your configuration file is corrupt. Try moving it and seeing if that fixes the problem. The configuration file exists under ~/.config/king-phisher/config.json, just rename it config.bk.json.

fixed edited config.json file


Introduce predefined sorting templates

Story:
As a user, I want to sort the .yaml file according to the OpenAPI ordering of the fields so that it is easier to read and update in the future.
Acceptance criteria:

The plugin allows for specifying the predefined templates for sorting (for example, OpenAPI specification format).
When the user applies the sorting with the predefined template/order of the keywords, the plugin first sorts everything according to the specified template, and then applies the default strategy of sort (by name ASC).

Alternative path:
Instead of introduction of the templates for sort, it might make sense to provide the option to exclude the indented elements from the sort. It should practically do the trick in most cases.
Dev Notes:

The OpenAPI specification is usually more convenient to design in the .yaml format, since it has less noise, but when we sort it using sort-everything, it does sort everything, without accounting for the logical ordering (for example: "type: array", then "items" after the sort becomes list of "items" and then "type:array"). It doesn't break the .yaml file, but makes it harder to update/manage.

Hi @visvital, is the ordering format of OpenAPI available as a spec that can be ready by a machine (JSON Schema or similar)?

Hi @bennycode, I did a brief search, but wasn't able to find the proper spec. Here's so far the only machine-readable reference, which I liked - https://github.com/Redocly/redoc/blob/main/src/types/open-api.ts
If needed, I will spend some time and build the yaml spec, according to https://spec.openapis.org/oas/v3.1.0#schema. I think I only thought of the ordering of the fixed fields sections and applying the proper recursion. Thank you!


pod: Enable pod console traces

We had no way to get logs printed inside the VM by our hyperstart
agent because we were missing several parts to be connected properly.
This patch enables the proxy to retrieve hyperstart logs coming from
inside the VM through a new console socket created by the hypervisor.
First it adds a new Console field to the PodConfig so as to be able
to share this socket path with other components such as proxy or
agent implementations. The hypervisor interface now gets a pointer
to a PodConfig for the createPod() function, meaning it can modify
the console value if any is provided.
Then we have to change systemd.unit parameter from "container.target"
to "cc-agent.target" because we need hyperstart output to be
redirected to the right console.
At last, the hypervisor implementation has to create a console socket
from the console path provided by the PodConfig.

@sameo @dlespiau please let me know what you think about this one ?

Coverage increased (+0.04%) to 66.649% when pulling 0944b30b6b32bc6c1a00818a5e0e45e82109f55d on sboeuf/fix_hyper_proxy_logs into 5c92f1f5efb746caf6c3d6986c86356affcfbfd6 on master.

Coverage increased (+0.04%) to 66.57% when pulling 5713499ee45e0e4e516533271a2ff4a8c9fb3dd1 on sboeuf/fix_hyper_proxy_logs into<PHONE_NUMBER>7eaebf54fdee55656b8ca38b831f01 on master.

Coverage increased (+0.04%) to 66.57% when pulling 5713499ee45e0e4e516533271a2ff4a8c9fb3dd1 on sboeuf/fix_hyper_proxy_logs into<PHONE_NUMBER>7eaebf54fdee55656b8ca38b831f01 on master.

@sameo any comments on this one ?

@sboeuf I think this is a very useful patch, but I don't like that we modify the PodConfig behind the caller's back. This should be an immutable structure. We already do that for the pod ID, but we should fix that as well.
So, what I'd like to see changed here is the fact that if PodConfig.Console == "" then we simply don't add a console device. Passing an empty string just means the caller does not want a console.
With that in mind you don't need to change several API prototypes and change the pod config anymore.

@sameo Ok with me, I'll do the change.

@sameo I have made the changes but something is bothering me. I have my VM crashing in case I don't provide the console path, meaning no console is created. It is related to the cc-agent.target used. In cases I use the combo cc-agent.target + console OR container.target + no console, there is no issue.
Should I try to switch between those two systemd.unit targets according to the PodConfig.Console value ? Or should I handle that differently ?

Coverage increased (+0.5%) to 67.254% when pulling e36f357fb41adcc0af7274695cf01bc23b131b12 on sboeuf/fix_hyper_proxy_logs into bf025dd7e9a99186dbd82153b6fe313c2366497a on master.

@sboeuf The systemd service that we want to run should actually be a hypervisor parameter. Intrinsic knowledge that a hardcoded systemd service that we use expects a console is not something we want to put into virtcontainers. It really is the caller that knows about those dependencies.

LGTM

@sameo I guess this one deserves a follow up PR to make the systemd.unit value as a parameter, right ?

@sboeuf Yes. Or more generally, allow for additional kernel parameters (for init, systemd.unit, etc...)

@sameo Yes makes sense !


improve(docs): Basics -> Arrays

Overview
Make the lesson structure fit the following (note the actual names of the course lessons are in bold):
Arrays

[x] 1. Introduction

[x] Motivation: why do we want to use them.
[x] Arrays in C++: types of arrays in the language

[x] 2. Dynamic arrays

[ ] Lesson structure

[x] creating a vector
[x] accessing elements
[x] adding elements
[x] removing elements
[x] reading size
[x] displaying elements

[ ] Examples
[ ] Common problems
[ ] Exercises

[ ] 3. Fixed-size arrays

[ ] Lesson structure

[ ] creating an array
[ ] accessing elements
[ ] note about not being able to add or remove elements
[ ] filling the content
[ ] reading size, mention that it is always the same
[ ] displaying elements

[ ] Examples
[ ] Common problems
[ ] Exercises

[ ] 4. Using algorithms - show examples that require minimal knowledge of the language but allow the reader to play with vectors and arrays

[x] max value with std::ranges::max()
[x] min value with std::ranges::min()
[x] reverse with std::ranges::reverse()
[x] sorting with std::ranges::sort()
[ ] ensure the lesson properly shows both std::array and std::vector examples

[ ] 5. C-style arrays

[ ] explain why we don't want to use C-style arrays
[ ] describe when and how to use safer alternatives instead
[ ] provide basic examples of C-style array usage

[ ] Examples

A preview of how it looks in the sidebar.


Rewrited add marker dialog

I wrote this version for myself, because adding plenty of markers does this job hard with 1 textbox.
Perhaps this will be helpful.

I think this would be a very useful addition!


updated  kafka client to version 3.0+

driver-kafka compiled without any errors

it compiled successfully but in next try build is failing


Create specification / Rubric

We need a document that contains the minimal specifications of the app.  I have started this and will share a link soon

Some work has been done on this, but I think we are doing great with an agile vs plan and document approach.  We will document features as issues rather than documenting the whole thing.  You can think of the issues that David posted as User Stories and we will try to write these as user stories.


macOS: switch dark/light theme when system theme changes

What about add function to set light and dark themes and switch them on system theme changes?
Like in IINA

When system theme changes, then changes theme in app.

Reference: https://github.com/electron/electron/issues/13387

For anyone that doesn't want to wait, I made a little extension that does this for you:
https://marketplace.visualstudio.com/items?itemName=LinusU.auto-dark-mode
You can set the dark and light mode in the settings:

Hope this helps someone!

@Lapsusone I think that the only thing that was in the last release was that the window borders and system dialogues will now follow the system dark theme settings. It still doesn't have a mechanism for automatically switching the editor theme...

I would also like this, but I can see this getting complicated with themes that provide multiple light/dark themes. Here is what GitHub Desktop does this:

I'd love to see this built-in. I've been using @LinusU's extension (https://marketplace.visualstudio.com/itemdetails?itemName=LinusU.auto-dark-mode) which works well most of the time but sometimes does not pick up the change.
Anyhow, I think it makes sense for this to be in the core.

As I wasn't completely satisfied with @LinusU's extension, there's now another extension for this task:
ThemeSwitch on VS Code Marketplace
It is customizable and can therefore switch between more than 2 themes. You can choose any time of day and combine that time with the theme you prefer at that time.

/duplicate https://github.com/microsoft/vscode/issues/61519


Fixed issue with IdPMetadataParser only keeping 1 certificate when multiple certificates of a single type were provided.

Fixed at 282b39dfce4def24f2509904ee6e6a4a1672f54b


Warning: Don't work with 'Stefan Hyltoft', this man is a faker, bad guy who didn't pay after employed my mate Phoon.

My mate Phoon contracted with Stefan on the 'Image-Recognition' React Native Project.
He worked whole week around Stefan's requirement. But after all delivered result, he refused to pay without any reason.
I am not posting this issue to get money from him, I hope no one will be deceived by him.
https://user-images.githubusercontent.com/101217159/185763388-87e43453-17bb-4173-b776-181689cd79e6.png
https://user-images.githubusercontent.com/101217159/185763374-16db443a-dbb1-4d39-8030-024bf7c9c4ea.png
https://user-images.githubusercontent.com/101217159/185763364-753a1f07-bf1a-4763-a0cd-0d6da6de70de.png
https://user-images.githubusercontent.com/101217159/185763380-74b5a776-e5d2-4031-af96-cefae09d8667.png
https://user-images.githubusercontent.com/101217159/185763306-5bd417b7-6f39-4a3c-b489-85780c3cbf86.png

This forum is for posting issues with the SGDK. Not for airing dirty laundry regarding sour partnerships.

I know, but we can't work convenient with this kind of people.
After clean up your place, we always get on the work, didn't we?


Rename neighbors list to neighbor list

Someday I'll manage to put s at the right places.
This is a breaking change, do we want to merge & release 0.5.0? Otherwise we can keep this as a PR for a while longer and merge it later.
This was split out of #550.
Contributor (creator of pull-request) checklist

[x] Tests updated (for new features and bugfixes)?
[x] Documentation updated (for new features)?
[ ] Issue referenced (for PRs that solve an issue)?

Reviewer checklist

[x] CHANGELOG updated with public API or any other important changes?

📚 Documentation preview 📚: https://metatensor--587.org.readthedocs.build/en/587/

should we ask around to understand what people prefer?

I don't think so, neighbor list/neighbor lists is the correct grammar for this.

I mean does it break all the API?

It breaks the API for functions containing neighbors_list, i.e. System.get_neighbor_list, or MetatensorAtomisticModel.requested_neighbor_lists.


Reader documentation says it is a binary reader

I believe this comment about being a binary reader is out-of-date.
https://github.com/amazon-ion/ion-rust/blob/6f04a8e3e9cbc62d56c7d46eb12563773b8baa08/src/lazy/reader.rs#L13C5-L13C20

Fixed by #830.


Increment sequence number upon addition

I create dictionary self.todo having key sequence whose initial value is 0 and increment by 1 and saved when file is revised.

continued at #138


BOM Showing Two Prices When Only One Price Has Any Quantity

I have a BOM with a sub-part that has three items but two of the items have a quantity of zero (0). Here is the BOM:

The item in question is the last line of the BOM screenshot.
And here is the sub-part:

How do I fix this so there is only one price showing?
--Larry

The BOM of the original post shows the wrong sub-part. Here is the same BOM with the correct sub-part item, again the last line of the screen shot:

--Larry

@LarryJoy under the part detail view for 10049-104, what is in the Suppliers tab?
I suspect that there multiple prices from different suppliers...

Here is the Suppliers tab:

Yes, there are three suppliers with each having a price breakdown of 1 @ whatever $ price per each USD. However, see my original post that shows the Stock tab wherein the first two items have a quantity of zero (0) and a notation of "Depleted". Why is InvenTree picking up the price for the zero quantity items and what do I need to do to make it work correctly? I would say that this is a bug in the program.
--Larry

@LarryJoy The price breaks still apply regardless of the quantity you have in stock (eg. one may still want to use the cheaper part in the BOM, and be aware about it). With a single supplier part, you would get one single price. It is not a bug, it's by design.

Okay, I understand your reasoning. However, by the time I would go back to purchasing from supplier(s) with present zero stock in inventory, the price is most likely to be different, and most likely would be an increase in price. As I see it I would have to keep a separate spreadsheet of the BOM to figure single prices for the sub-parts for figuring the cost of materials (COGS) to credit the Inventory account. How does your company handle this accounting?
--Larry

However, by the time I would go back to purchasing from supplier(s) with present zero stock in inventory, the price is most likely to be different, and most likely would be an increase in price.

This would be the case for any supplier part, not only part with no stock.
One way to always have up-to-date price breaks would be to pull those from your supplier (API / web scrapping) and push them to InvenTree via the API or Python interface.
For Ki-nTree I am actually planning on pulling price breaks from Digi-Key and adding them to the supplier part. As for keeping those synced to Digi-Key, I have not put too much thoughts on that yet.

Okay, you didn't answer the question of how your company keeps track, so it looks like it would be a bunch of manual calculations using a separate spreadsheet.
--Larry

you didn't answer the question of how your company keeps track

I work with different companies and processed are done differently. For the one that use InvenTree, we don't have pricing with our setup yet.

Pragmatically, the only way to keep the prices of supplier parts synced is to periodically change the prices in the SupplierPart objects to match the actual price.
This could be done programatically with access to an API for an external supplier (e.g. DigiKey)
You could have a script which periodically queries the external supplier for pricing information on each part supplied by that supplier. This would vary from supplier to supplier, and would be a lot of work to implement (but would certainly be possible!)
Obviously you could also manually update pricing, but this gets very tedious.
If there's a third option I'm not considering, please let me know.

@SchrodingersGat I don't understand why you would want to sync the price in the SupplierPart object as the current pricing would only be used when issuing a purchase order and does not affect the cost of the part presently in stock/inventory. Let's go through an initial cycle:
•You set up an engineering/design BOM in a spreadsheet and then produce a manufacturing/purchasing spreadsheet.
•You look at suppliers and pricing and enter this information in the purchasing spreadsheet.
•You order the parts.
•When the parts come in you take the cost of the parts and add the cost of shipping, handling, taxes, tariffs, etc., as applicable, for each part. (I have a small spreadsheet program that I enter the costs in and it does the math.)
•You take the revised, increased, cost of each part and enter it into the InvenTree Stock information.
•When you do an InvenTree BOM the total cost calculated for the part/assembly becomes the cost of the material or Cost of Goods Sold (COGS) and this amount would be a credit to the Inventory account, which lowers the value of the Inventory.
•I use the First In First Out accounting method and so the cost/price of each part stays the same until depleted.
When it comes to reorder time:
•You don't use the InvenTree Source pricing because it pertains to what you have in stock. Your Purchase Order has to be the supplier's current pricing.
•And again, when the parts come in you have to figure the total cost for the part and enter the information as a separate line item in the SupplierPart object.
Anyway, that is how I see it.
@LarryJoy

@LarryJoy I think you have outlined a shortcoming of what the InvenTree system currently does.
Prices are tracked against each SupplierPart which should track how much a certain part costs at a given quantity. However, when you actually buy the parts (with a purchase order) the system does not track how much you actually paid for that particular StockItem.
I think this would be a very important thing to do, then you can actually know the cost of stock-on-hand
I have opened a new issue to implement this feature.

@LarryJoy InvenTree can now track the purchase price of individual stock items as outlined in the linked issue above.
Has this issue been addressed to your satisfaction?

@SchrodingersGat Just wanted to acknowledge that you have revised the program and that it will take me a few days to work through the update to see how it is working. I'll report back later.
--@LarryJoy

@SchrodingersGat I updated my InvenTree and it is now at V 0.1.5 pre. I have several questions on how this works now.

All of my parts I entered previously with a price break of one at a total cost per each (listed cost plus shipping, handling, taxes, tariffs, etc. as applicable). Is this the proper way to do it? There are other price breaks. To see the total cost of a BOM you go to the $ icon, which has Part Pricing and then Unit Cost with a Min and Max amount. Okay, I understand that comes from multiple suppliers with different costs.
•You build an assembly and put it in Finished Goods. Where do you go to find or enter the cost of the assembly? For me it is just the cost of the parts but for others they are going to want to add the allocated cost of manufacturing.
•For a BOM that I have there is the price column that shows one price "to" a second price. If I only want one price how do I do that? For instance if I have an assembly that uses a qty of 4 of an item (sub-part) and I have a qty of 2 at one price and a qty of 10 at another price I would figure the price per each for 4 parts that would be equal to 2 times the first price plus 2 times the 2nd price. Leaving a qty of 8 at the 2nd price.
Where do I go or what do I do to find the total cost of inventory?
--@LarryJoy

@SchrodingersGat I don't think there is a way to merge parts price tag during purchase order to build order and automatically associate a final price tag to assembly when created as a stock item?

I'm having trouble understanding what you are asking here - can you expand on this a bit for me?

Sure sorry I just re-read myself and indeed it's confusing.
I was trying to say is:

Part A and B price is set from purchase order
Part C (assembly) BOM uses both Part A & B and gets built/stocked using a build order
Can we get the price of part C be linked to Part A & B from the original purchase order?

That would basically be considered a costed BOM, but from purchase order price data instead of supplier part data.
And it would be for the stock of Part C, not the part itself.

Ah, the "cost of manufacture" of that stock item, or the "sum of component costs". That makes sense.
Will be pretty complex to implement, I think. But I think it would be a good thing to implement.

Those are the right words, yup.
However I think this goes out of the scope of this issue, I would request @LarryJoy to open a new one if still interested in this feature.

@LarryJoy does this error still occur with the current stable/master?


feat(api): Add automatically connect option

If set to false, the API server will not automatically call connect. This can used to change options after construction of the client or only connect on some instances when sharded.

Yeah, that's better. Thanks.

@sapphiredev pack


fix: remove the cel expressions in the push pipelines

remove the cel expressions in the push pipelines so that they always run on any push to the release branch.

As noted elsewhere, this should be OK as-is.


API Protection Policy in AS3 - Feature Request

ISSUE TYPE
- Feature Idea

AS3 BUILD/ VERSION
Feature idea to attached an API Protection policy to an AS3 controlled VIP, this will be a first building block for attaching an APM in a lifecycle with API's

BIGIP VERSION
14.1 support will be needed as this feature is 14.1 introduced

SUMMARY
API Protection was introduced in version 14.1, this allows users to import an OpenAPI spec file and have APM build around this, attaching this created policy in AS3 will allow us to start to build solutions around API protections from a programmatic standpoint.

Starting with this scenario will also allow us to stick API protection into AS3 devices with container services (CIS)

@grahamalderson, @MattDierick & @chen23 for visability

Thank you for your feedback. It has been passed along to the decision makers.

Tracked internally as 918.

This is an excellent idea, and one that many of my customers would embrace!

This issue was lost in an issue tracker migration. I have added it back to our internal product backlog as AUTOTOOL-1965.

This was resolved in the 3.26.0 release.


Make cache impl module

Needs to make redesign cache adapter to cache module
This module should implement write and read operations

NodeKit


(JS) Not detecting .find function

Describe the issue
Having something like this:
  const optionToSelect = $options.find(item => item.text ===text);

The class="hljs-keyword" gets applied to the whole  optionToSelect = $options.find( without separating the find function.
Picture:

Which language seems to have the issue?
Javascript.
NOT using auto-detection
Are you using highlight or highlightAuto?
I'm using a WordPress plugin using Highlight.js on the server side.
Sample Code to Reproduce
This is how jsfiddle shows it:

This is how Prism.js shows it:

-->
Expected behavior
It should look more like this:

You are reading the developer tools wrong.  span.keyword is correctly wrapping ONLY the const, as it should.

Please take another careful look using the latest version of the library.  If you still feel there is a problem a jsfiddle that provides a reproducible example using the latest library would be great appreciated.
Also using a different theme might help... not all themes choose to highlight all tokens.
And if some portion of your issue here isn't "this is broken" but rather "it should look nicer" that would be a duplicate of #2500.

Yeap, the problem is on the PHP port rather than on highlight.js
Thanks for your insights!
I've opened and issue on the repository of the PHP port.


upgrade abis 12 dep

canary 6 should be the version published from core contracts 12 .alfajores tag commit

PR-Codex overview
This PR updates the version of @celo/abis-12 dependency in the contractkit package from 12.0.0-canary.2 to 12.0.0-canary.6.
Detailed summary

Updated @celo/abis-12 dependency version to 12.0.0-canary.6
Updated resolution and checksum for @celo/abis-12
Updated dependencies in contractkit package to use<EMAIL_ADDRESS>

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

no need to do that, it'll be updated here


plan shows changes when no code has been modified

I have issues with infrastructure changes showing up when the code has not been modified.
I'm submitting a...

[X] bug report
[ ] feature request
[ ] support request - read the FAQ first!
[ ] kudos, thank you, warm fuzzy

What is the current behavior?
After creating an EKS cluster successfully. Immediately after (without changing code) I run plan, apply again and it shows tags being removed on vpc and subnets that were previously added during create.
e.g.:
# module.network.aws_subnet.private[0] will be updated in-place
  ~ resource "aws_subnet" "private" {
      ~ tags                            = {
          - "kubernetes.io/cluster/mycluster" = "shared" -> null
            "kubernetes.io/role/internal-elb" = "1"
        }
    }

  # module.network.aws_subnet.private[1] will be updated in-place
  ~ resource "aws_subnet" "private" {
      ~ tags                            = {
          - "kubernetes.io/cluster/mycluster" = "shared" -> null
            "kubernetes.io/role/internal-elb" = "1"
        }
    }

  # module.network.aws_vpc.this[0] will be updated in-place
  ~ resource "aws_vpc" "this" {
      ~ tags                             = {
          - "kubernetes.io/cluster/mycluster" = "shared" -> null
        }
    }

In addition to this, I had a case where only adding more EKS log types to the array in my variables file caused all the above changes plus the following:
e.g.
  # module.eks.aws_iam_role.cluster[0] will be updated in-place
  ~ resource "aws_iam_role" "cluster" {
        arn                   = "somearn"
      ~ assume_role_policy    = jsonencode(
          ~ {
              ~ Statement = [
                    {
                        Action    = "sts:AssumeRole"
                        Effect    = "Allow"
                        Principal = {
                            Service = "eks.amazonaws.com"
                        }
                        Sid       = "EKSClusterAssumeRole"
                    },
                  - {
                      - Action    = "sts:AssumeRole"
                      - Effect    = "Allow"
                      - Principal = {
                          - AWS = "somearn"
                        }
                      - Sid       = "EKSClusterAssumeRole1"
                    },
                ]
                Version   = "2012-10-17"
            }
        )

  # module.eks.kubernetes_config_map.aws_auth[0] will be updated in-place
  ~ resource "kubernetes_config_map" "aws_auth" {
        binary_data = {}
      ~ data        = {
            "mapAccounts" = jsonencode([])
          ~ "mapRoles"    = <<~EOT
              - - groups:
              -   - system:masters
              -   rolearn: <arn_xxx>
              -   username: deploy
              - - groups:
              -   - system:masters
              -   rolearn: <arn_yyy>
              -   username: k8sadmin
              - - groups:
              -   - system:bootstrappers
              -   - system:nodes
              -   - system:node-proxier
              -   rolearn: <arn_fargate>
              -   username: system:node:{{SessionName}}
              + - rolearn: <somearn>
              +   username: system:node:{{EC2PrivateDNSName}}
              +   groups:
              +     - system:bootstrappers
              +     - system:nodes
              +
              + - "groups":
              +   - "system:masters"
              +   "rolearn": <arn_xxx>
              +   "username": "deploy"
              + - "groups":
              +   - "system:masters"
              +   "rolearn": <arn_yyy>
              +   "username": "k8sadmin"
              +
            EOT

why would any of this be affected by a simple variables change?
If this is a bug, how to reproduce? Please include a code sample if relevant.
After creating EKS cluster, immediately run plan apply again.
What's the expected behavior?
No changes show up.
Are you able to fix this problem and submit a PR? Link here if you have already.
Environment details

Affected module version: 9.0.0
OS: osx 10.14
Terraform version: 12.21

Any other relevant info

your difference in plan is caused because EKS (in general this requirement incoming from K8s upstream)  require a special tags on subnets which are documented here:
https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html
if those tags dont exist AWS EKS will create them automatically (so you don`t require adding them to your initial VPC terraform code), but later this is causing this plan difference. Removing those tags by applying plan can cause problems as EKS will loose knowledge which subnets can use and break it.
To workaround it you can use lifecycle in terraform VPC code which will ignore such changes or simply include those tags in code which is creating your VPC and subnets.
If you are using VPC module from https://registry.terraform.io/modules/terraform-aws-modules/vpc/ then you can make it similar to:
locals {
  eks_tags              = { "kubernetes.io/cluster/kubernetes" = "shared" }
  eks_internal_elb_tags = { "kubernetes.io/role/internal-elb" = "1" }
  eks_external_elb_tags = { "kubernetes.io/role/elb" = "1" }
}

module "vpc" {
  # https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/2.25.0
  source                       = "terraform-aws-modules/vpc/aws"
  version                      = "2.25.0"
  name                         = "kubernetes"
  cidr                         = var.vpc_cidr
  azs                          = local.availability_zones
  private_subnets              = var.subnets[*][0]
  public_subnets               = var.subnets[*][1]
  vpc_tags                     = local.eks_tags
  public_subnet_tags           = merge(local.eks_tags, local.eks_external_elb_tags)
  private_subnet_tags          = merge(local.eks_tags, local.eks_internal_elb_tags)
  tags                         = local.common_tags
}

i had the external/internal tags but somehow i missed the shared tags. thanks for this! i think this will address that issue but still concerned about the other changes that showed up after adding the additional log types.

This is the section of the aws-auth that's actually changing:
              - - groups:
              -   - system:bootstrappers
              -   - system:nodes
              -   - system:node-proxier
              -   rolearn: <arn_fargate>
              -   username: system:node:{{SessionName}}
              + - rolearn: <somearn>
              +   username: system:node:{{EC2PrivateDNSName}}
              +   groups:
              +     - system:bootstrappers
              +     - system:nodes

Are you using fargate? Looks like you're saying the fargate role is being replaced by the module's default EC2 node role. I wonder if there's some special fargate magic we need to add to the module?
Not sure about the AssumeRole section that is being removed. "somearn" isn't very descriptive 🙂 . Is it also fargate related?

correct, using fargate. sorry, i could have obscured those better but iirc that "somearn" was not related to fargate. i've tried reproducing this again and not having luck. if i run into it again i will let you all know. thanks again for the help.


Rails doc

 rails example app

This is good but its missing the high level goal and advantage of developing and deploying Rails apps with Convox.
Some things that I see:

No configuration. Let Convox pick the things that make rails run best vs writing a bespoke docker file.
Batteries included. Local SSL, X_FORWARDED_FOR header, etc.
True dev/prod parity
More customization options. Free to add a system packages or build steps to the Dockerfile. Can bring your own docker-compose / Dockerfile if you truly know what you are doing.

I often wonder if its helpful or powerful to remind people of the alternatives... In no particular order.

Docker / docker-compose on their own have way too many knobs
Heroku / Cedar / multi-buildpack can be very hard to customize
Elastic Beanstalk explicitly locks you into AWS

Looks good. Another big part of getting started with a Rails app is configuring the database? I think we should at least link to the Postgres service doc here. Should convox init also generate a docker-compose.yml with a linked Postgres container? I think that would be pretty slick.


Support windows terminal to be run with different user credentials.

Description of the new feature/enhancement
It would be a massive plus to have the ability to run Windows Terminal under the security context of a user other than the one logged into windows.

Microsoft recommend "Seperate accounts" for users that need to perform actions that require "privileged access", this means that I have 2 active directory accounts at work.
<EMAIL_ADDRESS>and<EMAIL_ADDRESS>I log into my computer as<EMAIL_ADDRESS>every day.
A lot of the terminal work that I do day to day involves me launching pwsh as<EMAIL_ADDRESS>and running commands from there so that I can have "privileged access" to the required resources.
Try as I might I can not find away of launching windows terminal when logged in as<EMAIL_ADDRESS>under the security context of<EMAIL_ADDRESS>This issue is basicly the same as https://github.com/microsoft/terminal/issues/3534 which was closed as it "looks like a /dupe of https://github.com/microsoft/terminal/issues/632".  However those 2 issues are clearly not duplicates so thought I would create another one.
Thanks in advance :)

You're right, #3534 probably shouldn't be duped to #632. The more correct dupe would be #4217, which is tracking this dependency with the store team.
Thanks!
/dup #4217

That does indeed look like a better dupe, thanks @zadjii-msft  will follow that one.

FYI, I found a workaround for this by running the application as-is, and then just modifying the JSON config file to include entries to spawn powershell sessions as another user.
Note that this will not get the new session to run a new tab, rather, it will launch a new window. It DOES work however as available drop-down options. Would be nice to see this baked into the application.
Add new entry(ies) to your settings.json file, in the vein of the below examples:
        {
            // "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "name": "PowerShell 7 (Privileged account)",
            "commandline": "C:\\Windows\\System32\\runas.exe /savecred /user:domain\\my_privilegedacct \"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
            "hidden": false
        },
        {
            // "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "name": "Windows PowerShell (Privileged account)",
            "commandline": "C:\\Windows\\System32\\runas.exe /savecred /user:domain\\my_privilegedacct powershell",
            "hidden": false
        },

FYI, I found a workaround for this by running the application as-is, and then just modifying the JSON config file to include entries to spawn powershell sessions as another user.
Note that this will not get the new session to run a new tab, rather, it will launch a new window. It DOES work however as available drop-down options. Would be nice to see this baked into the application where instead of opening a new window, it will just open in-place as a new tab instead.
Add new entry(ies) to your settings.json file, in the vein of the below examples:
        {
            // "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "name": "PowerShell 7 (Privileged account)",
            "commandline": "C:\\Windows\\System32\\runas.exe /savecred /user:domain\\my_privilegedacct \"C:\\Program Files\\PowerShell\\7\\pwsh.exe\"",
            "hidden": false
        },
        {
            // "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "name": "Windows PowerShell (Privileged account)",
            "commandline": "C:\\Windows\\System32\\runas.exe /savecred /user:domain\\my_privilegedacct powershell",
            "hidden": false
        },
        //other entries etc as you see fit

This works but it really is not an answer. Why bother opening Windows Terminal if I am just getting a new command window when I need to operate as my Admin account.
As of now,, Windows Terminal is just not useful for administering Windows systems with Powrshell.

Grant users full control access to the application folder, and you are good to go.  Note: the system account (e.g. psexec -s ) is required to modify the ACLs, and you'll have to make the change after each update.  I wrote a simple script to do this for me, and created a couple desktop icons I can easily update/right-click-RunAs when needed.  It grabs the logged on user account,  but can be tweaked use whatever account name you like.
@echo off & pushd %~dp0
	if not "%username%" == "%computername%$" echo This script must be run with the system account! & goto:eof
	echo ++ Configuring permissions for Windows Terminal
	for /f "tokens=1,2,*" %%a in ('tasklist /FI "IMAGENAME eq explorer.exe" /FO LIST /V') do if /i "%%a %%b"=="User Name:" set _loggedOnUser=%%c
	echo ++ Resetting ACLs for username: [%_loggedOnUser%]
	echo ++ Getting latest application folder and exe paths...
	set _winAppsDir=%ProgramFiles%\WindowsApps
	:: Update folder version number when needed
	for /f "tokens=*" %%i in ('dir "%_winAppsDir%\Microsoft.WindowsTerminal_1*" /on /b') do set   _winTermDir=%_winAppsDir%\%%i
	set _winTermExe="%_winTermDir%\WindowsTerminal.exe"
	echo ++ Windows Terminal Directory: [%_winTermDir%]
	echo ++ Setting permissions...
	icacls "%_winTermDir%" /grant %_loggedOnUser%:(OI)(CI)(F) /T
	echo ++ Path to executable: [%_winTermExe%]
popd
:eof

If you're going to mess with the permissions in system folders, you would be much better off just extracting the msixbundle like a zip file and using WindowsTerminal.exe directly. It'll be much less of a headache and runs less risk of making the application installation service upset with you.

As a workaround for the time being, for those wanting a powershell window as another user, I use the following:
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -Command "enter-pssession -credential (Get-Credential """$env:username.admin""") -computername """localhost""""
In our environment we use a ".admin" suffix so I append that to the current username, but that can obviously be changed to whatever.
This requires the "Run this profile as Administrator" to be checked for the profile, and because of that, if you don't want it to open in a new terminal window, make sure you're default profile is also set to "Run this profile as Administrator". Windows terminal doesn't allow you to mix elevated and non-elevated profile/terminals in the same window. There's a little shield icon that shows in the top-left of the terminal window to indicate whether it's an elevated window or not.

I forget to add "-NoExit" to the above command example. Should be:
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command "enter-pssession -credential (Get-Credential """$env:username.admin""") -computername """localhost""""

Also you'll run into credential double-hop issues so accessing network resources may be a problem. Native support for this is definitely a needed feature.

I am in the identical situation as the original poster with normal/admin accounts at work and would love to see this as well. This would certainly make my day-to-day much easier.

I also wanted to chime in on this.  Having the terminal application be more like a built in for all users instead of user based would be a huge plus.  We remote into multiple machines to assist users, not being able to launch terminal as a user that's never logged into a machine before would be fantastic, but given the state of terminal, it's basically useless for our purposes which is sad because I really love terminal

I mean, as of Windows 11, it is a built-in app for all users 😉

I forget to add "-NoExit" to the above command example. Should be:
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command "enter-pssession -credential (Get-Credential """$env:username.admin""") -computername """localhost""""

Also you'll run into credential double-hop issues so accessing network resources may be a problem. Native support for this is definitely a needed feature.

slight tweak
"C:\Program Files\PowerShell\7\pwsh.exe" -NoExit -Command "enter-pssession -credential (Get-Credential -username domain\admine_account) -computername """localhost"""
the triple quotes cuased it to throw a fit


[ENH] Using Py_IS*

In Python 3.10, APIs have been added for is, is None, is True, is False as seen here. Given this wonder if it makes sense to start using these in Cython as well. Perhaps with a fallback for earlier Python versions (maybe using macros).
ref: https://bugs.python.org/issue43753

Sounds good to me.
Given that these are macros, they are easy to backport with #if PY_VERSION_HEX < 0x030A00B1 && !defined(...).
Searching for Py_None (or == Py_None) etc. will probably make it easy to update the obvious usages. However, replacing the usage code ... is None etc. is a bit more work since is operator and None constant value are two different syntax nodes. I guess the is operator could just special case these.
PR welcome.

I recently learned from @timfel that it could help the GraalPython project if we used these macros. So we should really migrate towards them.

Is there a big advantage to them from Py_IsNone vs Py_Is(x, Py_None)? Just asking because (as you say) it's a slightly tricky bit of special casing.

Ah, sorry, I misremembered the purpose of this ticket. GraalPython would benefit from Py_IS_TYPE(), which was already added in Py3.9, or basically from anything that avoids direct access to PyObject struct fields. That does not apply here.


feat: change default hi_res model to yolox quantized

refactor the way to set default model for hi_res mode for image and pdf partition into a function that is callable and returns either an env varaible or a default model
this keeps the current pattern for setting the default hi_res model
change the default model name from detectron2_onnx to yolox_quantized
the new default mode has better recall for tables and richer categories for partitioned elements than detectron2

please review comments here for the ingest diff eval: https://github.com/Unstructured-IO/unstructured/pull/1618

LGTM, however, I would like to count with the metrics to make this change (not necessarily a blocker). I was able to manually found a lot of the text of the previous model in the new ingest tests.

actually do we have gold label for those ingest test documents? if not maybe that is something we should have even before generating metrics


Logger.context can not handle generators:

In [1]: @_logger.context('my-ctx', indent='my-indent')
   ...: def my_generator():
   ...:     _logger.info('before yield')
   ...:     yield
   ...:     _logger.info('after yield')
   ...:

In [2]: for _ in my_generator():
   ...:     pass
   ...:
17:42:19|INFO1|IdanArye                 |  ├───┮ my-indent
17:42:19|INFO1|IdanArye                 |  │   ╰╼DONE in no-time (my-indent)
17:42:19|INFO |IdanArye                 |  │ before yield
17:42:19|INFO |IdanArye                 |  │ after yield

Nor does it handle context managers:
In [1]: @_logger.context('my-ctx', indent='my-indent')
   ...: @contextmanager
   ...: def my_cm():
   ...:     _logger.info('before yield')
   ...:     yield
   ...:     _logger.info('after yield')
   ...:

In [2]: with my_cm():
   ...:     pass
   ...:
17:46:30|INFO1|IdanArye                 |  ├───┮ my-indent
17:46:30|INFO1|IdanArye                 |  │   ╰╼DONE in no-time (my-indent)
17:46:30|INFO |IdanArye                 |  │ before yield
17:46:30|INFO |IdanArye                 |  │ after yield


Failed to run on colab

I try to compile convnet_cuda in colab (gpu)
error:
/root/go/src/gorgonia.org/gorgonia/cuda.go:141:23: v.Pointer undefined (type Value has no field or method Pointer)
/root/go/src/gorgonia.org/gorgonia/cuda.go:186:48: v.Pointer undefined (type Value has no field or method Pointer)
/root/go/src/gorgonia.org/gorgonia/cuda.go:199:24: retVal.Pointer undefined (type Value has no field or method Pointer)
/root/go/src/gorgonia.org/gorgonia/vm_tape_cuda.go:190:45: dv.d.Pointer undefined (type Value has no field or method Pointer)
/root/go/src/gorgonia.org/gorgonia/vm_tape_cuda.go:197:25: dv.d.Pointer undefined (type Value has no field or method Pointer)
/root/go/src/gorgonia.org/gorgonia/vm_tape_cuda.go:227:50: from.Pointer undefined (type Value has no field or method Pointer)
/root/go/src/gorgonia.org/gorgonia/vm_tape_cuda.go:232:20: to.Pointer undefined (type Value has no field or method Pointer)

cudatest:
CUDA version: 11020
CUDA devices: 1

Device 0
========
Name      :	"Tesla T4"
Clock Rate:	1590000 kHz
Memory    :<PHONE_NUMBER>6 bytes
Compute   : 	7.5

go version: 1.16.4
https://colab.research.google.com/drive/1TM2mjQvvO0gS5JFpU_NJPyR6p473LCLr?usp=sharing

Wow. I didn't realize that this could work on Colab. Let me look into it

Wow. I didn't realize that this could work on Colab. Let me look into it

Thank you.I don't have NVIDIA equipment,it's very depressing.

@chewxy Hello~ Is there any progress on this issue?

This seems to be a versioning issue. Will send a fix in a bit


Examples issue

use Rhumsaa\Uuid\Uuid;   should be change to use Ramsey\Uuid\Uuid;

In the 2.8 branch, it should remain Rhumsaa\Uuid\Uuid. In the master branch, it should be Ramsey\Uuid\Uuid. Which branch are you looking at?

3.0@dev

Can you link to the specific line where you see this? I can't find it anywhere in the master branch.

I'm having this same issue with 2.8.
Using
use Rhumsaa\Uuid\Uuid;
use Rhumsaa\Uuid\Exception\UnsatisfiedDependencyException;

Worked using version 2.8, wrote a note for myself to upgrade to Ramsey\ when 3.0 is done

Same here, just pulled in latest stable with Composer. Example doesn't match the latest version (2.8.1)

PR anybody?

There doesn't need to be a PR for this. The README in the master branch is correct.
I have set the default branch on GitHub to 2.8. Does this resolve the issue?

yes, thanks!

:+1:

Note: related to #65 and #66.


Tensorflow 0.9 compatibility

Refactored to work with TF 0.9 and retrieve TF 0.9 in the .travis.yml
Haven't looked at why Python 3.4 build is failing on Travis yet.

Thanks! Do you think you can fix Python 3.4?

Sure thing! I'll have a look at it after work.

+1 without this the code will not run.

Wonderful!