C-i and C-o shouldn't jump between files in different workspaces

What did you expect to happen?
Each workspace should be independent between each other, so opening a new project in a new workspace should be like opening another project in a new instance of Emacs, just in another "tab" (workspace) instead.
What actually happened?
Calling C-o (better-jumper-jump-backward) after opening a new file from a new project inside a new workspace goes back to the old file from the old project, however the workspace is not switched up.
So you actually have, say, a workspace called "Project 2" that has a file from "Project 1" opened on it (while "Project 1" workspace still exists).
Additional details:

Include a link to your private config: https://github.com/thiagokokada/dotfiles/tree/master/doom-emacs/.doom.d

Steps to reproduce:

Open a project inside doom-emacs
Open any file from this project
Switch to another project using SPC p p (this will create a new workspace)
Open any file from this new project
Use C-o
Alternating between C-i and C-o will alternate between files from the two projects (at least this is consistent)

System information:

emacs   version    27.0.90
        features   XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER GMP
        build      abr 04, 2020
        buildopts  (--prefix=/nix/store/vlka0vgjgi2kz828361xllmqsrczm1gk-emacs-27.0.90 --disable-build-details --with-modules --with-x-toolkit=gtk3 --with-xft CFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=101200)
        windowsys  x
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop, origin/develop, origin/HEAD a381f5926 2020-04-03 02:12:50 -0400
        dir        ~/.dotfiles/doom-emacs/.doom.d/
system  type       gnu/linux
        config     x86_64-pc-linux-gnu
        shell      /run/current-system/sw/bin/zsh
        uname      Linux 5.4.28 #1-NixOS SMP Wed Mar 25 07:26:00 UTC 2020 x86_64
        path       (/nix/store/6snxzbkk7llrk45w6xy8y9fmaiklscr1-emacs-packages-deps/bin ~/dev/nu/nucli.py/bin ~/dev/nu/nudev/docker/forticlientvpn ~/dev/nu/ios-cli ~/dev/nu/nucli ~/dev/nu/nudev ~/.npm-packages/bin ~/.emacs.d/bin ~/.local/bin /nix/store/m1kpr61gayshnf5fs9d654kdb8c3bkh1-kitty-0.14.6/bin /nix/store/3j32yw16prmqw7mppgjbgczlcpgjgq3d-imagemagick-6.9.10-71/bin /nix/store/rax8pqvzzakz1wjnvdb8mdda7zw86w0c-xsel-unstable-2018-01-10/bin /nix/store/jwhd7yi26sfbi5djclxrr3ims6r5796i-ncurses-6.1-20190112-dev/bin ~/bin /run/wrappers/bin ~/.nix-profile/bin /etc/profiles/per-user/thiagoko/bin /nix/var/nix/profiles/default/bin /run/current-system/sw/bin /nix/store/vlka0vgjgi2kz828361xllmqsrczm1gk-emacs-27.0.90/libexec/emacs/27.0.90/x86_64-pc-linux-gnu)
