Just imagine a famiclone based on snes hardware with nested on it

Just imagine a cartride based famiclone based on snes hardware with nested on top of it ,now it order to make it attracktive for consumers i can put giant letters on the pakage saying “builtin AI deeplearning feature wich learns how you play for a better experience”, but in reality it will learn all your gameplay mechanics such as jumping,hitting blocks,grabbing coins,wich will store it first into it’s ram as a srm file and then stores it in realtime into it’s own flash rom (wich should be expandible with extra flash rom tough sd cards for more nes and future nes games) all those generated srm files ahould be linkible for each specefic nes game sothat the next time you will play that game,that it will automatically link that generated srm file from that flash rom to that soecefic game sothat it will run smoother and better,such famiclone should contain 1 MB  of ram just in case sothat even the most demanding nes game will not run out of ram for nested,
I would also add terms on the pakage  such as “experience games in RGB & stereo sound”  and terms like “builtin expandible flash rom” to make such famiclone more attractive,
I also could imagine a snes cartride and/or handheld famiclone both with hundreds of nes games on it making use of nested but with already beforehand learned gameplay on it to not relentlessly slowdown at all,so if such famiclone device based on snes hardware with nested on top of it will ever come reality,that would be awesome,
Final note;that there is a snes catride with tons of chineese knock off nes games on it,BUT it’s incompatible with the snes,it only works on a soecefic snes clone,so an all compatible snes cartride with nes games on it using nested would be very welcome,so who know what the future will hold😁

Have you imported SRM into the exe?
How many "known calls" do you have on your profile?

If it says 0 known calls, it's because you haven't imported the SRM into the exe. Do this and you should see the number of known calls go up which will reduce the amount of RAM used.
Unfortunately, what you're asking for won't solve the "Out of Memory" issue and possibly make it worse after you see it the first time.

Well i clicked on the add sram option, thus step 5 , how do i otherwise add srm into the exe???
I looked at any word with the mouse and i readed any explenation,
Unless i do it totally wrong, how do i add srm ram file into the exe???
Verstuurd vanaf mijn iPhone
Op 9 okt. 2021 om 21:53 heeft Myself086 @.***> het volgende geschreven:

If it says 0 known calls, it's because you haven't imported the SRM into the exe. Do this and you should see the number of known calls go up which will reduce the amount of RAM used.
Unfortunately, what you're asking for won't solve the "Out of Memory" issue and possibly make it worse after you see it the first time.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Myself086/Project-Nested/issues/39#issuecomment-939353477, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVVWMQF4YFTJEHO3T5XASL3UGCMUHANCNFSM5FURHFSA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I'm curious what part of step 5 you don't understand, read it and explain it to me in your own words.

Well to my interpretations, art 5 says to add srm file to reduce memory usage and increases performances, but if i click on the load srm file icon and put an srm file to the game,all what happens is that both snes9x & the everdrive interprets it as a save file,
So how do i add an srm file into the exe if that becomes step 5?
Were do i find the exe option to add an srm file into it? mmm
Verstuurd vanaf mijn iPhone
Op 10 okt. 2021 om 21:47 heeft Myself086 @.***> het volgende geschreven:

I'm curious what part of step 5 you don't understand, read it and explain it to me in your own words.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Myself086/Project-Nested/issues/39#issuecomment-939541419, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVVWMQDAC57DZGS4UBH5KKLUGHUUBANCNFSM5FURHFSA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Once the number of "known calls" goes up, you're supposed to redo step 1-4.

You did something wrong, the number of known calls is supposed to go up. Just follow steps 1-5 then 1-4 again.

Hi,
I tryed what you said, i first loaded the game supermario 3 into nested 1.4.1 and then i loaded the srm file from supermariobros 3 wich was created from the everdrive into it it says 1021 calls, what does that mean?
Verstuurd vanaf mijn iPhone
Op 13 okt. 2021 om 01:35 heeft Myself086 @.***> het volgende geschreven:

Load NES game.
Make a profile.
Use at least 16KB SRAM.
Save SNES.
Play for a bit.
Load NES game.
Load SRM into exe.
Save SNES.
Done.
For more details, you can read all 5 steps. Do step 1 through 5. Step 5 tells you to redo step 1 through 4.
So the steps go like this: 1, 2, 3, 4, 5, 1, 2, 3, 4.
What this does is recompile code into the ROM so the emulator doesn't have to do it in real time. It removes the lag spikes you get (or hick-ups as you call it) and frees RAM so it's less likely to give you an "Out of Memory" error (depending on the game). Super Mario Bros 3 is one of the most demanding games in terms of RAM due to how the code is structured.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Myself086/Project-Nested/issues/39#issuecomment-941744650, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVVWMQFR3JTMSXGFMZVTSITUGTA5HANCNFSM5FURHFSA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Speaking about srm files, all the time i tout i had to put an emty srm file into the game sothat nested will fill in those rotine calls,since the powerpak cannot make an srm file automatically so you have to make one manually ,but the everdrive and snes9x and zsnes can create a srm file automatically,HOWEVER i have discovered that in order to load that generated srm file it into the game, i first have to load it trough the everdrive into the ram,then i have to load it into the profile in order to make it work or otherwise nested will give an error massage saying that the profile does not match,even not after trying to change and match the name of both the rom and srm file,wich is very frustrating,
BTW i tryed the same thing with ducktales but i do get an error brk massage,
Either way it’s a painin the ass.
Verstuurd vanaf mijn iPhone
Op 20 okt. 2021 om 11:45 heeft johannes mutlu @.***> het volgende geschreven:
 Well,sorry if i didn’t interpret it correctly BUT i was ment to say that i loaded the srm file with those created subrotine calls from the game into it, not just loading an emty srm file no, and about that profile/name from the rom,if nested asks to create a profile name, i just keep those names as how they are called unless i want to try multiple versions of it (by changing those names afterwards)for testing,
I really don’t know what you otherwise mean with a profile, but atleast i got mario 3 better working.
Verstuurd vanaf mijn iPhone
Op 20 okt. 2021 om 11:00 heeft Myself086 @.***> het volgende geschreven:

I said use the profile on v1.3, not the srm.
Please make sure you read my messages multiple times.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Myself086/Project-Nested/issues/39#issuecomment-947468091, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVVWMQBGDMPQYRKGKK2RS63UH2ALBANCNFSM5FURHFSA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

There are 2 possible errors when loading srm into the exe.
1, you are loading an invalid srm file or the size is lower than 16KB.
2, you are loading an srm file whose profile name wasn't set and it is asking you if you want to load it anyway, which you can. This happens when you have no profile loaded when you hit the "save SNES" button. However, if the profile name is saved into the ROM, the exe can detect whether the correct profile is loaded and only update the correct profile, even when the wrong profile is loaded.

On the other hand there is the retroport nes adaptet with noac inside( nes on a chip)that plays nes games on snes i have it with a n8 everdrive


[Editor] Add readonly mode

Text editor should provide a readonly mode

Finally, editor supports three modes:

Editable beEditable, which is a default mode
Read-only beReadOnly which prevents users from manipulating text by hiding the cursor, disabling selection and text modification shortcuts.
Read-only with selection beReadOnlyWithSelection which is similar to read-only but with support of selection and text copying.

Editable mode (default)

Read-only

Read-only with selection

Maybe rename beReadOnly to beReadOnlyWithoutSelection and beReadOnlyWithSelection to beReadOnly? Otherwise I think most people will the version without selection support, which is more annoying as it prevents copying text.

Great suggestion @bjorn3 👍


(chore): v0.11 fragments

[ ] For to-dos here
[ ] Tests added
[ ] Release note added (or unnecessary)

OK, so we should merge&backport the other PR and then merge&not backport this one


Alignment is wrong in about section with developers good photo can be added

There is an issue with the aboutus option whenever we click on the find your space option, then the about us and the option alignment is not correct. The alignment should be improved,

plus the more improved photos can be added.There is an issue with the aboutus op....the more improved photos can be added

@tushargupta1504 @TeeWrath kindly assign this issue to me

@TeeWrath please asign this issue to me under gssoc'24

@TeeWrath please asign this issue to me under @GSSOC'24

please assign to me #gssoc24


Variant information is not shown and Gene association doesn't update in clin.iobio unless triggered

Gene association is not updated in clin.iobio when the new phenotype is added. Reproduction steps:

Complete step 2 and go to step 3. Gene Association is shown.
Go back to step 2 and select a new term. complete step 2 and go to step 3
Gene ranking is updated in the left sidebar but not in gene association.
Click on a different variant and go back variant that was investigated. Gene association is now updated.

Variant information is not shown:

Launch clin.iobio with the demo data
select phenotypes and generate gene list
Wait for a while before going to step 3 so the variants have completed loading
go to step 3
The variant detail card shows blank
Scroll down and it will show enlarged icons
Scrolling down further will show variant inspection card for the flagged variant.

Issues in clin.iobio repo:
https://github.com/iobio/clin.iobio/issues/153
https://github.com/iobio/clin.iobio/issues/159
https://github.com/iobio/clin.iobio/issues/169


fix: Fixed more input events

This fixes the input events noticed on Discord (inventory item hidden behind inventory panel, using unhandled_input in ESCItem as well). Additionally, it fixes the scroll wheel bug, @StraToN  mentioned.

Many thanks!! 🥳


fix style: code style python not work well

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
fix doc's style

Modification
Simple verification
from easycv.apis import *

You can also verify your installation using following quick-start examples
Backward-Compatibility-Breaking (Optional)
Does the modification introduce changes that break the backward-compatibility? If so, please describe how it breaks the compatibility in this PR.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Pull-Request Todo List

Pre-commit or other linting tools are used to fix the potential lint issues.
The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
The documentation has been modified accordingly, like docstring or example tutorials.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


__clang_analyzer__ not defined in headers?

