Nerdtree window switches/swaps with main window,  when opened with directory as argument

Environment

Operating System: x86_64 GNU/Linux, 5.4.45
Vim/Neovim version :version: v0.5.1
NERDTree version, found on first line of quickhelp ?: 6.10.16
Are you using any of these NERDTree-dependent plugins?

[ ] Xuyuanp/nerdtree-git-plugin
[ ] ryanoasis/vim-devicons
[ ] tiagofumo/vim-nerdtree-syntax-highlight
[ ] scrooloose/nerdtree-project-plugin
[ ] PhilRunninger/nerdtree-buffer-ops
[ ] PhilRunninger/nerdtree-visual-selection
[ ] jistr/vim-nerdtree-tabs
[ ] Others (specify):

Provide a minimal .vimrc file that will reproduce the issue.

if has("nvim")
  let g:plug_home = stdpath('data') . '/plugged'
endif

call plug#begin()
Plug 'preservim/nerdtree'
call plug#end()

autocmd!
set number relativenumber
syntax enable
set encoding=utf-8
set background=dark
set hidden
set confirm
set nobackup
set nowritebackup
set noswapfile
set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2
set termguicolors

let mapleader = "\<Space>"
nnoremap <silent> Q :q<CR>
nnoremap <silent><C-n> :NERDTreeToggle<CR>

let g:NERDTreeChDirMode=2
let g:NERDTreeIgnore=['\.rbc$', '\~$', '\.pyc$', '\.db$', '\.sqlite$', '^__pycache__$', '^node_modules$']
let g:NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\.bak$', '\~$']
let g:NERDTreeShowBookmarks=1
let g:nerdtree_tabs_focus_on_files=1
let g:NERDTreeGitStatusWithFlags = 1

" How can I close vim if the only window left open is a NERDTree?
"autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree.
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
    \ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif

" Open the existing NERDTree on each new tab.
"autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif

Steps to Reproduce the Issue

Invoke nvim with directory as argument
navigate and try to open any file.
invoke nerdtree (:NERDTreeToggle)
try to switch between nerdtree window and file window. you can use any  map<c-w><c-h>,<c-w>w or :wincmd h.

https://user-images.githubusercontent.com/47944176/135973428-685b5bdf-e284-4abd-8e47-4f637d43655a.mp4

Are you sure this is a minimal vimrc?

@DevT0ny I actually ran into something similar recently and didn't want to remove that snippet since it is helpful to not replace NERDTree with other buffers. When a new buffer is opened in a new window, bufname('#') will always be different from bufname('%') at first, so this is triggering the buffer swap.
I modified it to only do the buffer swap if the window where BufEnter is called is the leftmost window since my NERDTree should always be the leftmost window. This way, it still works when that window is replaced with a  different buffer, but doesn't do the swap when you move from the NERDTree window to another window.
autocmd BufEnter * if winnr() == winnr('h') && bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
    \ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif

Thanks @acdifran


Freezes VS Code

Not sure what information I can provide, but I thought I'd just report it. This addon freeze vs code for me. I verified this by disabling the extension. This happens every time in at least one of my projects. I have other projects that freeze occasionally but given that nature, there's no way for me to verify this extension is the cause of those. Happy to provide more information if directed.

I'm aware of this problem, it was reported some time ago, and the solution is to create a language server. It's quite hard to reproduce, and it seems to occur when you have a workspace with lots of CSS files. I'm working on it on my free time, but I can't give you a due date. Thanks for taking your time to report it. :)

@zignd I dont know if this is related, but my VSCode no longer provides intellisense.  Disabling the extension fixes, and enabling breaks.

@cgatian It is. When the extension takes too long to cache the classes, it compromises the VS Code as a whole. I will work on a language server tonight so that we can have this workload in a separate process.

Can you provide an update to at least prevent the behavior? I maintain an extension package that this uses, and don't want others to run into the bug.

I have the same issue on my large projects, vscode freezes when the extension is caching classes

I guess this issue has been fixed in the latest update. All thanks goes to Erich Gamma for this great pull request https://github.com/zignd/HTML-CSS-Class-Completion/pull/90.


Facebook not parsing videos

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I'm running yt-dlp version 2023.07.06 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
USA
Provide a description that is worded well enough to be understood
PS C:\Users\Jeremy\Desktop\Youtube-DL\music> ./yt-dlp --update-to nightly
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>Current Build Hash: 5ff3e702171a50175c34397494e2d18ce35d771c2110b1e59bd173ec2fb352aa
Updating to<EMAIL_ADDRESS>...
Updated yt-dlp to<EMAIL_ADDRESS>PS C:\Users\Jeremy\Desktop\Youtube-DL\music> ./yt-dlp -f bestvideo[height<=1080]+bestaudio https://www.facebook.com/100068412606448/videos/2082785925397242 -o "test.%(ext)s"
[facebook] Extracting URL: https://www.facebook.com/100068412606448/videos/2082785925397242
[facebook]<PHONE_NUMBER>397242: Downloading webpage
[facebook]<PHONE_NUMBER>397242: Downloading webpage
ERROR: [facebook]<PHONE_NUMBER>397242: Cannot parse data; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
PS C:\Users\Jeremy\Desktop\Youtube-DL\music>
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
PS C:\Users\Jeremy\Desktop\Youtube-DL\music> ./yt-dlp -vU -f bestvideo[height<=1080]+bestaudio https://www.facebook.com/
100068412606448/videos/2082785925397242 -o "test.%(ext)s"
[debug] Command-line config: ['-vU', '-f', 'bestvideo[height<=1080]+bestaudio', 'https://www.facebook.com/100068412606448/videos/2082785925397242', '-o', 'test.%(ext)s']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[876b70c8e] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2022-01-24-git-0a83ecbf48-full_build-www.gyan.dev (setts), ffprobe 2022-01-24-git-0a83ecbf48-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1863 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>Current Build Hash: 7f7cdae9ae8c2706352e1ca2314642026bf5afeb6c20fb76ec3e79cbb5fc6256
yt-dlp is up to date<EMAIL_ADDRESS>[facebook] Extracting URL: https://www.facebook.com/100068412606448/videos/2082785925397242
[facebook]<PHONE_NUMBER>397242: Downloading webpage
[facebook]<PHONE_NUMBER>397242: Downloading webpage
ERROR: [facebook]<PHONE_NUMBER>397242: Cannot parse data; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp\extractor\common.py", line 715, in extract
  File "yt_dlp\extractor\facebook.py", line 733, in _real_extract
  File "yt_dlp\extractor\facebook.py", line 680, in _extract_from_url

I have tried this with videos I have been able to download in the past and I am now getting this error even with them.

Closing as duplicate of #4311, but I am noting in that issue that this error occurs with nearly every FB video


Lacking clarity

#enabling-connectivity-from-vms-restricted-by-using-nsg
"create another NSG that allows access to the Data Lake Storage Gen1 IP Address."
It would be preferable if you could be more explicit about what steps need to be taken as it links to a very generic set of documentation.
For example, is it an outbound or inbound NSG rule? What ports? What protocol?
#enabling-connectivity-from-vms-restricted-by-using-udr-or-expressroute
"a special route needs to be configured"
As above, it would be preferable if you could be more explicit about what steps need to be taken.
For example, what should Next-hop be - 'Internet'?

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

ID: 8c062497-8633-fde8-56fb-27ed3a67ce3a
Version Independent ID: b4106c68-cd16-ab25-7abf-9d58aa7060d9
Content: Connect to Azure Data Lake Storage Gen1 from VNETs
Content Source: articles/data-lake-store/data-lake-store-connectivity-from-vnets.md
Service: data-lake-store
GitHub Login: @esung22
Microsoft Alias: elsung

@rohancragg Thank you for your feedback . We will investigate and update this thread.

@rohancragg Thanks for the feedback! You can find more information on Network Security Groups Here.
NSG rules allow or deny TCP traffic based upon who starts the connection. If you are connecting to your ADLS, you will need an outbound allow rule on ports 80 & 443 with TCP to the public IP of your ADLS. Please let me know if you need any additional information.
I have assigned the issue to the content author to evaluate and update as appropriate.

