error start zap-cli

thank you for your reply and work
I updated with git and zap zap-cli and reinstall everything
I still encounter errors
zap-cli --zap-path /usr/local/bin/ --api-key 12345 quick-scan --self-contained -o '-config api.key=12345' -s xss http://<IP_ADDRESS>/
[INFO] Starting ZAP daemon
[ERROR] ZAP was not found in the path "/usr/local/bin/". You can set the path to where ZAP is installed on your system using the --zap-path command line parameter or by default using the ZAP_PATH environment variable.
zap-cli --api-key 12345 quick-scan --self-contained -o '-config api.key=12345' -s xss http://<IP_ADDRESS>/
[INFO] Starting ZAP daemon
[ERROR] ZAP was not found in the path "/zap". You can set the path to where ZAP is installed on your system using the --zap-path command line parameter or by default using the ZAP_PATH environment variable.
root@fakessh:~# ls -alih /usr/local/bin/zap*
38016989 -rwxr-xr-x 1 root staff 214 mai 31 16:24 /usr/local/bin/zap
38020954 -rwxr-xr-x 1 root staff 298 mai 31 15:23 /usr/local/bin/zap-cli
there are still errors that prevented the operation

On Linux, zap-cli currently looks for a file named zap.sh rather than just zap in the ZAP path directory, to match what exists when you unpack the ZAP archive.
Was ZAP installed via a package manager? If so, it looks like /usr/local/bin/zap just forwards commands to /usr/share/zaproxy/zap.sh. So, you could try pointing --zap-path to /usr/share/zaproxy. i.e.
zap-cli --zap-path /usr/share/zaproxy --api-key 12345 quick-scan --self-contained -o '-config api.key=12345' -s xss http://<IP_ADDRESS>/

Does that work for you?

it is work thanks you


Bundling drivers?

Hi there. It looks like you have started to do in C++ what I was going to do with bash and xboxdrv. I'm going to back you as much as I can on this and I'll start with testing and making drivers, but I am very uncomfortable with C++ so I can't hack on the codebase much, if at all.
So one thing I want to look into is possibly bundling pre-made drivers with the codebase such that users can get their controllers to mimic x360 controllers and work with Unity and SDL2 games out of the box without having to make their own molten or SDL2 mappings. Is this something you'd be interested in doing?
If so, I can get access to a wide variety of controllers due to my proximity to an arcade; expect me to contribute a buttload of fight sticks and adapters. I have a few such controllers in my own possession.

Yes, I would like to bundle drivers, and that'll be more likely once some internals are cleaned up and a nice ABI forms such that drivers can be compiled separately.
Testing on a variety of input devices is always welcome. I have only a small collection.
Are you aware of the gendev functionality here? What is needed is just a .cfg file to describe the device, no C++ required. As long as the device doesn't need fancy features, that should be all it takes. In this case, the matter is just bundling those files.
https://github.com/jgeumlek/MG-Files
I have a separate repo for those (pretty bare right now), and contributions/pull requests to that repo are quite welcome.

I've read the docs; I know I'll just be making .cfg files. I just can't contribute to the internals.
I'll fork that repo and make pull requests for the gendev configs I make. :)

That sounds great! Sorry about the confusion.

No problem, man.


Remove expiration times

Is it possible to limit the available paste expiration times?
For example, removing Expires: Never option.
Having the ability to change the default would be great as well

Is it possible to limit the available paste expiration times?

Just click on the dropdown menu :)

Having the ability to change the default would be great as well

that is not configurable now, however PR's are welcome


Add backtrace

Merge after #2229

Doesn't the initialiser to Application already install Backtrace as the first thing it does? Surprised (given the issue this supposedly addresses) that moving this forward two lines of code has such a dramatic impact.

Doesn't the initialiser to Application already install Backtrace as the first thing it does? Surprised (given the issue this supposedly addresses) that moving this forward two lines of code has such a dramatic impact.

Ah, is Backtrace already a dependency? Just realised Package.resolved didn’t change.

Yup - Vapor itself adds it. They set it up right at the beginning 👍
(just checked because this PR thought they changed it aha)

Sadly this is not fixing #2227 then. I'm not sure why the backtrace didn't show up in the logs.

Thanks for spotting this, James!


configurable filesystem name

It would be nice if one can configure the name of the "device" as shown in /proc/mounts.
It can be the same as -label by default if it is given, else the parameter of -name, -devname (something like it) option.
It is useful to set a dev name containing ":", it tells the legacy programms (eg. df) that it is a remote filesystem.

Ok, it is done by fuse:
google-drive-ocamlfuse -o fsname=gdrive:mygooglename mountpoint


Modal, lossless lexer

Thanks to u/oilshell for reintroducing me to this idea
https://www.reddit.com/r/ProgrammingLanguages/comments/8akxie/what_sane_ways_exist_to_handle_string/dwzhpis/
I'd seen lexer modes in ANTLR before, but hadn't ever really internalized what they were for. The answer: this. Two distinct lexer grammars in one source.
This also makes the tokens produced once again lossless and actually zero-copy (thanks nom!), so building up a LST from here should be plausible.

Other commit bumps pinned rustc, which is the issue here. Should be good to pull after that merges.
bors: r+

bors: r-
I'll fix the conflict

(Should probably have been a rebase but w/e I just want to get this merged)
bors: r+


Support Multi-Case Switch Statements with the "Convert to switch expression" VScode code action

Note: I originally raised this issue in dart-code, and was directed to raise it here.
There's a neat code action to convert switch statements into expressions that take advantage of Dart 3's pattern matching:

Unfortunately, it does not work with switches with multiple cases giving the same return value:

It would be nice to be able to convert a multi-case switch like the following:
String myMultipleReturnEnumStatement(MyEnum enumVal) {
  switch (enumVal) {
    case MyEnum.first:
    case MyEnum.second:
    case MyEnum.third:
      return 'first, second, or third';
    case MyEnum.fourth:
    case MyEnum.fifth:
      return 'fourth or fifth';
    default:
      return 'default';
  }
}

into:
String myMultipleReturnEnumStatement(MyEnum enumVal) {
  return switch (enumVal) {
    MyEnum.first || MyEnum.second || MyEnum.third => 'first, second, or third',
    MyEnum.fourth || MyEnum.fifth => 'fourth or fifth',
    _ => 'default',
  };
}

I published a custom extension  that supports this behavior, however, if it would be useful to enough people, it might be nice to have this behavior supported in the basic Dart VS code functionality.

Dart version: 3.0.6
Flutter SDK: 3.10.6

That's very cool! And this is definitely the right issue tracker.
I'd love to see our support extended to cover this case, and I expect that it wouldn't be too difficult to do.


adding note about v2 implementation

related to MSIT incident

Docs Build status updates of commit 1ac3730:
:bulb: Validation status: suggestions

File
Status
Preview URL
Details

articles/active-directory/hybrid/how-to-connect-group-writeback-v2.md
:bulb:Suggestion

Details

articles/active-directory/hybrid/how-to-connect-group-writeback-v2.md

Line 67, Column 53: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: /graph/api/group-get?tabs=http&view=graph-rest-beta
Line 82, Column 88: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: /graph/api/resources/directorysetting?view=graph-rest-beta
Line 100, Column 67: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: /Exchange/plan-and-deploy/prepare-ad-and-domains?view=exchserver-2019#how-do-you-know-this-worked
Line 110, Column 23: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: /Exchange/plan-and-deploy/prepare-ad-and-domains?view=exchserver-2019

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@billmath

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@billmath, can you advise on the branch conflict? Is the current version the one that cites the version number? I can't find when this was changed. Thanks.

Learn Build status updates of commit 575c881:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit c7a9ee8:
:bulb: Validation status: suggestions

File
Status
Preview URL
Details

articles/active-directory/hybrid/how-to-connect-group-writeback-v2.md
:bulb:Suggestion

Details

articles/active-directory/hybrid/how-to-connect-group-writeback-v2.md

Line 54, Column 86: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: /graph/api/group-get?tabs=http&view=graph-rest-beta
Line 70, Column 83: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: /graph/api/resources/directorysetting?view=graph-rest-beta
Line 87, Column 67: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: /Exchange/plan-and-deploy/prepare-ad-and-domains?view=exchserver-2019#how-do-you-know-this-worked
Line 95, Column 315: [Suggestion: preserve-view-not-set - See documentation] You've pinned this link to a specific version of content with the view parameter. It's recommended not to pin a version unless that version is A) not the default view and B) the context is about that version specifically. To proceed with pinning a version add the &preserve-view=true to the URL.  Otherwise, remove the view parameter. URL: /Exchange/plan-and-deploy/prepare-ad-and-domains?view=exchserver-2019
Line 126, Column 9: [Suggestion: docs-link-absolute - See documentation] Absolute link 'https://docs.microsoft.com/exchange/recipients-in-exchange-online/manage-distribution-groups/manage-distribution-groups' will be broken in isolated environments. Replace with a relative link.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Build error in TensorMath.lua: "attempt to call method 'registerDefaultArgument' (a nil value)"

Hi there,
I'm currently struggling to build cutorch on Ubuntu 14.04 (CUDA 6.5, GCC-4.8.2). I'm hitting a build error in TensorMath.lua:
/home/alistair/torch/install/bin/luajit: /tmp/luarocks_cutorch-scm-1-9849/cutorch/TensorMath.lua:184: attempt to call method 'registerDefaultArgument' (a nil value)
stack traceback:
        /tmp/luarocks_cutorch-scm-1-9849/cutorch/TensorMath.lua:184: in main chunk
        [C]: at 0x00406170