I'm working on adding CodeChecker support for our codebase and the docs mention that you should use assert() to guide clangsa around false positives. Our codebase doesn't currently use assert() so I went to add it as a macro guarded by __clang_analyzer__ so that it doesn't affect our normal builds:
(def.h)
#ifdef __clang_analyzer__
#include <assert.h>
#define ANALYZER_ASSSERT(_x) assert(_x)
#else
#define ANALYZER_ASSERT(_x) ;
#endif

I have some code in api.c that looks like
(api.c)
#include "def.h"
...

    uint64_t cycle_len = cycle_length_sec(...) * 1000UL;
    ...
    from = ROUNDDOWN(from, cycle_len);
}

Which produces this error:
[HIGH] /depot/.../api.c:2665:12: Division by zero [core.DivideZero]
    from = ROUNDDOWN(from, cycle_len);
           ^
  Report hash: 3f8e83794357ed3de3e4313f66e20b0a
  Macro expansions:
    1, api.c:2665:12: Macro 'ROUNDDOWN(from, cycle_len)' expanded to '(((from )/(cycle_len ))*(cycle_len ))'
  Steps:
    1, api.c:2836:9: Assuming field '...' is not equal to 0
    2, api.c:2840:9: Assuming field '...' is true
    3, api.c:2841:16: Calling 'this_function'
    4, api.c:2632:1: Entered call from 'caller_function'
    5, api.c:2648:5: 'cycle_len' initialized to 0
    6, api.c:2665:12: Division by zero

We know that cycle_length_sec() can technically, but never practically, return 0, so I added our assert right above the line:
(api.c)
#include "def.h"
...

    uint64_t cycle_len = cycle_length_sec(...) * 1000UL;
    ...
    ANALYZER_ASSERT(cycle_len != 0);
    from = ROUNDDOWN(from, cycle_len);

But the warning keeps appearing, and clangsa doesn't seem to acknowledge the macro in its list of Macro expansions like it does for ROUNDDOWN. However, if I move the ifdef block into api.c then the warning is suppressed as I'd expect:
(api.c)
#include "def.h"
...

    uint64_t cycle_len = cycle_length_sec(...) * 1000UL;
    ...
#ifdef __clang_analyzer__
    #include <assert.h>
    assert(cycle_len != 0);
#endif
    from = ROUNDDOWN(from, cycle_len);

So for some reason it seems like __clang_analyzer__ is defined in api.c but not in def.h, even though the latter is directly #included from the former??
I tried running the analyzer with debug logging turned on and I do see -D__clang_analyzer__ in the CTU portion of the analysis:
[DEBUG_ANALYZER][2022-05-31 15:31:44] {analyzer} [3639438] <139897325340480> - ctu_manager.py:128 generate_ast() - Generating AST using '/usr/lib/llvm/13/bin/clang-13 --target=x86_64-pc-linux-gnu -isystem /usr/include -c -x c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I(some paths) -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wno-format-truncation -Wno-stringop-truncation -fstack-protector-strong -iquote (some paths) -fPIC -fno-common /depot/.../api.c -std=gnu17 -emit-ast -D__clang_analyzer__ -w -o /depot/out/CodeChecker/codechecker/ctu-dir/x86_64/ast/depot/extrahop/bridge/base/api.c.ast'

But I do not see it in the analysis run itself:
[DEBUG_ANALYZER][2022-05-31 15:32:23] {analyzer} [3643024] <139897325340480> - analyzer_base.py:86 analyze() - /usr/lib/llvm/13/bin/clang-13 --analyze -Qunused-arguments -Xclang -analyzer-opt-analyze-headers -Xclang -analyzer-output=plist-multi-file -o /depot/out/CodeChecker/codechecker/api.c_clangsa_0a49ab7edc14c2d34deb130dd8dfe00a.plist -Xclang -analyzer-config -Xclang expand-macros=true -Xclang -analyzer-checker=alpha.security.cert.pos.34c,core.CallAndMessage,core.DivideZero,core.NonNullParamChecker,core.NullDereference,core.StackAddressEscape,core.UndefinedBinaryOperatorResult,core.VLASize,core.uninitialized.ArraySubscript,core.uninitialized.Assign,core.uninitialized.Branch,core.uninitialized.CapturedBlockVariable,core.uninitialized.UndefReturn,cplusplus.InnerPointer,cplusplus.Move,cplusplus.NewDelete,cplusplus.NewDeleteLeaks,cplusplus.PlacementNew,cplusplus.PureVirtualCall,deadcode.DeadStores,nullability.NullPassedToNonnull,nullability.NullReturnedFromNonnull,optin.cplusplus.UninitializedObject,optin.cplusplus.VirtualCall,optin.portability.UnixAPI,security.FloatLoopCounter,security.insecureAPI.UncheckedReturn,security.insecureAPI.getpw,security.insecureAPI.gets,security.insecureAPI.mkstemp,security.insecureAPI.mktemp,security.insecureAPI.rand,security.insecureAPI.vfork,unix.API,unix.Malloc,unix.MallocSizeof,unix.MismatchedDeallocator,unix.Vfork,unix.cstring.BadSizeArg,unix.cstring.NullArg,valist.CopyToSelf,valist.Uninitialized,valist.Unterminated -Xclang -analyzer-config -Xclang aggressive-binary-operation-simplification=true -Xclang -analyzer-config -Xclang experimental-enable-naive-ctu-analysis=true -Xclang -analyzer-config -Xclang ctu-dir=/depot/out/CodeChecker/codechecker/ctu-dir/x86_64 -Xclang -analyzer-config -Xclang display-ctu-progress=true -x c --target=x86_64-pc-linux-gnu -std=gnu17 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I(some paths) -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wno-format-truncation -Wno-stringop-truncation -fstack-protector-strong -iquote (some paths) -fPIC -fno-common -isystem /usr/include /depot/extrahop/bridge/base/api.c

Is this something I need to go bug LLVM about or is there something going on with how CodeChecker invokes it?
CodeChecker version
v6.19.1

Ha, sorry the typo is an artifact of me copy/pasting/sanitizing for this issue, I've double checked that things are correctly spelled in the actual code.

I could not reproduce your issue.
cat > def.h << EOF
#ifdef __clang_analyzer__
  #include <assert.h>
  #define ANALYZER_ASSERT(x) assert(x)
#else
  #define ANALYZER_ASSERT(x) do {} while (0)
#endif
EOF

cat > api.c << EOF
#include "def.h"

int foo(int x) {
  ANALYZER_ASSERT(x == 2);
  return x / (x - 2);
}
EOF

CodeChecker log -b "gcc -Wall -Wextra -c api.c -o /dev/null" -o db.json
CodeChecker analyze db.json -o reports --verbose debug

After this we should expect a div by zero error because the ANALYZER_ASSERT(x == 2) introduced the assumption that x must be equal to 2, thus x - 2 is zero causing the div by zero. Consequently, The analyzer correctly expanded the conditional #ifdef __clang_analyzer_ and selected the assert(cond) version of the macro.
I'll close this issue unless you can give a clean end-to-end reproducer.


Immediate refresh button

On the dashboard fragment, configure the circle button to permit to make an immediate refresh.

056a08e5cd4ff18548dfe1b65691fb4c6f36fc05


[gtest] building gtest:x64-windows failed with: BUILD_FAILED

Copy issue body from C:/KBApps/vcpkg/installed/vcpkg/issue_body.md
Issue faced at the time of installing the google test using vcpkg .
Below is the Ouput after firing the command " ./vcpkg install gtest".
PS C:\KBApps\vcpkg> ./vcpkg install gtest
Computing installation plan...
A suitable version of cmake was not found (required v3.30.1).
warning: Download failed -- retrying after 1000ms
Downloading https://github.com/Kitware/CMake/releases/download/v3.30.1/cmake-3.30.1-windows-i386.zip
Extracting cmake...
The following packages will be built and installed:
<EMAIL_ADDRESS>Detecting compiler hash for triplet x64-windows...
Compiler found: C:/KBApps/Microsoft Visual Studio/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe
Restored 0 package(s) from C:\Users\ext-bhapkarm\AppData\Local\vcpkg\archives in 183 us. Use --debug to see more details.
Installing 1/1<EMAIL_ADDRESS>Building<EMAIL_ADDRESS>-- Using cached google-googletest-v1.15.2.tar.gz.
-- Cleaning sources at C:/KBApps/vcpkg/buildtrees/gtest/src/v1.15.2-41f5afb119.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/KBApps/vcpkg/downloads/google-googletest-v1.15.2.tar.gz
-- Applying patch 001-fix-UWP-death-test.patch
-- Applying patch clang-tidy-no-lint.patch
-- Applying patch fix-main-lib-path.patch
-- Using source at C:/KBApps/vcpkg/buildtrees/gtest/src/v1.15.2-41f5afb119.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest.cc
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest_main.cc
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest-all.cc
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest-assertion-result.cc
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest-death-test.cc
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest-filepath.cc
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest-internal-inl.h
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest-matchers.cc
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest-port.cc
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest-printers.cc
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest-test-part.cc
-- Installing: C:/KBApps/vcpkg/packages/gtest_x64-windows/src/gtest-typed-test.cc
-- Fixing pkgconfig file: C:/KBApps/vcpkg/packages/gtest_x64-windows/lib/pkgconfig/gmock.pc
-- Fixing pkgconfig file: C:/KBApps/vcpkg/packages/gtest_x64-windows/lib/pkgconfig/gmock_main.pc
-- Fixing pkgconfig file: C:/KBApps/vcpkg/packages/gtest_x64-windows/lib/pkgconfig/gtest.pc
-- Fixing pkgconfig file: C:/KBApps/vcpkg/packages/gtest_x64-windows/lib/pkgconfig/gtest_main.pc
-- Downloading https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst;https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst;https://mirror.yandex.ru/mirrors/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst;https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst;https://mirrors.ustc.edu.cn/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst;https://mirror.selfnet.de/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst -> msys2-mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from C:\KBApps\vcpkg\vcpkg-bundle.json
[DEBUG] Failed to open: C:\KBApps\vcpkg\vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Feature flag 'dependencygraph' unset
error: Missing msys2-mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst and downloads are blocked by x-block-origin.
error: https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst: failed: status code 403
error: https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst: failed: status code 403
error: https://mirror.yandex.ru/mirrors/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst: failed: status code 403
error: https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst: failed: status code 403
error: https://mirrors.ustc.edu.cn/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst: failed: status code 403
error: https://mirror.selfnet.de/msys2/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst: failed: status code 403
[DEBUG] D:\a_work\1\s\src\vcpkg\base\downloads.cpp(1030):
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 5us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 15037us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 14 s (14036782us)
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):
  Failed to download file with error: 1
  If you are using a proxy, please check your proxy setting. Possible causes are:

  1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
     to `https://address:port`. This is not correct, because `https://` prefix
     claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
     , etc..) is an HTTP proxy. Try setting `http://address:port` to both
     HTTP_PROXY and HTTPS_PROXY instead.

  2. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings
     set by your proxy software. See https://github.com/microsoft/vcpkg-tool/pull/77
     The value set by your proxy might be wrong, or have same `https://` prefix issue.

  3. Your proxy's remote server is out of service.

  If you've tried directly download the link, and believe this is not a temporary
  download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
  to report this upstream download server failure.

Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:270 (z_vcpkg_download_distfile_show_proxy_and_fail)
scripts/cmake/vcpkg_acquire_msys.cmake:25 (vcpkg_download_distfile)
scripts/cmake/vcpkg_acquire_msys.cmake:124 (z_vcpkg_acquire_msys_download_package)
scripts/cmake/vcpkg_acquire_msys.cmake:212 (z_vcpkg_acquire_msys_download_packages)
scripts/cmake/vcpkg_find_acquire_program(PKGCONFIG).cmake:52 (vcpkg_acquire_msys)
scripts/cmake/vcpkg_find_acquire_program.cmake:121 (include)
scripts/cmake/vcpkg_fixup_pkgconfig.cmake:193 (vcpkg_find_acquire_program)
ports/gtest/portfile.cmake:49 (vcpkg_fixup_pkgconfig)
scripts/ports.cmake:192 (include)
This is the issue faced .
error: building gtest:x64-windows failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle gtest:x64-windows: 40 s
Please ensure you're using the latest port files with git pull and vcpkg update.

