if_ruby: Drop supporting Ruby 1.9 or older

cc/ @shugo
Problem

Vim support too old Ruby versions, so if_ruby.c has many macro switches unfortunately.
Vim does not specify supported Ruby version, so if_ruby developers are confused.
We do not test if_ruby for each Ruby versions. So if a patch breaks with one Ruby version, we cannot notice it.

Solutions

Drop supporting old Rubies. I think we can drop Ruby 1.9 or older.
Specify supported ruby version in our documentation (if_ruby.txt).
Run if_ruby test for each Rubies.

I use a docker image for test https://hub.docker.com/r/pocke/vim-ruby-build/ . But I'd like to run test like this in CI in the future.

If you agree with this suggestion, I'll work on this (removing macros, specifying versions, ...).
Investigations
Current status of if_ruby
We can build Vim with if_ruby feature with Ruby 1.8.7 or newer at least. (Perhaps we can build vim with older rubies, but I have never tried it.)
However, our test for if_ruby fails with Ruby 1.8.7 even if it's without the recent patch.
And if_ruby 's document does not specify Ruby version.
And if_ruby.c uses macros to switch code between Ruby 1.8 and older. But I guess it is not maintained.
In short, I think if_ruby supports Ruby 1.8 or higher currently (but nobody maintains Ruby 1.8).
Current status of Ruby
https://www.ruby-lang.org/en/downloads/
Ruby 2.2 or older have been End Of Life. So Ruby core team does not support them.
However some Linux distributions unfortunately provide EOL version by package manager. For example, CentOS 7 provides Ruby 2.0.0. (note: CentOS 7 is the latest version of CentOS.)
http://mirror.centos.org/centos/7/os/x86_64/Packages/  (This page is very large! Be careful!)

And I checked other OS (Debian, Ubuntu, Arch Linux and macOS), they have newer Ruby than CentOS 7.
I'm not familiar other OS, sorry.
Personally I think almost people don't use Ruby 1.8 and 1.9. So we can drop these versions.

What about programmers working on a legacy code-base?
I run up-to-date Xubuntu (18.04 for now, but will keep updating) and work with a lot of Ruby 1.9.x code day to day.
Removing the support from vim would break my workflow.
We plan to migrate in the short-term, but I just mentioned it to illustrate the idea.


Usage in Extension

Is there a reason why usage inside extensions is not enabled?
Same for Dip-UI.

Extensions usually have small code base so DI can be done manually. No technical restrictions for that though.

On 26 Jul 2018, at 18:13, Lukas Schmidt<EMAIL_ADDRESS>wrote:
Is there a reason why usage inside extensions is not enabled?
Same for Dip-UI.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

ok. I will try to setup a pull request in the coming days.


Link highlight style setting stopped working recently

Hello!
I'm trying to figure whether I've done something wrong, if my theme is doing something wrong, or whether a recent version of LSP-clangd has a refression.
I prefer not to have all my include statements underlined, and "link_highlight_style": "none", no longer seems to have any effect.
I've set this globally and in my project settings to no avail. I'd really appreciate some advice on how to figure this out.
Thanks!

Oh, now I'm also noticing that "show_diagnostics_count_in_view_status": true, is also not having any effect.

Those settings should be set in the LSP and not LSP-clang settings.
If that still doesn't work then post the output of "LSP: Troubleshoot server" command

Oh... yes, my apologies. I just restarted sublime, LSP updated, I restarted again and now it's working. Sorry to bother you!


telemetryGenerator always causes generated files to look modified

This causes an extra, unneeded step when trying to commit and push changes
(.venv3) PS C:\src\vscode-jupyter> git commit -m "skip flakey kernel listing test"
husky - prettier is installed

<EMAIL_ADDRESS>generateTelemetry
gulp generateTelemetryMd

[11:29:16] Using gulpfile C:\src\vscode-jupyter\gulpfile.js
[11:29:16] Starting 'generateTelemetryMd'...
[11:29:33] Finished 'generateTelemetryMd' after 17 s
Checking formatting...
All matched files use Prettier code style!
[aamunger/flakyTest 33b2707bd] skip flakey kernel listing test
1 file changed, 2 insertions(+), 1 deletion(-)
(.venv3) PS C:\src\vscode-jupyter> git status
On branch aamunger/flakyTest
Your branch is ahead of 'origin/aamunger/flakyTest' by 1 commit.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified:   TELEMETRY.csv
modified:   TELEMETRY.md
modified:   src/gdpr.ts
no changes added to commit (use "git add" and/or "git commit -a")
(.venv3) PS C:\src\vscode-jupyter> git add -u
warning: LF will be replaced by CRLF in TELEMETRY.csv.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in TELEMETRY.md.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in src/gdpr.ts.
The file will have its original line endings in your working directory
(.venv3) PS C:\src\vscode-jupyter> git status
On branch aamunger/flakyTest
nothing to commit, working tree clean

I think this is only on Windows, so it might have to be me that fixes it

@amunger Please could you confirm you have compiled the code.
I.e. ensure you first run npm run compile before running the generator script.
The generator script uses the compiled JS code.
If that works then you'll need to run npm run compile and have that task persisted (use the new feature in VS Code to persist the tasks or optionally use npm run compiled.

warning: LF will be replaced by CRLF in TELEMETRY.csv.

Looks like yo're running into a Git issue, looks like your git setup is replacing all of the LF with CRLF unnecessarily

@amunger I've tried this at my end on my Windows machine and I'm not running into any issues, looks like a git config issue at your end.
Here are my settings related to CRLF/LF
core.autocrlf=true

You might want to change that or look into yoru settings.
Unassigning myself as this is an enviornment issue, and not an issue with the code. (again works for me on my Windows machine)


Unlink databricks target and kedro environment

Currently a kedro environment is bound to a Databricks Asset bundle target. This doesn't allow to ma
Our use case:

2 databricks workspaces: dev and prod (with the according secrets exposed as environment variables)
1 repo with distinct kedro pipelines, each defined in a dedicated environment. Let's say first_pipeline, second_pipeline.

What we'd want to achieve would be to be able to run
kedro databricks deploy --target dev --env first_pipeline

But currently as the env parameter is used for both the target and the kedro environment it would require us to define
first_pipeline_dev, second_pipeline_dev, first_pipeline_prod, second_pipeline_prod kedro environments and the target equivalent.

I'm guessing you mean the other way around?
I'm all for adding a --target arg to the cli to allow deploying a single pipeline, but I feel that --env is more commonly used to specify things such as dev, prod, etc..

Just to be sure we use the same terminology.
By target, I meant an entry in targets of the databricks.yml file: the target databricks environment (that can lives in different workspaces as in this image: development, staging, production)/

