direnv loads too late sometimes

direnv doesn't add itself to the front of the post-command-hook meaning other things get to run before direnv has set up the environment.
One example is a haskell/stack project directory, where flycheck cannot find the executables because it runs before direnv has updated the PATH.
Cc: @bkchr

That is the way I solved it for setup.

this packages uses:
  (add-hook 'post-command-hook #'direnv--maybe-update-environment)

which puts it at the beginning:
(add-hook HOOK FUNCTION &optional APPEND LOCAL)
...
FUNCTION is added (if necessary) at the beginning of the hook list

but packages loaded later may use the same pattern, causing direnv to get push further down.
perhaps this package could try to move its own hook to the front all the time.

Thanks for the pointer @bkchr and that does indeed solve the flycheck issue but it is a workaround specific to flycheck and a proper fix for direnv would be very neat.

Yeah a proper fix would be better :) I already do this "hack" for flycheck and the lsp-mode.

actually i am not convinced what the right "fix" is tbh, since i do not fully understand the actual issue here.
for instance, i use direnv with python and virtualenvs which also contain linters (flake8) and i have never experienced issues even though the flycheck linter requires the PATH to be set up for the project.

The right fix would something that runs direnv directly after switching to the buffer, before any minor/major mode hooks are called. For example the lsp mode starts are server after entering a buffer and to start the server it needs to know the location of the executable. So, the executable of the server is searched when the major-mode is loaded and that is before direnv has setup the environment.

ok. if you know the right trick/hook (if it exists at all) to get direnv to run at the right time, lemme know, because i have no idea apart from post-command-hook which is already a bit aggressive...

Maybe change-major-mode-hook could be used? I think that post-command-hook is still required for buffers without a major mode, but I'm not sure.

but that hook is definitely not good enough to cover the main use case of this package: when switching between files (buffers, windows, frames) the env needs to keep "in sync" with the current file.
perhaps both could work?  can you try adding direnv--maybe-update-environment to change-major-mode-hook and see how that works out?

 However using @bkchr 's workaround:
(use-package direnv
  :config
  (direnv-mode))

(use-package flycheck
  :init
  (global-flycheck-mode)
  :config
  (setq flycheck-executable-find
        (lambda (cmd) (direnv-update-environment default-directory) (executable-find cmd))))

(use-package flycheck-haskell
  :hook (haskell-mode . flycheck-haskell-setup))

(use-package haskell)

flycheck-haskell works as expected.

what happens when you also add direnv to find-file-hook? (without "patching" flycheck)?

Same issue:
(use-package direnv
  :hook ((find-file flycheck-before-syntax-check) . direnv-update-environment)
  :config
  (direnv-mode))

(use-package flycheck
  :init
  (global-flycheck-mode))

(use-package flycheck-haskell
  :hook (haskell-mode . flycheck-haskell-setup))

(use-package haskell)