config  envfile    nil
        elc-files  0
        modules    (:completion company (ivy +fuzzy +icons) :ui doom doom-dashboard hl-todo (modeline +light) nav-flash ophints (popup +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold (format +onsave) multiple-cursors snippets word-wrap :emacs (dired +icons) electric vc :term vterm :checkers syntax :tools docker (eval +overlay) lookup lsp magit :lang cc (clojure +lsp) data elixir emacs-lisp go hy javascript markdown nix (org +dragndrop +present) plantuml python ruby rust scala sh :config (default +bindings +smartparens))
        packages   ((adoc-mode) (color-identifiers-mode) (evil-escape :disable t) (lispyville) (lsp-ui :disable t) (sort-words) (uuidgen) (vlf))
        unpin      (n/a)
        elpa       (n/a)

This always annoyed me, but I didn't realize that was because the "queue" of C-o has ended and it was going back to the other workspace, nice catch!
I can confirm this happens to me too.

I can also confirm that this happens to me too, and it annoys the hell out of me! 😈

I've also been frustrated by this issue and I came up with the following partial fix:
(after! better-jumper
  :config
  (defun doom-prevent-persp-jump (orig-fn &rest args)
    "Ensure ORIG-FN doesn't set any jump points in buffers from other perspectives."
    (unless (and (markerp (car args))
                 (not (+workspace-contains-buffer-p (marker-buffer (car args)))))
      (apply orig-fn args)))
  (advice-add #'evil-set-jump :around #'doom-prevent-persp-jump)
  (advice-add #'better-jumper-set-jump :around #'doom-prevent-persp-jump)

While this prevents the addition of jump points from other perspectives, there are other issues that also need to be addressed:

When creating a new workspace/perspective with +workspace/new, the jumplist seems to be inherited from the previous workspace, whereas when restoring a session with multiple workspaces, the jumplists are adequately independent. I'm not sure about the internal details here.
When creating a new window in the same workspace (say with evil-window-vsplit), the jumplist from the previous window is not copied even though better-jumper-new-window-behavior is set to copy. This is contrary to what is advertised by better-jumper.
I still have to investigate these and maybe contribute it upstream, in the meantime the above snippet reduces the pain.

Hey,
I'm the author of better-jumper. It does support persp-mode by storing it's jump lists in the window configuration, so it supports the mechanism underpinning "workspaces" in Doom Emacs. This is the specific reason that I originally created the project as evil-jump was indiscriminate of persp-mode boundaries.

When creating a new workspace/perspective with +workspace/new, the jumplist seems to be inherited from the previous workspace

This is working by design based on the better-jumper-new-window-behavior. The previous window's jump list is copied to the initial window of the "workspace" when it's created. The concept of a "workspace" is something specifically created by Doom Emacs and not something better-jumper itself is aware of. In this case I would recommend an update to Doom that clears the jump list when creating a new workspace is created so that the new window doesn't retain the previous window's jump list (which happens to be in a different "workspace").

When creating a new window in the same workspace (say with evil-window-vsplit), the jumplist from the previous window is not copied even though better-jumper-new-window-behavior is set to copy. This is contrary to what is advertised by better-jumper.

@sgleizes Can you please create a bug on gilbertw1/better-jumper with steps to reproduce this issue? From my testing, I'm not able to reproduce this problem.

the addition of jump points from other perspectives

@sgleizes Could you also provide a scenario that reproduces better-jumper adding jump points between different persp-mode perspectives as well? I'm not able to reproduce that one either.

Hello and thanks for your insights!

The previous window's jump list is copied to the initial window of the "workspace" when it's created.

That's also what I thought first, but in my case it seems that the window for the new workspace and the original window share the same jump list (does it mean that they are the same window?). To make sure I tried clearing the jump list as in your PR, and this results in the jump list of the original perspective's window being cleared as well, which is not intended. This happens regardless of the better-jumper-new-window-behavior setting.

Can you please create a bug on gilbertw1/better-jumper with steps to reproduce this issue?

I will, but first I will try with a minimal configuration to make sure I don't have some parts of my own config interfering here, since it seems that I get a different behavior on all mentioned aspects.

Could you also provide a scenario that reproduces better-jumper adding jump points between different persp-mode perspectives as well?

For me this was occurring when simply switching between workspaces using e.g. +workspace/switch-left or similar commands. The buffer from the previous workspace was being added to the jumplist of the current workspace. This seemed to occur with the post-command-hook of evil-jump, and so was not happening if I disabled better-jumper-use-evil-jump-advice.
I will also try to reproduce this with a minimal config.

Thanks for the response. The negative interactions with evil-jump definitely make sense as they made some recent changes that complicated the relationship between better-jumper and itself. I'll look into the new workspace behavior and see why the previous window configuration seems to be leaking into the new perspective as well.

So I just tested with a default doom configuration. For the sake of clarity here are the 3 issues under investigation:

+workspace/switch-to results in a jump from the previous persp being added to the new persp.
+workspace/new inadequately copies the jump list from the current window into the new perspective window.
evil-window-vsplit does not copy jump list from previous window if the window is focused directly.

How to reproduce

On a default doom installation:

Start emacs and open a file in the default workspace.
Create a new workspace with +workspace/new and open another file.
Switch back to the first workspace with +workspace/switch-left.
Inspect the jump list with +ivy/jump-list and see the file from the second workspace.

On a default doom installation, without the changes from your proposed PR:

From the state of the previous test, create a new workspace with +workspace/new.
Inspect the jump list with +ivy/jump-list and see that the list is not empty.

On a default doom installation:

Start emacs and open a file in the default workspace.
Add entries to the jumplist, e.g. by starting a search and moving between matches.
Eval (setq evil-vsplit-window-right t).
Split window vertically with evil-window-vsplit.
Inspect the jump list with +ivy/jump-list and see that the list is empty.

Solutions so far

The snippet from my previous post is the best thing I have so far. This does not seem related to doom and should be addressed upstream in #6.

Unfortunately, the changes from your proposed PR will also reset the jump list from the originating workspace (confirmed on a default doom installation). IIUC this is due to the fact that better-jumper-clear-jumps will use frame-selected-window, which in the context of persp-created-functions resolves to the previous window instead of the new window.
I could not find a way to get a window from the persp argument. The solution I have currently is really an ugly hack:
(add-hook! 'persp-created-functions
  (defun +worspaces-mark-creating (persp &rest _)
    (setq better-jumper-creating-perspective (persp-name persp))))
(add-hook! 'persp-activated-functions
  (defun +worspaces-clear-initial-jump-list (&rest _)
    (let ((persp (get-current-persp)))
      (when (and persp (eq better-jumper-creating-perspective (persp-name persp)))
        (setq better-jumper-creating-perspective nil)
        (better-jumper-clear-jumps)))))

I would say that this is a doom-related issue on the integration with the workspaces modules. It is probably inappropriate for upstream.

No solution so far, I will open the issue upstream since this is about the implementation of better-jumper--window-configuration-hook.

Thanks, for the detailed reply. I've been pretty busy today, so I haven't had much time to look at this so far.
After updating doom to the lastest (including all packages), which I haven't don't in a while, I've noticed a regression where it appears that the window properties are being shared between perspectives as they're created, instead of the expected copy. Therefore the actual underlying jump lists are being utilized by multiple perspectives simultaneously which is causing confusing behavior with jumps crossing the perspective boundary.
I haven't yet been able to dig into where or when this regression was introduced, but I plan on looking into it tonight.

I'm still digging into the cause of the problem and a proper solution. It appears that the window configuration from the current window is being used whenever a new perspective is being created. This results in all the properties in the current selected window (better jumper jumps, buffer list, etc) being inherited into the new perspective instead of those properties being isolated between the new and old perspective.
A temporary workaround for this would be the following advice:
(with-eval-after-load 'persp-mode
  (defadvice persp-delete-other-windows (before better-jumper activate)
    (select-window (split-window))))

When persp-mode activates a new perspective and switches up the window configuration, it calls this function (persp-delete-other-windows) to effectively reset the window state, however it normally only deletes the other windows and leaves the current window intact. This advice effectively creates a new window and selects it before this function is called, resulting in all existing windows being deleted and only having the new window remain.
This will solve problem by preventing the existing window properties (buffer list, jumps, etc.) from leaking into the newly created perspective and result in an effectively blank window being used as the basis of the new perspective.

I just created a pull request that should solve this problem. Better jumper has been updated to now ensure that upon activating a new workspace, an existing jump list is never leaked into a new perspective.
I'm also contemplating creating a proposal for persp-mode that would add an option to more effectively reset window state when restoring a window configuration. I feel like this would effectively solve any other potential issues with leaking window properties into newly created perspectives, effectively making a new perspective more of a blank slate.


[Bug]: Both OS on emmc and tf-card boot not every time

What happened
Hello everyone,
I have boot and connections problems with k510.
After powering on the kendryte K510, it boots not every time. I need to push K2 (reset) button several time in a row in order to make it work and boot successfully. Also, the same happens even if I boot not with emmc, but with tf-card.
I either get black screen of k510, or the broken logo screen.
Initially I thought that the problem is in the power supply, so I tried different adapters 15 W, 20 W, 25 W. But it didn't fix the issue.
Also, despite the fact that it struggles the boot, when it boots successfully, I can't work with the "screen". The terminal is slow and laggy (while having serial connection with k510). It's impossible to write commans or change the files with vim, for example.
k510 connection (power and UART):

There are some photos of the bugs:

Sometimes it stops loading the kernel and just stucks

Sometimes it show the errors:

It can also show either black screen or broken logo screen

Rarely, it boots successfully and runs the program:

Reproduction steps

Switch boot to emmc or tf-card

Connect the board to power supply

Connect the board to UART-USB

Power-on the board

Connect to the board

sudo screen /dev/ttyUSB0 115200

or
picocom -b 115200 -f h /dev/ttyUSB0

Hardware board
k510 crb kit
Software version
2ce01d00b2d0f6925656ce207c84504d972a1b0f
Bug frequency
occurs 8 out of 10 times
Anything else
No response

Can you try using another TF card? It's possible that the image file error was caused by a damaged TF card.


react-native out of date

Not sure if this the proper place to request an update for a published package, but @types/react-native (0.29) is behind what's on DefinitelyTyped (0.34):
https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/react-native

Thanks for the info. Publishing was blocked and a PR is out to fix it: DefinitelyTyped/DefinitelyTyped#12277


Shouldn't we drop on the second dimension in the drop_path function?

This is the dropout function in utils.py:
def drop_path(x, drop_prob):
  if drop_prob > 0.:
    keep_prob = 1.-drop_prob
    mask = Variable(torch.cuda.FloatTensor(x.size(0), 1, 1, 1).bernoulli_(keep_prob))
    x.div_(keep_prob)
    x.mul_(mask)
  return x

Question:
Why do we drop on the batchsize dimension (the 1st dimension)?
Shouldn't we randomly keep and drop some of the filters (on the 2nd dimension)?
Thank you :-)

My understanding is that dropping from the second dimension would be an implementation of "drop channel", whereas dropping from the first dimension is "drop path".


⚠ Hartman Foundation has degraded performance

In 2ea4fc2, Hartman Foundation (https://gordonhartman.com/) experienced degraded performance:

HTTP code: 200
Response time: 2719 ms

Resolved: Hartman Foundation performance has improved in 42fc6a7.


Скласти інтро

Скласти інтро (вступ), де в 2-4 реченнях описати, що замовник робить, що подобається робити, що хочеться робити краще, що важливо робити, тощо.

Intro

― I'm the most successful person ever to run for the presidency, by far. Nobody's ever been more successful than me. I'm the most successful person ever to run. Ross Perot isn't successful like me. Romney ― I have a Gucci store that's worth more than Romney. Sorry losers and haters, but my IQ is one of the highest ― and you all know it!

Intro

― I'm the most successful person ever to run for the presidency, by far. Nobody's ever been more successful than me. I'm the most successful person ever to run. Ross Perot isn't successful like me. Romney ― I have a Gucci store that's worth more than Romney. Sorry losers and haters, but my IQ is one of the highest ― and you all know it!


problem with from html

hello
in from html section,i  insert this code:
<map name="map">
    <area shape="rect" coords="428, 18, 549, 345" href="test" />
</map>

the area load as well but  Attributes like href not load in area.
is there any solution for this?
thank you

In function Area.createAreasFromHTMLOfMap before string
attributes[name] = result[1];
add string:
name = item.toLowerCase();

@netkot Thank you. I was looking for this too. Can you explain a little bit more why this? I'm tryin' to understand, anyway. Thank you!


Wrong logic for Map in RedissonLiveObjectService:persist method

In RedissonLiveObjectService class, while copying and persisting map Entities in persist method, the "for" loop just accesses empty Redisson map instead of right map object, it causes no any map entity is copied and persisted into redis.
Class: https://github.com/redisson/redisson/blob/master/redisson/src/main/java/org/redisson/RedissonLiveObjectService.java
Line: #308  , The map instance in line 308 should be replaced with object instance which is created in line 303.
for (Entry<?, ?> entry : map.entrySet()) {
Redisson version: from 3.5.3 to 3.10.6

Fixed! Thanks for report


Should throw ENOTDIR error if walk(path) is not a dir

walk.walk("path/to/file").on("errors",errors).on("end",end);

I think it will emit a file event, will it not?

It was missing a little else statement to handle the case of an actual error.


Add CMake format

use the following command to apply the rules to all existing CMakeLists.txt
find . -name CMakeLists.txt | xargs cmake-format -c cmake-format.py -i

One general question: I see the command in the description that leverages this change to format CMake files. It's up to the contributor to run this manually, and I'm wondering if it makes sense to introduce some build script that runs this, the clang format, and also compiles the project. We'd have more guarantee then that these format requirements are met

Make sense, I will try to find some gh actions that are fit for these tasks, maybe after #7 merged.

nit: should we put cmake-format.py into a sub-folder like scripts or something?

It's not a script, it's a config file for the cmake-format utility (yes, it's confusing and awkward).

Make sense, I will try to find some gh actions that are fit for these tasks, maybe after #7 merged.

Sounds great, @zhjwpku ! Also some build script that people can run locally would be a nice help for contributors.

We should just use pre-commit, which is able to do both.

Thanks for raising this PR @zhjwpku and thanks for the review @gaborkaszab @pitrou and @wgtmac

We should just use pre-commit, which is able to do both.

I love pre-commit 👍


header-includes in the YAML header causes an error when exporting to LaTeX or pdf

When the YAML header contains header-includes, pandoc (2.13) cannot export to LaTeX or to pdf.
Exporting to docx works as expected.
Here is a minimal example and the command line run:
---
title: Testing pandoc-ling
header-includes: |
  \usepackage{hyperref}
---

# This is a test

::: ex
This is the most basic structure of a linguistic example.
:::

pandoc pandoc-ling_test.md -o pandoc-ling_test.tex --lua-filter pandoc-ling.lua

I find the metadata handling of Pandoc confusing :-). But with a minimal change your problem has gone away. Please grab the latest commit for a working version.


Tephra docker run issue

Hello,
I am trying to run Tephra for the first time using your Docker container. I ran silent run using nohup
in expectation to produce gff file for my assembly
nohup tephra all -c tephra_config.yml
And got following files as output
-rw-r--r-- 1 root root    1462272 Oct 22 20:42 QMD-87_01.1.fasta.index.des
-rw-r--r-- 1 root root     708608 Oct 22 20:42 QMD-87_01.1.fasta.index.md5
-rw-r--r-- 1 root root     167936 Oct 22 20:42 QMD-87_01.1.fasta.index.sds
-rw------- 1 root root        966 Oct 22 20:42 nohup.out
-rw-rw-r-- 1 4886 4886       1764 Oct 20 17:47 tephra_config.yml
-rw------- 1 root root          0 Oct 22 20:42 tephra_suffixerator_errors_oBaE.err
-rw-r--r-- 1 root root        449 Oct 22 20:42 tephra_tair10_full.log
-rw------- 1 root root   12940960 Oct 22 20:42 tephra_transposons_hmmdb_C7Xw.hmm
NO errors in error file,no ssues in log file but the program crashes soon after initiated and nohup.out file contains following message.
"/root/.tephra/gt/bin/gt -j 24 suffixerator -db QMD-87_01.1.fasta -indexname /workdir/TEPHRA/db/QMD-87_01.1.fasta.index -tis -suf -lcp -ssp -sds -des -dna 2> /workdir/TEPHRA/db/tephra_suffixerator_errors_oBaE.err" died to signal "INT" (2) at /usr/local/share/perl/5.26.1/Tephra/Role/Run/GT.pm line 98.
Unable to run 'tephra findltrs'. Here is the exception: "tephra" unexpectedly returned exit value 25 at /usr/local/share/perl/5.26.1/Tephra/Role/Run/TephraCmd.pm line 30.
Not quite sure what is going on. Could you please provide some suggestions of might be happening?
Thanks,
Martina

HI Evan,
I have actually ran it in the background before, just did not give you that example above. So that does not seem to be an issue. It starts, produces those files I listed below and then crashes.

The error signal means the process was killed by something from the system or from user input (like CTRL-C). So, if you are running this in the container and the process is getting killed you may be running out of resources.
Can you confirm that you are not running out of disk space? How you create the container will determine where the files are written to. Also, you are requesting 24 CPUs in the command. Can you watch the process to make sure it is not running out of memory or exhausting available resources?
That would be informative at this stage.

Ran now with 60 CPUs and with docker exec, got an error below
docker exec 2342d3d7db1b nohup tephra all -c /workdir/TEPHRA/db/tephra_config.yml --cpu 40 2>&1 > tephra.out &
INFO - Configuration - Log file for monitoring progress and errors: /workdir/TEPHRA/db/tephra_tair10_full.log
INFO - Configuration - Genome file:                                 /workdir/TEPHRA/db/QMD-87_01.1.fasta
INFO - Configuration - Repeat database:                             /workdir/TEPHRA/db/Human_repeats_library.fa
INFO - Configuration - Number of threads:                           100
INFO - Command - 'tephra findltrs' started at: 25-10-2018 03:14:08.
ERROR - 'gt suffixerator' failed with exit value: 135. Here is the output: Bus error (core dumped)
Not sure if that "core dumped" is the memory thing?

Ok, I ran that as suggested and got two GFF3 files as an output
QMD-87_02.1_ltrdigest85.gff3
QMD-87_02.1_ltrdigest99.gff3
not sure which one is the correct one? I believe the one that is created later, or are both of these intermediate files. In the log file there is never real progress, just that it started but not that it finished or what is doing
Here is the log:
######################
Configuration - Log file for monitoring progress and errors: /workdir/TEPHRA/db/tephra_QMD-87_02.1.log
Configuration - Genome file:                                 /workdir/TEPHRA/db/QMD-87_02.1.fasta.gz
Configuration - Repeat database:                             /workdir/TEPHRA/db/Human_repeats_library.fa
Configuration - Number of threads:                           1
Command - 'tephra findltrs' started at: 26-10-2018 16:31:20.
######################
Also I do not get FASTA  of all intact and fragmented transposons in the genome,
and annotation table.

Hi,
The results indicate that the process was killed again. Both of those files are intermediate and should be removed once the 'findltrs' command completes and produces a filtered and refined file of LTR-RTs. I think one problem may be the use of the gzipped genome file. I'm sorry for the inconvenience, but some of the programs used do not allow files to be compressed. I would suggest trying again with an uncompressed genome before moving forward.
I know this is a major inconvenience, but at this stage of development I've focused primarily on the algorithms and biology. You should never have to uncompress anything ideally and I'll add support for this ASAP.
Thanks.

Hi,
Just to update, in the latest version (v0.12.3) compressed input is handled correctly and I've also made changes to the docker image and commands.
Please let me know if there are still issues remaining on this ticket.
Thanks.

I'm going to close this issue as it seems to have been resolved. Please update if you have further issues that are related.


FileNotFoundError: [Errno 2] No such file or directory: './gPPMol/file_id.txt'

I got this error while running notbeook
./interface.rinterface ./interface.linterface
Traceback (most recent call last):
File "run.py", line 47, in
from gPPMol.comgen import decode_smiles
File "/home/nikola/Desktop/tik/GENiPPI/gPPMol/comgen.py", line 7, in
from gPPMol.gene import *
File "/home/nikola/Desktop/tik/GENiPPI/gPPMol/gene.py", line 119, in
with open("./gPPMol/file_id.txt","r") as f :
FileNotFoundError: [Errno 2] No such file or directory: './gPPMol/file_id.txt'

Also I got this error while running train.py.
FileNotFoundError: [Errno 2] No such file or directory: './gPPMol/example.npy'

Also I got this error while running train.py.
FileNotFoundError: [Errno 2] No such file or directory: './gPPMol/example.npy'

Contact by<EMAIL_ADDRESS>

I got this error while running notbeook ./interface.rinterface ./interface.linterface Traceback (most recent call last): File "run.py", line 47, in from gPPMol.comgen import decode_smiles File "/home/nikola/Desktop/tik/GENiPPI/gPPMol/comgen.py", line 7, in from gPPMol.gene import * File "/home/nikola/Desktop/tik/GENiPPI/gPPMol/gene.py", line 119, in with open("./gPPMol/file_id.txt","r") as f : FileNotFoundError: [Errno 2] No such file or directory: './gPPMol/file_id.txt'

Contact by<EMAIL_ADDRESS>


Remove version: Cisco.CiscoWebexMeetings version <IP_ADDRESS>

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://akamaicdn.webex.com/client/WBXclient-41.3.4-5/webexapp.msi
OK
(Automated message - build 912)

Close with reason: Package still available;


users can now log in

@runongirlrunon
I did it!!!!

This PR closes out https://github.com/summer17-csc648-team1/warehausmedia/issues/2.


Fix Android build

Building with the Android SDK, stdout and stderr are not Nullable

This is needed for Swift < 6, for Swift 6 + you need https://github.com/apple/swift-log/pull/325

Maybe I'll just wait for a Swift 6 Android toolchain then.


Union type method parameters in base class accepts incompatible types in subclass overrides

Using union types in base class method declarations allows override functions that only declare one of the union member types. This produces code that crashes at runtime, even with --strict.
TypeScript Version:  2.7.0-dev.20171108
Code
abstract class Base {
    abstract foo(arg: string | number): boolean
}

class C extends Base {
    foo(arg: string): boolean {
        return arg.startsWith("a")
    };
}

const a: Base = new C()
a.foo(1)

Expected behavior:
Should not compile.
Actual behavior:
Compiles and crashes at runtime.

See here for an explanation:
https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-function-parameters-bivariant
Also, see #18654.

Aha, I had missed the part where --strictFunctionTypes does not apply to methods. I take it I should stay away from inheritance if I want contravariant parameter checking then.


Decouple workload, configuration management from charm.py

In this PR a few parts of operating grafana agent have been decoupled from charm.py.
Something similar is expected to follow in a future PR for operating nginx.

Split out "WorkloadManager" and "Config".
Set up stage for the config to be lazily evaluated, in an attempt to avoid code ordering issues.
New "compound status" handling approach:

Charm components report back via a callback
Each component, and then the charm, are responsible for calculating the "total" status for themselves

Apart from that, most of the code was copy-pasted from grafana agent (k8s operator).

Outdated. Closing.


Any good notebooks for conversion of images to 3D

Any good notebooks for conversion of images to 3D

I found this useful - https://www.rerun.io/examples/paper-visualizations/mcc


Update Capital Framework and use family-linked webfonts

This PR will eliminate the use of the old u-webfont- mixins, replacing them with the standard font-style and font-weight CSS properties that are now able to be used with the included upgrade to the latest version of cf-typography.
Removals

Outdated styles
PDFreactor fonts that are no longer needed

Changes

Converted u-webfont- mixin calls to font-style or font-weight properties

Testing

Pull branch
npm install
gulp
Browse through your local site and observe no changes from the production site

Todos

[x] Before this gets merged, we need another release of CF and to increment the versions updated here.

Checklist

[ ] PR has an informative and human-readable title
[ ] Changes are limited to a single goal (no scope creep)
[ ] Code can be automatically merged (no conflicts)
[ ] Code follows the standards laid out in the development playbook
[ ] Passes all existing automated tests
[ ] Any change in functionality is tested
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged
[ ] Visually tested in supported browsers and devices
[ ] Project documentation has been updated
[ ] Reviewers requested with the Reviewer tool :arrow_right:

Would is still make sense to have a variable or utility for setting the fonts? This way you are able to standardize the particular font weights.

Would is still make sense to have a variable or utility for setting the fonts? This way you are able to standardize the particular font weights.

I'm not totally sure I follow you, @sebworks. Do you mean that if we did something like font-weight: @medium;, we could change them all at once if we ever decided to, say, shift our "medium" weight from 500 to 600 and our "bold" weight from 600 to 700?

I'm not totally sure I follow you, @sebworks. Do you mean that if we did something like font-weight: @medium;, we could change them all at once if we ever decided to, say, shift our "medium" weight from 500 to 600 and our "bold" weight from 600 to 700?

Yeah

I'm going to update cf-core with the latest release to get the demibold fixes in this branch.

Rebased and awaiting Travis!

@sebworks That's not a bad idea, but I'd like to put it on the backlog so I can go ahead and merge this to help Cat see some things through before she's out next week.


spannerio.py doc typo fix

Hi there,
I was doing some poc using Beam and Spanner. Google search led me to the page below:
https://beam.apache.org/releases/pydoc/2.24.0/apache_beam.io.gcp.experimental.spannerio.html
I tried following the guide and found a minor typo on the page.
Thought I should fix it so that the next person who follows the guide can save a few seconds/minutes.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

@aaltay @mszb @kamilwu found your names on the spannerio.py. Could you please have a look? Thanks!

Thank you.


Initial HSSI PCAP support

This is an initial implementation of HSSI support in ASE.
By default the HSSI are connected in loopback (whatever is sent to TX will appear on RX of the same channel).
To use the PCAP version a libpcap is required and ASE_HSSI_EMUL_PCAP needs to be defined during build/make.
In this case each HSSI channel loads the RX data from a single PCAP located at $ASE_HSSI_PCAPS_PATH/in<channel_number>.pcap and stores the TX data into a single PCAP located at $ASE_HSSI_PCAPS_PATH/out<channel_number>.pcap.
Corresponding Agilex ase_afu_main changes:
https://github.com/intel-innersource/applications.fpga.ofs.rtl/pull/4063

@sophimao @michael-adler Can you take a look at this first version of HSSI support? I had to create a fork, since I probably don't have permissions for this repo.

The implementation was updated with a loopback version (used by default). To use the PCAP version a libpcap is required and ASE_HSSI_EMUL_PCAP needs to be defined during build/make. When PCAP version is used the PCAPs are sourced from ASE_HSSI_PCAPS_PATH.

Added support for interfaces and addressed basic feedback.
Will look into splitting the PCAP implementation into a plugin outside of ASE.

Is there a simple AFU somewhere for testing the default loopback version?

I tested it manually - should I add some basic example into https://github.com/OFS/examples-afu?

Is there a simple AFU somewhere for testing the default loopback version?

I tested it manually - should I add some basic example into https://github.com/OFS/examples-afu?

No, not if you don't have an AFU already. I actually have one from CEG that they wanted to add but we didn't have a loopback, so will try to get it working with your changes.

I tried to build and the final link step for work/ase_simv didn't find libhssi_plugin.so because the link happens in the csrc subdirectory. The "-L." doesn't work -- probably needs a more complicated (absolute?) rpath.
Will this work with modelsim?
Compilation is now so slow because of the insane number of hssi atoms that we ship. Is there a subset that we can eliminate? I bet a large fraction is related to the MAC and never used. I wonder whether we should default to OFF for HSSI simulation.

Will this work with modelsim?

I am actually using QuestaSim most of the time (versions 2021.3 and 2022.4) and it works, so I guess Modelsim should work as well (not sure if there are currently any major differences between the two apart from the name).

I tried to build and the final link step for work/ase_simv didn't find libhssi_plugin.so because the link happens in the csrc subdirectory. The "-L." doesn't work -- probably needs a more complicated (absolute?) rpath.

Updated the "-L" to point to "$(ASE_WORKDIR)", which holds the absolute path to the WORK directory

@michael-adler Here is a simple AFU I used to test the loopback. GEN_HSSI_STIMULI just generates some frames for each TX HSSI interface and the same ones should appear on the RX (essentially for every HSSI TX transaction there should be the same RX one a clock cycle later). I just checked the log_hssi_events.tsv after running the simulation.
ofs_plat_afu.sv.txt

Pushed a couple changes to the branch:

Update Makefile needed to work with FIM changes in my PR #935
A bit of logging and compilation warning cleanup

Does everyone think it's ready to merge?


Added compatibility for an array as a promise

Until now we could only except an object with a promise property or an array of promises. What I need to achieve is using angular-busy with an array with a promise property.
This commonly happens when using angular's $resource service and the server responds with an array rather than an object.
function BlogFactory($resource) {
  return $resource.service('/blogs');
}

function BlogCtrl(Blog, $scope) {
  $scope.blogs = Blog.query();
}

When we use syntax like this we get an array with a promise property. A bit like doing this:
$scope.blogs = [];
$scope.blogs.$promise = $q.defer().promise;

Been open for a while... unsure if it's needed anymore.


Update messages.json

Here is the French update for version 3.13. Good receipt.

Thanks for your contribution.

Dang, I forgot to update the custom format hover text (key __textSubstitutions_tooltip). Github master is now fixed with english placeholders, could you translate those too and make another PR

Dang, I forgot to update the custom format hover text (key __textSubstitutions_tooltip). Github master is now fixed with english placeholders, could you translate those too and make another PR?

Done


pairedScheme sometimes returns colors less than the ones specified

At the moment the pairedScheme function returns an array that is first filtered out duplicate colors resulting from the way the colors are collected in separate arrays and then concatenated before being filtered.
Working on it

So I discovered that by interpolating with an achromatic color, I get NaN on the hue channel which then causes all the colors to become grayscale.
An alternative fix to the pairedScheme mapper is to declare black and white as explicit color objects with the hue value hardcoded to 0 and then relevant clampings to the lightness channels.

I've decided to use a darker color that can substitute black and not throw NaN on the hue channel when spline interpolation methods are used.
My current query is finding an effecient way of iterating the samples so that the requested number of colors is returned no more no less

Fixed!!!
Turns out that the interpolate() function from Culori returns repetitive colors after the t value passes 0.5 so I had to multiply the number of samples from the one passed in by the user and then return a half slice of the result array. Inarguably one of the best bugs I worked on!!! 😂


Exception in message handler for HEARTBEAT when connect to mavlink gimbal

Hi,
I tried to connect to my quadcopter which is connected to a mavlink controlled gimbal and receive this error:
ERROR:dronekit:Exception in message handler for HEARTBEAT
Traceback (most recent call last):
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\dronekit-2.9.2-py3.9.egg\dronekit_init_.py", line 1559, in notify_message_listeners
fn(self, name, msg)
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\dronekit-2.9.2-py3.9.egg\dronekit_init_.py", line 1251, in listener
raise APIException("mode (%s, %s) not available on mavlink definition" % (m.custom_mode, m.base_mode))
dronekit.APIException: mode (0, 64) not available on mavlink definition
My program:

Import DroneKit-Python
from dronekit import connect, VehicleMode, LocationGlobal, LocationGlobalRelative
from pymavlink import mavutil
import sys
import math
import time
reverse = 1
total_distance = 0
total_capture = 0
#connection_string = "tcp:localhost:5763"
connection_string = "tcp:<IP_ADDRESS>:20002"
print("---------------------------------------------------------")
print("Connecting to vehicle on: %s" % (connection_string,))
vehicle = connect(connection_string, wait_ready=True)
Get some vehicle attributes (state)
print ("Get some vehicle attribute values:")
print (" GPS: %s" % vehicle.gps_0)
print (" Battery: %s" % vehicle.battery)
print (" Last Heartbeat: %s" % vehicle.last_heartbeat)
print (" Is Armable?: %s" % vehicle.is_armable)
print (" System status: %s" % vehicle.system_status.state)
print (" Mode: %s" % vehicle.mode.name)    # settable
print ("Global Location: %s" % vehicle.location.global_frame)
print ("Global Location (relative altitude): %s" % vehicle.location.global_relative_frame)
vehicle.mode    = VehicleMode("GUIDED")
time.sleep(2)
print (" Mode: %s" % vehicle.mode.name)    # settable
print("---------------------------------------------------------")
def capturePhoto():
"""
Send capture signal to camera
"""
vehicle._master.mav.command_long_send(
vehicle._master.target_system,
vehicle._master.target_component,
mavutil.mavlink.MAV_CMD_DO_DIGICAM_CONTROL,
0,
1, 0 , 0 , 0 , 1 , 0,0) # param5 : trigger camera
print("CAPTURE SIGNAL SENT")
time.sleep(5)
capturePhoto()
vehicle.close()

When disconnect the gimbal camera, everything works fine.

Hi, i'm currently working on a project who has a similar error with Dronekit (besides, i'm using Intel Realsense T265). How do you fix those problem? I'm very glad to hear it

Hi @nandard , it turns out that the Dronekit can't handle the heartbeat message from the gimbal and confused. I solved the issue by using pymavlink directly and pick the heartbeat from the drone.

Hi @nandard , it turns out that the Dronekit can't handle the heartbeat message from the gimbal and confused. I solved the issue by using pymavlink directly and pick the heartbeat from the drone.

Could you specify about "using pymavlink directly and pick the hearbeat from the drone" ? I'm really need your help

That means I'm not using Dronekit anymore, but instead using pymavlink lib to connect to the drone and get the messages I need.:
`#Init connection
master = None
while master is None:
try:
print("mavlink connecting")
master = mavutil.mavlink_connection(connection_string)
time.sleep(0.1)
except KeyboardInterrupt:
print("exit")
sys.exit(0)
except:
pass
print("Heartbeat from system (system %u component %u)" % (master.target_system, master.target_system))
Get the messages
msg = None
while not msg:
master.mav.request_data_stream_send(0, 0, mavutil.mavlink.MAV_DATA_STREAM_ALL, # request data stream replace position = all for all msg
int(msg_reic_rate), 1) # rate = 10, turn on = 1
msg = master.recv_match()
time.sleep(0.01)
print(msg)`

That means I'm not using Dronekit anymore, but instead using pymavlink lib to connect to the drone and get the messages I need.:
from pymavlink import mavutil
 # Init connection
connection_string = 'tcp:<IP_ADDRESS>:20002'
master = None
while master is None:
    try:
        print("mavlink connecting")
        master = mavutil.mavlink_connection(connection_string)
        time.sleep(0.1)
    except KeyboardInterrupt:
        print("exit")
        sys.exit(0)
    except:
        pass
print("Heartbeat from system (system %u component %u)" % (master.target_system, master.target_system)) # <<<< I used system and component IDs to seperate messages from the drone and gimbal.
# Get the messages
msg = None
    while not msg:
        master.mav.request_data_stream_send(0, 0, mavutil.mavlink.MAV_DATA_STREAM_ALL, # request data stream replace position = all for all msg
                                                      10), 1) # rate = 10, turn on = 1
        msg = master.recv_match()
        time.sleep(0.01)
    print(msg)

Thanks a lot man. So basically there's no error message and everything works well by using pymavlink connection, is it? What's the different between using pymavlink and dronekit in drone's programming?


fix: rm permission check

Remove permission check
I don't see the reason why we need to manually add every DApp here that wants to use HybridCompute/AA on Boba.
We already have the requirement of people registering our url on our smart contract.

Merging now, as demos etc. otherwise don't work.
@souhaillM especially please have a look at this PR that this is not introducing actual security issues.

@wsdt Do you think that it's a good to let any URL communicate with our snap? I guess it's better to always have that check, so that only authorized URL can communicate with the snap.

@wsdt Do you think that it's a good to let any URL communicate with our snap? I guess it's better to always have that check, so that only authorized URL can communicate with the snap.

I even think this is mandatory, otherwise whenever any project wants to test or play around with Hybrid Compute, we need to:

Whitelist their backend on the smart contract (currently the case)
And we then need to create a new Snap release.

This sounds like a complete No Go to me and makes HC completely unusable.

Yes I do understand your point, it's not practical that each time we will push a new release, although we can have in our backend a list of authorized URLs that will be fetched at the start of the snap. The thing is that Metamask mentioned this in their security guideline of snaps

Do we have a direct channel of communication with Metamask? We can ask them the impact of this.

Yes I do understand your point, it's not practical that each time we will push a new release, although we can have in our backend a list of authorized URLs that will be fetched at the start of the snap. The thing is that Metamask mentioned this in their security guideline of snaps  Do we have a direct channel of communication with Metamask? We can ask them the impact of this.

ah I see, so I guess we can just apply this to these sensitive methods:

DeleteAccount
UpdateAccount
ExportAccount
CreateAccount

What do you think @souhaillM ?
And yes we do have a Telegram group with Sayfer (auditor) and with the snap team. Will add you!

@wsdt  Yes that sounds good, I contacted also Metamask and this is their response
Yes, determining your allowed origins dynamically with an API call should be fine.


Setup preprocessing of text in Spark Runner Sript

Want to add a spark runner script with spark enabled preprocessing of text incase anyone wants to run on a Spark cluster

utilizing a lot of prebuilt spark functions but need to think about how to build the term distribution table

This should be mostly done, or at least the skeleton is done.


Get error in my template when using this package

First thanks for taking the time to wrote this package, I am currently having issues with it as it returns it gives me a parse error on my view.

compiler.es5.js:1690 Uncaught Error: Template parse errors:
Can't bind to 'options' since it isn't a known property of 'json-editor'.

If 'json-editor' is an Angular component and it has 'options' input, then verify that it is part of this module.
If 'json-editor' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the<EMAIL_ADDRESS>of this component to suppress this message.
To allow any property add 'NO_ERRORS_SCHEMA' to the<EMAIL_ADDRESS>of this component. ("

<div>
  <json-editor [ERROR ->][options]="editorOptions" [data]="menuItem"></json-editor >
</div>

"): ng:///UssdManagerModule/CreateComponent.html@90:15

So I fixed this I think by adding schemas: [ CUSTOM_ELEMENTS_SCHEMA ] in my AppModule, now I get this error

ERROR in C:/Users/Tivas/Desktop/ussdFrontEnd/node_modules/angular4-jsoneditor/jsoneditor/jsoneditor.component.ts (20,19): Cannot use 'new' with an
expression whose type lacks a call or construct signature.

in my console

Hi,
Seeing your first comments, looks like below code is missing in your xx.component.ts file
import { JsonEditorComponent, JsonEditorOptions } from './ng4-jsoneditor';
export class xxComponent {
public editorOptions: JsonEditorOptions;
@ViewChild(JsonEditorComponent) editor: JsonEditorComponent;
constructor() {
this.editorOptions = new JsonEditorOptions()
}
}
Please share your code so I can take a look in details. I have added demo project as well with git code


regression modelling

initial commit- create a script on building a regression model

no conflict with the base branch. Okay to merge.


Can't connect using public IP via UDP on Windows 10

Type: Bug
Priority: Major

OS
Windows 10
mbed TLS build:
Version: 2.8.0
OS version: 10.0.17134
Built with MinGW
Expected behavior
Connects to the server using my public IP
(as can be done with any other UDP application and networking library, tested thoroughly)
Actual behavior
I can only connect using the local interface I have bound to.
For example
If I bind to "<IP_ADDRESS>" then I can connect to my local IP i.e. <IP_ADDRESS>
If I bind to "<IP_ADDRESS>" then I can connect to <IP_ADDRESS> (but not my local IP)
Please note if the interface is left NULL, then I cannot connect to myself via any IP
When my colleague tried binding to "<IP_ADDRESS>", only <IP_ADDRESS> worked for connecting
Steps to reproduce
Use the DTLS client and server demo on Windows 10, and optionally try binding to other interfaces
Remarks
I think I'm going to not use the net_sockets.h implementation anymore.
It seems to be buggy in Windows and Mac OS, see #1246 and #977

@Wizzard033 Thank you for reporting this!
I believe this issue is a duplicate of your own issue #977 and that #1627  resolves this issue.
Do you see this issue different than your previous opened issue?

No. This is a separate issue. #1627 solves the issue with being able to run the demo. However, the demo is limited to work only from one PC for me (when using the build above). The server cannot be connected to from the internet for whatever reason. The IP "<IP_ADDRESS>" will work for connecting to the server,, but the public IP address of the server will not. Therefore, the server demo application cannot be on a different computer than the client demo application and still work.

When I bind to "<IP_ADDRESS>", it should bind to all interfaces, and therefore connecting from the internet should be possible, but for some reason in my build setup it does not work. Of course, I also change the IP the client is connecting to.

ARM Internal Ref: IOTSSL-2380

After investigating a bit, it seems that my issue was with using a port number larger than 49151.
I'm not sure if it's common knowledge to use ports in the registered range,
but either way I'm happy that I finally found out why I couldn't connect to my server via public IP.
I had been changing the examples to use that port due to it being assigned by my server provider.


error storage explorer

Preflight Checklist

[x] I have installed the latest version of Storage Explorer.
[x] I have checked existing resources, including the troubleshooting guide and the release notes.
[x] I have searched for similar issues.

Storage Explorer Version
1.36.2
Regression From
No response
Architecture
x64
Storage Explorer Build Number
No response
Platform
Windows
OS Version
11
Bug Description
Não é possível recuperar recursos filho.
ProducerError:{
"name": "Electron Net Error",
"message": "{"name":"Electron Net Error","cause":{}}"
}
Steps to Reproduce
Expand a blob container node
Actual Experience
Não é possível recuperar recursos filho.
ProducerError:{
"name": "Electron Net Error",
"message": "{"name":"Electron Net Error","cause":{}}"
}
Expected Experience
No response
Additional Context
No response

Investigating...
Duplicate of #8277.


fix iOS setsockopt invalid params

fix  https://github.com/djc/quinn/issues/848

@djc Thank you for creating quinn!

@SSebo so are you using Quinn for TiKV/TiDB or something else? Just out of curiosity!

@SSebo so are you using Quinn for TiKV/TiDB or something else? Just out of curiosity!

Oh, I use it for an instant messaging system with thousands of iOS and Android devices.

Oh, sounds cool! Is the instant messaging system public, or something proprietary?
It seems like it's there just fine: https://github.com/quinn-rs/quinn/blob/main/quinn/src/platform/unix.rs#L42.

Right now the whole system is not public. We will open source the connection management sub system which is powered by quinn by when we think it is stable.


added time logs to check how much takes for each process

added time logs to check how much takes for each process

This sort of thing can be done automatically using the tools in the links I sent on skype.

This sort of thing can be done automatically using the tools in the links I sent on skype.

Yep. We could do it another way. so I'm just closing this PR. Thanks for the info! :)


Alignment of text in carousal

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
The alignment of text in carousal is not looking good
Expected behavior
It should be in vertically center to look good
Add ScreenShots

What browsers are you seeing the problem on?
Chrome
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

Can you add screenshots, that how it would look after changes @Ridhima10

It should be here @PSS2134

@PSS2134  @HimanshuNarware  Kindly review this


[doubts] Hello, I would like for this vertical menu on Linux

Hello, I would like for this vertical menu on Linux?

That looks like it's the tool-bar package. Together with toolbar-basic.
Or instead of the toolbar-basic package, you could also install flex-tool-bar to customize the toolbar with your own icons.

This not work in Linux?
https://atom.io/packages/tool-bar-main

Ohh.. sorry, I posted the wrong link (corrected now). It's

https://atom.io/packages/tool-bar
https://atom.io/packages/toolbar-basic

This packages not work in Linux (Xubuntu 15.04) 32bits

Working! Thanks!


Added revokable trait for entities

revoked being a field of all tables, it should be available as a property for bound entities.
This PR adds a trait with getter and setter in every entity, allowing objects to reflect their DB entry.

@jguittard the same - about doc-comment we should do in other classes/traits you've added.
BTW Why build is failing with latests deps?

@webimpress All right, it's getting funny and annoying! :) What is it with 'doc-comment'?
I'll check travis logs, I don't know yet why it's failing

@jguittard these PHPDocs without any extra information: https://github.com/zendframework/zend-expressive-authentication-oauth2/pull/13/files#diff-56840550916e42595221de7dd214d849R52
If all is defined in method signature we don't need to duplicate these information in PHPDocs.
You can check other classes we have done the same way in all expressive modules already.

Fixed. As for build failure, it has to do with https://github.com/zendframework/zend-expressive-authentication/releases/tag/1.0.0alpha3 and https://github.com/zendframework/zend-expressive-authentication/pull/18 ;)

It's probably failing because of zendframework/zend-expressive-authentication-oauth2#15 not being merged yet. I can't / am not allowed to merge it until the release-1.0.0 branch is created.

Yes, I was currently writing so... wait & see!
How about https://github.com/zendframework/zend-expressive-authentication-oauth2/pull/13/files/71304b37daaf51462d21ff08fcb09c8fb0157993#diff-a4af917802463f789b65f0b2871c19d4 ?

Thanks, @jguittard!


Grid flickers on IOS

I'm submitting a ...  (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior
On IOS if user tru to scroll through grid records horizontal or vertically, the grid flicker.
Expected behavior
Scrollbar should work smoothly on IOS.
Reproduction of the problem
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
IOS

Table version:
13

Angular version:
6

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Language: [all | TypeScript X.X | ES6/7 | ES5]

The same


Path-level parameters

Currently, as far as I can see, there is no support for parameters specified at the path level [spec].
I am working on a project where this is used, so I have (lightly) extended the library for my use case by adding support in PathsGenerator and the Path model as follows.
Assuming I did not miss this feature somehow and you'd like to have it, I can send a pull request for review.
paths/generators.py
class PathsGenerator(object):

    def __init__(self, dereferencer, schemas_registry):
        self.dereferencer = dereferencer
        self.schemas_registry = schemas_registry

    def generate(self, paths):
        paths_deref = self.dereferencer.dereference(paths)
        for path_name, path in iteritems(paths_deref):
            operations = self.operations_generator.generate(path_name, path)
+           parameters = self.parameters_generator.generate_from_list(
+               path.get('parameters', {})
+           )
+           yield path_name, Path(path_name, list(operations), parameters)

    @property
    @lru_cache()
    def operations_generator(self):
        return OperationsGenerator(self.dereferencer, self.schemas_registry)

+    @property
+    @lru_cache()
+    def parameters_generator(self):
+        return ParametersGenerator(self.dereferencer, self.schemas_registry)

paths/models.py
class Path(object):
    """Represents an OpenAPI Path."""

+   def __init__(self, name, operations, parameters=None):
        self.name = name
        self.operations = dict(operations)
+       self.parameters = dict(parameters) if parameters else {}

    def __getitem__(self, http_method):
        return self.operations[http_method]

Added in 0.10.0. Cheers.


Detect from a Python SidebarWidget when the SidebarWidget has been destroyed on the C++ side

What is the feature you'd like to have?
I would like to have the ability from within a Python SidebarWidget to get notified when the SidebarWidget on the C++ side is about to be destroyed.
Is your feature request related to a problem?
When I have split my view to display both multiple view (e.g. Linear View and Graph View) for the current function, if I make suggestions using the Sidekick Suggestions Sidebar for the Linear View and close the Linear View frame while the sidebar operation is still in progress, when the operation completes, I get the following error:
[Default] Exception ignored on calling ctypes callback function: <function _ThreadActionContext.__init__.<locals>.<lambda> at 0x2ea7a8280>
[Default] Traceback (most recent call last):
[Default]   File "/private/var/folders/pj/vws938yx21xfcndxsdc673h80000gn/T/AppTranslocation/A96C51CC-0E16-49B8-8A2D-5A8F08BF1A0C/d/Binary Ninja.app/Contents/MacOS/plugins/../../Resources/python/binaryninja/scriptingprovider.py", line 64, in <lambda>
[Default]     self.callback = ctypes.CFUNCTYPE(None, ctypes.c_void_p)(lambda ctxt: self.execute())
[Default]   File "/private/var/folders/pj/vws938yx21xfcndxsdc673h80000gn/T/AppTranslocation/A96C51CC-0E16-49B8-8A2D-5A8F08BF1A0C/d/Binary Ninja.app/Contents/MacOS/plugins/../../Resources/python/binaryninja/scriptingprovider.py", line 72, in execute
[Default]     self.func()
[Default]   File "/Users/bk/Documents/binja_spaces/sidekick_beta_staging/plugins/Vector35_Sidekick/sidebars/suggestions_sidebar.py", line 193, in <lambda>
[Default]     self.assistant.on_num_pending_updated = lambda n: (execute_on_main_thread(lambda n=n: self.onPendingCountUpdated(n)), None)[-1]  # noqa: E501
[Default]   File "/Users/bk/Documents/binja_spaces/sidekick_beta_staging/plugins/Vector35_Sidekick/sidebars/suggestions_sidebar.py", line 398, in onPendingCountUpdated
[Default]     self.updateNotification("pending request", newMessage)
[Default]   File "/Users/bk/Documents/binja_spaces/sidekick_beta_staging/plugins/Vector35_Sidekick/sidebars/suggestions_sidebar.py", line 319, in updateNotification
[Default]     self.displayNotification()
[Default]   File "/Users/bk/Documents/binja_spaces/sidekick_beta_staging/plugins/Vector35_Sidekick/sidebars/suggestions_sidebar.py", line 323, in displayNotification
[Default]     self.notificationLabel.setText(self.notifications[-1].message)
[Default] RuntimeError: Internal C++ object (PySide6.QtWidgets.QLabel) already deleted.

Are any alternative solutions acceptable?
The following suggested solution was tried, but did not work:
self.destroyed.connect(lambda: whatever())
Additional Information:
The best solution seems to be to define an explicit message (i.e, virtual function on the C++ side) to signal when the sidebar is going away.  Otherwise Python objects don't know when this is happening

Need to add a closing() API analog to the other widgets for the SidebarWidget

I fixed this a while ago and never updated this ticket I guess:
https://github.com/Vector35/binaryninja-api/commit/1d1ed09a3c0b2aec01da9271ab30a59be04f5c44


Fix storage CI failures

We'll have to decrease request count to avoid being throttled.
Pull Request Checklist
Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:
See the detailed list in the contributing guide.

[x] C++ Guidelines
[x] Doxygen docs
[x] Unit tests
[x] No unwanted commits/changes
[x] Descriptive title/description

[x] PR is single purpose
[x] Related issue listed

[x] Comments in source
[x] No typos
[x] Update changelog
[x] Not work-in-progress
[x] External references or docs updated
[x] Self review of PR done
[x] Any breaking changes?

/azp run cpp - storage

/check-enforcer override


Example on the compare page is outdated

The example on the  compare page is outdated.
You say that
var seattlers = [for (c of customers) if (c.city == "Seattle") { name: c.name, age: c.age }];

will be transformed to:
var seattlers = Array.from(customers).filter(function (c) {
  return c.city == "Seattle";
}).map(function (c) {
  return {
    name: c.name,
    age: c.age
  };
});

it does't look that nice anymore.
"use strict";

var seattlers = (function () {
  var _seattlers = [];

  for (var _iterator = customers[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
    var c = _step.value;
    if (c.city == "Seattle") {
      _seattlers.push({ name: c.name, age: c.age });
    }
  }

  return _seattlers;
})();

The loose mode is making it even worse I made a simple in the REPL.

 It's documented on the loose mode page.

Updated the example to something more current, thanks!

This is related to #40


IGAssert and dedupe unique diffIdentifiers in IGListBindingSectionController

Inspired by #696, we can't allow multiple view models with the same diff identifier inside IGListBindingSectionController. We should assert the same way we do in IGListAdapter (but checking diffIdentifiers).
Maybe we move this dedupe method to a helper function so that we can assert and still handle the dupe case?

Isn't this issue covered by #821?

Does ticket still need work? @jessesquires @rnystrom ?

@weyert that PR doesn't address this. This issue is about asserting for unique view models within the binding SC itself.

best starter task

Oh, alright 👍

@rnystrom I have written the unit test and updated the code in the binding section controller only I need to copy-and-paste the objectsWithDuplicateIdentifiersRemoved-method to this file too.  Could you or someone else assist with ensuring I only have to use it once?


Avoid automatically capitalizing the titles of taxonomies

Avoid automatically capitalizing the titles of taxonomies (e.g category, tag and custom taxonomies).
tags:
  - emoji
categories:
  - test

For the frontmatter above, in older versions of Hugo, it was used .LinkTitle acquisition is correct:

But, in ^0.123.0 versions of Hugo, automatically capitalizing the titles of taxonomies:

I don't know what Hugo's purpose is for, but I think this is a terrible setting that makes it difficult for people to display what they have written correctly.
What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.123.2-929b91fe75cb0d041f22b4707700dfc117115ad4+extended darwin/arm64 BuildDate=2024-02-22T15:27:15Z VendorInfo=brew

Does this issue reproduce with the latest release?
yep

Upgrade to v0.123.3 and set capitalizeListTitles to false in your site configuration. See docs:
https://gohugo.io/getting-started/configuration/#capitalizelisttitles

Setting only capitalizeListTitles to false does not work，in addition, setting titleCaseStyle to none. :(

@Lruihao What version were you using when you tested capitalizeListTitles?

@Lruihao What version were you using when you tested capitalizeListTitles?

0.123.2

S... what I asked you to do was...

Upgrade to v0.123.3 and set ...


tf.gradient returns None

Please make sure that this is an issue related to performance of TensorFlow.
As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:performance_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS Big Sur 11.3.1
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): v2.6.1-9-gc2363d6d025 2.6.2
Python version: Python 3.6.8
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
In training an LSTM model I would like to compute the gradients of the cell state at step t on the initial cell state: dc_t/dc_0. However calling tf.gradients(ct, c0) returns None type output.
Describe the expected behavior
My c_t c_0 are both of shape (100, 200). I am expecting the gradient to be a real-valued Tensor of the same shape.
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
### 1. Define model
batch_size = 100
input_length_m= 1403
output_dim= 100

xtr_pad = tf.random.uniform((batch_size, input_length_m), maxval = 500, dtype=tf.int32)
ytr = tf.random.normal((batch_size, input_length_m, 200))
inp= Input(batch_shape= (batch_size, input_length_m), name= 'input')
emb_out= Embedding(500, output_dim, input_length= input_length_m, trainable= False, name= 'embedding')(inp)

class LSTMCellwithStates(LSTMCell):
    def call(self, inputs, states, training=None):
        real_inputs = inputs[:,:self.units] # decouple [h, c]
        outputs, [h,c] = super().call(real_inputs, states, training=training)
        return tf.concat([h, c], axis=1), [h,c]

rnn = RNN(LSTMCellwithStates(200), return_sequences= True, return_state= False, name= 'LSTM')
h0 = tf.Variable(tf.random.uniform((batch_size, 200)))
c0 = tf.Variable(tf.random.uniform((batch_size, 200)))
rnn_allstates= rnn(emb_out, initial_state=[h0, c0])
model_lstm_mod = Model(inputs=inp, outputs= rnn_allstates, name= 'model_LSTMCell')
model_lstm_mod.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['acc'])

### 2. Compute gradients:
ds = tf.data.Dataset.from_tensor_slices((xtr_pad, ytr)).batch(100)

@tf.function
def compute_dct_dc0(ct, c0):
    return tf.gradients(ct, c0)

n_b = int(xtr_pad.shape[0]/ 100)
n_steps = 20   # look up only the first and last 20 steps

dctdc0_all= tf.zeros([n_b, n_steps])
for b, (x_batch_train, y_batch_train) in enumerate(ds):
    grad_batch= []
    cell_states= model_lstm_mod(x_batch_train)[:, :, 200:]
    for t in range(n_steps):
        ct= cell_states[:, t, :]
        print(ct)
        # steps 0,...,19
        dctdc0_b_t = compute_dct_dc0(ct, c0)  # (batch_size, n_units)
        print(dctdc0_b_t)
        grad_t = tf.reduce_mean(abs(dctdc0_b_t[0]), [0,1]) # Scalar dctdc0 at the current batch and step
        print('step', t+1, 'of batch' ,b+1, 'done')
        grad_batch.append(grad_t)

    dctdc0_all= tf.concat([dctdc0_all, [grad_batch]], axis = 0)

The error occurs specifically here:
### 3.
@tf.function
def compute_dct_dc0(ct, c0):
    print(ct)
    print(c0)
    return tf.gradients(ct, c0)
compute_dct_dc0(ct, c0)

>> Tensor("ct:0", shape=(100, 200), dtype=float32)
<tf.Variable 'Variable:0' shape=(100, 200) dtype=float32>
[None]

Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
Surprisingly when the function is defined in a slightly different manner the gradients are computed without issue:
@tf.function
# Compute gradients
def compute_dct_dc0(t, x, c0):
    return tf.gradients(model_lstm_mod(x)[:,t,:], c0)

n_b = int(xtr_pad.shape[0]/ 100)
n_steps = 20   # look up only the first and last 20 steps

dctdc0_all= tf.zeros([n_b, n_steps])
for b, (x_batch_train, y_batch_train) in enumerate(ds):  # batches 0,1
    grad_batch= []   # a list of 1403 scalar gradients on the current batch
    for t in range(n_steps):
        # steps 0,...,19
        dctdc0_b_t = compute_dct_dc0(t, x_batch_train, c0)  # (batch_size, n_units)
        grad_t = tf.reduce_mean(abs(dctdc0_b_t[0]), [0,1]) # Scalar dctdc0 at the current batch and step
        print('step', t+1, 'of batch' ,b+1, 'done')
        grad_batch.append(grad_t)

    dctdc0_all= tf.concat([dctdc0_all, [grad_batch]], axis = 0)

## Outputs:
>> step 1 of batch 1 done
step 2 of batch 1 done
step 3 of batch 1 done

However this way is a lot more expensive because it will be fitted the entire batch for each step t.
cell_states= model_lstm_mod(x_batch_train)[:, :, 200:] fits the batch only once and extracts c_t for each t to compute gradients.

Another related question is that, is tf.gradients(ht h0) watching h0 over the computations?
Gradient Tape is capable of watching the input but only the input. Using Gradient Tape while specifying tape.watch(h0) also returns None in gradients

@DagonArises ,
I was facing different error while executing the give code.Please find the gist here and share required dependencies or share the colab gist.Thanks!

@tilakrayal Sorry I forgot to specify the imports. Here is the notebook

@DagonArises ,
I do not have access to the link you have provided. Could you please provide the required permissions to view the files.


release config error on file path

After running docker-compose up, it gave these to errors

cannot create /var/www/html/src/api/app/config.php: Directory nonexistent
cannot create /var/www/html/src/ui/src/config.php: Directory nonexistent

To resolve this, I have add a line in the dockerfile, below download and unzip csweb source to create these directories
create directories for config files
RUN mkdir -p /var/www/html/src/api/app /var/www/html/src/ui/src
Anyone encountered the same issue, please share.
Cheers

I have written a blog post of Medium on this, in case you find this interesting - https://medium.com/@somersbilly/implementing-csweb-on-docker-release-config-5757164373d3

CSWeb changed the location of the config files since this code was written. More details on the real fix that is required is in the comments for this PR https://github.com/CSProDevelopment/docker-csweb/pull/2.
I'm not involved in CSPro work anymore so I haven't gotten around to updating this.

Hi Billy, I've updated the project to CSWeb 7.7.0. Thanks for opening an issue and let me know if you have any issues using the updated project.


Fix README.md Flag

README.md fixes.

Some spelling issues have already been resolved in https://github.com/AntelopeIO/DUNE which is where PRs should be directed going forward. If you still find other errors remaining in the README, we welcome a PR in https://github.com/AntelopeIO/DUNE.


Duplicate logic code

In reviewing the code, @wopsononock and I noted that the logic is essentially identical between:
en_search/advancesearch
https://github.com/ulsdevteam/ccvgd-backend/blob/3c15ca1209df3f9cd0577505ccf19ad15a5ea8da/app_func/en_search.py#L693-L836
and
advancesearch
https://github.com/ulsdevteam/ccvgd-backend/blob/3c15ca1209df3f9cd0577505ccf19ad15a5ea8da/app_func/advance_search.py#L20-L187
This should be consolidated to a helper function which is called by both endpoints.  Any time you are duplicating large sections of code, this should be abstracted into one or more functions to perform the action which can be reusable across the different callers.

Abstracting the dictionaries is a start, but the logic in the two functions remains essentially identical:
https://github.com/ulsdevteam/ccvgd-backend/blob/cvgd-backend/app_func/en_search.py#L714-L815
https://github.com/ulsdevteam/ccvgd-backend/blob/cvgd-backend/app_func/advance_search.py#L20-L124
The principal we are working toward is DRY coding: Don't Repeat Yourself.


Line break doesn't work

The \\n doesn't seem to work in tooltips.

Fixed in https://github.com/rfresh2/XaeroPlus/commit/7f844c0f1ae51a371d0c8f43dc6edd7bee4a4b2d
thanks for reporting!


Running nodemon with express and Supabase code terminal process not stopped at restart/close

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.92.0
OS Version: Windows 10

Following up on this issue: https://github.com/microsoft/vscode/issues/87321
Steps to Reproduce:

Create a node project and install express and @supabase/supabase-js
Create a .ts/.js file that creates a server and instantiates a Supabase client. Example code:  import express from "express";
  import { createClient } from "@supabase/supabase-js";

  const app = express();
  const supabase = createClient(supabaseUrl, supabaseKey); // You'll need a Supabase project for this

 const port = 4000;
 app.listen(port, () => {
 console.log(`Server running on port ${port}`);
 });

Run the file using nodemon in a VSCode terminal
Close and reopen VSCode
Run the file again
See 'Address already in use' error because the process was not stopped when VSCode was closed.

/needsMoreInfo
Is problem still reproducible if you disable terminal session persistence?
You can try different values of terminal.integrated.persistentSessionReviveProcess


If redirecting to login than remember the previous page

Issue:
when we are at /intro?id= page and if not logged in we get redirected to login and than home
Fix:
after login we should again reach that specific /intro?id= page
Additional Info:

it's a super user only route, to access it you will either need to setup your local backend and give yourself super_user role, else ask for super_user role on staging

@bhtibrewal If this is still available, I would like to take this up.

@bhtibrewal I would like to take this up

@bhtibrewal Can I take this up

The setup for frontend and backend is done got the super_user role access today, and can test it out now, ETA for this task will be on Sunday i.e 3/06/23

Hey @bhtibrewal The issue is the same for both join and other pages finding a global solutuion for it need some more time the new ETA will be 17/6/23


Curtains do not open or close, but its state is reported correctly

Describe The Bug:
Curtains no longer respond to open/close commands from homebridge UI or home app on iOS. Closing from the SwitchBot app works fine, and the status change is accurately reflected (i.e. homebridge will successfully receive the status as "Closed" after the curtains have closed using the app)
Tried reinstalling the plugin/purging cache, and regenerating API key but doesn't seem to fix it.
To Reproduce:
Tap the open/close button for the curtains, no response.
Expected behavior:
The curtains would open or close.
Logs:
[6/5/2021, 10:12:32 AM] [SwitchBot] Sending request for Shade Curtain Curtain to SwitchBot API. command: setPosition parameter: 0,ff,0 commandType: command
[6/5/2021, 10:12:33 AM] [SwitchBot] Checking Shade Curtain Curtain Status ...
[6/5/2021, 10:12:38 AM] [SwitchBot] Checking Shade Curtain Curtain Status ...
Homebridge Config:
{
"name": "SwitchBot",
"credentials": {
"openToken": "[redacted]",
"notice": "Keep your token a secret!"
},
"platform": "SwitchBot"
}
Environment:

Node.js Version: v14.17.0
NPM Version: v6.14.13
Homebridge Version: v1.3.4
Homebridge SwitchBot Plugin Version:  homebridge-switchbot-openapi v3.4.2
Homebridge Config UI X Version: homebridge-config-ui-x v4.41.1
Operating System: Raspbian / Docker
Process Supervisor: Docker

@saphierr I would need more logging so if you can get me logs in debug mode or screenshots from the SwitchBot app showing it erroring out.

Just released 1.1.0 which fixes issues with curtains.


Don't include chapter number in header

1  Taxon

Could possible be fixed with a template partial, see https://github.com/vangberg/quarto-ankivalenz/issues/3

For now I am manually adding the 'unnumbered' class to level 1 headings


Automatically open the browser to the configured url

New Pull Request
For more information, see the CONTRIBUTING guide.
Prerequisites
Please make sure you can check the following boxes:

[x] I have read the CONTRIBUTING document
[ ] My code follows the code style of this project
[ ] All new and existing tests passed

Type(s) of Changes
Contribution Type
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue, please reference the issue id)
[x] New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes

Description
Automatically open the browser to the configured url.
Remarks
[Optionally place any follow-up comments, remarks, observations, or notes here for future reference]

I wished you would have opened an issue first.
I am not sure if this is acceptable (as a whole, parts of it such as the SSL one I think are definitely good). For global configuration we use the .piralrc / rc-file approach.

Thanks for your suggestions, I just pushed an update.

Added registry field to the .piralrc. It's needed when using the local private npm registry(e.g. Verdaccio).


try use new versions github-actions and drop unsupported python3.7

Not sure if there is any real benefit from this update. Only if your tests are very long.

No idea about the github actions, probably smart to keep it on the latest versions ... but at the other hand, I have a policy of supporting EOL'ed python versions for a while.  Old python versions usually hang around in the wild for quite a while, and even though they may be "unsupported" by the Python Software Fundation, they may still be found in LTS-distros and supported by Canonical, Red Hat, etc.

the reason is great, let's leave py37 then


Refactor Tests

Refactor test utilities for previous tests

This PR’s base isn’t infratrographer.
You looking to move the model helpers into testutils rather than keeping it in graphapi_test b/c graphapi_test is getting too large?

This PR’s base isn’t infratrographer.
You looking to move the model helpers into testutils rather than keeping it in graphapi_test b/c graphapi_test is getting too large and more difficult to find things?

Yeah mostly because there's a need for those model helpers in the manualhooks tests and golang has this thing where you can't import things from a package that ends in _test.go (https://stackoverflow.com/questions/27612721/how-to-export-data-from-a-test-package-and-use-them-in-another-test-package-in-g). So that's why I made the test utils thing so I could use the model helpers in the tests I wrote.
Then since I have this testutils thing, I refactored the existing tests to use the testutils as well so we dont duplicate anything.
And as for this pr being not in infratographer, I would have to either wait to merge this after my tests pr is merged into main, or I can merge this into the tests pr and then merge it into main.


[API - REST] GET Address UTXO missing

Hi
Try this:
curl -sSL https://mempool.space/api/address/3Adsw48SVXTGU5LNhXwnLReAE6J81yENZk/utxo | jq length
1

Then, on your umbrel node:
curl -sSL http://<IP_ADDRESS>:3006/api/address/3Adsw48SVXTGU5LNhXwnLReAE6J81yENZk/utxo | jq length
parse error: Invalid numeric literal at line 1, column 10

Tested on 0.4.11 version

@wiz

This is an Blockstream/esplora specific API endpoint that we have not re-implemented in our NodeJS/bitcoind backend since we are not using it.
If you open an issue or make a PR on https://github.com/mempool/mempool/issues I guess there is possible to re-implement this API for the Umbrel setup with romanz/electrs.


add Docker

add Dockerfile and using_docker.md
@tjadamlee  @zouwei02 @Some-random

Please also create a pull request at https://github.com/athena-team/athena, thanks!


Create robust testing framework

Setup build and test pipeline
Get tests to run faster
Restructure tests more like interpret-community

Setup build and test pipeline : This is addressed in another issue #123


fixing sass syntax in css

@mansona Could this be related to #146?
We will need to refactor the CSS rule, rather than just remove it.

@ynnoj yes it could have something to do with it. I saw some serious issues with CSS in dev mode where it seemed like the sourcemaps were claiming that all CSS in the entire app were "owned" by that notification-message.css file.
Apart from anything else, this is currently preventing anyone build any of their apps in production mode because of the following:
clean-css dangerously ignores these errors but broccoli-clean-css doesn't, because it's much more reasonable to update the CSS to fix all problems than to pretend that you didn't see the errors.

so my opinion is that we merge and release this fix and then worry about fixing it properly because of the seriousness of the issue. I don't have the skill/understanding to "refactor the CSS rule" but I might check if I can make it so that Travis fails if something like this comes up again.

Thanks @mansona, I managed to fix my suddenly-failing production build with your patch.

This should be fixed in 4.1.7 which I just published.


Event rule "Terminal shell in container" producing duplicates

Describe the bug

The rule "Terminal shell in container" is triggered multiple times
How to reproduce it

Open a shell in a container and I get the alert x7 times
Expected behaviour

Get only one alert
Screenshots

Environment

Falco version: 0.30

System info: EKS Kubernetes 1.20

Cloud provider or hardware configuration: AWS
OS: Amazon Linux 2

Kernel:  5.4.156-83.273.amzn2.x86_64

Installation method: RPM

Additional context

I'm trying to set up alerting system with falcosidekick and when testing opening a shell I get the alert for the rule "Terminal shell in container" duplicated 7 times. I've checked it on the falcosidekick ui and the alert also appears 7 times.

Hi,
could you please share more details about your setup?
For example, how many nodes are you running and how Falco was deployed on them?
Thanks

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

I have the same issue. When I launch a shell the rule Terminal shell in container triggers multiple times (3, sometimes 4 times).
Running on EKS 1.21 with Bottlerocket OS:
$ falco --version
Falco version: 0.31.1
Driver version: b7eb0dd65226a8dc254d228c8d950d07bf3521d2

$ falco --support | jq .system_info
Wed May 25 08:27:08 2022: Falco version 0.31.1 (driver version b7eb0dd65226a8dc254d228c8d950d07bf3521d2)
Wed May 25 08:27:08 2022: Falco initialized with configuration file /etc/falco/falco.yaml
Wed May 25 08:27:08 2022: Loading rules from file /etc/falco/rules.d/custom-rules.yaml:
{
  "machine": "x86_64",
  "nodename": "xxx.yyy.compute.internal",
  "release": "5.10.102",
  "sysname": "Linux",
  "version": "#1 SMP Tue Mar 29 14:07:05 UTC 2022"
}

Installed with Helm. Values:
  falco:
    jsonOutput: true
  docker:
    enabled: false
  ebpf:
    enabled: true
  extraArgs:
    - --disable-cri-async

To trigger the messages I run a shell:
kubectl exec -n falco -it falco-7nj8b -- sh

The following logs show up:
falco-7nj8b falco {"output":"09:29:25.296597224: Notice A shell was spawned in a container with an attached terminal (user=root user_loginuid=-1 k8s.ns=falco k8s.pod=falco-7nj8b container=7d4a76ce9019 shell=sh parent=runc cmdline=sh terminal=34816 container_id=7d4a76ce9019 image=<NA>)","priority":"Notice","rule":"Terminal shell in container","source":"syscall","tags":["container","mitre_execution","shell"],"time":"2022-05-25T09:29:25.296597224Z", "output_fields": {"container.id":"7d4a76ce9019","container.image.repository":null,"evt.time":1653470965296597224,"k8s.ns.name":"falco","k8s.pod.name":"falco-7nj8b","proc.cmdline":"sh","proc.name":"sh","proc.pname":"runc","proc.tty":34816,"user.loginuid":-1,"user.name":"root"}}
falco-7nj8b falco {"output":"09:29:30.636671123: Notice A shell was spawned in a container with an attached terminal (user=root user_loginuid=-1 k8s.ns=falco k8s.pod=falco-7nj8b container=7d4a76ce9019 shell=sh parent=runc cmdline=sh terminal=34816 container_id=7d4a76ce9019 image=<NA>)","priority":"Notice","rule":"Terminal shell in container","source":"syscall","tags":["container","mitre_execution","shell"],"time":"2022-05-25T09:29:30.636671123Z", "output_fields": {"container.id":"7d4a76ce9019","container.image.repository":null,"evt.time":1653470970636671123,"k8s.ns.name":"falco","k8s.pod.name":"falco-7nj8b","proc.cmdline":"sh","proc.name":"sh","proc.pname":"runc","proc.tty":34816,"user.loginuid":-1,"user.name":"root"}}
falco-7nj8b falco {"output":"09:29:33.847351643: Notice A shell was spawned in a container with an attached terminal (user=root user_loginuid=-1 k8s.ns=falco k8s.pod=falco-7nj8b container=7d4a76ce9019 shell=sh parent=runc cmdline=sh terminal=34817 container_id=7d4a76ce9019 image=<NA>)","priority":"Notice","rule":"Terminal shell in container","source":"syscall","tags":["container","mitre_execution","shell"],"time":"2022-05-25T09:29:33.847351643Z", "output_fields": {"container.id":"7d4a76ce9019","container.image.repository":null,"evt.time":1653470973847351643,"k8s.ns.name":"falco","k8s.pod.name":"falco-7nj8b","proc.cmdline":"sh","proc.name":"sh","proc.pname":"runc","proc.tty":34817,"user.loginuid":-1,"user.name":"root"}}

Would appriciate any help figuring out why this log shows up multiple times.

/remove-lifecycle stale

Is there a solution yet?

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

@poiana: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/reopen
I still see the same issue on AKS. Is there a solution for this?

@lyubomirk: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to this:

/reopen
I still see the same issue on AKS. Is there a solution for this?

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Update to Baselibs 7.24.0 and MAPL 2.46.1 for Spack Build support

This is a companion to:

https://github.com/GEOS-ESM/MAPL/pull/2682
https://github.com/GEOS-ESM/ESMA_cmake/pull/354

where we are trying to get the ESMF::ESMF target working for Spack builds.
This has the following updates:

Update to ESMA_env v4.29.0 → Baselibs 7.24.0 (ESMF 8.6.1b04)
Update to MAPL 2.46.1 → (Many updates from MAPL 2.45, update FindESMF.cmake for spack)

In Baselibs-style GEOSgcm runs, this is zero-diff in all testing.

Craaaaap! Why is CI unhappy?!

Thanks!
There will need to be a follow-up PR for the ESMA_cmake update in https://github.com/GEOS-ESM/ESMA_cmake/pull/377. After that, we need to retest one last time (knock on wood) with JEDI and hopefully we can put a tag on GEOSgcm!


[BUG] editable installation - problem to find package members

setuptools version
75.1.0
Python version
3.12.7
OS
debian boookworm
Additional environment information
Project structure:
.
├── Dockerfile
└── foo
    ├── foo
    │   ├── bar.py
    │   └── __init__.py
    └── pyproject.toml

./Dockerfile:
FROM python:3.12-slim-bookworm
WORKDIR /app
RUN pip install -U pip jupyterlab
COPY foo foo
RUN cd foo && pip install -e . && cd ..
EXPOSE 8888
CMD [ "jupyter", "lab", "--allow-root", "--ip", "<IP_ADDRESS>", "--port", "8888",  "." ]

./foo/foo/bar.py:
class A: pass

./foo/foo/__init__.py:
from foo.bar import A
__all__ = ["A"]  # same behavior whether this line is there or not

./foo/pyproject.toml:
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "foo"
version = "0.1.0"
authors = [{ name = "me", email =<EMAIL_ADDRESS>}]
description = "foo"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
    "numpy>=1.26",
]
[tool.setuptools.packages]
find = {}

Description
If I use pip install . works well, but pip install -e . doesn't:
from foo import A

Expected behavior
Import should be passed.
How to Reproduce
docker build -t foo .
docker run --rm -it -p 8888:8888 foo

Output
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[1], line 1
----> 1 from foo import A

ImportError: cannot import name 'A' from 'foo' (unknown location)

Hi @vanheck :
Could you please try these 2 things:

Ensure that your reproducer is using the latest version of setuptools available on PyPI.
Ensure that you are not calling the script from a directory that contains a folder with the same name of your packages (see docs in https://setuptools.pypa.io/en/latest/userguide/development_mode.html#limitations, especially the penultimate item).

@abravalheri ok, I added the calling script, removed jupyterlab and make sure the version of setuptools.

Aha! The parent folder must have another name and after that it works... But why? A lot of projects have the same name of git project (name of created folder after clone) as the name of installed package. It is lot of changes...

Aha! The parent folder must have another name and after that it works... But why? A lot of projects have the same name of git project (name of created folder after clone) as the name of installed package. It is lot of changes...

This is a well-known limitation of editable installs mentioned in the docs:

File system entries in the current working directory whose names coincidentally match installed packages may take precedence in Python’s import system. Users are encouraged to avoid such scenarios.

So it is not something we can really fix in setuptools.
Maybe you can get around that by carefully playing with the CWD in your Dockerfile?


[WIP] Multithreaded refactoring

Summary
Refactoring of GLVis to make it more amenable to opening multiple solutions within a single process. This avoid the need to fork in client-server mode, which may cause some issues with the native window framework on Mac OS X.
Related to #141.
Completed

Consolidates global state in aux_vis.cpp into GLVisWindow type, which handles creation of associated VisualizationScene and GLVisCommand objects
Move StreamReader functions into the object itself
Modularizes palette code into PaletteState object
Replaces pthreads in GLVisCommand with C++ standard library threads
Consolidate some shared code between threads.cpp, glvis.cpp, aux_js.cpp

See StreamState::NewMeshAndSolution, StreamState::CreateVisualizationScene

To be completed

[x] Make VisualizationScene key event handlers rely on specific instance of GLVisWindow/VisualizationScene instead of a global pointer
[ ] Modify SdlWindow to support multiple windows with single event loop
[x] Handle GLVisFont as a singleton, to avoid multiple initializations of Freetype
[ ] Replace fork() in client-server mode with opening a new GLVisWindow on a new thread

Closing in favor of #170 and #174.


Updated homework_5.sql for completion of homework 5

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Completed homework_5.sql as instructed.
What did you learn from the changes you have made?
More SQL commands.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
No.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
No.
How were these changes tested?
Verified by compare with raw data from original database.
A reference to a related issue in your repository (if applicable)
Not applicable.
Checklist

[ ] I can confirm that my changes are working as intended

HW5 marked.


Non-button popover trigger doesn't close popover when in a modal dialog

Bug report
Current Behavior
When the non-button (div, span) popover trigger is in a modal dialog, first click will open the popover but the second click doesn't close it. For button triggers or outside of the modal it works fine.
https://user-images.githubusercontent.com/179219/223143464-1f0b3093-8c1d-431c-80c2-5e26e4ca01d6.mp4
Expected behavior
Second click to any popover trigger should close the popover even if it is in the modal dialog.
Reproducible example
https://codesandbox.io/p/sandbox/agitated-leakey-ztzp4f?file=%2FApp.jsx
Your environment

Software
Name(s)
Version

Radix Package(s)
@radix-ui/react-dialog
1.0.2

@radix-ui/react-popover
1.0.4

I don't know why the behavior is different in dialog but why you want the trigger to be a div? it must be a button otherwise  it isn't possible to navigate with tabs, open with Space or Enter

I don't know why the behavior is different in dialog but why you want the trigger to be a div?

@joaom00 I'd like to have o popover over highlighted word in a text, so actually over span.

What you can do (I don't know why this works :sweat_smile:) is set tabIndex="0" in the div and it seems to work

As @joaom00 pointed out I think that's outside of the scope given it should be a button anyway.


Change upload symbol input file list environment config variable

dSYM upload script not working with XCode 15 archive, inspected derived data a bit. When archive a build, your application binary has an alias under $(BUILT_PRODUCTS_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH), but the real application binary is created within a folder called InstallationBuildProductsLocation/ and it gets deleted once your application finishes build. Change directory from BUILT_PRODUCTS_DIR to TARGET_BUILD_DIR to get correctly binary path.

Build:

Archive:

The changes look good to me. I assume this is broken only starting XCode 15. Have been able to validate this change on older XCode versions? Basically looking for the availability of the TargetBuildDir in the previous versions of XCode.

Yes, I checked XCode 14.3.1 and the change does not break the previous version. In fact the current implementation does not work on previous version either if you have user run script sandboxing enabled


name-version split isn't correct for unstable packages

goat has version unstable-2022-08-15, but the unstable part is used as part of name in the search. This applies to many/all packages that adhere to the unstable versioning schema.
https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/go/goat/package.nix#L7

Never mind, the versioning is just wrong. It should be 0-unstable-2022-08-15.


ARROW-16857: [C++] Adding Project Relation ToProto

DO NOT REVIEW TILL ARROW-16855 IS MERGED
This PR includes the Project relation ToProto functionality. But this PR depends on ARROW-16855 so please do not review until it is merged.

Closing this as the work is replaced by https://github.com/apache/arrow/pull/14118


Add new configuration "CONSISTENT_METHOD" to indicate which method to realize consistent snapshot 2. Repository_lib.py line 478 minor bug correction 3. Solve issue #374 https://github.com/theupdateframework/tuf/issues/374 4. Repoistory_tool.py line 791 TODO reminder for no-longer-used keys 5. Some other corrections on comments

Add new configuration "CONSISTENT_METHOD" to indicate which method to realize consistent snapshot
Repository_lib.py line 478 minor bug correction
Solve issue #374 https://github.com/theupdateframework/tuf/issues/374
Repoistory_tool.py line 791 TODO reminder for no-longer-used keys
Some other corrections on comments

Coverage remained the same at 96.302% when pulling 221eba11ec81e4aa6e7da9f16883ff1290639a91 on FelixWang1994:develop into c5fe581bcab99153a4820eadf9cced109c48d286 on theupdateframework:develop.

This PR doesn't contain the changes for items 1-3 that were listed in the summary.

Sorry about the missing files. Has committed again.

Coverage decreased (-0.06%) to 96.239% when pulling 6f0e4f97ef8599a81443ff4265e16d32049be329 on FelixWang1994:develop into c5fe581bcab99153a4820eadf9cced109c48d286 on theupdateframework:develop.

Coverage decreased (-0.06%) to 96.239% when pulling 6f0e4f97ef8599a81443ff4265e16d32049be329 on FelixWang1994:develop into c5fe581bcab99153a4820eadf9cced109c48d286 on theupdateframework:develop.

I'm not sure about the process or steps in our lab. I find a few more possible bugs, should I continue discussion under this issue or I report to you in person or I discuss with you by email?

Your changes have been merged in #385