error: https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-pkgconf-1~2.2.0-1-any.pkg.tar.zst: failed: status code 403

seems issues with connectivity
@mitali929  could you try to get these by hands and see if you oould get it?

Thanks for posting this issue. Please reopen this issue if this is still a problem for you.


Added info about installing .NET Core SDK for Windows

The instructions don't specify that you need to also have the .NET Core SDK for Windows installed. Making sure that it's explicit from the documentation that that is a prerequisite on the machine.
Added troubleshooting information for the 0x80072efd error code, which occurs when you don't have the .NET Core SDK installed prior to installing the Hosting Bundle.

Hi @aaronpowell, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

@GuardRex  please review

I don't think we want this one: The SDK is not required (or even necessarily desired) for publishing to IIS.
What is required is the hosting bundle, which we do cover in the doc at https://docs.asp.net/en/latest/publishing/iis.html#install-the-net-core-windows-server-hosting-bundle and in common errors at https://docs.asp.net/en/latest/publishing/iis.html#hosting-bundle-not-installed-or-server-not-restarted.
This exception ...
**Installer Exception:** Installation of the .NET Core Windows Server Hosting Bundle fails with
*0x80072efd - Unspecified Error*.

... seems to be caused by some new problem that's coming up with the hosting bundle installer. This should probably be opened over in IISIntegration for investigation. cc/ @Tratcher @pan-wang @moozzyk  @shirhatti

This looks perhaps related ... https://github.com/aspnet/IISIntegration/issues/210

If this error comes from the installer then @joeloff is the guru. (As a side note - not sure if this helps but 0x80072EFD - ERROR_INTERNET_CANNOT_CONNECT so maybe the installer needs to download something but it was not able to open a connection?)

The .NET Core SDK will try to download the C++ redists if they are not present and it does go online to find them.
The .NET Core runtime bundle is nested inside the ServerHosting bundle so I'll need to see the .NET Core installer logs - they should be in your %temp% folder.

@aaronpowell Since this looks more like a local environment issue or bug-a-boo :beetle: with the installer, I suggest you close here and open over in IISIntegration issues. This repo is just for Docs.

@GuardRex Ok, I'll take it up with them. I came across it while setting up a new VM (AWS ES2 instance) that has no outbound internet connection. Once I first hit the C++ redistributable issue, manually installed that, and then still ran into problems until I installed the SDK, which was why I made an assumption it was related to that.


Data classification annotations in XDM

What are the schemas that are affected by the issue
A standalone schema descriptor to add data classification annotations.
This descriptor can be applied to all XDM schemas to indicate data classification levels:

restricted
confidential
internal
public

The classification levels can be applied to properties in a XDM schema definition, for example:
  "xdm:confidential": [
	"repo:name",
	"repo:path"
  ]

In addition to xdm:confidential, xdm:restricted and xdm:internal are possible.
This is a full example of the Asset schema:
{
  "meta:license": [
    "Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
    "This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
    "you may not use this file except in compliance with the License. You may obtain a copy",
    "of the License at https://creativecommons.org/licenses/by/4.0/"
  ],
  "$schema": "http://json-schema.org/draft-06/schema#",
  "$id": "http://ns.adobe.com/adobecloud/core/1.0/asset",
  "type": "object",
  "title": "Asset",
  "meta:extends": [
    "http://ns.adobe.com/adobecloud/core/1.0#/definitions/common-properties",
    "http://ns.adobe.com/adobecloud/core/1.0#/definitions/date-properties",
    "https://ns.adobe.com/xdm/external/hal/resource#/definitions/hal"
  ],
  "meta:extensible": true,
  "description":
    "An asset in Adobe Cloud Platform. It is not neccessarily a Digital Asset in the sense of Digital Asset Management, but a piece of content or data that can be represented in the form of a file.",
  "definitions": {
    "asset": {
      "properties": {
        "repo:id": {
          "type": "string",
          "meta:immutable": true,
          "meta:usereditable": false,
          "description":
            "A unique identifier given to every addressable asset in a given repository.",
          "examples": ["urn:aaid:sc:US:6dc33479-13ca-4b19-b25d-c805eff8a69e"]
        },
        "repo:etag": {
          "meta:usereditable": false,
          "type": "string",
          "title": "ETag",
          "description":
            "An  ETag is an HTTP response header returned by an HTTP/1.1 compliant web server used to determine change in content of a resource at a given URL. "
        },
        "repo:version": {
          "type": "string",
          "meta:immutable": true,
          "meta:usereditable": false,
          "description":
            "The version ID of the piece of content. It will be generated both on explicit and implicit save or upload."
        },
        "tiff:imageWidth": {
          "title": "Width",
          "description": "Width in pixels",
          "type": "integer",
          "meta:usereditable": false,
          "minimum": 0,
          "example": 768
        },
        "tiff:imageLength": {
          "title": "Length",
          "description":
            "Height in pixels. To maintain continuity with the XMP and TIFF standards, the height of an image or video is specified in the property `imageLength`. The duration of the video (also commonly called length) is specified in the property `extent`",
          "type": "integer",
          "meta:usereditable": false,
          "minimum": 0,
          "example": 1024
        },
        "repo:size": {
          "meta:usereditable": false,
          "type": "integer",
          "title": "Size",
          "description": "Size of the asset in bytes."
        }
      }
    }
  },
  "allOf": [
    {
      "$ref": "#/definitions/asset"
    },
    {
      "$ref":
        "http://ns.adobe.com/adobecloud/core/1.0#/definitions/common-properties"
    },
    {
      "$ref":
        "http://ns.adobe.com/adobecloud/core/1.0#/definitions/date-properties"
    },
    {
      "$ref": "https://ns.adobe.com/xdm/external/hal/resource#/definitions/hal"
    }
  ],
  "required": [
    "repo:name",
    "repo:path",
    "dc:format",
    "repo:createdDate",
    "repo:lastModifiedDate",
    "repo:id",
    "repo:etag",
    "repo:version",
    "repo:size"
  ],
  "meta:status": "experimental",
  "xdm:confidential": [
    "repo:name",
    "repo:path"
  ]
}

The example above marks the fields repo:name and repo:path as confidential.
What are examples of products that are impacted by the issue
ACP

There is a use-case where there are fields that need to remain private to the "repo", For example billing information. We may want to set the internal to setting to be Adobe only. Do you think this would work for that?

Sounds similar. The idea is to annotate fields in XDM schemas. These schemas are used as payload in events. Consumers of these events should be able to automatically identify properties, that are classified as restricted or confidential etc.
Also similar seems to be the request from the Search team: #489


pack subcommand cannot find microchip samd51 DFP

HI, thank you very much of this great project. I would like to report an issue where the pack command couldn't find the SAMD51 target although it is listed in the offical pack https://www.keil.com/dd2/pack/ .

$ pyocd --version
0.28.0
$ pyocd pack -f samd5
0000306:WARNING:__main__:No matching devices. Please make sure the pack index is up to date.

My PC is running ubuntu 20.04 with python3. I did notice there is a list of ERRO and WARN when running pack update though.
$ pyocd pack -u
0000310:INFO:__main__:Updating pack index...
Sep 30 00:51:32.779 ERRO download of "https://www.keil.com/pack/Keil.STM32H7xx_DFP.pdsc" failed: https://www.keil.com/pack/Keil.STM32H7xx_DFP.pdsc: error trying to connect: unexpected end of file
Sep 30 00:51:33.113 WARN tried to parse element "package" from element "html"
Sep 30 00:51:33.113 WARN tried to parse element "package" from element "html"
Sep 30 00:51:33.158 WARN error while parsing attribute at position 13: Attribute value must start with a quote
Sep 30 00:51:33.195 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.198 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.202 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.204 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.230 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.230 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.230 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.230 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.230 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.233 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.243 WARN tried to parse element "package" from element "head"
Sep 30 00:51:33.243 WARN tried to parse element "package" from element "head"
Sep 30 00:51:33.245 WARN Only Comment, CDATA and DOCTYPE nodes can start with a '!'
Sep 30 00:51:33.255 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.256 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.256 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.287 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.287 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.288 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.288 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.288 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.288 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.288 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.300 WARN invalid digit found in string, Package: TLE984x_DFP, Vendor: Infineon
Sep 30 00:51:33.314 WARN Only Comment, CDATA and DOCTYPE nodes can start with a '!'
Sep 30 00:51:33.319 WARN the XML is invalid, an element was wrongly closed
Sep 30 00:51:33.344 WARN Unknown file catogory preIncludeLocal, Group: Unity, Class: Test, in: Component, Package: Unity, Vendor: Arm-Packs
Sep 30 00:51:33.379 WARN No Core found!, Package: CMSIS, Vendor: ARM

