Live dev server doesn't decode URIs for static media

So an additional file with spaces in its name won't load, for example.
Thanks for the catch, Niklink!

Fixed in 84081cc3b5287f925ffeeb94ae730e4c143b5f59.


Teamcity runner

rebased changes.

Note that my latest commit pulled out the getAllSpecFiles method into it's own file and converted to a collection, this way I could use it in more places. It also opens up the logic for follow on unit testing.


fix(overlay): emit attach and detach at appropriate times

Emits the attachments when everything has been attached.
Emits the detachments when everything has been detached.
Completes the attachments observable before the detachments.

Fixes #4871.

Please rebase


Completion for password only input

With the actual behavior if the page only has a password input (password confirmation page...) then it will be filled and overridden by the login afterwards because it's the first of type input. If we change the order than it will correctly work.
I added a comment so that this behavior will not be lost overtime which can easily happened with this kind of details.

I feel the problem is not the ordering, but that the username field is searched with (among others) as input:first-of-type', so the first input field in the form is always considered as a username, even if it is marked as [type=password]. @dannyvankooten do you know what was the reason behind that?
If we just drop the input:first-of-type' when searching for username, order will not matter anymore.
Filling only empty fields is an interesting idea, but I'm not 100% sold on that yet... What if rogue Chrome decides to auto-populate it, or something... 😄

Oh, it appears to be a pretty recent addition actually, so I'm sure you still remember it 😄
I actually believe the originally proposed fix in #64 was a better idea, exactly for the reason brought up by @Scrunshes: you cannot assume that the first input is always a username field. We better keep detecting username field with some specific selectors.

I agree with @maximbaz, for the moment it's a good fix.
My 5 cents: it might be a good idea to add a feature to let user specify which fields are what on a site but it has some loopholes : it would make things way more complicated but on the other hand with a bit of intelligence we could use that data to improve the selectors for everybody...

Would you update your PR to revert what you did and instead replace input:first-of-type with input[name=email] as was initially suggested in #64? If @dannyvankooten agrees, it would be easier for him to merge.
Your idea is interesting, but I can't think of an easy way to implement it 🙂 I guess people creating github issues with examples is the simplest approach we have today...

@maximbaz I'm totally okay with adding that although I'm not sure about removing input first. I totally agree that's a poor man's solution to the problem but It might be a real fix for many sites (hard to quantify anything here).  Let's see what other people think...

What's the status here ? Do we merge ? Do we agree on another solution ? Was it solved in an other PR ?

Closing the PR in favor of #101 which uses a smarter approach.


pyk frontend tools

Fixes: https://github.com/kframework/k/issues/2268
This PR does many things:

Many formatting changes (" => ').
Organization (move several utilities to util.py)
Adds a new file ktool.py which contains new classes for running K definitions:

KPrint takes in a definition path, and produces an unparser for it.
KProve > KPrint takes in a definition path and main file name, and produces a prover instance for it which allows you to prove claim files, or proveClaim individual claims.

Removes __init__.py contents, which are not relevant anymore with new class-based interface/organization.
Makes the kpyk runner tool just a thin wrapper around KProve and KPrint, and makes sure that both are tested on CI.
Removes the dedicated graphviz.py file and inlines it into __main__.py, and adds a test for graph-imports.
Improves the pyk unparsing of requires/ensures clauses.

Sorry @radumereuta  that this got so big. I tried to make sure that large parts of new functionality are tested in the integration tests (just by calling kpyk prove | kpyk print), and it's working with my downstream summarizer.

The changes to my original comments look good.
Let me know when tests pass so I can have another look at the entire thing.


Compatibility with other class-name frameworks?

I want to add font awesome to my project, which uses fa-* classes to display icons.
Can I disable error checking from the custom lint rules, while keeping the intellisense autocomplete?

Sorry for the late reply. That is currently not supported. Sorry

@sastan Sad to hear that, but thanks for the reply. If that's not gonna happen, should I close this issue?

We keep it open. I want to rewrite this plugin and this may something we can add.

We keep it open. I want to rewrite this plugin and this may something we can add.

@sastan  Is there a roadmap for the refactoring plans? I would be very happy to assist.


Not working properly with ${execPath} to subdirectory within VSCode portable

Hi.
As shown in the snapshot, (1) although the extension recognizes ${execPath} variable, listing all existing workspaces, (2) when I click on the workspace name, (3) there is the error "the path... does not exist..."
Here is a reference about ${execPath}
portability - How to reference in settings a path to subdirectory within VSCode portable (relative to 'Code.exe')? - Stack Overflow
Thank you!

Hi, what is exactly execPath? I'm surprised it shows the workspaces still. Is this some build in var that system level functions in node are aware of? What does this var point to?

In practice, I use this variable exclusively in settings of extensions, to refer to subdirectories paths within VSCode portable (relative to 'Code.exe').
For instance (screenshot above), I added ${execPath}\..\data_workspaces in your extension settings and it listed the workspaces I had stored in that folder.
In the thread I referred to in my initial post I tried to assemble some pieces of knowledge I gathered on the topic.
This is the Visual Studio Code Variables Reference, in which execPath is mentioned, but very briefly and with a shallow explanation.
In the following thread, a developer gave me an explanation that is more technical
Possible to set 'Data Location' path to subdirectory within VSCode portable:

Though keep in mind that VSCode is failing to expand variables in the values of the config settings. Nothing really can be done about it. It's just a limitation of VSCode.
Though in this case I simply replace ${execPath} with the return value of the process.exePath.
Thus your desired path should be:
${execPath}\..\data_cadu

Note extra .. as exePath is not the dir but the exe file.

This other thread is not about exePath itself, but refers also to VSCode portability of an extension:
If `'Data Location'` is set ``, the `favorites.user` folder could be created within portable path (e.g. '..\globalStorage\favorites.user`) · Issue #37 · oleg-shilo/Favorites.vscode
I hope this helps 👍

Closed due to inactivity


ios when did horizontal scrolling, webview has not response anymore

Environment
Flutter version: 1.17
Plugin version: 3.2.0
Android version: android 8
iOS version: 13.5
Xcode version: latest
Device information: iphone 11
I just scroll few times, and after I touched and scrolled webview did not behave as I expect.
It's only ios problem. Android going well.
Have anyone know how to solve this issue?
Images
video link
https://drive.google.com/file/d/1RoD7Ttqr80h6ibGn7z2cd2DweZwJZBg6/view?usp=sharing

I've changed version 3.2.0 -> 3.3.0+3.
It still not work

I can't reproduce the error. Horizontal scrolling is working fine on iOS

hi @pichillilorenzo Actually that means horizontal swipe. Apology for my lack description.
As you can see the video, I just scroll vertically and swipe html carousel few times.
And then, the webview gonna stop.
For more, in debug with xcode, if i touch or swipe then touch response return to my terminal.
But, the webview gonna stop,any response return anymore  with touch.
I always have thankful for your library.
Thankyou XD

I don't have access to your video. Could you make it public?
Could you post here the code that is not working??
Also, did you test it in a real device? Or just on the emulator?

Hi, @pichillilorenzo. Sorry for the video.
Well, I'm testing with real device. And also update video publical.
This is my code.
InAppWebView(
key: _shopKey,
initialUrl: Uri.encodeFull(widget.viewData[0]),
initialHeaders: {},
                  initialOptions: InAppWebViewGroupOptions(
                    crossPlatform: InAppWebViewOptions(
                        javaScriptEnabled: true,
                        debuggingEnabled: true,
                    ),
                    ios: IOSInAppWebViewOptions(
                      allowsBackForwardNavigationGestures: false,
                    )
                  ),
                  onWebViewCreated: (InAppWebViewController webViewController) async{
                    Timer(Duration(seconds: 2), () async{
                        setState(() {
                          _isConnect = true;
                          _urlChange = true;
                        });
                      });
                    print("start  :   ${widget.viewData[0]}");
                    _ShopViewController = webViewController;
                  },
                  onLoadStart: (InAppWebViewController controller, String url) async{
                    print('Page started loading: $url');
                  },
                  onLoadStop: (InAppWebViewController controller, String url) async {
                    print('Page stop loading: $url');
                    if(!_isFirst) {
                      widget.viewData[0] = url;
                      print(widget.viewData[0]);
                      setState(() {
                        _isFirst = true;
                      });
                    }
                  },
                  onUpdateVisitedHistory: (InAppWebViewController controller, String url, bool androidIsReload) async{
                    print("onUpdateVisitedHistory $url");
                    print('이건 widgetdata : ${widget.viewData[0]}');
                    if(_isFirst) {
                      if(widget.viewData[0] != url) {
                        print('url different');
                        setState(() {
                          _urlChange = false;
                        });
                      } else {
                        print('url same');
                        setState(() {
                          _urlChange = true;
                        });
                      }
                      print(_urlChange);
                    }
                  },
                ),

this is inappwebview 3.4.0
If I upgrade version, this issue can not make anymore?
Thanks for your package. XD

hi @pichillilorenzo Thanks for the great package! Really loving all the extra options than other webview packages. However, I'm having similar issue here.
I'm on

flutter_inappwebview: ^4.0.0+4

Flutter Doctor
[✓] Flutter (Channel master, 1.20.0-0.0.pre, on Mac OS X 10.15.5 19F101, locale en-BD)
    • Flutter version 1.20.0-0.0.pre at /users/emran/Development/flutter
    • Framework revision d9653445f4 (5 weeks ago), 2020-06-09 18:43:03 -0400
    • Engine revision e8c13aa012
    • Dart version 2.9.0 (build 2.9.0-14.0.dev 5c1376615e)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/emran/Library/Android/sdk
    • Platform android-30, build-tools 29.0.3
    • ANDROID_HOME = /Users/emran/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.1

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

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (4 available)
    • iPhone     • 868489061a69866195f81a8dbe9396a77addd056 • ios            • iOS 13.5.1
    • macOS      • macOS                                    • darwin-x64     • Mac OS X 10.15.5 19F101
    • Web Server • web-server                               • web-javascript • Flutter Tools
    • Chrome     • chrome                                   • web-javascript • Google Chrome 83.0.4103.116

Video:
https://drive.google.com/file/d/1c8o8EMRpm9vdigamCGYZLlY0kN3WwEmp/view?usp=sharing
Check the video, the scroll gestures stops working after some horizontal scroll. The WebView isn't responding anymore. Not that it happens always but when it does, it gets stuck and nothing can be done on the webview.
It's happening on real device. Please run the code below and scroll like the video. Thanks!
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';

Future main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<MyApp> with TickerProviderStateMixin {
  InAppWebViewController _webViewController;

  AnimationController _controller;
  Animation<double> animation;
  bool isLoading = true;

  int _loadProgress = 0;

  bool get finished => _loadProgress == 100;

  @override
  void initState() {
    _controller = AnimationController(
      vsync: this,
      duration: const Duration(
        milliseconds: 3000,
      ),
    )..forward();

    animation = Tween<double>(
      begin: 0,
      end: 1.0,
    ).animate(CurvedAnimation(parent: _controller, curve: Curves.easeIn))
      ..addListener(() {
        setState(() {});
      });
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: SafeArea(
        child: Scaffold(
          body: Container(
              child: Column(children: <Widget>[
            finished == false
                ? Container(
                    width: double.infinity,
                    height: 3,
                    child: LinearProgressIndicator(
                      value: animation.value,
                      semanticsLabel: _loadProgress.toString(),
                      semanticsValue: _loadProgress.toString(),
                      valueColor: AlwaysStoppedAnimation(Color(0xff952729)),
                      backgroundColor: Colors.black,
                    ),
                  )
                : Container(color: Colors.transparent),
            Expanded(
                child: InAppWebView(
              initialUrl: "https://www.killerinktattoo.co.uk/",
              initialOptions: InAppWebViewGroupOptions(
                crossPlatform: InAppWebViewOptions(
                  debuggingEnabled: true,
                ),
              ),
              onWebViewCreated: (InAppWebViewController controller) {
                _webViewController = controller;
              },
              onProgressChanged:
                  (InAppWebViewController controller, int progress) {
                _webViewController = controller;
                this._loadProgress = progress;
                if (this._loadProgress == 100) {
                  _controller.reset();
                } else {
                  _controller.forward();
                }
              },
            ))
          ])),
        ),
      ),
    );
  }
}

Same issue here using 4.0.0+4
The loaded page contains Javascript and behaves fine. But after a few interactions, no more gestures are detected. The other widgets on the screen do still receive Gestures, but the actual webview seems stuck.
This happens on both ios and android physical phones.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.20.0-7.0.pre, on Mac OS X 10.15.5 19F101, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.0)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.1.2)
[✓] VS Code (version 1.47.2)
[✓] Connected device (4 available)