In case any of you are using this with spacemacs, the trick to get everything to pay nice was to modify
dotspacemacs/user-env
from:
(spacemacs/load-spacemacs-env)
to
(require 'dotenv)
(dotenv-update-environment)

Then you end up with a proper environment.

@peterhoeg what's dotenv and what does (dotenv-update-environment) look like?

(direnv-update-environment), sorry...

I was having the same issue with lsp-mode and python recently and what I did was to add a before advice as follows:
(use-package direnv
 :config
 (direnv-mode)
 (advice-add 'python-mode :before #'direnv-update-environment))

You can probably use prog-mode to make it work with all programming modes.

Shouldn't this work then?
(use-package direnv
  :init
  (add-hook 'prog-mode-hook #'direnv-update-environment)
  :config
  (direnv-mode))

@hakanserce @peterhoeg would before-hack-local-variables also work?
(add-hook 'before-hack-local-variables-hook #'direnv-update-environment)

if so, perhaps that should be default for direnv-mode?

Ohhh, didn't know about that one. Looks much more appropriate!

i've openend #54 to use hack-local-variables-hook from direnv-mode by default. please try it out and report back.

Based on @wbolster's suggestion, this works for me:
(use-package direnv
  ;; Ensures that external dependencies are available before they are called.
  :hook (before-hack-local-variables . #'direnv-update-environment)
  :config
  (add-to-list 'direnv-non-file-modes 'vterm-mode)
  (direnv-mode 1))

FWIW, none of the above solutions (tried with both (advice-add 'python-mode :before #'direnv-update-environment) and (add-hook 'before-hack-local-variables-hook #'direnv-update-environment)) worked for me, and I just resorted to using this for loading lsp:
(add-hook 'prog-mode-hook
          (lambda () (progn (direnv-update-environment) (lsp))))

I encountered the problem for the first time today in a Haskell project that uses direnv and lorri. The HIE LSP suddenly started too early and used a wrong compiler version.
The fixes above did not work for me, but I found another (very strange) workaround. Instead of starting my emacs session (I use the daemon and only tested it with the TTY emacsclient) like this from the project directory:
emacsclient --some-flags src/MyFile.hs
I found that just starting emacs from within my home directory like this solves the problem:
emacsclient --some-flags my-projects/blafoo/src/MyFile.hs
I don't know why, but simply starting from another directory helps other people too. I'd love an explanation though :D

I'm guessing you have .envrc file somewhere between $HOME and blafoo that gives you a new environment.

No, I just started using direnv and the .envrc file in this particular project is in fact the single .envrc file on this machine (except for some clones of it inside the nix store at /nix/....).
But I'm fine with it now since the workarounds are so easy.

with #54 merged i will close this issue...
let's see how it works out for the many people who commented here 😬 🤞

I'm running into this issue where lsp-mode isn't playing nice, with the before-hack-local-variables-hook solution not working. Specifically, in my situation, I only have the analyzer installed inside the direnv, which means that lsp-mode tries to install it, which I don't want.
It looks like that runs so early that (current-buffer) is still nil, which means direnv can't figure out where the direnv is. I was able to solve this via (advice-add 'lsp :before #'direnv-update-environment). Unfortunately, I don't know enough about the guts of emacs to be able to say where the right place to set up direnv is here.

(use-package direnv ; direnv integration
  :after lsp
  :delight 'direnv-mode
  :config
  ;; Ensures that external dependencies are available before they are called.
  (add-hook 'prog-mode-hook #'direnv--maybe-update-environment)
  (setq direnv-always-show-summary nil)
  (direnv-mode 1))

I switched from a Rustic advice to a hook and got back rolling.  I like the use of prog-mode-hook since it will fix a lot of issues with similar mechanism

The prog-mode-hook approach doesn't seem to work for me (tested with rustic and rust-analyzer), but the advice-add on lsp does. I'm on GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) (built yesterday).

I must admit that I've taken the easy way out - disabled emacs-direnv and then simply launch an emacs instance per project. Regular file editing goes via the daemon but everything else is a project specific instance.


[Bug]: vllm v0.6.0 profiler report GPUExecutorAsync object has no attribute '_run_workers' on ROCm and NV H20

Your current environment

The output of `python collect_env.py` on ROCm
Collecting environment information...
WARNING 09-11 03:28:33 rocm.py:17] `fork` method is not supported by ROCm. VLLM_WORKER_MULTIPROC_METHOD is overridden to `spawn` instead.
PyTorch version: 2.4.0+rocm6.2.1
Is debug build: False
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: 6.2.41133-dd7f95766
OS: Ubuntu 22.04.4 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.2.0 24292 26466ce804ac523b398608f17388eb6d605a3f09)
CMake version: version 3.27.3
Libc version: glibc-2.35
Python version: 3.9.19 (main, May  6 2024, 19:43:03)  [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-5.15.0-119-generic-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: AMD Instinct MI300X (gfx942:sramecc+:xnack-)
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: 6.2.41133
MIOpen runtime version: 3.2.0
Is XNNPACK available: True
CPU:
Architecture:                         x86_64
CPU op-mode(s):                       32-bit, 64-bit
Address sizes:                        52 bits physical, 57 bits virtual
Byte Order:                           Little Endian
CPU(s):                               256
On-line CPU(s) list:                  0-255
Vendor ID:                            AuthenticAMD
Model name:                           AMD EPYC 9534 64-Core Processor
CPU family:                           25
Model:                                17
Thread(s) per core:                   2
Core(s) per socket:                   64
Socket(s):                            2
Stepping:                             1
Frequency boost:                      enabled
CPU max MHz:                          3718.0659
CPU min MHz:                          1500.0000
BogoMIPS:                             4899.98
Flags:                                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 invpcid_single hw_pstate ssbd mba ibrs ibpb stibp ibrs_enhanced vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local avx512_bf16 clzero irperf xsaveerptr rdpru wbnoinvd amd_ppin cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq la57 rdpid overflow_recov succor smca fsrm flush_l1d
Virtualization:                       AMD-V
L1d cache:                            4 MiB (128 instances)
L1i cache:                            4 MiB (128 instances)
L2 cache:                             128 MiB (128 instances)
L3 cache:                             512 MiB (16 instances)
NUMA node(s):                         2
NUMA node0 CPU(s):                    0-63,128-191
NUMA node1 CPU(s):                    64-127,192-255
Vulnerability Gather data sampling:   Not affected
Vulnerability Itlb multihit:          Not affected
Vulnerability L1tf:                   Not affected
Vulnerability Mds:                    Not affected
Vulnerability Meltdown:               Not affected
Vulnerability Mmio stale data:        Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed:               Not affected
Vulnerability Spec rstack overflow:   Mitigation; safe RET
Vulnerability Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:             Mitigation; Enhanced / Automatic IBRS; IBPB conditional; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Vulnerability Srbds:                  Not affected
Vulnerability Tsx async abort:        Not affected
Versions of relevant libraries:
[pip3] mypy==1.7.0
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.26.4
[pip3] optree==0.9.1
[pip3] pytorch-triton-rocm==3.0.0+rocm6.2.1.b7accf9f07
[pip3] pyzmq==26.2.0
[pip3] torch==2.4.0+rocm6.2.1
[pip3] torchvision==0.19.0+rocm6.2.1
[pip3] transformers==4.44.2
[pip3] triton==3.0.0
[pip3] zmq==0.0.0
[conda] No relevant packages
ROCM Version: 6.2.41133-dd7f95766
Neuron SDK Version: N/A
vLLM Version: 0.6.0@803251987b3530bcb6ebb9bd13858389dc1b0a2d
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
Could not collect
Your output of `python collect_env.py` here

The output of `python collect_env.py` on ROCm
Your output of `python collect_env.py` here

🐛 Describe the bug
To profile LLM, I tried run command  VLLM_TORCH_PROFILER_DIR=/vllm-workspace/vllm/traces/ python -m vllm.entrypoints.openai.api_server --model /path/to/NousResearch-Llama-3.1-8B under vllm v0.6.0 root dir on both AMD GPU and NV GPU.  Both of them reported below error:
INFO 09-11 02:31:38 api_server.py:333] Starting profiler...
INFO:     <IP_ADDRESS>:52216 - "POST /start_profile HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
    return await self.app(scope, receive, send)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in __call__
    raise exc
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/routing.py", line 754, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/routing.py", line 774, in app
    await route.handle(scope, receive, send)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/routing.py", line 295, in handle
    await self.app(scope, receive, send)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/routing.py", line 77, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/starlette/routing.py", line 74, in app
    response = await f(request)
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/fastapi/routing.py", line 297, in app
    raw_response = await run_endpoint_function(
  File "/opt/conda/envs/py_3.9/lib/python3.9/site-packages/fastapi/routing.py", line 210, in run_endpoint_function
    return await dependant.call(**values)
  File "/root/vllm/vllm/entrypoints/openai/api_server.py", line 334, in start_profile
    await async_engine_client.start_profile()
  File "/root/vllm/vllm/engine/async_llm_engine.py", line 1280, in start_profile
    self.engine.model_executor._run_workers("start_profile")
AttributeError: 'GPUExecutorAsync' object has no attribute '_run_workers'

I find a similar issue #8326 , but his report is not same as me.
Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

thanks for catching this case, forgot to handle the multiproc case. For now set --worker-use-ray to use the ray backend and it should work.

thanks @SolitaryThinker , its work for me now. Can I view it as a workaround? if so, Could you pls notify me when you fix this problem?


Color Current Temperature

Is your feature request related to a problem? Please describe.
Current Temperature blends in with the rest of the screen although it is a moving live/hot temperature; it is currently Black
Describe the solution you'd like

If the number is under 40C , blue color  (for number only, Icon and °C could stay same black color)
40-50C, green color
51-200C = yellow color
201C -375 C = Orange color
376- 450C = Red color

remove word  "temperature" and just have CURRENT  as the word "temperature"  is already indicated by Icon  and the °C . I like the smaller font kneel made "CURRENT" since it's a nice reference but doesn't need to pop out so much.

(2) was closed in #48, @River-Mochi perhaps you can ~cross~ it out? (wrap text with ~)


Add a stackFrameFilter argument to SentryClient's capture

This change allows filtering sensitive frames on the client or applying custom truncation logic.
I created this in reaction to this discussion: https://forum.sentry.io/t/issue-in-flutter-project-with-stackframe-display-limit-set-to-250/5014/2
Instead of adding complex truncation options that will likely depend on the frameworks you use anyways, I opted to provide a more general callback that could also be used for things like filtering specific frames. In the case of above discussion, we'd simply cut the list passed to us to only send the topmost 250 items.

I signed it!

Alright, I was wondering about that :D Please tell me once you figured out where the code should go, I also realized that I have the wrong mail address for the CLA in the commit's stamp, so I'll have to replay the changes anyways.

@tom95 The repository has been restore. Could you please rebase to kick off Travis and correct the email address for the CLA bot to recheck it?

I signed it!

Well not entirely sure what's missing now. Mail on the commit should be correctly ending in<EMAIL_ADDRESS>and it's been added to my github account as well. The corporate CLA has also been signed.

Maybe it will help if you open a new PR with a freshly authored commit that contains the correct email? Just guessing.

I signed it!

Hey, what's the status of the PR? Should it be held up by the failing travis build, I am hoping that's just because at the time of the build the CLA was not accepted, at least the log only says "presubmit" failed.


wireless problems: how to revert?

so, this is what happens to me:

everything works, but when i connect to the AP, i don't get any webpage (at the address with port 88)
when i go to localhost:88 on the pi itself, i get the webpage, but don't see any APs
now my WiFi is hosed -- i can't seem to reconfigure back into normal wifi mode.

question: how do i undo everything that this program has done? is there a flag i can use? maybe some uninstall instructions are in order in case the whole installation fails.

Oh snap, that sounds terrible!
What happens when you reboot the Pi after the Wifi being hosed? Worst case, you can update the /etc/network/interfaces file to look like the correct version for your wifi connection at home / work.
Take a look at "./assets/etc/network/interfaces.wifi.template" which should be written to "/etc/network/interfaces".
Hope this helps!

hey sorry for my really delayed reply. first, your fix does work, in terms of bringing back wifi. i'll switch back to your wifi later today and post what happens on reboot. again, sorry for the delay -- i was travelling and not near my pi

No worries at all! Glad that resolves it for you - When I find some time I will get to fixing this in a cleaner way. Could be as simple as a helper script that just does a "reset" to whatever known good "old" state.

yes, that sounds like a good idea. ok, now when i reboot i get this error:
[FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed!
failed!
My IP address is <IP_ADDRESS>
[FAIL] startpar: service(s) returned failure: isc-dhcp-server ... failed!
this is after i've set things back to the way they were. so perhaps restoring to the way they were includes stopping this dhcp server from running at startup? can you point me to where this server is getting inserted in your code?

Check out this file: ./assets/etc/default/isc-dhcp-server.template
And look at how it is used here: https://github.com/sabhiram/raspberry-wifi-conf/blob/master/app/wifi_manager.js#L194

Any update @orcaomar ?

I have the same problem, I reinstalled and executed your app, I can reach the server on the pi itself and try to connect my ssid, it says ap is closed and wifi is enabled, I restarted the pi, changed the /etc/network/interfaces to wifi template but I still have the 'no wireless interfaces found' text. Is there a way to recover this without reinstalling the raspbian os

Hah @hakankaraduman unfortunately I did not spend too much time in the reverse direction since I usually would just replace all the relevant service / config files using this method.

I just experienced this as well. Lots of hours rebooting, modifying files, and enabling/disabling services trying to get my wifi back up and running again. I think that at the very least the old conf files should be backed up before they are overwritten, and there should be a troubleshooting warning about this in the documentation.


app.diagrams.net open file from GitHub getting Repository not found error.

Preflight Checklist

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug
I have my draw io files saved to GitHub reposity. Today it started to stating on the "Select File" prompt with the following
"Repository not found"
I can see my relevant Reposity is private, but Draw.io has read and read write permission to the reposity.
I have cleared the browser cache several times too... but no luck
I am kinda convinced it's a authorization issue... but can't quite nail it down.
To Reproduce
Steps to reproduce the behavior:

Go to 'https://www.diagrams.net'
Click on 'File' then "Open from" then "GitHub"
Authenticate as require with GitHub
In the select file prompt, double click on my drawing repository
My repository opens in the Select File prompt, but with "Repository not found"

Expected behavior
I expected to see all my draw io files in my selected Repository on GitHub (which they are there...)
Screenshots
If applicable, add screenshots to help explain your problem.

draw.io version (In the Help->About menu of the draw.io editor):

draw.io version 21.0.1

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.
If I use the Open from Recent, the drawin field opens fine.
All my drawing files in the Repo main branch, and I have no other branchs in the drawings respository on GitHub.

You haven't initialised the repo.

Same exact issue here. Accessed my repo's files this way last week with no issue. I unfortunately do not have any listed under "Open from Recent," so I cannot open them at all.

We just did a training session and one of my team had the same error. (all other folks on both mac and windows had no problem)
User was on macOS using both safari or chrome in private browsing mode

Thanks for the report. This will be fixed in the next release.

I also ran into this issue and created a new graph that could not be saved to the github repository.I also ran into this issue and created a new graph that could not be saved to the github repository,

Fixed in 21.0.2

Thanks! So how do I get 21.0.2 please? Cann't see any update links from within the app.diagrams.net

Close diagrams.net tabs and load https://app.diagrams.net/clear.html

Thanks, done it. still 21.0.1

Yay! it's working for me now. Many thanks.


Improved text to pdf and extract zip file UI design

Thanks for your support of the project. Please check the below-mentioned points -
What kind of change does this PR introduce?
I have made the UI design of text to pdf and extract zip file pages consistent with the UI design of the home page. And solved issue #166
Documentation updated ?
yes
Checklist

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Links
https://devikavarshney.github.io/Student-portal/Functionalities/Text-to-pdf/index.html
https://devikavarshney.github.io/Student-portal/Functionalities/Extract-Zip/index.html
Screenshots
Text to pdf

Extract file

@shivshankar9 @aakankshabhende Please check this PR.


Unable to set phantomjs capability for a node

I use selenium grid extras of version 1.11.8
I cannot see phantomjs browser option in setting up wizard. So, how can I add this capability to node_5555.json config?

I tried to declare phantomjs such way
{
  "capabilities": [
    {
      "seleniumProtocol": "WebDriver",
      "browserName": "firefox",
      "maxInstances": 3,
      "version": "42",
      "platform": "WINDOWS"
    },
    {
      "seleniumProtocol": "WebDriver",
      "browserName": "phantomjs",
      "maxInstances": 3,
      "version": "",
      "platform": "WINDOWS"
    }
  ],
  "__WARNING__": "THIS FILE IS AUTOMATICA...
  ...
}

but starting jar failed
C:\Selenium.extras>java -jar SeleniumGridExtras-1.11.8-SNAPSHOT-jar-with-dependencies.jar
Checking central Config repository for sele-node-zhant node's config from http://qa1:3000/get_node_config?node=sele-node-1 . (Timeout set to 5000ms)
[node_5555.json, exit_code, error, selenium_grid_extras_config.json, out]
Updated 'node_5555.json' from central config repository
Updated 'selenium_grid_extras_config.json' from central config repository
Exception in thread "main" java.lang.NullPointerException
        at com.groupon.seleniumgridextras.config.capabilities.Capability.getCapabilityFor(Capability.java:72)
        at com.groupon.seleniumgridextras.config.GridNode.loadFromFile(GridNode.java:57)
        at com.groupon.seleniumgridextras.config.Config.loadNodeClasses(Config.java:115)
        at com.groupon.seleniumgridextras.config.RuntimeConfig.load(RuntimeConfig.java:146)
        at com.groupon.seleniumgridextras.SeleniumGridExtras.main(SeleniumGridExtras.java:72)

@Zloy Can you try 1.12.2 ? I think there was a PR related to PhantomJS that went into this release.
Please post back if it is fixed, or if it is still broke.
Thank you!

@smccarthy
Sorry, I cannot try that now as we've switched to Selenium docker

Thanks for the quick reply. I will close this issue and if someone still sees an issue, they can open a new issue for it.


Credential Manifest: support specifying credential data on issuance

Currently we do not add data to a credential upon issuance with Credential Manifest.
This task is to add credential data based on a Credential Application and Issuance Template.

Issuance Templates support adding data to a credential from the data field. All values in the object will be used to populate credential claims as seen below https://github.com/TBD54566975/ssi-service/blob/faa7a9ad62798d1b32692548c0bd109460ae8b94/pkg/service/manifest/response.go#L160-L171
Is this the feature that you're describing? If not, mind providing an example?

whoops, missed that. is it supported without a template, as a part of an operation API?
meaning

set up cred manifest
get an application
need to submit an operation with the data to populate the cred

If not can repurpose the issue for the todo // TODO(gabe) need to add in data here to match the request + schema

Operation is a promise. Users cannot do anything with an operation except wait for it to be finished.
From what I understand, the Review Application endpoint achieves what you are describing with the credential_overrides field.

Closing then, my mistake


harmonic config success message

Right now, harmonic config has the same success message as harmonic init:

Your Harmonic website skeleton was successfully created!
Now, browse the project dir and have fun.

This doesn't make much sense as the skeleton is already in place when the user runs harmonic config.

fixed by e20d315fdefc156abcf0fb879136302600d7c0e3

Good one.


Add leadingFill option for rating components

An alternative approach to #298

pulling out the .singleLeadingFill makes this really clear I think
Thanks, yeah the [String]? I had initially was enough of a code smell to go that extra step for the sake of clarity.


Pass in a callback to load the TypeScript config file [phab:D1575]

Created by zarko at 2017-04-25 17:39:31:
If the config file is in a .kindex, trying to read it
from the local filesystem won't work.

evmar commented inline (context lost during migration) at 2017-04-25 17:51:20:
Alternatively, insert a line before:
if (!loader) loader = (path: string) => fs.readFileSync(path, 'utf8');
might make the expression less complex to read.

evmar accepted this revision at 2017-04-25 17:51:20

zarko wrote at 2017-04-25 18:16:42:

Address comments.

zarko closed via commit 19f829b1b79293e90815d9e2a3f3a7161c96ea87 at 2017-04-25 18:17:04


Project setup: browserslist outdated

I noticed while building websites for the first time in quite a while, the build would fail due to output from caniuse.
I temporarily overrode the errors with:
export BROWSERSLIST_IGNORE_OLD_DATA=1

The permanent solution is probably to periodically update the browserslist, but in a Docusaurus project it's unclear what is actually including it.

@elliot-nelson  I've proposed some action items in this thread: https://github.com/microsoft/rushstack/issues/2981#issuecomment-1753453286
The underlying problem is that, in a large monorepo:

We often don't control the package that depends on caniuse-lite and
We often don't care if it is outdated, despite  caniuse-lite's political mission to pressure everybody to upgrade that one specific NPM package, even though many other NPM packages seem just as important to upgrade.

In the case of the rushstack-websites monorepo, caniuse-lite will get upgraded whenever Docusaurus is upgraded, and no we are not going to guarantee that Docusaurus gets upgraded every 6 months.  It is a timeconsuming upgrade. 😅


gambit help for specific sentence.

need an help on this.
not working :
input to the system : KITAKAMBARA GUN SEIRO MACHI ,USA , 1 , JPN , 23 , 49
gambit : *~5 (,|:) *1 (,|:) * (,|:) *1 (,|:) ** (,|:) **
its not working, can you please help me on this, how to create gambit for the input, the words or numbers can be followed by space and , separating it.
if its without space and separated by commas, its working fine as below.
working :
input to the system : KITAKAMBARA GUN SEIRO MACHI ,USA,1 ,JPN,23
gambit : *~5 (,|:) *1 (,|:) * (,|:) *1 (,|:) **
@benhjames  can you please help me on this.

Hey, this isn't really something SuperScript is designed to do. SS works well with English sentences, but trying to match structured data isn't really a case that it's designed for, particularly with using punctuation as a delimiter.
You may want to try using a trigger filter function, which parses out the parts that you want with a regex. Something like:
+ {^matchesFormat()} *

where matchesFormat is your function that does something like /.*/i.test(this.message.raw).


⚠ PrivateHD has degraded performance

In 617aa23, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 1484 ms

Resolved: PrivateHD performance has improved in 5c6fe5b.


BUG: move to top and chat button hover color does not align with give feedback hover Color

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?

the color of buttons do not change on hovering as it changes in the feedback button
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

This is not required


fix: collect unused dependencies to improve the message when weak optional dependency inactive

What does this PR try to resolve?
Collect the unused dependencies to check whether a weak optional dependency had set. Then we can improve the message when weak optional dependency inactive.
Fixes https://github.com/rust-lang/cargo/issues/14015
How should we test and review this PR?
One commit test added, one commit fixed and updated
Additional information
In https://github.com/rust-lang/cargo/pull/14019 doesn't distinguish whether the dependency had set, which makes the message need to include cases that the weak dependencies missing or inactive.

r? @epage
I'm sorry split the fix into two.  If  https://github.com/rust-lang/cargo/pull/14019 more reasonable and finally merge, this PR can be closed.

@Muscraft would be interested in your thoughts on this approach to solving #14015.
#14019 is an attempt but it lacks the information for a clear message, so this tries to track the additional information to make that happen.
At least one potential ramification of this is we could simplified unused optional dependency lint to just checking the unused_dependencies tables
I do think #14028 should be merged first so we make sure we don't have regressions.

(also I should note that I've only looked at the high level details and not all of the nitty gritty of the implementation yet)

:umbrella: The latest upstream changes (presumably #14028) made this pull request unmergeable. Please resolve the merge conflicts.

:umbrella: The latest upstream changes (presumably #14106) made this pull request unmergeable. Please resolve the merge conflicts.

Try to minimize code changes and performance impact,  which will return a custom Error MissingDependency when Summary::new? found a dependency missing.  And then handle the MissingDependency in to_real_manifest.

The suggestions above have been considered.
Then in the subsequent commit, add these alternation by the way.

Rename MissingField to MissingFieldError
Migrate unused_optional_dependencies to snapshot
The changes are small and easy to review :)

Credit to @Muscraft doing this experiment. See https://github.com/Muscraft/cargo/commit/c0b44e06a213bd0d680111f2f386d68504a60af5 for the code that generate the snapshots above.

I have added the missing_dep_diagnostic into the last commit with tiny twist, thanks @Muscraft.
These tips are more user-friendly.

Thanks! That looks awesome. Will go ahead and merge this.
@bors r+

:pushpin: Commit b28eef9651de5ef3574c97f08aa7b5d62c505e00 has been approved by weihanglo
It is now in the queue for this repository.

:hourglass: Testing commit b28eef9651de5ef3574c97f08aa7b5d62c505e00 with merge 838d81d0e00878d4fbf209f082874a5642f82b18...

:sunny: Test successful - checks-actions
Approved by: weihanglo
Pushing 838d81d0e00878d4fbf209f082874a5642f82b18 to master...


About autoAlternativeLangPrefixes

Details
Hi there,
How exactly does autoAlternativeLangPrefixes work. As I see from docs it states the following:
Automatically add alternative language prefixes for each entry with the given prefixes. Set to false to disable.
When using the @nuxtjs/i18n module, this will automatically be set to the configured locales when left undefined.

I am using the i18n module so I left it undefined (not set at all) but I'm not getting auto-prefixed URLs.
My nuxt.config.ts:
i18n: {
	baseUrl: BASE_APP_URL,
	langDir: 'locales/',
	locales: [
		{
			code: 'hr',
			iso: 'hr-HR',
			file: 'hr.ts'
		},
		{
			code: 'en',
			iso: 'en-US',
			file: 'en.ts'
		}
	],
	detectBrowserLanguage: false,
	defaultLocale: 'hr',
	vueI18n: './nuxt-i18n.ts'
}

And nuxt-i18n.ts:
export default defineI18nConfig(() => ({
	legacy: false,
	locale: 'hr',
	fallbackLocale: 'hr'
}))

Hey, thanks for the issue.
Can you try out v3.0.14 and let me know if it's working better?

Still the same...
This is how i test:
nuxt build
nuxt preview

There was one other small bug I found and pushed up a fix in 3.0.15. I tested it out here https://stackblitz.com/edit/nuxt-starter-jwuie4?file=app.vue
Seems to be working so will close this off, please modify the StackBlitz if I missed something.

It works thanks! It would be cool if you could completly disable caching in dev mode since you can't test changes like this one

It works thanks! It would be cool if you could completly disable caching in dev mode since you can't test changes like this one

Caching should definitely be disabled in dev :thinking: Do you mean for the dynamic URLs?

yes... eg: I've later added another laguage in the array (third one) but sitemap still rendered two of them (old ones)


Removed broken tests

Removed broken tests, tox, and added nosetests to the travis config file.

It looks like there are still test files that are failing in the travis run. Go ahead and remove those too please


Make wifi element clickable to toggle wifi on/off

Straightforward addition that makes wifi clickable. If clicked, it turns wifi on/off (depending on current state) and sends a notification to the user informing of the action.
Added a note about it in the readme also.

This is a fine addition now merged in master. :)
I once again performed some changes: the whole Data widget is refresh when wifi button is clicked.
Your changes made me improve SpacesDisplay.
Spaces are now clickable so you can instantly switch to clicked space. I also added a "Add space" button.
I'm looking for a way to introduce a "Remove space" button but i'm still in reflexion on this.

Your changes look great, I could not figure out a nice way to make the widget refresh after toggling wifi.
I'm not sure if you want to add a note about this, but adding a space does require SIP to be disabled, which not everybody does.
Also in this commit to the readme, https://github.com/Jean-Tinland/simple-bar/commit/4ed488658c3ae0bcbdbd57ab24f418249f510aef , I think you forgot to change the sentence to mention the clickable parts of spaces-jsx (although it seems obvious).

Thank you for your input, I've made some adjustments in the README about the clickable elements.
I also added a test on SIP status which allow me to hide the add space button when SIP is not disabled.


refactor(core): use jspre utils to reduce duplicate code in jslibs

Task linked: CU-86787fn28 Use jspre utils to reduce duplicated code in jslibs


fix(textarea): textarea has ability to be cleared

Closing this PR as we needed to branch off our last released tag: https://github.com/cengage/react-magma/pull/678


Holding Ctrl and hovering over a variable/include whose definition is in an unopened file unnecessary re-parses and re-evaluates even though no content changed

Repro

Create the following file contents:
fbuild.bff:.A = 1
#include 'other-file.bff'

other-file.bff:Print( .A )

Open other-file.bff and ensure that fbuild.bff is closed.
Hold down Ctrl and hover over the .A in Print( .A ).

Expected Behavior

The extension does not re-parse or re-evaluate, because no content changed.

Actual Behavior

VS Code sends the notifications that fbuild.bff opened, changed, and closed.

Note that VS Code only has trace logs for the opened and closed notifications. The changed notification can be seen either by breakpointing the body of state.documents.onDidChangeContent in server.ts or by adding a log there.

The extension re-parses and re-evaluates.

Verbose Trace logs (trimmed):
[Trace - ...] Sending request 'textDocument/definition - (...)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/hting/Desktop/harrison.bff"
    },
    "position": {
        "line": 0,
        "character": 8
    }
}

[Trace - ...] Received response 'textDocument/definition - (...)' in 2ms.
Result: [
    {
        ...
        "targetUri": "file:///c%3A/Users/hting/Desktop/fbuild.bff",
        ...
    }
]

[Trace - ...] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/hting/Desktop/fbuild.bff",
        ...
    }
}