Same for this one, including Stephen.
From: TravisCragg-MSFT<EMAIL_ADDRESS>Sent: Monday, March 18, 2019 1:56 PM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Ellick Sung<EMAIL_ADDRESS>Assign<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] Lacking clarity (#27425)
Assigned #27425https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F27425&data=02|01|elsung%40microsoft.com|22ba84af1bf94bc79c4308d6abe42e49|72f988bf86f141af91ab2d7cd011db47|1|0|636885393849785920&sdata=7OCYPg0tc2Oc9ZQK0nh1NvJhSfI7XzEIBZEltaJHyMo%3D&reserved=0 to @esung22https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fesung22&data=02|01|elsung%40microsoft.com|22ba84af1bf94bc79c4308d6abe42e49|72f988bf86f141af91ab2d7cd011db47|1|0|636885393849795921&sdata=aEC3G29nWOPRNMEn7BU6xZFGq7nmmstyP8%2FipqTpK4U%3D&reserved=0.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F27425%23event-2211725935&data=02|01|elsung%40microsoft.com|22ba84af1bf94bc79c4308d6abe42e49|72f988bf86f141af91ab2d7cd011db47|1|0|636885393849795921&sdata=tnPnkw1L3phu774YP%2BaOKrGmjPmRaivttiOePQN%2F%2B%2B8%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOP8JSEQF30SzR0vZg--41zHDGKUEgZsks5vX_12gaJpZM4b5owk&data=02|01|elsung%40microsoft.com|22ba84af1bf94bc79c4308d6abe42e49|72f988bf86f141af91ab2d7cd011db47|1|0|636885393849805914&sdata=bgRSePXPUoz%2FrQDedLsl%2Bedt2%2FZe5klJR1wGWp1HFE8%3D&reserved=0.


react-native 0.59.10 in Back off at Android 4.1.2

React Native version:0.59.10

Steps To Reproduce

Describe what you expected to happen:
Snack, code example, screenshot, or link to a repository:
I pulled the react-native version 0.59.10
Executing react-native run-android is OK
But Android 4.1.2 will crash
Flash back.

This is the case in the  Android studio logcat log.

I tried all versions larger than 0.58.6 and this happened.

React Native version: 0.59.10

Help!

Is anyone here?

I was actually surprised to read that RN still supposedly supports API 16+, even though Google Play has dropped everything lower than 26 (28 a week from now). Curious to see how long that will be feasible...

Are there big guys?

See this issue here:
https://github.com/facebook/react-native/issues/25494


L7042: Missing escape char "" before ">"

@MandiOhlinger, cc @Ishasahni1,
Localization team has reported source content issue that causes issue for localization in multiple files.
We found 4714 occurrences of missing escape chars "" before closing bracket ">" in 1072 files.
The missing escape char causes the closing bracket to not be properly locked in localization handoff, which causes Machine Translation issue.
For this PR, we have only included one file as example of the fix that is needed.
Could you, please, help to use search and replace to fix all occurrences?

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

biztalk/adapters-and-accelerators/install-biztalk-adapter-pack-2013-r2-and-2013.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Better error message on real-time when it closes for duplicate topic.

Is your feature request related to a problem? Please describe.
Currently when a user tries to listen to real-time events using realtime-dart, the connection closes if the user has already opened a connection with the same topic. When this happens, there are no intuitive error message or anything given. Because of this, first time users of supabase struggle to find the cause of the issue.
Describe the solution you'd like
Give some kind of error message maybe as a callback of subscribe? I haven't put to much thought into how it should look at the end.
Describe alternatives you've considered
Add docs?
Additional context
Just jotting some thoughts before I forget it.

In a short test, I encountered that both channels were closed. Even with delay between the two channel creations, both were closed and non received events. May create a pr with the test.


🇿🇦 Add departments and chapter 9 institutions

Expanding on the South African state level organizations.

Turn this to draft since I found a new source for chapter nine organizations.


[fix] [ml] fix wrong msg backlog of non-durable cursor after trim ledgers

Background

But after trimming ledgers, ml.lastConfirmedPosition relies on a deleted ledger when the current ledger of ML is empty.
Cursor prevents setting markDeletedPosition to a value larger than ml.lastConfirmedPosition, but there are no entries to read[1].
The code description in the method advanceCursors said: do not make cursor.markDeletedPosition larger than ml.lastConfirmedPosition[2]

Issue
If there is no durable cursor, the markDeletedPosition might be set to {current_ledger, -1}, and async mark delete will be prevented by the rule-2 above. So he backlog, readPosition, and markDeletedPosition of the cursor will be in an incorrect position after trimming the ledger. You can reproduce it by the test testTrimLedgerIfNoDurableCursor

[1]: https://github.com/apache/pulsar/blob/master/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedCursorImpl.java#L1979-L2000
if (((PositionImpl) ledger.getLastConfirmedEntry()).compareTo(newPosition) < 0) {
    boolean shouldCursorMoveForward = false;
    try {
        long ledgerEntries = ledger.getLedgerInfo(markDeletePosition.getLedgerId()).get().getEntries();
        Long nextValidLedger = ledger.getNextValidLedger(ledger.getLastConfirmedEntry().getLedgerId());
        shouldCursorMoveForward = nextValidLedger != null
                && (markDeletePosition.getEntryId() + 1 >= ledgerEntries)
                && (newPosition.getLedgerId() == nextValidLedger);
    } catch (Exception e) {
        log.warn("Failed to get ledger entries while setting mark-delete-position", e);
    }

    if (shouldCursorMoveForward) {
        log.info("[{}] move mark-delete-position from {} to {} since all the entries have been consumed",
                ledger.getName(), markDeletePosition, newPosition);
    } else {
        if (log.isDebugEnabled()) {
            log.debug("[{}] Failed mark delete due to invalid markDelete {} is ahead of last-confirmed-entry {}"
                     + " for cursor [{}]", ledger.getName(), position, ledger.getLastConfirmedEntry(), name);
        }
        callback.markDeleteFailed(new ManagedLedgerException("Invalid mark deleted position"), ctx);
        return;
    }
}

[2]: https://github.com/apache/pulsar/blob/master/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java#L2861-L2863
// move the mark delete position to the highestPositionToDelete only if it is smaller than the add confirmed
// to prevent the edge case where the cursor is caught up to the latest and highestPositionToDelete may be
// larger than the last add confirmed

Modifications
Do not make cursor.markDeletedPosition larger than ml.lastConfirmedPosition when advancing non-durable cursors.
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: x

/pulsarbot run-failure-checks

rebase master

/pulsarbot run-failure-checks

rebase master

rebase master

Codecov Report

Merging #21250 (f0c7d02) into master (dbb1577) will increase coverage by 36.52%.
Report is 5 commits behind head on master.
The diff coverage is 77.77%.

@@              Coverage Diff              @@
##             master   #21250       +/-   ##
=============================================
+ Coverage     36.69%   73.21%   +36.52%
- Complexity    12193    32512    +20319
=============================================
  Files          1698     1887      +189
  Lines        130509   140233     +9724
  Branches      14261    15440     +1179
=============================================
+ Hits          47889   102675    +54786
+ Misses        76281    29463    -46818
- Partials       6339     8095     +1756

Flag
Coverage Δ

inttests
24.08% <9.59%> (-0.05%)
:arrow_down:

systests
24.74% <8.08%> (+0.05%)
:arrow_up:

unittests
72.51% <77.77%> (+40.63%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files
Coverage Δ

...che/bookkeeper/mledger/impl/ManagedCursorImpl.java
78.81% <100.00%> (+33.64%)
:arrow_up:

.../bookkeeper/mledger/impl/NonDurableCursorImpl.java
85.41% <100.00%> (ø)

...ookie/rackawareness/BookieRackAffinityMapping.java
80.71% <100.00%> (+10.71%)
:arrow_up:

...n/java/org/apache/pulsar/broker/PulsarService.java
82.69% <100.00%> (+14.01%)
:arrow_up:

...ker/loadbalance/extensions/models/TopKBundles.java
90.78% <100.00%> (+90.78%)
:arrow_up:

...org/apache/pulsar/broker/loadbalance/LoadData.java
91.66% <0.00%> (+25.00%)
:arrow_up:

...ache/pulsar/broker/namespace/NamespaceService.java
71.94% <75.00%> (+28.30%)
:arrow_up:

...xtensions/channel/ServiceUnitStateChannelImpl.java
84.48% <58.82%> (+83.94%)
:arrow_up:

...che/bookkeeper/mledger/impl/ManagedLedgerImpl.java
80.71% <57.89%> (+32.78%)
:arrow_up:

...dbalance/extensions/ExtensibleLoadManagerImpl.java
77.75% <82.39%> (+75.66%)
:arrow_up:

... and 1445 files with indirect coverage changes


1.7.1 does not support okhttp 3.3.1

Thanks for your reply.
I had solve the problem through to modify the plugin for okhttp.

@cxiaolng
Good.
It applies from okhttp version 3.0 to 3.3


Docker Alpine Linux without imagemagick

Please, add  imagemagick package to docker image with Alpine Linux (version > 0.98)
Thank you,

The Docker images are in place for the broadest possible use case; ImageMagick isn't something needed by everyone. You can write your own Dockerfile (extending the base HASS one) to add custom requirements.


Update Central Dashboard docs for 1.9.0

This PR updates the docs to reflect the changes to Central Dashboard for Kubeflow 1.9.0.

@andreyvelich because we are changing images, we need you to approve.

/lgtm
/approve


Mpox Clade I delineation?

Has Mpox clade I been designated as Clade Ia and Clade Ib? And is this being reflected in the nextstrain? If so, what mutations are considered? Please, assist. Thank.
Walter

Hi Walter,
the definitions of the clade I subclades are here: https://github.com/nextstrain/mpox/blob/master/nextclade/resources/clade-i/clades.tsv
The Nextclade dataset for clade I has these definitions implemented:
https://clades.nextstrain.org/?dataset-name=nextstrain/mpox/clade-i
let us know if you have additional questions.

Thank you. Looking forward to have all the references clade also updated. Merci.

@woguta, you might find this helpful: Nature Medicine Article.  The paper discusses the distinction between Clades Ia and Ib, similar to the rationale for separating Clades IIa and IIb. Currently, Clade Ib is only represented by genomes from the Kamituga outbreak in the DRC, there's a need for more representative isolates for clearer classification.
I noticed that @corneliusroemer has updated the clades.tsv file to reflect new nucleotide positions for Clades Ia and Ib, which aligns with the recent findings. You can view the changes here: Updated clades.tsv.
Might be worth considering how these changes impact your ongoing work. Best of luck!!

Dear Richard and Bryan,
Thank you all for this. I really appreciate it.
Best regards,
Walter
Oguta Walter
On Thu, 15 Aug 2024 at 21:37, Bryan Tegomoh @.***>
wrote:

@woguta https://github.com/woguta, you might find this helpful: Nature
Medicine Article https://www.nature.com/articles/s41591-024-03130-3.
The paper discusses the distinction between Clades Ia and Ib, similar to
the rationale for separating Clades IIa and IIb. Currently, Clade Ib is
only represented by genomes from the Kamituga outbreak in the DRC, there's
a need for more representative isolates for clearer classification.
I noticed that @corneliusroemer https://github.com/corneliusroemer has
updated the clades.tsv file to reflect new nucleotide positions for Clades
Ia and Ib, which aligns with the recent findings. You can view the changes
here: Updated clades.tsv
https://github.com/nextstrain/mpox/blob/9d3b8ea9f5b4916c3459a6796fda4fc823b54951/nextclade/resources/all-clades/clades.tsv#L5-L12
.
Might be worth considering how these changes impact your ongoing work.
Best of luck!!
—
Reply to this email directly, view it on GitHub
https://github.com/nextstrain/mpox/issues/265#issuecomment-2292302298,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A6PUWMQNJK7OETNXAO57JFTZRUNSDAVCNFSM6AAAAABMGJVOR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJSGMYDEMRZHA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Error: current implementaion is limited to 32 live Dim objects at once

Running cells multiple times results in current implementaion is limited to 32 live Dim objects at once
This is probably a KP, but creating an issue for tracking.
To repro in colab:
# copied from the colab notebook
!pip3 install  https://download.pytorch.org/whl/nightly/cpu/torch-1.13.0.dev20220614%2Bcpu-cp37-cp37m-linux_x86_64.whl -U
!pip install https://github.com/facebookresearch/torchdim/releases/download/colab/torchdim-1.0-cp37-cp37m-linux_x86_64.whl
import torch
from torchdim import dims

Run this in a new cell 5+ times:
A = torch.rand(3, 4)
B = torch.rand(4, 5)

i, j, k = dims(3)

r = (A[i, k] * B[k, j]).sum(k)
print(r.order(i, j))

Removing the limitation would be useful for playing around with torchdim.

Should be fixed in the colab binaries now. Slightly higher chance of hitting bugs in functorch bindings with the new approach but I agree that trying to use a notebook with this limitation is difficult.


Scroll up crashes on amazon linux 2 (but works on a mac)

Describe the bug
When I scroll up too much/too fast in any log it just crashes.
To Reproduce
Steps to reproduce the behavior:

Go to 'lazydocker (top left)'
Click on the log
Scroll up
Crash

Expected behaviour
Not crashing
Desktop (please complete the following information):

OS: Amazon Linux 2
Version: commit=cf31c23fadcc717467318689fc073ecf1bed8031, build date=2019-07-02T00:10:43Z, build source=binaryRelease, version=0.3, os=linux, arch=amd64

I can't reproduce it locally,
If it panicked can you provide the crash logging?
And if lazydocker didn't show any crash logging can you provide some data from ~/.config/jesseduffield/lazydocker/development.log

When I scroll down and up a bit, it does this:

Then I scroll down again and I see this:

I can't see any crash logging and for some reason the development.log is not showing anything new since earlier this morning...
...
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"asking task to stop","time":"2019-07-03T12:14:03+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"closed stop channel, waiting for notifyStopped message","time":"2019-07-03T12:14:03+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"received notifystopped message","time":"2019-07-03T12:14:03+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"task stopped","time":"2019-07-03T12:14:03+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"returned from function, closing notifyStopped","time":"2019-07-03T12:14:03+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"images focus lost","time":"2019-07-03T12:14:05+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"status focus gained","time":"2019-07-03T12:14:05+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"asking task to stop","time":"2019-07-03T12:14:05+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"closed stop channel, waiting for notifyStopped message","time":"2019-07-03T12:14:05+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"received notifystopped message","time":"2019-07-03T12:14:05+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"task stopped","time":"2019-07-03T12:14:05+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"returned from function, closing notifyStopped","time":"2019-07-03T12:14:05+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"language: en","time":"2019-07-03T12:15:08+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"warning","msg":"docker-compose config --quiet","time":"2019-07-03T12:15:08+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"warning","msg":"'docker-compose config --quiet': 404.167953ms","time":"2019-07-03T12:15:09+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"warning","msg":"\n        Can't find a suitable configuration file in this directory or any\n        parent. Are you in the right directory?\n\n        Supported filenames: docker-compose.yml, docker-compose.yaml\n        \n","time":"2019-07-03T12:15:09+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"setting highlight to true for viewcontainers","time":"2019-07-03T12:15:09+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"new focused view is containers","time":"2019-07-03T12:15:09+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"containers focus gained","time":"2019-07-03T12:15:09+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"containers focus lost","time":"2019-07-03T12:15:10+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"status focus gained","time":"2019-07-03T12:15:10+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"returned from function, closing notifyStopped","time":"2019-07-03T12:15:10+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"setting highlight to true for viewmain","time":"2019-07-03T12:15:24+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"new focused view is main","time":"2019-07-03T12:15:24+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"status focus lost","time":"2019-07-03T12:15:24+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"main focus gained","time":"2019-07-03T12:15:24+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"setting highlight to true for viewstatus","time":"2019-07-03T12:15:30+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"new focused view is status","time":"2019-07-03T12:15:30+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"main focus lost","time":"2019-07-03T12:15:30+01:00","version":"0.3"}
{"buildDate":"2019-07-02T00:10:43Z","commit":"cf31c23fadcc717467318689fc073ecf1bed8031","debug":false,"level":"info","msg":"status focus gained","time":"2019-07-03T12:15:30+01:00","version":"0.3"}

It seems to happen on Amazon Linux 2 only, in my mac it works ok.

Maybe I should open a different issue for this but in the first run when it asks about sending information, no matter if i do esc or enter, it crashes too.
[ec2-user@ip-10-0-252-229 ~]$ lazydocker
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x8119a1]

goroutine 1 [running]:
github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui.(*View).Name(...)
	/go/src/github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui/view.go:157
github.com/jesseduffield/lazydocker/pkg/gui.(*Gui).switchFocus(0xc000001b00, 0xc0000a06e0, 0xc0003b1180, 0x0, 0x9d6460, 0xc0003641e0)
	/go/src/github.com/jesseduffield/lazydocker/pkg/gui/view_helpers.go:129 +0x71
github.com/jesseduffield/lazydocker/pkg/gui.(*Gui).returnFocus(0xc000001b00, 0xc0000a06e0, 0xc0003b1180, 0xc0003b1180, 0x0)
	/go/src/github.com/jesseduffield/lazydocker/pkg/gui/view_helpers.go:117 +0x7a
github.com/jesseduffield/lazydocker/pkg/gui.(*Gui).closeConfirmationPrompt(0xc000001b00, 0xc0000a06e0, 0x0, 0x0)
	/go/src/github.com/jesseduffield/lazydocker/pkg/gui/confirmation_panel.go:33 +0x80
github.com/jesseduffield/lazydocker/pkg/gui.(*Gui).wrappedConfirmationFunction.func1(0xc0000a06e0, 0xc0003b1180, 0xc, 0x1)
	/go/src/github.com/jesseduffield/lazydocker/pkg/gui/confirmation_panel.go:24 +0x41
github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui.(*Gui).execKeybinding(...)
	/go/src/github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui/gui.go:831
github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui.(*Gui).execKeybindings(0xc0000a06e0, 0xc0003b1180, 0xc00018b970, 0xc0002d8960, 0xc000000388, 0xc000000438)
	/go/src/github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui/gui.go:811 +0x1f9
github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui.(*Gui).onKey(0xc0000a06e0, 0xc00018b970, 0x2, 0x0)
	/go/src/github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui/gui.go:759 +0x283
github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui.(*Gui).handleEvent(...)
	/go/src/github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui/gui.go:482
github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui.(*Gui).MainLoop(0xc0000a06e0, 0xc0000a06e0, 0x0)
	/go/src/github.com/jesseduffield/lazydocker/vendor/github.com/jesseduffield/gocui/gui.go:442 +0x203
github.com/jesseduffield/lazydocker/pkg/gui.(*Gui).Run(0xc000001b00, 0x0, 0x0)
	/go/src/github.com/jesseduffield/lazydocker/pkg/gui/gui.go:299 +0x293
github.com/jesseduffield/lazydocker/pkg/gui.(*Gui).RunWithSubprocesses(0xc000001b00, 0xc000294a50, 0x0)
	/go/src/github.com/jesseduffield/lazydocker/pkg/gui/subprocess.go:20 +0x2f
github.com/jesseduffield/lazydocker/pkg/app.(*App).Run(...)
	/go/src/github.com/jesseduffield/lazydocker/pkg/app/app.go:54
main.main()
	/go/src/github.com/jesseduffield/lazydocker/main.go:57 +0x819

Hmmm,
Some things you could try:

rm ~/.config/jesseduffield/lazydocker/*
go get -u github.com/jesseduffield/lazydocker

And if that doesn't work, what is your go version, docker version and docker-compose version

Getting the binary using go get means that it does not crash on the first run any more but still does on the scrolling.
Since I was getting the binary with curl I didnt have go installed before.
Now I have go version go1.9.4 linux/amd64
The new development.log now shows:
$ cat .config/jesseduffield/lazydocker/development.log
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"language: en","time":"2019-07-03T12:57:19+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"warning","msg":"docker-compose config --quiet","time":"2019-07-03T12:57:19+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"warning","msg":"'docker-compose config --quiet': 394.761134ms","time":"2019-07-03T12:57:19+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"warning","msg":"\n        Can't find a suitable configuration file in this directory or any\n        parent. Are you in the right directory?\n\n        Supported filenames: docker-compose.yml, docker-compose.yaml\n        \n","time":"2019-07-03T12:57:19+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"setting highlight to true for view containers","time":"2019-07-03T12:57:19+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"new focused view is containers","time":"2019-07-03T12:57:19+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"containers focus gained","time":"2019-07-03T12:57:19+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"setting highlight to true for view confirmation","time":"2019-07-03T12:57:19+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"new focused view is confirmation","time":"2019-07-03T12:57:19+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"setting highlight to true for view containers","time":"2019-07-03T12:57:22+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"new focused view is containers","time":"2019-07-03T12:57:22+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"containers focus lost","time":"2019-07-03T12:57:24+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"status focus gained","time":"2019-07-03T12:57:24+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"returned from function, closing notifyStopped","time":"2019-07-03T12:57:24+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"language: en","time":"2019-07-03T12:57:34+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"warning","msg":"docker-compose config --quiet","time":"2019-07-03T12:57:34+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"warning","msg":"'docker-compose config --quiet': 386.560993ms","time":"2019-07-03T12:57:34+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"warning","msg":"\n        Can't find a suitable configuration file in this directory or any\n        parent. Are you in the right directory?\n\n        Supported filenames: docker-compose.yml, docker-compose.yaml\n        \n","time":"2019-07-03T12:57:34+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"setting highlight to true for view containers","time":"2019-07-03T12:57:34+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"new focused view is containers","time":"2019-07-03T12:57:34+01:00","version":"unversioned"}
{"buildDate":"","commit":"","debug":false,"level":"info","msg":"containers focus gained","time":"2019-07-03T12:57:34+01:00","version":"unversioned"}

@ophintor do you now get a different stack trace now upon crashing? If so could you post that for us :)

I don't get anything really, just the same as in the screenshots above. When I scroll the program exits and leaves some random chars in my prompt.
If there is a way I can get a trace or run it in debug mode, happy to try.

Also, meant to send this earlier:
$ docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a215d7133c34aa18e3b72b4a21fd0c6136
 Built:             Mon Mar  4 21:25:41 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a/18.06.1-ce
  Built:            Mon Mar  4 21:27:07 2019
  OS/Arch:          linux/amd64
  Experimental:     false

$ docker-compose version
docker-compose version 1.21.2, build a133471
docker-py version: 3.3.0
CPython version: 3.6.5
OpenSSL version: OpenSSL 1.0.1t  3 May 2016

Any resolution to this?  I just discovered lazydocker, put it up on amazon linux, and its crashing (or exiting) when I scroll.  I installed with the curl | bash option

I've just bumped the gocui version which contains various improvements to rendering logic. Would anybody be able to test this out (on the master branch)?

Closing due to staleness. Please leave a comment if you still encounter this


Create node version of gentest script

Summary:
The only instance of ruby in this repository is gentest.rb used to generate test cases from html fixtures. This is quite annoying as ruby is not the most popular compared to something like Node and it does not integrate into the rest of our stack. I changed this to use Node.js instead. Instead of watir we now use selenium-webdriver. watir is backed by Selenium so I do not expect anything to change.
Next commits will add command line options, clean up gentest.rb and its references, and change the README
Differential Revision: D51874433

If you use playwright-core instead of selenium-webdriver then it will manage browser versions for you, and would also remove the need for users to install chromedriver.


Mailgun Backend

I think I have it setup pretty closely to the SendGrid implementation. Let me know if I missed anything.
The provider test passes as well.

 From what I can tell, Vapors multipart doesn't support dictionary values properly so tests kept failing. I'll continue to look into that one though.

Thanks for following up re multipart. If there's no way around it, we'll keep serialising it ourselves. Perhaps things will change in Vapor 2.

Took care of those things 👍


Support Transaction Code 53 (PAY)

Thanks for the nice package.
It's a small PR that allows you to use transaction code 53 (PAY) which works in the same way as ABA.CREDIT.

Superb! I wish there were unit tests for this thing. But, hey. We are not babel or webpack to care about such things. :)

Also, I've sent you an invite to this repo. Feel free to accept and push changes directly to this repo (without forks) if needed.
Cheers mate!

Published as v1.1

thanks a lot )


[BUG] Null check operator used on a null value

Describe the bug
Found this error in Crashalytics:
Non-fatal Exception: FlutterError
0  ???                            0x0 CameraPickerState.controller + 142 (camera_picker.dart:142)
1  ???                            0x0 CameraPickerState.takePicture + 658 (camera_picker.dart:658)
2  ???                            0x0 GestureRecognizer.invokeCallback + 198 (recognizer.dart:198)
3  ???                            0x0 TapGestureRecognizer.handleTapUp + 613 (tap.dart:613)
4  ???                            0x0 BaseTapGestureRecognizer._checkUp + 298 (tap.dart:298)
5  ???                            0x0 BaseTapGestureRecognizer.acceptGesture + 269 (tap.dart:269)
6  ???                            0x0 GestureArenaManager.sweep + 157 (arena.dart:157)
7  ???                            0x0 GestureBinding.handleEvent + 449 (binding.dart:449)
8  ???                            0x0 GestureBinding.dispatchEvent + 425 (binding.dart:425)
9  ???                            0x0 RendererBinding.dispatchEvent + 329 (binding.dart:329)
10 ???                            0x0 GestureBinding._handlePointerEventImmediately + 380 (binding.dart:380)
11 ???                            0x0 GestureBinding.handlePointerEvent + 344 (binding.dart:344)
12 ???                            0x0 GestureBinding._flushPointerEventQueue + 302 (binding.dart:302)
13 ???                            0x0 GestureBinding._handlePointerDataPacket + 285 (binding.dart:285)

And this is how it looks in the frontend:
https://user-images.githubusercontent.com/3786627/189547892-5ebde9bc-e610-4039-8323-488f0d239aa2.MOV
How to reproduce
N/A it does not seem to happen often
Version information

Device: iPhone
OS: iOS 14 & 15
Package Version: 3.4.0
Flutter Version: ^3

Additional context
It seems to work fine most of the times, but the night this error was reported, it was happening to a lot of american users.

And you seem to be holding states after usages, which causes some state exceptions. Please verify if it's reproducible in the example, or provide a minimum reproducible demo.


Added the enhanced features to the Debate buddy

fix issue #476
Added Core Enhancements:

Implemented timed argument responses to improve structure and conciseness.
Real-time feedback for user arguments based on length and content quality.
Counter-questioning feature to challenge user arguments and prompt deeper thinking.
Scoring system for tracking user and bot performance, with points for each effective response.
Session Summary to recap main points, performance scores, and suggestions.

Expected Outcome:

Users will receive immediate, constructive feedback after each argument, helping them improve debating skills.
Timed responses and counter-questions add realism and encourage users to articulate their points quickly.
Final summary will provide a structured recap of user performance and improvement areas.

@suryanshsk

Hey i accidently added the phone numbers file in it, i will another pr for that sorry

Hey i accidently added the phone numbers file in it, i will another pr for that sorry

Okay don't worry you can submit another pr for that issue


Adding files to datastore manually

We have a bunch of files in another directory that are updated regularly (in an opensource documentation tool called Bookstack). Those can be exported via Bookstack's API, and I wanted to add it to our datastore, so that it is available for RAG in LibreChat.
I wanted to understand how to programmatically add files?

Hi, i have the same question, is it possible to do that ? A notion of sharing files between all users of the RAG


error with expo

I tried using this with expo but im getting this error

You can't use this with expo directly, you have to eject to expokit
rule of thumb, any package that uses "react-native link" needs ejection
Alternatively you can wait till expo includes it as part of their SDK

Looks like this can be closed?


Migrate to 23.10 for pi5 support

https://cdimage.ubuntu.com/releases/23.04 is gone now, need to update pi build

complete


Modified the reDomain regex to support upper/lowercase

Modified the reDomain regex to support upper/lowercase
Domains are case insensitive, the reSubdomain regex properly supports upper and lowercase however the reDomain was lacking this.

Thank you for the contribution!


⚠ ClamAV has degraded performance

In 4f32045, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 67 ms

Resolved: ClamAV performance has improved in a871d0c.


[WIP] MM-11327: Restrict Teams by Email

Summary
Adds UI to edit the AllowedDomains property in the team settings pane.
Supports PR mattermost/mattermost-server#9142.
Ticket Link

Help Wanted: mattermost/mattermost-server#9111
Uservoice: restrict-team-by-email

Checklist

[x] Ran make check-style to check for style errors (required for all pull requests)
[x] Ran make test to ensure unit and component tests passed
[x] Added or updated unit tests (required for all new features)
[x] Has server changes (#9142)
[x] Has UI changes
[x] Includes text changes and localization file (.../i18n/en.json) updates

Setup Test Server label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).

Spinmint test server created at: http://i-0aa1967dae7169b45.test.spinmint.com
Test Admin Account: Username: sysadmin | Password: sysadmin
Test User Account: Username: user-1 | Password: user-1
Instance ID: i-0aa1967dae7169b45

Spinmint test server destroyed

Rebased for @wiersgallak.

Setup Test Server label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).

Spinmint test server created at: https://i-0403d2eeecf53afd2.test.spinmint.com
Test Admin Account: Username: sysadmin | Password: sysadmin
Test User Account: Username: user-1 | Password: user-1
Instance ID: i-0403d2eeecf53afd2

Spinmint test server destroyed

Setup Test Server label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).

Spinmint test server created at: https://i-0c8b238743bb84b3c.test.spinmint.com
Test Admin Account: Username: sysadmin | Password: sysadmin
Test User Account: Username: user-1 | Password: user-1
Instance ID: i-0c8b238743bb84b3c

When testing, I am able to login with my gmail account even though I set up to allow only Mattermost.com domains.  @hmhealey @gvengel can you verify that the server changes are being applied?

The feature only blocks users from joining the team, or sending invites to users which are not in the whitelist. It does not prevent users who are already a member of the team for logging in. Maybe that's what you are seeing?

@wiersgallak @hmhealey I logged into the spinmint server and verified it is not properly applying the team restriction. Maybe it's not running the correct server build? I'm not sure how to verify.

I used the invite URL after I had set the domain.

@gvengel In the About Mattermost modal, it shows the commit hash of both the server and web app build, so you can check the code in the commit on GitHub

Spinmint test server destroyed

Setup Test Server label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).

Spinmint test server created at: https://i-01a1b1cccbbf277e0.test.spinmint.com
Test Admin Account: Username: sysadmin | Password: sysadmin
Test User Account: Username: user-1 | Password: user-1
Instance ID: i-01a1b1cccbbf277e0

Thanks @hmhealey. It looks like the restriction is working properly with the new spinmint build, if you want to give it another try @wiersgallak.

Thanks @gvengel @wiersgallak
I've tested using mattermost.com domain only, a non-mattermost.com domain only and a combination of both.  I tested using both the Send Email Invite and Get Team Invite Link and all scenarios are working as expected.

Spinmint test server destroyed

Awesome work, @gvengel. I just need you to update the PR to the latest master, and then we'll be able to merge it

Thanks @hmhealey, I've pushed a new rebase.


How to configure 'level' in integration with monolog?

Currently i have:
monolog.yml
        rollbar:
            type: service
            level: notice
            id: Rollbar\Monolog\Handler\RollbarHandler

rollbar.yml
rollbar:
  enabled: true
  access_token: 'dfghjk'
  environment: 'development'

It's seems like parameter level isnt even passed to RollbarHandler constructor
    public function __construct(RollbarLogger $rollbarLogger, $level = Logger::ERROR, $bubble = true)
    {
        $this->rollbarLogger = $rollbarLogger;

        var_dump(
            $level, //'error'
        );
        die;

        parent::__construct($level, $bubble);
    }

How can I change level to notice?

Okay, i found RollbarHandlerFactory.php with hardocded LogLevel::ERROR
    /**
     * Create RollbarHandler
     *
     * @return RollbarHandler
     */
    public function createRollbarHandler()
    {
        return new RollbarHandler(Rollbar::logger(), LogLevel::ERROR);
    }

@navycoat it sounds like you figured out how to set this up.  I'm going to go ahead and close this issue, but if you have further questions, please let us know.


prefer NotImplementedError to a base Exception

We should try to be as specific as possible when using Exceptions.

I used the wrong branch for this. Reopening later with the correct branch.

Note that simply raise NotImplementedError is good enough


URLS in CONTRIBUTING.rst are wrong

They refer to /ucwa/ , clearly the old repository name.
(BTW, the old ucwa module in PyPI should be pulled if it's obsolete, it's full of these old urls.)

Oops, that was the slug. The package is called ucwa, the PyPI package likewise. My git repo name is just pyucwa. You can pull and download ucwa from PyPI

done.

Sorry for being pedantic -- you want to fix it in setup.py as well :) otherwise in PyPI you get "Home Page: https://github.com/tonybaloney/ucwa" which goes 404.


