Clear command doesn’t clear anything

Issue
With aider open, if I type /clear, nothing is cleared until the cli is closed and restarted. Can just run /clear and then ask something with a clean slate. Based on the reaction of the model, there are some context dingleberries there somewhere. Works better after clearing and closing. Curious what the clear command is intended for if one has to exit and come back in anyways.
Version and model info
Latest.

Thanks for trying aider and filing this issue.
What makes you think /clear isn't working? You can run aider --verbose to see exactly what aider is sending to the LLM, to check that /clear is (or isn't) working.

Because after using clear command the model+aider’s behavior doesn’t change
until AFTER the cli is restarted with ctrl-C. Can ask same question and get
wildly different answers (answers that seem to imply availability of the
conversational context that had presumably been cleared). Haven’t tried the
debugging yet. Might tonight or next weekend.
On Sun, Aug 11, 2024 at 1:20 PM paul-gauthier @.***>
wrote:

Thanks for trying aider and filing this issue.
What makes you think /clear isn't working? You can run aider --verbose to
see exactly what aider is sending to the LLM, to check that /clear is (or
isn't) working.
—
Reply to this email directly, view it on GitHub
https://github.com/paul-gauthier/aider/issues/1060#issuecomment-2282829924,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF632FOZ7JKUBPRXJMJHSHTZQ6MM5AVCNFSM6AAAAABMK3WLQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBSHAZDSOJSGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Sorry, I'm not sure I can conclude that /clear isn't working based on that description.
You can see in this log with --verbose that the first chat message is not sent to the LLM after the /clear command:
$ aider --no-git --verbose --mini

...

Aider v0.49.2-dev
Model: gpt-4o-mini with whole edit format
Git repo: none
Repo-map: disabled
Use /help <question> for help, run "aider --help" to see cmd line args
──────────────────────────────────────────────────────────────────────────────────────────────
> hello, this is my first chat message

SYSTEM Act as an expert software developer.
...

USER hello, this is my first chat message

...

Hello! How can I assist you today? If you have any code or requests for changes, feel free to
share!

Tokens: 645 sent, 24 received. Cost: $0.00011 request, $0.00011 session.
──────────────────────────────────────────────────────────────────────────────────────────────
> /clear

──────────────────────────────────────────────────────────────────────────────────────────────
> this is my second chat message

SYSTEM Act as an expert software developer.

...

USER this is my second chat message

SYSTEM
Understood! Please let me know if you have any specific requests or changes you'd like to make
to your code, and I'll be ready to assist you

Sure. That’s why I’m asking you about it, And providing a clarification
that was requested. Thank you for the next steps.
On Sun, Aug 11, 2024 at 1:35 PM paul-gauthier @.***>
wrote:

Sorry, I'm not sure I can conclude that /clear isn't working based on
that description.
You can see in this log with --verbose that the first chat message is not
sent to the LLM after the /clear command:
$ aider --no-git --verbose --mini
...
Aider v0.49.2-dev
Model: gpt-4o-mini with whole edit format
Git repo: none
Repo-map: disabled
Use /help  for help, run "aider --help" to see cmd line args
──────────────────────────────────────────────────────────────────────────────────────────────

hello, this is my first chat message

SYSTEM Act as an expert software developer.
...
USER hello, this is my first chat message
...
Hello! How can I assist you today? If you have any code or requests for changes, feel free to
share!
Tokens: 645 sent, 24 received. Cost: $0.00011 request, $0.00011 session.
──────────────────────────────────────────────────────────────────────────────────────────────

/clear

──────────────────────────────────────────────────────────────────────────────────────────────

this is my second chat message

SYSTEM Act as an expert software developer.
...
USER this is my second chat message
SYSTEM
Understood! Please let me know if you have any specific requests or changes you'd like to make
to your code, and I'll be ready to assist you
—
Reply to this email directly, view it on GitHub
https://github.com/paul-gauthier/aider/issues/1060#issuecomment-2282833950,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF632FIRWVWOQLRWZP5CLRDZQ6OGNAVCNFSM6AAAAABMK3WLQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBSHAZTGOJVGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.


linear&logic support L1&L2 regularization

 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.hongyanwang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Repo sync for protected CLA branch

The pull request is created from main637837743436649583 to main to fix git push error for protected CLA branch

@ghogen : Thanks for your contribution! The author(s) have been notified to review your proposed change.


"-email-"

Why have "email" in the project name?

Because this library works only on pages that have embedded CSS in head styles, no external stylesheets and no JS tinkering with dynamic CSS — that's 100% of email templates and maybe 0.001% of web pages. I don't want to position this library as a competitor for UnCSS and likes.
Additionally, the mindset is email template-oriented: both classes and id's are treated equally, both can be whitelisted, removed and will be reported in the same lists (removed from head/removed from body). That's not a big deal, but competitor libraries overlook id's since they are frowned upon in web dev. Not so in email — major CSS hack for Outlook 2010 is #outlook for example.
Are you thinking it should be changed?

You're already differentiated from uncss by using posthtml instead of a headless browser. Even at 0.001%, it's still a possibility.
I just think that the name is too long and specific, when it could be shorter and generalized.

But isn't it too late to change the name, it's on npm!?!

If you wanted you could publish a new package and deprecate the old until its downloads are so low that you can have it removed from the system (via emailing npm).


Add account setting for settlement simulation and public mempool submission

Part of #827.
We will use these settings in driver later.
Test Plan
Waiting for contract mocks. I can't use git dependency because both ethcontract and ethcontract-mock are in the same git repo. So when I add it, there are two ethcontract instances: one from crates.io and another from git 😞

Upd: looks like I can use patch.crates-io to temporarily override ethcontract dependency. I'm writing tests for it now 😊


[5.9] Fix MoveOnlyAddressChecker to handle value deinits

Fixes rdar://110232973 ([move-only] Checker should distinguish in between field of single field struct vs parent field itself (was: mutation of field in noncopyable struct should not trigger deinit))
(cherry picked from commit a8c45c55c4839ba58344073b201507ba6a59dc35)
--- CCC ---

Explanation: Track liveness of self so we don't accidentally think that such types can be memberwise reinitialized.

Scope of Issue: Miscompilation occurs for a NonCopyable struct with a deinit. The deinitializer incorrectly runs when the programmer reassigns the struct fields.

Risk: This change only affects the MoveOnlyAddressChecker, which was already miscompiling cases that weren't explicitly tested.

PR to main: https://github.com/apple/swift/pull/66691

Reviewed By: Michael Gottesman

Resolves: rdar://110232973 ([move-only] Checker should distinguish in between field of single field struct vs parent field itself (was: mutation of field in noncopyable struct should not trigger deinit))

@swift-ci test

Note that this needed to be updated for 5.9:
73:14: error: no member named 'isValueTypeWithDeinit' in 'swift::SILType'
    if (type.isValueTypeWithDeinit()) {
        ~~~~ ^

Needs to be
if (auto *nominal = getNominalOrBoundGenericNominal()) {
    if (nominal->getValueTypeDestructor() != nullptr) {

@swift-ci test

@swift-ci test


Asynchronous tokenization

Currently, vLLM tokenizes incoming requests synchronously inside the Engine. This has a detrimental effect for serving with AsyncLLMEngine as tokenization of long prompts will block the event loop, causing both token generation and request handling to slow down, especially in high QPS scenarios.
This PR introduces an optional Ray-based TokenizerGroupPool that will maintain a pool of RayActors that will do the tokenization. Since now tokenization is ran in separate processes, the event loop will not be blocked (as Ray futures can simply be awaited). This removes the bottleneck described above.
Note that detokenization is not changed, as overheads from serialization/deserialization would be too great there. In case of tokenization, they are negligible.

@Yard1 did you consider using a ThreadPoolExecutor of some size in conjunction with loop.run_in_executor()? I expect this would give similar benefits without the IPC and serializtion/deserialization overhead. The tokenization itself should not hold the GIL since it's in rust for most tokenizers. I expect the modifications needed would also be much simpler.

@njhill I agree that a thread based solution should work in principle for the most popular models - it would be good to confirm that, though. Would you be interested in trying it out using the API here?

@Yard1 sorry for the delay with this, I've now opened https://github.com/vllm-project/vllm/pull/3206.

@njhill @cadedaniel updated, ptal

if you can address the code style that would be great. automerge is enabled, once test passes (should be if you merge main), it will be merged.

Very cool! Any benchmark for the improvement?


Explore ways to selectively import parts of the CSS

We made improvements to the documentation on importing CSS in https://github.com/alphagov/govuk-frontend-docs/pull/445 – there's more we could do in this space but I'm going to call this done for now.


On iOS, WebView not loading initialUrl if WebView is not visible

Hi there,
We are facing an issue on iOS: we are displaying webviews (webview_flutter) that are placed inside a PreloadPageView. Each WebView can have arbitrary width: they contain chapters of a book. The project can be found here.

On Android, no problem at all. Thanks to some JS + Flutter event management tricks, the swipe works perfectly both inside a chapter and across chapters;
On iOS, only the first visible webview does load its content, set through "initialUrl".

We have tested on iOS 15.2 with webview_flutter 2.8.0 and 3.0.0.
Here are 2 screenshots from the Android version:

On iOS, only the first webview in the PreloadPageView is visible, and displays the book cover, as expected. However, the other webviews are empty, as can be seen in the dev tools:

It used to work (on previous versions of iOS), but after many many attempts, we failed at reverting back to a state where it did. We'll continue trying to find a working config, but any clue would be highly appreciated.
Flutter doctor - v provides the following output:
[✓] Flutter (Channel dev, 2.9.0-0.1.pre, on macOS 12.0.1 21A559 darwin-arm, locale fr-FR)
    • Flutter version 2.9.0-0.1.pre at /Applications/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 8f1f9c10f0 (il y a 2 semaines), 2021-12-14 13:41:48 -0800
    • Engine revision 234aca678a
    • Dart version 2.16.0 (build 2.16.0-80.1.beta)
    • DevTools version 2.9.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Applications/android-sdk-macosx
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Applications/android-sdk-macosx
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk-11.0.7.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment 18.9 (build 11.0.7+8-LTS)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] Android Studio (version 2020.3)
    • Android Studio at /Users/jmgeffroy/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7678000/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[☠] IntelliJ IDEA Ultimate Edition (the doctor check crashed)
    ✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at https://github.com/flutter/flutter/issues.
    ✗ FormatException: Unexpected extension byte (at offset 5)
    • #0      _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1789:7)
      #1      Utf8Decoder.convert (dart:convert/utf.dart:351:42)
      #2      InputStream.readString (package:archive/src/util/input_stream.dart:207:30)
      #3      new ZipDirectory.read (package:archive/src/zip/zip_directory.dart:40:30)
      #4      ZipDecoder.decodeBuffer (package:archive/src/zip_decoder.dart:19:30)
      #5      ZipDecoder.decodeBytes (package:archive/src/zip_decoder.dart:14:12)
      #6      IntelliJPlugins._findPluginXml (package:flutter_tools/src/intellij/intellij.dart:130:44)
      #7      IntelliJPlugins._readPackageVersion (package:flutter_tools/src/intellij/intellij.dart:141:40)
      #8      IntelliJPlugins.validatePackage (package:flutter_tools/src/intellij/intellij.dart:63:35)
      #9      IntelliJValidator.validate (package:flutter_tools/src/intellij/intellij_validator.dart:103:15)
      #10     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:111:32)
      #11     asyncGuard.<anonymous closure> (package:flutter_tools/src/base/async_guard.dart:109:18)
      #12     _rootRun (dart:async/zone.dart:1426:13)
      #13     _CustomZone.run (dart:async/zone.dart:1328:19)
      #14     _runZoned (dart:async/zone.dart:1861:10)
      #15     runZonedGuarded (dart:async/zone.dart:1849:12)
      #16     runZoned (dart:async/zone.dart:1780:12)
      #17     asyncGuard (package:flutter_tools/src/base/async_guard.dart:109:3)
      #18     Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:198:9)
      #19     Doctor.diagnose (package:flutter_tools/src/doctor.dart:302:47)
      #20     DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:50:48)
      #21     FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:1320:12)
      <asynchronous suspension>
      #22     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
      <asynchronous suspension>
      #23     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #24     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
      <asynchronous suspension>
      #25     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
      <asynchronous suspension>
      #26     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #27     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
      <asynchronous suspension>
      #28     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
      <asynchronous suspension>
      #29     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
      <asynchronous suspension>
      #30     main (package:flutter_tools/executable.dart:94:3)
      <asynchronous suspension>

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3)
    • IntelliJ at /Users/jmgeffroy/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/213.5744.223/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2.3)
    • IntelliJ at /Users/jmgeffroy/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/212.5457.46/IntelliJ IDEA.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] Connected device (3 available)
    • iPhone de Jean-Marie Geffroy (mobile) • 88cdde3d1155888acfb6f781da596113d3b49f9a • ios            • iOS 15.1 19B74
    • macOS (desktop)                       • macos                                    • darwin-arm64   • macOS 12.0.1 21A559 darwin-arm
    • Chrome (web)                          • chrome                                   • web-javascript • Google Chrome 96.0.4664.110