[Trace - ...] Sending notification 'textDocument/didClose'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/hting/Desktop/fbuild.bff"
    }
}

parse-duration: 0.751ms
evaluation-duration: 0.173ms

Notes

VS Code seemingly incorrectly triggers an onDidChangeContent notification even though nothing changed.

Work in progress in branch issue-59.


Next.js giving error when substituting default svg logo to new png logo.

The error is : Failed to load resource: the server responded with a status of 400 (Bad Request).

Hi, which logo are you referring to? Is it the one in data/logo.svg? That's because svg and png files are loaded differently. If you load an svg file you can do:
import Logo from<EMAIL_ADDRESS>
const Component = () => {
  <>
      <Logo />
  </>
}

But if you are using an image you should load it like this:
import Image from '@/components/Image'

const Component = () => {
  <>
      <Image src="path to image file" width="60px" height="60px" />
  </>
}

The image path should also be in the public/static folder. Hope that helps.

Hi,
I have done this and I still get the error. I believe that this is an
issue with the current NEXT.js version. I am not sure how I can upgrade the
project to make it work. I am still new to next.js so I am open to
anything. Below I have provided a screenshot of what I have done. Here is a
link to a stackoverflow problem that seems relevant:
https://stackoverflow.com/questions/67693355/400-bad-request-from-next-image
Best,
Chinmay
On Mon, Aug 9, 2021 at 9:14 AM Timothy @.***> wrote:

Hi, which logo are you referring to? Is it the one in data/logo.svg?
That's because svg and png files are loaded differently. If you load an svg
file you can do:
import Logo from<EMAIL_ADDRESS>const Component = () => {
<>

</>
}
But if you are using an image you should load it like this:
import Image from '@/components/Image'
const Component = () => {
<>

</>
}
The image path should also be in the public/static folder. Hope that
helps.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/timlrx/tailwind-nextjs-starter-blog/issues/175#issuecomment-894931144,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALIL5QME3BXJGBHBYRCA6STT35FLLANCNFSM5BY5ASQA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

Are you using an image from an external domain. If so, you need to configure next config to explicitly whitelist that domain. Otherwise, could you link to your repository so I can take a look at the issue?

Hi,
I even tried to display the avatar.png that is already in the public
image directory. I haven't made much changes to the repo yet. Thanks so
much for your time. Here is the link to the repo:
https://github.com/ChinmayGopal931/tailwind-nextjs-starter-blog.
On Mon, Aug 9, 2021 at 8:06 PM Timothy @.***> wrote:

Are you using an image from an external domain? If so, you need to
configure next config to explicitly whitelist that domain. Otherwise, could
you link to your repository so I can take a look at the issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/timlrx/tailwind-nextjs-starter-blog/issues/175#issuecomment-895278031,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALIL5QIGKQTB6FNFL5YMLVLT37RWLANCNFSM5BY5ASQA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

There's no valid image at the path specified in this line - https://github.com/ChinmayGopal931/tailwind-nextjs-starter-blog/blob/master/components/LayoutWrapper.js#L20
Try changing the src to /static/images/avatar.png and it will work. The path should be relative to the public folder.

I finally got it working. Sometimes I can be a little daft that was the
silliest error. Thanks so much for your time, I really appreciate it.
Best,
Chinmay
On Mon, Aug 9, 2021 at 8:39 PM Timothy @.***> wrote:

There's no valid image at the path specified in this line -
https://github.com/ChinmayGopal931/tailwind-nextjs-starter-blog/blob/master/components/LayoutWrapper.js#L20
Try changing the src to /static/images/avatar.png and it will work. The
path should be relative to the public folder.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/timlrx/tailwind-nextjs-starter-blog/issues/175#issuecomment-895305821,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALIL5QMZMZ3XHUSC53MU2ETT37VT5ANCNFSM5BY5ASQA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.


GI probe ignores light sources in a scene if nested under a non root node

Godot version:
master / 68f277477b5a5f3003405e36c6b6853720cb91de
OS/device including version:
Manjaro Linux 17.1.1
Issue description:
When GI probe is placed in a deep hierarchy, it ignores other light sources (i.e. directional or omni lights) added to the scene but only calculate indirect light from the environment (i.e. sky).
I'm not sure if it was an intended behavior. But in this case, I suppose we better add an warning to the documentation, because it's not obvious why it is failing to work as expected.

Can anyone still reproduce this bug in Godot 3.2.1 or 3.2.2beta4?

Closing due to lack of response. Please comment if you can still reproduce this bug.
PS: If no minimal reproduction project was included in the original bug report, please upload one as well to ease troubleshooting.


Understanding new architecture

Hello.
I have been reading documentation and architecture documents and I cannot find any reference to persistent volume claims (to use storage quotas and storage plugins) and location inside domain ruting (ex. redirect /secondapp to another pod).
Can someone clarify this?
Thanks in advice.