Users should be able to delete their accounts

Once a user account is created, there is no apparent way to delete the account. A "delete" and/or a "deactivate" option should be made available on a logged-in user's profile page.

@GaryKriebel @lbanner this is on the docker for this epic. We shouldn't forget to assign it accordingly once the issues are being worked on.

Good point - yes

Note @lyndsysimon PR: [WIP] [feature] Account deactivation #2165

Closed by #2602 - or at least, the interface is present. The functionality still requires admin approval, but that's an explicit decision because we don't want users to accidentally deactivate their accounts.


grid renders scroll on wrong position

After changing gridOptions and resize window scroll is rendered on wrong position, columns don't change their size and there is big empty space gap between last column and scroll

'''After changing gridOptions'''
=> really depends on what you mean here. there is no such thing as 'changing grid options'. if you want  a new grid, you need to destroy the old one and create a new one again from scratch. it isn't designed to just change to a new grid options object.


Cant download the model weight.

Hi, this is a great job, but the download link of the model is invalid. Is there a new link, or can someone send me a copy of the weights? My email is<EMAIL_ADDRESS>

Hi, this is a great job, but the download link of the model is invalid. Is there a new link, or can someone send me a copy of the weights? My email is<EMAIL_ADDRESS><EMAIL_ADDRESS>
download on Huggingface, just search 'big-lama', you will find the model