! Doctor found issues in 1 category.

Workaround: following this suggestion, I added:
viewportFraction: 0.99

in PageController. It works perfectly...

@jmgeffroy
I cloned the project and tried to run from app root level but getting below error:
dhs@Dhss-MacBook-Pro app % flutter run
Because iridium_app depends on mno_streamer from path which doesn't exist (could not find package mno_streamer at "../../bookari_for_flutter/mno_streamer_dart"), version solving failed.
Running "flutter pub get" in app...
pub get failed (66; Because iridium_app depends on mno_streamer from path which
doesn't exist (could not find package mno_streamer at
"../../bookari_for_flutter/mno_streamer_dart"), version solving failed.)

Also, since you are using third party plugin, have you also confirmed with the plugin owner if it could be an issue from their side on iOS ?
Moreover, to properly address this issue, can you provide us only a minimal code sample that'll be enough to replicate this behavior ?
Thanks.

Hello @darshankawar thanks a lot for examining our issue! Make sure that you are on the project/monorepo branch. This project is currently being pretty heavily refactored, I apologize for that.
In the feature/monorepo branch, mno_streamer is inside the modulesdirectory.
The PreloadPageView is a 3rd-party plugin, but 100% Flutter. There is no iOS-specific code inside.
I am working on preparing a simpler test project for you and notify you when ready.
Very best regards

Here is a small test project: https://github.com/Mantano/pagination_tests. It exhibits the issue on both platforms.

Description:

The UI contains a first Webview which is stacked behind a PreloadPageView (this aims at testing whether it will be pre-rendered or not while hidden by the other component)
The PreloadPageView contains many webviews. The preloadPageCount is 3

Observations:

As expected, the first Webview, behind the PreloadPageView, is created, his contents is rendered and has the proper dimensions.
As expected, 3 webviews in the PreloadPageView are created
For each of these WebViews:

onPageFinished is called
the initialUrl content is loaded, parsed and can be accessed through the DevTools (screenshot)

ISSUE (on Android and iOS): The preloaded webviews contents are not pre-rendered, and hence have dimensions equal to 0. Their document DOM is available through the Chrome DevTools.

DOM of preloaded webviews contents:

The execution trace shows the following:
I/flutter ( 2284): D	_PaginatingWebViewState.build:	 ============= Device screen width:<PHONE_NUMBER>2857144
I/flutter ( 2284): D	_PaginatingWebViewState.build:	 ============= Device screen width:<PHONE_NUMBER>2857144
I/flutter ( 2284): D	_PaginatingWebViewState.build:	 ============= Device screen width:<PHONE_NUMBER>2857144
I/flutter ( 2284): D	_PaginatingWebViewState.build:	 ============= Device screen width:<PHONE_NUMBER>2857144
I/flutter ( 2284): D	_PaginatingWebViewState._onPageFinished:	 ============== _onPageFinished[0]
I/flutter ( 2284): D	_PaginatingWebViewState._onPageFinished:	 ============== _onPageFinished[1]
I/flutter ( 2284): D	_PaginatingWebViewState._onPageFinished:	 ============== _onPageFinished[3]
I/flutter ( 2284): D	_PaginatingWebViewState._onPageFinished:	 ============== _onPageFinished[2]
I/flutter ( 2284): D	_PaginatingWebViewState._onPageFinished:	 ============== _onPageFinished[0]
I/flutter ( 2284): D	_PaginatingWebViewState._onPageFinished:	 ============== _onPageFinished[1]
I/flutter ( 2284): D	_PaginatingWebViewState._onPageFinished:	 ============== _onPageFinished[3]
I/flutter ( 2284): D	_PaginatingWebViewState._onPageFinished:	 ============== _onPageFinished[2]

I don't know why onPageFinished is called twice for each, but it doesn't seem to be the cause of the problem...
I tried (as we do in our reader app) to retrieve the width of the content in a $(window).on('load',...) script, but we get 0 exactly as in the DevTools... The contents is definitely not rendered.

Important update! I understand why the issue now occurs also on Android: I have upgraded to 3.0.0, and as a consequence the WebView is using Hybrid Composition which is now default. If I explicitly select Virtual display, by adding:
@override
   void initState() {
     super.initState();
     if (Platform.isAndroid) WebView.platform = AndroidWebView();
   }

Then the WebViewsare correctly pre-rendered, as we can see on the following screenshots:

iOS has always been relying on Hybrid Composition, if I read correctly, so this explains why the issue initially occurred only on iOS.
So the question can probably be summarized as: is it possible to have prerendering with Hybrid Composition exactly like when using Virtual Displays? I would prefer using Hybrid Composition since I have noticed a significantly smoother scrolling...

@jmgeffroy
Thanks for coming with a sample project and providing further details. I cloned and ran the app using latest master and stable on iOS simulator on which I do see the webview being rendered properly initially (ie, on app launch) and then after navigating, as below:

I tried with both platform views (ie, with SurfaceAndroidView and AndroidVew) and result has been same.
Let me know if I missed anything to replicate the case properly.

 stable, master flutter doctor -v