Old post I know, but I just ran into the same issue. I needed to update pyocd first, then pyocd pack update.
I had just updated the pack listing on the older version so didn't think of that at first.
Once the update was complete on the current version I could find samd51 just fine.


BMC web session security test and automation

[x] Test Plan
[x] Test and verify
[x] Automation

@joseph-reynolds and I'll work on this one and see what we use cases we can add here

Test plan

[ ] 1.  Login to BMCweb using Invalid credentials

Wrong password
Wrong user name

[ ] Access unsecured   http:///redfish/v1

Add more as we discuss

Here are some more test case ideas for Redfish security scenarios:

name: create many multiple concurrent Redfish sessions, then try using the first session
tags: ["stress", "bmcweb", "security"]
name: establish a Redfish session, wait for it to time out, then try to use it
tags:  ["bmcweb", "security"]
name: Create many bmcweb redfish sessions until the BMC crashes (DOS attack)
tags: ["stress", "bmcweb", "security"]
name: Authenticate to Redfish, then log out and attempt to use the session
tags:  ["bmcweb", "security"]
name: Login and check HTTP response headers:
data: various, see Redfish SessionService, X-Auth-Token
for examples, see https://github.com/openbmc/bmcweb/blob/master/include/security_headers_middleware.hpp
tags:   ["bmcweb", "security"]

If phosphor-webui is configured into the OpenBMC image, validate HTTP response headers for URI=/index.html.  For example, the HTTP response should have correct content for the following headers: Content-Security-Policy, Strict-Transport-Security, etc.
Here are some more test ideas, partially coded in Robot:
HTTP Wrong Port 433 Bad Request
    [Documentation]  Ensure http fails on port 433
    [Tags]  Test_Http_Wrong_Port_433
    Create Session  openbmc  http://${OPENBMC_HOST}:443  max_retries=0
    ${resp}=  Get Request  openbmc  /
    Should Be Equal As Strings  ${resp.status_code}  ${HTTP_BAD_REQUEST}

HTTPS Wrong Port 80 Fails Protocol
    [Documentation]  Ensure https fails on port 80
    [Tags]  Test_Https_Wrong_Port_80
    Create Session  openbmc  https://${OPENBMC_HOST}:80  max_retries=0
    Run Keyword And Expect Error   SSLError: *UNKNOWN_PROTOCOL*
    ...  Get Request  openbmc  /

Unauth POST Access
    [Template]  Unauth POST ${path} Returns ${result}
    /                     ${HTTP_METHOD_NOT_ALLOWED}
    /index.html           ${HTTP_METHOD_NOT_ALLOWED}
    /xyz                  ${HTTP_METHOD_NOT_ALLOWED}
    /login                ${HTTP_BAD_REQUEST}
    /logout               ${HTTP_BAD_REQUEST}
    /redfish/v1/SessionService/Sessions
    ...                   ${HTTP_BAD_GATEWAY}

Awesome.. perhaps once the above base code commit goes in , you can push the above changes @joseph-reynolds

Login to http unsecured https://gerrit.openbmc-project.xyz/#/c/openbmc/openbmc-test-automation/+/17996/

The initial test code are in place, so u can go ahead and add ur code there
https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/service_root/test_service_root_security.robot
@joseph-reynolds may be time to push ur code there.. let me know when ready on gerrit..

Added for Redfish Login Using HTTPS Wrong Port 80 Protocol
https://gerrit.openbmc-project.xyz/#/c/openbmc/openbmc-test-automation/+/18124/
Take a look @joseph-reynolds

Split part of work done https://github.com/openbmc/openbmc-test-automation/issues/1629  for the sprint

Multiple session test https://gerrit.openbmc-project.xyz/#/c/openbmc/openbmc-test-automation/+/18555/

Expired session test https://gerrit.openbmc-project.xyz/#/c/openbmc/openbmc-test-automation/+/18569/

name: create many multiple concurrent Redfish sessions, then try using the first session
tags: ["stress", "bmcweb", "security"]
name: establish a Redfish session, wait for it to time out, then try to use it

The BMC web expiry is for like 1 hour and not configurable, so I have manually create session and check post 1 hour and it exits cleanly if not used the same session token.
So this is not ideal for test to wait on.

name: Create many bmcweb redfish sessions until the BMC crashes (DOS attack)
tags: ["stress", "bmcweb", "security"]

This i tested by flooding thousands of sessions and it survived more than 8 hours over the weekend.  Existing test can be use to flood this..
https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/service_root/test_service_root_security.robot#L60
User can key in -v LOGIN_SESSION_COUNT:10000 to simulate this. for now 50 session by default in good case

Working on the the above last commit for this task
Check the hard-coded value for 7 of the 8 security headers:
                ```add_header X-Frame-Options deny;
                add_header X-XSS-Protection "1; mode=block";
                add_header X-Content-Type-Options nosniff;
                add_header Content-Security-Policy "frame-ancestors 'none'; default-src 'self' 'unsafe-eval' 'unsafe-inline'";
                add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
                add_header Cache-Control "no-store,no-cache";
                add_header Pragma "no-cache";
                add_header Expires 0;```

But for Content-Security-Policy you only have to check if it is present.


Docu: add hint to gpioCfgClock

As far as I understand the documentation
gpioSetPWMfrequency(25, 100000); // Set GPIO25 to highest frequency.
will set the PWM frequency to 40kHz. I suggest to add "40kHz" instead of highest freqency + add gpioCfgClock before


Ndd nostr nip-05 json

Should allow for savingsatoshi to have its own nip-05

FYI we created a nostr account! npub1vy6wcgw6jhhtcmpawvlnsfx7g8qt8r40z7qlks9zwa4ed57vm5eqx527hr


adapt functions for non-LC systems.

Functions in compare_model.py:

get_summary_perf_tables, use result directory instead of collection names and bucket
get_best_models_info, use result directory instead of collection names
get_best_perf_table, use result directory instead of collection names
get_tarball_perf_table, add this new function to directly extract model performance from a model tarball.

Functions in model_pipeline.py:

retrain_model, use result directory instead of collection names

To fix the zero standard deviation error of computed descriptors, the following changes were made:

In transformation.py, within the class NormalizationTransformerMissingData, two new functions transform and transform_array were added to overwrite the corresponding functions in DeepChem code. In the function transform_array, a new variable X_weigth was created to make the numerator where the stds were zero also zero. In this way, the calculation won't throw out a NaN.
In featurization.py, function create_feature_transformer, the transformer_x which was generated from DeepChem transformer before was replaced by the new modified class NormalizationTransformerMissingData as above.


LIR test, too optimistic

As we only use already defined "names" the LIR test in stop mode is too optimistic.
And it only provides one result. Shouldn't we use (for some tests more results (e.g. 10)  and perhaps truncate the query by 10%?

It really produces only one result, even when I ask for 10.


[test] Scalability runner metrics

What type of PR is this?
/kind feature

What this PR does / why we need it:
Adds scalability runner measured metrics, a set of measurements results extracted from the API events monitored by the runner which can be easily used to detect regressions in kueue's scheduling.
Currently a summary is generated like:
clusterQueueClasses:
  cq:
    cpuAverageUsage: 358300
    cpuUsed:<PHONE_NUMBER>00
    firstEventTime: "2024-04-17T13:07:53.831208896+03:00"
    lastEventTime: "2024-04-17T13:13:37.48321136+03:00"
    nominalQuota: 600000
workloadClasses:
  large:
    averageTimeToAdmissionMs: 8288
    averageTimeToFinishMs: 9292
    count: 1500
    totalEvictions: 0
  medium:
    averageTimeToAdmissionMs: 77447
    averageTimeToFinishMs: 77951
    count: 3000
    totalEvictions: 1
  small:
    averageTimeToAdmissionMs: 214757
    averageTimeToFinishMs: 214962
    count: 10500
    totalEvictions: 8

The checker will  verify
clusterQueueClassesMinUsage:
  cq: 10
# the value needs to be adapted based on a set of CI run results
# computed as summary.clusterQueueClasses[<cq-class>].cpuAverageUsage * 100 / summary.clusterQueueClasses[<cq-class>].nominalQuota

wlClassesMaxAvgTimeToAdmissionMs:
  large: 3600_000
  medium: 3600_000
  small: 3600_000
# the value needs to be adapted based on a set of CI run results
# compared against summary.workloadClasses[<wl-class>].averageTimeToAdmissionMs

Which issue(s) this PR fixes:

Relates to #1912
Special notes for your reviewer:
Please let me know if you can think of additional measurements we can do and worth monitoring in CI.
Does this PR introduce a user-facing change?

None

/hold
for #1931

/unhold
/cc @alculquicondor

/lgtm

Can you add to the README how I would create a new test case?

Depending if you don't need checking you'll just need to change default_generator_config.yaml  and probably just run make run-scalability since the range spec may not fit.
Both the runner and checker support working with different files but I did not do that in the Makefile yet, and we are able to define multiple "profiles", however since this pr is not that close to this kind of change  lt's do the doc and potentially Makefile update  in a follow up.

Please do
/lgtm
/approve


Topic:Adding marquee effect announcement bar for latest offers