I think this can happen easily when use web video player.
If you guy's have any plan for solve this than I can close this issue.


apt_repository will create invalid sources.list.d filenames

Description
Using apt_repository, I can easily create sources.list.d files that do not work. This is due to an underlying bug in apt that prevents it from reading files with names outside of a very small regex filter, ^[a-zA-Z0-9_.-]+$
Chef Version
root@cctv-worker01:/home/ubuntu# chef-solo --version
Chef Infra Client: 15.5.17

Platform Version
root@cctv-worker01:/home/ubuntu# uname -a
Linux cctv-worker01 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Replication Case
This works:
apt_repository 'nVidia CUDA Repo' do
  uri 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/'
  key 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub'
  repo_name 'nvidia-cuda-repository'
  distribution '/'
end

This does NOT work:
apt_repository 'nVidia CUDA Repo' do
  uri 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/'
  key 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub'
  distribution '/'
end

Client Output
The files are created just as you'd expect:
Recipe: cctv-server::nvidia
  * apt_preference[nVidia Repo Pin] action add
    * directory[/etc/apt/preferences.d] action create (up to date)
    * file[/etc/apt/preferences.d/wildcard.pref] action create
      - create new file /etc/apt/preferences.d/wildcard.pref
      - update content in file /etc/apt/preferences.d/wildcard.pref from none to d10f04
      --- /etc/apt/preferences.d/wildcard.pref	2019-12-07 15:34:20.463748278 -0500
      +++ /etc/apt/preferences.d/.chef-wildcard20191207-23807-17k4fgr.pref	2019-12-07 15:34:20.459748278 -0500
      @@ -1 +1,4 @@
      +Package: *
      +Pin: release l=NVIDIA CUDA
      +Pin-Priority: 600
      - change mode from '' to '0644'

  * apt_repository[nVidia CUDA Repo] action add
    * remote_file[/srv/chef/cctv-server/https___developer_download_nvidia_com_compute_cuda_repos_ubuntu1804_x86_64_7fa2af80_pub] action create (up to date)
    * execute[apt-key add /srv/chef/cctv-server/https___developer_download_nvidia_com_compute_cuda_repos_ubuntu1804_x86_64_7fa2af80_pub] action run (skipped due to not_if)
    * execute[apt-cache gencaches] action nothing (skipped due to action :nothing)
    * apt_update[nVidia CUDA Repo] action nothing (skipped due to action :nothing)
    * file[/etc/apt/sources.list.d/nVidia CUDA Repo.list] action create
      - create new file /etc/apt/sources.list.d/nVidia CUDA Repo.list
      - update content in file /etc/apt/sources.list.d/nVidia CUDA Repo.list from none to e46043
      --- /etc/apt/sources.list.d/nVidia CUDA Repo.list	2019-12-07 15:34:20.879748261 -0500
      +++ /etc/apt/sources.list.d/.chef-nVidia CUDA Repo20191207-23807-vww0ad.list	2019-12-07 15:34:20.879748261 -0500
      @@ -1 +1,2 @@
      +deb      "http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/" /
      - change mode from '' to '0644'
      - change owner from '' to 'root'
      - change group from '' to 'root'
    * execute[apt-cache gencaches] action run
      - execute ["apt-cache", "gencaches"]
    * apt_update[nVidia CUDA Repo] action update
      - force update new lists of packages
      * directory[/var/lib/apt/periodic] action create (up to date)
      * directory[/etc/apt/apt.conf.d] action create (up to date)
      * file[/etc/apt/apt.conf.d/15update-stamp] action create_if_missing (up to date)
      * execute[apt-get -q update] action run
        - execute ["apt-get", "-q", "update"]

But the rest of my run failed because it was unable to find the packages due to the underlying bug in apt, and running apt update manually will verify that the repo doesn't work:
root@cctv-worker01:/home/ubuntu# apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 252 kB in 1s (281 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.

I suggest that the apt_repository resource's name parameter be subject to the same restrictions as apt itself: ^[a-zA-Z0-9_.-]+$

@RulerOf Thanks for reporting the issue. Will look and revert you accordingly.

Array[0,1].*txt?alert(get=post[az])//alpha.beta

Link On University

For things like this we rely on the underlying O/S and do not try to track the regexp validation across all the possible distros and distro versions.  This isn't a bug in Chef, users are expected to know what filenames are valid or not.


add husky