make[2]: *** [TensorMath.c] Error 1
make[1]: *** [CMakeFiles/cutorch.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.

The full build log is below. Any thoughts on what might cause this?
Cheers,
Alistair
~$ luarocks install cutorch
Installing https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... switching to 'build' mode
Cloning into 'cutorch'...
remote: Counting objects: 52, done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 52 (delta 4), reused 25 (delta 4)
Receiving objects: 100% (52/52), 62.89 KiB | 0 bytes/s, done.
Resolving deltas: 100% (4/4), done.
Checking connectivity... done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/alistair/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/alistair/torch/install/lib/luarocks/rocks/cutorch/scm-1" && make

-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Torch7 in /home/alistair/torch/install
-- Found CUDA: /usr/local/cuda (found suitable version "6.5", minimum required is "5.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_cutorch-scm-1-9849/cutorch/build
[  7%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir//./THC_generated_THC.cu.o
CMake Warning at /usr/share/cmake-2.8/Modules/FindCUDA/make2cmake.cmake:66 (message):
   Removing non-existent dependency file: generic/THStorage.h

CMake Warning at /usr/share/cmake-2.8/Modules/FindCUDA/make2cmake.cmake:66 (message):
   Removing non-existent dependency file: generic/THStorageCopy.h

CMake Warning at /usr/share/cmake-2.8/Modules/FindCUDA/make2cmake.cmake:66 (message):
   Removing non-existent dependency file: generic/THTensor.h

CMake Warning at /usr/share/cmake-2.8/Modules/FindCUDA/make2cmake.cmake:66 (message):
   Removing non-existent dependency file: generic/THTensorCopy.h

CMake Warning at /usr/share/cmake-2.8/Modules/FindCUDA/make2cmake.cmake:66 (message):
   Removing non-existent dependency file: generic/THTensorRandom.h

CMake Warning at /usr/share/cmake-2.8/Modules/FindCUDA/make2cmake.cmake:66 (message):
   Removing non-existent dependency file: generic/THTensorMath.h

CMake Warning at /usr/share/cmake-2.8/Modules/FindCUDA/make2cmake.cmake:66 (message):
   Removing non-existent dependency file: generic/THTensorConv.h

CMake Warning at /usr/share/cmake-2.8/Modules/FindCUDA/make2cmake.cmake:66 (message):
   Removing non-existent dependency file: generic/THTensorLapack.h

Scanning dependencies of target THC
[ 15%] Building C object lib/THC/CMakeFiles/THC.dir/THCGeneral.c.o
[ 23%] Building C object lib/THC/CMakeFiles/THC.dir/THCStorage.c.o
[ 30%] Building C object lib/THC/CMakeFiles/THC.dir/THCStorageCopy.c.o
[ 38%] Building C object lib/THC/CMakeFiles/THC.dir/THCTensor.c.o
[ 46%] Building C object lib/THC/CMakeFiles/THC.dir/THCTensorCopy.c.o
Linking CXX shared library libTHC.so
[ 46%] Built target THC
[ 53%] Generating TensorMath.c
/home/alistair/torch/install/bin/luajit: /tmp/luarocks_cutorch-scm-1-9849/cutorch/TensorMath.lua:184: attempt to call method 'registerDefaultArgument' (a nil value)
stack traceback:
        /tmp/luarocks_cutorch-scm-1-9849/cutorch/TensorMath.lua:184: in main chunk
        [C]: at 0x00406170
make[2]: *** [TensorMath.c] Error 1
make[1]: *** [CMakeFiles/cutorch.dir/all] Error 2
make: *** [all] Error 2

Error: Build error: Failed building.

The easiest way to fix this is to run install.sh script from distro again

OK, I just tried that and I'm getting the same build error in the output of the install script. What do you think is the root cause of this?

ah, distro doesn't update packages any more, you have to update the distro folder with git pull origin master and then ./install.sh

Still no joy - I hit the same build error in cutorch when running install.sh even after a git pull origin master && git reset --hard HEAD

the issue here is an outdated cwrap package.
registerDefaultArgument was introduced by @dominikgrewe in this commit: https://github.com/torch/cwrap/commit/48bbfeeb65d46160370e4ee6ff2d551543eec562
However, you seem to have an outdated cwrap. If you installed fresh from distro, cwrap will install fresh and updated.

I just removed ~/torch and reinstalled torch and its dependencies from scratch, following the instructions here. I see the same build error in the output of install.sh, and when I subsequently try to install cutorch using luarocks install cutorch.
I've also tried manually pulling the latest version of cwrap from the Github repository (SHA-1: 6b7bb2a9f7a002e50b6d1dfc3e653ecdf4c01f4a), then calling luarocks install rocks/cwrap-scm-1.rockspec. This seems to work fine, but when I subsequently try building cutorch it still fails with the same build error (I've also tried manually pulling the latest cutorch source and manually installing it in the same way, and I get the same error).
I'm very new to Lua, so perhaps I'm missing something obvious about how Lua package management works?

Do you maybe have two versions of cwrap installed (one local and one global)?
You can list all installed packages by calling "luarocks list". If you see cwrap twice, try removing both installation and then installing it again.

@dominikgrewe That doesn't seem to be the case:
~$ luarocks list

Installed rocks:
----------------

argcheck
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

audio
   0.1-0 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

cwrap
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

dok
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

env
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

fftw3
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

gnuplot
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

graphicsmagick
   1.scm-0 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

image
   1.1.alpha-0 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

itorch
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

lbase64
   20120820-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

lua-cjson
   2.1.0-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

luafilesystem
   1.6.3-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

lzmq
   0.4.2-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

nn
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

nnx
   0.1-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

optim
   1.0.5-0 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

paths
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

penlight
   1.3.1-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

qtlua
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

qttorch
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

sdl2
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

signal
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

sundown
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

sys
   1.1-0 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

threads
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

torch
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

trepl
   scm-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

uuid
   0.2-1 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

xlua
   1.0-0 (installed) - /home/alistair/torch/install/lib/luarocks/rocks

OK, finally figured it out. I did, in fact, have another global version of cwrap installed in /usr/local/share/lua/5.1/cwrap/. Deleting it fixed the build error, even though the global version of cwrap was not listed in the output of luarocks list.
Thanks for your patience!


Width does not go up to 100% when using aspect ratio

This is not a huge problem in my case, but it's bugging me =)
When an aspect ratio is set (for example 16/9), the width will not go up to 100% when you maximize the crop area. Instead I get values like 99.999999999... I'm guessing the height has a higher priority in the aspect-ratio-check or something?

This is probably a browser rounding issue - the nice thing about percentages is that they're responsive, but unfortunately the browser sometimes doesn't perfectly do it. Anyway I'll check to verify but I have a feeling there's nothing that can be done (except maybe rounding up if it looks like it should be doing it)

Yeah, I was using Chrome earlier but I just tested in Safari and it rounds to 100.


Generate Code for Action Serialization

Currently a lot of boilerplate code is required in order to turn typed actions into serializable actions of type Action. Developers need to implement the ActionConvertible and ActionType protocols manually, e.g.:
struct CreateContactFromEmail {
    static let type = "CreateContactFromEmail"
    let email: String

    init(_ email: String) {
        self.email = email
    }
}

extension CreateContactFromEmail: ActionConvertible, ActionType {

    init(_ action: Action) {
        self.email = action.payload!["email"] as! String
    }

    func toAction() -> Action {
        return Action(type: CreateContactFromEmail.type, payload: ["email": email])
    }
}

For most actions this could can and should be generated automatically. Using SourceKitten this should be fairly straightforward.

This issue is now handled in this separate repo: https://github.com/Swift-Flow/Code-Generation

So much has happened, I think we can safely close this :)


[Code health] Rename members of LocalDataStore classes

To improve readability, recommending the following changes to LocalDataStore. Sharing initial thoughts here:

surveyStore -> surveys
userStore -> users
etc.

Then, in each local data store, functions can exclude the qualifier (survey, locationOfInterest, etc), since they data store name already qualifies them. Also, we should be consist and use meaningful verbs to clarify what each fun does. For ex, in LocalSurveyStore:

surveys() -> loadAll()
getSurveyById() -> loadById()
etc

Lastly, replace surveyDataStore alias with direct reference to localDataStore.surveys to remove ambiguity.
Example usage:

localDataStore.surveys.loadAll()

@scolsen Wdyt?

removing the redundancy sgtm -- I suggest we be more explicit about load ops though. Room basically has two types of operations:

Load and stream changes on all updates
Single-shot load (don't stream subsequent changes)

The first one can be further tweaked by using distinctUntilChanged. By default, the stream will emit a new item whenever the underlying table changes at all. Using distinctUntilChange alters the behavior so that it only emits when the dataset that's actually in the stream (e.g. filtered by id etc.) changes and not on all table changes.
wdyt about:

loadBy<x> -- for single shot retrieval (e.g. Single, Maybe, Suspend fun (for coroutines)).
loadAllAndStream -- for load + stream on any table change (e.g. Flowable, Flow<> (coroutines)).
loadAllAndStreamUpdates-- for load + stream only on relevant data changes (distinct until changed)

Along similar lines, I wanted to refactor the stores into a general interface of load operations -- but at the moment this isn't really feasible since loads require different sorts of arguments -- it might be more possible as we merge repositories and (e.g.) no longer need to pass both a survey and ID for LOIs, for instance (instead we can have a generic loadById)

Sgtm! Not sure we need to distinguish between loadAllAndStream  and loadAllAndStreamUpdates, since I don't think there are any cases where want to emit values on non-changes; all our uses would end up being loadAllAndStreamUpdates.

Along similar lines, I wanted to refactor the stores into a general interface of load operations

I think this is expected and acceptable, since we have different needs from each entity store. A common interface might also introduce methods that we don't need, and wouldn't offer any functional benefits since we never treat different entity stores polymorphically (e.g., load all the entities from store X).

sgtm! I like the policy of just streaming updates -- we'll have to make sure all our DAO streams have distinctUntilChanged (at least for coroutines, i forget off the top of my head if the RX variants work the same but I assume they do)

sgtm! I like the policy of just streaming updates -- we'll have to make sure all our DAO streams have distinctUntilChanged (at least for coroutines, i forget off the top of my head if the RX variants work the same but I assume they do)

Room doesn't do that for us, at least when we're fetching the full entity rather than specific fields? If not, what does it mean for a table to be changed?

At least for the coroutines Flow impl, Room will re-emit on any table state change (update/delete/insert):

Whenever any changes are made to the table, independent of which row is changed, the query will be re-triggered and the Flow will emit again. So if Frida gets updated, we will receive the latest info.
However, this behaviour of the database also means that if we update an unrelated row, like Bandit, our Flow will emit again, with the same result: (Frida, 11, 3). Because SQLite database triggers only allow notifications at table level and not at row level, Room can’t know what exactly has changed in the table data, therefore it re-triggers the query defined in the DAO. In your code, use Flow operators like distinctUntilChanged, to ensure that you only get notified when the data you’re interested in has changed:

(https://medium.com/androiddevelopers/room-flow-273acffe5b57)
Unfortunately the RX Java article on Room doesn't include these details, but I wouldn't be surprised if it worked the same way for Flowable. So, if we only want re-emissions to happen when the row we're interested in is updated, we need to call distinctUntilChanged.

Interesting, thanks for clarifying!

Closing in favor of more conservative #1491.


Run go mod tidy

This pull request should unblock https://github.com/transparency-dev/witness/pull/260.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 33.45%. Comparing base (3c58af4) to head (d09f855).
Report is 99 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #262       +/-   ##
===========================================
- Coverage   51.05%   33.45%   -17.60%
===========================================
  Files          11       23       +12
  Lines         903     1375      +472
===========================================
- Hits          461      460        -1
- Misses        374      820      +446
- Partials       68       95       +27

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

Unfortunately it doesn't unblock #260. Got to bump the Go version to 1.22.0.


Stable Diffusion V2 with torch FX

Created a new example notebook which Converts the unet model to an Fx graph and quantized it.

@anzr299, let's finish this notebook up!
As it was found by a performance check, unet should work ok in following conditions:

Use torch.compile(..., backend="openvino") directly on the torch module (do not use torch.torch.export)
Use ignored scope https://github.com/openvinotoolkit/nncf/pull/2899/files#diff-f5b33dbdaa67dba685ea98a6e1e0d832b09d6fa993aed4c0aefff18a1e1530edR63-R66 because some linear layers cause a error
Most important - disable nncf patching, as it ruins model performance significantly. To do so you can call unpatch_torch_operators https://github.com/openvinotoolkit/nncf/blob/develop/nncf/torch/dynamic_graph/patch_pytorch.py#L434-L440 at the beginning of the notebook

As my tests shows, int8 version of unet is indeed faster, we could showcase that

@anzr299, let's finish this notebook up! As it was found by a performance check, unet should work ok in following conditions:

Use torch.compile(..., backend="openvino") directly on the torch module (do not use torch.torch.export)
Use ignored scope https://github.com/openvinotoolkit/nncf/pull/2899/files#diff-f5b33dbdaa67dba685ea98a6e1e0d832b09d6fa993aed4c0aefff18a1e1530edR63-R66 because some linear layers cause a error
Most important - disable nncf patching, as it ruins model performance significantly. To do so you can call unpatch_torch_operators https://github.com/openvinotoolkit/nncf/blob/develop/nncf/torch/dynamic_graph/patch_pytorch.py#L434-L440 at the beginning of the notebook

As my tests shows, int8 version of unet is indeed faster, we could showcase that

Yeah I did suspect point #2 since it was always the linear layers which caused the issue but could not find out why it does that. About point #1, are we not supposed to use torch.compile with torch fx models then?

Please do

capture_pre_autograd_graph to capture the GraphModule
Quantize model with the ignored scope
Compile it the same way it done for fp32 model (torch.compile(..., backend="openvino"))

Please do

capture_pre_autograd_graph to capture the GraphModule
Quantize model with the ignored scope
Compile it the same way it done for fp32 model (torch.compile(..., backend="openvino"))

Alright


How to  prevent a from entering text in Reactive Text Input with number validation

Hi Pablo, apart from showing an error message, is there a way I can prevent a person from entering text in the ReactiveTextInput when validating a field for only numbers. Thanks

Subscribe on field changes, save prev value and in case if next value is not valid reset back to prev

Thanks @vasilich6107 .

Hi @krista30,
Another way to prevent input from the user in a Text Field is using TextInputFormatter


Implement delegates to generic virtual methods

Turns out I got most of this right in #3318. At that time I saw RyuJIT
crashing but didn't have a checked version of it handy. Turns out it was
just an eager assert that is easy to subdue.
Fixes #2796.

@davidwrighton PTAL


Documentation updates

These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later

Looks good to me, just the one comment for your consideration.

Turns out I may not have documented the load_abs_from


black text on black background

looking at your dialog, i cannot see the text i type into the Data text box unless i highlight it

use whatever sets the text colour for the other controls; that seems to be ok.

Hi,
Your dark background appears to be from another system/module.
I'll look into ensuring the CSV input works the same as the other inputs though, thanks for the feedback!

the only module i have on for the repro is yours

I can assure you the background is not from EasyTable, it's likely your system. Regardless, I'll take a look

Confirmed that this is an issue with the 3.5e system.
The system sets the background, and changes the other inputs to white. However, it does not update textarea elements.

Spoke with Rughalt, the 3.5e SRD system creator. He's going to take a look at the CSS rules at some point.

I have also set these textareas color to unset, which should fix this for most systems that don't change textarea, but make changes to other text elements.
Will be added in the next release, thanks for the feedback.


[EN X-SAMPA] Vowel fallback bug fix (Teto-related)

It has come to my attention that I accidentally removed a Teto-specific vowel fallback some time ago (where any instance of V when combined with b will fall back to @). This PR fixes this and re-implements the fallback.

I'm currently fixing those; I did not add that specific code, but I just noticed this today.


Terms of Service

While I really like the idea of @yii-bot, I am afraid its operation is breaching §A.2 of GitHub's Terms of Service. I advise the immediate deactivation.

oops. I have seen others implementing bots for sending pull requests and stuff, e.g. adding batches. Will check it. Thanks for noticing this.

e.g. https://github.com/gitter-badger?tab=activity

another one: https://github.com/travisbot?tab=activity

Heh, I thought travisbot had been deactivated a long time ago. Btw, this is nothing new and the reason, why travisbot actually got replaced by a service-/webhook.

Imo as this bot acts in a limited environment (only on the yiisoft repos) and all actions are triggered by human interaction from repository admins (adding labels to issues) its fine to keep him. Its a completely different category than the bots that open pull requests on repos where their program logic decided that that may be useful.

Actually this bot works via webhooks.

We could re-write the bot to always act in the name of the person who added the label.
Therefor for each person there needs to be an api access token.

Woks fine now. I'm closing this issue until @yii-bot gets banned

New Terms of service explicitly allow these kind of accounts: https://help.github.com/articles/github-terms-of-service-draft/#2-account-requirements


Ran out of input

Thanks for your work. I'm struggling for days with this error. Can you please provide some solutions to overcome it.
(base) root@78845bc2a82a:/mmdetection/Tevit# python tools/test_vis.py configs/tevit/tevit_msgshift.py  checkpoint/tevit_r50.pth
load checkpoint from local path: checkpoint/tevit_r50.pth
Traceback (most recent call last):
File "tools/test_vis.py", line 137, in
main(args)
File "tools/test_vis.py", line 54, in main
cfg_options=args.cfg_options)
File "/opt/conda/lib/python3.7/site-packages/mmdet/apis/inference.py", line 45, in init_detector
checkpoint = load_checkpoint(model, checkpoint, map_location='cpu')
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 581, in load_checkpoint
checkpoint = _load_checkpoint(filename, map_location, logger)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 520, in _load_checkpoint
return CheckpointLoader.load_checkpoint(filename, map_location, logger)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 285, in load_checkpoint
return checkpoint_loader(filename, map_location)
File "/opt/conda/lib/python3.7/site-packages/mmcv/runner/checkpoint.py", line 302, in load_from_local
checkpoint = torch.load(filename, map_location=map_location)
File "/opt/conda/lib/python3.7/site-packages/torch/serialization.py", line 585, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/opt/conda/lib/python3.7/site-packages/torch/serialization.py", line 755, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input

Hi, @assia855! Thanks for your attention in our work.
It seems the error occurs when pytorch tries to load pre-trained weight, you can check if the pretrained weight is downloaded correctly.

Thanks for your feedback. Yes, I resolve this error by reloading the models now it's working fine.
How can we test and visualize the mask on one image. I'm struggling with that. Thanks a lot.


Feat: "What We've Done" - cards with images

Part of #212
This PR adds the two cards with images to the "What We've Done" section.
Builds off the branch for #220
Dev analysis of spacing and decisions to round:

Desktop non-image card
Mobile non-image card

Rebased and checked back over the spacing


Can not keep the data in the external folder

I have been trying to run the container using:
docker run --name mongo-db -d -p 27017:27017 -v  /mnt/lacie/databases/mongo/data:/data mongo
or:
docker run --name mongo-db -d -p 27017:27017 -v /mnt/lacie/databases/mongo/data/db:/data/db mongo.
Next I connect to mongodb, create a db, a collection and insert data on it.
I can stop the container docker stop, run it again docker start and all the data changes will be present in the database.
If I remove container docker rm and create new one - the data dissapear. Why and how can I fix it?

I tried the two options you show and only the second works because the VOLUME declared in the Dockerfile will be mounted on top of /data/db on the first and the write would then never go to the bind mount.
$ docker run -d --name mongo-db -v /docker/tmp/mongo/db:/data/db mongo
$ docker run -it --rm --link mongo-db:mongo mongo mongo mongo/mongo
# do some inserts in the mongo shell

$ docker stop mongo-db
$ docker rm mongo-db

$ docker run -d --name mongo-db -v /docker/tmp/mongo/db:/data/db mongo
$ docker run -it --rm --link mongo-db:mongo mongo mongo mongo/mongo
# see data that was previously inserted

Did you check the /mnt/lacie/databases/mongo/data/db directory for the db files?  Was the container able to write there?

I have been running into the same issues as @demas. I've been testing docker-compose. When I configure the mongo instance like so nothing is written into the host file system. I am using Boot2Docker-cli version: v1.5.0
db:
  image: mongo
  command: "mongod --smallfiles"
  volumes:
    - "data/db:/data/db"
  ports:
    - "27017:27017"

@FreakTheMighty i'm having the same issue here. did you find a work around?

it seems the issue was docker picking up another volume from some cache.

solved it for me

@FreakTheMighty In the boot2docker case, using data/db will use the data/db directory under pwd, which is presumably some directory under /Users. In that case, the container will see 1000:50 as the user and group ownership of that directory, which is incompatible with the mongodb user that the Mongo service in this container runs as. It will also not be able to modify the ownership with chown -R mongodb:mongodb as is attempted in the entrypoint.
If you're willing to abandon having the data directly on your host hard drive in the local data/db directory, you should be able to get things working by doing something like "/mnt/sda/var/lib/mongo-data:/data/db" for your volume mount. This will use the b2d data disk instead of your local disk.
Beware that if you do this, you will be using the same disk space for Docker images and your Mongo data. If you want to avoid that issue, you'd need to add a separate data disk to your boot2docker VM.

@md5 thanks for your tips. This clarify what is happening.
I was able to get mongo data to persist within the VM, but I don't think this is a good long term solution. The issue is that when the VM goes down, the mongo database is lost. While this setup is only for development, I think it will be painful to lose state each time boot2docker goes up or down.
Would adding a separate data disk have the same short coming?

@FreakTheMighty the data shouldn't go away when b2d goes up and down, since it's stored on your data disk. Only if you actually delete the b2d VM and recreate it would the main data disk go away.

Hmm, perhaps I'm missing something, but here's the simple test that led me to that conclusion:
boot2docker ssh
sudo touch /mnt/sda/var/lib/mongo-data/persist
# exit
boot2docker restart
boot2docker ssh
ls /mnt/sda/var/lib/mongo-data/

The persist file is gone.

On my VM, that directory is /mnt/sda1, not /mnt/sda.

@md5 thank you very much, it worked! Just to be clear, how can I tell which mounts are persistent?

In 99% of b2d cases, there will only be one data disk and it will be mounted at /mnt/sda1.


update python/django support: run tests for django 2.2

Thanks @Niouby
Commited in [d261e57b28d56fb77151a918180d964843d9fc8b]
And now published on PyPi, version 1.3.3

Thanks :+1:


Update POST /api/2.0/nodes related tests to provide now required 'type' field.

This fixes three test failures related to /api/2.0/nodes requiring a type field in its POST block.
@RackHD/corecommitters
@gpaulos @stuart-stanley

+1


Page crash for some sql query

for example:
SELECT
    DATE_SUB(DATE(starred_at), INTERVAL WEEKDAY(starred_at) DAY) AS week_beginning,
    COUNT(*) as stars
FROM
    starred_repos
WHERE
    starred_at >= DATE_SUB(CURRENT_DATE, INTERVAL 30 DAY)
GROUP BY
    week_beginning
ORDER BY
    week_beginning ASC;

related to #127


chore(docs): Remove warning

You should also refactor https://github.com/Disploy/disploy/blob/560a2a99da17588f69362fe0ef87c62d0edae25a/apps/docs/docs/getting-started/cli-framework/prep-work/creating-a-new-project.md?plain=1#L9-L12 since npx is only supported now

Not sure what to do to make the command fit better, should I merge the 2 parts of the page into one?

Why was yarn/npm create removed?

It's not supported.

Is there any specific reason why?

Actually never mind, it does seem to work now. I tested it during the development of CDA, turns out yarn was just caching and an older version was published which was broken.

Resolve ci issues (I have no idea how the ci works)

It's fine, the windows CLI tests always fail on pull requests because of some caching issue I need to investigate more. And the vercel preview failed because it's using a new configuration which isn't supported in the branch of this pull request because it needs to be updated w/ upstream.


Feature: Add optional param of [,index] to node.headers.update(key, value) and node.headers.delete(key)

I'm going to submit a PR with this in just a moment

@andris9 please accept PR https://github.com/andris9/mailsplit/pull/11 and then bump version and publish to npm.  you should not need to do a major nor minor bump, a patch should work OK since this is backwards compatible.  All tests passed, and I added new tests as well.


in progress; adding go wrapper for PoloDB

wrote a simple CGO wrapper to access PoloDB with Golang; work in progress

Great!

Great!


Connection with Credential Object Fails

Reporting an Issue or Missing Feature
When connecting with a credential object, you get an error. Using -Interactive on the same machine works fine.
Expected behavior
Connection would be established.
Actual behavior
Connect-PnPOnline: Could not load file or assembly 'System.IdentityModel.Tokens.Jwt, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621)
Steps to reproduce behavior
Connect-PnPOnline -Url:"https://tenant-admin.sharepoint.com" -Credentials (Get-Credential)
What is the version of the Cmdlet module you are running?
2.1.1
Which operating system/environment are you running PnP PowerShell on?

[X] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

This cmdlet also throws the same error: Get-PnPGraphAccessToken

@danmyhre - Cannot reproduce the issue. Works fine on 2.2.1

Can't repro either , using PS 7.2.10 on Win 11.
If you have any other modules loaded, can you please remove them and try again ?
In 2.1.1 , we bumped quite a few underlying dependencies like MSAL, System.IdentityModel.Tokens.Jwt and others, maybe some other module is using an older version of these DLLs ?

Closing as we can't repro.

I am on VSCode 1.77.0
PowerShell extension v2023.3.3

@danmyhre - Those would be external dependencies that we cannot control and won't be troubleshooting VSCode nor the PowerShell Extension.
I've still done the test and again it works fine here with PowerShell Extension v2023.3.3 and VSCode 1.77.3


Deploy October 2022 publish

Learn Build status updates of commit ccf88c8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sysinternals/downloads/index.md
:white_check_mark:Succeeded
View

sysinternals/downloads/sysinternals-suite.md
:white_check_mark:Succeeded
View

sysinternals/downloads/zoomit.md
:white_check_mark:Succeeded
View

sysinternals/index.md
:white_check_mark:Succeeded
View

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


Collecting topology map data

To help UI developer better improve topology map layout. I am collecting data from the API of api/topology.
If you think the default layout can not meet the demand, please reply to this issue.

./src/routes/Dashboard/Dashboard.js
Module build failed: TypeError: Property right of AssignmentExpression expected node to be of a type ["Expression"] but instead got null
at Array.map (native)


SWOC

Issue #131

Please add the hint methods as well.

Please add the hint methods as well.

Hey, sorry I don't know that, could you help me with that?

Please add the hint methods as well.

Hey, sorry I don't know that, could you help me with that?

Sure,
Follow these steps,

Check the source code on the repo
Check our documentation site

Please add the hint methods as well.

Hey, sorry I don't know that, could you help me with that?

Sure,
Follow these steps,

Check the source code on the repo
Check our documentation site

I followed this, I'm not sure I got it right, please have a look, thank you.

@Abhijit2505 Can you take a look at this?

@Abhijit2505 Can you take a look, thank you.


add two tests

// 376, 752 can never be called because validateConfig has already deal with other data types.
// 695,707-711, 887 cannot be tested until dtToJSON is done

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+3.9%) to 96.1%

Totals

Change from base Build<PHONE_NUMBER>:
3.9%

Covered Lines:
270

Relevant Lines:
278

💛  - Coveralls


Random Double Battle: Update Cobalioin, Virizion

Random Doubles doesn't support mixed sets as well as Random Singles, so
this constrains both sets to Physical-only.

No Swords Dance on Virizion?

I'd remove Substitute and add Swords Dance. Substitute is kind of redundant with Taunt as Taunt blocks status.

Huh, why does Virizion have Taunt in the first place anyhow. Oh well


Add funding_uri to gemspec template

This PR adds funding_uri to the gemspec to help increase visibility using the bundle fund command in Bundler.
Follow on from https://github.com/dry-rb/dry-validation/pull/737

Thanks @Andrew!


Regent: Add CMake RelWithDebInfo option

It would be nice if we could do RelWithDebInfo builds with install.py/setup_env.py

That works. Thanks!


User Activities API Spec

The plan is to create a new GQL query
user_activities {
  type: "VOTE" | "CREATE_PROPOSAL" | "FOLLOW_SPACE"!
  account: string!
  timestamp: number!
  vote: Vote
  proposal: Proposal
  follow: Follow
}

Filters - account (eq), timestamp(eq, gte, let), type (eq, array-in)
Sort - timestamp
Limit (similar to what we already have)

This will allow the client to consume this API based on the type of the activity and customise the UI as the type changes.
Having separate types of vote, proposal, follow allows for future extensibility.
Common timestamp allows to sort the activities chronologically.
You cannot filter by a specific proposal / space / vote etc.

@samuveth would this allow you to work with the design?
@bonustrack @mktcode is the proposed structure good?

This is what you want: https://graphql.org/learn/queries/#inline-fragments
Example from GitHub:
query {
  repository (owner: "snapshot-labs" name: "snapshot") {
    issue (number: 2129) {
      timelineItems (first: 10) {
        nodes {
          __typename
          ... on IssueComment {
            author {
              login
            }
            body
          }
          ... on AssignedEvent {
            actor {
              login
            }
            assignee {
              __typename
              ... on User {
                login
              }
            }
          }
        }
      }
    }
  }
}

Try here: https://docs.github.com/en/graphql/overview/explorer
This would be the most "correct" way of doing it. But not sure how much that suits us. :P

@mktcode makes sense.
Couple of points.

We are mostly following subgraph conventions for pagination so we won't be doing nodes and edges.
I've used inline fragments in the past. I've found them hard to configure as well as consume.

@bonustrack what's your opinion?

I've used inline fragments in the past. I've found them hard to configure as well as consume.

Could you elaborate on that maybe? What problems did you face?

Haven't tested the filters, especially the created and type where filters and how it will work with the current code.
Haven't explored edge cases and didn't try to break the API yet.
The code is the first version and not the final code. I need some feedback before I clean it up.
The votes do not include the proposal yet and maybe other fields are also missing.

Here's the logic.
first, fetch 10-10 results from proposals and votes
and check the created of the last record for each of those lists
if we see that the created timestamp is different
then I fetch the remaining proposals/votes up till the difference timestamp
then I merge it into the original list
and return the data
Here's the link to the code. https://github.com/snapshot-labs/snapshot-hub/commit/b947b29e25eb7ce189e8066145a5a0b019f96a1c
@mktcode @bonustrack Please give feedback on the approach / optimisations etc.

This logic should be on frontend, hub API should be as light as possible and do only things thats not possible to do somewhere else. Pagination should be consistent across all GraphQL queries using "first" and "skip".

@bonustrack What do you mean with "as light as possible"? This is confusing me. Can you maybe define the exact purpose and scope of the hub? The current readme in the repo, doesn't even mention the GraphQL API.


Update readthedocs.yaml for PR

Yes, we didn't need them for when we had a read executable script already, but for things like doc generation that wants to load in the code this was causing problems.


feat(nuxt): allow experimentally marking global components as sync

🔗 Linked issue
❓ Type of change

[ ] 📖 Documentation (updates to the documentation or readme)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[x] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
In general, we want to discourage global components because it will inflate bundle size. Libraries or users could go and register all components of a ui library as global as an easy choice, with the downside of hugely inflating bundle size.
So, we would prefer if people use auto import so only what they need is required (and can be bundle-split appropriate).
When global components are used, we register them as async components and the chunks only get fetched when used.
However, there is a significant downside when these components are small and used frequently as this approach produces many small chunks. One option is to provide a custom chunk handler to rollup, though this can only really be done by an end user and not by an integration.
This PR provides an escape hatch for edge cases (like @nuxt/content) which want to register components globally and synchronously in the main bundle.
Note: Within nuxt/content, I would advise using this this an experiment only. I would prefer to see compilation of markdown into vue (or server components, or partial compilation of just the tags) so auto-import/bundle-splitting can be used rather than increasing the entry bundle size. For a large site using nuxt/content, if all components used in content across all pages are registered synchronously, I would expect to see very poor initial load performance scores.
📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

. One option is to provide a custom chunk handler to rollup, though this can only really be done by an end user and not by an integration.

I am wondering why is that? Can't module configure rollup bundler and also use magic comments to hint chunk groups?

Modules can configure rollup bundler but the function wouldn't be merged. So it would conflict with a custom chunk function provided by user. Or by another module. We could potentially provide a hook that would allow modules hooking into a single function that nuxt provides, though.

Supporting a hook to make chunk handling strategy could be nice! (webpack has a really good API too it could be unified)


Closes #274 | Create OIL data loader

Closes #274
Checkbox

[x] Confirm that this PR is linked to the dataset issue.
[x] Create the dataloader script seacrowd/sea_datasets/my_dataset/my_dataset.py (please use only lowercase and underscore for dataset naming).
[x] Provide values for the _CITATION, _DATASETNAME, _DESCRIPTION, _HOMEPAGE, _LICENSE, _URLs, _SUPPORTED_TASKS, _SOURCE_VERSION, and _SEACROWD_VERSION variables.
[x] Implement _info(), _split_generators() and _generate_examples() in dataloader script.
[x] Make sure that the BUILDER_CONFIGS class attribute is a list with at least one SEACrowdConfig for the source schema and one for a seacrowd schema.
[x] Confirm dataloader script works with datasets.load_dataset function.
[x] Confirm that your dataloader script passes the test suite run with python -m tests.test_seacrowd seacrowd/sea_datasets/<my_dataset>/<my_dataset>.py.
[x] If my dataset is local, I have provided an output of the unit-tests in the PR (please copy paste). This is OPTIONAL for public datasets, as we can test these without access to the data files.

@Enliven26 I checked the dataloader. Works fine. However, I am not sure does it fulfill the purpose of SPEECH_RECOGNITION task. Because in this dataset every audio instead of the transcript has "label" (that is just id). Maybe we need to find where transcripts are stored (they are not on hugging face) or change the task.
@jen-santoso What do you think?

Hi, may I know if the transcript is found? Thanks

@MJonibek

@Enliven26 I checked the dataloader. Works fine. However, I am not sure does it fulfill the purpose of SPEECH_RECOGNITION task. Because in this dataset every audio instead of the transcript has "label" (that is just id). Maybe we need to find where transcripts are stored (they are not on hugging face) or change the task.
@jen-santoso What do you think?

Sorry for the late notice.
I think we should try to ask the authors about the transcripts (whether they are available or not), as it is weird to have ASR task dataset without any transcriptions for the audio....
@SamuelCahyawijaya @holylovenia @sabilmakbar what do you think?
In the meantime, I will review the dataloader using the available information.

Hi, changed the citation and added the init file. Is there any other necessary changes? Thanks

@Enliven26 Thanks for the updates!
we are still currently working on finding the transcripts.
the current changes LGTM, but we will need to inform you later depending on the circumstances with the transcripts.

@Enliven26 I checked the dataloader. Works fine. However, I am not sure does it fulfill the purpose of SPEECH_RECOGNITION task. Because in this dataset every audio instead of the transcript has "label" (that is just id). Maybe we need to find where transcripts are stored (they are not on hugging face) or change the task.
@jen-santoso What do you think?

Sorry for the late notice. I think we should try to ask the authors about the transcripts (whether they are available or not), as it is weird to have ASR task dataset without any transcriptions for the audio.... @SamuelCahyawijaya @holylovenia @sabilmakbar what do you think?
In the meantime, I will review the dataloader using the available information.

I agree with you both, @jen-santoso and @MJonibek. If there's no transcription, it'd be better to change the task.

May I know to which task it is best to change?

May I know to which task it is best to change?

Good question. I tried asking the dataset owner about the transcriptions here. Could you please try to email her 3 days from now if she still hasn't responded, @Enliven26?
I don't think there's any seacrowd task we can use unless we get the transcription. Maybe we should just implement the source schema if we still can't get the transcriptions in the end. What do you think, @MJonibek @jen-santoso?

May I know to which task it is best to change?

Good question. I tried asking the dataset owner about the transcriptions here. Could you please try to email her 3 days from now if she still hasn't responded, @Enliven26?
I don't think there's any seacrowd task we can use unless we get the transcription. Maybe we should just implement the source schema if we still can't get the transcriptions in the end. What do you think, @MJonibek @jen-santoso?

May I know where I can find the email @holylovenia ? Thanks!

May I know to which task it is best to change?

Good question. I tried asking the dataset owner about the transcriptions here. Could you please try to email her 3 days from now if she still hasn't responded, @Enliven26?
I don't think there's any seacrowd task we can use unless we get the transcription. Maybe we should just implement the source schema if we still can't get the transcriptions in the end. What do you think, @MJonibek @jen-santoso?

May I know where I can find the email @holylovenia ? Thanks!

Please try with this email<EMAIL_ADDRESS>I got it from this paper.

May I know to which task it is best to change?

Good question. I tried asking the dataset owner about the transcriptions here. Could you please try to email her 3 days from now if she still hasn't responded, @Enliven26?
I don't think there's any seacrowd task we can use unless we get the transcription. Maybe we should just implement the source schema if we still can't get the transcriptions in the end. What do you think, @MJonibek @jen-santoso?

@holylovenia @MJonibek @Enliven26
In the meantime, we should just implement the source schema only for this PR...
Once we get the transcription, we can re-open (or create a new) issue.
Please let us know your opinions.

May I know to which task it is best to change?

Good question. I tried asking the dataset owner about the transcriptions here. Could you please try to email her 3 days from now if she still hasn't responded, @Enliven26?
I don't think there's any seacrowd task we can use unless we get the transcription. Maybe we should just implement the source schema if we still can't get the transcriptions in the end. What do you think, @MJonibek @jen-santoso?

@holylovenia @MJonibek @Enliven26 In the meantime, we should just implement the source schema only for this PR... Once we get the transcription, we can re-open (or create a new) issue. Please let us know your opinions.

Agreed. I added a source-only flag to the issue.

May I know to which task it is best to change?

Good question. I tried asking the dataset owner about the transcriptions here. Could you please try to email her 3 days from now if she still hasn't responded, @Enliven26?
I don't think there's any seacrowd task we can use unless we get the transcription. Maybe we should just implement the source schema if we still can't get the transcriptions in the end. What do you think, @MJonibek @jen-santoso?

@holylovenia @MJonibek @Enliven26 In the meantime, we should just implement the source schema only for this PR... Once we get the transcription, we can re-open (or create a new) issue. Please let us know your opinions.

Agreed. I added a source-only flag to the issue.

May I ask what should I do with the existing logic for the seacrowd schema? I tried removing seacrowd schema and leave only source schema but the unit test then raise a value error.
ValueError: BuilderConfig 'oil_seacrowd_sptext' not found. Available: ['oil_source']

May I know to which task it is best to change?

Good question. I tried asking the dataset owner about the transcriptions here. Could you please try to email her 3 days from now if she still hasn't responded, @Enliven26?
I don't think there's any seacrowd task we can use unless we get the transcription. Maybe we should just implement the source schema if we still can't get the transcriptions in the end. What do you think, @MJonibek @jen-santoso?

@holylovenia @MJonibek @Enliven26 In the meantime, we should just implement the source schema only for this PR... Once we get the transcription, we can re-open (or create a new) issue. Please let us know your opinions.

Agreed. I added a source-only flag to the issue.

May I ask what should I do with the existing logic for the seacrowd schema @holylovenia ? I tried removing seacrowd schema and leave only source schema but the unit test then raise a value error.
ValueError: BuilderConfig 'oil_seacrowd_sptext' not found. Available: ['oil_source']

Please review my changes on removing seacrowd schema from the dataloader, thanks! @jen-santoso @MJonibek

Thank you for the update @Enliven26! LGTM, merging now...


[IOTDB-721]First steps for isolating serialization.

In this first pull request we have extracted the methods for https://issues.apache.org/jira/browse/IOTDB-721. Created a generic interface for data serialization in tsfile and extacted the logic to separate classes.

we close and stash this.


Implement PAUSER priv levels

Add the concept of a PL0 PAUSER to the image format and expose this information to RT firmware.
Additionally, add scaffolding for a status mailbox comment to report back firmware information. For now it only reports the PL0 PAUSER.

Will there need to be a hw-model update to provide the right PAUSER eventually?

Ya. I'll do this in a follow-up PR


[Interpreter] Conflicting assignment panic message improvement

This PR attempts to improve upon the current panic message in the interpreter that happens when conflicting assignments are detected.
Example output for iter_mult issue addressed in #574:
thread 'main' panicked at '[interpret_group]: multiple assignments to one port: fsm.in
Between assignments [ fsm.in = fsm.out == 4'd2 & !cs_wh.out & go ? 4'd11; ] and [ fsm.in = fsm.out == 4'd2 & go ? 4'd3; ]', interp/src/interpreter/interpret_group.rs:86:21

@yn224 @EclecticGriffin is this ready to merge?

LGTM


What line is Tremolo

I was going through the variable descriptions in
etc/codes.csv & etc/variables.csv
line 30 has descriptions for tremolo but in the variables file Tremolo is line 31.
Do we know which is correct?

No it hadnt been fixed - but I have done it now.
When changing files using the web browser, make sure you commit the change with a message saying what was changed at the bottom.

Ok, thank you! I must have just done the first step but not committed it.

No probs! You can think of commiting as saving effectively.


fix: escape body of POST requests

According to the spec for requests of type application/x-www-form-urlencoded, the body must be escaped. Currently the data is encoded to base64, so it will usually be alphanumeric, but has the chance of producing +, /, or = characters.
It appears the Mixpanel API is already equipped to handle both the escaped and unescaped base64 requests, but proxies or intercepting APIs would need to implement special rules to handle this.

@tdumitrescu Could you have a look at this when you get a chance? We've been using this in production since June without any problems, and the issues we were seeing through our internal proxy from the unescaped characters have been entirely resolved.

Yup, sorry about the delay and thanks for including a test with the patch! We'll get this into a release soon.

Now released in v2.39.0, thanks!


Cannot restore a dumped pg database

$ flynn -a gnus-befriend-bradford pg dump -f latest.sql

$ flynn -a gnus-befriend-bradford pg restore -f latest.sql
15.19 KB / 15.19 KB [==========================================================================================================================================================================] 100.00 % 8.41 KB/s 0pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 5; 2615 2200 SCHEMA public postgres
pg_restore: [archiver (db)] could not execute query: ERROR:  must be owner of schema public
    Command was: DROP SCHEMA IF EXISTS public;

pg_restore: [archiver (db)] could not execute query: ERROR:  schema "public" already exists
    Command was: CREATE SCHEMA public;

pg_restore: [archiver (db)] Error from TOC entry 2092; 0 0 COMMENT SCHEMA public postgres
pg_restore: [archiver (db)] could not execute query: ERROR:  must be owner of schema public
    Command was: COMMENT ON SCHEMA public IS 'standard public schema';

pg_restore: [archiver (db)] Error from TOC entry 2093; 0 0 COMMENT EXTENSION plpgsql
pg_restore: [archiver (db)] could not execute query: ERROR:  must be owner of extension plpgsql
    Command was: COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';

WARNING: errors ignored on restore: 4

I don't see a failure, are you sure it didn't work?

The restore worked.
Seems to be a matter of RTFM.. flynn.io told me about noisy output. Sorry about the noise again.

4 sep 2015 kl. 13:28 skrev Jonathan Rudenberg<EMAIL_ADDRESS>I don't see a failure, are you sure it didn't work?
—
Reply to this email directly or view it on GitHub.


Microservices eBook Updates

Summary
Making updates reflecting current guidance.

This PR inadvertently included some files outside of the microservices architecture ebook. Closing it and focusing all the changes into my other PR #12019


BarChartDataLayer hides mouse over events for the barchart marker.

I noticed using the BarChartDataLayer, and providing a custom bar marker, that the bar marker never gets the mouse over events due to the BarChartDataLayer having already bound to the mouse events.
I created a custom BarChartDataLayer and overrode the _bindMouseEvents to do nothing, once i did that my custom bar marker started showing the correct tool tip.
L.CustomBarChartDataLayer = L.BarChartDataLayer.extend({
    initialize: function (data, options) {
        L.BarChartDataLayer.prototype.initialize.call(this, data, options);
    },

    _bindMouseEvents: function (layer, layerOptions, legendDetails)
    {
    }

    });

Thanks for finding this!  I'll look into it and hopefully have a fix soon that keeps you from having to employ workarounds.


OTR: enzyme activities scheduled for obsoletion

Stemming from https://github.com/geneontology/go-ontology/issues/11996
There are 12 terms in GO at the moment with a definition comment saying
“This term represents a deleted EC activity and is scheduled for obsoletion.”
and one saying
“This term represents a transferred EC activity and is scheduled for obsoletion.”.
Presumably the former 12 can be obsoleted, and the latter 1 can be merged. Need to look into details of EC entries and annotations if any.
@hdrabkin , @ukemi , is any of these covered by your current work on enzyme terms please? Here’s the list:
GO:0016719  carotene 7,8-desaturase activity  now has EC:<IP_ADDRESS>  - DONE https://github.com/geneontology/go-ontology/issues/22050
GO:0047486  chondroitin ABC lyase activity; removed EC >> to obsolete; unnecessary grouping class
GO:0004158  dihydroorotate oxidase activity Fixed RHEA:15441, EC:Removed  >> obsoleted in #23789
GO:0004584  dolichyl-phosphate-mannose-glycolipid alpha-mannosyltransferase activity Obsoleted in #16022
GO:0008752  FMN reductase activity EC <IP_ADDRESS>; ok; but needs 2 RHEAS DONE IN https://github.com/geneontology/go-ontology/issues/16166
GO:0047606  hydroxynitrilase activity EC changed
GO:0046592  polyamine oxidase activity EC removed
GO:0050251  retinol isomerase activity EC removed; has rhea DONE #23669
GO:0050347  trans-octaprenyltranstransferase activity  OK
GO:0048045  trans-pentaprenyltranstransferase activity  Obsoleted in #23202
GO:0004810  tRNA adenylyltransferase activity  pending merge See ##19854
GO:0016437  tRNA cytidylyltransferase activity pending merge See ##19854
and
GO:0030058  amine dehydrogenase activity  Ec was remaped  OK
Thanks.

Reactome has annotations of proteins to GO:0050251 retinol isomerase activity backed by publications - http://www.reactome.org/PathwayBrowser/#/R-HSA-2187338&SEL=R-HSA-2465926&PATH=R-HSA-162582 . (Don't know why these haven't propagated to GO).

Thanks @deustp01 . There seem to be a couple of issues here. I’ll ask @mcourtot  and @tonysawfordebi :

I can’t see Reactome annotations to GO:0050251 retinol isomerase activity, neither in QuickGO nor in AmiGO. I can’t remember - have we been filtering out some particular types of Reactome annotations recently? If not, why are these invisible in both browsers?

The QuickGO page for GO:0050251 retinol isomerase activity says “No matching annotations” (http://www.ebi.ac.uk/QuickGO/GTerm?id=GO:0050251#term=annotation).
While the AmiGO page for the same term shows an IDA annotation from ZFIN (http://amigo.geneontology.org/amigo/term/GO:0050251). I noticed a similar issue recently but couldn’t document it as the term we were looking at had been obsoleted. Could you please look into this discrepancy?

Thanks!

Two issues here: is use of GO:0050251 to annotate an enzyme's activity still legitimate, and why are Reactome's use of this term in annotations not propagating to GO?
On the second issue, there are probably several reasons, mostly due to annotation practices on our side that lead to improper lines in our GAF. We then compound that problem by not regularly looking at Jenkins and other reports of mis-formed GAF entries. We are working on fixing this. Progress will be slow but in case like this where a specific annotation is at issue, I can try to move faster and be more responsive.
Meanwhile, on the first issue, could the term GO:0050251 not be obsoleted while we look on our side either for evidence that this remains a legitimate, distinctive molecular function (despite EC's opinion) or find an alternative term to describe this activity?
Thanks.

@tonysawfordebi had a look:

the Reactome GAF (http://www.geneontology.org/gene-associations/submission/gene_association.reactome.gz) doesn't contain any annotations to GO:0050251.
The ZFIN GAF contains one annotation to GO:0050251, but we don't import it because we don't have a mapping from the ZFIN identifier (ZDB-GENE-081104-505) to UniProt

Apologies - I just looked at our actual annotation. The curator found evidence that a human protein has the molecular function described by GO:0050251 but the publication did not provide sequence data to allow the protein to be associated with a UniProt entity, so there's nothing to write in the GAF.
I'd still like to keep GO:0050251 while I check with the curator and look further to see if there's an alternative way to describe the protein's function and any way to associate the protein with a  UniProt.
Thanks.
Peter

Thanks for checking and confirming all is in order Peter, much appreciated.

Looking at the Expasy record for the EC <IP_ADDRESS>, the term that is proposed to replace EC <IP_ADDRESS> (http://enzyme.expasy.org/EC/<IP_ADDRESS>), there may be an assertion that all real enzymes have combined isomerase activity (what we annotated with <IP_ADDRESS>) and also a hydrolase activity. The Expasy record also points to a human protein that may have the combined activities. Bijay Jassal, who made the annotation in the first place, is looking into this. Depending on what he finds, we should either be able to revise our annotation to include both a human UniProt record and a non-obsolete GO term or construct an argument backed by experriments that EC is wrong and that, at least in humans, there is an enzyme with isomerase-only activity so a separate GO term remains valid.

Thanks all for your feedback, very useful.
@deustp01 , I won't send any obsoletion notice until you and Bijay have had a chance to look into the issue above.
Note for self:
Then, I will send notice for all of the 13 terms listed at the start of this ticket, including or excluding GO:0050251 based on Reactome's resolution. Nothing else is needed for this ticket.

Bijay Jassal has looked at some relevant papers, finds that RPE65, the enzyme associated by Expasy with EC <IP_ADDRESS> (replacing EC <IP_ADDRESS>) - http://enzyme.expasy.org/EC/<IP_ADDRESS> - is not a good fit to the reaction he’s annotated for Reactome (http://www.reactome.org/PathwayBrowser/#/R-HSA-2187338&SEL=R-HSA-2465926) because RPE65 is localized to the wrong cells and appears to have a different substrate specificity. A better candidate, DEGS1, has the correct localization and can catalyze the right reaction, although very inefficiently (see section 5.2 of this paper - http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3858459/ - and references cited there). That leaves us wanting to keep our current annotation, of an incompletely characterized human enzyme (no UniProt reference possible) carrying out exactly the molecular function described by GO:0050251 and not the one described by EC <IP_ADDRESS>, so we’d very much like GO to retain this term, despite the EC decision.
Apologies for dragging this out so long.
Peter

Thanks Peter. I won't propose GO:0050251 for obsoletion then (and will delete its current comment "scheduled for obsoletion"). I will also remove the EC dbxref <IP_ADDRESS> as that entry doesn't exit anymore, but I will NOT substitute it with EC <IP_ADDRESS>. GO:0050251 has a Rhea dbxref that is still valid (and doesn't point to EC), so I'll leave that. It'll be your call whether you wish to contact EC about their decision. Thanks!

@deustp01
Edited GO:0050251 retinol isomerase activity as above.

Note for self:
What is left to do for this ticket is - look at my very first comment only (the opening one) and proceed for all those terms EXCEPT GO:0050251 retinol isomerase activity.

GO:0050251 retinol isomerase activity was in a subset called 'mf_needs_review'
("Catalytic activity terms in need of attention").
I removed the subset from GO:0050251, but a search highlighted that 23 other terms have it...
Must check overlap with original list. Here are the 23, must pay attention to their definition comments, when available:
GO:0018468	alcohol dehydrogenase (acceptor) activity
GO:0030058	amine dehydrogenase activity
GO:0045330	aspartyl esterase activity
GO:0016719	carotene 7,8-desaturase activity
GO:0047486	chondroitin ABC lyase activity
GO:0033758	clavaminate synthase activity
GO:0042242	cobyrinic acid a,c-diamide synthase activity
GO:0004158	dihydroorotate oxidase activity
GO:0043734	DNA-N1-methyladenine dioxygenase activity
GO:0004584	dolichyl-phosphate-mannose-glycolipid alpha-mannosyltransferase activity
GO:0008752	FMN reductase activity
GO:0045544	gibberellin 20-oxidase activity
GO:0050417	glutamin-(asparagin-)ase activity
GO:0047606	hydroxynitrilase activity
GO:0033751	linoleate diol synthase activity
GO:0031559	oxidosqualene cyclase activity
GO:0046592	polyamine oxidase activity
GO:0070773	protein-N-terminal glutamine amidohydrolase activity
GO:0051746	thalianol synthase activity
GO:0050347	trans-octaprenyltranstransferase activity
GO:0048045	trans-pentaprenyltranstransferase activity
GO:0004810	tRNA adenylyltransferase activity
GO:0016437	tRNA cytidylyltransferase activity
Looks like a one-off attempt to represent EC updates in GO. But there must be so many other updates we haven't caught up with (EC updates every quarter I think).

Also add: GO:0004584 because its EC entry was transferred (so GO:0004584 will have to be merged).
Initially reported in https://github.com/geneontology/go-ontology/issues/11864

Note for self: if an automated strategy such as Melanie suggests below could be implemented, some or all of this work would take care of itself... https://github.com/geneontology/go-ontology/issues/12802#issuecomment-261479753

Hi @hdrabkin ,
This ticket is about non-urgent work on enzyme terms. I’m wrapping up my tickets, so will unassign myself from this one and hand it over to you, but feel free to discuss with @ukemi and others if someone else should look into it instead. Thanks.

@hdrabkin I think you dealt with these in another ticket ? (but I cannot find it right now).
Can you please check what needs to be done ?
Thanks, Pascale

Yes, it's related to the slim ticket in general that you removed. I think some of these are in that ticket anyways.

GO:0047486  chondroitin ABC lyase activity  >> obsolete: unnecessary grouping class.

[ ]  FMN reductase activity: change label to  FMN reductase (NAD(P)H activity >> can use both NAD and NADP, see https://enzyme.expasy.org/EC/<IP_ADDRESS>

[ ] GO:0046592 polyamine oxidase activity EC removed - was mapped to EC:<IP_ADDRESS>, transferred to
Transferred entry: <IP_ADDRESS>
Transferred entry: <IP_ADDRESS>
Transferred entry: <IP_ADDRESS>
Transferred entry: <IP_ADDRESS>
Transferred entry: <IP_ADDRESS>

Should we obsolete GO:0046592? Or make it a grouping class for the terms linked to the above ECs?

[ ] GO:0050347 trans-octaprenyltranstransferase activity; update reaction to match RHEA

Should we obsolete GO:0046592? Or make it a grouping class for the terms linked to the above ECs?

Hi Pascale. I'd vote for making it a grouping class - the listed ECs/GO terms are all specific examples of polyamide oxidases, and it would be useful to put them all under this grouping class (rather than being direct children of 'GO:0016647 oxidoreductase activity, acting on the CH-NH group of donors, oxygen as acceptor')

I would make it a grouping term


Slurping triggered Templater...

This was fun. :)
I tried slurping this:
https://forum.obsidian.md/t/create-file-after-choosing-a-folder/34311
The forums generally can't be targeted by Slurp effectively, but this one was a single post so I wanted to see if I could save the snippet.
I got a page, and immediately was prompted with the folder selection list that the templater example had. My Templater configuration does not have a configured folder overlapping the slurp directory, fwiw.
Page in slurped target folder:
TITLE: Create file after choosing a folder
---
link: https://forum.obsidian.md/t/create-file-after-choosing-a-folder/34311
site: Obsidian Forum
date: 2022-03-19T16:00
excerpt: This is a templater script for creating a file after choosing a
  folder  (make sure to put in your template folder and invoke it through open
  insert templater modal command)  slurped: 2024-05-09T16:43:53.634Z
title: Create file after choosing a folder
---

![Obsidian Forum](data:image/svg;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)

Loading

Log - this test was controlled and prepped, but since the configuration doesn't have a clear log or insert break, I copied before and after and used Beyond Compare to find the new stuff.
1715273033628 | DEBUG | attempting to parse prop metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

{
  "enabled": true,
  "custom": false,
  "_key": "link",
  "_idx": 0,
  "id": "link",
  "metaFields": [
    "url",
    "og:url",
    "parsely-link",
    "twitter:url"
  ],
  "defaultIdx": 0,
  "defaultKey": "link",
  "description": "Page URL provided or a permalink discovered in metadata."
}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"url"
"meta[name=\"url\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"og:url"
"meta[name=\"og:url\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"parsely-link"
"meta[name=\"parsely-link\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"twitter:url"
"meta[name=\"twitter:url\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{
  "0": {}
}

1715273033628 | DEBUG | adding metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

{
  "prop": {
    "enabled": true,
    "custom": false,
    "_key": "link",
    "_idx": 0,
    "id": "link",
    "metaFields": [
      "url",
      "og:url",
      "parsely-link",
      "twitter:url"
    ],
    "defaultIdx": 0,
    "defaultKey": "link",
    "description": "Page URL provided or a permalink discovered in metadata."
  },
  "elements": {
    "0": {}
  },
  "metaFields": {},
  "querySelector": "meta[name=\"twitter:url\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
}

1715273033628 | DEBUG | attempting to parse prop metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

{
  "enabled": true,
  "custom": false,
  "_key": "byline",
  "_idx": 1,
  "id": "byline",
  "metaFields": [
    "author",
    "article:author",
    "parsely-author",
    "cXenseParse:author"
  ],
  "defaultIdx": 1,
  "defaultKey": "byline",
  "description": "Name of the primary author or the first author detected."
}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"author"
"meta[name=\"author\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"article:author"
"meta[name=\"article:author\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"parsely-author"
"meta[name=\"parsely-author\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"cXenseParse:author"
"meta[name=\"cXenseParse:author\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | attempting to parse prop metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

{
  "enabled": true,
  "custom": false,
  "_key": "site",
  "_idx": 2,
  "id": "siteName",
  "metaFields": [
    "og:site_name",
    "page.content.source",
    "application-name",
    "apple-mobile-web-app-title",
    "twitter:site"
  ],
  "defaultIdx": 2,
  "defaultKey": "site",
  "description": "Website or publication name."
}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"og:site_name"
"meta[name=\"og:site_name\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"page.content.source"
"meta[name=\"page.content.source\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"application-name"
"meta[name=\"application-name\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"apple-mobile-web-app-title"
"meta[name=\"apple-mobile-web-app-title\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"twitter:site"
"meta[name=\"twitter:site\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | attempting to parse prop metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

{
  "enabled": true,
  "custom": false,
  "_key": "date",
  "_idx": 3,
  "_format": "d|YYYY-MM-DDTHH:mm",
  "id": "publishedTime",
  "metaFields": [
    "article:published_time",
    "parsely-pub-date",
    "datePublished",
    "article.published"
  ],
  "defaultIdx": 3,
  "defaultKey": "date",
  "description": "Date/time that the page was initially published.",
  "defaultFormat": "d|YYYY-MM-DDTHH:mm"
}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"article:published_time"
"meta[name=\"article:published_time\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"parsely-pub-date"
"meta[name=\"parsely-pub-date\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"datePublished"
"meta[name=\"datePublished\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | found prop elements

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

"article.published"
"meta[name=\"article.published\"], meta[property=\"{s}\"], meta[itemprop=\"{s}\"], meta[http-equiv=\"{s}\"]"
{}

1715273033628 | DEBUG | attempting to parse prop metadata

Caller: SlurpPlugin.slurp (plugin:slurp:12370:30)

{
  "enabled": true,
  "custom": false,
  "_key": "updated",
  "_idx": 4,
  "_format": "d|YYYY-MM-DDTHH:mm",
  "id": "modifiedTime",
  "metaFields": [
    "article:modified_time",
    "dateModified",
    "dateLastPubbed"
  ],
  "defaultIdx": 4,
  "defaultKey": "updated",
  "description": "Date/time that the page was last modified, if available.",
  "defaultFormat": "d|YYYY-MM-DDTHH:mm"
}

Pages are sanitized on their way in but it's not going to be looking for Obsidian scripts like that.
I will look into stripping those <% bits out but tbh I'm surprised that Obsidian's own sanitization doesn't handle this.

I may be misunderstanding what you mean here, but I would greatly prefer not stripping anything out - the code was what I wanted to record, specifically.
Is what you're talking about some kind of add / remove process where you sanitize the <% with some other characters and then find/replace them after they are on the page, where the end result is still the content but side-stepping the Templater eval process?
This specific parsing is from Templater, not Obsidian, so I wouldn't expect sanitization built-in.
It's probably something that would require integration effort from both slurp and Templater. I didn't see an API or integration section in their documentation, unfortunately, but I haven't checked the issues to see if this is a thing in closed or open issues.

Yeah I would sanitize those characters, ideally just by prefixing them with \, before the page is written to prevent them from being evaluated.


Make fzf lazy-loadable

This only requires the fzf-lua.previewer.builtin module when listing the sessions, which allows fzf to be lazy loaded (with folke/lazy.nvim) only when the list() action is triggered.
Otherwise, autoload = true cannot be used without loading fzf at startup as well.

Nevermind.  Might re-open after some more testing.

Thank you for looking into this. I remember trying a few such mechanisms back then (loading some modules within function calls rather than at import), however I did not manage to have it working consistently (generally I do not really understand too well how the different plugin managers lazy load dependencies, hence something that may be lazy loading fine with one plugin manager may not necessarily with another one).


Doesn't apply rules from .ccarc

I have created a .ccarc file in the root of my project folder with the following config:
{
    "path": "./src/components",
    "jsExtension": "js",
    "cssExtension": "scss",
    "includeTests": true,
    "includeStories": true
}

The problem is that the cli doesn't seem to apply that config.
I run<EMAIL_ADDRESS>with<EMAIL_ADDRESS>I do not have a global config file.

Hi @viktorbergehall!
the problem is that now the library check the file inside the folder .ccarc not the file.
Try to create a folder with .ccarc name and put inside a config.json file.
Let me know 👍
thanks for your support 🙂

Works great! Thank you for the fast reply

I need to edit the documentation (because is not clear enough) or add the ability to get a .ccarc file in the project folder 👍
Thank you again 🙂


Protect pip and Setuptools

Currently they are not treated specially, and are locked like any other packages. I don’t think this is the correct behaviour? They should be explicitly excluded from Pipfile.lock, right?
Also, what should we do if they are added to Pipfile? I can see three possibilities:

Refuse to lock if this happens
Drop them from Pipfile.lock (I believe this is the current behaviour of Pipenv, but I don’t like dropping things silently in general)
Same as 1., but also actively warn the user during add
Drop them from Pipfile.lock only if the specifier is > or >= (I think this should cover how most people would expect Pipenv to do?)

One thing to consider (I think) is a package might be screwing the user. Say a package want to make sure it’s installed by pip 10.0 or later. A package maintainer without understanding well about Python packaging (gotta admit it’s difficult to do), (s)he might list pip>=10.0 in installs_require. This would mean that the user would have pip==18.0 in the lock file, and wouldn’t be able to upgrade to later pip until the lock file is regenerated. But that’s a thing I’d want to avoid. (This is unfortunately a quite common problem in Python packaging; even big-name packages such as pytest tend to list setuptools in installs_require instead of setup_requires and PEP 518, because that has the best compatibility with old versions of pip.)
If the goal is to allow user to screw things up, maybe the best approach is to drop setuptools and pip requirements, unless they are listed in Pipfile. This would be straightforward to do (I think)—just exclude them from the return value of get_dependencies. Requirements listed in Pipfile don’t go through that function, so they won’t be excluded, but other requirements do go through there, and will be prevented from messing with the user.

FYI we may want to protect wheel also

I don’t think wheel is strictly required to install packages; pip currently falls back to setup.py install if wheel is missing (and when build isolation is disabled). I want to keep the protected set as small as possible; we can always amend it if we need to, but if we protect it now, we may never be able to remove it in the future.


update README: specify the branch to main in the vim-plug config

Vim-plug use master as the default branch.If branch is not specified as main,it will cause an error:
fatal: invalid reference: master

Thanks!


closes #258

Reviewed using your Vercel deployment. Unsure why linter is not functioning properly when used locally. In any case, I'm going to merge this and we can fix the linter in a separate PR.
CC @nestdotland/quality-control


Missing config file

When running on an image file I get the error:
Missing config file. Could not find /etc/fvttoptimizer.conf
Tried running all three release versions on Arch Linux with Python 3.10.4 and get the same error every time.
I'm not seeing any mention of a config file in the readme. Am I missing something?

Are you sure?:
https://github.com/watermelonwolverine/fvttoptimizer#option-2-manual-installation

That would definitely be missing something... thanks and apologies...


IOS Max length does not work with special chars

I have reviewed the documentation
I have searched existing issues
[ ] I am using the latest React Native version

I want to allow only  25 characters in my text input
Environment
OS: macOS High Sierra 10.13.4
Node: 8.6.0
Yarn: 1.3.2
Xcode: Xcode 9.3.1 build version 9E501
react: 16.3.1
react-native: 0.55.4
iOS device: iPhone 6s
OS: 11.3.1
Steps to Reproduce

Open application with Text input
type '-' in the text input

code:
<TextInput
    userName={userName}
    underlineColorAndroid="transparent"
    maxLength={25}
    autoCorrect={false}
/>

Expected Behavior
User can't type more than maxLength, in my case 25.
Actual Behavior
User Can type as many as he wants.

Environment (UPDATED)
OS: macOS High Sierra 10.13.4
Node: 8.6.0
Yarn: 1.3.2
Xcode: Xcode 9.3.1 build version 9E501
react: 16.3.1
react-native: 0.52
iOS device: iPhone 6s
OS: 11.3.1

same issue.
Iphone6 runs iOS 9.3.4 device.
OS: macOS High Sierra 10.13.4
Node: 8.11.1
Yarn: 1.6.0
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
react: "16.3.0-alpha.1",
react-native: "0.54.0",
However,works fine on my iphone6splus runs iOS 11.3.1

I can't apply labels to it  :(, can you apply for me

This should be fixed as of https://github.com/facebook/react-native/commit/892212b (0.56).


Explanation of configuration flag '--auto-compaction-mode' is rendered as table in coreos.com

Explanation of configuration flag '--auto-compaction-mode' is rendered as table in coreos.com
(https://coreos.com/etcd/docs/latest/op-guide/configuration.html)

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@bf052ef). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #9514   +/-   ##
=========================================
  Coverage          ?   72.61%
=========================================
  Files             ?      366
  Lines             ?    31128
  Branches          ?        0
=========================================
  Hits              ?    22603
  Misses            ?     6896
  Partials          ?     1629

Continue to review full report at Codecov.

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


Add try/except logic to handle renaming of cftime datetime base class

cftime is planning on renaming the base class for its datetime objects from cftime.datetime to cftime.datetime_base.  See discussion in https://github.com/Unidata/cftime/issues/198 and https://github.com/Unidata/cftime/pull/199.  This PR adds the appropriate logic in xarray to handle this in a backwards-compatible way.
In the documentation in places where we refer to    :py:class:`cftime.datetime` objects, I have modified things to read    ``cftime`` datetime.  Being more generic is probably better in any case, as in most instances we do not explicitly mean that the base class can be used, only subclasses of the base class.
cc: @jswhit

[x] Passes isort . && black . && mypy . && flake8
[x] User visible changes (including notable bug fixes) are documented in whats-new.rst

Many thanks for the review @mathause.  Since posting this PR, discussion has shifted in cftime against making this change, so I am closing it. The potential disruption to downstream packages outweighs the usefulness of the proposed feature.  My apologies for the noise.