Describe the types of topics you'd add in our Website
To enhance user engagement, adding a marquee effect for displaying the latest offers at the top of the website would be beneficial. This dynamic scrolling announcement bar can highlight special deals, promotions, or important updates in a non-intrusive manner. It helps grab users' attention without overwhelming the page design. This feature could be customized to pause on hover and include links to detailed offer pages for better interaction.
Could you share some screenshots or a video of your previous work?
No response
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC-24-extd contributor
[X] Soon, I'll complete it and create a Pull Request.

Hi @sadafhukkeri! Thanks for opening this issue on Ratna Supermarket. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible.


Bump mimemagic to 0.3.6

Context
All previous version have been removed from rubygems
see https://github.com/minad/mimemagic/issues/97
Changes proposed in this pull request
Bump mimemagic to 0.3.6

You may want to look at licensing implications of this, as MimeMagic was relicensed as GPL2 in that release. I'm working on a resolution to the underlying issue that caused that change of license at https://github.com/jellybob/mimemagic/issues/1 which will allow it to remain MIT licensed.

Thanks for the message @jellybob. Appreciate what you're doing. We'll revisit this in the morning.


Support SameSite flag in cookies

See https://github.com/slimphp/Slim/pull/2388

Migrated to https://github.com/slimphp/Slim-Psr7/issues/9


Exception in Twitter.php line 297:

Whoops, looks like something went wrong.
1/1
Exception in Twitter.php line 297:
[0] Unknown error
in Twitter.php line 297
at Twitter->query('statuses/home_timeline', 'GET', array('count' => '20', 'format' => 'json'), false) in Twitter.php line 316
at Twitter->get('statuses/home_timeline', array('count' => '20', 'format' => 'json')) in StatusTrait.php line 58
at Twitter->getHomeTimeline(array('count' => '20', 'format' => 'json')) in Facade.php line 237
at Facade::__callStatic('getHomeTimeline', array(array('count' => '20', 'format' => 'json'))) in PageController.php line 225
at PageController->get_test(object(Request))
at call_user_func_array(array(object(PageController), 'get_test'), array(object(Request))) in Controller.php line 55
at Controller->callAction('get_test', array(object(Request))) in ControllerDispatcher.php line 44
at ControllerDispatcher->dispatch(object(Route), object(PageController), 'get_test') in Route.php line 189
at Route->runController() in Route.php line 144
at Route->run(object(Request)) in Router.php line 642
at Router->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request)) in SubstituteBindings.php line 41
at SubstituteBindings->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in VerifyCsrfToken.php line 65
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in StartSession.php line 64
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Router.php line 644
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 618
at Router->dispatchToRoute(object(Request)) in Router.php line 596
at Router->dispatch(object(Request)) in Kernel.php line 268
at Kernel->Illuminate\Foundation\Http{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Kernel.php line 150
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 117
at Kernel->handle(object(Request)) in index.php line 53

Also getting this error
[2017-04-05 19:32:56] production.ERROR: Exception: [0] Unknown error in /var/www/production/laravel54/vendor/thujohn/twitter/src/Thujohn/Twitter/Twitter.php:297
Stack trace:
#0 /var/www/production/laravel54/vendor/thujohn/twitter/src/Thujohn/Twitter/Twitter.php(316): Thujohn\Twitter\Twitter->query('direct_messages', 'GET', Array, false)
#1 /var/www/production/laravel54/vendor/thujohn/twitter/src/Thujohn/Twitter/Traits/DirectMessageTrait.php(50): Thujohn\Twitter\Twitter->get('direct_messages', Array)
#2 /var/www/production/laravel54/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(221): Thujohn\Twitter\Twitter->getDmsIn()

Closing this due to inactivity. Please let me know if you are still having an issue and i'll reopen.


post.content (and all other variables) should not return HTML strings, only text

The post.content variable returns an HTML string. Based on the principles of Timber, I think that Timber should never return HTML strings, because HTML must be managed by the web designer through the Twig templates. In this case the web designer has no control over HTML elements. I would like all Timber variables to return only text strings (eg URLs, classes, etc.).
Expected behavior
Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin’ caught in the rain.)
Actual behavior
Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin’ caught in the rain.)
What version of WordPress, PHP and Timber are you using?
WordPress 4.9.2, Timber 1.6.0
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)
WP.org

I agree with you that the cleanest way to use Twig would be if you wouldn’t have HTML in any variables. But in the context of WordPress, this is not really possible, especially with the post content. Many plugins use the post content to insert HTML through shortcodes or other methods. Look at WooCommerce, it displays a whole shop with cart and checkout process in post content. And up until now, there wasn’t really another way for plugins to insert HTML in a way that is compatible with most themes. Maybe we’ll have more control with Gutenberg. We’ll see soon.


Remove extended font checkbox

The extended font feature was considered in 2013 but never implemented. The checkbox currently serves no purpose. Other PRs to remove the attribute will follow.
https://trello.com/c/n7sDkqpf

this fails: test/integration/artefacts_api_test.rb:78


access to the uiimageview

Is there a way to access the uiimageview of the alert? I want to use face detection but dont know how to access the uiimageview to add the func i need.

you should have access to var circleIconView : UIView?

How would i use it? Do i do something after let dropAlert = SCLAlertView(appearance: alertAppearance)? I have tried dropAlert.circleIconView but that doesn't work. I apologize if this is a bad question.


Installing openscad in ARM chroot

Most of the support and underlying library packages are available but it looks like apt-get cannot find any installation candidate for the openscad package on my (arm) Asus Flip.
Does anyone here know of a suitable installation package or had experience building this from source?
TIA

@raygeeknyc,
Just googling now, it seems launchpad failed to build on armhf:
https://launchpad.net/ubuntu/+source/openscad
I'm not a user of openSCAD though, it needs openGL/EGL implementation with Qt? If so, our Rockchip rk-3288 might not accept for required components to run properly because we usually launch X11 window system with modesetting or fbdev user-space driver without any openGL/EGL implementations handled by DRI2, those drivers surely will take us to "fallback" Software-Rasterizer rendering mode instead of glamorEGL stack. It means GL/EGL performance got really unacceptable in any cases...
However, we might be able to build from srouce on our rk-3288 with some libgl1-mesa-* packages. But after reading above launchpad log, we, at least on my Xenial, need to write some patches to fix up build with onepGL/EGL on armhf architectures.
As known well, Mali closed-source GLES libraries could run 3D-acceleration on rk-3288 (Mali T-764 Graphics). But it only provided GLES runtime, not GL/EGL. Indeed, it still lacks DDX today...
Although I've never tried to build it from source, it sounds too hard to succeed building for me, additionally, it seems too difficult to run openSCAD normally on my Flip as well. I'm sorry I could not answer your issue clearly.
Regards.


Setup Polling Loop

Put an infinite loop somewhere

Set up some code that, when it receives a configured secret block, will continuously poll that secret and call the pre hooks, filesystem updater, and post hooks

Done


Multiselect with Ctrl+n, background is transparent?

Hi, thanks for theme, it's really cool.
When i select with ctrl+n in nordic

And onedark

I am assuming you are using vim-visual-multi, which we currently don't support. This weekend I will install the plugin and find the right highlight, if you would like to do it your self I think this is the related documentation:
https://github.com/mg979/vim-visual-multi/blob/a6975e7c1ee157615bbc80fc25e4392f71c344d4/doc/vm-settings.txt#L207
Also, for future reference, please include the name of the plugin you are using so maintainers don't have to search through your GitHub to find your config and then search through that to find what plugins you are using.

Thank you

I have no idea what the issue is (was), but it is fixed in the dev branch.
update this line in your config to the following:
Plug 'AlexvZyl/nordic.nvim', { 'branch': 'dev' }

It should be fixed on main with the next release (#144). After that I will close this issue assuming everything is still working.

Thank you, used dev branch, and now it's highligted.

FYI dev got merged :)


Issue #100 Add wget Header option to avoid ERROR 403.

Also add status check, turn off the verbose output
Signed-off-by: Sophia Guo<EMAIL_ADDRESS>

It's intermittent failure. I tried a few times seems good.


Support setting dynamic metadata from external ratelimit service

It is possible to set dynamic metadata from external authorization service responses, but not from the ratelimit service. Let's make it possible in the ratelimit service. This will allow users to log that metadata in the access log, or pass the metadata along to other filters to do interesting things.

/assign


dispatchEvent inconsistencies  with <f:Screen> & <f:PanelScreen>

My current project uses both Screen and PanelScreen as views. Just noticed that Screen uses dispatchEvent(starling.events.Event) while PanelScreen uses dispatchEvent(flash.events.Event).
This is a bit of a problem when expecting a specific event in mediators etc.

Both classes use starling.events.Event. They're both Starling display objects, so it would be impossible to dispatch flash.events.Events from either one of them.

Perhaps I didn't explain it correctly (apologies)
Here's 2 screenshots showing the problem. Note the highlighted error. in both cases i haven't imported any Event classes, so you can see how the 2 screens expect different Event types (starling vs flash)
If I import starling.events.Event the error will reverse.

Does that make sense?

Ah yes, you need to explicitly write;
dispatchEvent(new starling.events.Event( starling.events.Event.COMPLETE))
I think this is a limitation of the compiler trying to automatically say its a Flash event.

This is most likely a false error from your IDE. The Flex SDK automatically imports flash.events.Event in any MXML file (even if you don't import this class in your fx:Script element), so IDEs expect that behavior. The Feathers SDK does not import flash.events.Event automatically in MXML files. Instead it imports starling.events.Event. IDEs don't expect that, so their internal model of what has been imported in an MXML file can be wrong.
The compiler should be able to compile the code without error, even if your IDE thinks its wrong. To make the IDE happy, you can use the fully qualified class name. It's not required, though.

A good basic rule to keep in mind when using the Feathers SDK with a Flex IDE is that you shouldn't always trust the errors shown in the editor. Double-check that the compiler gives you the same error.

You're correct, it does compile properly even though fully-qualified still shows error. - I'll make a mental note moving forward ;) - Thanks guys :)
BTW. IDE is Intelli-J