By env, I meant a kedro conf folder. For example base, local, etc.  (https://docs.kedro.org/en/stable/configuration/configuration_basics.html#configuration-environments)
I see your point, indeed, we might have misused the kedro environment by creating 1 environment by pipeline. If you had any links to how to handle multiple independent pipelines in a single repo that would be much appreciated!

What I find confusing is that locally I can run:
kedro run --pipeline=my_pipeline --env=my_env

but if I look to the definition of the python_wheel_task in databricks.yml I see no usage of env:
                python_wheel_task:
                    package_name: my_package
                    entry_point: databricks_run
                    parameters:
                    - --nodes
                    - my_node
                    - --conf-source
                    - /dbfs/FileStore/my_package/conf
                    - --package-name
                    - my_package
                libraries:
                -   whl: ../dist/*.whl

where I would expect to have a
- --env
- my_env

Do I miss something?

No you are right! I'll have to think about this.
I use ‘kedro package‘ to build the wheel and compress conf and here the env is used to only grab the relevant configuration. I thought that would be enough, but it's still in an env folder and hence --env is required in the task spec

Good catch!

Great, thx for the confirmation! In case it helps, here is an attempt to fix this:
https://github.com/JenspederM/kedro-databricks/pull/39


chore: add CONTRIBUTING.md draft

Adding a draft for CONTRIBUTING.md. Would like to ask for a review to @ngriffiths13, @FBruzzesi, @miroslaavi who is working on a PR and installed the project locally, and also @ rodrigogiraoserrao because he says they are important (🤪).

Thanks for the comments! I was actually curious how you set the project up.
I'm a bit obsessed with the conventional commits but I'm sure we also use it for our changelog, so it has a purpose. Will add that part 😊
Speaking of branches: I don't think it really matters as long as it is understandable. Will mention that. (Also I did not forget about the PR but this is something that I postponed a bit too much.)

Cool, that's clear, thanks!
Hmm, I set the project up by first downloading Rust (as that is something I have no prior experience of, but have started thinking about learning it), and then I think I just ran the Makefile "edit" if I recall right.. Rye also something new for me that need to look up :)


A11y Bug #1518835

@SyntaxC4 : Thanks for your contribution! The author, @aljo-microsoft, has been notified to review your proposed change.


We need to support abs handoff for new creation flow.

Describe the bug
Turn on the Create New Flow flag and Open in composer from abs.
It is v2 templates with v1 UX

Version

Browser

[ ] Electron distribution
[ ] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

OS

[ ] macOS
[ ] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior

Screenshots

Additional context

There are three pieces of this:

this block needs to be ported into the code that currently handles the completion of the provisioning process -> https://github.com/microsoft/BotFramework-Composer/blob/702f34ac70943626a1afda57ffce9b408708bdd9/Composer/packages/client/src/recoilModel/dispatchers/project.ts#L315

New create flow needs to handle this alias field -> https://github.com/microsoft/BotFramework-Composer/search?q=getAliasFromPayload

Need to open the new create modal instead of the old one -- this could be handled by checking the feature flag in the electron server, or by doing it in the client.  server code is here:
https://github.com/microsoft/BotFramework-Composer/blob/main/Composer/packages/electron-server/src/utility/url.ts#L33


Implement retry logic in App Authentication library

https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-token#retry-guidance

Thanks @varunsh-msft for raising the ticket, for others reading we began the discussions from a stackoverflow post: https://stackoverflow.com/questions/53259254/transient-error-handling-for-azure-msi-authentication
It would be handy, if rather than the retry logic purely being embedded into the App Authentication Library if it can expose it for external implementation in e.g. Polly. Perhaps something as simple as exposing IsTransient() on the exception or a different exception if it's Transient.
Or even better if App Authentication library can handle the retry, as it will be in the best place to retry it properly. But allow for external code to influence it, for example if Polly is defining an overall timeout, then the MSI retry logic adheres to it - maybe simply being able to pass a CancellationToken will be enough.
Most useful would be the retry logic can expose telemetry for logging (to app insights).

Hi @AlexKeySmith, we have a new preview release where we've implemented retry logic for our MSI access token provider. This logic follows the suggested retry guidance in the MSI documentation.
At the moment we don't have the hooks to allow external influence of the retry logic, but please let us know your feedback on how we can improve.

Implemented logic as per Managed identity documentation.


Modpack Permission

Hello, I am seeking to use this mod in my modpack "Immersive Experience - 1.10.2" on the Twitch/Curse launcher. For further information, please contact me.

Permission is automatic.  No need to ask

Thank you for letting me know. Cheers!


[core] Introduce manifest.delete-file-drop-stats

Purpose

It is better to be compatible to old readers. So this PR introduces an option manifest.delete-file-drop-stats to disable this by default.

Tests

API and Format

Documentation

+1


Resync 20211223

Resync the KNI repo with the u/s changes as-is today.
The compilation, unit tests, and integration tests were passed.
Updated the resync info under the RESYNC.md file

/hold
until CI get fixed

/retest

/hold cancel
but we will need a rebase on top of the current master branch

/hold
the merge got mixed with the rebased

This branch was polluted by the rebase


Add Image cell type

Resolves: #148

Codecov Report
Attention: Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.

Project coverage is 99.73%. Comparing base (6460943) to head (bf26417).

Files with missing lines
Patch %
Lines

src/migration.ts
50.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #177      +/-   ##
==========================================
- Coverage   99.77%   99.73%   -0.04%
==========================================
  Files         164      165       +1
  Lines        2657     2680      +23
  Branches      613      620       +7
==========================================
+ Hits         2651     2673      +22
- Misses          6        7       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests
JS Bundle Analysis - Avoid shipping oversized bundles


Remove SimpleApi cache

What does this PR do?
1/ Remove cache
The cache is not invalidated and is returning the same values at each check run. Only restarting the Agent will invalidate it.
The cache has been added back here: https://github.com/DataDog/integrations-core/pull/2603
I think the sole purpose was for optimisation, but it looks like we can't optimise here if we can to report the up to date value.
2/ Fix test script.sh
Newer version seems to require Python.h. Install is currently failing.
 ext/_yaml.c:4:10: fatal error: Python.h: No such file or directory
 #include "Python.h"

Additional notes:
Results for 10 check with and without cache.
With cache
	ubuntu@openstack-ctrl-alexandre-yang-ccarnqe5:~$ sudo -u dd-agent time datadog-agent check openstack_controller --check-times 10
	1.27user 0.30system 0:04.40elapsed 35%CPU (0avgtext+0avgdata 128296maxresident)k

    openstack_controller (1.10.2)
    -----------------------------
      Instance ID: openstack_controller:test:d6bd971f3e72f86c [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/openstack_controller.d/conf.yaml
      Total Runs: 10
      Metric Samples: Last Run: 221, Total: 2,210
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 5, Total: 51
      Average Execution Time : 289ms
      Last Execution Date : 2021-02-10 17:21:00.000000 UTC
      Last Successful Execution Date : 2021-02-10 17:21:00.000000 UTC

Without cache:
	ubuntu@openstack-ctrl-alexandre-yang-ccarnqe5:~$ sudo -u dd-agent time datadog-agent check openstack_controller --check-times 10
	2.10user 0.40system 0:18.55elapsed 13%CPU (0avgtext+0avgdata 127092maxresident)k

    openstack_controller (1.10.2)
    -----------------------------
      Instance ID: openstack_controller:test:d6bd971f3e72f86c [OK]
      Configuration Source: file:/etc/datadog-agent/conf.d/openstack_controller.d/conf.yaml
      Total Runs: 10
      Metric Samples: Last Run: 221, Total: 2,210
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 5, Total: 51
      Average Execution Time : 1.844s
      Last Execution Date : 2021-02-10 17:22:19.000000 UTC
      Last Successful Execution Date : 2021-02-10 17:22:19.000000 UTC

With OpenStack SDK:
  Running Checks
  ==============

    openstack_controller (1.10.2)
    -----------------------------
      Instance ID: openstack_controller:test:e5616e2d622129c6 [WARNING]
      Configuration Source: file:/etc/datadog-agent/conf.d/openstack_controller.d/conf.yaml
      Total Runs: 10
      Metric Samples: Last Run: 92, Total: 920
      Events: Last Run: 0, Total: 0
      Service Checks: Last Run: 5, Total: 51
      Average Execution Time : 1.524s
      Last Execution Date : 2021-02-11 08:39:48.000000 UTC
      Last Successful Execution Date : 2021-02-11 08:39:48.000000 UTC

      Warning: Unable to get loads averages for hypervisor 1:

      Warning: Load Averages didn't return expected values: []

2.82user 0.37system 0:16.56elapsed 19%CPU (0avgtext+0avgdata 122624maxresident)k
0inputs+0outputs (0major+20606minor)pagefaults 0swaps

@gmarabout Added a simple benchmark to PR desc.
I ran the integration against the e2e terraform environment and those are the results:
With cache:
  $ datadog-agent check openstack_controller --check-times 10
	1.27user 0.30system 0:04.40elapsed 35%CPU

Without cache:
  $ time time datadog-agent check openstack_controller --check-times 10
	2.10user 0.40system 0:18.55elapsed 13%CPU

There is definitely an impact on performance, but
2.10user 18.55 sec elapsed time for 10 check run seems reasonable without cache
compared to 1.27user 04.40 sec elapsed with cache


Running reporter.py gives: Columns (9) have mixed types

Now getting:
sys:1: DtypeWarning: Columns (9) have mixed types. Specify dtype option on import or set low_memory=False.
when I run reporter.py
Also log table shows:
pitt_drug_exposure_datasprint_2.csv:	ORA-00932: inconsistent datatypes: expected NUMBER got CLOB
pitt_measurement_datasprint_2.csv: 	ORA-00932: inconsistent datatypes: expected NUMBER got CLOB
pitt_person_datasprint_2.csv:		ORA-00932: inconsistent datatypes: expected DATE got NUMBER

I'm seeing a similar error in SQL Server for the drug_exposure and measurement files:
/usr/local/lib/python2.7/site-packages/pandas/io/parsers.py:1170: DtypeWarning: Columns (9) have mixed types. Specify dtype option on import or set low_memory=False.
data = self._reader.read(nrows)
(pymssql.OperationalError) (8114, 'Error converting data type varchar to float.DB-Lib error message 20018, severity 16:\nGeneral SQL Server error: Check messages from the SQL Server\n')
@johntmilnes the params column in the log table gives the row that is failing. The visit_occurrence_id and drug_exposure_id seem large, but I'm thinking the issue might be with date time. @mark-velez any ideas?

@cukarthik I think the errors we are seeing on measurement and drug_exposure are because there are strings that cannot be converted into the expected numeric types. In one instance drug_exposure.effective_drug_dose contains "0-6". In the other measurement.range_low contains "<150". I think the error on person may be peculiar behavior related to using an Oracle backend.
@johntmilnes Currently our focus is on being able to generate the PMI-wide report on MSSQL and sqlite and unfortunately we are not yet fully compatible with Oracle. This will likely change; at the EHR Working Group today we were talking about establishing a baseline data representation and enabling HPOs to evaluate their data further upstream.
It is useful to know the current limitations, so please continue to report issues regarding running on Oracle and let us know if you have developers who may be able to help. We will try to get to this issue as soon as possible and we will keep it open until it is resolved.


Still showing the changes of template UI schema even after canceling them

Describe the bug

Still showing the changes of template UI schema even after canceling them
Steps to reproduce

Go to a template details page,  modify the schema and click Cancel.

Result

Still showing the modified content.

Expected behavior

Showing unmodified content.

Environment

Walrus version: main 6d4903951fc8b6284473bfbae8fe8f0fea34ecd4
UI version: dev-d45e562

Additional context
Add any other context about the problem here.

Environment

Walrus version: main ce9f6f458d0e8facdc2448ccfe78b0ee434b301b
UI version: dev-e0bc105

Test Result: pass


0.15 SAI FSDEF removed

https://docs.rs/stm32h7/latest/stm32h7/stm32h743/index.html?search=fsdef
From cha and chb. Worked previously. Affects H7 and L4 at least.

According to RM FSDEF is read-only.

This is from #691 which changed FSDEF from read-write to read-only, but FSDEF is still present in FRCR (here). However while the RM does say FSDEF is read-only, the description of the bit says "set and cleared by software", so it looks like it does need to be read-write.


Update master from develop

:x: Build https://ci.appveyor.com/project/oxidemod/oxide/build/3065-mdomdxvp|#3065-mdomdxvp (https://github.com/OxideMod/Oxide/commit/7de4460e5d|7de4460e5d) by @lukespragg) failed


Install will stall if spaces are present in the path to Sunshine-AIO.exe.

I noticed today when attempting to run Sunshine-AIO that if there are any spaces in the path leading to the executable, the sunshine installer stalls (See Screenshot).  I closed the sunshine installer, and the script proceeded installing the other components.  After changing the space to a -, the sunshine installer installed as expected.
I wonder if the path passed to the sunshine installer can be enclosed in quotes to allow spaces?  Not a big deal for me but I thought I'd mention if others run into this issue.

Hello, thanks for your feedback. It’s a known issue. It should be fixed in next release.

A workaround has been applied so now you can't execute the script if there is spaces in the path.


Error with paste option in context menu in firefox

version
0.9.31
Link to minimal reproduction
No response
Steps to reproduce
Open the context menu and select the paste option.

What is expected?
Paste option in context menu works normally.
What is actually happening?
Exception occurs: Uncaught (in promise) TypeError: navigator.clipboard.readText is not a function.
As shown in the previous image.
System Info
System: Windows 11
Browser: Firefox 111.0.1

Any additional comments?
No response

Firefox only supports reading the clipboard in browser extensions, using the clipboardRead extension permission.
https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/readText#browser_compatibility

Can use ctrl/⌘+v, it is recommended to use Chrome or Edge browser


chore: aligning variable names for consistency

Active implementation defines style as "boxy" but references "outline" variable in a code block. This PR aligns the variable names within that code block.

Closes #
📝 Description

Add a brief description

Active implementation defines style as "boxy" but references "outline" variable in a code block. This PR aligns the variable names within that code block.
⛳ Current behavior (updates)

Please describe the current behavior that you are modifying

Variable "boxy" is defined as a style, but variable "outline" is referenced within styleConfig.
🚀 New behavior

Please describe the behavior or changes this PR adds

Variable "outline" is changed to "boxy."
💣 Is this a breaking change (Yes/No):

No.
📝 Additional Information

This looks great and once again thanks for your contribution! Merging this 🚀


Doesnt let it open on windows 8

i open it it crashes instantly

Download the latest compiled version here: https://github.com/NYAN-x-CAT/AsyncRAT-C-Sharp/releases
Unzip it, and don't delete any file. And it will work.

@BlumeCoding, After following the Nyan's suggestion if the program is still crashing check the Antivirus logs to see if the file is being quarantined. If that isn't the case please use the visual studio debugger (@me for help if needed) and attack the log here

Can this issue be closed?


Any way to add manual DNS?

URL to the Wiki page
https://github.com/qdm12/gluetun-wiki/blob/main/setup/options/wireguard.md
What's missing?
No way to add manual DNS for use other DNS
Thanks Nico

This is for the wiki only, search for an issue on the Gluetun repository instead 😉
You can specify a DNS (over VPN but in plaintext only for now), see the DNS options page https://github.com/qdm12/gluetun-wiki/blob/main/setup/options/dns.md


How to enable CredSSP for the cluster?

I'm experiencing the CredSSP workflow failure as described here, when selecting Updates or Diagnostics.
https://social.technet.microsoft.com/Forums/en-US/cb14a059-ea1f-4d10-a0d1-11a558c26040/windows-admin-center-the-workflow-to-enable-credssp-has-been-completed-but-there-was-an-error?forum=winservergen

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

ID: 7be9997d-7c5d-1f44-c243-b232fdbdf8df
Version Independent ID: 88564bdf-d24a-c298-2d0c-371b0d33288c
Content: Manage Hyper-Converged Infrastructure with Windows Admin Center
Content Source: WindowsServerDocs/manage/windows-admin-center/use/manage-hyper-converged.md
Product: windows-server
Technology: manage
GitHub Login: @daniellee-msft
Microsoft Alias: jol

Hi, there is some information on CredSSP in cluster creation in our docs here: https://docs.microsoft.com/en-us/windows-server/manage/windows-admin-center/support/known-issues#credssp-in-cluster-creation.  Otherwise, I think you'll be best off contacting Microsoft Support (https://support.microsoft.com/contactus) as GitHub issues in this repo is to raise issues with a specific article where there is something that needs correcting, clarifying, etc. rather than particular environments where this is not working.  If there's something reproduceable and a solution to it which requires this article to be updates, I can do so. Thank you.
#please-close


fix: prioritize user config for extensions on windows

Fixes the second part of: #1213
The same logic fixed in (#1214) is duplicated in the lualine_require module, which appears to be used internally for loading things like extensions.
On windows, user defined extensions that overwrite the builtins similarly cannot be loaded due to the same string matching issue. In addition, the number of queried runtime files is always less-than or equal to 1 due to the all parameter for nvim_get_runtime_file being set to false. Making it impossible to sort the list of files and prioritize ones within the users config path vim.fn.stdpath("config").

Hi @shadmansaleh,
I wanted to follow up on this PR which has been open for a few months. I understand you might be busy, but I’d appreciate it if you could take a look when you have the chance. Thanks!
Upon reflection, the change from vim.startswith to string.match was a bit superfluous, as the main issue is just that the path string needed a trailing separator to prevent bad matches with Windows $ENV:LOCALAPPDATA\nvim-data. But both results are basically the same.

Thanks again. I didn't see this one.


Take no_emb_class into account when calling  resize_pos_embed

num_prefix_tokens gets overridden by no_embed_class here when initializing VisionTransformer. However, no_embed_class is not considered when calling rezie_post_embed, which causes the mismatch between the shape of the resized embeddings and the shape of embedding in the initialized model.
This fix is required to load deit3 models for different image sizes.

@ceshine thanks, I missed that one, looks good but I'll do a quick check  before merge, I assume you've tested it and all good for your deit3 use case


Fix sqlcmd for duckdb

Currently, %sqlcmd tables return none, when used in conjunction with duckdb.
Code Snippet:
import pandas as pd
df = pd.read_excel('https://go.microsoft.com/fwlink/?LinkID=521962')

%load_ext sql
%sql duckdb://
%sql --persist df

%sqlcmd tables

we need to investigate more, because using the native command from DuckDB doesn't return the table:
%%sql
show tables;

(empty result)
https://duckdb.org/docs/guides/meta/list_tables.html


Fade to Black

Add fade to black action that toggles. It’s detailed in the command protocol.
I currently use the custom command for this but would be nice to have a button with device id and screen id options.

What Command do you have?

[{"cma": "WO409",
"deviceld": 0,
"screenId": 0,
"type": 0}]
Function: Set whether to make
the screen fade to black.
Parameters:
"deviceId": Device ID
"screenId": Screen ID
"type": FTB enabled or disabled
[0: FTB enabled, 1: FTB disabled]

Thank you
De'Shamar English
On Aug 25, 2024, at 11:39 AM, kman1898 @.***> wrote:

[{"cma": "WO409",
"deviceld": 0,
"screenId": 0,
"type": 0}]
Function: Set whether to make
the screen fade to black.
Parameters:
"deviceId": Device ID
"screenId": Screen ID
"type": FTB enabled or disabled
[0: FTB enabled, 1: FTB disabled]
—
Reply to this email directly, view it on GitHubhttps://github.com/bitfocus/companion-module-novastar-h-series/issues/10#issuecomment-2308919026, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BKYLOD5SA53RK3WFJCC6KFTZTICFHAVCNFSM6AAAAABDRTQGOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYHEYTSMBSGY.
You are receiving this because you commented.Message ID: @.***>


send_file method is not sending an updated file

Expected Behavior
Every time I call send file it should be sending the recently updated file.
# @app.route('/data/<file>-<key>', methods=['GET'])
def data_download(file, key):
    from flask import send_file
    # Reading the path from environment
    csvfile = os.environ['data_path']+"/{}".format(file)
    if key == "abc":
        return send_file(csvfile,
                         mimetype='text/csv',
                         attachment_filename=file,
                         as_attachment=True).

Actual Behavior
First time when this method is called it sends the latest file, however after that, if there are changes made in the file it's not sending the updated file it just sends the file containing same data as it had previously though the data is getting updated in the original file.
No exception it just does not sends the updated file.

Environment

Python version:3.6
Flask version:1.1.1
Werkzeug version:0.15.5

This appears to be the browser's cache. The browser won't request the same file for a while based on the cache headers it receives the first time, it will just return its cached version without hitting the server.
There's a bunch of options you can pass to send_file to control various parts of the cache headers, or you can use the response.cache_control object to control it.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

Thank you for looking into this David.
I'll certainly try to do it after clearing the cache or using alternative
methods provided by you, Will it be okay to send an email in this thread if
for the same issue or shall I open a new issue on GitHub issue tracker?
Have a great time ahead.
Regards,
Prayas Pagade
On Wed, Sep 18, 2019 at 7:31 PM David Lord<EMAIL_ADDRESS>wrote:

This appears to be the browser's cache. The browser won't request the same
file for a while based on the cache headers it receives the first time, it
will just return its cached version without hitting the server.
There's a bunch of options you can pass to send_file to control various
parts of the cache headers, or you can use the response.cache_control
object to control it.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pallets/flask/issues/3365?email_source=notifications&email_token=ALEBDRLH2B5QGA5GYLNJULDQKIYFJA5CNFSM4IXQFT52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7AFE2A#issuecomment-532697704,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALEBDRNLJMI53PWBSPQ44H3QKIYFJANCNFSM4IXQFT5Q
.

Please use Stack Overflow for questions about your own code. This tracker is for issues related to the project itself. Be sure to include a minimal, complete, and verifiable example.


Lofreq patches

I have added the line to filtering script that substitutes AF for VAF in vcf files (header + each variant) to address the issue # 128. Most importantly, I modified _lofreq_run rule to ensure that killed runs are being relaunched. I have tested the following conditions:

Starting the run on empty directory - works as expected and runs to completion
Starting the run when partial output files are present, like normal_* and/or tumor_*  - deletes the partial output files (removing all files in directory, but keeping the parental directory), works as expected, and runs to completion
Starting run on the completed outputs - run is not executed, Snakemake shows Nothing to be done message, and all output files are in place.

No, the demo does not have rm_files used. It is not specified in config. The {params.rm_files} is the large output file that is deleted at the end of lofreq run. I used it here as one of the "checkpoints" to access whether the run is completed or not, because it is one of the first to be created when lofreq is running. Also, since we are deleting it at the end of the run, if it is still present in the directory, it indicates lofreq run was not completed sucessfully.

Why not put the rm_files in the demo? Is it because it includes a full path to the output? Could you at least put an example (commented out) in the config so users know what to put there?

My intention was to handle automatically the check of whether run was completed, and not to require user input. It is not in either of demo config, or module config for now. I can move it to config, but I thought that can potentially create a situation where the user will delete actual outputs. I will move the rm_files to config, with specifying the target file as it is now in snakemake, and will not use __UPDATE__ there, so it can be run without modification, but will give a flexibility for the user, and I will add comments to document it.

Wait, wait. params.rm_files is just the path to the large normal_relaxed.vcf.gz file that we agreed needed to be cleaned up. I don't think it needs to be user-configurable or in the config. Kostia is just using it as a check on whether the lofreq run has started, and if it has but the final target file hasn't been generated yet then the output directory is deleted.

I still don't follow. How is Kostia specifying that param? Where does it come from?

It currently comes from parameters of the same rule. It would be line 67 that is rm_files = CFG["dirs"]["lofreq"] + "{seq_type}--{genome_build}/{tumour_id}--{normal_id}--{pair_status}/normal_relaxed.vcf.gz"

Oh. I missed that. Sorry for the confusion. This is fine as-is


Fix service name on ApiServerSource

When KubeArchive creates the ApiServerSource, reacting to a KubeArchiveConfig creation, the service name set as a sink on the ApiServerSource is wrong. KubeArchive assumes the service name starts with the same word as the namespace its running on, so if KubeArchive is installed on mynamespace the Service assigned as sink in the ApiServerSource is named mynamespace-sink. The sink Service name is independent from the namespace is located at, so its always kubearchive-sink.
Acceptance Criteria

The APIServerSource created points to the service called kubearchive-sink instead of <namespace>-sink.

Notes

While we discussed that KubeArchive should be installed on the namespace kubearchive and we agreed, there are some clusters that don't allow namespace that start with kube so users are forced to change the namespace where KubeArchive is installed.

I'll pick this up since I this also is an issue with the names for brokers as well

I think this can be resolved with by adding the following to charts/kubearchive/template/operator/operator.yaml:
env:
  ...
  - name: KUBEARCHIVE_PREFIX
    value: {{ Release.Name }}

Then in cmd/operator/internal/controller/kubearchiveconfig_controller.go make the following change
var (
    ...
    k9ePrefix = os.Getenv("KUBEARCHIVE_PREFIX")
    k9eSinkName = k9ePrefix + "-sink"
    k9eBrokerName = k9ePrefix + "-broker"
    ...
)

As far as I can tell k9eSinkName is used as the name for the service account in the code as well so I think this fix will address all these issues

I believe this is already working:
          env:
            - name: KUBEARCHIVE_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace

Ignore my previous comment. I know understand the problem.

so far I had to add this:
- patch: |-
    apiVersion: cert-manager.io/v1
    kind: Certificate
    metadata:
      name: kubearchive-operator-certificate
      namespace: kubearchive
    spec:
      dnsNames:
        - "kubearchive-operator-webhooks.product-kubearchive.svc"
        - "kubearchive-operator-webhooks.product-kubearchive.svc.cluster.local"

but I'm now running into this error when applying a KubeArchiveConfig
Error from server (InternalError): error when creating "/home/skoved/work/kubearchive/kubearchive/test/log-generators/cronjobs/kaconf.yaml": Internal error occurred: failed calling webhook "mkubearchiveconfig.kb.io": failed to call webhook: Post "https://kubearchive-operator-webhooks.product-kubearchive.svc:443/mutate-kubearchive-kubearchive-org-v1alpha1-kubearchiveconfig?timeout=10s": tls: failed to verify certificate: x509: certificate signed by unknown authority


Fixes lwm2m v2

Changes since V1:

5c6edd8 now enforces path restrictions on the observation/bootstrap interface. (I'm not touching the notification interface, since it already does the necessary checks)

@2293


Huggingface repo for models (and more)

Detailed Description
It would be great to set up a huggingface repo, that could store the models
It could even store some results to #132
Context

one model is pulled from gdrive at the moment, but it sometimes is rate limited

Possible Implementation

Create repo, perhaps call open-source-quartz-solar-forecast
Give correc people access
Think about folder strucutre, perhaps models/v1/{file}, models/v2/{files}
Upload the model (start with v2 - the one giving us problems)
Upload code to load from this repo

The file is pulled here - https://github.com/openclimatefix/Open-Source-Quartz-Solar-Forecast/blob/main/quartz_solar_forecast/forecasts/v2.py#L47

new huggingface repo is here - https://huggingface.co/openclimatefix/open-source-quartz-solar-forecast


[MINOR] ui improvement

What is this PR for?

configuration sorting
remove tooltip in job menu
change repository infomation icon

What type of PR is it?
Improvement
Screenshots (if appropriate)

configuration sorting

before

after

remove tooltip in job menu

before

after

change repository information icon

before

after

Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? yes

LGTM. It's simple and clean. :-)

Looks good to me
It's very clear :)

Change looks great to me, that you for your contribution.
Awesome!

@baekhoseok Thanks for your contribution and looks nice to me!
Probably it's a nitpick, how about keeping consistency for that two buttons in interpreter setting page?
Here are two suggestions.
1. Icons with tooltips and no button border

2. Icons with button border and no tooltip

What do you think? :)

@jongyoul @soralee @anthonycorbacho @AhyoungRyu  Thank you for review ^^
@AhyoungRyu Thank you for suggestion. I fixed it.

@baekhoseok Tested and it looks good! You chose second option :)

This is the current status that I build locally.
But one wired thing is I can't build with ./grunt build in this branch. (no problem in master now)

IDK what the exact cause is, I fixed this with rebasing.
So could you rebase with below steps?
$ git checkout master

if you didn't set upstream yet (or you can skip this step)
$ git remote add upstream https://github.com/apache/zeppelin

rebase from master
$ git fetch upstream
$ git pull upstream master
$ git checkout minor_ui_fix
$ git rebase master
$ git push origin -f minor_ui_fix

@AhyoungRyu the issue you raised is not caused by this pr but #1501. Can you try after clean bower cache(bower cache clean) and remove bower_components directory under zeppelin-web?

@baekhoseok Thank you for the contribution! Do you mind to update docs/assets/themes/zeppelin/img/ui-img/interpreter_menu.png again?


karma: add ability to configure log format

Add a rudimentary switch which would let users switch between different
formats used for logging. This is needed so that software such as
logstash could easily understand the structure of log messages and
index them accordingly.
Testing:

Ran:

./karma --log.format json
./karma --log.format text
./karma --log.format foobardoesntexist

And got the expected results.

Thanks!

Sec, let me fix the tests :smile:

👍there's a backlog of CI jobs since I just back from holidays, so it might take a while for everything to complete, I'll take a look and merge this in a few hours. Thanks again


Limit menu bar when logged in without roles

The menu bar (updated in 6b7341f) only checked if user was logged in. Some menu items should not be available without either the staff or admin roles.

If neither Staff nor Admin login, nothing is available, not even searching. Is this correct?

Yes. Since we're using Azure AD for auth, anyone with an SOG account can log in. So the bulk of SBEAP functionality has to be restricted based on user role. The Roles and Capabilities doc describes what a default user is able to do without any roles. The homepage/dashboard will be similarly limited.


Document the behaviour of JWT Authentication if the remote JWKS fetch failed

Title: Document the behaviour of JWT Authentication if the remote JWKS fetch failed
Description:
It isn't explicit in the documentation (or i haven't find it) what happens if for some reasons (misconfiguration, network errors...) the JWKS fetching fails.
In this situation (no available JWKS):

What's happen if allow_missing is set and a token is provided or not?
Same if allow_missing_or_failed is set?

Also:

Is there a retry policy to fetch the JWKS?

For remote JWKS fetching.  The fetching happens at the request processing time which the JWKS is needed.  If fetching fails, the original request will fail with 401.
There is not re-try.  The next request that needs that JWKS will trigger a fetch again.
if allow_missing flag is set, the request still fail since the error is not JwtMissing.
if allow_missing_or_failed is set, the request will be ok.  It allows any errors.

Crystal clear 👍
thanks for your answer!

@qiwzhang another question, in case allow_missing_or_failed is set, is there a way (a header?) for the next filter or for an upstream server to know if the JWT verification failed because the client didn't send a valid one or because the server failed to fetch the JWKS?

For the next filter, yes,  the verification status is saved in stream_info responseCodeDetail.   No, for upstream server.


Cannot open job scheduling details

Description
When I click on the ID of a job in the "job scheduling" tab, I get an error message and cannot see job details.
Steps to reproduce the issue
Go to the job scheduling tab of an active cluster and try to open one of the jobs (does not depend on job status).
Expected behaviour
Show job information.
Actual behaviour
I always land on the following error alert:
Something went wrong

The application has encountered an unknown error and it is now in an inconsistent state. If you think that this is an error on our side, please help us improve by sending an error report on our GitHub issues page. Close this dialog to go back to the home page.

Then I get redirected to the dashboard.
Required info

Region where ParallelCluster UI is installed: eu-west-3
Version of ParallelCluster UI and ParallelCluster: 3.5.0

Additional info

OS: MacOS
Browser: chrome

Hi @simone-pignotti, I confirm sometimes the Job modal can show this error when any of these job properties are not available:

WorkDir
StdOut
StdErr

I'll work on a fix as soon as possible.


[it] Localizzazione termine Containers-as-a-service

Added Containers-as-a-service Italian localization
Signed-off-by: Paolo<EMAIL_ADDRESS>

@sistella  @annalisag-spark  please your review is needed


[Feature request] Is it possible to add y.GetMany() for x.Array()

I have a problem similar to this:
------ file xy.log with lots of lines-------
[{"str1":"hello","value1":1.2,"value2":3.14,"time":12345678912},{"str1":"world","value1":2.1,"value2":4.43,"time":12345678913}]
[{"str1":"hello","value1":1.2,"value2":3.14,"time":12345678912},{"str1":"world","value1":2.1,"value2":4.43,"time":12345678913},{"str1":"dinner","value1":12.1,"value2":24.43,"time":12345678914}]
[{"str1":"hello","value1":1.2,"value2":3.14,"time":12345678912},{"str1":"world","value1":2.1,"value2":4.43,"time":12345678913}]

So far I've used it like this:
for lines.Scan() {  // bufio lib
     g = gjson.Parse(lines.Text())
     for _, r := range g.Array() {
          str := r.Get("str1").String()
          value = r.Get("value1").Float()
          // some  code
     }
}

It would be awesome to have res:=r.GetMany("str1","value1", etc) for g.Array() similar to gjson.GetMany(). I assume, this way it would be also faster than extracting each key via r.Get(), t.i. going via a line only one time than nb of r.Get() times (?)
Thanks a lot for the great library, it's super fast :)

You can use gjson.GetMany with use r.Raw like:
results := gjson.Get(r.Raw, "str1", "value1")

Another option is to use gjson to iterate over the lines and array values like:
gjson.ForEachLine(json, func(line gjson.Result) bool {
    line.ForEach(func(_, entry gjson.Result) bool {
        res := gjson.GetMany(entry.Raw, "str1", "value1")
        // some code using res[0] and res[1]
        return true
    })
    return true
})

Thank you for the answer.
Interestingly, I benchmarked gjson.GetMany() vs gjson.Get() and gjson.Get() is faster for about 15% although intiutively I'd say gjson.GetMany() should be faster as gjson.Get() has more calls than gjson.GetMany():
res := gjson.GetMany(r.Raw, "name1", "name2", "value1", "value2")
name1 = res[0].String()
name2 = res[1].String()
value1 = res[2].Float()
value2 = res[3].Float()

vs
name1 = r.Get("name1").String()
name2 = r.Get("name2").String()
value1 = r.Get("value1").Float()
value2 = r.Get("value2").Float()

Regarding the gjson.ForEachLine, it's slower for my application than bufio due to string conversion of a loaded file.
Thank you once more  🙏

You're welcome :)


[BUG] Karma image becomes distorted in mobile view

https://akshitagupta15june.github.io/Moksh/Blogs/Blog.html

go fot it!

please assign me this issue

assigned!


Improve syntax error reporting; revert babel-runtime change.

This diff makes a number of changes:

It adds a useful message when a syntax error happens due to a configuration issue. This is something that a lot of people, including me, run into. There are a couple of scenarios that the new message should address:
babel-jest is installed but .babelrc is not properly set up. The code may use imports but it doesn't transform them into requires
no preprocessor is set up at all but people expect code to just work
the preprocessor was updated but the cache key doesn't consider everything and people don't know to use --no-cache.
it also prints the code that it tried to run. This is especially valuable for debugging – something I've run into dozens of times myself and I always had to hack Jest to print the source.
Screenshots: screenshot1 and screenshot2
Funny enough, the stack trace filter used to filter every line that contains node_modules. Since the message is part of the stack trace, it would filter out Preprocessor: node_modules/babel-jest. That took a while to figure out… I changed the stacktrace filter to look for \s+at in the beginning of the message.
Note: this error is not  triggered when Babel finds a legit syntax error in the source code. When that happens, babel throws an error that is not based on SyntaxError, so it bypasses this check. This is actually nice – it means we can show this message only while people have trouble setting up their preprocessor.
We were swallowing runtime errors in --verbose mode, probably because @gaearon and I were working on the same code on the same time and after the merge of #599 this got lost again. Unfortunately the reporter code is a bit unwieldy and hard to test – there is an internal task that tracks the rewrite of that component.
This diff also removes babel-runtime again. It was added in #785 but I had a chat with some of the babel core developers and it seems like the best course of action is to keep babel-polyfill. babel-runtime can be added by people who use babel-jest through .babelrc. Because Jest sets the NODE_ENV variable to test, it can be enabled just for the test environment as well. The auxiliaryCommentBefore option should be enough to fix code coverage reporting.

@facebook-github-bot import


Fix for BUG #11

This change is

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Add pull request with suggested fix

Added logic to test if required groups is null. The line
$data = $ast.Find( { $args[0] -is [System.Management.Automation.Language.HashtableAst] }, $false )
returns no object if RequiredGroups contains no values.

Agree with the elseif - was trying to avoid running the ConvertStringToHashtable ComplexObjectsEqual in this case.

@rpsqrd Please have a look at the changes added to fix the null condition


Filter that disallows hybridization changes

In some mappings in ligands in the PLB system, mapping atoms that are connected by single or double bonds can lead to problems. It would be great to see if mappings that do not map these hybridization changes would perform better.
Example 1: P38 Edge lig_p38a_2gg - lig_p38a_2ee

Mapping of sulfone and amide let to "stereo inversion" with OpenMM 8.0.0

Other example:
CDK8 Lig_25 - lig_24

Hi @hannahbaumann ,
do you think this filter could help you out?
https://github.com/OpenFreeEnergy/kartograf/blob/8ef8f8850ed1bbf0afcf656bc80172bd305f5f91/src/kartograf/filters/element_change.py#L54

I think this is solved.


[Request] Ability to hide News ticker in statusbar or just move it to help menu

Basically what title says, it is really out of place visually an is not that important to have it there all the time.
Thanks in advance

Heh, you opened this issue a day before it was set to automatically disappear for everyone. :stuck_out_tongue:
Next time I add a news update, I'll make it disappear if you click on it, or dismissible with a close button.

Heh, you opened this issue a day before it was set to automatically disappear for everyone. :stuck_out_tongue:
Next time I add a news update, I'll make it disappear if you click on it, or dismissible with a close button.


Revert usb dependency to version 1.9.2

Special branch of particle-usb that pins usb to a version known to work with Node 12.
To release a new version:

Rebase this branch to latest main
npm version x.y.z-mfg.1 where x.y.z is the latest relase on main
git push --follow-tags
GitHub Actions will release the version to the mfg tag
In the project using Node 12, install with npm install particle-usb@mfg

Closing the PR as it's not going to be merged. Rebase and re-release as needed later.


fix: Correct playhead when seek beyond seekRange

Use recurring timer to correct playhead when time is beyond seekRange.

@CeilingFANC please sign the CLA! Thanks!

@CeilingFANC, this is failing tests on all platforms.  You can run the tests yourself with python3 build/test.py.

@CeilingFANC I reopened it

@CeilingFANC Please, rebase!

This PR has been identified as the cause of seeking-related bugs in the Cast Application Framework, affecting v4.7.13, v4.8.0, and v4.8.1.  I will revert this PR and reopen the associated issue.  The reverted PR will appear in v4.7.14 and v4.8.2.


How do I "install" this helper?

Hello,
I've downloaded the android-sqlite-asset-helper zip file but don't know how to install it. Should I extract it to a certain folder? Should I run the batch file?
Sorry if this is an obvious question but I'm new to Android development.

Follow the Setup instructions in the documentation.

Thanks but the setup instructions seem to be for how to use the helper in a project. I need to know where to put the files I extracted from the zip file.

From what ZIP file? One of the releases? The setup instructions make it so you don't need that to start with.
Or did you download the source for this library to do something with it yourself? If so, what are you trying to do with it that you don't know where to start?

On this page, I clicked the "Download ZIP" button and downloaded "android-sqlite-asset-helper-master.zip". I'm assuming I need to put that in my Android Studio/SDK directory so I can then use it in my projects.
Thanks for helping. I just don't know what to do.

If you're using Android Studio, that means you're using gradle so the better installation method is to use the "dependencies" configuration instead of downloading the JAR manually. Again, the directions on how to do that are on that same page, the Gradle section.

@SirKnowS just put the following into your build.gradle file for your module (usually app/build.gradle)
and start Sync or just build your project and Gradle will download library in background

OK thank you. I get it now.

Hello, I added the dependency in build.gradle and when I sync project, it is telling that "Gradle project sync failed". Please help. Attached the error screenshot. Error(15, 0).

@Priyabrata121 What version of Android Studio are you running? 2.3.2?
Try clicking on the Upgrade plugin to version 2.3.2...

@Kisty I had version 2.3.2 and the upgrade plugin option was not working. So, I applied the new patch for 2.3.3. Still I get same error message. In the idea.log , I am getting below exception. Please help.

Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method compile() for arguments [com.readystatesoftware.sqliteasset:sqliteassethelper:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
at org.gradle.internal.metaobject.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:182)
at org.gradle.internal.metaobject.ConfigureDelegate.invokeMethod(ConfigureDelegate.java:89)
at build_3mrpgo89fbesxwy2p3wbavns$_run_closure1$_closure4.doCall(C:\Users\mohapriy\AndroidStudioProjects\KidLearningZone\build.gradle:15)
at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:70)
at org.gradle.util.ConfigureUtil.configureTarget(ConfigureUtil.java:160)
at org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:106)

Can you post your build.gradle and app/build.gradle file?

app/build.gradle
`apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.priya.kidlearningzone"
minSdkVersion 22
targetSdkVersion 22
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
sourceSets {
main { assets.srcDirs = ['src/main/assets', 'src/main/assets/', 'src/main/assets/fonts'] }
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
build.gradle:buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

dependencies {
    compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'
}

}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
`

I see the problem. The compile statement should be in your app/build.gradle file not the build.gradle.

Thank you @Kisty for pointing out my mistake. Now, it is working.

No problem!
In future, can you post your question on a developer forum like stackoverflow for these kind of problems as the Github issue tracker is more for issues surrounding the library,not for general development. Even better, just Google your error or problem and it will probably come up.


Array index doesn't work if index is a variable

In a scenario outline I have a global json variables named dogs.
This works
* set dogs[0].name = response.name
This throws an error
* set dogs[__num].name = response.name
Could not parse token starting at position 1. Expected ?, ', 0-9, *

variables are not supported in set and LHS
actually in most cases, you can do a direct JS eval:
* def dogs = [{}]
* def foo = 0
* dogs[foo].name = 'bar'
* match dogs == [{ name: 'bar' }]

And you can always use variables and the karate.set() JS API:
* def dogs = [{}]
* def foo = 0
* karate.set('dogs', '$[0].name', 'bar')
* match dogs == [{ name: 'bar' }]

please ask questions like this on stack-overflow


[5.x] v5.0.0-RC5 BUG preventing adding custom NAT Route rules

var.nat_gateway_route_rules is ignored on module "oke" source  = "oracle-terraform-modules/oke/oci" version                      = "5.0.0-RC4"
As a result, my custom NAT route rule ie:
nat_gateway_route_rules = [
  {
    destination       = "<IP_ADDRESS>/16" # Route Rule Destination CIDR
    destination_type  = "CIDR_BLOCK"  # only CIDR_BLOCK is supported at the moment
    network_entity_id = "drg"         # for nat_gateway_route_rules input variable, you can use special strings "drg", "nat_gateway" or pass a valid OCID using string or any Named Values
    description       = "Route to Phoenix"
  },
]

Tries to be deleted, due to the filter on the route rules:
  dynamic "route_rules" {
    # * filter var.nat_gateway_route_rules for routes with "drg" as destination
    # * and steer traffic to the module created DRG
    for_each = var.nat_gateway_route_rules != null ? { for k, v in var.nat_gateway_route_rules : k => v
    if v.network_entity_id == "drg" } : {}

    content {
      destination       = route_rules.value.destination
      destination_type  = route_rules.value.destination_type
      network_entity_id = oci_core_drg.drg[0].id
      description       = route_rules.value.description
    }
  }

but it looks like var.nat_gateway_route_rules is not making it down into the child module.
Please advise.

resolved in #842


⚠ Jenkins Plugins Artifactory has degraded performance

In 880042f, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1196 ms

Resolved: Jenkins Plugins Artifactory performance has improved in a257f54 after 18 minutes.


token-cli: Add compatibility for token-2022

Problem
The token CLI only works with Tokenkeg... and not Tokenz....
Solution
Have them both supported at once!  This takes the approach of figuring out the program id based on the inputs, and using a fallback.  This is currently hardcoded to token-2022, but most likely we'll need to default to Tokenkeg.  This also exposes what's missing in RPC to support both token programs.
It was surprisingly tricky to implement "program auto-detection" while limiting the number of RPC calls, and respecting sign-only mode, but I think this works!
Most likely, the best option is to add token-2022 support to RPC before adding these changes. But most of the work is here!

@CriesofCarrots feel free to use this branch to test RPC changes! All of the tests marked with TODO for token-2022 do not pass with token-2022, but should pass with token-2022 RPC work.

@samkim-crypto if you want to use this branch, you just need to patch your SPL repo by running ./patch-crates.io path/to/your/solana/repo and then you can start using the program_client in the Config object

@CriesofCarrots this one's finally ready for a look too!


added logical partitioning to pjit guide

added logical partitioning to pjit guide

Seems we are missing the rule for embed, we currently only have:
rules = (('batch', 'data'),
         ('hidden', 'model'))

I think the 'embed' axis is intended to be replicated instead of being sharded. Can you confirm @IvyZX?

Yes - because it needs to match the partitioning layout above (on the non-logical example). You can think that rules implies the mapping of ('embed', None) here.


Add option to display stack trace for errors and warnings

Support for optional stack traces in log on errors and warnings, based on a project setting option to set the call stack size, from https://github.com/godotengine/godot-proposals/issues/963.
Windows, Linux:
Implemented stack trace code in specific OS utility, used in common with the crash handler.
Note: On Windows, stack traces work only with MSVC, not with MingW (see #42540).
Other platforms:
Not supported yet.

Example script:
extends Node

func _ready():
	_test_error()

func _test_error():
	push_error("Test error")
	get_node("abc")

Example output:
ERROR: Test error
   at: GDScriptFunctions::call (modules\gdscript\gdscript_functions.cpp:749)
Callstack:
  - godot.windows.tools.64.exe:GDScriptFunctions::call
    At C:\dev\source\godot\modules\gdscript\gdscript_functions.cpp, line 750
  - GDScript:_test_error
    At res://Node.gd, line 7
  - GDScript:_ready
    At res://Node.gd, line 4
ERROR: Node not found: abc.
   at: (scene\main\node.cpp:1413)
Callstack:
  - godot.windows.tools.64.exe:Node::get_node
    At C:\dev\source\godot\scene\main\node.cpp, line 1413
  - godot.windows.tools.64.exe:call_with_variant_args_retc_helper<Node,Node *,NodePath const &,0>
    At C:\dev\source\godot\core\variant\binder_common.h, line 615
  - godot.windows.tools.64.exe:call_with_variant_args_retc_dv<Node,Node *,NodePath const &>
    At C:\dev\source\godot\core\variant\binder_common.h, line 451
  - godot.windows.tools.64.exe:MethodBindTRC<Node,Node *,NodePath const &>::call
    At C:\dev\source\godot\core\object\method_bind.h, line 555
  - godot.windows.tools.64.exe:GDScriptFunction::call
    At C:\dev\source\godot\modules\gdscript\gdscript_vm.cpp, line 1479
  - GDScript:_test_error
    At res://Node.gd, line 8
  - GDScript:_ready
    At res://Node.gd, line 4

This is interesting, and I guess as long as not too confusing to users it would work also great for telemetry and other stuff if also other platforms are supported.

I've tried to rebase this PR, but it doesn't appear to work on Linux: https://github.com/Calinou/godot/tree/error-handler-windows

Closing because this PR has conflicts and the original author is no longer interested in working on it. However, if anyone wants this feature, you are welcome to salvage it and work on it further.


Rancher restore fails for a S3 folder with the error Failed to download s3 backup: no backups found

Rancher Server Setup

Rancher version: master-head b6bcfad
Installation option (Docker install/Helm Chart): Docker and helm

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): RKE1

Proxy/Cert Details: Self-signed

Information about the Cluster

Kubernetes version: v1.20.7
Cluster Type (Local/Downstream): local

Describe the bug
If backup location is present within a folder in S3, restore operation fails
To Reproduce

Install rancher backup by providing the S3 compatible object values as follows:

Backup works fine
Take a restore from the backup above

Result
Restore fails with the error  Failed to download s3 backup: no backups found and the status goes to Retrying
Expected Result
Restore should have worked without any errors even if a folder is provided.
Screenshots

Verified on master-head 21ab02c, rancher backups 2.0.0+up2.0.0-rc5

From local installed backup by providing the following config in S3

Installed fleet git repo in continuous delivery

Created backup

Installed another fleet git repo

Restored from the initial backup and verified only gitrepo1 was retained and the restore goes through fine


Analyze and improve speed and memory consumption

We had a use case at Argenta, where we worked with table of about 300 cols and ~2 mil. of rows.
There, the preprocessing took a lot of time and memory especially.
What we’d need is to find any dataset which is of similar size and is close to reality (mixture of categorical, flags and continuous variables, has missing) and see how much memory Cobra uses and how slow it is.
The issue occurs in preprocessor.fit() and preprocessor.transform() – but these guys do a lot behind, so I am trying to pinpoint the cause (is it the binning? Incidence replacement? Maybe the data types of intermediate tables are not efficient and it takes too much memory … ).
Once we find the cause, we can figure out how to fix it.

I knew this issue would come up sooner or later. The problem is situated in CategoricalDataProcessor. More specifically in the part where you run chi-square tests. This takes a long time as you have to a test per category, per column (which takes a long time)...

Thanks for mentioing that, it really helps! I will see what we can do.
I also saw that adding the column with split (train/selection/validation) is slow - in cases with bigger datasets, it takes too much memory because we are splitting and combining multiple large dataframes (easier would be just create a list and append). I sitill need to writ an issue for that.

Thanks for mentioing that, it really helps! I will see what we can do.
I also saw that adding the column with split (train/selection/validation) is slow - in cases with bigger datasets, it takes too much memory because we are splitting and combining multiple large dataframes (easier would be just create a list and append). I sitill need to writ an issue for that.

No problem! And you are right, it could be that the train/selection/validation split becomes slow with bigger datasets. But then I wonder whether it is still feasible to use pandas (perhaps switching to Spark is the better option, but that really depends. You are the better judge here). Alternatively, we should indeed try to come up with something better, but then you loose the fact that you can really on scikit-learn...
As for the actual issue: CategoricalDataProcessor is always the bottleneck of the preprocessing part. Even with smaller datasets, it is slow so that should be the main focus here.

I am just writing new split funciton (#53) because indeed when testing on large dataset, it is unnecessary slow. If you want, I tag you in the PR.
Yeah, there is a threshold when Python makes less sense. But average Cobra user will have some sort of ABT with maybe milion or two of rows and few hundreds columns and then it should work in a reasonable amount time. I know we decided to rely on Pandas and sklearn and it was a good decision IMHO, but there is still some room for optimization.
CategoricalDataProcessor I am wondering how to speed this up - would paralelization work here? It might be overkill, but not sure where else there is. Or write your own chi-square test.

yes, you can add me as reviewer to that PR if you want to!
Regarding the CategoricalDataProcessor, parallelisation in pure Python is really hard! Implementing chi-square yourself could be an idea, but are we expecting to beat scipy in terms of performance there? The easiest would be to think of simpler alternatives to avoid chi-square I guess...
About your additional considerations: I think you are right and I thought about it really hard! The way I see it, you have three options:

Add additional columns to the original DataFrame, which will increase its size and memory consumption
Return a new DataFrame with only the processed columns, but then you have to stitch them all together at the end
Overwriting the original columns with processed ones (but then we have to make sure we copy the original DataFrame, otherwise we have to restart notebooks every time we want to try something different). So in the end we have two DataFrames which in my view will take up more memory than the first option (because you duplicate target column, index, ID column and some basic overhead that comes with the DataFrame class).

So as you can see, the first approach is in my view the better one in terms of memory consumption... And yes, we process much more columns than we use in the final model, but if you want a clear separation of the different pipeline steps, I don't see any alternative. Or do you have an idea?

Agree with the implementation of CategoricalDataProcessor, this is an uphill battle we won't win.
I like 2 - just return processed (binned and incidence replacement) variables in a new dataframe. But then you have two large dataframes.
The issue (from the feedback I got) is mostly linked to memory - cobra is eating too much while processing the data. I'd like to check the internal memory usage. For example during the chi-square test, we create many dataframes, are those kept in memory or not?
Or the dataframe we return - does it have optimal data structures?

Use categorical type instead of object.
Every continuous variable is float64 which takes a lot of space, perhaps unnecessarily, and changing them to more appropriate  ones helps).

So yeah I merged develop into my issue branch and so only that commit now appearse here, weird.
But the important commit here that should show up instead (maybe because it was all upload in one push?) is this one:
https://github.com/PythonPredictions/cobra/commit/c787e8bfbc1e8eb3d648f6e77042621c0b1a670b.
It provides a method to create a big (2Mx300) housing price dataset to run the performance tests with.
I'm already pushing this so anyone can continue picking up this issue, but I'll gladly have a look at the performance stuff mentioned in the posts above, tomorrow.

A lot of ideas were proposed. I'm summarizing them in descending order of feasibility and impact:

Solved (#53): slow train/selection/validation split.
Slow CategoricalDataProcessor due to chi²:
a. low-hanging fruit memory usage optimization: during the chi-square test, we create many dataframes, are those kept in memory or not? (del df_intermediary if no longer required) + optimal data structures: categorical > object and more appropriate column types than float64 for continuous vars (https://numpy.org/doc/stable/user/basics.types.html).
b. Add additional columns to the original DataFrame, which will increase its size and memory consumption (but better than c. and d. in terms of memory consumption)
c. Return a new DataFrame with only the processed columns, but then you have to stitch them all together at the end (preferred over b. and d. by Honza - "just return processed (binned and incidence replacement) variables in a new dataframe. But then you have two large dataframes.")
d. Overwriting the original columns with processed ones (but then we have to make sure we copy the original DataFrame, otherwise we have to restart notebooks every time we want to try something different). So in the end we have two DataFrames which in my view will take up more memory than the first option (because you duplicate target column, index, ID column and some basic overhead that comes with the DataFrame class).
e. regroup small categories into a category other based on their size (in percentage, e.g. all categories with size less than 5% should be renamed to "other") before computing chi² tests
c. parallellization maybe, if not overkill.
f. extra idea: offloading memory by writing some intermediary result dataframes to a cache folder on hard disk?
g. Not planned: write chi² tests ourselves: unlikely faster than scipy.
Not currently planned: Speedup with spark: Cobra's spark branch - not the priority here. We focus on maximum use case that an average Cobra user would have, about 2Mx300cols, which should still be feasible with standard python (=no spark).)

I'll check 1a first.


Use Package dashboard track of AZP language packages

When the package build pipeline is triggered the results are not put into the expected CDash track or group

Marked as WIP because build are not showing up on the track/group on CDash as intended.

The manually triggered packaging show up in the packaging group on cdash: https://open.cdash.org/index.php?project=SimpleITK&date=2019-10-02#!#Package


Switch feature, config feature and a bugfix

switch feature added to quickly switch between configured Okta profiles and set them as the default profile for the awscli command line
config feature added to create/add new Okta profile in ~/.okta-aws file
fixed #180 issue where okta-awscli ignored the profile setting for specific okta profile in the ~/.okta-aws file

@maxtacu Thanks for including a fix for #180 in this PR. When do you think you can merge it and also push the new version to PyPI?


Error: pull model manifest

I‘ve tried the methods from the FAQ,  but it does not work,  some advices or guidance will appreciated, Here are the commands I executed and the results
[root@Installer ~]# ollama run qwen:0.5b
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/qwen/manifests/0.5b": dial tcp: lookup registry.ollama.ai: i/o timeout

It looks like your DNS isn't resolving registry.ollama.ai. Can you ping it?

I met the same error: pull model manifest: Get "https://registry.ollama.ai/v2/library/llava/manifests/latest": dial tcp [2606:4700:3036::6815:4be3]:443: i/o timeout

I add Environment="https_proxy=http://xxxxxx" in /etc/systemd/system/ollama.service, and it worked out.