Dev Summary
we'd like to get our tests and linting to run on specific git commands
we can do things like enforce tests being run before a push (we won't push broken code), and block a commit and prompt you to run prettier if you have lint errors
Test Plan

we don't need the below any more since these are now both checked automatically on different git commands
preReqs (to be checked by reviewer):

[ ] following command succeeds:
cd client && npm run checks && cd ../server && npm run checks && cd ..
expect tests to pass
[ ] ensure all files have been formatted:
cd client && npm run format && cd ../server && npm run format && cd ..
expect git status to show 0 files changed

repro steps:

git checkout jrogers/husky
expect to see npm install and, if it's your first time installing husky, for husky prepare to run

jamesrogers@jamesrogpremiseMBP-2 web-app % git checkout jrogers/husky
Switched to branch 'jrogers/husky'
Your branch is up to date with 'origin/jrogers/husky'.

><EMAIL_ADDRESS>prepare /Users/jamesrogers/Dev/neh/web-app/server
> cd .. && husky install && cd server

husky - Git hooks installed
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^0.3.0 || ^0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.

removed 3 packages and audited 1123 packages in 4.847s

97 packages are looking for funding
  run `npm fund` for details

found 8 vulnerabilities (7 moderate, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

><EMAIL_ADDRESS>prepare /Users/jamesrogers/Dev/neh/web-app/client
> cd .. && husky install && cd client

husky - Git hooks installed
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.

audited 1930 packages in 7.869s

181 packages are looking for funding
  run `npm fund` for details

found 13 vulnerabilities (8 moderate, 4 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details
jamesrogers@jamesrogpremiseMBP-2 web-app %

fix one of the other children props uses (these are components not strings) similar to what i did in client/src/FacebookAuthBtn.tsx
except, let's first include a whitespace error that our husky checks should catch/fix
something like props: React.PropsWithChildren<{  }> (spaces in between curly braces)
git commit -am "fix a bad children prop for husky test"
expect to see husky commands run before commit, looks like snippet below
expect whitespace error to be corrected

jamesrogers@jamesrogpremiseMBP-2 web-app % git commit -am "fix a bad children prop for husky test"
→ No staged files match any configured task.
✔ Preparing...
✔ Running tasks...
✔ Applying modifications...
✔ Cleaning up...
[jrogers/husky 36daaf2] fix a bad children prop for husky test
 1 file changed, 2 insertions(+), 5 deletions(-)
jamesrogers@jamesrogpremiseMBP-2 web-app %

git push
expect checks commands to run in both apps before push succeeds

jamesrogers@jamesrogpremiseMBP-2 web-app %     git push --set-upstream origin jrogers/husky

><EMAIL_ADDRESS>checks /Users/jamesrogers/Dev/neh/web-app/server
> npm run test && npm run lint

><EMAIL_ADDRESS>test /Users/jamesrogers/Dev/neh/web-app/server
> jest

 PASS  src/messages/messages.controller.spec.ts
 PASS  src/messages/messages.service.spec.ts
 PASS  src/users/users.service.spec.ts
 PASS  src/users/users.controller.spec.ts (6.47 s)
 PASS  src/auth/auth.service.spec.ts (6.484 s)

Test Suites: 1 skipped, 5 passed, 5 of 6 total
Tests:       1 skipped, 5 passed, 6 total
Snapshots:   0 total
Time:        7.215 s
Ran all test suites.

><EMAIL_ADDRESS>lint /Users/jamesrogers/Dev/neh/web-app/server
> eslint src/**/*.ts

><EMAIL_ADDRESS>checks /Users/jamesrogers/Dev/neh/web-app/client
> npm run test && npm run lint

><EMAIL_ADDRESS>test /Users/jamesrogers/Dev/neh/web-app/client
> react-scripts test --watchAll=false

 PASS  src/App.test.js (5.05 s)
  ✓ renders the neh logo in the header (270 ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        6.145 s
Ran all test suites.

><EMAIL_ADDRESS>lint /Users/jamesrogers/Dev/neh/web-app/client
> eslint ./src/**/*.{ts,tsx}

Enumerating objects: 35, done.
Counting objects: 100% (35/35), done.
Delta compression using up to 8 threads
Compressing objects: 100% (26/26), done.
Writing objects: 100% (28/28), 112.99 KiB | 3.77 MiB/s, done.
Total 28 (delta 16), reused 0 (delta 0)
remote: Resolving deltas: 100% (16/16), completed with 7 local objects.
remote:
remote: Create a pull request for 'jrogers/husky' on GitHub by visiting:
remote:      https://github.com/Nonprofit-Exchange-Hub/web-app/pull/new/jrogers/husky
remote:
To https://github.com/Nonprofit-Exchange-Hub/web-app.git
 * [new branch]      jrogers/husky -> jrogers/husky
Branch 'jrogers/husky' set up to track remote branch 'jrogers/husky' from 'origin'.
jamesrogers@jamesrogpremiseMBP-2 web-app %

git merge/git pull test TBD. waiting on another PR To land so i can merge that in and display output

Resources

i actually just used a PR from my work and copied that for the most part, so not too much to share here :/
https://typicode.github.io/husky/#/
https://github.com/typicode/husky/issues/851#issuecomment-995872784

Currently git checkout jrogers/husky doesn't automatically run npm install (or husky install), but I wonder if npm install needs to be run to bring in husky first (given this is the first branch with husky in and prepare seems to rely on husky install, which I'm guessing would be an unknown command before installing the package)

Currently git checkout jrogers/husky doesn't automatically run npm install (or husky install), but I wonder if npm install needs to be run to bring in husky first (given this is the first branch with husky in and prepare seems to rely on husky install, which I'm guessing would be an unknown command before installing the package)

yeah i think you're on to something there. there is kind of a chicken or egg problem
and now that i research... https://blog.typicode.com/husky-git-hooks-autoinstall/
it sounds like we may need to do npm install && npm run prepare on the first time at least
can you give this a try @yndajas ?

🎉 ran npm install && npm run prepare in both server and client, checked out main, checked out jrogers/husky again and it ran the commands automatically 🎉
🎉 replicated what you did with client/src/FacebookAuthBtn.tsx in client/src/GoogleAuthBtn.tsx with the suggested whitespace added, then husky intercepted the commit and cleaned it up 🎉
🎉 husky intercepted git push and ran checks in server and client 🎉
🎉 AMAZING 🎉


[Enhancement] Fix all CI errors in master

Search before asking

[X] I had searched in the issues and found no similar issues.

Enhancement Request
Currently, we have lots of CI errors in the master branch, like check style errors, and unit test errors. We need to fix all these errors in order to reuse the CI pipeline.
Describe the solution you'd like
Fix all CI errors in master
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

@horoc please take a look at issue #2072


DBZ-4661 parse MariaDB encrypted keyword

https://issues.redhat.com/browse/DBZ-4661

@jpechane is  this good to solve parsing issue? not sure how to include  "`" character

@ani-sha, could you handle this one? Thx!

Applied to main(1.9), @Naros please add it to the corresponding 1.8 branch and resolve the JIRA. Thanks.

👍 ani-sha @Naros Thank you very much for the review and help

Also applied to candidate-1.8.1.Final PR


Finds the HTTP Packet in the TCP stream even with empty content

#123

Where can I write a test about this fix?

Why not make that method a public method and inject a buffer example that passes and one that fails, but should pass, that this commit fixes?

@daltoniam I noticed that there are no tests implemented. What was the last time you run Autobahn Test? I run it yesterday and the result is: https://dl.dropboxusercontent.com/u/11377305/tmp/starscream-report-ws-20151213/clients/index.html. Some of them are failing.

I haven't added any tests yet. My hope is to create a Swift HTTP/Websocket server that can be used for the tests, but that is going to take a fair amount of work, so I haven't gotten around to it yet. I will take a look at the autobahn tests.

I was able to look into the failing tests the new 1.1.0 release should resolve this (hopefully we can get a test server created in Swift in the future to have better tests).


coconut.vim

Project description
Vim syntax highlight and indent definition for Coconut
Metadata

homepage URL: https://github.com/manicmaniac/coconut.vim
source URL: https://github.com/manicmaniac/coconut.vim
license: none
platforms: vim

Does the absence of a license imply pkgs.lib.licenses.publicDomain?

Blocked by #153960

there shouldn't be any blocking anymore


Partial compatability with rustc 1.56

I'm still using and older rustc which does not support this new format syntax. This MR replaces the usages of that syntax to the traditional format with arguments.
It's called partial support because tests don't build because of some derive macro incompatability. The offending test is help_with_default_parse, and if I remove it all tests pass.

I'll take a look what's wrong with the remaining test. Just curious, why are you still using old version? Upgrades are usually relatively painless.

The test was broken - this part is not implemented and not really needed - commented it out for now. Added CI so compatibility will remain until I intentionally decide to drop it and published 0.4.4.

Thanks for the merge!

why are you still using old version

Honestly I'm just not used to rustc not upgrading with all the other system packages, so it completely slipped my mind that I can do that. But now I did after your reminder (-:


Predict Labels: Import dataset using REST interface

Created, but actual implementation needs to be moved to ContextService


added tombstone state and change state service

Signed-off-by: David<EMAIL_ADDRESS>

LGTM


Please add React Stateless Functional Component

Can you please add something like this ..
import * as React from 'react';

interface WelcomeProps {
};

const Welcome: React.SFC<WelcomeProps> = (props) => {
 return
Hello
;
}

Try tsrsfc in v1.0.9.

Thank you very much !


In JSDoc, resolve import types as values too

This is something that we probably should have been doing for some time.
Fixes #26049

Yes, I agree in general. It's nice to have this as a fallback, though. And for the specific case of @enum, it's mostly supported to enable closure codebases to work better in typescript, so I don't think it justifies a ton of effort.


Integration tests fail when CPATH is set to $CONDA_PREFIX/include

LCOMPILERS_ASSERT failed: /Users/ubaid/Desktop/OpenSource/lc/src/libasr/../libasr/asr.h
function down_cast(), line number 40 at
f != nullptr

This occurs at the following https://github.com/lcompilers/lc/blob/9c855f961ac54f70199e21cb4ff0388531485d47/src/lc/clang_ast_to_asr.h#L703
In the above we have callee being down_casted but the callee is passed as a nullptr.

I am unable to reproduce this one.


Make sure updateSource triggers map re-render

SDK-743

Coverage decreased (-0.08%) to 98.489% when pulling 00ea32f946ab45df507c82ca9fadba2dcfbda8cb on bartvde:source-update-params into c543d02545a54a528de6b03c32f824a622fa30aa on boundlessgeo:master.

Coverage increased (+0.008%) to 98.578% when pulling 27fd948337cef29720511b07287a3cfb9a7a77db on bartvde:source-update-params into c543d02545a54a528de6b03c32f824a622fa30aa on boundlessgeo:master.

Ready for review

Coverage increased (+0.008%) to 98.578% when pulling 03f1814259c505dc730a51cc8b1bebbff21fa26c on bartvde:source-update-params into c543d02545a54a528de6b03c32f824a622fa30aa on boundlessgeo:master.


Segmentation fault when upgrading to grpc-1.11.0 via PECL

Should this be an issue in the gRPC issue tracker?
I'm not sure whether this repository is the correct place however this issue is definitely a bug.
What version of gRPC and what language are you using?
root@yserver:/# pecl list
Installed packages, channel pecl.php.net:
=========================================
Package  Version State
grpc     1.8.5   stable
protobuf <IP_ADDRESS> stable

What operating system (Linux, Windows, …) and version?
root@yserver:/# uname -a
Linux yserver 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux

What runtime / compiler are you using (e.g. python version or version of gcc)
root@yserver:/# dpkg -l | grep -E "php-pear|php7.1-dev|gcc"
ii  gcc                                   4:6.3.0-4                                                          amd64        GNU C compiler
ii  gcc-6                                 6.3.0-18+deb9u1                                                    amd64        GNU C compiler
ii  gcc-6-base:amd64                      6.3.0-18+deb9u1                                                    amd64        GCC, the GNU Compiler Collection (base package)
ii  libgcc-6-dev:amd64                    6.3.0-18+deb9u1                                                    amd64        GCC support library (development files)
ii  libgcc1:amd64                         1:6.3.0-18+deb9u1                                                  amd64        GCC support library
ii  php-pear                              1:1.10.5+submodules+notgz-1+0~20170904061717.3+stretch~1.gbpe356ca all          PEAR Base System
ii  php7.1-dev                            7.1.16-1+0~20180405085419.16+stretch~1.gbp4937aa                   amd64        Files for PHP7.1 module development

What did you do?
I tried to upgrade grpc PECL package by running pecl upgrade.
What did you expect to see?
I expect grpc package to be upgraded.
What did you see instead?
It ended with a segmentation fault message.
Anything else we should know about your project / environment?
I'm not sure whether it makes sense but this server is on Google Cloud.

Thanks for reporting the bug!
I can see the same segmentation fault when running pecl upgrade.
We add -O2 to the compile FLAGS since v1.11.0 and I guess pecl upgrade leaves some old files which it thinks don't need to compile.
Can you please try pecl uninstall grpc && pecl install grpc instead of pecl upgrade grpc?

@ZhouyihaiDing Thanks, pecl uninstall grpc && pecl install grpc worked.


Mosaicking

From https://github.com/pangeo-data/cog-best-practices/issues/4#issuecomment-796861685:

Looks like this is focused on "stacking" items/assets/bands (which I think is the most common workflow). Any plans to incorporate the mosaic workflow like @TomAugspurger has put together in stac_vrt (or maybe this is already there and I just missed it)?

I didn't add any mosaicking directly (at the GDAL level), since you can actually do it pretty easily with plain dask/numpy. Something like:
# TODO `fill_value`s besides NaN
def _mosaic(chunk, axis):
    ax_length = chunk.shape[axis]
    if ax_length <= 1:
        return chunk
    out = np.take(chunk, 0, axis=axis)
    for i in range(1, ax_length):
        layer = np.take(chunk, i, axis=axis)
        out = np.where(np.isnan(out), layer, out)
    return out

mosaicked = stack.reduce(_mosaic, dim="time")

As far as I know, there aren't really any advantages to doing the mosaic in GDAL versus in dask. The one advantage GDAL could theoretically have is that it could short-circuit, and stop loading additional datasets as soon as the output image is already fully-filled-in—however, I don't know if GDAL actually implements this logic. And even if it does, the performance gains of early termination would quickly lose out to the cost of loading each dataset serially. Basically, I think you're better off letting dask read everything in parallel, then throwing away some data, compared to worst-case having GDAL read hundreds of datasets in serial.
So short answer: yes, this is focused only on "stacking", because I think of "mosaic" as just one among many reduction operations you might want to do to a stack (mean, median, quality-band mosaic, etc.).
The bigger question is whether offering a mosaic function is in scope for this project. Personally, I'd like to be, but it should probably be on an xarray accessor, which starts to bump up against the territory of rioxarray.

Agreed that it would be better to implement mosaicing as a reduction instead of using GDAL.  VRTs in particular have some weird scaling behavior related to the order in which files are read and how they interact with the various GDAL caches - some are per file-handle which can cause memory leaks on VRTs with many files.  I think you have the right approach overall; if you can do it with numpy/dask then let's use that, and fall back to GDAL as needed.

The bigger question is whether offering a mosaic function is in scope for this project.

This is an interesting question.  My assumption after giving the repo a look over was that it would support mosaics (although this isn't stated anywhere).  I think mostly because Item Collections (basically a list of items) aren't necessarily always stacked perfectly so support of mosaicing is implicit in my opinion.


Show precipitation amount as bar chart and ONLY probability as number (rather than probability + precipitation amount as two numbers).

Is your feature request related to a problem? Please describe.
No, this is a pure feature request.
Describe the solution you'd like
This is for the forecast section.
I'd love to be able to only show rainfall probability as a number and the bar charts to reflect the expected precipitation amount. I don't want to see the rainfall amount as a number as well.
Right now, the closest option is to select precipitation type rainfall, and then to enable show probability but I don't need to see the precipitation number in that case, it's redundant since the bar chart will already shows the rainfall amount.
Additional context
This will help show cleanly the two independent values related to rainfall: probability as a number and rainfall amount as the bar chart, without any duplication of data
Thank you.

i agree, but would offer more flexability between rainfall amount and probability.. offer charting either one, or displaying the number for either / or.
Further enhancement, I'd love to get an hourly graph, but daily number
ex: i'm graphing probability hourly, but i don't need to see hourly amounts.. a daily total would suffice:


Native executable packages – Need testers for Windows and Mac

Hi Andy! Thank you for making this awesome Ruby library, first GUI app after shoes that I really like. I was thinking about rewriting shoes4, but that source code is a mess, and I don't have enough free time to work on that. Also, SWT wait-a-week-to-start is not what I want from simple app – and that's exactly  when I use ruby for GUI – for simple apps. So, once again, thank you! Now let's go back on-topic…
Packaging Ruby into EXE file is always needed, but not always easy. Windows users want to start an app with double-click, even if installation only require one simple command. At the end, cross-compilation is a pain-in-the-ass. I wrote Golang app that make executables for all three major platforms (install gem and start it), but someone should test it on Windows and Mac. If you are willing to try it, I am going to compile some of your examples, and upload it here. Executables require Ruby installed on the system, but I am looking forward to import windows ruby installer, to start if there's no ruby already installed.

Thank you, I will upload it in next hour or two.

Here are the executables. For testing purposes, a file named cpu.rb will be created. If gem is not found on the system, will be installed. On close, cpu.rb will be self-removed.
For production use, I would make it a little different - Installer that will:

run ruby installer if language not found
install gem if not installed
create directory with project name
create script file inside directory (and other files we might need)
make executable that start our script
create shortcuts

Archive contain executables for:

Linux cpu
Mac cpu.app
Win cpu.exe

rubygui.tar.gz

OK, I tested button.app in Mac x86_64 Catalina.
When I launch by double-clicking (and approving in System Prefernces -> Security & Privacy -> General -> Open Anyway), the app starts and closes right away.
I tried running form the terminal next ./button.app, and I got this output:
% ./button.app
<internal:/Users/andymaleh/.rvm/rubies/ruby-3.0.2/lib/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- glimmer-dsl-libui (LoadError)
	from <internal:/Users/andymaleh/.rvm/rubies/ruby-3.0.2/lib/ruby/site_ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from button.rb:3:in `<main>'

So, I installed glimmer-dsl-libui and rerun ./button.app, and it finally worked.

I tested button.exe in Windows 10 x86_64
It does not work, and give me this message when run from command prompt:
button.exe
panic: not supported by windows

goroutine 1 [running]:
main.exeR({0xda7b56, 0xc00002c000}, {0xdb034a, 0x175, 0xdaace9})
        /home/alx/Alpha/rubygui/button.go:66 +0x4f
main.main()
        /home/alx/Alpha/rubygui/button.go:76 +0xa8

I noticed it generated a button.rb file. I can run that file directly with ruby while having glimmer-dsl-libui installed.

I tested in Linux Ubuntu 21.10 x86_64.
Just like the Mac, if I just run the command, I get this message:
$ ./button
<internal:/home/oem/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- glimmer-dsl-libui (LoadError)
	from <internal:/home/oem/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from button.rb:3:in `<main>'

Then, I installed glimmer-dsl-libui, and reran the button command, and it worked.

Ok, I see where the problem is. I will change a few things and upload files again.

I found some time to install virtual machines, and Windows .exe work with ruby and glimmer installed. Old executables used syscall.Exec which causes problem on Windows. I am writing new code to check for ruby and glimmer, and I will make a new repo with installer, once I am done (a day or two). I will also post a message with files here.

I've just made a new repository with go-lang code and executables. Repo is still private, until you test it, so I can add more functions. Linux executables written in go must be opened from terminal, but I don't care too much about executables for linux. It's more for Windows users.

@alx3dev I did receive the invitation and I accepted it. However, I just checked the repo now to see if there are new functions I could test, and suddenly the URL is not working or allowing me in anymore.
https://github.com/alx3dev/executable-ruby

Because I made a gem that will be released under GPL license, so it's a public repo now.
I made a skeleton for gem-install process, now I am working on plugins for other stuff like git clone if available, or net/http download if there is nothing installed (gem or git).
It's available at https://www.github.com/alx3dev/executable-ruby

It would be counter-intuitive to add GUI in html and JS instead of using this as the perfect opportunity to eat your own dog food and build the GUI using executable-ruby and Glimmer DSL for LibUI. With all the desktop Ruby libraries I am providing, I am working hard to end people's over-reliance on the highly complex and over-engineered web technologies of html/css/js. I think the GUI definitely has to be desktop GUI to prove that your project works!

One more thing, it is quite inconvenient to require Rubyists to install golang. Furthermore, many Rubyists are anti-go-lang as it comes from the evil Google corporation, and prefer C or Crystal as alternatives. Could you either build a binary (static?) that would make your command work without install golang, or otherwise rewrite your project with Crystal or C?

I know that, I also hate google corporation, but it's the only language where I am able to cross-compile without problems. I am not a C programmer, and I don't know how to cross-compile with Crystal. Building static binary is my first to-do in near future, but for now the only thing coming to my mind is a docker container.

Now about JS... I don't want to make GUI with JS when this library is here, I was thinking about GUI when ruby is not installed. But since I will add a ruby installation on the beginning of the process, there's actually no need for any html/js.

I think I read somewhere that go builds static binaries by default, so that is not the issue. What I actually really meant is to include golang itself as a static binary to avoid requiring Rubyists from installing golang separately.
If it is too difficult at this time, what you offer is definitely better than nothing, so thank you for your effort and I look forward to your continued progress in it.

Yea I know, my English is not so perfect when I am in hurry. I was talking about building static binary that will allow us to build new binary, without golang installed.

If you have any idea how this could be done in C++, feel free to send me e-mail, or just open issue in the repo. I am looking forward for the best way to implement go builder without Golang installation, or to rewrite it in C++. Any opinion is highly appreciated!

You convinced me of using golang already, so I look forward to future progress in your current implementation, and I appreciate that someone is putting the effort in running CRuby code as a binary executable no matter the approach.


Track dashboards per namespace in ControllerConfig

Description

I was having issues with dashboards getting re-fetched and the grafana instance restarting constantly, and eventually I tracked it down to this being the root cause.
Relevant issues/tickets

Without digging too deep I see that #686 seems similar to the issues I was facing.
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[ ] This change requires a documentation update
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added a test case that will be used to verify my changes
[ ] Verified independently on a cluster by reviewer

Verification steps

Has been running in my home cluster for a while, and the issues have vanished, so it seems I did something right. Another pair of eyes never hurt though.

hey @addreas Can you verify that manifests/crds generate correctly for this type? AFAIR we had a few issues with generation because of the custom type in the map. However, if that works now, we're more than happy to revert to the mapped approach

Hmm, not sure I follow. Isn't this type internal to the controller? I can't see this type used in anything generated, make generate manifests api-docs seem to work fine either way, though.
Pushed a fix for the formatting to make go-lint happy.

Hmm, not sure I follow. Isn't this type internal to the controller? I can't see this type used in anything generated, make generate manifests api-docs seem to work fine either way, though.
Pushed a fix for the formatting to make go-lint happy.

Thanks @addreas I'll take a look at this again today and verify it locally, then we can merge this!

@addreas I've had a chance to look through, Code looks good, however, the Grafana CR status isn't being updated with the references, as I think you intended for it to do. Currently this looks like it's stored in memory (which is fine as long as the operator pod is up and running)
@pb82 @NissesSenap @robshelly , What is your take on this? Are we Ok with keeping the dashboard refs in memory as opposed to in the status field? are there any edge cases you guys can think of where the operator might not correctly act on CRUD operations for a dashboard when it loses references?
I think we probably won't lose any data if the operator needs to resync itself with those dashboards (worst case it will force update the grafana pod)

Good catch, @HubertStefanski, didn't think of checking if that still worked before. Looking at my changes now I see how I might have stopped at making the compiler happy without actually thinking about what the code was intended to do. Taking a look at fixing it.


Path separator not decoded correctly

I tried to open a local tar file in Windows 10, but the path separator was decoded incorrectly.
from itertools import islice
import webdataset as wds
dataset_path = os.path.join('dataset', 'dataset.tar)
dataset = wds.WebDataset(dataset_path)
for batch in islice(dataset, 3):
    print(batch.keys())

This should open the dataset as normal; however, this throws a FileNotFoundError with the following message: FileNotFoundError: [Errno 2] No such file or directory: 'datasetdataset.tar'
Manually changing the dataset_path variable to
from itertools import islice
import webdataset as wds
dataset_path = '/'.join(['dataset', 'dataset.tar'])
dataset = wds.WebDataset(dataset_path)
for batch in islice(dataset, 3):
    print(batch.keys())

opens the dataset correctly.

I'm not sure why this is happening; os.path.join is supposed to use the platform-specific pathname separator.
Which version/distribution of Python are you using and how are you running it?

As you said, Windows uses \\ and Linux uses /. Manually changing the path separator from \\ to / worked normally.
The python version is 3.7.8 and the webdataset version is 0.1.54.
I isolated the whole setup in a virtualenv to ensure reproducibility.

I still don't understand the bug report. You're on Windows, and os.path.join should be using "\" on Windows.
Your  version, on the other hand, explicitly and literally uses the Linux path separator "/", yet that is working on Windows.
The os.path.join call is exactly what should ensure portability.
That's why I'm wondering: what's the actual source of your Python distribution? Is it Conda for Windows? Is it Python running under MS-Ubuntu? Etc.

Python, pip, all on Windows. When I tried it on WSL on the same machine, it obviously worked without manual replacement.

Can you just run
>>> os.path.join("a", "b")

directly in Python and see what it outputs?

Nothing unusual.

OK, I'm mystified since the path joining works correctly when you call it directly, but not when called from within the library.
I'll keep the bug open to watch this and test on Windows (there is no test automation for Windows, so that has to be a manual check).

Thanks for taking an interest in this issue. Looking forward to the next update :)

This is because of braceexpand
import braceexpand
print(list(braceexpand.braceexpand('dataset\dataset.tar')))

>> ['datasetdataset.tar']

I think this would work for local files but I don't think it does with cloud locations:
import braceexpand
from pathlib import Path, PureWindowsPath, PurePosixPath

path = Path('dataset/dataset{00..02}.tar')
print(path)
>> dataset/dataset{00..02}.tar
brace = list(braceexpand.braceexpand(str(path.name)))
print(brace)
>> ['dataset00.tar', 'dataset01.tar', 'dataset02.tar']
brace = [str(path.parent / b) for b in brace]
print(brace)
>> ['dataset/dataset00.tar', 'dataset/dataset01.tar', 'dataset/dataset02.tar']

Cloudpathlib might work for some cloud things but doesn't for ftp yet (dunno about http). os.sep would also give you issues with URL when on Windows as far as I can tell...
This seems okay?
import braceexpand

path = 'dataset\dataset{00..02}.tar'
path = path.translate({92: 43})
print(path)
>> dataset+dataset{00..02}.tar
brace = list(braceexpand.braceexpand(path))
print(brace)
>> ['dataset+dataset00.tar', 'dataset+dataset01.tar', 'dataset+dataset02.tar']
brace = [b.translate({43: 92}) for b in brace]
print(brace)
>> ['dataset\\dataset00.tar', 'dataset\\dataset01.tar', 'dataset\\dataset02.tar']

To be honest I would prefer if the input was a list and then you could put braceexpand in the examples. And then we could also get the paths from glob or some other source.

The input can be a list; when you pass a list to WebDataset, it will not perform further expansion on it.
The input can also be an IterableDataset, in which case, WebDataset will iterate over it for a list of pathnames; that way, you can compute them dynamically.
When the input is a string, it is brace expanded.
There is really little reason to use backslash in path names on Windows either; forward slash is a full equivalent. Using paths with forward slashes is a good idea because it makes it easier to move the code between platforms and to move between the web and local file systems.  (For the same reason, it's a good idea to avoid braces, colons, and spaces in file names.)

Are there any solutions to this?


offlineimap: 7.0.4 -> 7.0.5

Motivation for this change
Things done

[x] Tested using sandboxing
(nix.useChroot on NixOS,
or option build-use-chroot in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Travis passed, thanks.


ok should list all valid tests, perhaps when edit distance is too large

I think we should be more clear what problems ok is able to test. Using Homework 1 as an example, it is not clear that there are no tests for if_function.
Interestingly, running python3 ok -q if_function actually runs the tests for hailstone. I do think that running python3 ok -q hailston and running hailstone is nice, so maybe we should introduce some maximum edit distance we are willing to run a test for. Typing the entire function name out (as opposed to q1) is a bit inconvenient though, so I think somehow mapping q1 to a list of functions to run doctests for would be preferable.

Resolved by 6c9783c2cb444d200e6f217e3a5de4476d8426d8


Monit Email Notifications

Important notices
Our forum is located at https://forum.opnsense.org , please consider joining discussions there in stead of using GitHub for these matters.
Before you ask a new question, we ask you kindly to acknowledge the following:
[X] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
[X] I have searched the existing issues and I'm convinced that mine is new.
I’m trying to setup Monits to email me when my primary interface goes down and my backup internet is now active; then vice versa.  I don’t see much documentation on this situation.  Would you be able to help me?

Have you searched the forums? I think the forums are a better place for such questions.
Here's a good start: https://forum.opnsense.org/index.php?topic=5303.0
The dev of monit feature is also active on IRC for specific questions (faunsen)

I did search the forums and even made a post but never got any replies.  Ill try IRC, thanks.


Passing an encryption key to Kibana

Problem description
When I load the Security app "Overview" dashboard I get the following error message:

Unable to create actions client because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.

Extra information
Stack configuration
Outside of the default configuration.

I changed password as prescribed in readme
I tried fixing the issue myself...by adding a new variable to .env file (XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY) and editing the Kibana.yml to include the "encryptedSavedObjects.encryptionKey" with the value equal to the variable I created in .env file
However, when I brought up the stack again Kibana wouldn't come up. So I had to comment out the variable and it came up. I'm sure I missed something simple

diff --git a/.env b/.env
index 36149ab..b4e608e 100644
--- a/.env
+++ b/.env
@@ -7,16 +7,18 @@ ELASTIC_VERSION=8.4.1
 #
 # Superuser role, full access to cluster management and data indices.
 # https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html
-ELASTIC_PASSWORD='changeme'
+ELASTIC_PASSWORD='password'

 # User 'logstash_internal' (custom)
 #
 # The user Logstash uses to connect and send data to Elasticsearch.
 # https://www.elastic.co/guide/en/logstash/current/ls-security.html
-LOGSTASH_INTERNAL_PASSWORD='changeme'
+LOGSTASH_INTERNAL_PASSWORD='password'

 # User 'kibana_system' (built-in)
 #
 # The user Kibana uses to connect and communicate with Elasticsearch.
 # https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html
-KIBANA_SYSTEM_PASSWORD='changeme'
+KIBANA_SYSTEM_PASSWORD='password'
+
+XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY="<32 character key>"
diff --git a/kibana/config/kibana.yml b/kibana/config/kibana.yml
index 9eb2099..0caaacb 100644
--- a/kibana/config/kibana.yml
+++ b/kibana/config/kibana.yml
@@ -11,3 +11,4 @@ monitoring.ui.container.elasticsearch.enabled: true
 #
 elasticsearch.username: kibana_system
 elasticsearch.password: ${KIBANA_SYSTEM_PASSWORD}
+#xpack.encryptedSavedObjects.encryptionKey: ${XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY}

Docker setup
Client: Docker Engine - Community
Version:           20.10.18
API version:       1.41
Go version:        go1.18.6
Git commit:        b40c2f6
Built:             Thu Sep  8 23:12:02 2022
OS/Arch:           linux/amd64
Context:           default
Experimental:      true
Server: Docker Engine - Community
Engine:
Version:          20.10.18
API version:      1.41 (minimum version 1.12)
Go version:       go1.18.6
Git commit:       e42327a
Built:            Thu Sep  8 23:09:37 2022
OS/Arch:          linux/amd64
Experimental:     false
containerd:
Version:          1.6.8
GitCommit:        9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
runc:
Version:          1.1.4
GitCommit:        v1.1.4-0-g5fd4c4d
docker-init:
Version:          0.19.0
GitCommit:        de40ad0
<!--
Please paste the full output of the `docker-compose version` command below.

Docker Compose version v2.10.2

#### Container logs

I don't know why but its not producing a log when I execute the `docker-compose logs` command

```
no configuration file provided: not found
```

@grizzlycode Compose won't automatically inject the environment into all containers it creates, as that would be insecure (you could leak sensitive information into a container that is not supposed to access it).
If you want the encryption key to come from the environment (e.g. by using the .env file like you did), you have to explicitly pass it to the container inside the Compose file.
Example, forwarding an existing environment variable to Kibana by substitution:
https://github.com/deviantony/docker-elk/blob/fd33e7ccbb0ca2dc70f9516dbe64a0bc3cce4934/docker-compose.yml#L82-L83

Thanks, I'm still learning docker and Elasticsearch. I tried again making sure it was in the proper container environment however, I got the following error:
docker-elk-kibana-1         | /usr/share/kibana/node_modules/@kbn/apm-config-loader/target_node/utils/read_config.js:41 docker-elk-kibana-1         |     throw new Error(Unknown environment variable referenced in config : ${envVarName}); docker-elk-kibana-1         |     ^ docker-elk-kibana-1         |  docker-elk-kibana-1         | Error: Unknown environment variable referenced in config : XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY docker-elk-kibana-1         |     at /usr/share/kibana/node_modules/@kbn/apm-config-loader/target_node/utils/read_config.js:41:11 docker-elk-kibana-1         |     at String.replace (<anonymous>) docker-elk-kibana-1         |     at replaceEnvVarRefs (/usr/share/kibana/node_modules/@kbn/apm-config-loader/target_node/utils/read_config.js:34:14) docker-elk-kibana-1         |     at merge (/usr/share/kibana/node_modules/@kbn/apm-config-loader/target_node/utils/read_config.js:51:71) docker-elk-kibana-1         |     at merge (/usr/share/kibana/node_modules/@kbn/apm-config-loader/target_node/utils/read_config.js:48:7) docker-elk-kibana-1         |     at getConfigFromFiles (/usr/share/kibana/node_modules/@kbn/apm-config-loader/target_node/utils/read_config.js:66:20) docker-elk-kibana-1         |     at loadConfiguration (/usr/share/kibana/node_modules/@kbn/apm-config-loader/target_node/config_loader.js:30:58) docker-elk-kibana-1         |     at initApm (/usr/share/kibana/node_modules/@kbn/apm-config-loader/target_node/init_apm.js:18:64) docker-elk-kibana-1         |     at module.exports (/usr/share/kibana/src/cli/apm.js:27:3) docker-elk-kibana-1         |     at Object.<anonymous> (/usr/share/kibana/src/cli/dist.js:10:17) docker-elk-kibana-1 exited with code 1
When I have more time I'll see if I can get the environment stuff working. However, I decided to skip the .env route for now and just edit the kibana.yml directly and it's working now! I'll close out this issue.


With version 2.x CloudFlareTurnstile widget is not initiated

Hi, everything works fine with v1.2.6 but when upgrading to 2.0.1 the widget is not loaded and token is not triggered. What is the problem.
`
CloudFlareTurnstile(
siteKey: Build.CAPTCHA_SITE_KEY,
baseUrl: Build.CAPTCHA_SITE_DOMAIN,
mode: TurnstileMode.invisible,
action: "lock",
controller: turnstileController,
onTokenExpired: () {
debugPrint("cloudflare-onTokenExpired-----");
},
onTokenRecived: (token) async {
if (await turnstileController.isExpired()) {
debugPrint("cloudflare-token-token is expired. retry new token");
debugPrint("cloudflare-token-expired-----");
debugPrint(token);
debugPrint("cloudflare-token-expired-----");
turnstileController.refreshToken();
  return;
}

debugPrint("cloudflare-token-----");
debugPrint(token);
debugPrint("cloudflare-token-----");

},
options: TurnstileOptions(
retryAutomatically: true,
refreshTimeout: TurnstileRefreshTimeout.auto,
refreshExpired: TurnstileRefreshExpired.auto,
),
),
`

@hintbox hi, thanks for reporting the issue.
Just to help me narrow down the problem, could you confirm a few details:

Are you running the app on iOS, and if so, is it on a real device or simulator?
Does the widget fail to load only in version 2.0.1, or does the issue persist event after downgrading back to 1.2.6?
Are there any errors or logs printed in the console when the widget fails to load?

Additionally, since you are using the invisible widget mode, I would recommend inplementing the onError function in the turnstileController to capture more detailed error messages. This might give better insights into what`s causing the widget not to load.
Here`s an example:
turnstileController.onError((error) => print("Turnstile error: ${error.message}"));

Let me know if this helps or if you still encounter the problem after trying the above!

Hi, thank you for your quick response.

yes ios and it is simulator
version 1.2.6 works fine both real device or simulator. problem is with 2.0.1
i also added onError but does not received and error message

Also at cloudflare panel, the widget mode is defined invisible, which i use keys in the app

Hi, thank you for your quick response.

yes ios and it is simulator
version 1.2.6 works fine both real device or simulator. problem is with 2.0.1
i also added onError but does not received any error message

Also at cloudflare panel, the widget mode is defined invisible, which i use keys in the app

While I know there are some breaking changes in version 2.0.1, it doesn’t sound like those are causing this particular issue. The problem might be related to how the widget is being rendered in your app.
Even though you're using invisible mode, the widget still needs to be part of the Flutter widget tree to function properly.
Ensure the widget is in the widget tree - Even if it’s invisible, it still needs to be in the Flutter build method.
Also, I just released a new version with a few things fixed, so it might be worth upgrading to see if that resolves your issue.

Hi, i upgraded new version but still problem continues. Widget is in the widget tree, i added image.

I upgraded web package to 1.1.0 and received log
[cloudflare_turnstile] Error: 300030.

It seems like the error popped up while building the webview_flutter_wkwebview package, which is a dependency of the cloudflare_turnstile package you're using. It's possible that the issue lies with mismatched versions or build cache issues.

Clear the Flutter build cache (if you haven`t tried this yet)

I'll try to resolve this issue as quickly as I can.

hi, i have overrided webview_flutter_wkwebview version to 3.15.0 and cleaned build cache but same problem goes on. also tried on both real device and simulator.

hi @Nika0000, do you have a solution for new version?

hi @Nika0000, do you have a solution for new version?

Hi, i'm still working on it and trying my best to fix things. Just to confirm, does this issue only shown up with the invisible widget mode? Have you tried using test key yet? It might also help to try using the managed widget mode with the test key to see if the problem persists there.
// Visible Test SiteKey
1x00000000000000000000AA

// Invisible Test SiteKey
1x00000000000000000000BB

And finally :) please try the example. I`ve tried many things that could have caused this problem, but everything seems to be working fine.
https://github.com/user-attachments/assets/27de4226-64b0-4a4a-9c75-f9dd4f349eb6

Hi @Nika0000
Thanks for your efforts for this library.
I have encountered same error. Error shows up whether it is managed or invisible mode. (Latest version 2.0.3)

Turnstile error: An unspecified error occurred in the visitor while they were solving a challenge.

I have tried both on android emulator and real device.
This error does not occur in debug mode. Everything works fine in debug mode. Only and always occurs in release mode on both emulator and android devices.
Below is the error printed in console in release ( managed mode):
E/flutter (19583): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Unable to find a PlatformView or View instance: 1, null
E/flutter (19583):      at io.flutter.plugins.webviewflutter.m.a(Unknown Source:60)
E/flutter (19583):      at io.flutter.plugin.platform.x.M(Unknown Source:39)
E/flutter (19583):      at io.flutter.plugin.platform.x$a.f(Unknown Source:38)
E/flutter (19583):      at l0.m$a.d(Unknown Source:263)
E/flutter (19583):      at l0.m$a.a(Unknown Source:175)
E/flutter (19583):      at m0.i$a.a(Unknown Source:17)
E/flutter (19583):      at b0.c.i(Unknown Source:18)
E/flutter (19583):      at b0.c.j(Unknown Source:41)
E/flutter (19583):      at b0.c.f(Unknown Source:0)
E/flutter (19583):      at b0.b.run(Unknown Source:12)
E/flutter (19583):      at android.os.Handler.handleCallback(Handler.java:942)
E/flutter (19583):      at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter (19583):      at android.os.Looper.loopOnce(Looper.java:201)
E/flutter (19583):      at android.os.Looper.loop(Looper.java:288)
E/flutter (19583):      at android.app.ActivityThread.main(ActivityThread.java:7872)
E/flutter (19583):      at java.lang.reflect.Method.invoke(Native Method)
E/flutter (19583):      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/flutter (19583):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
E/flutter (19583): , null, null)
E/flutter (19583): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:648)
E/flutter (19583): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334)
E/flutter (19583): <asynchronous suspension>
E/flutter (19583): #2      SurfaceAndroidViewController._sendCreateMessage (package:flutter/src/services/platform_views.dart:1040)
E/flutter (19583): <asynchronous suspension>
E/flutter (19583): #3      AndroidViewController.create (package:flutter/src/services/platform_views.dart:827)
E/flutter (19583): <asynchronous suspension>
I/flutter (19583): Turnstile error: An unspecified error occurred in the visitor while they were solving a challenge.

It seems that flutter webview have some issues. I have encountered problems with loading and running custom javascript with flutter webview controller in the past. I have used https://pub.dev/packages/flutter_inappwebview successfully. This library has normal webview like flutter webview; and also have headless webview to be used without rendering webview widget. I have used headless webview https://inappwebview.dev/docs/webview/headless-in-app-webview for calling javascript functions without widget.
I also had crashes on android emulator like the other issue you mentioned. It seems there is a problem with current webview.
If you can replace flutter webview with this library, these errors may be solved.
I will also look into your code and try with that library when I have time.

Thanks @doodev . You're right. I'll switch back to using flutter_inappwebview

hi @Nika0000 what will be next update release time? Thank you.

hi @Nika0000 what will be next update release time? Thank you.

Approximately 2-3 days, with a target date around October 15th.

Hello @Nika0000 , thanks for your efforts!
Please, if possible, in the new version, consider exposing a builder or a state variable for when the page is loading (loading progress), so I can display my custom loading widget while the captcha website is being displayed.
Best regards.

hi, @Nika0000  any update

Before the new version is released, try adding this to your pubspec.yaml:
  cloudflare_turnstile:
    git:
      url: https://github.com/Nika0000/cloudflare_turnstile.git
      ref: legacy

Invisible widget works differently now. Check out the README.md for the details. Also the invisible widget mode isn't available yet on the web platform.

Hi, i received this error within a loop.
TurnstileException -1: The operation couldn’t be completed. (NSURLErrorDomain error -999.)

hi @Nika0000 , as a service it works well. Thank you 🙏

@Nika0000 how can we receive token from invisible when refresh called. currently i think, we should call   turnstile.getToken(); for each time?

is it possible to pass "onTokenReceived", "onTokenExpired" and "onError" functions for invisible item.
i just logged this
[JavaScript Handler "TokenExpired"] Bad state: Future already completed #0      _AsyncCompleter.complete (dart:async/future_impl.dart:43:31) #1      _TurnstileInvisible._createChannels.<anonymous closure> (package:cloudflare_turnstile/src/widget/impl/turnstile_widget.dart:619:23) #2      IOSInAppWebViewController._handleMethod (package:flutter_inappwebview_ios/src/in_app_webview/in_app_webview_controller.dart:1538:73) #3      InternalChannelController.initMethodCallHandler.<anonymous closure> (package:flutter_inappwebview_platform_interface/src/util.dart:631:30) #4      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:571:55) #5      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:564:34) #6      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:618:35) #7      _invoke2.<anonymous closure> (dart:ui/hooks.dart:347:15) #8      _rootRun (dart:async/zone.dart:1399:13) #9      _CustomZone.run (dart:async/zone.dart:1301:19) #10     _CustomZone.runGuarded (dart:async/zone.dart:1209:7) #11     _invoke2 (dart:ui/hooks.dart:346:10) #12     _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:45:5) #13     _Channel.push (dart:ui/channel_buffers.dart:135:31) #14     ChannelBuffers.push (dart:ui/channel_buffers.dart:343:17) #15     PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:750:22) #16     _dispatchPlatformMessage (dart:ui/hooks.dart:257:31)

is it possible to pass "onTokenReceived", "onTokenExpired" and "onError" functions for invisible item.
i just logged this
[JavaScript Handler "TokenExpired"] Bad state: Future already completed #0      _AsyncCompleter.complete (dart:async/future_impl.dart:43:31) #1      _TurnstileInvisible._createChannels.<anonymous closure> (package:cloudflare_turnstile/src/widget/impl/turnstile_widget.dart:619:23) #2      IOSInAppWebViewController._handleMethod (package:flutter_inappwebview_ios/src/in_app_webview/in_app_webview_controller.dart:1538:73) #3      InternalChannelController.initMethodCallHandler.<anonymous closure> (package:flutter_inappwebview_platform_interface/src/util.dart:631:30) #4      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:571:55) #5      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:564:34) #6      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:618:35) #7      _invoke2.<anonymous closure> (dart:ui/hooks.dart:347:15) #8      _rootRun (dart:async/zone.dart:1399:13) #9      _CustomZone.run (dart:async/zone.dart:1301:19) #10     _CustomZone.runGuarded (dart:async/zone.dart:1209:7) #11     _invoke2 (dart:ui/hooks.dart:346:10) #12     _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:45:5) #13     _Channel.push (dart:ui/channel_buffers.dart:135:31) #14     ChannelBuffers.push (dart:ui/channel_buffers.dart:343:17) #15     PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:750:22) #16     _dispatchPlatformMessage (dart:ui/hooks.dart:257:31)

No, onTokenReceived, onTokenExpired, and onError are part of the visible widget, not the invisible one. However, the invisible widget has all the same functions that work exactly as they do in the visible widget. I’ve noted the issue you mentioned, and I’ll fix it tomorrow. I’ll also add more examples on how to use it.

thank you @Nika0000 🙏

Hi @Nika0000
I have not been able look into your code, I have been busy and I've switched to google recaptcha v3 for now.
As the issue is closed, I just quickly tried this new version with inappwebview.
Both manual and invisible  works fine under debug and release mode now. 👍  (Tested with emulator and real device)


[red-knot] Infer Literal types from comparisons with sys.version_info

Summary
sys.version_info is annotated in typeshed as being an instance of sys._version_info. This is correct as far as it goes (or at least as correct as it can be, given typeshed's constraints), but means that we have to work in some special casing for the sys._version_info class definition, so that in some situations we treat it the same as we would a heterogenous tuple. We also need to add special casing for sys.version_info anyway, so that we infer literal integers for the first two elements; this then enables us to infer that some sys.version_info branches are always truthy, and others are always falsey.
This PR adds the necessary special casing.
Helps with #14171 (but doesn't touch any of the control-flow parts of that task, which I think @sharkdp is planning to work on).
Test Plan
mdtests added.

A small bug I discovered while working on this PR in our tuple-comparison logic: #14279

Very nice, thank you!


Oracle Extractor (Continuation of PR #1074)

This PR addresses some changes and fixes to the original PR #1074 .

Test was successful with "lbendig:pr_oracle_extr" branch.

Coverage decreased (-0.1%) to 49.851% when pulling b3622b35415fd65de620e0e7eb2f8ae6d97b5fb8 on lbendig:pr_oracle_extr into a2a6d94c14c13a36fd33d4695ec8c6f791f8d73d on linkedin:master.

@jinhyukchang Thanks for testing it. Can you and/or anyone else please check this PR whether it's eligible to merge to the codebase?

@lbendig PR looks good to me.
@vasanthrajamani Could you let someone take a look and merge? (Most of changes are from previous PR which already have been reviewed)

@vasanthrajamani , Oracle Source has been in PR quite a while. Could you let someone to take a look? Thanks!

@lbendig Could you address the comment when you have a chance? Thanks!

@lbendig Any update?

@ydai1124, @jinhyukchang Thanks for the review, I addressed your comments. I'll open a PR for the documentation. BTW, the TeradataWriter also needs to be documented, I'll take care of that.

@lbendig  Sorry for the late update. Thanks for contributing!

@jinhyukchang , @ydai1124 Thank you for the review! Credit also goes to @bjvanov.


Cluster markers

Hi,
would it be possible to influence map markers through cluster items? I mean, cluster prop items would be an array of marker props. I'm mainly interested in options and icons.
Thanks

I'm not following what you'd like to see? You'd like a custom cluster marker?

I'd like custom cluster marker and map marker.

I need to change the map marker image and easy option to re-style cluster markers (shape, color).
<gmaps-cluster
            v-bind:items="mapMarkers"
            v-bind:options="clusterOptions"
            v-on:click="openPopup"
/>

Currently it is possible into mapMarkers pass only lat, lng, id and title (mapMarkers). My suggestion is pass also icon that can be URL, Icon Interface and Symbol Interface
Thanks

No problem. I wanted to do custom markers for clusters but it's not as simple as individual markers.
You can already do this with markers by the way. Check out the icon prop for markers in the docs.
I'll add it to my list and try figure out a neat way to allow custom images for clusters. Do you have an example of how you might want to display it (assuming I can provide the cluster number)?

I know that it is already possible with gmaps-marker component. But when I want to change map marker icon for gmaps-cluster component I'm not able to do it. Unfortunately I need to have custering in my project. Custom cluster markers are not so important as custom map markers for me. So my original suggestion was that gmaps-cluster prop items can accept same parameters as gmaps-marker prop options. Is it possible?
I need to have map marker like this

where I can easily change background color (so I want to use Symbol Interface), but even for gmaps-marker component I'm not able to change fillColor. I can create set of icons with different colors and change icon path, but as I mentioned, it is not possible for gmaps-cluster component.
Regarding cluster marker, I need to have it as circle without shadow and be able to set color without percentage change. I was able to achieve it by css overriding.

Great. Thanks for that information. As I say, I'll have a look at this some
time soon. It was certainly something I wanted to do at the start but
haven't had the time.
As always, of anyone else wants to have a try I'm keen to have more
contributors!
On Fri, 25 Jun 2021, 9:31 pm Tomáš Linhart, @.***>
wrote:

I know that it is already possible with gmaps-marker component. But when I
want to change map marker icon for gmaps-cluster component I'm not able to
do it. Unfortunately I need to have custering in my project. Custom cluster
markers are not so important as custom map markers for me. So my original
suggestion was that gmaps-cluster prop items can accept same parameters as
gmaps-marker prop options. Is it possible?
I need to have map marker like this
[image: Screenshot 2021-06-25 at 13 04 22]
https://user-images.githubusercontent.com/16204382/123416446-d76de600-d5b6-11eb-8498-9d812e7ad157.png
where I can easily change background color (so I want to use Symbol
Interface), but even for gmaps-marker component I'm not able to change
fillColor. I can create set of icons with different colors and change icon
path, but as I mentioned, it is not possible for gmaps-cluster component.
Regarding cluster marker, I need to have it as circle without shadow and
be able to set color without percentage change. I was able to achieve it by
css overriding.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/xon52/x5-gmaps/issues/71#issuecomment-868434039, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHKKQWAU5DQOIP3RUMPDAJDTURSK5ANCNFSM47FT3Y5A
.

Hi,
there is PR that I think solves my requirements https://github.com/xon52/x5-gmaps/pull/72
PS: A guide for contributors would be useful :-)

Thanks very much for that. Apologies it took so long to look at it.
And I hear you about the contributors guide. Time is my biggest challenge but I do appreciate that helps other people help which saves me time - so it's worth it!


Fetch failed error when trying to upload a file

Hi guys
I'm facing an issue not sure what can be the cause, i'm interested about the document intelligence function, have fulfilled all the env. variable regarding that in my azure properties page
Model is working great with no issue but anytime I try to upload a file I got the "fetch failed" message
No more information and I'm not really sure how to get more info
I have checked and my env. variable look correct, the api key, the endpoint are all ok but still same issue at the end
Also the indexer is not created automatically so I created one, not sure if this is related
Attached the picture o the error
thanks for your help

@MuratYasartas are you still facing this error? Could you please make sure you have the latest version of the code and also make sure that the Document intelligence endpoints are configured correctly?
If you are still facing this error are you able to provide the logs from your VSCode console?

Hi, I am running in the same problem.

Same issue here.

I got it working. I am not sure why. Cli deploy and a new indexer helped.

@schneutzi-81 can you guide me on how to create a new indexer? Mine is not creating automatically and not sure what are the options to be added in.
@nacartwright admin key didn't helped in that situation

We are also looking for assistance on the indexer configuration. It does not seem to be automatically created with any of the deployment methods and we are a little stuck.

Worked out the hard way...
AZURE_SEARCH_NAME should be set to just the part of the endpoint URL between https:// and .search.windows.net, NOT the whole endpoint URL.  The doco is a bit ambiguous and/or my reading comprehension is weak.

@ShaunMaher
Thank you very much! It helps.
However, can you explain me/us how to create the index and indexer as it is not created automatically.
@schneutzi-81

@danvdb24
I think the idea is that if you have the search service setup correctly, you shouldn't need to setup the index yourself.  The application will do it itself.
I have had a look at what is setup on my search service (which is now working) and:

There is an Index
There are no Indexers
There are no Datasources, Aliases or Skillsets

For reference, again, because you shouldn't need it, my Index fields look like this:
[
  {
    "name": "id",
    "type": "Edm.String",
    "searchable": true,
    "filterable": true,
    "retrievable": true,
    "sortable": true,
    "facetable": true,
    "key": true,
    "indexAnalyzer": null,
    "searchAnalyzer": null,
    "analyzer": null,
    "normalizer": null,
    "dimensions": null,
    "vectorSearchConfiguration": null,
    "synonymMaps": []
  },
  {
    "name": "user",
    "type": "Edm.String",
    "searchable": true,
    "filterable": true,
    "retrievable": true,
    "sortable": true,
    "facetable": true,
    "key": false,
    "indexAnalyzer": null,
    "searchAnalyzer": null,
    "analyzer": null,
    "normalizer": null,
    "dimensions": null,
    "vectorSearchConfiguration": null,
    "synonymMaps": []
  },
  {
    "name": "chatThreadId",
    "type": "Edm.String",
    "searchable": true,
    "filterable": true,
    "retrievable": true,
    "sortable": true,
    "facetable": true,
    "key": false,
    "indexAnalyzer": null,
    "searchAnalyzer": null,
    "analyzer": null,
    "normalizer": null,
    "dimensions": null,
    "vectorSearchConfiguration": null,
    "synonymMaps": []
  },
  {
    "name": "pageContent",
    "type": "Edm.String",
    "searchable": true,
    "filterable": true,
    "retrievable": true,
    "sortable": true,
    "facetable": true,
    "key": false,
    "indexAnalyzer": null,
    "searchAnalyzer": null,
    "analyzer": null,
    "normalizer": null,
    "dimensions": null,
    "vectorSearchConfiguration": null,
    "synonymMaps": []
  },
  {
    "name": "metadata",
    "type": "Edm.String",
    "searchable": true,
    "filterable": true,
    "retrievable": true,
    "sortable": true,
    "facetable": true,
    "key": false,
    "indexAnalyzer": null,
    "searchAnalyzer": null,
    "analyzer": null,
    "normalizer": null,
    "dimensions": null,
    "vectorSearchConfiguration": null,
    "synonymMaps": []
  },
  {
    "name": "embedding",
    "type": "Collection(Edm.Single)",
    "searchable": true,
    "filterable": false,
    "retrievable": true,
    "sortable": false,
    "facetable": false,
    "key": false,
    "indexAnalyzer": null,
    "searchAnalyzer": null,
    "analyzer": null,
    "normalizer": null,
    "dimensions": 1536,
    "vectorSearchConfiguration": "vectorConfig",
    "synonymMaps": []
  }
]

My colleague @jonopryororro just reminded me, I think you also need to have Semantic Search enabled on the Search Service.  This is not available on the Free Tier of the Search Service unfortunately.
Once you add the paid for Search Service, find "Semantic Search (Preview)" in the menu on the left (under "Settings") and select a plan.  The Free plan here is available and works but you still need to be paying for the Search Service itself.

Thank you so much @ShaunMaher.
I did not use the template nor CLI so I created the resources manually.
Finally I made it work by creating myself :

a Storage Account, linking it to the indexer.
an index with the following scheme:
{ "name": "YOUR_AZURE_SEARCH_INDEX_NAME", "fields": [   {     "name": "id",     "type": "Edm.String",     "key": true,     "filterable": true   },   {     "name": "user",     "type": "Edm.String",     "searchable": true,     "filterable": true   },   {     "name": "chatThreadId",     "type": "Edm.String",     "searchable": true,     "filterable": true   },   {     "name": "pageContent",     "type": "Edm.String",     "searchable": true   },   {     "name": "metadata",     "type": "Edm.String"   },   {     "name": "embedding",     "type": "Collection(Edm.Single)",     "searchable": true,     "filterable": false,     "sortable": false,     "facetable": false,     "retrievable": true,     "dimensions": 1536,     "vectorSearchConfiguration": "vectorConfig"   } ], "vectorSearch": {   "algorithmConfigurations": [     {       "name": "vectorConfig",       "kind": "hnsw"     }   ] } }

I've also got this "fetch failed" problem. The UI doesn't really give much of a clue what the error refers to. I had a look at our cog search service and there doesn't seem to be any index created. Is this because it is failing to talk to the API? I have tried with the admin key in the env vars and had no luck. Are we supposed to manually create the index or not?


Startup crash on win11(.msix package)

Describe the bug
Crashed after inatall ScreenToGif.2.40.Package.x64.msix
To Reproduce
run ScreenToGif.2.40.Package.x64.msix(download by windows), autostart failed.
Screenshots
nothing happend
Desktop (please complete the following information):

OS: Windows 11 (21H2  22000.2538)
Version 2.40

ScreenToGif.exe.3940.dmp

Not 100% sure if it is the same issue, but it looks like on my Win11 there is no .NET8.0 installed yet.

Just updated to the latest version via the in-app updater, now it won't launch for me either.  Went to the website to manually install via the installer, no change.
Fault bucket<PHONE_NUMBER>639503474, type 5
Event Name: MoAppCrash
Response: Not available
Cab Id: 0

Problem signature:
P1: 33823Nicke.ScreenToGif_<IP_ADDRESS>_x64__s0jv9ksk6a4w4
P2: praid:ScreenToGif
P3: <IP_ADDRESS>
P4: 65410000
P5: KERNELBASE.dll
P6: 10.0.22621.2792
P7: 3091b6fb
P8: e0434352
P9:<PHONE_NUMBER>06567c
P10:

Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.21491135-346a-44a2-853c-1ded7d430b70.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.320d28a4-c606-46dc-8c9d-54dec305b4cb.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.2dee75c8-d73f-4f31-8eef-dce87de59096.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.1ec85279-a5bc-4b70-97bd-2209d4c011b6.tmp.txt
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.19ed66d8-78da-455e-b11d-35f83755e4f1.tmp.xml

These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_33823Nicke.Scree_cd7c2428632c41f6d8f5f9df2e2e5314ab56df5_4f74e92c_1de37d68-f326-4e8d-901f-54f6327e1181

Analysis symbol:
Rechecking for solution: 0
Report Id: fec80c5b-7c90-4d1b-9e35-71a1dbe78b17
Report Status: 268435456
Hashed bucket: 12092b981b7ca30d93252d03e6d08a72
Cab Guid: 0

i uninstalled the old version and downloaded the MSI package from the website. This solved the issue for me.

Hi, there's a fix coming in a few minutes.
The package was missing some files.

Had to downgrade to the previous version (v2.39) to get it to work last night. But just updated to the latest version (v2.40.1) and it now works again. That was a quick response - thanks!


Make registers take reset value

@jadephilipoom it's 1:27AM and I need to sleep! I've not quite finished this PR which I think just requires a few changes in SequentialProperties.v (and maybe a few other places). This PR adds an explicit reset value to registers in CavaClass and then defines in library modules the special cases where the registers have the default value after reset.
Please can you take over the PR and make the remaining changes and then merge if you think things are fine. Thank you.

@jadephilipoom it's 1:27AM and I need to sleep! I've not quite finished this PR which I think just requires a few changes in SequentialProperties.v (and maybe a few other places). This PR adds an explicit reset value to registers in CavaClass and then defines in library modules the special cases where the registers have the default value after reset.
Please can you take over the PR and make the remaining changes and then merge if you think things are fine. Thank you.

Thank you very much!

Thank you very much!


Show Unity plugin mappings to native SDKs

Could a text file be added to more explicitly show how each version of this unity-plugin maps to the native SDKs for iOS, Android, etc.?
For instance unity-plugin 3.9.3 appears to map to Android plugin 3.9.1 and iOS plugin 3.9.1 based on the names of the files imported to the Assets Android and iOS folders.
Also is there a timeline for when the Unity plugin will be more up to date with the native sdks? Thanks!

We plan to update the Unity plugin to the latest Android, iOS SDK versions later this week.
The README.md file will also mention the version numbers of the included native SDKs.

How is the Update going? I would like to get the newest version too ;)

@christian-putzke Attached here is the latest plugin which should work for Android and iOS (to unarchive, please change extension to .zip). The general plugin release will follow after further testing on Windows/Metro platforms.

v3.10.0 has been released with the latest SDKs


Is it possible to force a renewal check?

This has been working well for me for a while now, but I found that the certificates didn't renew in the last couple of weeks, so I just manually stopped/started the image and then it renewed the certs ok.
The readme hints that renewal only happens on startup, is this true? Is there a way to trigger a renewal without restarting the image?
For some other images I use a cron entry on the host to run a docker-exec command inside a desired container periodically. I can't see what single command I could run though, other than calling generate_letsencrypt.sh with each FQDN, or simply restarting the image.
Is there a recommended way? Is the image expected to just be restarted every week or so?

Hey @agittins
Apologies for the ridiculously slow reply, I've been so busy and totally missed this.
Please see my comments on https://github.com/Stono/docker-nginx-letsencrypt/issues/3 which talk about taking LE generation outside of the container.  I'd probably recommend a similar model for you.


edit:complete-dirname doesnt suggest symlinks to directories

What happened, and what did you expect to happen?
edit:complete-dirname doesnt suggest symlinks to directories. it should.
Output of "elvish -version"
0.22.0-dev.0.20240821105340-94dca2081188
Code of Conduct

[X] I agree to follow Elvish's Code of Conduct.

side-effect is that complete-filename suggest symlinks to directories as files, without adding trailing slash.

It would be great to get this fixed...

This should be due to fs.FileInfo.IsDir checking the FileInfo of the symlink.
There's filepath.EvalSymlinks, but the question is whether to fix this in GenerateDirNames (complex predicate) or generateFileNames (inconsistency as predicate is applied to the resolved stat).


It does not return JSON obeject

I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403): Login • Instagram
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403):
I/flutter (18403): <link rel="preload" href="/static/bundles/metro/FBSi
E/flutter (18403): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: FormatException: Unexpected character (at character 1)
E/flutter (18403):

Hi omasado,
it's the same thing of this thread:
https://github.com/viralvaghela/flutter_insta/issues/13
It's due to Facebook's API limit. We should integrate this package with oEmbed API.


not rounded

.not-rounded{border-radius:0}
please change to:     .not-rounded{border-radius:0!important}

Yikes. Seems like something else is probably going wrong if u need to
introduce that.
On Feb 17, 2016 7:21 AM, "jemali-m"<EMAIL_ADDRESS>wrote:

.not-rounded{border-radius:0}
please change to: .not-rounded{border-radius:0!important}
—
Reply to this email directly or view it on GitHub
https://github.com/basscss/basscss/issues/178.

@jemali-m see https://github.com/basscss/basscss/blob/master/docs/advanced/DealingWithSpecificity.md


Add GitHub/Zenodo integration to generate an archive with DOI for each new release on GitHub

This consists of:

[x]  addition of .zenodo.json metadata
[x]  making repo public
[x]  configuring release publication on zenodo

First release published @ https://zenodo.org/record/7692221#.ZAGTvrSZM6A and badge added in README  and docs/index.rst :rocket:


Problems when parsing floats and ints

When parsing JSON to a statically typed language(tested in Go and Rust), Quicktype confuses floats with ints whenever the float ends with a zero.
{
    "bar": 2.0
}

This JSON input produces the following rust code
#[derive(Serialize, Deserialize)]
pub struct Foo {
    pub bar: i64,
}

The JSON file has a floating point, but Quicktype confused the float as an int.
But if the number does not end with a zero, it is parsed correctly.
{
    "bar": 2.1
}

Produces
#[derive(Serialize, Deserialize)]
pub struct Foo {
    pub bar: f64,
}

Yes, unfortunately we use JSON.parse which does not allow us to distinguish 2.0 from 2—we'll need our own JSON parser, I believe.

I saw the problem, when the value is 0.0. I was impressed that @znx3p0 looked at other cases, but I think his description goes a bit too far. The issue is not when the value ends with 0, but when the value's decimal part is 0 and can be represented as an integer. Thus 0.0 and 2.0 are incorrectly treated as int, but 2.10 which ends with 0 but is correctly recognized as a float.  (The trailing, insignificant zero is commonly seen in US currency.)