[[✓] Flutter (Channel stable, 2.8.1, on Mac OS X 10.15.4 19E2269 darwin-x64,
    locale en-GB)
    • Flutter version 2.8.1 at /Users/dhs/documents/fluttersdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (13 hours ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 30)
    • Android SDK at /Users/dhs/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/dhs/Library/Android/sdk
    • Java binary at: /Users/dhs/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Users/dhs/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
      Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.57.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (4 available)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 93.0.4577.82

• No issues found!

[✓] Flutter (Channel master, 2.9.0-1.0.pre.213, on Mac OS X 10.15.4 19E2269
    darwin-x64, locale en-GB)
    • Flutter version 2.9.0-1.0.pre.213 at
      /Users/dhs/documents/fluttersdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 59af5755e8 (5 hours ago), 2021-12-30 19:14:10 -0500
    • Engine revision 548a272fb2
    • Dart version 2.16.0 (build 2.16.0-134.0.dev)
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30)
    • Android SDK at /Users/dhs/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/dhs/Library/Android/sdk
    • Java binary at: /Users/dhs/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Users/dhs/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/Android
      Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.57.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[[✓] Connected device (4 available)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 93.0.4577.82

• No issues found!

Hello, @darshankawar ! First of all I wish you a happy new year!
Thanks a lot for your testing. However, I was probably not clear enough in my explanation: the problem isn't the webview not rendering properly. The problem is when the rendering occurs. In our case, what we need is to get a few WebViews in the PageView to be pre-rendered before being visible (at least 1). This can only be checked by inspecting with the developer tools, like what I showcased in my screenshots.

Hello, @darshankawar ! First of all I wish you a happy new year!
Thanks a lot for your testing. However, I was probably not clear enough in my explanation: the problem isn't the webview not rendering properly. The problem is when the rendering occurs. In our case, what we need is to get a few WebViews in the PageView to be pre-rendered before being visible (at least 1). This can only be checked by inspecting with the developer tools, like what I showcased in my screenshots.


Travis pull request

I'm not following what is happening here?  Going to close this, feel free to cleanup and resubmit.


Create a page for tag/creator/source views

Problem

We need a new page for the Additional search views projects. We should handle the following paths:
/pages/_mediaType/tag/_tag
/pages/_mediaType/source/_source
/pages/_mediaType/source/_source/creator/_creator (this page might not be needed as it might be handled by the source page)
Description

To make sure that the mediaType, source and creator parameters are valid, this page should use the validate method to make sure that and show an error page if necessary.
function validate({ params, $pinia }): boolean {
  const { collection, mediaType, term } = params
  // Check that collection is one of ["tag", "creator" or "source"],
  // and mediaType is one of `supportedMediaTypes`.
  // Check that `term` is correctly escaped.
  // If the params are not valid, return `false` to show the error page.
  return isValid ? true : false
}

This page should also update the state (searchType, searchTerm and searchBy and provider filters) in the search store and handle fetching using mediaStore’s fetchMedia method in the useFetch hook.
Since it is not possible to change the path or query parameters from this page client-side, fetching can be much simpler than on the current search page (that has to watch for changes in the route and fetch if necessary).
This page should use VCollectionHeader and the image grid or the audio collection.
Dependencies
Issue is blocked on the following dependencies:

[x] #2694
[ ] #2729
[ ] #2858

See https://github.com/WordPress/openverse/pull/2734#discussion_r1299592608 for a discussion about the sub-heading complexity and potential alternative formats that avoid translation issues.


implement multiplex append rows

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[ ] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[ ] Ensure the tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

closing due to inactivity. Please create an issue with reasoning around the pull request.


FATAL: password authentication / DETAIL: Role “” does not exist.

I have been looking for a workaround for 3 days now and it seems to be a fairly common issue that I can't seem to fix for myself due to my lack of knowledge with docker/Postgres. I believe it has something to do with the volume not being able to write.
the errors I've been able to see are ;
FATAL: password authentication failed for user "app"
DETAIL: Role “app” does not exist. Connection matched pg_hba.conf line 95: “host all all all md5”
So I can see that the user is not being created for some reason. nor is the DB and at this point, I don't even know how to change this pg_hba.conf file nor why it should be needed to be changed in the first place on an official docker image. I would assume that it would work right off the bat. I am constantly deleting the images and rebuilding them trying to make changes with no hope so far.
What am I missing and how can I fix this so I can actually do something with Postgres?
version: "3"

services:
  api:
    ports:
      - 8000:8000
    build:
      context: ./app
      dockerfile: ./Dockerfile
      args:
        STATIC_URL: "/static/"
    restart: unless-stopped
    networks:
      - app-backend-tier
    depends_on:
      - db
    volumes:
      - ./app/app/:/app:Z
      - ./app/templates/:/app/templates:Z
      - ./app/tests/:/app/tests
      # shared volume between worker and api for media
      - app-media:/app/media
    command: >
      sh -c "python manage.py makemigrations &&
             python manage.py migrate_schemas --shared &&
             python manage.py runserver <IP_ADDRESS>:8000"
    #  python manage.py createtenant"
    env_file: common.env
    environment:
      - DB_HOST=db
      - DB_NAME=app
      - DB_USER=app
      - DB_PASS=app
      - DB_PORT=5432
      - Application_URL=http://localhost:9000/
      - DASHBOARD_URL=http://localhost:3000/

  db:
    container_name: db
    image: postgres:13
    ports:
      - "5432:5432"
    restart: unless-stopped
    networks:
      - app-backend-tier
    volumes:
      - app-db:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=app
      - POSTGRES_USER=app
      - POSTGRES_PASSWORD=app

  pgadmin:
    image: dpage/pgadmin4
    environment:
      -<EMAIL_ADDRESS>      - PGADMIN_DEFAULT_PASSWORD=app
    ports:
      - "8889:80"
    networks:
      - app-backend-tier
volumes:
  app-db:
    driver: local

networks:
  app-backend-tier:
    driver: bridge

If your app-db volume has files in it then the entrypoint script won't initialize the database, what's the log output of that container on startup?

If your app-db volume has files in it then the entrypoint script won't initialize the database, what's the log output of that container on startup?

well, I'm not too sure, but I have been completely deleting all the images using docker system prune -a  and trying to rebuild only to get the same errors, the container will show what's below, otherwise, is there a way to get better logs?
`PostgreSQL Database directory appears to contain a database; Skipping initialization
2020-10-16 14:40:32.119 UTC [1] LOG: starting PostgreSQL 13.0 (Debian 13.0-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2020-10-16 14:40:32.119 UTC [1] LOG: listening on IPv4 address "<IP_ADDRESS>", port 5432
2020-10-16 14:40:32.119 UTC [1] LOG: listening on IPv6 address "::", port 5432
2020-10-16 14:40:32.156 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-10-16 14:40:32.174 UTC [26] LOG: database system was shut down at 2020-10-16 14:08:16 UTC
2020-10-16 14:40:32.221 UTC [1] LOG: database system is ready to accept connections
2020-10-16 14:40:36.071 UTC [35] FATAL: password authentication failed for user "app"
2020-10-16 14:40:36.071 UTC [35] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"
2020-10-16 14:40:39.954 UTC [37] FATAL: password authentication failed for user "app"
2020-10-16 14:40:39.954 UTC [37] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"
2020-10-16 14:40:43.570 UTC [39] FATAL: password authentication failed for user "app"
2020-10-16 14:40:43.570 UTC [39] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"
2020-10-16 14:40:47.118 UTC [41] FATAL: password authentication failed for user "app"
2020-10-16 14:40:47.118 UTC [41] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"
2020-10-16 14:40:51.009 UTC [43] FATAL: password authentication failed for user "app"
2020-10-16 14:40:51.009 UTC [43] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"
2020-10-16 14:40:55.794 UTC [46] FATAL: password authentication failed for user "app"
2020-10-16 14:40:55.794 UTC [46] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"
2020-10-16 14:41:02.159 UTC [48] FATAL: password authentication failed for user "app"
2020-10-16 14:41:02.159 UTC [48] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"
2020-10-16 14:41:11.681 UTC [50] FATAL: password authentication failed for user "app"
2020-10-16 14:41:11.681 UTC [50] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"
2020-10-16 14:41:27.519 UTC [53] FATAL: password authentication failed for user "app"
2020-10-16 14:41:27.519 UTC [53] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"
2020-10-16 14:41:56.305 UTC [57] FATAL: password authentication failed for user "app"
2020-10-16 14:41:56.305 UTC [57] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"`

PostgreSQL Database directory appears to contain a database; Skipping initialization
It's detecting files in /var/lib/postgresql/data from the app-db volume, and the entrypoint script won't modify existing data so it skips.
docker system prune only removes unused volumes, containers, etc...
To do a complete pruning you'd want to remove anything currently in use (including stopped containers) with something like docker rm -f $(docker ps -aq) which will remove every container shown with docker ps -a and then docker system prune will delete them and all Docker named-volumes

To do a complete pruning you'd want to remove anything currently in use (including stopped containers) with something like docker rm -f $(docker ps -aq) which will remove every container shown with docker ps -a and then docker system prune will delete them and all Docker named-volumes

so I did docker rm -f $(docker ps -aq) , followed by docker system prune then docker-compose build and up. and still, get the error.
`PostgreSQL Database directory appears to contain a database; Skipping initialization
2020-10-16 20:43:14.563 UTC [1] LOG: starting PostgreSQL 13.0 (Debian 13.0-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2020-10-16 20:43:14.582 UTC [1] LOG: listening on IPv4 address "<IP_ADDRESS>", port 5432
2020-10-16 20:43:14.582 UTC [1] LOG: listening on IPv6 address "::", port 5432
2020-10-16 20:43:14.603 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-10-16 20:43:14.624 UTC [25] LOG: database system was shut down at 2020-10-16 20:34:10 UTC
2020-10-16 20:43:14.635 UTC [1] LOG: database system is ready to accept connections
2020-10-16 20:43:18.703 UTC [34] FATAL: password authentication failed for user "app"
2020-10-16 20:43:18.703 UTC [34] DETAIL: Role "app" does not exist.
Connection matched pg_hba.conf line 99: "host all all all md5"
`

You want to use the --volumes flag with docker system prune. Or you could do docker volume prune that just does volumes, or docker volume rm app-db

You want to use the --volumes flag with docker system prune. Or you could do docker volume prune that just does volumes, or docker volume rm app-db

you're a wizard! Thanks so much, that was it. Pruning the volumes did the trick. Thank you so much you have no idea how much this was tilting me.

cleared the voulmes  regarding the application , works for me

docker volume rm app-db

This solve is awesome!


@rokucommunity/bslint: not found in npm registry

Hi, first of all, thanks a lot for sharing the packages. Looks great!
the @rokucommunity organisation scope doesn't seem to exist. Either that or the organisation is set to private, see organisation tab here.
GET non-scoped package, is successful.
https://registry.npmjs.org/brighterscript
GET scoped package, fails.
https://registry.npmjs.org/@rokucommunity/bslint
Example of the current issue,
Install (uses yarn, similar issue with npm although)
yarn add @rokucommunity/bslint

Error
error An unexpected error occurred: "https://registry.npmjs.org/@rokucommunity%2fbslint: Not found".

Thank you!

Hello, thanks for your interest, but the plugin hasn't been published yet :D
The brighterscript plugin API wasn't stable enough yet for that but it's getting there. Additionally it requires a bit of tuning to avoid false positives, and I thought it was light in linting options.
If you want to test it now:

clone this git repository, then:
npm install && npm build && npm link
in your project: npm link @rokucommunity/bslint
to unlink: npm install

Ok, no problem! Sorry about that.


[python] durable_rules swallows exceptions

Having the
There's this mockup with and without try/except block there are the same two distinct errors in each:

ZeroDivisionError
TypeError

with ruleset('swallow_error'):
    @when_all(
        (m.foo == True) &
        (m.bar != None)
    )
    def catch_do(c):
        bar_val = str(c.m.bar)
        ugly = 10/0
        # c.s.ret = {}
        c.s.ret.update({1: {'path': f'{c.m.foo}', 'value': bar_val}})

with ruleset('expose_error'):
    @when_all(
        (m.foo == True) &
        (m.bar != None)
    )
    def catch_do(c):
        try:
            bar_val = str(c.m.bar)
            ugly = 10 / 0
            # c.s.ret = {}
            c.s.ret.update({1: {'path': f'{c.m.foo}', 'value': bar_val}})
        except Exception as e:
            print(f"{type(e).__name__}: {e.args[0]}, {e.args[1:]}")

jj = {'foo': True, 'bar': 'Lorem ipsum'}

Calling post() on each ruleset
answ1 = post('swallow_error', jj)
answ2 = post('expose_error', jj)

will return:
ZeroDivisionError: division by zero, ()

Process finished with exit code 0

Also executing with
answ1 = post('swallow_error', jj)
print(f"answ1.ret: {answ1['ret']}")
answ2 = post('expose_error', jj)

Returns
Traceback (most recent call last):
  File "/.../durarules.py", line 1237, in <module>
    print(f"answ1.ret: {answ1['ret']}")
KeyError: 'ret'

Process finished with exit code 1

Which is thrown after durable_rules finished running.
In my actual code nested try/except block revealed multiple TypeError exceptions (eg. trying to use dict.update() as c.s.var.update({...})) of which durable rules happily ignored, causing some head-scratching.

Hi, thanks for asking the question. The action execution is not guaranteed to be synchronous with event Post or Fact assert/retract. Exceptions are caught and set in the context state.
with ruleset('flow1'):

    @when_all(m.action == 'start')
    def first(c):
        raise Exception('Unhandled Exception!')

    # when the exception property exists
    @when_all(+s.exception)
    def second(c):
        print('flow1-> expected {0}'.format(c.s.exception))
        c.s.exception = None

post('flow1', { 'action': 'start' })

Thank you!
That explains it. So I have two options, either wrap each consequent function-body in a try/except block or rely on the c.s.exception value.
These give plenty of freedom. Ta


Add support for C++17

Cython needs headers for new features introduced by C++17, for example std::optional.

@TheJJ: FYI, https://github.com/cython/cython/pull/4225 introduced some support for std::optional.


[Bug]: Auto close the created AUTOCUT integration test failure issues.

Describe the bug
The autocut issues created for integration test failures during a release are not auto closed.
https://github.com/issues?q=is%3Aopen+is%3Aissue+user%3Aopensearch-project+label%3Av2.12.0+label%3Aautocut+[AUTOCUT]+in%3Atitle+
This auto close is available for issues created for distribution build failures, example https://github.com/opensearch-project/k-NN/issues/1484#issuecomment-1945273259.
To reproduce
Closed manually https://github.com/opensearch-project/dashboards-notifications/issues/161#issuecomment-1953487850
Expected behavior

The workflow should detect the passed integration tests for all distributions.
Ensure no distribution label exists to the issue.
Once right checks are met close the issue.

Screenshots
If applicable, add screenshots to help explain your problem.
Host / Environment
No response
Additional context
No response
Relevant log output
No response

Close this as it seems already resolved in #5038.


Option to enforce a dot at the end of the sentence

Hi, thanks for your awesome project.
I have a need to enforce the sentences to end with . (or any other allowed char). Would this option be helpful?
Specifically talking about https://github.com/sobolevn/awesome-cryptography and awesome-lists in general.

Hi @sobolevn, thanks for using remark.
I like your suggestion but it’s outside of the scope of this project: natural language is quite a big problem, and I don’t believe it should be part of the core. Rather, I suggest creating an external rule.


add Policies to cofigtx.yaml

because of non Policies specificiations , it WARN
Default policy emission is deprecated, please include policy specificiations
after edit i got no warning
so please feel free to ask about more edit or update

Thanks for the contribution! However, this is a read-only mirror. please read the contribution guide. Also, feel free to join us on chat!


[Snyk] Security upgrade @angular-devkit/build-angular from 13.0.4 to 18.0.5

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to fix 2 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

packages/node/base/package.json
packages/node/base/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Missing Release of Resource after Effective Lifetime SNYK-JS-INFLIGHT-6095116
  631

Regular Expression Denial of Service (ReDoS) SNYK-JS-MINIMATCH-3050818
  479

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)