Sorry for inconvenience ---- try that https://drive.google.com/drive/folders/1B2x7eQDgecTL0oh3LSIBDGj0fTxs6Ips?usp=drive_link !
and we will fix the repo! TY!


Deprecate conduit_sled_to_sqlite

In favour of conduit_migrate

[ ] Add banner to README
[ ] Add alt instructions
[ ] Remove actual binary target

Deprecated, since updating rocksdb required removing sled's code, which required an older version of zstd


[dev.icinga.com #12779] mysql package is required for server_ido recipe

This issue has been migrated from Redmine: https://dev.icinga.com/issues/12779
Created by vkhatri on 2016-09-24 12:21:09 +00:00
Assignee: vkhatri
Status: Assigned
Target Version: (none)
Last Update: 2016-09-24 12:21:09 +00:00 (in Redmine)

Done.


Mat/test headers

made changes in :
routes/discover.py,
routes/location.py,
routes/project.py
Added a use of dummy data for ui test purposes. can be used by passing header "X-test" with value "test"

dlete this branch


Call formatter once for all file results

Fixes #656.
I have extracted a MultiLinter which allows linting a sequence of files in such a way that the behavior of Linter is maintained without changing its interface by using the special case where the sequence of files includes exactly one file.
At the next major version bump, the Linter could be replaced with the MultiLinter.

Will review this later, but I'm up for doing a major version bump soon and this could be a kay part of it.

@JKillian Let me know if this PR needs any additional work done before you can merge it.

@caugner Sorry for the delay, merged the PR


Arraytraining

Material for Slurm job array Fall 2022 training

@dhml , @marianalevineu , @ShobanaSekar , & @joseph-cooke , please take a look at this PR for tomorrow's training session and let me know if there are any edits. Thanks.

@manasvita, .DS_Store files should be removed.

@manasvita, .DS_Store files should be removed.

@dhml , done


Bug

Can you see the 0 in month it start from 0 and end on 12, I don't and that's why showing wrong month

The range of month is 0 - 11, just as the same as Calendar in Java.

so what is the issue ?? why this is occuring like this and how may I resolve this

You can check the demo, the month is range from 1 - 11. I have tested that.

I have already use this but did not work

You see, the month is just from Calendar, so I don't know how did you get 12.


Generated DDL for CREATE DOMAIN is setting an invalid COLLATE of default

System information:

Operating system (distribution) and version: macOS 11.3
DBeaver version: <IP_ADDRESS>104181339
Additional extensions: none

Connection specification:

Database name and version: PostgreSQL 12.6
Driver name: PostgreSQL JDBC Driver 42.2.5
Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you're observing:
Generated DDL for CREATE DOMAIN is setting an invalid COLLATE of default, e.g:
CREATE DOMAIN "ct_ccy" AS character varying(8)
	COLLATE default;

PostgreSQL rejects that.  It appears it needs to be quoted like so:
CREATE DOMAIN "ct_ccy" AS character varying(8)
	COLLATE "default";

Or given it's the default, just left off entirely:
CREATE DOMAIN "ct_ccy" AS character varying(8);

Hello @jimbogithub
Thanks for the bug report!

Fixed in DBeaver 21.0.5
Will be available here at 2021-05-17


Create main.yml

Why:
Closes [issue link]

What's being changed:

Check off the following:

[x] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[ ] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[x] This pull request impacts the contribution experience

[x] I have added the 'writer impact' label
[x] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

<EMAIL_ADDRESS>

[內容/帳戶和個人資料/設置和管理您的 github 用戶帳戶/管理電子郵件首選項/setting-your-commit-email-address.md](eternalgroupalliance.gmail.com)


[WIP] container ssa: adding miq_queueu callback

This will handle the possibility that the job gets a timeout but is never notified and is left at the same state for good.

cc @simon3z PTAL  , I would like to know what you think about this course of action to solve this problem.
Please notice that I had to change put_unless_exists to put in queue_signal due to some strange ActiveRecord bug that was caused due to miq_callback being a serialized hash in the MiqQueue model.

@moolitayer FYI

@enoodle Please update the pr message to say we are talking about a MiqQueue timeout - one of the job states (the method pod_wait) times out
(to distinguish from a Job timeout, that we can have as well)
As for the state that times out (pod_wait) we should split it (in a future pr) to two states as discussed using deliver_on see todo

@miq-bot assign enoodle

@miq-bot remove_label wip

@miq-bot add_label bug

@miq-bot add_label darga/yes

@simon3z ping, please review

Please notice that I had to change put_unless_exists to put in queue_signal due to some strange ActiveRecord bug that was probably caused due to miq_callback being a serialized hash in the MiqQueue model:

@enoodle please get some help on that from @Fryguy @jrafanie (or anyone else that may be relevant here).

@simon3z @jrafanie @Fryguy I added a patch for the miq_callback in the condition in put_or_update function. It might be a little too specific for our case (I assumed miq_callback will only be present if args is present.)

@simon3z why is author == assignee (reviewer)?

@simon3z why is author == assignee (reviewer)?

@chessbyte the assignee for me sets on whose plate the PR stands. It was assigned to @enoodle (author) when it was still a WIP because it was on him to finish the PR.
Once the PR is finished, it has at least a review and no outstanding comments then I'll assign it to someone to merge it (e.g. you).
In this specific case I didn't get to review the PR and I don't see any +1 yet.
When I ran this through you, your answer was "assign it to whoever you want". Let me know if now it makes a difference for you.

@moolitayer please review. I want to get this in ASAP.

@enoodle @moolitayer any spec test to add here?

@enoodle

The division to commits does not make sense to me; in the first one you do s/put_unless_exists/put and then the second one undoes this change. I'm good with either squashing or having the miq_queue change in a first patch and then the job.rb changes in a second one.
Several factors can cause timedout jobs (e.g every uncaught exception). Can you prove that this change solves at least the issue described in the BZ? a relevant quote from the bz log file in the first pr message/commit msg is good enough for me
We would need review from @gmcculloug / @Fryguy  or someone else they can recommend on the miq queue bit

Other then that, once @simon3z request for specs is addressed ill be fine with this change

@moolitayer

I devided to commits to split between using put and put_unless_existing. If the second commit approach will be accepted I will squash them (This is what I wrote in the comment https://github.com/ManageIQ/manageiq/pull/9040#issuecomment-227998080 after I added it) Do you think I should just squash it now?
The callback is called after every message is delivered. Any timeout causes the deliver method of MiqQueue to return and the callback will be called after this. I have found the lines in the log from the BZ to support that a time out did occur and add an explanation in the top message.
@moolitayer @simon3z  Do you have any suggestion on how to test it? What exactly do you think we should test? That the callback is indeed called (Isn't it just part of MiqQueue)? or that the callback  will act as expected (sending the right signal in the right circumstances)?

@enoodle for me testing MiqQueue.put_unless_exists is enough: with out you fix it explodes if given a callback and with it it works as expected. Then when we use MiqQueue in scanning/job.rb we can assume it works as expected. Currently tests do not use MiqQueue and it will take effort to add that.
I'm ok with waiting to squashing until we get a response about miq_queue changes - I will take another look next time you push.

@enoodle Sorry, my message is changing.

Please leave miq_queue unchanged.
Add the block version to the existing put_unless_exists

Alternatively, maybe we should just remove the callback from the uniqueness criteria in MiqQueue. I can't imagine it would ever need to be part of it.

@kbrock I made this change with the block and tested it. Thanks for the help!

thanks for your patience @enoodle

Darga backport details:
commit a4688c11a00e85c1b90452047ac3863797fd79a7
Author: Keenan Brock<EMAIL_ADDRESS>Date:   Fri Jul 15 19:51:04 2016 -0400

    Merge pull request #9040 from enoodle/container_scanning_job_timeout_handling

    container ssa: adding miq_queue callback to handle miq_queue timeout
    (cherry picked from commit 5e2cd5d6426c0cc7f15025f2773f47e3452f82a3)


delete edge by a where cause failure

OrientDB Version: 2.2.25  Community
Java Version: Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
OS: Windows 10 64x
Expected behavior
The script should be passed. It passed on 2.2.20.
delete edge where @class like 'e_%'
Actual behavior
It failed with error message:
java.lang.ClassCastException: com.orientechnologies.orient.core.db.record.ORecordLazyList cannot be cast to com.orientechnologies.orient.core.db.record.OIdentifiable
Steps to reproduce
delete edge where @class like 'e_%'

Hi @HuangKBAaron
Thank you for reporting, I'll check it asap
Thanks
Luigi

Hi @HuangKBAaron
I tried to reproduce this issue, but with no success, can you provide a dataset where it fails?
Thanks
Luigi

It was cause by misusing update/upsert to edge, after changed to "create edge", it won't repro. So close it now.


[Image 2.1.0] - SVG support mime type issue for uploaded assets

Bug Report
Current Behavior
If the SVG existed in the DAM, unable to drag and drop to the Image component or drag via the properties dialog. Nothing happens.
Expected behavior/code
User should be able to drag existing SVG in the DAM to the component
Environment

AEM 6.4
Core Components 2.1.0
JRE version (e.g. Java(TM) SE Runtime Environment (build 1.8.0_152-b16))

Possible Solution
Add mimeType: image/svg

@angelinekwan In order to get the drag'n drop to work you have to add the svg mime type to the component mapping of the content policy.
Please have also a look to our We.Retail example code at [1]
Can you please confirm that this fixes your issue? Thanks!
[1] https://github.com/Adobe-Marketing-Cloud/aem-sample-we-retail/blob/master/ui.content/src/main/content/jcr_root/conf/we-retail/settings/wcm/policies/.content.xml#L24

@bpauli Your suggestion will enable dragging image directly to the Layout Container. The issue I reported is related with the version 2.1.0 updates for the Image Component. Thanks


Create Multiple Charts at a time

I would love to be able to select multiple rectangles at a time to generate charts with random data.

Hi @SimplyPhy! It is possible, but not for all Chart types. Need to think about the possibility to allow it for all types

Any chance of packing this with v5.1, at least for some of the basic charts (line/bar)?  I usually need to create at least a few charts at a time for initial mockups.  I'm about to fill out a design that needs 20 of the same chart with slightly different data (same scope, different randomly generated values).  And I'll likely need to do a few versions of it.

@SimplyPhy will do my best to deliver it in 5.1


Balance.get () raise an error "missing required field: payment" despite go1.12.5

Hi guys,
it seems that the bug reported by @hs011 (see below) is either back or is reproducible under other cirumstances. I am using go1.12.5 windows/amd64 and have performed go get just now.
@mehcode any idea? @hs011: Was the issue possibly resolved differently than just updating the sdk?
Thanks in avance,
Eugene

I finally found out the reason (at least in my case): When copying the private key, I hit a button which added a character, thereby falsifying the key.
Thus, the account and the private key didn't match. The error thrown is misleading and neither related to tthe go version nor the SDK itself.


Git-ignore .swiftpm/ directory (and schemes)

@stephencelis after updating to 0.44.0, I noticed that "swift-clocks" is appearing as a scheme. Is this intentional or does it need to be part of the changes you had made in this PR?

@acosmicflamingo I think this is due to swift-clocks checking in its scheme. Want to open an issue or PR on that repo so that we can track?

Oh actually we do ignore the scheme in swift-clocks, but it happened in a 0.1.1 release. Are you currently on 0.1.0? If so, try updating and see if it fixes.

@mbrandonw whoops! You know, I should really get in the habit of clearing caches and getting the absolute latest. I am using 0.1.1 and it is gone. Yay! Sorry for the false alarm.


added a live region that announces the selected item

This is the one accessibility enhancement that works without any localization efforts.
I would love to also add the announcement that says to use the cursor keys and how many results there are but that would mean to add localization and this would add a huge maintenance overhead.
Updated: changed hiddena11y property to visually-hidden class

Thanks Dirk. Did you see my other message?
Do we have to use an extra element? Won’t it work to just toggle these attributes on the current list item?
(btw you can update PRs, no need for new ones to make a modification)

Hi Lea, yes I did see your other message and commented inline here: https://github.com/LeaVerou/awesomplete/pull/11#discussion_r25091213

I updated the pull request and answered you questions here and here

If we're using clip(0,0,0,0) then why do we need a width and height or overflow?

I haven't been testing using clip(0,0,0,0) exclusively across your supported Browsers. Would you say it's supported robustly across the Browsers you're supporting?

Sorry, I meant clip: rect(0,0,0,0). Yes, it is supported but not sure if it’s ok with screen readers…

From my experience and also backed here by my former colleagues at Yahoo is that content hidden using clip: rect(0,0,0,0) is solidly accessible to assistive technologies. All the other additional methods are to handle behavior in legacy browsers. As you are already not supporting those I'd save we're save to go "light"

Um, for clip to apply you need position: absolute too…
(sorry to keep going back and forth, I’m honestly not trying to avoid merging this; I care about it being accessible very much)

I appreciate you making sure your code and UX is as good as possible. The fact that I care about the same thing is the reason why this pull request exists :-)

Finally merged, thanks!!

Yay! :-)
On Feb 27, 2015 4:07 PM, "Lea Verou"<EMAIL_ADDRESS>wrote:

Finally merged, thanks!!
—
Reply to this email directly or view it on GitHub
https://github.com/LeaVerou/awesomplete/pull/26#issuecomment-76496233.


private_dns_only_for_inbound_resolver_endpoint value for s3 vpc endpoints is ignored.

Description
This is pretty simple.  As a followup to my prior bug report in https://github.com/terraform-aws-modules/terraform-aws-vpc/issues/982, I tested the fix in https://github.com/terraform-aws-modules/terraform-aws-vpc/pull/1023 and noticed that when trying to set the following, the private_dns_only_for_inbound_resolver_endpoint flag was still set to false (Note: a prerequisite of this is to have an existing S3 Gateway endpoint so if testing is needed, that will need to be created first before the Interface endpoint with this flag enabled will succeed.)
private_dns_enabled = true
      dns_options = {
        private_dns_only_for_inbound_resolver_endpoint = true
      }

Upon investigation of the fix, I noticed that dns_options was omitted on https://github.com/terraform-aws-modules/terraform-aws-vpc/blob/e4768508a17f79337f9f1e48ebf47ee885b98c1f/modules/vpc-endpoints/main.tf#L42 so the flag passed into the module is ignored.
This can be fixed by updating to private_dns_only_for_inbound_resolver_endpoint = try(each.value.dns_options.private_dns_only_for_inbound_resolver_endpoint, null)
I've verified this fix locally but I don't have any experience with PRs to this repo.

[x] ✋ I have searched the open/closed issues and my issue is not listed.

Versions

Module version [Required]:
v5.5.0

Terraform version:
v1.4.6

Provider version(s):

provider registry.terraform.io/hashicorp/aws v5.32.1

Reproduction Code [Required]
module "vpc_endpoints" {
  source  = "terraform-aws-modules/vpc/aws//modules/vpc-endpoints"
  version = "v5.5.0"

  vpc_id             = module.vpc.vpc_id
  security_group_ids = [module.vpc_endpoints_sg.security_group_id]

  endpoints = {
    s3 = {
      service = "s3"
      service_type = "Interface"
      private_dns_enabled = true
      dns_options = {
        private_dns_only_for_inbound_resolver_endpoint = true
      }
      tags    = { Name = "s3-vpc-endpoint" }
    }
  }
}

Steps to reproduce the behavior:
explained above already.
Expected behavior
The flag  private_dns_only_for_inbound_resolver_endpoint should be true
Actual behavior
The flag  private_dns_only_for_inbound_resolver_endpoint is ignored

This issue has been resolved in version 5.5.1 :tada:


RFC: Add testing for capture (pf_ring/afpacket/pcap/pcapgo/...)

I wondered if it would be possible to make network capture/sending out packets testable on travis-ci. So I tried out some stuff and came up with this proof of concept. There is also Travis-ci output.
What is needed?

precompiled linux kernel
for pf_ring precompiled pf_ring kernel module

How does it work?
On travis-ci we can not load kernel modules (for security reasons) so the solution for this is to use qemu and run our own linux. Since kvm is not available this is a bit slower - but not that bad (booting + a short test took just a second).
To make everything fast and compact this setup does the following things:

The kernel is stripped down to just the stuff that is needed (virtio-net, virtio-serial, serial-port, networking, initrd) and everything else is deactivated (e.g. all the filesystems except devtmpfs, all other device drivers, ...)
kernel precompiled
No init-system or anything - just the tester guest go application

Steps that get executed:

Main go-program (tester.go) builds the guest program (init/test.go)
It builds an initrd containing

pf_ring.ko
init
interp of init (ld - determined from the elf header of init)
needed libraries (determined from ld)

Create a socket for a control channel

Upon receiving a message from the control channel an answer is sent back

Create a socket for a network device

Upon receiving a packet from the network device an answer is sent back

Run qemu

Inside the guest init does the following:

mount devtmpfs
write test to the control channel
read a message from the control channel
load pf_ring kernel module
bring the network interface up and assign an ip address
write a packet to the network
read a packet from the network

The network device on the host works via a socket provided to qemu. The packet format on this socket is a big endian uint32 with the packet size followed by the network packet. Packets sent to this socket appear in the network device in the guest - and packets sent to the network device appear on the host in the socket.
The control socket can be used for synchronization (on the host it is a socket, and on the guest a char-device).
Alternatives
Travis-ci can be tricked into loading veth by requesting docker in travis.yml. With this We can create our private network devices and use those for testing. But with this only methods compiled in the travis-ci image can be tested (pcapgo, pcap should also work, af_packet I'm not sure, pf_ring definitely not).
Open questions

Is this a viable solution?
Where should the kernel image/modules be hosted (at the moment ~2MB)?
Where should the testing code/kernel building script/config be hosted?

For another project, I wrote https://github.com/google/stenographer/blob/master/integration_test/test.sh.  It creates dummy interfaces and sends/receives traffic on them.  It works fine, just requires sudo:required (https://github.com/google/stenographer/blob/master/.travis.yml#L4)
In short, it:

pulls down a big .pcap file and tcpreplay
builds the system-under-test
creates a dummy interface with:

DUMMY="${DUMMY-dummy0}"
sudo /sbin/modprobe dummy
sudo ip link add $DUMMY type dummy || Error "$DUMMY may already exist"
sudo ifconfig $DUMMY promisc up

starts system-under-test
replays packets with

sudo tcpreplay -i $DUMMY --topspeed $BASEDIR/steno_integration_test.pcap

The above should work fine for afpacket and pcap, for pf_ring we'd have to figure out what the various PF_RING licenses allow us to do, as well as how to correctly modprobe them.  I do wonder, though, if just adding sudo:required to the test you're discussing might allow you to add it in as is.

Hmm well when I looked around I found https://github.com/travis-ci/travis-ci/issues/2291 which states that loading kernel modules is not supported. I have to admit I actually didn't try out loading kernel modules...
As for license - vanilla pf_ring is gplv2 for kernel and lgplv2 for userspace libraries. Only components we do not need, need a special license (pf_ring_zc, nprobe, n2disk). Additionally, pf_ring points to here for a golang userspace lib (https://github.com/ntop/PF_RING/blob/dev/userland/go/README) - so it should be possible to work something out

ok installing pf_ring via dkms worked and modprobe didn't throw an error - tomorrow I'll try out if it actually worked

Tried everything out and looks like loading kernel modules works perfectly - even self compiled ones.

tun/tap seems like another excellent way to go about this, so I'd say go for it!
Maybe we can add a gopacket/tuntap subpackage with the necessary stuff for easily creating tun/tap interfaces, then we can start writing some tests in other directories (/pcap, /afpacket, /pfring) to use it?
Obviously, tun/tap and anything that uses it will need a +linux build tag, so for tests in the /pcap directory we'll probably need to cordon those tests into separate files.

Maybe we can add a gopacket/tuntap subpackage with the necessary stuff for easily creating tun/tap interfaces, then we can start writing some tests in other directories (/pcap, /afpacket, /pfring) to use it?

Yes, that would be my plan.

Obviously, tun/tap and anything that uses it will need a +linux build tag, so for tests in the /pcap directory we'll probably need to cordon those tests into separate files.

Well as far as I know, there is also tuntap for osx available, and a quick search also turns up something for windows. Since I have neither of those two available for coding looks like we have to start out with +linux and hope somebody else has a look at those two.
I'll close this for now, start coding/designing a generic tuntap interface and will make a pull request as soon as it's ready. When that one landed in gopacket, I'll try to come up with a testing framework.
Might take some time since cookie baking season started :cookie:.

Note:  I accept cookies as well as pull requests.


Update cfpb-chart-builder to 6.3.0 and highcharts to 7.2.1

Changes

Bump cfpb-chart-builder to 6.3.0 from 6.2.0
Bump highcharts to 7.2.1 from 7.1.3

Testing

./frontend.sh
http://localhost:8000/owning-a-home/explore-rates/ should look like production.
Consumer Credit Trends, such as http://localhost:8000/data-research/consumer-credit-trends/auto-loans/origination-activity/ should look like production http://localhost:8000/data-research/consumer-credit-trends/auto-loans/origination-activity/

Thanks @niqjohnson !


Outputing gitignore in stdout instead of file. Fixes #1

Could you bump up the npm version as well?


Account zero balance with CLI, but not zero on explorer

Follow latest doc run node with docker. Node has caught up latest blocks (31100 at time of writing)
root@8c1d7bd88989:~# mina version
Commit a42bdeef6b0c15ee34616e4df76c882b0c5c7c2a on branch master

root@8c1d7bd88989:~# mina client status
Using password from environment variable CODA_PRIVKEY_PASS
Mina daemon status
-----------------------------------

Max observed block height:              31100
Max observed unvalidated block height:  31100

root@8c1d7bd88989:~# mina accounts list
Using password from environment variable CODA_PRIVKEY_PASS
Account #1:
  Public key: B62qrrGATKVoJUKEMVYoQ3FZ76BK3HxpeKoSiE6MBnvRPpd8bgNABQX
  Balance: 0
  Locked: false

It shows zero balance, there should be some balance, as seen from explorer, start from block 31096:
https://minaexplorer.com/wallet/B62qrrGATKVoJUKEMVYoQ3FZ76BK3HxpeKoSiE6MBnvRPpd8bgNABQX

Closing this one because of no activity for a long time and I hope that the most recent versions of Mina Daemon behave more stable for you.
Please feel free to report new issues should you face any.
Thank you.


scoping exported interfaces with an Interact module

interactjs/interact.d.ts
to authors(@dduugg @adidahiya @thasner). could you review this PR?
:+1: or :-1:?
check list

[ ] pass the Travic-CI test?

@vvakame , it looks like I failed to reflect some changes in the tests.  What's the preferred workflow here?  e.g. add another commit to this PR / try to --amend / abort and start a new PR

@thasner I like add another commit to this PR / try to --amend. do not have to worry too much. :+1:

:+1: lgtm

@adidahiya thanks!
@thasner thanks mate!


Redirect to support PR1330

Docs Build status updates of commit 7c29a12:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit f16c3ef:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit a340d09:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 01a9f3e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Use the same Trivy version in CI test as in the Dockerfile

I guess tests need to be updated so that we can use Trivy v0.28.1

hi @tanguy-platsec - are you still working on this? I'd like to include this as part of the next release of Trivy Action.

Fixed via https://github.com/aquasecurity/trivy-action/pull/126


Build pyhmc on windows

Let's see if this works / why it doesn't work

Looks like it can't do numpy 1.9
How do I use that in the "skip" field

Going based off of https://github.com/conda/conda-build/blob/master/conda_build/metadata.py#L38
Couldn't find it in the documentation

Yay! should be good to merge

bump


Bugfix #3442 Failure to compete for a lock causes the global transaction to exit

Ⅰ. Describe what this PR did
bugfix
Ⅱ. Does this pull request fix one issue?
fix #3442
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
可以下载该代码，https://github.com/ben905713861/seataTest，去除本地事务注解，并发访问测试
Ⅴ. Special notes for reviews

Codecov Report

Merging #3451 (91bef56) into develop (5de6f40) will decrease coverage by 0.14%.
The diff coverage is 22.22%.

@@              Coverage Diff              @@
##             develop    #3451      +/-   ##
=============================================
- Coverage      51.56%   51.41%   -0.15%
+ Complexity      3367     3364       -3
=============================================
  Files            617      617
  Lines          20419    20400      -19
  Branches        2560     2513      -47
=============================================
- Hits           10529    10489      -40
+ Misses          8835     8832       -3
- Partials        1055     1079      +24

Impacted Files
Coverage Δ
Complexity Δ

...n/java/io/seata/rm/datasource/ConnectionProxy.java
24.82% <0.00%> (-0.36%)
13.00 <0.00> (ø)

...java/io/seata/rm/datasource/ConnectionContext.java
81.44% <25.00%> (-2.43%)
36.00 <0.00> (ø)

...ta/rm/datasource/exec/AbstractDMLBaseExecutor.java
59.61% <100.00%> (ø)
11.00 <0.00> (ø)

...obuf/convertor/BranchRegisterRequestConvertor.java
90.47% <0.00%> (-9.53%)
3.00% <0.00%> (ø%)

...otobuf/convertor/BranchReportRequestConvertor.java
90.90% <0.00%> (-9.10%)
3.00% <0.00%> (ø%)

...obuf/convertor/BranchRollbackRequestConvertor.java
92.00% <0.00%> (-8.00%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalBeginResponseConvertor.java
92.59% <0.00%> (-7.41%)
3.00% <0.00%> (ø%)

...n/src/main/java/io/seata/common/util/IdWorker.java
77.08% <0.00%> (-6.25%)
11.00% <0.00%> (-1.00%)

...otobuf/convertor/GlobalCommitRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalStatusRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

... and 31 more

Codecov Report

Merging #3451 (91bef56) into develop (5de6f40) will decrease coverage by 0.14%.
The diff coverage is 22.22%.

@@              Coverage Diff              @@
##             develop    #3451      +/-   ##
=============================================
- Coverage      51.56%   51.41%   -0.15%
+ Complexity      3367     3364       -3
=============================================
  Files            617      617
  Lines          20419    20400      -19
  Branches        2560     2513      -47
=============================================
- Hits           10529    10489      -40
+ Misses          8835     8832       -3
- Partials        1055     1079      +24

Impacted Files
Coverage Δ
Complexity Δ

...n/java/io/seata/rm/datasource/ConnectionProxy.java
24.82% <0.00%> (-0.36%)
13.00 <0.00> (ø)

...java/io/seata/rm/datasource/ConnectionContext.java
81.44% <25.00%> (-2.43%)
36.00 <0.00> (ø)

...ta/rm/datasource/exec/AbstractDMLBaseExecutor.java
59.61% <100.00%> (ø)
11.00 <0.00> (ø)

...obuf/convertor/BranchRegisterRequestConvertor.java
90.47% <0.00%> (-9.53%)
3.00% <0.00%> (ø%)

...otobuf/convertor/BranchReportRequestConvertor.java
90.90% <0.00%> (-9.10%)
3.00% <0.00%> (ø%)

...obuf/convertor/BranchRollbackRequestConvertor.java
92.00% <0.00%> (-8.00%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalBeginResponseConvertor.java
92.59% <0.00%> (-7.41%)
3.00% <0.00%> (ø%)

...n/src/main/java/io/seata/common/util/IdWorker.java
77.08% <0.00%> (-6.25%)
11.00% <0.00%> (-1.00%)

...otobuf/convertor/GlobalCommitRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalStatusRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

... and 31 more


flickr plugin ignores command line configuration

Currently the flickr plugin tries to initialize flickraw at the time of import. Since there is no other way to access the site configuration which ois already loaded, a default command line parameter override is used to generate a new site config from which the flickr configurations is picked up.
The problem is that if I use jekyll command line parameters like "--config _config.yml,_config_extra.yml", the flickr configuration is not picked up if it is mentioned in the second file.
In this patch, I am moving the initialization from import-time to render time where the context provides all the final configuration. (Reference issue)
I am new to ruby, so I would completely understand if you do not find my code ruby-ish and prefer a cleaner alternative. I just wanted to keep my copy of the plugin in sync with your repo. :)

I'm reviewing some stuff I didn't get around to in 2015. I'm sorry this PR has sat around for so long without any communication. I'll try to find time to deal with it over the holidays.


Add support for Lumen

Hi, I installed this package in a Lumen project and followed the readme.md steps, but I had some trouble starting the worker.
Are there any extra undocumented steps to make this work?
Thanks

Duplicates #18


Getting tls: bad certificate error when try to write avro type message

Hi @mostafa,
I have written k6 script using xk6-kafka extension for writing avro type message into one topic with 'insecureSkipTlsVerify: true'. But i was getting below error message. Please let me know what went wrong. Are the jks files needed when we write avro messages?
ERRO[0007] GoError: Failed to get schema from schema registry, OriginalError: Get "https://topic.internal.any.v1-value/versions/latest": remote error: tls: bad certificate
default at github.com/mostafa/xk6-kafka.(*Kafka).schemaRegistryClientClass.func1 (native)
at file:///Users/kafka/replicatorShared.js:95:53(53)  executor=shared-iterations scenario=default source=stacktrace
My script:
import {
Writer,
Reader,
Connection,
SchemaRegistry,
SCHEMA_TYPE_AVRO,
SASL_SCRAM_SHA512,
TLS_1_2,
KEY,
VALUE,
TOPIC_NAME_STRATEGY,
RECORD_NAME_STRATEGY
} from "k6/x/kafka";
import exec from 'k6/execution';
import encoding from 'k6/encoding';
//Transport document event & Producer - below - Consumer & Producer Service
const brokers = [“xxx:443"]; //Update as per service- bootstrapserver
const topic = "topic.internal.any.v1"; //Update as per service
const schemaRegistryUrl = “xxx”;
export function setup() {
const saslConfig = {
username: xxx
password: xxx
algorithm: SASL_SCRAM_SHA512,
};
const tlsConfig = {
enableTls: true,
insecureSkipTlsVerify: true,
minVersion: TLS_1_2,
};
return {
    saslConfig: saslConfig,
    tlsConfig: tlsConfig
}

}
export default function (data) {
const writer = new Writer({
brokers: brokers,
topic: topic,
partition: 0,
sasl: data.saslConfig,
tls: data.tlsConfig,
});
const connection = new Connection({
    address: brokers[0],
    sasl: data.saslConfig,
    tls: data.tlsConfig,
});

const schemaRegistry = new SchemaRegistry(
 {
url: schemaRegistryUrl,
tls: data.tlsConfig

});
const valueSchemaObject = schemaRegistry.getSchema({
subject: "topic.internal.any.v1-value",
version: 1,
schemaType: SCHEMA_TYPE_AVRO,
});
let messages = [{
value: schemaRegistry.serialize({
data:{
"pubSet": [
{
"event": {
"eventId": 166130471,
"eventName": "EMP.Confirm_Shipment_Closed",
"gemstsutc": "2023-02-06 06:34:29.602712",
"sourceSystem": "GCSS"
},
"shipmentTPDocs": {
"shipmentTPDoc": [
{
"fkShipmentVersionPricing": "PEVDQCLXZ1ALB",
"tpdocExtReferenceId": "",
"tpdocInstanceId": "SXMPGGLXZ1DLB",
"tpdocVersionExtReferenceId": "",
"tpdocVersionInstanceId": "VV7PGGLXZ1DLB"
}
]
},
]
},
schema: valueSchemaObject,
schemaType: SCHEMA_TYPE_AVRO,
}),
headers:{
"__replicator_id": "topic.internal.any.v1"
}
}];
writer.produce({messages: messages});

/* let readMessages = reader.consume({
  // msk.orderrequest.customsservices.consumergroup.v1,
   limit: 2,

}); */
console.log("consumerKafka.js - Producer/writer - Event - ", schemaRegistry.deserialize({
    data: messages,
    schemaType: SCHEMA_TYPE_AVRO
}));

/* console.log("consumerKafka.js - consumer/reader - message key - ", schemaRegistry.deserialize({
//data: readMessages[0].key,
//data: readMessages[0].value,
data: readMessages,
schemaType: SCHEMA_TYPE_JSON
})); */
writer.close();
//reader.close();
connection.close();

}

@prmuthu
Write any type of message, including string, JSON or Avro doesn't require JKS files, rather it's the Writer and Reader that needs to connect to the TLS server of Kafka using the keys and certificates inside JKS files. So, JKS files are required if you're using TLS with custom certificates.


Document how to use the CLI to move a device between apps while keeping the session alive

Summary

It is not obvious how to move a device from one app to another, nor is it obvious how to keep the session alive. I pieced together the process with experimentation and use of the JSON file reference page.
It would be useful to have a page with example commands on how this can be done.
...
Why do we need this ?

Wanting to move devices between applications is sometimes desirable and having to reboot a device is not convenient if it is not necessary.
What is already there? What do you see now?

The JSON file reference is good, but I think it is missing a field as reported in another issue.
The CLI documentation is mostly just a web rendering of the in-built help but does not explain how to use it.
...
What is missing? What do you want to see?

The process I have come to, and which I don't know to be correct is:
Export a device.
ttn-lw-cli dev get <app-id> <dev-id> --name --description --lorawan-version --lorawan-phy-version --frequency-plan-id --supports-join --root-keys --session >dev.json

Delete the device from the original app.
Delete all the fields from the JSON file not mentioned in the JSON file reference page.
Create the device in the new app.
ttn-lw-cli dev create --application-id <new-app-id> <dev.json

How do you propose to document this?

Either:

Create a new page describing how to do this process.
Add a dev move command to the CLI and appropriate end point to the API to perform all the necessary steps in one go.

Can you do this yourself and submit a Pull Request?

No.

Thanks. We'll look into this request.

See my comments on this issue for a more reliable way of moving devices between applications.

So moving devices between applications is currently via the migration tool https://github.com/TheThingsNetwork/lorawan-stack-migrate.
If you run into issues, please create an issue there.


Add option to configure bind failure message

In my http get request I have my own type "ShortId".
When the route parameter is not a correct format, the server returns a 400 bad request with message:
Unable to bind [wrongValue] to a [ShortId] property!
I found this message is created in RequestBinder.cs currently L318.
I feel like the error message is good for the developer but not so much for the consumer, but maybe I'm wrong. It would be nice if either 1. I could configure the error message, or 2. just change the message to something like The value [wrongValue] cannot be parsed. Maybe also Please make sure the format is correct.

implemented in v<IP_ADDRESS>-beta
app.UseFastEndpoints(c =>
{
    c.Binding.FailureMessage = (tProp, propName, attemptedValue)
        => $"Can't bind [{attemptedValue}] to [{propName}] which is of type [{tProp}]";
});

Thank you very much!


Would you be interested in a systemd service file to run this as a service?

Description
I've created and included a hardened systemd service file in the AUR packages. It leverages a conf.d file to pull some values without having to override the service, which was designed by @IcyColdified.

I use this on Pi4 (Debian 12): /etc/systemd/system/spoofdpi.service
[Unit]
Description=SpoofDPI service
After=network.target

[Service]
Type=simple
User=harry
ExecStart=/home/harry/.spoofdpi/bin/spoofdpi -addr <IP_ADDRESS> -dns-addr <IP_ADDRESS> -banner=false -system-proxy=false
Restart=on-failure

[Install]
WantedBy=multi-user.target

Yeah sounds great.

What directory should I add it in?

Will it bb just a single file? then it's fine to add it to the root directory

It's two files.

would it be okay to put them in /_assets/systemd ?

Yes that seems okay for now. We can move them later when we handle packaging.


some some of the common keys

many todo.txt implementations add keys and two common ones are:
r:value - r means recurring.  the value is an integer followed by one of d,w,m,y for days, weeks, months, years.  the increment is added to the done date.   so r:2d means create a new item with a due date of 2 weeks from when done.  some implementations use a + before the value to mean "strict" which says use the original due date if the done date is past then original due date.
t:value - t means start and value is YYY-MM-DD.  this gets incremented in new items created by recurring tasks.

This is interesting. Can you provide links to todotxt implementations that support these?

there are a ton of todotxt apps out there.  ,amy don't have web pages for docs.  but here is an example and mnay use these
https://swiftodoapp.com/todotxt-syntax/recurrence/

I've also been looking for t: and rec: (as opposed to r:, but either would work for me) after reading up on the syntax that SwiftoDo provides. It looks like it's in your "To Come" section, but just wanted to throw support behind this.

I'm releasing a 1.4.0 shortly with support for recurring tasks (rec:) and thresholds (t:). They are marked as experimental and need to enabled in the configuration. I'd appreciate feedback if you have can test it out.

I'm releasing a 1.4.0 shortly with support for recurring tasks (rec:) and thresholds (t:). They are marked as experimental and need to enabled in the configuration. I'd appreciate feedback if you have can test it out.

Tried this earlier and was a little confused initially because I assumed recurring tasks would be based on the due date and not the completed date. It might be nice to have a configuration option to change to be based on the due date. Otherwise, initial testing looks good for rec:

I think that's a bug. It should only use the complete date if there is no due date.

many of the todo.txt implementations support both "when done" and "from due date".   The default is set new date from completion date.   From "strict" mode, meaning use the due date not the completion date,  add a "+" before the interval specification.  So:
rec:1w - next item due is one week from completion
rec:+1w - next item due is 1 week from original item due

From "strict" mode, meaning use the due date not the completion date,  add a "+" before the interval specification.  So:
rec:1w - next item due is one week from completion
rec:+1w - next item due is 1 week from original item due

Got it. Strict mode did the trick. I wasn't sure what the use-case was for strict mode from the docs for the plugin but that makes sense


Faster datascience unit tests (without loading jsdom)

Ensure jsdom is not a requirement for *.unit.test.ts files to ensure unit tests can run fast.
Moves a dependency used by by *.unit.test.ts files from *.tsx into a *.ts file (without a dependency on react/dom)

Codecov Report

Merging #9273 into master will increase coverage by 0.98%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #9273      +/-   ##
==========================================
+ Coverage   57.78%   58.76%   +0.98%
==========================================
  Files         557      537      -20
  Lines       29590    28392    -1198
  Branches     4474     4309     -165
==========================================
- Hits        17098    16685     -413
+ Misses      11548    10764     -784
+ Partials      944      943       -1

Impacted Files
Coverage Δ

src/datascience-ui/native-editor/redux/store.ts
0% <0%> (-100%)
:arrow_down:

...tascience-ui/native-editor/redux/reducers/index.ts
0% <0%> (-100%)
:arrow_down:

src/datascience-ui/history-react/redux/store.ts
0% <0%> (-100%)
:arrow_down:

...rc/datascience-ui/interactive-common/transforms.ts
0% <0%> (-100%)
:arrow_down:

...tascience-ui/history-react/redux/reducers/index.ts
0% <0%> (-100%)
:arrow_down:

src/datascience-ui/interactive-common/tokenizer.ts
0% <0%> (-65%)
:arrow_down:

src/datascience-ui/react-common/arePathsSame.ts
0% <0%> (-62.5%)
:arrow_down:

src/datascience-ui/react-common/locReactSide.ts
0% <0%> (-50%)
:arrow_down:

src/datascience-ui/react-common/logger.ts
0% <0%> (-40%)
:arrow_down:

src/datascience-ui/react-common/constants.ts
0% <0%> (-30%)
:arrow_down:

... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c2ca78...1eb192c. Read the comment docs.