I only said fully qualified because I can't stand red in the IDE. :) But yeah I forgot it compiles fine without out it.

Oh that's why Intellij highlight starling event in gray like unusing


Drush Alias is not appearing

See: #13
I just built this project using PHP 5.6, after adding the following to my docker-compose.yml file:
php:
image: wodby/drupal-php:5.6 # Allowed: 7.0, 5.6.
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
PHP_XDEBUG_ENABLED: 1 # Set 1 to enable.
PHP_SITE_NAME: mydrupalsite.dev
PHP_HOST_NAME: localhost:8000
PHP_DOCROOT: www #set this the same as NGINX_DOCROOT
Using the drush alias commands result in:
 [error]  Could not find the alias @mydrupalsite.dev
Shelling into the PHP container, I could not locate a drush alias file anywhere in the home directory for the PHP user.
Please advise.

You can find drush alias in the /etc/drush/site-aliases/default.aliases.drushrc.php.
Also, be sure, you pulled the latest wodby/drupal-php image (i.e docker-compose up).


non-trivial AST breaks the coproduct derivations

I extended the sexp.scala with a non-trivial AST https://github.com/fommil/shapeless/blob/sexp_ast/examples/src/main/scala/shapeless/examples/sexp.scala
(copied to https://gist.github.com/fommil/1552641fad3daf36b8af for posterity)
but I see this compilation error
[error] examples/src/main/scala/shapeless/examples/sexp.scala:171: unreachable code
[error]   val complex = SexpConvert[TokenTree]
[error]                            ^

The AST is a little simpler than the one I actually wanted to test, but I don't expect the simplifications to be relevant to shapeless.
UPDATE: the break seems to be on the final item, remove with Term from the definition of QualifierToken and it seems to compile. So it looks like multiple inheritance is flagging up a bug.

@milessabin FYI, initial performance tests on JSON data at my work (100GB of data from 7m documents, not the AST in this report) suggest that this approach is on-par with super-optimised-to-hell-and-back hand-crafted spray-json marshalling.
w00t! :grinning:
(i.e. about 20,000 deserialisations / second). The hand-crafted spray-json finished in 256s and the Spray JSON based on sexp.scala took 271s (so a computer scientist's same order of magnitude, but basically the same number to an astrophysicist like me)
I did this in three forms:

assigning all marshallers to implicit vals so everything is precomputed (340s) (no idea why this is slower)
assign just the top level sealed trait to an implicit val (271s)
no assignation to implicit val... everything is calculated when needed for every document (???s)

I'll do a YourKit profile sometime soon, and look at serialisation as well. (BTW, we got gratis YourKit licenses for use in ENSIME, you could easily get the same.)
When I release the Spray JSON code, I'll cook up some scalacheck powered performance tests so that you can grin all the way to the cheese shop (or that nice icecream shop by the pier, since it's nearly summer).

I've just tested the gist you posted and this now appears to compile and run, most likely as a result of the fix for #370, given your comment in the update above.

Well, I meant that a PR wasn't the right way to report a bug, but now it's not a bug a PR is just fine :-D
So, can I infer from that that you're happy that this issue can be closed as fixed?

I've not had a chance to run it yet, but fit works for you then sure close :-)


France Central/South Regions

It would be great to add these 2 new regions.

Need this

Hello @alaatm and @andreujuanc , thanks for raising this issue.
France Central is added
I do not have access to France South so I can not add it, all speed tests require storage account created in target region with configurations.

Nice! Thanks!!


Don't prompt before unload while in SpecRunner

Fixes #13963
Tested manually by:

Opening test runner and navigating between the tabs and confirming that the prompts do not pop up anymore.

Opening dev tools and trying window.location.pathname = 'https://google.com' to see that the prompt still pops up

Signed-off-by: petetnt<EMAIL_ADDRESS>

@petetnt Thanks for taking care of this.


Refactor linkerd package structure

Created namer-core project (io.buoyant.namer) outside of linkerd and moved
namer code out of linkerd-core for eaiser reuse.
Moved linkerd-config project to a top level project called config (io.buoyant.config) for easier reuse.
Created a top level project called admin (io.buoyant.admin) and moved non-linkerd specific admin code out of linkerd-admin for easier reuse.

:star: :racehorse: Looks good to me -- thanks for updating.

:star:


TapToPlace.StartPlacement Ignored if Called Before Start

Describe the bug
If StartPlacement is called on TapToPlace before the TapToPlace component has started, the request will never be fulfilled and no error is generated.
This is due to an If condition in the Start method of TapToPlace. The condition checks to see if AutoStart is false. If AutoStart is false, SolverHandler.UpdateSolvers is also set to false.
Expected behavior
In Unity it's not very easy to control the starting order of behaviors. Therefore, a behavior that references and uses TapToPlace may get started before TapToPlace itself. If the controlling behavior calls StartPlacement before TapToPlace has started, I would expect TapToPlace to begin working once it has started.
One may ask "Why not just set TapToPlace.AutoStart to true?" The problem is that the controlling behavior may decide whether to start in Placing mode or Creating mode based on previously saved data. Therefore whether or not TapToPlace should start is up to the calling component. If the calling component just sets AutoStart = true in this case, that may not work either if TapToPlace was actually started first.
Your setup (please complete the following information)

Unity Version 2019.2.21f1
MRTK Version 2.4

Target platform (please complete the following information)

HoloLens 2

Tagging as help wanted since this should be a good first issue to pick up.

A simple and dirty delay of 10 ms between component activation and StartPlacement() seems to be a working workaround.

The start order and length of start time will vary by each machine. I do not believe that a hard-coded delay of 10 ms will solve this problem for good.
A more resilient approach IMO would be a way of knowing if the behavior has been Started. In StartPlacing, if the behavior hasn't started the method would set a flag called startRequested. This flag would be checked during Start. Or something similar to this.


Bump go version to 1.19.x

Should we automate this at some point?
/lgtm
/approve

Should we automate this at some point?

I think the simple thing would be to create a knative re-usable install go action where we set the default


[W04H03] Added more quickhull tests

Hey @HendrikHuebner 👋 I have not reviewed the content of you PR but the one check is failing because you are using round brackets instead of square brackets. So changing "(w04h03)" to "[W04H03]" would pass the check 👍

Fixed it.


Basic layout 1: Grid Layout

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout
https://web.dev/learn/css/layout/
https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Grids


Admin password authentication failing

Hi,
While setting a minimum mongodb cluster using
juju deploy mongodb  --channel dpe/edge -n 2
Two nodes are created.
If going into one the node and call mongosh I can get in on test db.
But nothing is available, most of commands endup with
test> show users
MongoServerError: not authorized on test to execute command { usersInfo: 1, $db: "test" }

On the host calling juju run-action <app>/<id> get-admin-password --wait
returns a hash admin password
But using that password like mongosh -u admin -p <password> admin/test/whatever
Endup with
Enter password: ********************************
Current Mongosh Log ID:	6329bff224bcc0f61fe20af7
Connecting to:		mongodb://<credentials>@<IP_ADDRESS>:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.6.0
MongoServerError: Authentication failed.

How do I get in with credentials (admin) or other user because nothing is available
Regards,
David

Hi David,
I appreciate you looking into this and filing an issue. You've written such a clear message, thank you so much! Now let me get to your points :)

"If going into one the node and call mongosh I can get in on test db.
But nothing is available, most of commands endup with

test> show users
MongoServerError: not authorized on test to execute command { usersInfo: 1, $db: "test" }

"
This is expected behaviour. You are attempting to access MongoDB without the password, without the password you will not be able to perform many commands.

"On the host calling.... ... How do I get in with credentials (admin) or other user because nothing is available"
Your intuition is correct here to use mongodb with password 😄 , but it appears that you are using the incorrect connection string.

The connection string should be of the form:
mongodb://admin:<password>@<host1>,<host2>/<database>?replicaSet=<app name>

value for  is retrived by juju run-action <app>/<id> get-admin-password --wait
values for  and  are the IPs that can be seen when performing juju status
value for  is traditionally admin
value for  matches whatever you deployed the app as. In your example it should be mongodb

ie it should look like:
mongodb://admin:<password>@<IP_ADDRESS>,<IP_ADDRESS>/admin?replicaSet=mongodb

If you'd like to see how we generate them in our charm you can take a look here and use that as an example for creating your connection string.
Once you have the correct connection string you can connect with either PyMongo or with mongosh <connection string>
You can read more on the mongo shell on the MongoDB 4.4 documentation here.
I hope this helps :)

Thanks very much for all those details. Very much appreciated. :)


PHP Artisan Optimize - Timed out?

Hi Guys.
I am trying to install a package via composer, but everytime it get to the 'artisan optimize' part it fails with the following error:
c:\wamp\www\adam\L4>composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Generating autoload files
Generating optimized class loader...
[Symfony\Component\Process\Exception\RuntimeException]
The process timed-out.
optimize
Script php artisan optimize handling the post-update-cmd event returned with an
error:
[Symfony\Component\Process\Exception\RuntimeException]
The process timed-out.
optimize

I know that this thread is old, and hopefully you've guys already solved it, but people arriving in this thread may be intrested in trying to adjust the "process-timeout" value in the Composer.json-file.
"config" : {
    "process-timeout": 0
  }

@jeliasson worked for me thanks! :+1: :smile:

had the same problem. Cost me two days to figure out.
Mine is because the APCu extension. Change apc.enable_cli to 0 then it worked.
I am using php 5.5.28 and windows 10, however in windows 7 is fine with the same configuration. So check your php.ini configuration.

If you have done what @jeliasson suggested and still it doesn't work, check you're not running a debugger.
I'm use PhpStorm and if the Xdebug debug is running php artisan optimize will run out.

@troccoli your solution worked for me. thanks

@troccoli  worked for me, thanks~

had the same problem. Cost me two days to figure out.
Mine is because the APCu extension. Change apc.enable_cli to 0 then it worked.
I am using php 5.5.28 and windows 10, however in windows 7 is fine with the same configuration. So check your php.ini configuration.