Checkmarx One – Scan Summary & Details – 0b678182-2c61-474b-bd70-815a2d0c59d7
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

CVE-2023-42282
Npm-ip-1.1.5
Vulnerable Package

CVE-2024-27088
Npm-es5-ext-0.10.53
Vulnerable Package

CVE-2024-27351
Python-Django-1.2
Vulnerable Package

CVE-2024-37890
Npm-ws-8.2.3
Vulnerable Package

CVE-2024-37890
Npm-ws-7.4.6
Vulnerable Package

CVE-2024-37890
Npm-ws-7.5.6
Vulnerable Package

CVE-2024-38355
Npm-socket.io-4.4.0
Vulnerable Package

CVE-2024-4068
Npm-braces-2.3.2
Vulnerable Package

Sensitive Port Is Exposed To Entire Network
/ec2.tf: [83](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/ec2.tf# L83)
A sensitive port, such as port 23 or port 110, is open for the whole network in either TCP or UDP protocol

Sensitive Port Is Exposed To Entire Network
/ec2.tf: [83](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/ec2.tf# L83)
A sensitive port, such as port 23 or port 110, is open for the whole network in either TCP or UDP protocol

CVE-2023-26159
Npm-follow-redirects-1.14.6
Vulnerable Package

CVE-2024-25710
Maven-org.apache.commons:commons-compress-1.15
Vulnerable Package

CVE-2024-25710
Maven-org.apache.commons:commons-compress-1.20
Vulnerable Package

CVE-2024-28849
Npm-follow-redirects-1.14.6
Vulnerable Package

CVE-2024-28863
Npm-tar-4.4.19
Vulnerable Package

CVE-2024-28863
Npm-tar-6.1.11
Vulnerable Package

CVE-2024-4067
Npm-micromatch-3.1.10
Vulnerable Package

CVE-2024-4067
Npm-micromatch-4.0.7
Vulnerable Package

Unpinned Actions Full Length Commit SHA
/build.yaml: [15](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//.github/workflows/build.yaml# L15)
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...

Unpinned Actions Full Length Commit SHA
/pull_request.yaml: [14](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//.github/workflows/pull_request.yaml# L14)
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...

Unpinned Actions Full Length Commit SHA
/semgrep.yml: [14](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//.github/workflows/semgrep.yml# L14)
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...

IAM Access Analyzer Not Enabled
/random.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/random.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/rds.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/rds.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/s3.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/s3.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/gcs.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/gcp/gcs.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/policies.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/policies.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/app_service.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/app_service.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/networking.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/networking.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/aks.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/aks.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/ecr.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/ecr.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/resource_group.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/resource_group.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/key_vault.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/key_vault.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/instances.tf: [3](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/gcp/instances.tf# L3)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/networks.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/gcp/networks.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/security_center.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/security_center.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/elb.tf: [2](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/elb.tf# L2)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/instance.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/instance.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/rds.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/alicloud/rds.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/trail.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/alicloud/trail.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/neptune.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/neptune.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/application_gateway.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/application_gateway.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/es.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/es.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/kms.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/kms.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/big_data.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/gcp/big_data.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/mssql.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/mssql.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/eks.tf: [19](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/eks.tf# L19)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/bucket.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/oracle/bucket.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/gke.tf: [6](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/gcp/gke.tf# L6)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/ec2.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/ec2.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/db-app.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/db-app.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/storage.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/storage.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/compartment.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/oracle/compartment.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/lambda.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/lambda.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/sql.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/sql.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/iam.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/iam.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/roles.tf: [3](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/roles.tf# L3)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

IAM Access Analyzer Not Enabled
/logging.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/azure/logging.tf# L1)
IAM Access Analyzer should be enabled and configured to continuously monitor resource permissions

Fixed Issues

Severity
Issue
Source File / Package

CVE-2022-25858
Npm-terser-5.10.0

CVE-2022-25858
Npm-terser-5.9.0

CVE-2023-28154
Npm-webpack-5.64.1

S3 Bucket SSE Disabled
/s3.tf: [1](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/s3.tf# L1)

S3 Bucket SSE Disabled
/s3.tf: [89](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/s3.tf# L89)

S3 Bucket SSE Disabled
/ec2.tf: [271](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/ec2.tf# L271)

S3 Bucket SSE Disabled
/s3.tf: [42](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/s3.tf# L42)

S3 Bucket SSE Disabled
/s3.tf: [65](https://github.com/geekshiv-JC/terragoat/blob/snyk-fix-4417ad7d198b303bfa8712c974fbe397//terraform/aws/s3.tf# L65)

CVE-2007-2379
Npm-jquery-3.6.0

CVE-2014-6071
Npm-jquery-3.6.0

CVE-2021-23566
Npm-nanoid-3.1.30

CVE-2023-44270
Npm-postcss-7.0.39

CVE-2023-44270
Npm-postcss-8.3.11

Cx14b19a02-387a
Npm-body-parser-1.19.0

CVE-2023-5752
Python-pip-22.2


Android: Lifecycle usage (LifecycleEventListener, LifecycleOwner, Lifecycle)

Description
I'm currently creating a native module which requires a Lifecycle, and unfortunately there's no way around that (CameraX API constructor only takes Lifecycle or LifecycleOwner as arguments)
React Native provides a way to listen for Lifecycle events using a LifecycleEventListener (ReactContext::addLifecycleEventListener), but that's not using the Lifecycle interface.
I am really losing my mind trying to figure out how I can obtain an actual Lifecycle (or LifecycleOwner) instance from React Native, but I can't figure it out. Even creating a custom Lifecycle requires using LifecycleObservers which are not the same as the React LifecycleEventListeners.
Can someone help me out?
TL;DR: I'm trying to call ProcessCameraProvider::bindToLifecycle(lifecycle: Lifecycle) in a React Native native module, but there's no way I can get a Lifecycle instance.

Nevermind, you can just cast the activity to an AppCompatActivity.
private val lifecycle: Lifecycle by lazy {
    ((context as ReactContext).currentActivity as AppCompatActivity).lifecycle
}

It would probably be a good idea to change the type of .currentActivity to AppCompatActivity if we're not using Activity any more.

Nevermind, you can just cast the activity to an AppCompatActivity.
private val lifecycle: Lifecycle by lazy {
    ((context as ReactContext).currentActivity as AppCompatActivity).lifecycle
}

It would probably be a good idea to change the type of .currentActivity to AppCompatActivity if we're not using Activity any more.


Fix issue where build steps are duplicated in the output

This fixes an issue where the build output for the "Steps" would look like:
Step 1: RUN echo hi echo hi

instead of
Step 1: RUN echo hi

Also, I noticed that there were no checks to make sure invalid Dockerfile
cmd flags were caught on cmds that didn't use cmd flags at all. They would
have been caught on the cmds that had flags, but cmds that didn't bother
to add new code for flags would have just ignored them.  So, I added
checks to each cmd to flag it.
Added testcases for issues.
Signed-off-by: Doug Davis<EMAIL_ADDRESS>

lol i see this i was so confused and had to check my build script

LGTM

@jfrazelle yea I was tempted to leave it for a while to see who would notice and speak up :-)

LGTM!

LGTM


[analytics] Optimising the fetch_balance event conditions on segment

Context :
Currently fetch_balance event triggered by segment is firing thrice for each celo asset and the calls are being made not early in the stages of app being opened.
Fix needed:

fetch_balance event to trigger for app open and as early as possible.
trigger fetch_balance event only one and containing details about all assets.
include balance support for other CELO assets
add fiatCurrency and fiatValue to the existing parameters

Fix needed:
Please find the list of events and parameters here

fetch_balance : event to be updates as per the details here in the sheet link : https://docs.google.com/spreadsheets/d/1XbfyL1vN7RpYWA5d5uxuLB5AyOpazdNA-7CCuRsFins/edit#gid=0

home_all_balances

balance_screen_loaded

Screen shot here

ACs

Identify the value held by Users for each token.
DApp user segmentation

Current logs
Info
[2021-07-28T13:23:44.540Z] ValoraAnalytics/Tracking event fetch_balance with properties:
{"timestamp":1627478624540,"sessionId":"1f017ed458129a4fbdd9ca2960fb6ac1b080ba35755be4e6f61fe55f0bd","userAddress":"0xc27c543f7873c5b8534b010bb56e0e59b007","celoNetwork":"mainnet","cEURBalance":"0"}
Info [2021-07-28T13:23:44.601Z] ValoraAnalytics/Tracking event fetch_balance with properties: {"timestamp":1627478624601,"sessionId":"1f017ed45812dd9ca2960fb6ac1b080ba35755be4e6f61fe55f0bd","userAddress":"0xc27c543f7873c5b854b010bb56e0e59b007","celoNetwork":"mainnet","cUSDBalance":"5.90524444759390815"}
Info [2021-07-28T13:23:44.610Z] ValoraAnalytics/Tracking event fetch_balance with properties: {"timestamp":1627478624610,"sessionId":"1f017ed458129a4fbd2960fb6ac1b080ba35755be4e6f61fe55f0bd","userAddress":"0xc27c543f7873c5b85010bb56e0e59b007","celoNetwork":"mainnet","cGLDBalance":"0"}
Info [2021-07-28T13:23:45.538Z] account/profileInfo@getProfileInfo/can't fetch name for 0x44909bdd05dda8a13c681414cf684bf148d5f411, UnavailableKey: Unable to find account 0xc27C543f7873C5B8534B404B010BB56E0e59B007
Info
Ideal scenario
Info [2021-07-28T13:23:44.540Z] ValoraAnalytics/Tracking event fetch_balance with properties:
{"timestamp":1627478624540,"sessionId":"1f017ed458129a4fbdcjdhhk9ca2960fb6ac1b080ba35755be4e6f61fe55f0bd","userAddress":"0xc27dfc543f787jjhd3c5b830bb56e0e59b007","celoNetwork":"mainnet","cUSDBalance":"5.90524444759390815","cEURBalance":"0","cGLDBalance":"5.90524444759390815"}

This was fixed in https://github.com/valora-inc/wallet/pull/1386#discussion_r746987875
There's one single fetch_balance event containing the following super props: sCusdBalance, sCeurBalance, sCeloBalance and sOtherTenTokens


Video player fixes, added missing binders

Adrian, Could you please add a screenshot of the output of the model with an example of one question one answer, in the readme files? Also in the notebook readme file.

Done

docker_nbval / build (pull_request) Failing after 53m — build
Oh dear, why is that failing? @adrianboguszewski ?

No idea. It's not related to my changes

It's already merged. Let's add it in the next PR.


Add a warning when using a JSDoc deprecated method

So this was previously suggested in Microsoft/TypeScript#390, but it seems like it should be in tslint, not typescript.
The idea is when a function which has the tag "@deprecated" is used it should show a warning.
For example:
interface IX {
  /**
   * @deprecated
   */
  function doSomething(): void;
}

class X implements IX {
  function doSomething(): void;

  /**
   * @deprecated
   */
  function doSomethingElse(): void;
}

const x = new X();
x.doSomething(); // Warning: IX.doSomething is deprecated
x.doSomethingElse(); // Warning: X.doSomethingElse is deprecated

Same thing should preferably apply to attributes. Getters & setters.

Interesting suggestion. This would involve telling TSLint about your typings files so that it could crawl JSDoc comments. We don't currently do this, and TSLint would have to treat typings different from sources (don't lint them since they probably don't have the same code style as your sources).
Related: #680, #692

Yeah I agree. As to #680, that was actually one of the first frustrations I had with TSLint, coming from eslint.
I think we're stuck here until those two are closed then.

Now that #680 is solved, what's the progress on this?

Open to PRs. I haven't yet looked at what language service APIs are available for reading JSDoc comments, but feel free to take a crack at it.


Yes to All Button for Overwrites

When creating a new function project, there are 5 prompts that ask if you'd like to overwrite the file.  We should have a "Yes to all" button so that you don't have to keep confirming.

Closing this as won't-fix since we don't prioritize the case where a user creates a project over an existing project


Bug: Files crashing/freezing when accessing WSL folders that use git

Description
When accessing a folder of a git repo on a WSL drive, Files freezes and then crashes
Steps To Reproduce

Open files
Navigate to a WSL drive
Try to open some folders that contain git repos

Requirements

Fix crash that occurs when opening a folder under git source control on a WSL drive

Files Version
<IP_ADDRESS>
Windows Version
10.0.22635.2776
Log File
debug.log

Thanks for the report, I've added this to the project board. How big are these git repos?

The one I can repro it 100% on is 3.75 GB with 100k files.

Is this specific to git repos?

Looks like it, I don't have much else in there.

Is it also an issue if you copy that repo off of WSL?

Thanks! It must be something specific to WSL.

Can confirm that this is still broken on 3.1

Tested with 3.2 and looks like it only happens in "Details" view, icons are fine

What about Columns?

What about Columns?

Columns is fine as well!

Just wanted to let you guys know that it is still an issue on 3.3

Thanks for checking, we haven't made any changes to fix it but sometimes these issues get resolved on their own.


prevent updates after animation end

I think we should stop updates after animation end. It will prevent forced reflows. See timeline capture for additional info:

Definitely we should do that. Only one thing I didn't quite like it, is calling function before its declaration. Even though I can put it into different shape later. Thanks for catch this as performance is really important to me.

@coderitual Agree. Can't to figure out how to do it better.
Thanks for sharing this!


chore: attempt to optimize tokio scheduler

Another option to look into is max_lifetime. Do note that "Infinite connections are not recommended due to the unfortunate reality of memory/resource leaks on the database-side. It is better to retire connections periodically (even if only once daily) to allow the database the opportunity to clean up data structures (parse trees, query metadata caches, thread-local storage, etc.) that are associated with a session."

We can try to specify the runtime params more granularly, for example the number of available cores.


[Usage]: How to run intern_vit model using intern_vit.py?

Your current environment
As far as i know,the Internvl series models use intern_vit.py to load vision module.
In my case, i am wondering if the intern_vit.py can be used to load intern_vit models（only the vision part）.
And how to use?
Below is my python script:
from vllm import LLM, SamplingParams
import time
from transformers import CLIPImageProcessor

def run_Internvit():
    sampling_params = SamplingParams(max_tokens=100, temperature=0.8, top_p=0.95, top_k=1)

    llm = LLM(model="/mnt/beegfs/maojunxiong/Vision_vllm/internvl-6B", trust_remote_code=True)
    #tokenizer = AutoTokenizer.from_pretrained("/mnt/beegfs/maojunxiong/Vision_vllm/internvl-6B", trust_remote_code=True)

    image = Image.open('/mnt/beegfs/maojunxiong/Vision_vllm/image1.jpg').convert('RGB')
    #image_processor = CLIPImageProcessor.from_pretrained('/mnt/beegfs/maojunxiong/Vision_vllm/internvl-6B/')
    #pixel_values = image_processor(images=image, return_tensors='pt').pixel_values
    #pixel_values = pixel_values.to(torch.bfloat16).cuda()
    outputs = []
    outputs = llm.generate(image, sampling_params)

    for output in outputs:
        prompt = output.prompt
        generated_text = output.outputs[0].text
        token = len(tokenizer.encode(generated_text))
        total_tokens += token
        print(f"Generated text: {generated_text!r}")

if __name__ == "__main__":
    run_Internvit()

How would you like to use vllm
I want to run inference of a specific model. I don't know how to integrate it with vllm.
Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Here is the error information!

InternVisionModel is currently intended for internal use only. Feel free to open a PR to add user-facing support for it!


npm install error

when i clone this project and install， but there are some error，Please use @electron/asar moving forward. There is no API change, just a package name change

when i clone this project and install， but there are some error，Please use @electron/asar moving forward. There is no API change, just a package name change

Attempt to switch download sources

切换了镜像源，但依然出错

不要用中文路径！

ok, thanks! this problem should add this line of code 👉 electron_mirror="https://npm.taobao.org/mirrors/electron/" 👈in the .npmrc file


Upload an audio file!

Also mentioned in #180 ! It would be great to be able to paste, open, or drag an audio file (similar to cellpond loading)

@ivanreese 👀 👀 👀

Sorry @TodePond, I'm going to have to close this as #wontfix. It goes against the improvisational spirit of Arroost. By adding an upload feature it encourages people to use Arroost in a too-considered, too-precious way. The goal is to normalise sharing scrappy fiddles. I hope you understand. But thank you for your contributions so far!

haha glad you got scrappy-fiddle-pilled
you've convinced me


libvlc error in windows (x64)

I have an issue / a question (pick one) about Vlc.DotNet.
Generic information

Vlc.DotNet version : (2.2.1)
Vlc.DotNet project used : (WinForms)
libvlc version : (Please fill) (x86)
.net version : (4.0)
Project language : (VB.net)
Project build architecture : (x86/x64/AnyCPU/AnyCPU (prefer 32bits))
Operating system : (Windows 7) (x86/x64)

Summary
hello again
i have a question in vlc lib directory
when i add the libvlc (x86) into my project and run in windows(x86) works good and without error
now if i run it in windows (x64) the app crashed i must to change the libvlc to (x64) to work on this system
the question is there any method to put the same libvlc and run app in system (64) and (86) ???
So that I do not have to make two copies of my program one for (x64) and one for (x86)
code i puted in my project:
Private Sub VlcControl1_VlcLibDirectoryNeeded(sender As Object, e As Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs) Handles VlcControl1.VlcLibDirectoryNeeded
Dim aP As String
    If Environment.Is64BitOperatingSystem Then
        aP = Path.Combine(Application.StartupPath & "\lib\VLC")
    Else
        aP = Path.Combine(Application.StartupPath & "\lib\VLC")
    End If

e.VlcLibDirectory = New DirectoryInfo(aP)
End Sub
thank you

No there's no way to redistribute a universal libvlc for x86 and x64, because of the way the OS works : when you're in a 32 bits process, you can't load a 64 bits DLL and the other way around.
There is a .net-only thing that is called AnyCPU. this is a way to make a DLL independant of the bitness, and that lets the CLR decide at runtime. However, in the end, it will always be a 32 or 64 bits process.
Here are a few ideas :

Only redistribute 64 bits libvlc and build your app for x64, dropping support for x86 because there's no more x86 windows nowadays [ref needed]
Only do the same thing for x86, all windows x64 include the compatibility layer to use x86 programs, so you'll be fine until the support for that is dropped
Use both, but selectively copy plugins that you need, refer to the mfkl/libvlc-nuget repository for more info on that
if applicable(for example for straming, converting...), use vlc.exe as an external process and don't use this lib.


Question: Http location posting

Are all locations stored in local database sent to server on http post?

Are locations stored in database deleted when response status code is 200?

Is there a way to control http post intervals?

Thanks in advance.

not yet, but you can workaround with backgroundGeolocation.getAllLocations to retrieve stored location and send them via some XHR on app start (also delete them when ajax was successful)

related to 1.

related to 1.

Eagerly awaiting.

Closing this one. There is already ongoing discussion in #100 related to this


Deprecation of code for v24

Changes
Removes code which has been deprecated since v22.0.0
Testing you performed

Please add any demo scripts to https://github.com/TomographicImaging/CIL-Demos/tree/main/misc

Testing of the new TotalVariation logging was performed using:
from cil.utilities import dataexample
from cil.optimisation.functions import TotalVariation
import logging

logging.basicConfig(level=logging.WARNING)
log_level = logging.getLogger('cil.optimisation.functions.TotalVariation')
log_level.setLevel(logging.INFO)

data = dataexample.SHAPES.get(size=(16, 16))
ig = data.geometry
iters = 500

g_CIL = TotalVariation(
    iters, tolerance=None, lower=0, warm_start=False)
res1 = g_CIL.proximal(data, 1.)

This outputs the log:

INFO:cil.optimisation.functions.TotalVariation:Stop at 499 iterations.

See #1755 for an explanation of why some extra code was added in the TV file for logging
Related issues/links
Closes https://github.com/TomographicImaging/CIL/issues/1443
Checklist

[x] I have performed a self-review of my code
[x] I have added docstrings in line with the guidance in the developer guide
[x] I have updated the relevant documentation
[x] I have implemented unit tests that cover any new or modified functionality
[x] CHANGELOG.md has been updated with any functionality change
[x] Request review from all relevant developers
[x] Change pull request label to 'Waiting for review'

Contribution Notes
Please read and adhere to the developer guide and local patterns and conventions.

[x] The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in CIL (the Work) under the terms and conditions of the Apache-2.0 License
[x] I confirm that the contribution does not violate any intellectual property rights of third parties

Do you think we can add https://github.com/TomographicImaging/CIL/issues/1689 to this PR? From what I can tell from looking at the git commits this line
https://github.com/TomographicImaging/CIL/blob/c54d9def8c23dbb4eeaa392c4bc108e0d83e1d51/Wrappers/Python/cil/optimisation/operators/Operator.py#L85
hasn't passed kwargs for the last 4 years.

Do you think we can add #1689 to this PR? From what I can tell from looking at the git commits this line
https://github.com/TomographicImaging/CIL/blob/c54d9def8c23dbb4eeaa392c4bc108e0d83e1d51/Wrappers/Python/cil/optimisation/operators/Operator.py#L85
hasn't passed kwargs for the last 4 years.

We agreed that we will address this separately


Clarify new pytest version requirement

Introduced by #230.
Found when package for Fedora 29 and EPEL 7, which package pytest 3.6.4 and 2.9.2 respectively. I'll have to skip these tests on those platforms.
It is noteworthy that neither Bionic nor Cosmic meet this requirement either.

Here is the changelog entry showing that the tmp_path fixture was added in 3.9.0: https://docs.pytest.org/en/latest/changelog.html#id403

Thanks for catching this!
@rotu FYI.


Python Javascript And Some other languages

please add stuff to code in javascript python and some other stuff

What? What are you trying to tell us? This is a Repository for Javascript Extensions for TurboWarp.

Do you mean executing JavaScript and Python code?
If yes, the JavaScript part would be easy to implement but extremely dangerous, because you could execute arbitrary code on others' computers. For the Python part, Brython would be an option (see 1, 2).

yes i do mean that fenixio and i know its dagerous but i would like to be able to do some stuff with js and python

Extensions run in a browser so they have to be JavaScript
If you try really hard then you could compile the Python interpreter to run in a browser but making that work will be just as hard as learning JavaScript in the first place and is generally not actually usable for anything

You could, like Garbo said, reimplement the compiler, but another option is using WebAssembly. It's a upcoming technology that allows you to run/interpret/compile code from other languages directly in the browser.

that's what I mean, if you try hard to you can WebAssembly a Python interpreter into a browser, but you still have to make it interact with the project runner (JavaScript) on your own, so just writing JavaScript in the first place would be easier

Your wish comes true

@FurryR I feel like adding python functions is safer than just letting people use a python terminal

and i'm on the way to add lua.


Deprecation warning with simple_form 3.1

If I follow the readme, image upload and preview works great, but I get a deprecation warning generated by simple_form in the log file:

DEPRECATION WARNING: input method now accepts a wrapper_options argument.
The method definition without the argument is deprecated and will be removed in the next Simple Form version.
Change your code from:
 def input

 to

 def input(wrapper_options)

See https://github.com/plataformatec/simple_form/pull/997 for more information.
...
Rendered ....simple_dragonfly_preview-0.0.5/app/views/simple_dragonfly_preview/image/_form.html.erb

I used the following to call simple_dragonfly_preview:
<%= simple_form_for(@order_place) do |f| %>
<%= f.input :image, as: :image_preview, size:'180x180#' %>

It looks like matfiz has already worked on this issue. but it was not released by now:
https://github.com/elfassy/simple_dragonfly_preview/commit/60604e4c708f8575ad573de37783af61075109ea

thanks! would be great if @matfiz can submit a pull request. Otherwise I'll add it in the next week when I get a min :)

I'll release a new version shortly

I will give it a look in the evening :)
wt., 15 mar 2016, 16:58 użytkownik Michael Elfassy<EMAIL_ADDRESS>napisał:

I'll release a new version shortly
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/elfassy/simple_dragonfly_preview/issues/12#issuecomment-196895057

sorry @matfiz your commit is already merged, answered too quickly.
@handylearn i've deployed a new version https://rubygems.org/gems/simple_dragonfly_preview
cheers

Ok, great!
wt., 15 mar 2016, 17:42 użytkownik Michael Elfassy<EMAIL_ADDRESS>napisał:

sorry @matfiz https://github.com/matfiz your commit is already merged,
answered too quickly.
@handylearn https://github.com/handylearn i've deployed a new version
https://rubygems.org/gems/simple_dragonfly_preview
cheers
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/elfassy/simple_dragonfly_preview/issues/12#issuecomment-196915198


What is difference beetween points and edges?

What is difference beetween points and edges? How to draw simple path with y:0 on canvas?

A Point is a coordinate(x,y,z) which do not meet with some other adjacent or far coordinate(x,y,z) to form a new line or arc whereas edges are the path that connects two points.
For creating a path, use JSON instead to store coordinate points(x,y,z) as
var path_pts = {{x:1,y:0,z:1},{x:2,y:0,z:1},{x:3,y:0,z:1},{x:4,y:0,z:1},{x:5,y:0,z:1}}; //and so on...
now start a for loop and iterate over json in createEntity method to form a simple path with y:0
Hope it helps!!!

I try but dont work


Error when updating with Flutter2 (media_query nullOK)

Using extended_image-1.6.0 from native_pdf_view
../.pub-cache/hosted/pub.dartlang.org/extended_image-1.6.0/lib/src/extended_image.dart:785:44: Error: No named parameter with the name 'nullOk'. _invertColors = MediaQuery.of(context, nullOk: true)?.invertColors ?? ^^^^^^ ../development/flutter/packages/flutter/lib/src/widgets/media_query.dart:818:25: Context: Found this candidate, but the arguments don't match. static MediaQueryData of(BuildContext context) {

this will end up getting fixed here probably https://github.com/fluttercandies/extended_image/pull/302
but, i'd love to open a PR and get a release out that supports flutter 2 without needing to wait for the NNBD migration here as well. i'm happy to open a PR with the one-line fix for this if someone would be able to release it. gotta get this fixed so we can get native_pdf_view fixed https://github.com/rbcprolabs/packages.flutter/issues/166 so that we can upgrade to flutter 2.

同样的问题

3.0.0 is ready on pub.dev


Documentation site issues with latest version of library

Issues include:

Style/font updates (removal of Salesforce Sans from Design System)
Alert examples do not render
Icons missing from Dropdown menu (iconCategory is marked as required in SLDSButton, but its value is undefined)

This does not appear to be an issue with the library in production, since examples work in Storybook deployment but appear to be an issue with usages of stories within CodeMirror examples on website.
See staging site

There's still an issue with the Custom Trigger example for Dropdown.

Confirmed that is is a site only issue.