Persistent volume claims are not currently applicable for applications deployed to k8s via Deis Workflow, as Workflow focuses on managing and deploying 12factor applications. (See http://12factor.net) Such applications do not store any state by writing it directly to a file system; rather, they depend on "backing services" such as object stores and databases to store state.

Ok. Thanks


Adding contextual compression with an LLMChainExtractor

Implementation of LLMChainExtractor functionality.

looks great to me! do we do any sort of integration testing in js?

It doesn’t do any new integration with an API.
Or maybe I don't understand you question?

Thanks!

What happened? I get no build errors.

@joseanu just something that has changed in latest master, no worries I've updated the PR now, should be good

💪 This is my first open source contribution


Fantasy AGE - new sheet

Forked from AGE System, and locked to only show options available in Fantasy AGE.
Green Ronin has requested that each of it's AGE subsystems have a separate listing in the Roll20 database, so that new players who don't know that it's a subsystem of the AGE System, can find what they are looking for more easily. In addition, it may be necessary to separate them into officially maintained sheets in order to release official content and charactermancers.
I have made these sheets identical with the exception of the sheet.json file, and one hidden variable on the html file. If Roll20 has any methods for maintaining such similar sheets, please let me know. Considering they will be using identical translation.json files, is it possible for them to pull from the same set of translation files, to reduce the required work of the translators?

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: Fantasy AGE

The publisher of this game is: Green Ronin

The name of this game system/family is: AGE System

[x] I have followed the Character Sheets Standards when building this sheet.

[x] This sheet has been made on behalf of, or by, the game's publisher.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Forked from AGE System, and locked to only show options available in Fantasy AGE.

Character Sheet Info Roll20 Internal Use only.


Feat: whitelist ibc proposal messages

We need to whitelist RecoverClient and IBCSoftwareUpgrade messages since old messages (UpdateClient and UpgradeProposal respectively) is deprecated in ibc-go v8.0+.
Related PRs:

https://github.com/neutron-org/neutron-integration-tests/pull/297
https://github.com/neutron-org/neutronjsplus/pull/37

https://github.com/neutron-org/neutron-tests/actions/runs/9080112701

I think the following need to be done

Clean up deprecated proposal from a legacy router in app.go?
update AdminProposal binding and remove deprecated proposals in both neutron core and neutron-sdk repo.

yes, i'll do it
Is out of scope, could you create a task for that in Jira?


Change .JS file URL to CDN

Resolve #131 and https://github.com/egeloen/IvoryGoogleMapBundle/issues/156

Fixed by #134 but it will only be in the 2.x version.


Microphone Redirection doesn't working

Hi. I'm compile FreeRDP from source yesterday, but microphone redirection doesn't working. Sound redirection working stable.
System (lsb_release)

Distributor ID:	LinuxMint
Description:	Linux Mint 17.1 Rebecca
Release:	17.1
Codename:	rebecca

System(uname -a)

Linux 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

FreeRDP version

This is FreeRDP version 1.2.1-dev (git c3bbe70)

Any Ideas?

@sheynandr check it https://github.com/FreeRDP/FreeRDP/issues/2347


Creating plot object generates TypeError: module not callable

Working with most recent update (updated few days ago, and I also just updated today):
from fastplotlib import Plot
plot = Plot()

Returns TypeError: 'module' object is not callable.
Other things are working fine (e.g., ImageGraphic).  I'm on Windows 10.

TypeError                                 Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_18652/434463605.py in <module>
      1 from fastplotlib import Plot
----> 2 plot = Plot()

TypeError: 'module' object is not callable

I'm unable to reproduce this, it seems very bizarre. You sure this is the latest master branch?
what if you do:
import fastplotlib
fastplotlib.__file__

It's None. I tried installing a few ways:
The development install today (to try out the new api).
git clone https://github.com/kushalkolar/fastplotlib.git
cd fastplotlib
pip install -r requirements.txt
pip install -e

The usual way:
pip install git+https://github.com/kushalkolar/fastplotlib.git
I'm getting the error with both.  I've never seen this before. Indeed it is bizarre.

pip uninstall fastplotlib before pip install -e . ?

Yes, I tried that.
But note this was all in a pretty old mesmerize virtual env with Python 3.8, so I just tried it with a fresh virtual env with python 3.9, and it seems to be working though with new errors based on the text stuff. With from fastplotlib import Plot I get:
FileNotFoundError                         Traceback (most recent call last)
Cell In[2], line 1
----> 1 from fastplotlib import Plot

File ~\development\dev_packages\fastplotlib\fastplotlib\__init__.py:1
----> 1 from .plot import Plot
      2 from .layouts import GridPlot
      3 from pathlib import Path

File ~\development\dev_packages\fastplotlib\fastplotlib\plot.py:2
      1 from typing import *
----> 2 import pygfx
      3 from wgpu.gui.auto import WgpuCanvas
      4 from .layouts._subplot import Subplot

File ~\miniconda3\envs\fpl\lib\site-packages\pygfx\__init__.py:7
      5 from .resources import *
      6 from .objects import *
----> 7 from .geometries import *
      8 from .materials import *
      9 from .cameras import *

File ~\miniconda3\envs\fpl\lib\site-packages\pygfx\geometries\__init__.py:16
      9 from ._polyhedron import (
     10     octahedron_geometry,
     11     icosahedron_geometry,
     12     dodecahedron_geometry,
     13     tetrahedron_geometry,
     14 )
     15 from ._toroidal import torus_knot_geometry, klein_bottle_geometry
---> 16 from ._text import TextGeometry, TextItem
     18 # Define __all__ for e.g. Sphinx
     19 __all__ = [
     20     ob.__name__
     21     for ob in globals().values()
     22     if (isinstance(ob, type) and issubclass(ob, Geometry))
     23     or (callable(ob) and ob.__name__.endswith("_geometry"))
     24 ]

File ~\miniconda3\envs\fpl\lib\site-packages\pygfx\geometries\_text.py:13
     11 from ._base import Geometry
     12 from ..resources import Buffer
---> 13 from ..utils import text as textmodule
     16 TEXT_ALIGN_ALTS = {
     17     "left": "start",
     18     "top": "start",
   (...)
     21     "bottom": "end",
     22 }
     23 ANCHOR_X_ALTS = {
     24     "left": "left",
     25     "center": "center",
     26     "middle": "center",
     27     "right": "right",
     28 }

File ~\miniconda3\envs\fpl\lib\site-packages\pygfx\utils\text\__init__.py:17
      1 """
      2 The six stages of text rendering (also see the README in this subpackage):
      3
   (...)
     13 Rendering is implemented in the TextShader.
     14 """
     16 from ._fontfinder import FontFile  # noqa: F401
---> 17 from ._fontmanager import FontProps, FontManager, font_manager  # noqa: F401
     18 from ._atlas import glyph_atlas  # noqa: F401
     19 from ._tokenizers import tokenize_text, tokenize_markdown  # noqa: F401

File ~\miniconda3\envs\fpl\lib\site-packages\pygfx\utils\text\_fontmanager.py:363
    359         return msg
    362 # Instantiate the global/default font manager
--> 363 font_manager = FontManager()

File ~\miniconda3\envs\fpl\lib\site-packages\pygfx\utils\text\_fontmanager.py:126, in FontManager.__init__(self)
    124 self._warned_for_codepoints = set()
    125 self._family_to_font = {}  # name -> style -> FontFile
--> 126 self._load_default_font_index()
    127 self._load_fonts()

File ~\miniconda3\envs\fpl\lib\site-packages\pygfx\utils\text\_fontmanager.py:175, in FontManager._load_default_font_index(self)
    171 def _load_default_font_index(self):
    172
    173     # Load the json
    174     index_filename = os.path.join(get_resources_dir(), "noto_default_index.json")
--> 175     with open(index_filename, "rt", encoding="utf-8") as f:
    176         ob = json.load(f)
    177     families, fnames, index = ob["families"], ob["filenames"], ob["index"]

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Eric\\miniconda3\\envs\\fpl\\lib\\site-packages\\pygfx\\pkg_resources\\noto_default_index.json'

I haven't merged the text PR into fastplotlib yet so this is something from pygfx.
Maybe:
pip install freetype
But I'm pretty sure freetype is in the setup.py for pygfx.
Are you able to run any of the basic pygfx examples? If not this seems like a pygfx issue.

Yes this seems an issue with pygfx, even just importing pygfx throws the above error (this is in a new install/fresh environment).

I'll see if I can reproduce with pure pygfx env and open issue there.


Workaround dns kernel bug

Add a workaround to the netfilter conntrack bug https://bugzilla.netfilter.org/show_bug.cgi?id=1766 fixed by https://github.com/torvalds/linux/commit/8af79d3edb5fd2dce35ea0a71595b6d4f9962350.
Since the race problem is caused by having two packets DNATed with the same tuple at the same time by different CPUs, it impact specially DNS resolvers that sends A and AAAA request in parallel (it seems is default glibc behavior), and this is very visible to users that notice DNS latency.
Instead of processing all packets on the POSROUTING hook, special case DNS and process them in PREROUTING after DNAT happens.
Services implementations that don't rely on conntrack can disable this behavior by setting the flag to false.

see if @danwinship wants to take a look, otherwise I will merge end of the day, so we can have it in kind

where's the regression test? 🙂

do you mean in kubernetes/kubernetes? this showed up in this e2e https://github.com/kubernetes-sigs/kube-network-policies/issues/12
but it is a bug in the kernel, and its a race, there is a kselftest, but I don't see what type of tests we want to add here


More infos for label feature selection

Add interface to get more infos when selecting POIs/Icons and text labels.
Generic feature selection makes it hard to adjust a marker on top of an icon since the interface returns back the screen position of the created feature selection query. Putting a marker at this  position makes it nearly impossible to add a marker sticking to an existing label on screen.
This PR adds the set of touched label created for that feature with their corresponding lat/lon.
Example:
Selecting any of the point or text in this POI:

Returns:

cc @sarahlensing @ecgreb for the Android interface.

I think we can make this interface much more practical. While it is useful to provide additional information about labels in selection results, I don't think returning a list of labels is the best approach.
As I understand this interface now, if a user makes a query that hits one label of a feature then they receive a result containing all labels of that feature, even those that their query point didn't hit. This means that if an app wanted to place a marker at the location of a selection query result, it would need to iterate over the list of labels and somehow determine which one is closest to the location that was queried. This seems unnecessarily burdensome.
I think the interface would be more useful if we returned at most one label result. To implement this, we may need to generate additional selection colors for labels so that they are all distinct from each other.
I would also strongly consider creating two separate selection functions, one for labels and one for general features, like we have discussed in meetings.

The interface has been refactored, this can be given another look.


Upgrading version to 0.8.0.

@tseaver We should hold off on this until the DNS docs are in.

Running
$ git log 0.7.1..cut-0.7.2 \
> | grep 'Merge pull request ' \
> | awk -F ' ' '{print $4}' \
> | sort

yields
#1041
#1043
#1055
#1056
#1060
#1063
#1064
#1068
#1070
#1072
#1074
#1075
#1078
#1079
#1080
#1083
#1084
#1086
#1087
#1088
#1090
#1092
#1096
#1097
#1098
#1106
#1107
#1110
#1112
#1113
#1114
#1117
#1118
#1119
#1120
#1121
#1122
#1128
#1129
#1131
#1135
#1137
#1138
#1139
#1140
#1144
#1145
#1148
#1149
#1152
#1153
#1155
#1157

@tseaver I have to teach in 23 minutes, so the release notes may not be done for a few hours.

@tseaver PTAL at the release notes. Can you write the release notes for BigQuery (commit numbers below, fancy links here):

#1056
#1064
#1068
#1072
#1120
#1128
#1135

## General

- Added comprehensive [authentication document][1]
- Added Code of Conduct (#1086)
- Remove `from_service_account_json` and `from_service_account_p12`
  factory methods from `Connection` classes. These were redundant since
  the `Client` classes also have them and the `Client` classes
  are the user-facing classes. (#1113)
- Added the [Python tutorial][3] and [`getting-started-python`][4] repo to
  "examples". (#1155)

## Datastore

- Returned `None` when no cursor is returned from a query (#1054)
- Updating outdated (pre-`Client`) docs (#1098)

## BigQuery

- #1056
- #1064
- #1068
- #1072
- #1120
- #1128
- #1135

## Bigtable

- Began development of `gcloud.bigtable` package (#1122, #1148, #1152, #1153)
- Fully working source lives [elsewhere][2] and the plan
  **was** to slowly port it into `gcloud-python`, though
  we are now discussing (#1159) other options.

## Resource Manager API

- New API added (#1083)

## DNS API

- New API added (#1137, #1138, #1140, #1144, #1145, #1149, #1160)

[1]: http://googlecloudplatform.github.io/gcloud-python/stable/gcloud-auth.html
[2]: https://github.com/dhermes/gcloud-python-bigtable
[3]: https://cloud.google.com/python
[4]: https://github.com/GoogleCloudPlatform/getting-started-python

@tseaver What are we waiting for here?

@dhermes release notes updated

This should probably be 0.8, given support for new APIs.

@tseaver I updated to 0.8.0
If you are happy with this release notes, feel free to merge (after Travis passes)
Then I'll push the new tag and make the release.

@dhermes merged.

Tag pushed and release created on GH


Add support for fvm

Since this plugin directly runs the flutter ... and dart ... commands, the projects that are using different version of flutter via fvm, fail to use the fvm flutter version for analysis. We need to add support for fvm in flutter and dart analyse commands.
A proposed solution is that we can detect .fvm folder in the project root and add "fvm" prefix before all flutter and dart commands in execution.

Sure, I'd love to work on this feature.
Please assign this to me

I want a little bit clarity on this statement, can you please describe more

Maybe it would be better and easier to simply add two configuration keys that let you overwrite the dart/flutter binaries...

Well, by default, the tool simply uses "flutter" and "dart". However, there could be a setting in the pubspec.yaml to overwrite these tools. Something like:
dart_test_tools:
  dart: fvm dart
  flutter: fvm flutter

This would allow the feature to work with other tools as well

Understood! This is great

As a workaround I adjusted the simple dart wrapper for a project I am working on:
import 'dart:io';

// run with `dart setup_git_hooks.dart` if you use fvm
// else run with `dart setup_git_hooks.dart --no-fvm`

Future<void> main(List<String> arguments) async {
  final useFvm = !arguments.contains('--no-fvm');
  final command = useFvm
      ? 'cd app && exec fvm flutter pub run dart_pre_commit'
      : 'cd app && exec flutter pub run dart_pre_commit';

  final preCommitHook = File('.git/hooks/pre-commit');
  await preCommitHook.parent.create();
  await preCommitHook.writeAsString(
    '''
#!/bin/sh
$command # specify custom options here
''',
  );

  if (!Platform.isWindows) {
    final result = await Process.run('chmod', ['a+x', preCommitHook.path]);
    stdout.write(result.stdout);
    stderr.write(result.stderr);
    exitCode = result.exitCode;
  }
}

This way each developer can decide themselves if they want to use dart_pre_commit with or without fvm. By default fvm is used. Simply append --no-fvm to the command and pure flutter is used instead.


New version: SIIPExamples v0.1.2

Registering package: SIIPExamples
Repository: https://github.com/NREL-SIIP/SIIPExamples.jl
Created by: @jd-lara
Version: v0.1.2
Commit: 9f5e3c9d76daec1ff4c0d9a559991accb1c33dee
Reviewed by: @jd-lara
Reference: https://github.com/NREL-SIIP/SIIPExamples.jl/commit/9f5e3c9d76daec1ff4c0d9a559991accb1c33dee#commitcomment-49184883

@jd-lara https://github.com/JuliaRegistries/General/pull/33694/checks?check_run_id=2282927065#step:6:154
ERROR: Unsatisfiable requirements detected for package PowerGraphics [5f7eddb3]:
 PowerGraphics [5f7eddb3] log:
 ├─possible versions are: 0.1.0-0.8.3 or uninstalled
 ├─restricted by compatibility requirements with SIIPExamples [2c79006f] to versions: 0.8.0-0.8.3
 │ └─SIIPExamples [2c79006f] log:
 │   ├─possible versions are: 0.1.0-0.1.2 or uninstalled
 │   └─restricted to versions 0.1.2 by an explicit requirement, leaving only versions 0.1.2
 └─restricted by compatibility requirements with TimeSeries [9e3dc215] to versions: 0.1.0-0.4.2 or uninstalled — no versions left
   └─TimeSeries [9e3dc215] log:
     ├─possible versions are: 0.13.0-0.22.0 or uninstalled
     └─restricted by compatibility requirements with SIIPExamples [2c79006f] to versions: 0.22.0
       └─SIIPExamples [2c79006f] log: see above

[noblock]

I lose track of all the dependencies sorry. It is waiting for #33693


Q: using() to delegate to sub-lexers not working

(Original issue 1123 created by thomas_beale on 2015-06-30T07:50:30.421224+00:00)
I have created a lexer for the Archetype Definition Language (ADL), which is a simple backbone heading syntax within which 3 other 'real' syntaxes can appear. I have built Python classes for these languages and tested them, they work as expected.
However I cannot get the delegating code to work for the outer language. A simplified version of it looks as follows (see attachment for full lexer):
    tokens = {
        'whitespace': [
            ...
        ],
        'string': [
            inherit,
        ],
        'odin_section': [
            (r'^[ \t]+.*\n', using(OdinLexer)),
            ('', Text, '#pop'),
        ],
        'cadl_section': [
            (r'^[ \t]+.*\n', using(CadlLexer)),
            ('', Text, '#pop'),
        ],
        'rules_section': [
            (r'^[ \t]+.*\n', using(RulesLexer)),
            ('', Text, '#pop'),
        ],
        'metadata': [
            ...
        ],
        'root': [
            (r'^(archetype|template|template_overlay|operational_template|speciali[sz]e)', Generic.Heading),
            (r'^(language|description|ontology|terminology|annotations|revision_history)[ \t]*$', Generic.Heading, 'odin_section'),
            (r'^(definition)[ \t]*$', Generic.Heading, 'cadl_section'),
            (r'^(rules)[ \t]*$', Generic.Heading, 'rules_section'),
            (r'[ \t]*([a-zA-Z]\w+(\.[a-zA-Z]\w+)*::)?[a-zA-Z]\w+(-[a-zA-Z]\w+){2}\.\w+(-\w+)*\.v\d+(\.\d+){,2}((-[a-z]+)(\.\d+)?)?', Generic.Namespace), # archetype id
            (r'[ \t]*\(', Punctuation, 'metadata'),
            include('whitespace'),
        ],
    }

The result I get in HTML is that the outer keywords have been matched correctly, but that all the content that is supposedly processed by the sub-lexers is output in 'error' highlighting style. I can't tell whether the method of passing the text to the sub-lexers is wrong, or the calling approach or what.
As far as I can see, I am following the same approach documented in the Pygments site documentation.
The test_basic.adls file is the one that corresponds to the outer 'adl' syntax, and is the one that relies on calling other lexers working. The .odin and .cadl files work fine.
Any help appreciated.

(Original issue 1123 last updated on 2015-11-01T11:49:53.478856+00:00)
(Issue automaticaly closed due to status in Bitbucket: resolved)

(Original comment by dscorbett on 2015-06-30T13:33:34.609331+00:00)
The regexes which lead to the states odin_section, codl_section, and rules_section end with $, which matches before the newline. Each of those states only delegates to sublexers if their regexes match, all of which begin with ^. The position right before a newline and after a keyword will never be the beginning of a line. You should change $ to \n or whatever counts as a newline in this language.

(Original comment by thomas_beale on 2015-06-30T15:52:20.656460+00:00)
Yes that was it - I was aware of that exact problem and fixed it in the lines where the sub-lexers are invoke but missed the correction in the root state. So much for staring at code for 2h!
It works nicely now, thanks very much for taking the time to look.
I will do some testing, and pretty soon I should have a decent version of this language. Can I offer it to the main project as a pull request? It would be just the language.py file plus some example files, i.e. no changes to any of the main software as such.

(Original comment by thomas_beale on 2015-06-30T16:49:31.923214+00:00)
Related question on delegating syntax (at this point I have to say I am not a Python-knowledgeable person) ... I need to delegate into a sub-lexer at a different state than 'root'.
The documentation implies I can do this:
            ('some pattern', Text, using(OdinLexer, state='string')),

the state='string' bit compiles ok, but when I run it I get this:
$ ./pygmentize -v -O full -f html -o /tmp/adl.html tests/examplefiles/example.adls

*****************************************************************
An unhandled exception occurred while highlighting.
Please report the whole traceback to the issue tracker at
<https://bitbucket.org/birkenfeld/pygments-main/issues>.
*****************************************************************

Traceback (most recent call last):
  File "./pygmentize", line 6, in <module>
    sys.exit(pygments.cmdline.main(sys.argv))
  File "/cygdrive/c/dev/utilities/pygments-main/pygments/cmdline.py", line 503, in main
    return main_inner(popts, args, usage)
  File "/cygdrive/c/dev/utilities/pygments-main/pygments/cmdline.py", line 354, in main_inner
    lexer = get_lexer_for_filename(infn, code, **parsed_opts)
  File "/cygdrive/c/dev/utilities/pygments-main/pygments/lexers/__init__.py", line 150, in get_lexer_for_filename
    return res(**options)
  File "/cygdrive/c/dev/utilities/pygments-main/pygments/lexer.py", line 581, in __call__
    cls._tokens = cls.process_tokendef('', cls.get_tokendefs())
  File "/cygdrive/c/dev/utilities/pygments-main/pygments/lexer.py", line 520, in process_tokendef
    cls._process_state(tokendefs, processed, state)
  File "/cygdrive/c/dev/utilities/pygments-main/pygments/lexer.py", line 510, in _process_state
    unprocessed, processed)
  File "/cygdrive/c/dev/utilities/pygments-main/pygments/lexer.py", line 469, in _process_new_state
    assert False, 'unknown new state def %r' % new_state
AssertionError: unknown new state def <function callback at 0x6ffff80ac08>

This seems to be complaining about the new state, but I don't understand why. OdinLexer does have a 'string' state.

(Original comment by tshatch on 2015-11-01T00:54:19.500937+00:00)
Sorry for the delay; 'using' is only allowed in the 2nd position.  You need to match the entire chunk and send it at once, or go to another state like you have above for odin_section that delegates until some delimiter is reached.

(Original comment by thomas_beale on 2015-11-01T11:49:53.488909+00:00)
Corrected version works and was later incorporated via pull request.


Ability for a user to choose the fallback search engine

I think adding the ability for a user explicitly provide a fallback domain to use would be really good.
I'm not a big privacy freak myself but for someone to automatically fallback to duckduckgo would be great.

This is a great idea. Will figure out a best way to do this

Added this, ty!


🪲 Bug Report - Extra parameter in policy_assignment_es_deny_resource_locations.tmpl.json policy assignment.

Describe the bug
Extra parameter in Deny-Resource-Locations (policy_assignment_es_deny_resource_locations.tmpl.json) policy assignment.
Deny-Resource-Locations uses Allowed locations policy which only uses one parameter - listOfAllowedLocations, while policy_assignment_es_deny_resource_locations.tmpl.json file contains two parameters:
...
"parameters": {
  "effect": {
    "value": "deny"
  },
  "listOfAllowedLocations": {
    "value": [
      "uksouth",
      "ukwest"
    ]
  }
}
...

To Reproduce

Add new policy assignment into alzDefaultPolicyAssignments.bicep file (followed by this documentation)
Run Deploy-ALZPolicyAssignments.ps1 script (or deploy it with ALZ-Bicep-2-PolicyAssignments pipeline)

You will get the following error message:

The policy assignment 'Deny-Resource-Locations' has the parameter(s) 'effect' which are not defined in the policy definition 'e56962a6-4747-49cd-b67b-bf8b01975c4c'.

Expected behaviour
No errors and Policies are assigned successfully
Additional context
After removing effect parameter from policy_assignment_es_deny_resource_locations.tmpl.json file - all is good :)

Good spot @evgenyb, I have fixed this and will make it out in v0.16.0 which will likely be today

Thanks @evgenyb,
Updated all of these :)


Looking for feedback on demo

demo
Working on this now, Looking for feedback,
Might lead to new features implemented on the real project

https://github.com/rrag/react-stockcharts/issues/27#issuecomment-150018452

How i can change time frame on charts? Where is the window of changing/choosing symbols stocks?

You can zoom in/out using mouse scroll and pan left/right with mouse drag. Are you looking for a separate component as a shortcut with values like 5D, 1M, 3M, 6M, 1Y, 5Y, ALL?
That is not built yet. I don't see that as demo specific, it should be a new feature on the chart library
https://github.com/rrag/react-stockcharts/issues/27#issuecomment-150237510

The demo looks great! At first glance, I would recommend a quick-remove button on indicators so you don't have to click the settings in order to do so. I realize this is a trivial feature though.

Noted, I thought the same also, but it would mean changing the component. Alternatively I was thinking on the lines of right click, remove /  make invisible.
https://github.com/rrag/react-stockcharts/issues/27#issuecomment-150238997

Also, would you happen to have any examples of passing data to the chart from a live feed such as a websockets server?

There is an example on updating data you should check out

Demo reference:

OHLCTooltip

Tooltip not informative:
additional functionality:
- Change: +/- %%
Description:  Just take last (or current) "+Close", and calculate percentage using mouse position.
Example:
- Amplitude: +/- %%
Description:
Example:
- OFFSET: < +/- hours,days,weeks, ...>,  / -,
Description:
Example:
improvments:
Date: <YYMMDD> <time> <WeekDay> O: <>, C: <>, H: <>, L: <>, V: <>

Timescale:

Add: 1W 3d 1d(24h) 12h 4h 2h 1h 30m 15m 5m 3m 1m
1W: 2015   2016   2017   2018   etc.
3D: 2014      2015  Mar>     etc.
1D: 2015            2016
...
Add
Time position on indicators

Volume currency switch button
Full market data for candlestick is:

Volume  (USD for example)  (S&P...)

Fo more cute demo try to add Volume switcher (is it volume profile ? )

TimeZone Switcher (Local, UTC)

Scale switcher (Linear, Logarithmic):

Theme Switcher

Dark or Light
light is a pain for traders eyes

Indicator section:

add abbreviation for each indicators

Basic Chart and Advanced Chart

Add:
: Area, Line (add Line o), CandleStick, CandleStickHLC, OHLC, (etc Renko ...)
For Area:
: , ,
For Line (Line o):
: , ,
For CandleStick:
Candle Stick Style:
CandleStick Style:  , ,

Chart Range switcher: ,

PopUp Window for Technical parameters:

Traders should customize indicator parameters
MACD (4), RSI (1), ...
add default button

Demo reference:
OHLCTooltip
Tooltip not informative:
additional functionality:
- Change: +/- %%
Description:  Just take last (or current) "+Close", and calculate percentage using mouse position.
- Amplitude: +/- %%
Description:
    - OFFSET: " +/- hours,days,weeks, ...", "Change" / -"Change",
        Description:
        Example:
    - Date: "YYMMDD" "time" "WeekDay" O: "", C: "", H: "", L: "", V: ""

Timescale:
Add: 1W 3d 1d(24h) 12h 4h 2h 1h 30m 15m 5m 3m 1m
1W: 2015 "May" "SEP" 2016 "MAY" "SEP" 2017 "MAY" "SEP" 2018 "MAY" "SEP" etc.
3D: 2014 "Mar" "May" "Jul" "Sep" "Nov" 2015  Mar" "May" "Jul" "Sep" "Nov" etc.
1D: 2015 "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec" 2016
...
Add
Time position on indicators
Volume currency switch button
Full market data for candlestick is:
+ Volume "Base" (USD for example) "Quote" (S&P...)
Fo more cute demo try to add Volume switcher (is it volume profile ? )

TimeZone Switcher (Local, UTC)

Scale switcher (Linear, Logarithmic):

Theme Switcher

Dark or Light
light is a pain for traders eyes

Indicator section:

add abbreviation for each indicators

Basic Chart and Advanced Chart

Add:  "Chart Style": Area, Line (add Line o), CandleStick, CandleStickHLC, OHLC, (etc Renko ...)
For Area: "Area Style": "Close", "Medium Price", "Volume Wighted"
For Line (Line o): "Line Style": "Close", "Medium Price", "Volume Wighted"
For CandleStick:
CandleStick Style:  "CandleStick", "CandleStickHLC", "OHLC"

Chart Range switcher: "Auto", "Max"

PopUp Window for Technical parameters:

Traders should customize indicator parameters
MACD (4), RSI (1), ...
add button "default"

When adding multiple indicators of the same type (EMA, for example), changing the indicator period modifies the first indicator rather than the one selected.

User configurable ATR setting for Renko bricks would be a useful feature as well.

User configurable ATR setting for Renko bricks would be a useful feature as well.

This can be done now, click on the ohlc tooltip

The same happens when you mix EMA + SMA indicators -- any time the period is edited, only the first indicator is modified.

Thanks, I have to fix that.

@rsklyar Thanks for the feedback. There are some I am not following. would you mind expanding on them. like for. e.g. I am not understanding

Add: 1W 3d 1d(24h) 12h 4h 2h 1h 30m 15m 5m 3m 1m
1W: 2015 "May ...
...
Add
Time position on indicators

It would be great if you can reference your suggestions with http://stockcharts.com/h-sc/ui

@rrag Looks good, the Renko adjustments work fine for me.
I sent you a message via the Gitter chat -- let me know if you see it, or if there's a better way to contact you directly. Thanks!

When adding multiple indicators of the same type (EMA, for example), changing the indicator period modifies the first indicator rather than the one selected

Fixed now.

hi @rrag is there a direct way to capture mouse clicks?  perhaps an event that would send back the data the mouse is currently over?

Currently the tooltips have an onclick handler, it is used in the demo.
Can you give an example of what you are trying to achieve it will help me provide a better answer.
I am working on some interactive indicators trendline fib retracements, (work in progress and still has some issues), after this I will create documentation on how to create your own custom interactive indicators.
These Interactive indicators will be able to subscribe to various events, currently the two I have mentioned above subscribe to click and mousemove events, each of which will provide a lot of information including the current mouse xy position, the scales, the nearest datapoint, the entire array of points which is visible on the chart, and more.
Let me know If you are looking for a different usecase.

Thanks for your response.  Yes something like that is what I'm looking for.  Currently I got it to work with  EventCapture, using ChartDataUtil and I added plotData in contextTypes.  I'm passing in onMouseMove to EventCapture.  I have a feeling though it's more of a hack though, but if you'd like me to do a PR I'd be happy to.

let me try to understand it better.
you have a onMouseMove, onClick on EventCapture and you send plotData and more to the callback when those events happen, is that right?

Almost -- it's in handleMouseMove that I added these lines:
		if(this.props.onMouseMove) {
			var chartData = this.context.chartData;
			var newPos = Utils.mousePosition(e);
			var currentItems = ChartDataUtil.getCurrentItems(chartData, newPos, this.context.plotData);
			this.props.onMouseMove(currentItems);
		}

I like the idea of providing callback, but this is exposing some of the internal objects used, I am not too sure if that is good.
what are you using this callback for? may be there is an alternative.

I understand, hm...  ideally I'd like to be able to identify entry and exit points by clicking on the chart, and dynamically update an overlay chart with that data / persist data to DB.

@ewindso fib retracements trendline are done, I will be releasing a new version with these next week. I am guessing you can use this for your needs.
I do like the idea of providing callbacks from EventCapture as sort of a catch all scenario.

This is the roadmap for now.
https://github.com/rrag/react-stockcharts/blob/master/docs/md/COMING-SOON.md

Hey guys, have you some solution for "Scale switcher (Linear, Logarithmic)" ?

@dryabchenko I know it is a bit late, but still here is the solution.
Since react-stockcharts are based on d3, you can use any scales from d3-scale library. For example, to use logarithmic scale, simply pass it to Chart component in the next way:
import { scaleLog } from 'd3-scale';

<ChartCanvas {...canvasProps}>
   <ChartCanvas yScale={scaleLog()} {...moreChartProps}>
       {/* ... axis, series, tooltips and other components */}
   </Chart>
</ChartCanvas>

Make sure that you have a call scaleLog(). Simply putting scaleLog won't work.
Disclaimer: I am not affiliated with this project in any way, just a random person who spotted your question.

@dryabchenko I know it is a bit late, but still here is the solution.
Since react-stockcharts are based on d3, you can use any scales from d3-scale library. For example, to use logarithmic scale, simply pass it to Chart component in the next way:
import { scaleLog } from 'd3-scale';

<ChartCanvas {...canvasProps}>
   <ChartCanvas yScale={scaleLog()} {...moreChartProps}>
       {/* ... axis, series, tooltips and other components */}
   </Chart>
</ChartCanvas>

Make sure that you have a call scaleLog(). Simply putting scaleLog won't work.
Disclaimer: I am not affiliated with this project in any way, just a random person who spotted your question.


SURE-6356: Kubewarden installation fail on Air Gapped Rancher environment

Issue description:
Kubewarden installation fails on Air Gap Environment tries to download from the wrong URL
Business impact:
Kubeawarden is the follow-up of PSP (deprecates in Kubernetes) Installation in Rancher should be also possible for Air Gap installation as it is most on large customer setups.
Troubleshooting steps:
User Rancher, v2.7.2 Extensions select the air-gaped installation in Rancher UI Extensions
Issues on Air-Gapped setup, it still tries to download from an extern URL.
Repro steps:
Having installed and adapt the deployment of Rancher Extensions by hand in Ari Gap the related Pod started working See screenshot image003.png
The documentation ( https://ranchermanager.docs.rancher.com/integrations-in-rancher/rancher-extensions#installing-extensions ) says.
In v2.7.0, the built-in extensions will not be displayed under the Available tab. Therefore, you will need to manually add the desired repos to install extensions. We will update the community once these extensions have been pulled out to be available for selection.“
It is unclear and a secret how to get there.
So Customer cloned the repo from GitHub and made it locally available for the cluster.
Upstream => Lokal
https://github.com/rancher/ui-plugin-charts => https://bitbucket.webapp.sdst.sbaintern.de/users/heilmannt001/repos/exttest/browse
After adding the Repo ( running into SSL Problem described here: => https://ranchermanager.docs.rancher.com/pages-for-subheaders/helm-charts-in-rancher#repositories and https://github.com/rancher/rancher/issues/31676 ) the Extension kubewarden was selectable see screenshot: image010.png.
The installation looks successful. See screenshot image010.png
But kubewarden stays on error. See screenshot image011.png
This is probably due to the fact that the plugin operator continues to search online…. (it says so in all the files) see also screenshot image013.png
Is there documentation from your side somewhere that I may not have found to cleanly install extensions and kubewarden in AirGap?
Actual behavior:
Ari Gap Kubeawarden Extension install failed.
Expected behavior:
Kubewarden Extension install should not fail on Air Gap Install. Most Lagre customers have Air Gap setups.

This pr in the ui-plugin-charts repo. What we're waiting for now is automatically adding the catalog image (found in Docker hub) to the rancher-images.txt file that is generated when Rancher Manager is released (accomplished with this pr). Then have the ui-plugin-operator installed on an air-gapped instance (fixed here).

Summarizing, this will be completely fixed in Rancher Manager v2.8.0


Node drain test not starting due to unable to get chaos resources (ChaosExperiment.litmuschaos.io "node-drain" not found)

Node drain test not starting due to chaos resources not found
Steps to reproduce
Steps to reproduce the behavior:
$ cnf-testsuite version
CNF TestSuite version: v1.2.0
$ cnf-testsuite node_drain
🎬 Testing: [node_drain]
< not progressing>
$ kubectl get nodes
NAME                           STATUS                     ROLES    AGE   VERSION
ip-10-0-116-213.ec2.internal   Ready                      <none>   39m   v1.28.8-eks-ae9a62a
ip-10-0-76-157.ec2.internal    Ready,SchedulingDisabled   <none>   39m   v1.28.8-eks-ae9a62a

$ kubectl describe chaosengine -n cnti dns-dserver-1c6b0d96
Name:         dns-dserver-1c6b0d96
Namespace:    cnti
Labels:       <none>
Annotations:  <none>
API Version:  litmuschaos.io/v1alpha1
Kind:         ChaosEngine
Metadata:
  Creation Timestamp:  2024-05-11T19:52:17Z
  Finalizers:
    chaosengine.litmuschaos.io/finalizer
  Generation:        2
  Resource Version:  4544
  UID:               e4bd93c5-290f-48f2-ae0f-d968f55b0590
Spec:
  Appinfo:
    Appkind:              deployment
    Applabel:             app.nti/pod-group=dns-dserver
    Appns:                cnti
  Chaos Service Account:  node-drain-sa
  Components:
    Runner:
      Resources:
  Engine State:  active
  Experiments:
    Name:  node-drain
    Spec:
      Components:
        Env:
          Name:   TOTAL_CHAOS_DURATION
          Value:  90
          Name:   TARGET_NODE
          Value:  ip-10-0-76-157.ec2.internal
        Resources:
        Status Check Timeouts:
  Job Clean Up Policy:  delete
Status:
  Engine Status:  initialized
  Experiments:    <nil>
Events:
  Type     Reason                         Age                  From            Message
  ----     ------                         ----                 ----            -------
  Normal   ChaosEngineInitialized         23m                  chaos-operator  Identifying app under test & launching dns-dserver-1c6b0d96-runner
  Warning  ChaosResourcesOperationFailed  116s (x19 over 23m)  chaos-operator  (chaos start) Unable to get chaos resources

Chaos operator logs:
2024-05-11T20:03:22.491Z	ERROR	controller.chaosengine	Reconciler error	{"reconciler group": "litmuschaos.io", "reconciler kind": "ChaosEngine", "name": "dns-dserver-1c6b0d96", "namespace": "cnti", "error": "ChaosExperiment.litmuschaos.io \"node-drain\" not found"}

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2

	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.10.0/pkg/internal/controller/controller.go:227

2024-05-11T20:03:22.491Z	DEBUG	events	Warning	{"object": {"kind":"ChaosEngine","namespace":"cnti","name":"dns-dserver-1c6b0d96","uid":"e4bd93c5-290f-48f2-ae0f-d968f55b0590","apiVersion":"litmuschaos.io/v1alpha1","resourceVersion":"4544"}, "reason": "ChaosResourcesOperationFailed", "message": "(chaos start) Unable to get chaos resources"}

Expected behavior
The expectation is that the AUT runner is started and the test is executed.
In cases like this (broken external link), the testsuite shall not run an endless loop and terminate with error instead.
Release tests shall be enhanced to maintain high quality of the releases software.
Device (please complete the following information):
$ uname -a
Linux ip-10-0-33-96 6.5.0-1018-aws #18~22.04.1-Ubuntu SMP Fri Apr  5 17:44:33 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

NOTE: you can enable higher logging level output via the command line or env var. to help with debugging
# cmd line
./cnf-testsuite -l debug test
...

I, [2024-05-11 20:52:08 +00:00 #8052]  INFO -- cnf-testsuite: Cordoned node ip-10-0-76-157.ec2.internal successfully.

I, [2024-05-11 20:52:09 +00:00 #8052]  INFO -- cnf-testsuite: Workload Node Name: ip-10-0-76-157.ec2.internal

I, [2024-05-11 20:52:09 +00:00 #8052]  INFO -- cnf-testsuite: Litmus Node Name: ip-10-0-116-213.ec2.internal

I, [2024-05-11 20:52:09 +00:00 #8052]  INFO -- cnf-testsuite: download_template url, filename: https://raw.githubusercontent.com/litmuschaos/chaos-charts/3.6.0/charts/generic/node-drain/experiment.yaml, node_drain_experiment.yaml

I, [2024-05-11 20:52:09 +00:00 #8052]  INFO -- cnf-testsuite: chaos_manifests_path

I, [2024-05-11 20:52:09 +00:00 #8052]  INFO -- cnf-testsuite: filepath: /home/ubuntu/.cnf-testsuite/tools/chaos-experiments/node_drain_experiment.yaml

$ cat /home/ubuntu/.cnf-testsuite/tools/chaos-experiments/node_drain_experiment.yaml
404: Not Found --> The URL https://raw.githubusercontent.com/litmuschaos/chaos-charts/3.6.0/charts/generic/node-drain/experiment.yaml does not exit

It seems that during this commit, node drain was forgotten.
I'll prepare a quick PR

@kosstennbl @HashNuke @agentpoyo any idea why the issue was not detected in spec tests during github actions?

@martin-mat please create a new bug issue for the node drain spec test


DBZ-4731 Adding note on MongoDB Atlas;

Also making set up section titles consistent.
https://issues.redhat.com/browse/DBZ-4731

@roldanbob can you take a quick look at this one? Thx!

Thanks for reviewing, @roldanbob! Applied your suggestions and merged.


Custom objective for multi-output regression with multi_strategy=multi_output_tree

How does custom objective work for multi-output regression with multi_strategy=multi_output_tree?
Custom loss function is calculated on each output separately and then summed up?
Or is it called once, so it is possible e.g. to define loss function as weighted sum of losses applied to each output?

Hi, the multi_output_tree is working in progress, we don't recommend using a custom objective with it since we haven't done extensive tests yet.

Closing in favor of https://github.com/dmlc/xgboost/issues/9043

how gradients are combined in multi-target models using built in objectives like reg:squarederror? are they summed up?
In which file can I find this peace of information?

how gradients are combined in multi-target models using built in objectives like reg:squarederror? are they summed up? and
in which file can find this gradients combination?


Regarding the normalization of data and the coordinates of the Meta-Kernel input data.

Hello,
I am trying to understand the coordinate system which the data inputed into the Meta-Kernel module belongs, such as x,y,z,range. As reported in Table 2 for the performance comparison of different inputs, does x,y,z belong to the LiDAR coordinate system?
The reason for this question is because I saw that NormData(NormDataParam) was executed on the data in the code.  For range_value, intensity,elongation,pc_vehicle_frame_x,pc_vehicle_frame_y,pc_vehicle_frame_z,inclination,azimuth, the (inputdata-mean)/std operation has been performed.
Below is my understanding, pc_vehicle_frame_x, y, z can be considered as the x,y,z information read from the LiDAR pcd file, that is, the point cloud in the vehicle-mounted LiDAR coordinate system. And then, using the statistically significant average value mean, std of the entire data set to normalize x,y,z, that is, the normalized data is directly input to the Meta-Kernel data instead of the original xyz point cloud data? In addition, I’m not sure if there are other operations that handle coordinates
I don’t know if my understanding is correct, could you give me some hints.

Thanks for sharing your understanding, which is correct. Meta-kernel takes the normalized x,y,z of LiDAR coordinate system as input. BTW, if I remember correctly, it's also OK to use the unnormalized original x,y,z.

Okay, thank you very much for your quick reply!


increased number of microtubules in post-anaphase array

child of
abnormal post-anaphase array morphology
PMID:18418055

duplicates #2314


Cannot read property 'error' of undefined

Just started getting this error.  I have already tried running sqs buster.
C:\Users\SleekDigital\AppData\Roaming\nvm\v4.2.3\node_modules\node-squa
respace-server\node_modules\node-squarespace-middleware\squarespace-mid
dleware.js:109
error = (json.error ? json.error : error);
^
TypeError: Cannot read property 'error' of undefined
at Request._callback (C:\Users\SleekDigital\AppData\Roaming\nvm\v4.
2.3\node_modules\node-squarespace-server\node_modules\node-squarespace-
middleware\squarespace-middleware.js:109:26)
at self.callback (C:\Users\SleekDigital\AppData\Roaming\nvm\v4.2.3
node_modules\node-squarespace-server\node_modules\request\request.js:19
8:22)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at Request.onRequestError (C:\Users\SleekDigital\AppData\Roaming\nv
m\v4.2.3\node_modules\node-squarespace-server\node_modules\request\requ
est.js:820:8)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at TLSSocket.socketOnEnd (_http_client.js:288:9)
at emitNone (events.js:72:20)
at TLSSocket.emit (events.js:166:7)

Yeah - I think this is related to the request timing out. Still need to figure out what to do about it.

Confirmed... This magically went away, so it was probably just Squarespace being slow for awhile.

Yeah - I'm working on some better error handling for the middleware based on Squarespace's response types. Ideally it will successfully log errors without blowing up for all known scenarios on the next  release.


Have powertoys working at login page

Description of the new feature / enhancement
Powertoys is only working after user is logged in.
I have a billing program that can be hacked by virtual desktop. Powertoys can prevent this by disabling windows + tab, but the problem is, the hacking happens during login page..
So would it possible to make the changes applied by powertoys applies whether user is logged in or not?
Scenario when this would be used?
For a billing program.
Supporting information
No response

No plans to support this scenario


[Feature]: Install updates via update card should make a backup

Requirements

[X] I have updated Mushroom to the latest available version
[X] I did a search to see if there is a similar issue or if a pull request is open.

Is your feature request related to a problem?
No backup is made when i install (core) component updates of HA via the install button on the mushroom update card.
A backup should be made as it is done when i update the components via HA settings. No backup, no place to go back to if a problem occurs.
Describe the solution you'd like
If i use the update card for notifying me of updates for HA, i can see and utilize either the dismiss or the install button.
If i use the normal route to update HA (core or other things), HA shows me a popular where a backup option is always ticked and hence a backup of the current stat (especially core) is made prior to installation.
If i use the install button on the update card, no backup is made and the update is installed straight away. If one encounters a problem with the install, then there is no backup to go back to.
I think, the install button on the update card should mimic the normal HA way and make a backup (of the core component) or at least give an option for that.
Describe alternatives you've considered
No response
Additional context
No response

👍

Is it possible to do?
I very much like the direct action on the update card, but without an option for backup - i'm just forced to do it the old fashioned way via classical HA UI. ;-(


[New Component]: Tag List

[New Component]: TagList
Detailed description
We want to create a component which will manage a list of tags.

Is this a feature request (new component, new icon), a bug, or a general issue?

This is a feature request for a new component.

It should have the following properties:
[ ] items (tags)
[ ] limit/overflow (a number of tags that should show before showing overflow)
[ ] condense (when the list should be shown as just a number - might not have to be separate form overflow)
[ ] sort (function will decide how to order the tags)
[ ] isEditable (will contain icon button)

Additional information

@joshblack Yes, right now I am working on adding it into core!

Yes, this is related to the work Virginia has been working on. Would you want to do the design review before or after I make a PR?


csv2tsv: Discard UTF-8 Byte Order Mark (BOM)

This PR changes csv2tsv to detect and discard a UTF-8 Byte Order Mark found at the beginning of an input file.
This PR also adds additional unit tests for the new buffered version of csv2tsv in the previous PR #301. A couple edge bugs were found while writing the new unit tests, these were fixed as well.

Codecov Report

Merging #302 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #302      +/-   ##
==========================================
+ Coverage   99.35%   99.36%   +0.01%
==========================================
  Files          18       18
  Lines        6792     6941     +149
==========================================
+ Hits         6748     6897     +149
  Misses         44       44

Impacted Files
Coverage Δ

csv2tsv/src/tsv_utils/csv2tsv.d
100.00% <100.00%> (ø)


Add example of creating derived state with libraries as a parameter

As described in https://github.com/frontity/frontity/issues/716, derived state did not previously have access to libraries. This has been fixed in https://github.com/frontity/frontity/pull/791 so I'm adding an example of derived state where both state and `libraries are passed as parameters.

Thanks @michalczaplinski, approved and merged. 👌