Thanks！ Following  your  opinion,I  had  soved my  problem.

If you have done what @jeliasson suggested and still it doesn't work, check you're not running a debugger.
I'm use PhpStorm and if the Xdebug debug is running php artisan optimize will run out.

Absolutely right @troccoli!


Download Images of Finding via API

Is your feature request related to a problem? Please describe
Where can I download the images that are returned in a Finding by the API?
Retrieving all Findings of an Engagement:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Token XXX' 'https://xxx/api/v2/findings/?test__engagement=3'

The result will contain all images (probably the ids) on a specific Finding. How can I download the images via API?
{
      "id": 1,
      "images": [
        2
      ]
}

Describe the solution you'd like
I would like to download the Images of a Finding via API.

This has been addressed in #1515 and is now possible in the dev branch.

Nice, thanks!

I looked into the PR. That code tackles the problem, that I do not know the url of the image. But how can I download the image with my API Token?
I think it is now only possible via url with a valid session cookie.

You should give it a try without a session cookie ;)

@no-sec-marko That does not work. If I download the image without attached session cookie defect-dojo redirects to the login page.
Furthermore I tested the request with Auth Header and the API Token, but without success.

Please check #1532.

Thanks for the quick implementation :)
API now returns the images as base64 String. Perfect!
Is it currently expected behavior, that the images are not displayed in the overview?

I tried it with the following steps:

checked out the PR
docker-compose build
docker-compose upl

The PR doesn't change anything about this, but image access needs some overhaul anyway, which I did as part of implementing the new permission system in #1362.

okay, thanks


Parse options

This PR introduces the concept of parse options which are common to all of our APIs. Consequentially, this changes a ton of APIs. I'm sorry about the churn. I'm hopefully that this is the last public API change before Ruby 3.3.0. The options that it introduces can be fed through all of the Ruby APIs, the C APIs, and the FFI APIs. I'll show how below.
First off, here are the APIs that are impacted:

Prism::parse(source, **options)
Prism::parse_file(filepath, **options)
Prism::lex(source, **options)
Prism::lex_compat(source, **options)
Prism::lex_file(filepath, **options)
Prism::parse_lex(source, **options)
Prism::parse_lex_file(filepath, **options)
Prism::dump(source, **options)
Prism::dump_file(filepath, **options)
Prism::parse_comments(source, **options)
Prism::parse_file_comments(filepath, **options)

The options that are supported:

filepath - the filepath of the source being parsed. This should be a string or nil.
encoding - the encoding of the source being parsed. This should be an encoding or nil.
line - the line number that the parse starts on. This should be an integer or nil. Note that this is 1-indexed.
frozen_string_literal - whether or not the frozen string literal pragma has been set. This should be a boolean or nil.
suppress_warnings - whether or not warnings should be suppressed. This should be a boolean or nil.
scopes - the locals that are in scope surrounding the code that is being parsed. This should be an array of arrays of symbols or nil.

In C, this means a couple of APIs have changed:
-PRISM_EXPORTED_FUNCTION void pm_parser_init(pm_parser_t *parser, const uint8_t *source, size_t size, const char *filepath);
+PRISM_EXPORTED_FUNCTION void pm_parser_init(pm_parser_t *parser, const uint8_t *source, size_t size, const pm_options_t *options);

-PRISM_EXPORTED_FUNCTION void pm_parse_serialize(const uint8_t *source, size_t size, pm_buffer_t *buffer, const char *metadata);
+PRISM_EXPORTED_FUNCTION void pm_serialize_parse(pm_buffer_t *buffer, const uint8_t *source, size_t size, const char *data);

-PRISM_EXPORTED_FUNCTION void pm_lex_serialize(const uint8_t *source, size_t size, const char *filepath, pm_buffer_t *buffer);
+PRISM_EXPORTED_FUNCTION void pm_serialize_lex(pm_buffer_t *buffer, const uint8_t *source, size_t size, const char *data);

-PRISM_EXPORTED_FUNCTION void pm_parse_lex_serialize(const uint8_t *source, size_t size, pm_buffer_t *buffer, const char *metadata);
+PRISM_EXPORTED_FUNCTION void pm_serialize_parse_lex(pm_buffer_t *buffer, const uint8_t *source, size_t size, const char *data);

-PRISM_EXPORTED_FUNCTION void pm_parse_serialize_comments(const uint8_t *source, size_t size, pm_buffer_t *buffer, const char *metadata);
+PRISM_EXPORTED_FUNCTION void pm_serialize_parse_comments(pm_buffer_t *buffer, const uint8_t *source, size_t size, const char *data);

Written another way:

pm_parser_init now accepts a const pm_options_t *. This is a pointer to a (usually stack-allocated) options struct that contains all of the values that we accept. You can see the docs/diff to see how to set one up. The pointer can be NULL, so if you were never passing anything to this function you don't need to change anything. If you were only passing a filepath, then you can get there with:

pm_options_t options = { 0 };
pm_options_filepath_set(&options, filepath);

pm_serialize_parse, pm_serialize_lex, pm_serialize_parse_lex, and pm_serialize_parse_comments - these functions all had different signatures/naming conventions. Some of them accepted data, some didn't. It was very confusing. Now all of their signatures line up, such that they accept buffer, source, size, and data. data is an optional pointer to a serialized options struct. For how to serialize you can check the docs or see how ffi.rb does it. I'll copy it in here for clarity as well:

# bytes
field

4
the length of the filepath

...
the filepath bytes

4
the line number

4
the length the encoding

...
the encoding bytes

1
frozen string literal

1
suppress warnings

4
the number of scopes

...
the scopes

Each scope is layed out as follows:

# bytes
field

4
the number of locals

...
the locals

Each local is layed out as follows:

# bytes
field

4
the length of the local

...
the local bytes

Again, sorry for this churn. But hopefully this is the last interface change for a while. And if we need to add more options, we now have the capability to do that without impacting other APIs since they are now consolidated.
I wasn't entirely sure how Java wanted to handle the start line option, so I've left it on the Nodes.Source object so that callers will have visibility. If we want to do more with it we can do it in follow-up PRs.
Fixes #1639
Fixes #821
cc @enebo @eregon @seven1m

I wasn't entirely sure how Java wanted to handle the start line option, so I've left it on the Nodes.Source object so that callers will have visibility. If we want to do more with it we can do it in follow-up PRs.

That's perfect. In TruffleRuby we just keep a line offset per source as Truffle APIs do not support negative line numbers.


feat: add Marko example and include code coverage for Marko files

Description

Adds Marko to the list of supported frameworks (with an example).
Enables code coverage for Marko files by default.

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[ ] It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
[ ] Ideally, include a test that fails without this PR but passes with it.
[x] Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Tests

[x] Run the tests with pnpm test:ci.

Documentation

[x] If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

[x] Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

Rebased, hopefully that's helpful @sheremet-va

Marko fails when we try to update dependencies in #5123
Do you have any ideas why might that be?

@sheremet-va could you link the failure? Having a hard time finding it

@sheremet-va could you link the failure? Having a hard time finding it

https://github.com/vitest-dev/vitest/actions/runs/7886477789/job/21519783838?pr=5123

Regenerating the lock file and/or ensuring there are no duplicates of @babel/types/@babel/traverse will fix it.

Ok, I will try that. Thank you.

@sheremet-va I don't generally use PNPM, but perhaps the dedupe command would do the trick here?

@sheremet-va I don't generally use PNPM, but perhaps the dedupe command would do the trick here?

Looks like it's working, thank you 🙏🏻


Add API for getblockheader

GetBlockHeader returns the serialized blockheader.
GetBlockHeaderVerbose returns the data structure with information about
the blockheader.
Fixes #89

I checked out this branch and tested it against bitcoin core, works great!


updated language comments

I've updated the language comments for the .bats filetype. .bats is bash based, so comments are # and not // and /*.
I also updated the changelog to bump the version number a minor version. I've left edits enabled tho so you can do whatever you want with this.
Great extension though!

Hi,
Sorry, for the late anwser, I've missed the notification.
It looks great, thank you.
I didn't check the all language-configuration.json file, thank you for that.
I will test, merge, deploy on the marketplace on my free time.
Best
J-Et.

Hi,
I had a fiew minutes off so i did it now to not forget to do it later.
It's updated on the marketplace, should appear within a fiew minuts.
I've added you in the human.txt
Regards.
J-Et.


[Rejected Offers: 2/2] DCOS-10994: Implement rejected offers view components

Depends on https://github.com/dcos/dcos-ui/pull/1373 (this PR will be much smaller when that merges)
This PR implements the rejected offers view components.

This needs a rebase!

@mlunoe Rebased!

There were some issues with the DeclinedOffersUtil which resulted in wrong outputs that #1425 addresses. Please rebase this one once that PR is merged.
Unfortunately there is also another case that needs to be handled. Please "x" all the other rejection reasons, if an offer doesn't match the required role as resources are always matched against the role first and thus never match in those cases. Otherwise the result is somewhat confusing as in the following screenshot:

Please also add the requested and offered role to the tooltip in that case.
/cc @leemunroe @pyronicide @unterstein

@orlandohohmeier So are you saying I should remove the tooltip and force the red "x" for any rejection reason that follows the role column, if the role was rejected?

@jfurrow I wouldn't remove the tooltip but extend it to include the role information.

@orlandohohmeier This is done! After working with @leemunroe, here's what we came up with:

@jfurrow Looks great, and works well. Great job! 💯 ✨


Somethign wrong when upgrading from 2.0.2 to 2.0.3

Hello,
in 2.0.2,
File $container->filename - had filename of the uploaded file; now it is null (in 2.0.3)
What is the correct way to get uploaded filename?
Thanks

In what exact situation? Succesful upload, or one with errors?

Did a quick check, but nothing significant seems to have changed in that area.
The filename is set at https://github.com/fuelphp/upload/blob/master/src/File.php#L419, and it gets there as long as the file was uploaded without errors and the path the file has to be written to exists and is accessable.
What has changed is that every save step is now only executed if the previous one went ok, as soon as an error occurs the save process stops.

I may have the same issues: https://github.com/fuelphp/upload/issues/14

Think I found it. Is someone able to test this fix, I'm not in a position to atm.

hello,
@WanWizard I can confirm, it works now.
So:
2.0.2 - works
2.0.3 - does not
dev-master - works

Ok, thanks for the quick confirmation, I'll tag 2.0.4.


stuck in continuous loop if connection url is invalid

I'm using socketio-client in my Odoo app,
Expected Behavior:
If url given to SocketIO(URL) is invalid or not connected, it should stop.
Actual Behavior:
If url given to SocketIO(URL) is invalid or not connected, it stuck into a continuous loop and stops the complete application.
Question:
Is there any way to stop SocketIO() from going into the continuous loop and stop after 2 or 3 attempts?

+1


Get the hybrid public key only if key type is HYBRID_ENCRYPT

@yoavamit could you bring this PR up to date so it can be merged please?


Reyanul Abdin Project

API Project

You have to either include a link to your hosted website, or a video demo for it. Include any of it in a README file inside your project folder. Please make a PR again!


Fix Arbitrum price lib curve config

Fixing https://github.com/messari/subgraphs/issues/283

Nice catch!


link bug

Hello, the project page of DreamGaussian4D is https://jiawei-ren.github.io/projects/dreamgaussian4d/
The current link leads to Align Your Gaussians.

fixed!


Fix: Use retryInterval when a monitor is DOWN

⚠⚠⚠ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:

[x] I have read and understand the pull request rules.

Description
Fixes #4025
Type of change
Please delete any options that are not relevant.

New feature (non-breaking change which adds functionality)

Checklist

[x] My code follows the style guidelines of this project
[x] I ran ESLint and other linters for modified files
[x] I have performed a self-review of my own code and tested it
[x] I have commented my code, particularly in hard-to-understand areas (including JSDoc for methods)
[x] My changes generates no new warnings
[ ] My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)
Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.
@louislam @CommanderStorm
Tagging you both as per Contibution Guidelines

Waiting for discussion
All details about the change are mentioned in the issue #4025

@louislam @CommanderStorm
Overall update

POC done. When monitor goes to Down state, beatInterval is set to retryInterval instead of interval
There are console.logs I've added for my debugging. Also, my commits might not be as per the guidelines. I'm willing to remove the console.logs and do commits as per guidelines and force push on this branch.
I've tested on json-query monitor. Should I test all other monitors as well? Is there is any automated way to test all the monitors?
What actions are needed to fulfill the PR Checklist?

Checklist

[ ]  My code follows the style guidelines of this project
[ ]  I ran ESLint and other linters for modified files
[ ]  I have performed a self-review of my own code and tested it
[ ]  I have commented my code, particularly in hard-to-understand areas (including JSDoc for methods)
[ ]  My changes generates no new warnings
[ ]  My code needed automated testing. I have added them (this is optional task)

PS: As this is my first contribution here, I might appear overly excited (and I am).

Given that I think this is partially breaking, I think including this in the v2.0 release could make sense. (if other maintainers disagree, we can push this to a different release)

Though I'm no maintainer, please allow me to still chime in.
From what I see, it is only a breaking-change because it changes the default behaviour from how it worked before (and admin's therefore are used to expect). I think one could mitigate this by introducing a new setting: Settings > General > [x] Use Retry interval instead of Hearbeat Interval while monitor is down. During the migration to v2.0, this setting may then just be removed as it becomes the new default.
My reasoning for this suggestion: The cahnge is "breaking" only very softly and does not come with a great risk. But in turn, you get a massively useful feature that would allow others (and me 😇) to modify some timings in the monitoring for better accuracy and up-to-date information on the state of your machines. The very use case and goal of this amazing piece of software.
TL;DR: it is really a great change with only small implications. I would greatly appreciate it, if it arrived before v2.0. 😊

Thanks for the change to the monitoring behaviour! (idk why I did not merge it in february) 🎉

[!NOTE]
This PR is part of the v2.0 merge window => see #4500 for the bugs that need to be addressed before we can ship this release ^^

All changes in this PR are small and uncontroversial ⇒ merging with junior maintainer approval

Please note that this pull request causes some issues to my old montiors (should be created in Uptime Kuma 1.5.0), so I reverted it.
The monitors' retry_interval are 0 and they are DOWN.


Add FendApp to projects using fend

I've been using fend to create a desktop calculator, which I've used myself for the past few months. I thought you might like to see it!

That looks really cool, thank you!


Updated responsive/breakpoints option to work with slickSetOption.

When working with .slickSetOption, I realized that it was ignoring any responsive options that were updated and set. This code change manages to fix that along with allowing .onBeforeSlide and .onAfterSlide to be used in that responsive option.
Originally, .slickSetOption was completely ignoring the responsive options, and .onBeforeSlide and .onAfterSlide were not being updated on page load, only when the viewport was being resized.
I'm a little iffy on this fix so any feedback would be helpful! Thanks.

Thanks so much for this, @tylerpepper ... it helped me get moving towards the solution I have at https://github.com/simeydotme/slick/commit/406da2cd9a1715a11f3b043a89de3e19afa3a272 -- I'm going to close this one as it is quite out of date now, wouldn't be able to merge without significate work, and also is missing a couple of key things (as mentioned in my commit notes) :smiley:


refactor!: Make the create field types non always nullable

Resolves https://github.com/TriPSs/nestjs-query/issues/78

@TriPSs  Most of the tests of query-mongoose fail with the message
"Exceeded timeout of 5000 ms for a hook.
    Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

It happens also in my local, is it because of my changes.

I didn't try to run/fix the e2e tests. I would like to check with you what you think about this first.
This is also a breaking change and the example from https://tripss.github.io/nestjs-query/docs/introduction/example won't work anymore. It now by default forces the user to explicitly send id, created and updated when creating a to-do item.
How do you want me to change the example from the documentation?

We can update the docs in two ways:

Make all the inputs reflect all the changes
Update all docs with custom CreateDTO

Other thing we need to do is push a conventional commit with BREAKING CHANGE: explanation in it so the publish script will bump it with a major version, as now it will be released as v1.1.7.

I forced pushed my branch to include a commit with BREAKING CHANGE (refactor!: Make create DTO field types non nullable all the time)
I modified the example in docs: Update the documentation to create a custom create DTO, what do you think about it?

@TriPSs About the check that fails (Test / check (16.x, test) (pull_request)), I'm not too sure what is going on. It is passing on my local, and it looks like it failed because of a time-out. It would have tried to re-run them but it seems I don't have the right to do so.
Or is it failing because of my changes?

It's ok that they fail, these indeed don't always succeed in the CI. It always fails to destroy the server because mongo variable is undefined, will probaly create a util for it to only try to destroy it if the variable is not undefined hopefully that will fix it.

Think this is ready to be merged right @ValentinVignal?

Think this is ready to be merged right @ValentinVignal?

@TriPSs If it is fine with you, yes


Command for ignoring retweets of certain users

Commands like:
!retweets off <user>
!retweets on <user>

This should add the user to a db and from then on we can ignore their tweets if we see that it is a retweet (in tweet_util.py)

Is this possible using tweepy api or should we make a list containing user's that have retweets turned off?

Too much effort for now


trigger mismatch with gitea

Hi All,
I get a mismatch with Gitea ( fork for Gogs ). The error that I got is:
[webhook] 2018/11/16 14:00:54 [03205e] simple-pull got matched, but didn't get triggered because the trigger rules were not satisfied
My hook.json:
[
  {
    "id": "simple-pull",
    "execute-command": "/root/pull.sh",
    "command-working-directory": "/root",
    "pass-arguments-to-command":
    [
      {
        "source": "payload",
        "name": "head_commit.id"
      },
      {
        "source": "payload",
        "name": "pusher.name"
      },
      {
        "source": "payload",
        "name": "pusher.email"
      }
    ],
    "trigger-rule":
    {
      "and":
      [
        {
          "match":
          {
            "type": "payload-hash-sha256",
            "secret": "mysecret",
            "parameter":
            {
              "source": "header",
              "name": "X-Gogs-Signature"
            }
          }
        },
        {
          "match":
          {
            "type": "value",
            "value": "refs/heads/master",
            "parameter":
            {
              "source": "payload",
              "name": "ref"
            }
          }
        }
      ]
    }
  }
]

In gitea webhook is this the output:
Request Headers:
Request URL: https://<IP_ADDRESS>:9000/hooks/simple-pull
Request method: POST
Content-Type: application/json
X-GitHub-Delivery: 2e44a307-6443-4acd-8842-a853cd34de48
X-GitHub-Event: push
X-Gitea-Delivery: 2e44a307-6443-4acd-8842-a853cd34de48
X-Gitea-Event: push
X-Gogs-Delivery: 2e44a307-6443-4acd-8842-a853cd34de48
X-Gogs-Event: push

Response Headers
Content-Length: 30
Content-Type: text/plain; charset=utf-8
Date: Fri, 16 Nov 2018 13:00:54 GMT

Body
Hook rules were not satisfied.
I do not understand why the tiggers not mach.
It this good for Gitea?
"name": "X-Gogs-Signature"
And is this the right type?
 "type": "payload-hash-sha256",
Examples that I have used: https://github.com/adnanh/webhook/blob/master/docs/Hook-Examples.md
Any toughs?

I already found the solution:
Several tools rely on standard GitHub webhooks, which include a X-Hub-Signature header to validate the
webhook. Gitea sends the secret in the payload JSON itself, which doesn't work for all services.
Its fix by the follow hook tigger match:
"match":
          {
            "type": "value",
            "value": "mysecret",
            "parameter":
            {
              "source": "payload",
              "name": "secret"
            }

Maybe its good to update the examples with 1 for Gitea?
Ref: https://github.com/go-gitea/gitea/issues/3901


Use minified versions of vendor scripts/css

Update the Grunt configuration to use minified versions of vendor/angular scripts/css.

Due to the recess grunt task unable to parse comments, the bootstrap.css script is not shipped minified.