setting AWS_ENI_LIMITED_POD_DENSITY envar using terraform/helm

I'm trying to set the AWS_ENI_LIMITED_POD_DENSITY envar to false using terraform/helm provider. I've tried to escape the quotes but passing in a string does not work as Karpenter expects a bool
 set {
    name  = "controller.env[0].name"
    value = "AWS_ENI_LIMITED_POD_DENSITY"
  }

  set {
    name  = "controller.env[0].value"
    value = "false"
  }

Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects " or n, but found f, error found in #10 byte of ...|,"value":false}],"im|..., bigger context ...|"},{"name":"AWS_ENI_LIMITED_POD_DENSITY","value":false}]

using type  = "string" resolves my issue


Abstracting text API to enable custom renderers

Description
This PR does two things:

Create an abstraction for text rendering on the framework, with this abstraction we can now easily introduce more ways of rendering text on Flame and we can still use the same components with different methods of text rendering.
Rename the TextConfig class to TextPaint: I always found it a little confusing that our class for rendering text was named TextConfig since it is not only a text configuration, but also a text renderer. I choose TextPaint for the new name because that implementation is quite tied to the Flutter's TextPainter class, that name was also inspired by the Flutter's duo classes CustomPainter and CustomPaint.

The most importante part of this PR is the abstraction, the renaming is a proposal, let me know what you think of the idea.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] My PR includes unit or integration tests for all changed/updated/fixed behaviors and are passing (See Contributor Guide).
[x] I updated/added relevant documentation (doc comments with ///) and updated/added examples in doc/examples.
[x] I have formatted my code with ./scripts/format.sh and the Flame analyzer (./scripts/analyze.sh) does not report any problems.
[x] I read and followed the Flame Style Guide.
[x] I have added a description of the change under [next] in CHANGELOG.md.
[x] I removed the Draft status, by clicking on the Ready for review button in this PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require Flame users to manually update their apps to accommodate your change?

[x] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md).
[ ] No, this is not a breaking change.

Related Issues
Replace this paragraph with a list of issues related to this PR from the issue database. Indicate, which of these issues are resolved or fixed by this PR.

@luanpotter I don't think all renderers will use text config, a bitmap font renderer for example I don't think would use because since the font is an image, many attributes that exists there would not be relevant.
I am ok with keeping the TextConfig class, but I don't think it should be an attribute of the abstract TextRenderer, but instead could be used by the renderers (TextPaint only for now) that makes sense. What do you think?

because since the font is an image, many attributes that exists there would not be relevant

By looking at TextConfig, it seems to me most if not all attributes should be used by anything rendering text. Maybe color is something you can't control on bitmap (not sure), but size, alignment, line height, font name, etc all should be configurations available right?

By looking at TextConfig, it seems to me most if not all attributes should be used by anything rendering text. Maybe color is something you can't control on bitmap (not sure), but size, alignment, line height, font name, etc all should be configurations available right?

Color, and fontFamily don't makes sense for bitmap fonts indeed. But there is the problem, if one, or this case two attributes don't make sense for a renderer, should that renderer use the text config class for defining its style? I think it can lead to confusion having unused attributes. That is why I think I prefer that each renderer has its own configuration class.
Not sure if we could end up with an abstraction that would fit fine for text paint and for bitmap fonts, what do you think?

fontFamily on the sprite would be the sprite name right? it's a hard problem if only one thing doesn't apply, like Color, but my idea is: TextConfig has only what is generic to all renderers, and each renderer has it's own extra attributes. now the issue is, we only have two renderers (normal and bitmap), so it's extremely hard to predict what is "common" or not moving forward. I leave it up to you to determine how "common" these things are across other types of potential renderers in the future, and if there are enough common things I think it makes sense to have a class; otherwise, each renderer can have it's own config

I wouldn't consider fontFamily to be the name of the sprite, because this seems to be a whole other concept.
But I think we can create a base text config, and then the text paint can extend that, that way we have a good abstraction and re use of code where we can, sounds good?


Fixed format string mistake in Error Message

While debugging a issue with creating a Kivy exe using PyInstaller I found this bug where it adds the 's' to file names in the error message. Just a small bug, but annoying.

Thanks :-)


Add AR6 GWP500 and GTP100

Replaces #13 using CSV from https://github.com/chrisroadmap/ar6/blob/main/data_output/7sm/metrics_supplement_cleaned.csv

Script used
import pandas as pd

df = pd.read_csv("https://raw.githubusercontent.com/chrisroadmap/ar6/main/data_output/7sm/metrics_supplement_cleaned.csv")

df.index = df["Acronym"].fillna(df["Formula"])

df = df.rename(index={
  "Carbon tetrachloride": "CCl4",
  "Methyl bromide": "CH3Br",
  "Methyl chloroform": "CH3CCl3",
  "PFC-14": "CF4",
  "PFC-116": "C2F6",
  "PFC-218": "C3F8",
  "PFC-31-10": "C4F10",
  "PFC-41-12": "C5F12",
  "PFC-51-14": "C6F14",
  "PFC-61-16": "C7F16",
  "PFC-71-18": "C8F18",
  "PFC-91-18": "C10F18",
  "PFC-C-318": "cC4F8",
  "Chloroform": "CHCl3",
  "Methylene chloride": "CH2Cl2",
  "Methyl chloride": "CH3Cl"
  })

df.index = df.index.str.replace("-", "")

df.index.name = "Index"

gwp = pd.read_csv("globalwarmingpotentials.csv", comment="#")

# Not matched
for item in gwp.Species:
     if item in df.index:
        continue
        #print(item)
     else:
        print("MISSING: ", item)

gwp = gwp.set_index("Species")

for key, vals in gwp.iterrows():
    if key in df.index:
        gwp.at[key, "AR6GWP500"] = df.loc[key]["GWP500"]
        gwp.at[key, "AR6GTP100"] = df.loc[key]["GTP100"]

for col in gwp.columns:
    try:
        gwp[col] = gwp[col].astype("Int64")
    except TypeError:
        pass

gwp.to_csv("globalwarmingpotentials.csv", index=True)

Does this work for you @znicholls ? Not sure if this misses some additional species introduced in the AR6 version.

Nah if @chrisroadmap did it, it should be all good. If it is missing species, we can cross that bridge when we come to it


docker is pulling v0.3.35

Bug Report
Example docker run and docker-compose.yaml is pulling open webui version 0.3.35 not latest 0.4.3.
Important Notes

Before submitting a bug report: Please check the Issues or Discussions section to see if a similar issue or feature request has already been posted. It's likely we're already tracking it! If you’re unsure, start a discussion post first. This will help us efficiently focus on improving the project.

Collaborate respectfully: We value a constructive attitude, so please be mindful of your communication. If negativity is part of your approach, our capacity to engage may be limited. We’re here to help if you’re open to learning and communicating positively.  We appreciate your time and ask that you respect ours.

Contributing: If you encounter an issue, we highly encourage you to submit a pull request or fork the project. We actively work to prevent contributor burnout to maintain the quality and continuity of Open WebUI.

Bug reproducibility: If a bug cannot be reproduced with a :main or :dev Docker setup, or a pip install with Python 3.11, it may require additional help from the community. In such cases, we will move it to the "issues" Discussions section due to our limited resources. We encourage the community to assist with these issues. Remember, it’s not that the issue doesn’t exist; we need your help!

Note: Please remove the notes above when submitting your post. Thank you for your understanding and support!

Installation Method
[Describe the method you used to install the project, e.g., git clone, Docker, pip, etc.]
Environment

Open WebUI Version: [e.g., v0.3.11]

Ollama (if applicable): [e.g., v0.2.0, v0.1.32-rc1]

Operating System: [e.g., Windows 10, macOS Big Sur, Ubuntu 20.04]

Browser (if applicable): [e.g., Chrome 100.0, Firefox 98.0]

Confirmation:

[x] I have read and followed all the instructions provided in the README.md.
[ ] I am on the latest version of both Open WebUI and Ollama.
[ ] I have included the browser console logs.
[ ] I have included the Docker container logs.
[ ] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:
[Describe what you expected to happen.]
Actual Behavior:
[Describe what actually happened.]
Description
Bug Summary:
[Provide a brief but clear summary of the bug]
Reproduction Details
Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots/Screen Recordings (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda
install version 0.3.35 not latest


iOS Fading support

Currently fading is only implemented on Android. It could be very easily added to iOS.
Something like in SO accepted answer should be enough:
http://stackoverflow.com/questions/2834573/how-to-animate-the-change-of-image-in-an-uiimageview

https://github.com/daniel-luberda/FFImageLoading/commit/6111457ca0976657f26fec84e8295357f793b684

Done by @daniel-luberda


Small typo in Overview example code

https://github.com/trueadm/inferno#overview

Thank you!

Glad to help, and to see such a quick response. Total support for InfernoJS, keep it up!


Support HLS on Android

On Android, when I try playing an HLS .m3u8 file, I get the following error:
Exception has occurred.
PlatformException(error, Unsupported value: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.MediaPlayer.seekTo(int)' on a null object reference, null)

Nevermind - there was an issue with my stream, not the library.


Nix package?

It would be nice to have one, flake or just a package

I am currently writing a flake on this repository
but currently i am having this error:
$ nix build github:osbm/hackmatrix-nix
error: builder for '/nix/store/cgsj60d5mifjsfvw3wqh68vwcva1wixs-hackmatrix.drv' failed with exit code 2;
       last 25 log lines:
       > no configure script, doing nothing
       > Running phase: buildPhase
       > build flags: SHELL=/nix/store/0irlcqx2n3qm6b1pc9rsd2i8qpvcccaj-bash-5.2p37/bin/bash
       > grep: /etc/os-release: No such file or directory
       > protoc --cpp_out=./ protos/api.proto
       > protoc --python_out=client_libs/python/hackMatrix/ protos/api.proto
       > mv protos/api.pb.cc src
       > mv protos/api.pb.h include/protos
       > g++ -std=c++20 -O3 -g -o build/systems/Player.o -c src/systems/Player.cpp -Iinclude -I/usr/local/include -Iinclude/imgui -Itracy/public
       > g++ -std=c++20 -O3 -g -o build/MultiPlayer/Server.o -c src/MultiPlayer/Server.cpp -Iinclude -I/usr/local/include -Iinclude/imgui -Itracy/public
       > g++ -std=c++20 -O3 -g -o build/MultiPlayer/Client.o -c src/MultiPlayer/Client.cpp -Iinclude -I/usr/local/include -Iinclude/imgui -Itracy/public
       > g++ -std=c++20 -O3 -g -o build/MultiPlayer/Gui.o -c src/MultiPlayer/Gui.cpp -Iinclude -I/usr/local/include -Iinclude/imgui -Itracy/public
       > In file included from /nix/store/pnqw6igiqaalvl099z81z96r62zhn5hx-spdlog-1.14.1-dev/include/spdlog/common.h:50,
       >                  from /nix/store/pnqw6igiqaalvl099z81z96r62zhn5hx-spdlog-1.14.1-dev/include/spdlog/sinks/base_sink.h:12,
       >                  from include/logger.h:3,
       >                  from include/blocks.h:2,
       >                  from include/world.h:5,
       >                  from include/api.h:11,
       >                  from include/engine.h:1,
       >                  from src/MultiPlayer/Gui.cpp:1:
       > /nix/store/pnqw6igiqaalvl099z81z96r62zhn5hx-spdlog-1.14.1-dev/include/spdlog/fmt/fmt.h:24:14: fatal error: spdlog/fmt/bundled/core.h: No such file or directory
       >    24 |     #include <spdlog/fmt/bundled/core.h>
       >       |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
       > compilation terminated.
       > make: *** [makefile:194: build/MultiPlayer/Gui.o] Error 1
       For full logs, run 'nix log /nix/store/cgsj60d5mifjsfvw3wqh68vwcva1wixs-hackmatrix.drv'.


[BUG] Watermarking regression

Description
SkiaSharp 1.68.3 renders a basic watermarking pattern very poorly, as compared to 1.60.1 This may be related to https://github.com/mono/SkiaSharp/issues/931. I was able to get closer to the old rendering by fiddling with the colorspace, but haven't been able to make it exactly right.
Code
Attached zip includes code and sample images
using System;
using System.IO;
using SkiaSharp;

namespace SkiaSharpBugDemo
{
    class Program
    {

        static void Main(string[] args)
        {
            using var assetStream = File.OpenRead("Resources\\testImage.jpg");
            using var assetData = SKData.Create(assetStream);
            using var codec = SKCodec.Create(assetData);
            if (codec == null)
            {
                throw new ArgumentException("Source image is corrupted or unsupported.");
            }

            var testImage = SKBitmap.Decode(assetData, codec.Info);

            using (var canvas = new SKCanvas(testImage))
            {
                var watermarkBitmap = SKBitmap.Decode("Resources\\testLogo.png");

                var rect = SKRect.Create(0, 0, testImage.Width, testImage.Height);
                using var shader = SKShader.CreateBitmap(watermarkBitmap, SKShaderTileMode.Repeat, SKShaderTileMode.Repeat);

                var backgroundPaint = new SKPaint
                {
                    Style = SKPaintStyle.Fill,
                    Shader = shader
                };
                canvas.DrawRect(rect, backgroundPaint);

                using (FileStream fileStream = File.OpenWrite("watermarkedTestImageNew.jpg"))
                {
                    var image = SKImage.FromBitmap(testImage);
                    var stream = image.Encode(SKEncodedImageFormat.Jpeg, 98).AsStream();
                    stream.CopyTo(fileStream);
                    fileStream.Close();

                }
            }

        }
    }
}

Expected Behavior

Actual Behavior

Basic Information

Version with issue:  1.68.3
Last known good version:  1.60.1
IDE:  Visual Studio
Platform Target Frameworks: .NET Core 3.1

Linux:  Debian 10
Windows Classic:  Windows 10

Screenshots
See Expected vs Actual
Reproduction Link
SkiaSharpBugDemo.zip

@mattleibow sorry to ping you directly, but I'd really appreciate any suggestions or insights you might have on this, as I'm stuck on the old version until this is resolved.
I tried figuring out what caused the change via git bisect, but there were so many project structure changes between the two major versions that the approach proved impractical. I also tried every pre-release build of the 1.68 series I could get my hands on, and they all behaved the same way.

Could you try the v2.80 and v2.84 preview packages. I think Google changed something in the colorspace processing either on the load or save... Not sure if it is for the better...
If you open the image in Chrome, then usually it is fine. Maybe they introduced a bug that they never spotted...
I'll try bump to the very latest Google code and we can test that, but for now, v2.84 is the most recent.

Thanks for getting back to me. 2.80.0-preview.14 looks much closer to 1.68.3, but is still noticeably different when compared side by side. I've attached the rendering from 2.80.0-preview.14.
You mentioned a v2.84 preview package, but I didn't see that on nuget or on the public azure pipelines page. Where can I get that?

You can check the preview feed https://aka.ms/skiasharp-eap/index.json

Thanks. The outputs from 2.84.0-pr.1321.8 are identical to 2.80.0-preview.14. I tried saving to png, jpg, and webp, and they all looked the same. I also tried opening them in Chrome and the default Windows "Photos" viewer, and they render the same.

Analyzing the output from 2.80, even though it is different from 1.60 I believe it to be more accurate (i.e. if I apply the watermark by hand in photoshop, it looks more like the 2.80 output than the 1.60). 1.68 was definitely broken, though. I'm going to revisit my watermarks with the 2.80 output, rather than try to get them to render like 1.60. We can call this fixed. Thanks!

Yeah. In the 2.80 series, Google basically reworked the colorspaces. I managed to keep the .NET API the same, but much has changed under the hood. I don't think the images were even created properly previously.


Update main_map to 1.7

Our current main map is from an older version. This is causing some bugs like #19
To resolve any problems we need to redo our current map

Completed, will close this upon testing verifying the bug is squashed.


(AspNetCore) Metrics Not Registering To Same IMetricsRoot

Hi Al et al,
First off I just want to say I stumbled across this project a few days ago and it's absolutely fantastic, thanks. Secondly I'm having a bit of an issue with multiple sources feeding into the same IMetricsRoot.
Basically, I'm aiming to recreate the functionality for the various aspNetCore MVC middlewares, which are below:
            app.UseMetricsActiveRequestMiddleware();
            app.UseMetricsErrorTrackingMiddleware();
            app.UseMetricsPostAndPutSizeTrackingMiddleware();
            app.UseMetricsRequestTrackingMiddleware();
            app.UseMetricsOAuth2TrackingMiddleware();
            app.UseMetricsApdexTrackingMiddleware();

Now, everything is working fine for both my implementation, and the standard .net middleware. However, they will not join up. In my startup file I have the following:
        public Startup(IHostingEnvironment env)
        {
            StatsAndMetrics.Metrics.init();

Followed by:
(within ConfigureServices)
          services.AddMetrics(StatsAndMetrics.Metrics.metrics);
            services.AddMetricsEndpoints();

All StatsAndMetrics.init() does is create a static instance of an IMetricsRoot with a default builder:
    public static IMetricsRoot metrics;
      public static void init()
      {
          metrics = new MetricsBuilder()
              .Report.ToConsole()
              .Build();

Now, as i've mentioned before... everything works perfectly. If i make a request to my controller, and then visit the /metrics endpoint, i see the correct stats and there are no problems here. However, i'm trying to recreate this middleware for SignalR and hub invocations. I've done this by modifying the aspnetcore SignalR code so that whenever a hub is invoked, i'm basically recreating word for word what is in the middleware. For example (inside SignalR):
string mName = "GET " + descriptor.MethodExecutor.TargetTypeInfo.Name + "/" + invocationMessage.Target;

                List<string> tagKeys = new List<string>()
                {
                    "route",
                    "server",
                    "app",
                    "env"
                };

                List<string> tagValues = new List<string>()
                {
                    mName,
                    "JonPC",
                    "CorePort",
                    "development"
                };

                var tags = new MetricTags(tagKeys.ToArray(), tagValues.ToArray());

         var timer = StatsAndMetrics.Metrics.metrics.Provider.Timer.Instance(StatsAndMetrics.Timers.EndpointRequestTransactionDuration, tags);

                // Send the request
                await Invoke(descriptor, connection, invocationMessage);

                var elapsed = StatsAndMetrics.Metrics.metrics.Clock.Nanoseconds - startTime;

                // Record the value for this individual call.
                timer.Record(elapsed, TimeUnit.Nanoseconds);

Again, the above works absolutely fine. The issue is that I can't seem to get the two to marry up. When i visit /metrics, i see everything gathered from the middleware. When i manually flush my IMetricsRoot to the console (for example) I see everything from SignalR, and nothing from MVC. The measurements, tags, etc. are all the same. Below is an output from my console logging (SignalR):
--------------------------------------------------------------
# TIMESTAMP:<PHONE_NUMBER>84083444
# MEASUREMENT: [Application.HttpRequests] Transactions Per Endpoint
# TAGS:
                  route = GET FoldersHub/getSubNodeData
                  mtype = timer
                   unit = req
               unit_dur = ms
              unit_rate = min
# FIELDS:
            count.meter = 2
                 rate1m = 22.0810659511038
                 rate5m = 23.6033148917188
                rate15m = 23.8670363521175
              rate.mean = 11.6753610484248
                samples = 2
                   last = 29.767936
             count.hist = 2
                    sum = 107.334865
                    min = 29.767936
                    max = 77.566929
                   mean = 53.4881896370411
                 median = 29.767936
                 stddev = 23.8988243424146
                   p999 = 77.566929
                    p99 = 77.566929
                    p98 = 77.566929
                    p95 = 77.566929
                    p75 = 77.566929
--------------------------------------------------------------

And below is an output from /metrics (.NET/MVC):
# TIMESTAMP:<PHONE_NUMBER>19502345
# MEASUREMENT: [Application.HttpRequests] Transactions Per Endpoint
# TAGS:
                  route = GET project/{id?}
                 server = JonPC
                    app = CorePort
                    env = development
                  mtype = timer
                   unit = req
               unit_dur = ms
              unit_rate = min
# FIELDS:
            count.meter = 2
                 rate1m = 3.29030180732183E-05
                 rate5m = 1.612932305754
                rate15m = 9.75767183377435
              rate.mean = 0.147065702345789
                samples = 2
                   last = 15653.102366
             count.hist = 2
                    sum = 31294.959575
                    min = 15641.857209
                    max = 15653.102366
                   mean = 15647.4797875
                 median = 15653.102366
                 stddev = 5.6225785
                   p999 = 15653.102366
                    p99 = 15653.102366
                    p98 = 15653.102366
                    p95 = 15653.102366
                    p75 = 15653.102366
--------------------------------------------------------------

Any ideas? Nb. I can see that the "Server", "Environment", and "app" tags are missing in the SignalR implementation. I've added these in so they are exactly the same as the MVC version, but still no joy. It must be something nooby i'm doing so any advice/links to the right direction would be hugely appreciated.
Cheers!

@Jon-Murray  glad you find it useful. The only think I can think of is that you are creating a second instance of IMetrics which is designed to be a singleton. Any chance you could push a slimmed down version of your app demonstrating the issue so I can  debug?

Hi, thanks for getting back to me so quickly. I'll get something together tonight or tomorrow (UK timezone) and upload it asap.
Thanks again

Ok, i've made a test project which is pretty much doing what my app does. There's a readme file within the root which explains a bit about what i've done. I've cut it down as much as possible, and am still getting the same behaviour (though my instance seems only be created once).
The link is https://drive.google.com/file/d/1JFD2EJKGfB-9pVPwvKilx8s2iscuTlBY/view?usp=sharing
Thanks again for taking a look

@Jon-Murray I have time again for App Metrics, before I take a look, did you end up getting to the bottom of this?

I couldn't figure it out, sorry

From: Allan Hardy<EMAIL_ADDRESS>Sent: Friday, February 2, 2018 3:09:08 PM
To: AppMetrics/AppMetrics
Cc: Jonathan Murray; Mention
Subject: Re: [AppMetrics/AppMetrics] (AspNetCore) Metrics Not Registering To Same IMetricsRoot (#206)
@Jon-Murrayhttps://github.com/jon-murray I have time again for App Metrics, before I take a look, did you end up getting to the bottom of this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/AppMetrics/AppMetrics/issues/206#issuecomment-362607685, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACEX28RlBL9LrzQW0Emeza8ui4nuPFBjks5tQyF1gaJpZM4Q1LRQ.

The sample is fairly messy ;) I see the problem. As I mentioned you are creating 2 instances of IMetrics one via the WebHost and the other via Startup.
You don't actually need the all that metrics startup configuration you've added, simply configure you WebHost something like:

            var host = WebHost.CreateDefaultBuilder(args)
                .ConfigureMetricsWithDefaults(
                    builder =>
                    {
                        builder.Report.ToConsole(TimeSpan.FromSeconds(2));
                    })
                .UseMetrics()
                .UseStartup<Startup>()
                .Build();

The HubEndPoint is using a reference to an IMetric instance that you created via a static class, it's better you inject that or use the service scope factory to resolve, I've tried this and get the same instance of IMetric that we instantiated by the same WebHost configuration provided.


Make SqlFetcher engine creation more customizable

Codecov Report

Merging #169 (4cb6c48) into master (c1cf16b) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #169   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           64        64
  Lines         2397      2400    +3
  Branches       264       264
=========================================
+ Hits          2397      2400    +3

Impacted Files
Coverage Δ

src/rics/translation/fetching/_sql_fetcher.py
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Add missing cases to == for NIOSSLError and BoringSSLError

Motivation:
Some error types were missing cases in their == implementation.
Modifications:

Add missing cases to NIOSSLError and BoringSSLError

Result:
Better equality checking

@swift-nio-bot test this please

@swift-nio-bot test this please


feat(integrations): Make WandbMetricsLogger backward compatible

Fixes GROWTH2-240
Description
Made wandb.keras.WandbMetricsLogger backward compatible with wandb.keras.WandbCallback.
Colaborator: @ayulockin
Testing
How was this PR tested?
Checklist

[x] Include reference to internal ticket "Fixes WB-NNNN" and/or GitHub issue "Fixes #NNNN" (if applicable)
[x] Ensure PR title compliance with the conventional commits standards

Sample Workspace: https://wandb.ai/geekyrakshit/keras-integration


All chat shows as if you typed it

Latest 4.3.0 version makes chat appear as if you typed everything, even if it is from other users.

This is three different people typing, but it shows up as if I typed everything^
Using the FreedomChat plugin that makes chat not reportable, not sure if that has any affect on it.

I'll look into this later. I have an idea of what might be causing it probably the placeholder is being replaced wrong

@IasonKalaitzakis You can get a beta build here: https://github.com/RefracDevelopment/SimpleStaffChat/releases/tag/4.3.1-SNAPSHOT

I've decided to just release this as is.

Does not seem to be fixed in the 4.3.1 I downloaded from Spigot :/

@IasonKalaitzakis Alright i'll try some more stuff this really isn't an easy issue to fix since i have no way of testing this myself as i don't have any alts

After some testing myself, it seems that your own place holders like %player% work fine, but as soon as I use other plugin's placeholders like %luckperms_prefix%%essentials_nickname% that I've been using, it uses my own instead of the senders. Hope that helps.

hmm okay thanks yeah that should help

@IasonKalaitzakis Here is a beta build for testing https://github.com/RefracDevelopment/SimpleStaffChat/releases/tag/Spigot-4.3.2

Same issue with 4.3.2, the plugin's own placeholders work alright but other plugins' placeholders use the current player's info instead of the senders info.

@IasonKalaitzakis ah okay so it's PlaceholderAPI placeholders being replaced wrong hmm

I'll release another beta soonish

@IasonKalaitzakis Here is another beta build i've changed the way PlaceholderAPI placeholders are replaced: https://github.com/RefracDevelopment/SimpleStaffChat/releases/tag/Spigot-4.3.2-beta

@IasonKalaitzakis ^ Just checking have you tried this yet?

@IasonKalaitzakis ^ Just checking have you tried this yet?

Ah sorry hadn't had a chance, will let you know as soon as I do :)

@IasonKalaitzakis ^ Just checking have you tried this yet?

Just tried it, all PAPI placeholders work fine as well. Ty for fixing :)


[Feature Request]: support different providers/endpoints for individual conversations.

Problem Description
All conversations must use the same provider and endpoint.
Solution Description
Allow different provider/endpoint for different conversations.
Alternatives Considered
No response
Additional Context
No response

Thank you for your feedback, we will take your suggestion seriously

but, nextchat has supported switch models in a session ,so you can config  providers eg:Azure Google ro Anthropic through env vars to meet your needs

And you can config these providers in App

Many thanks!


Adding the Median algorithm Python Code

Description
I added a new algorithm, that gets the median value of an array
Fixes #[ISSUENO]
Dependencies
Only one dependency is needed, which is:
import random
Future Improvements
Mention any improvements to be done in future related to any file/feature
Mentions
Mention and tag the people
Screenshots of relevant screens
Didn't think it was necessary
Developer's checklist

[x] My PR follows the style guidelines of this project
[x] I have performed a self-check on my work

If changes are made in the code:

[x] I have followed the coding guidelines
[x] My changes in code generate no new warnings
[] My changes are breaking another fix/feature of the project
[] I have added test cases to show that my feature works
[] I have added relevant screenshots in my PR

I just created the issue that was requested https://github.com/metafy-social/python-scripts/issues/443#issue-1410149602


Roll Flutter Engine from cbb7fc020b00 to f4fcb911be91 (1 revision)

https://github.com/flutter/engine/compare/cbb7fc020b00...f4fcb911be91
2023-02-14<EMAIL_ADDRESS>Roll Skia from bb7b22f3f444 to 8de7f68a3661 (1 revision) (flutter/engine#39619)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jonahwilliams@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Trying to download a notebook from a URI link fails

Repro Steps:

Open a notebook and create a text cell.
Click on the insert link button and use the following URI: azuredatastudio://microsoft.notebook/open?url=https://github.com/microsoft/azuredatastudio/blob/main/extensions/resource-deployment/notebooks/azuredb/create-sqldb.ipynb
No confirmation dialog pops up to download it, and a new tab opens with a resource not found error for that URI.

This works in the last stable release, but fails on main and in insiders. From some initial debugging, looks like our NotebookURIHandler in the notebooks extension isn't being hit at all after clicking that link, so maybe something changed with URI registration.

FYI - for what it matters the schema name is different for each different quality :
azuredatastudio:// - stable
azuredatastudio-insiders:// - insiders
azuredatastudio-oss:// - dev

With the oss part I no longer get the resource error, but nothing happens after clicking the link and there's still nothing hitting the URI Handler. There's also no errors in the log.

Setting the url as:  azuredatastudio://microsoft.notebook/open?url=https://raw.githubusercontent.com/microsoft/azuredatastudio/main/extensions/resource-deployment/notebooks/azuredb/create-sqldb.ipynb, fixes the issue.


Fixing unnecessary escape characters in tabmon_prereqs.md

These backslashes are not rendering correctly, as they are inside of a blockquote element.  Removing them.

:shipit:


auto height no?

can you explain your issue in details?

image can be different sizes different height
and now for example i have one big image and one small and height always = big image

I think what is mean here is that the carousel does not adapt its height to the current slides height, it will always be as high as the highest image in the carousel. Unless all your slides are the same height this, this is undesirable behavior.
I am trying to find a simple way to achieve this currently.

@di3orlive For me the following does the trick, minus a smooth transition between heights
set the position to absolute for the non active slides
ngx-item img {
  width: 100%;
  height: auto;
  transition: all 400ms;
  position: absolute;
}

ngx-item img.active{
  position: static;
}

use the onMove event to get the current slide and compare it to the index i of the repeater to controll the addition of the active class
    <ngx-carousel [inputs]="config" [moveToSlide]="0" (onMove)="onmoveFn($event)">
      <ngx-item NgxCarouselItem *ngFor="let slide of slides; let i = index">
        <img [class.active]="i===currentSlide" src="{{slide.url}}" alt="{{slide.alt}}"/>
      </ngx-item>

      ...
    </ngx-carousel>

Inside your component handle the onMove event
  currentSlide:number;
  onmoveFn(data: NgxCarouselStore) {
    this.currentSlide = data.currentSlide;
  }

Assume what he means is that he wants all the objects to have the same height?


[SQL] Adding AAD-only Support for SQL Managed Instances and Servers

Adding support for a new feature to az cli. Azure Active Directory only allows for only AD users to be admins not traditional username/password combinations. This feature has been added to Azure Python SDK and is now being supported in az cli
Using either a managed instance or server with a ad admin run:
az cli sql server ad-only-auth enable
az cli sql server ad-only-auth disable
az cli sql server ad-only-auth get
az cli sql mi ad-only-auth enable
az cli sql mi ad-only-auth disable
az cli sql mi ad-only-auth get
to enable, disable and show AAD only authentication.

mistakenly submitted before linking microsoft account.


[FR] Add variable to control depth of window/gun slit frame?

Hi, me again!
I have been playing around with this today and got some pretty good results. I am trying to make something with a greater pitch on the walls than the default and am hitting an issue with the default settings.
It appears the the window_width is set using the inset, but as the inset gets greater, the windows also get a lot greater (to the point they would need supports to print. As an example:

Ideally I would like to get the inside of the gun slits so the project from the wall like 1-2mm. Maybe if there was a way of setting a custom window_width, and if that is not sat, fall back to the default setting?

I'm game, give me a moment to grok what you need added. I am also open to pull requests.
The file we are interested in is bunkerWindows.py
One helpful note is if the preset method for the making the windows and the cut_windows will not behave you can completely replace them with your own window making callback methods.
Check out the code for this offshoot project.
https://github.com/medicationforall/gothicpedastal
This example outright replaces the preset window generation.
gothic_pedastal_roof_arch.py
import cadquery as cq
from skirmishbunker import Bunker
from cadqueryhelper import shape

def custom_cut_window(self):
    cut_width = self.inset+self.wall_width
    if self.inset < 0:
        cut_width= (-1*(self.inset))+20

    height = self.height
    p_length = self.window_length+10
    padding = self.panel_padding
    p_height = height - self.panel_padding

    inner_inner_arch = (
        shape.arch_pointed(
            p_length + self.arch_padding_sides - self.inner_arch_sides-3,
            cut_width ,
            height - padding + self.arch_padding_top - self.inner_arch_top-9,
            ((height - padding)/2) + self.arch_inner_height - self.inner_arch_sides
        )
        .translate((0,0,1*(p_height/2)+2.75))
        .rotate((0,0,1),(0,0,0),180)
        .rotate((1,0,0),(0,0,0),self.angle-90)
        .translate((0,0,-1*(height/2)))
    )

    return inner_inner_arch

def custom_window(self):
    window = cq.Workplane("XY").box(10,10,10)

    height = self.height
    p_length = self.window_length-2
    padding = self.panel_padding
    p_height = height - self.panel_padding

    arch = shape.arch_pointed(
        18,
        3,
        117,
        37
    )

    cut_arch =  shape.arch_pointed(
        9,
        4,
        90,
        34
    )

    arch = arch.cut(cut_arch.translate((0,0,-2)))

    arches = (
        cq.Workplane("XY")
        .union(arch.translate((-6.4,3,-2)))
        .union(arch.translate((6.4,3,-2)))
        #.translate((0,10,1*(p_height/2)+2.75))
        .rotate((1,0,0),(0,0,0),self.angle-90)
        .translate((0,0,-9))
    )
    return arches

bp = Bunker()
bp.length = 200
bp.width = 200
bp.height = 140
bp.base_height=10
bp.inset=10
bp.render_floor_tiles = True
bp.render_ladders = False
bp.render_roof = True
bp.render_doors = False
bp.render_interior = True
bp.render_windows = True
bp.render_pips = True
bp.render_magnets = True
bp.wall_width = 7
bp.skip_windows = []
bp.custom_cut_window = custom_cut_window
bp.custom_cut_window_padding = -3
bp.custom_window = custom_window
bp.custom_window_padding = -8
bp.window_height = 90

bp.make()
body = bp.build_body()
roof = bp.build_roof()

#show_object(body)
cq.exporters.export(body, 'stl/gothic_pedastal_arch.stl')
#cq.exporters.export(roof, 'stl/gothic_pedastal_roof.stl')

Meanwhile:
You need to control the window width independent of the bunker inset.
Try to reproduce, I'm going to make an extreme example:
import cadquery as cq
from skirmishbunker import Bunker

bp = Bunker()
bp.inset=50
bp.width=150
bp.length=150
bp.height=65

bp.render_panel_details=True
bp.panel_length=28
bp.panel_width = 6
bp.panel_padding = 4

bp.render_windows=True
bp.skip_windows = []
bp.window_length = 15
bp.window_height = 8
#bp.window_width =
bp.window_frame_chamfer = 1.6
bp.window_frame_chamfer_select = "<Z"

bp.render_doors=False
bp.door_panels = [0, 5]

bp.render_ladders=False
bp.ladder_panels = [8]

bp.render_floor_tiles=False
bp.render_roof=False

bp.make()
rec = bp.build_body()

show_object(rec)

To test in isolation I turned off all the features I'm not interested in testing at the moment like the doors, floor tiles, and the roof generation.
It doesn't appear to move further inward into the body of the bunker.
However the exterior definitely gets interesting
I committed this example to the master branch under the name bunker4_large_inset.py
@mlewis-everley Next post will be for an attempt to add a window_width variable. (give me a couple hours, life stuff)

@mlewis-everley I Put in changes and cut a new release 1.1.4.
Let me know if this works for what you need.
Should be able to do an install and get the new parameter.
Example test case:
import cadquery as cq
from skirmishbunker import Bunker

bp = Bunker()
bp.inset=50
bp.width=150
bp.length=150
bp.height=65

bp.render_panel_details=True
bp.panel_length=28
bp.panel_width = 6
bp.panel_padding = 4

bp.render_windows=True
bp.skip_windows = []
bp.window_length = 15
bp.window_width = 32
bp.window_width_offset = -1
bp.window_translate = 3
bp.window_height = 8
bp.window_frame_chamfer = 1.6
bp.window_frame_chamfer_select = "<Z"

bp.render_doors=False
bp.door_panels = [0, 5]

bp.render_ladders=False
bp.ladder_panels = [8]

bp.render_floor_tiles=False
bp.render_roof=False

bp.make()
rec = bp.build_body()

#show_object(rec)
cq.exporters.export(rec,'stl/bunker4_large_inset.stl')

window_width
I added a new parameter called to the definition called window_width which defaults to None.
When set to None the code relies in inset. When window_width is set to a number that is truthy the code uses that in place of inset.
    # inset override
    if self.window_width:
        window_width = self.window_width

In the example test case I set the window_width to:
bp.window_width = 32

window_width_offset
Also of note, keep in mind the existing parameter window_width_offset which defaults to -2.
That parameter controls the window distance inset from the interior wall. When set the 0 the windows will be flush will the interior wall.
In the example test case I set the window_width_offset to:
bp.window_width_offset = -1

Nice! I will try this in a bit and see how it turns out 🙂

OK, so this works perfectly, thanks:

Quick question, can you swap out the functions for generating the floors and doors in the same fashion as the windows?

Awesome, glad it worked!

Floor Tiles
The floor you can totally change out, see this project:
https://miniforall.com/gothictower.html
The code for placing the floor tiles lives in this file bunkerFloor.py
To override the floor tile generator set a function to custom_floor_tile
Here is an example that does swap out the floor tiles bunker_med.py
In this example I have two different custom tile methods, that you can swap out.
from cqterrain import tile
#... code stuff
def custom_star_tile(bunker):
    star_tile = tile.star(
        length = bunker.floor_tile_size,
        width = bunker.floor_tile_size,
        height = bunker.floor_tile_height,
        points = 4,
        outer_radius = bunker.floor_tile_size/2,
        inner_radius = 2,
        padding = .5
    )
    return star_tile

def custom_windmill_tile(bunker):
    windmill_tile = tile.windmill(
        tile_size = bunker.floor_tile_size,
        height = bunker.floor_tile_height,
        padding = .5
    )
    return windmill_tile
# code stuff ...
bp.custom_floor_tile = custom_windmill_tile

Note from cqterrain import tile
To see what pre-made tiles I have check out this documentation:
cqterrain tiles

Overriding The Door
I don't have as many good examples, but code is in place for swapping out the door generator.
Code for the door placement is this file bunkerDoors.py
The custom parameters are:

custom_door - should return the custom door shape
custom_cut_door - this needs to be set because I don't know the outline of your custom door to cut out of the body.

Those will need functions set to them. I believe the code is just copy paste from the custom window parameters.
Turns out I was good dude and actually have an example of setting a custom tile and custom door:
bunker_small_custom_door.py
from skirmishbunker import Bunker, SplitDoor
from cqterrain import tile
from cadqueryhelper import shape

# code stuff ...

def custom_windmill_tile(bunker):
    windmill_tile = tile.windmill(
        tile_size = bunker.floor_tile_size,
        height = bunker.floor_tile_height,
        padding = .5
    )
    return windmill_tile

def custom_cut_door(bunker):
    height = bunker.height
    p_length = bunker.panel_length
    p_width = bunker.panel_width
    padding = bunker.panel_padding
    door_cut_width = bunker.inset+bunker.wall_width

    padding_top = 3.2

    if bunker.inset<0:
        door_cut_width = -1*(bunker.inset)+bunker.wall_width

    cut = (
        shape.arch_pointed(24, door_cut_width, 49, 27.3)
        .translate((0,-0,-3))
    )

    cut = shape.arch_pointed(
        p_length  - bunker.inner_arch_sides,
        door_cut_width,
        height - padding - bunker.inner_arch_top - bunker.wall_width+1 -padding_top,
        ((height - padding)/2) + bunker.arch_inner_height - bunker.inner_arch_sides - bunker.wall_width+1 - padding_top
    ).translate((0,0,-4 + bunker.wall_width /2 - padding_top / 2))

    return cut

def custom_door(bunker):
    height = bunker.height
    p_length = bunker.panel_length
    padding = bunker.panel_padding
    padding_top = 3.2

    bp = SplitDoor()
    bp.length = p_length  - bunker.inner_arch_sides
    bp.height = height - padding - bunker.inner_arch_top - bunker.wall_width+1 -padding_top
    bp.width = 1
    bp.base_height = ((height - padding)/2) + bunker.arch_inner_height - bunker.inner_arch_sides - bunker.wall_width+1 - padding_top
    bp.open = 6
    bp.make()
    door = bp.build()
    #return door.translate((0,0,0))
    return door.translate((0,-1,-4 + bunker.wall_width /2 - padding_top / 2))

# code stuff ...
bp.custom_floor_tile = custom_windmill_tile

bp.custom_cut_door = custom_cut_door
bp.custom_cut_door_padding = -.5

bp.custom_door = custom_door
bp.custom_door_padding = -.5

Coincidently SplitDoor was the code that broke the pip install, because it's using the wave function.
Anyhow on that example you get something like this.

Of course all of this should be properly documented. On a good note I can use this response as a rough draft of what that documentation would be.
@mlewis-everley let me know if you have any other questions or bugs.
I appreciate you going through this stuff. I realize There's a barrier of entry, but for me at least there is also an exciting level of potential.


Add pre-PR-submission steps to DEVELOPMENT.md

@homu r+

:pushpin: Commit cfd118d has been approved by segiddins

:hourglass: Testing commit cfd118d with merge 40d04a2...

:broken_heart: Test failed - status

Updated.

@homu r+

:pushpin: Commit f4ba011 has been approved by segiddins

:hourglass: Testing commit f4ba011 with merge ccd627b...

:sunny: Test successful - status


DateSearchWithDetection.detect_language returns "vi" for "2018-10-17T00:00:00"

DateSearchWithDetection().detect_language(text="2018-10-17T00:00:00", languages=[])
>>> 'vi'

dateparser               0.7.2
I expect the default language returned - English or none.

Language detection is very faulty with limited linguistic resources, it's better to use any external language detector. But as a suggested way to improve the situation, I think we could even try plugging in https://pypi.org/project/langdetect/ as optional dependency. Any other ideas?

From my perspective, libraries like langdetect could be better applied on the whole page text, not just on a date, which seems to put this out of scope of dateparser. Also I don't expect any general-purpose language detection libraries to works reasonably well on dates, at best they should nor return any language in this case.

Hi i am a gsoc 2020 aspirant. I am thinking NLTK is the best option, i would try to implement and add a PR.

I wonder how NLTK would impact Dateparser performance, though. Keep in mind that performance is key in a project like Dateparser.

@Gallaecio  i am just trying to solve the issue, this might help in parsing if it is further connected with parser. @manycoding  where is the source code of this function?

@Avilad0 Hi, thanks for looking into that. If you paste the function name in github search in the top left corner, you will find the source code.


Bump ds to 55.2.0

What and why?
How to test?
Trello

/deploy manna

/deploy manna

/deploy manna

/deploy manna

Just needed something separate to test some changes.  Closing this as another PR has the rest of the changes needed for this.


Issues reading and saving NIfTI images

I tried med3web. When I attempt to load NIfTI images (File/OpenFromComputer) that work fine with MRIcroGL, FSLeyes, SPM, etc, I get the error "Wrong header data type". Examples are the reference images in the "Ref" folder of dcm_qa.
When I choose File/SaveAsNifti a NIfTI file is stored, but when I attempt to view it with popular tools (MRIcroGL, FSLeyes, SPM, etc), the slices are wrapped in the left-right direction (perhaps the file writing ignored the 352 byte header offset).

Running the demo program and immediately saving the image creates an invalid file that takes 57672028 bytes on disk.  One expects the file size to be at least 57672032 bytes (dim1 * dim2 * dim3 * nbyper)+352. It appears that the vox_offset is being set to zero (instead of 352) and the 348 byte header is not being padded with 4 extra bytes to align on quad-word boundaries. You can see this in Matlab (using SPM) or the command line (using FSL):
Matlab (SPM):
>>img = spm_read_vols(spm_vol('fx.nii'));
Error using read_hdr (line 65)
Bad vox_offset (0.000000) for "fx.nii".

Command Line (FSL):
$ fslhd fx.nii
sizeof_hdr     348
data_type      INT16
dim0           3
dim1           512
dim2           512
dim3           110
dim4           0
dim5           0
dim6           0
dim7           0
vox_units      Unknown
time_units     Unknown
datatype       4
nbyper         2
 ...
$ ls -l fx.nii
-rw-r--r--@ 1 rorden  staff  57672028 Mar 21 08:27 fx.nii

This violates the NIfTI specification:
https://nifti.nimh.nih.gov/pub/dist/src/niftilib/nifti1.h
When the dataset is stored in one file, the first byte of image data is stored at byte location (int)vox_offset in this combined file. The minimum allowed value of vox_offset is 352; for compatibility with some software, vox_offset.

Thank you for trying our product (under active development stage now). You are absolutely correct - some Nifti files are not supported for read. We have downloaded your test files and have created internal task to read this data. Now our project is under deep changes: we are moving under ReactJS, and most functionality will be  completely rewritten. In new version we will support (i hope) reading your files. New version of our med data web viewer will be ready in a month or two. If you need some urgent project modification, please contact me directly via email, mentioned in my personal github profile.

I tried med3web. When I attempt to load NIfTI images (File/OpenFromComputer) that work fine with MRIcroGL, FSLeyes, SPM, etc, I get the error "Wrong header data type". Examples are the reference images in the "Ref" folder of dcm_qa.
When I choose File/SaveAsNifti a NIfTI file is stored, but when I attempt to view it with popular tools (MRIcroGL, FSLeyes, SPM, etc), the slices are wrapped in the left-right direction (perhaps the file writing ignored the 352 byte header offset).

Addition: currently we are working in brunch "feature/reactjs". We already have fixed problem with reading your sample files. Below you can see how this file rendered in 3d mode

:

after opening dicom and saving it to nifty and then opening the black image. How to fix it?

@neurolabusc thank you for opening this issue.
We have create a bug for Nifti.
Also, recently we have released MRI-viewer version 2.0. You could try it out.
If you face any problems please open new issue with details and screenshots.
Thank you.

@DanilRostov is the live demo version 2, or do I need to build a copy? I still have issues with the live demo linked from the project home page:

Open this page which I assume is MRI-viewer version 2.0
Click Open from URL and choose NIfTI image https://neurolabusc.github.io/niivue_volumes/fslmean.nii.gz
Nothing happens.
Drag and drop of uncompressed .nii NIfTI images from local device also has no response.
While I can open sample datasets like the lungs, the Save NIfTI button does nothing.

The NIfTI image is from this repository and has CORS permission for sharing as seen in this NiiVue live demo.

@neurolabusc Thank you for sharing this details. This is another bug we're working on. Currently opening via external link broken.
We will post an update here as soon as it fixed.


Test that generated mnemonics contain more than 32 bits of entropy

oh wait it's a playwright test

31 skipped
6 passed (18.9s)
Done in 20.11s.

oo it did not run nor flag a failure

uuuh something is wrong

It's an upstream playwright bug

What is that?
Mark D Dannenbaum
On Fri, Aug 11, 2023, 12:58 PM Luka Jeran @.***> wrote:

It's an upstream playwright bug
—
Reply to this email directly, view it on GitHub
https://github.com/oasisprotocol/oasis-wallet-web/pull/1587#issuecomment-1675230300,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHRNEHFCDLOMXYMNA3FUNP3XUZ6FPANCNFSM6AAAAAA3MFTBG4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Fixed that in https://github.com/oasisprotocol/oasis-wallet-web/pull/1588

I'm not sure / I don't have enough background. But this fails, so it probably re-seeds:
const a = require('@trustwallet/wallet-core'); /* 3.1.0 */
(async () => {
  const wasm = await a.initWasm()
  const generatedMnemonics = new Set([...new Array(250_000)].map(() => wasm.HDWallet.create(256, 'password').mnemonic()))
  console.log(generatedMnemonics.size)
  // 249995 (takes 30min)
})()

https://github.com/trustwallet/wallet-core/blob/3.1.0/wasm/src/Random.cpp#L20
woa it does re-seed. not just for every call into wasm, but for every request for random bytes


How to set up font size

I want to set up font size
for example 14px 18px 22px 32px
rather than small normal large huge
How to do it?

Has been answered here previously: https://github.com/surmon-china/vue-quill-editor/issues/64#issuecomment-363407526


New update for the season two. From Hamster @shamhi

🛡 PROTECTING THE HAMSTER 🛡
👿 We’ve banned over 2.3 million cheaters — enough to fill the entire city of Rome!
🏴☠ Wondering how we caught them? Well, here’s an example: One person connected over 400 accounts to a single Binance address, while another invited almost 2,000 "friends," all of whom were flagged by our anti-cheat system.
🤖 We have been analyzing users’ behavior for months before the TGE. We have seen accounts that logged in at the same time each day and were tapping the same exact pixel.
@shamhi
Let update and fixes this

This script doesn't have these problems.

Yeah but the tap does. It instant tap all at once and in the same spot

This script doesn't have these problems.

I get banned because of this script

This script doesn't have these problems.

I get banned because of this script

to be frank no one told you to use this script- you did so in your own free will.
the only solution now it

dont use this in the next season or
use it anyways and hope they dont flag your accounts this time

This script doesn't have these problems.

I get banned because of this script

to be frank no one told you to use this script- you did so in your own free will.
the only solution now it

dont use this in the next season or
use it anyways and hope they dont flag your accounts this time

Can you tell me when I complained?
I couldn't care less about this hamster, I tried the script, it didn't work.
I was just replying to an erroneous message which said that the script had no problem with the banns.

This script doesn't have these problems.

I get banned because of this script

to be frank no one told you to use this script- you did so in your own free will.
the only solution now is

dont use this in the next season or
use it anyways and hope they dont flag your accounts this time

Can you tell me when I complained? I couldn't care less about this hamster, I tried the script, it didn't work.
I was just replying to an erroneous message which said that the script had no problem with the banns.

Its on you, not Shamhi or other devs.
I used this script for 4 months. It got me more than 8 millions profit per hour. didnt get banned. you needed to tweak the options. its not a copy/paste job!

I got banned.
I didn't used this script or key generator. still my account got cheat option.
tbh I think they randomly pick and give them cheap card.

Did you used any other scripts. Because I know the most of us that got banned were using bots

Man, this is so frustrating! I didn’t use any scripts on my main account—I just played games every day for two weeks and got bored because they kept adding more.
But on another account, which was on a different device, I tried a script and hosted it on Railway. Now both accounts got flagged for cheating. I seriously regret not using that script on my main account because they banned both, no matter if it was a bot or actual gameplay. What a mess!

What i did when using this script was that:

i changed every default variable to something custom. I also checked them every few weeks and tweaked them based on my profit.
i used a private ip on my vps for the script.
and from time to time, maybe once a week or 2 weeks i looked at my account on my telegram to see if things go smoothly.
i checked for new bot versions from time to time.
i stopped the script few hours before snapshot.

Thats all i did. Hope it helps others too


how to get sequence in which images are selected.

Hi,
we want to get the images in order in which they are selected from gallery.

@waghrohit88 Would this occur on Android only? If so, perhaps this pull request can fix this and you might want to give it a spin and comment here.


CUDA kernel that supports more than a single token

Would it be possible to adapt https://github.com/mstnegate/int4matmul_kernels to this repository, or any other kernel that would allow inference on prompts more than one token in length?

I think it's probably possible if you design the cuda kernel well.
I will try it within a week.

Implemented batch processing of cuda kernel.


"Get Started" modal for Klima Infinity

Requirements:
links to the three calculators:

carbon.fyi ethereum emissions calc
creol business calc
creol lifestyle/personal calc

@Atmosfearful here i am

Attaching the figma: https://www.figma.com/file/6CUpojwfvdV4R3ACk85JYG/KI-Landing-Page?node-id=1436%3A1870#243064615

Hey @kaxline I'm gonna grab this one bc I'm out of tickets.

@goatsOnDrugs here is the shipped design: https://www.figma.com/file/6CUpojwfvdV4R3ACk85JYG/KI-Landing-Page?node-id=1533%3A3207

@goatsOnDrugs latest shipped design: https://www.figma.com/file/6CUpojwfvdV4R3ACk85JYG/KI-Landing-Page?node-id=1467%3A2601
note you can ignore the light mode versions for the KI page. depending on where else we use this component the light mode might be relevant

@goatsOnDrugs
I'm a business. = https://klima.creol.io/#/office
I'm an individual = https://klima.creol.io/#/footprint
I want to offset crypto = https://carbon.fyi/

@ShimonD-KlimaDAO this is ready for testing. Note that there is a follow up ticket

@ShimonD-KlimaDAO QA link https://klimadao-site-git-goats-581-infinity-modal-klimadao.vercel.app/infinity

Submitted new issue with feedback:
https://github.com/KlimaDAO/klimadao/issues/693


Fix 2D Heisenberg Example

(Reported in the discourse) In removing the mod of the previous PR the yperiodic term was incorrect - there are width Horizontal bonds and width-1 vertical and 1 potential wrapping. This should be the correct terms (and looks nicer than the previous version)
With yperiodic=true
opsum = sum(
  -0.5 S+(1,) S-(2,)
  -0.5 S-(1,) S+(2,)
  1.0 Sz(1,) Sz(2,)
  -0.5 S+(1,) S-(5,)
  -0.5 S-(1,) S+(5,)
  1.0 Sz(1,) Sz(5,)
  -0.5 S+(2,) S-(3,)
  -0.5 S-(2,) S+(3,)
  1.0 Sz(2,) Sz(3,)
  -0.5 S+(2,) S-(6,)
  -0.5 S-(2,) S+(6,)
  1.0 Sz(2,) Sz(6,)
  -0.5 S+(3,) S-(4,)
  -0.5 S-(3,) S+(4,)
  1.0 Sz(3,) Sz(4,)
  -0.5 S+(3,) S-(7,)
  -0.5 S-(3,) S+(7,)
  1.0 Sz(3,) Sz(7,)
  -0.5 S+(4,) S-(1,)
  -0.5 S-(4,) S+(1,)
  1.0 Sz(4,) Sz(1,)
  -0.5 S+(4,) S-(8,)
  -0.5 S-(4,) S+(8,)
  1.0 Sz(4,) Sz(8,)

and yperiodic=false
opsum = sum(
  -0.5 S+(1,) S-(2,)
  -0.5 S-(1,) S+(2,)
  1.0 Sz(1,) Sz(2,)
  -0.5 S+(1,) S-(5,)
  -0.5 S-(1,) S+(5,)
  1.0 Sz(1,) Sz(5,)
  -0.5 S+(2,) S-(3,)
  -0.5 S-(2,) S+(3,)
  1.0 Sz(2,) Sz(3,)
  -0.5 S+(2,) S-(6,)
  -0.5 S-(2,) S+(6,)
  1.0 Sz(2,) Sz(6,)
  -0.5 S+(3,) S-(4,)
  -0.5 S-(3,) S+(4,)
  1.0 Sz(3,) Sz(4,)
  -0.5 S+(3,) S-(7,)
  -0.5 S-(3,) S+(7,)
  1.0 Sz(3,) Sz(7,)
  -0.5 S+(4,) S-(8,)
  -0.5 S-(4,) S+(8,)
  1.0 Sz(4,) Sz(8,)
)

Thanks Ryan, can you add a test that it is outputting the correct Hamiltonian?

Since this is an example, what sort of test were you thinking of? (As a side note, this has me thinking an ITensorMPS tool that converts a opsum into an adjacency graph matrix might be useful)

Since this is an example, what sort of test were you thinking of?

We could split off the Hamiltonian definition into a separate file and then include it into this example and also into a test.

(As a side note, this has me thinking an ITensorMPS tool that converts a opsum into an adjacency graph matrix might be useful)

That could be useful, though we'd have to think carefully about what it should output (i.e. does it include the operators and weights as well?), how to make it general to handle terms that are beyond 2-site, etc. Maybe better as an external tool. I think the same kind of thing can be accomplished by outputting a dictionary from the set of sites to the corresponding term of the Hamiltonian, which is easy enough to write, say using https://github.com/JuliaData/SplitApplyCombine.jl.

I've added the model internally and added a reference. The width=4 with OBC seems to work, but PBC the symmetry breaking in the unit cell is bad and we don't quite reach the correct value.

I've added the model internally and added a reference. The width=4 with OBC seems to work, but PBC the symmetry breaking in the unit cell is bad and we don't quite reach the correct value.

I was picturing that we could just check that some subset of the terms are correct, i.e. check the OpSum itself.

Looks good, thanks!


azure spring boot starters not available in Spring Initializr

azure spring boot starters not available in Spring Initializr as mentioned in readme,md file

We're working on it to make it happen.

Duplicate of https://github.com/spring-io/initializr/pull/492


v0.9.0_01: Tooltip cross symbol ‘x’ is overlapping with the text

SEVERITY: Minor
MODULE: Stage
Platform:

Windows 7 / Chrome 46.0
Windows 7 / Firefox 43.0
MAC / Safari 9.0

STEPS TO REPRODUCE:

Navigate to URL: https://stage-tools.gapminderdev.org/tools/
Tools page is loaded.
Select a country. For example we select “China”
Drag the tooltip to the right most to the text on the chart
By hovering effect the cross symbol is displayed
Note that tooltip cross symbol ‘x’ is overlapping with the text

ACTUAL RESULTS:
Tooltip cross symbol ‘x’ is overlapping with the text
EXPECTED RESULTS:
Tooltip cross symbol ‘x’ should not overlap with the text
SCREENSHOT:

only happens on hover. not bad enough to care )


[BUG] 登录后onNewConversation重复回调

OpenIM Server Version
3.5.1-beta1
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Docker Deployment
Bug Description and Steps to Reproduce
安卓端使用sdk登录后监听OpenIMClient.getInstance().conversationManager.setOnConversationListener，每次登录后都会把历史消息通过onNewConversation推送过来
Screenshots Link
No response

We recommend you update to 3.8.1.


Add Music Mask plugin

Allows the user to play higher quality MIDI music over the Old School RuneScape game. This plugin supports SoundFont (.sf2) files and features an upgraded RuneScape sound engine for playback.

Is the source in com.musicmask.musicsystem your own, or is it from some other package? It does not have any attribution currently, but looks like library code.

Is the source in com.musicmask.musicsystem your own, or is it from some other package? It does not have any attribution currently, but looks like library code.

Most of that code comes from https://github.com/lequietriot/RuneScape-MIDI-Player-Suite (Another package) which is based on the OSRS sound engine. Some of the imports are from a package com.sun.media.sound to support SoundFont 2 files.

I guess more specifically, is that all code that you wrote and own, and have license to publish? Is it based on, or ripped from the osrs sound engine? (we likely can't publish the latter, but the former should be fine)

I guess more specifically, is that all code that you wrote and own, and have license to publish? Is it based on, or ripped from the osrs sound engine? (we likely can't publish the latter, but the former should be fine)

Most of the code in the musicsystem source is based on the osrs sound engine. I could probably create an alternate sound engine code if needed for publishing, although it would still be based on the old runescape way of handling midi music.

FYI all the code in com.sun.media.sound is licensed under GPL2, which requires work containing or derived from it also be licensed under GPL2; your license is currently the BSD-2 Clause "Simplified" license.


refactor: pass document when managing head elements

Issue or need
When using _HeadElementUpsertOrRemove, consumers are forced to inject DOCUMENT to create the element to manage.

Proposed changes
In order to avoid this extra dependency, the manager now provides the document. The caller receives it when specifying an element factory function instead of an element.
Can't pass just createElement because Illegal invocation error appears https://stackoverflow.com/q/32423584

Quick reminders

🤝 I will follow Code of Conduct
✅ No existing pull request already does almost same changes
👁 Contributing docs are something I've taken a look at
📝 Commit messages convention has been followed
💬 TSDoc comments have been added or updated indicating API visibility if API surface has changed.
🧪 Tests have been added if needed. For instance, if adding new features or fixing a bug. Or removed if removing features.
⚙ API Report has been updated if API surface is altered.

#924  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @davidlj95 and the rest of your teammates on  Graphite

Aborting! Complicates things, no bundle size wins either


Adding Advanced JS Concepts like Currying

Hi @neerajrathore
I wish to Create a comprehensive guide to currying in JavaScript can be very beneficial for understanding functional programming concepts.
Proposed Structure

**Introduction to Currying:

Definition and basic concept.
Difference between currying and partial application.

Basic Syntax and Examples:

Simple examples to illustrate currying.
Step-by-step breakdown of how currying works.

Implementing Currying:

Manual implementation of a curry function.
Using existing libraries (e.g., Lodash).

Use Cases and Benefits:

Real-world scenarios where currying is useful.
Benefits of using currying in functional programming.

Advanced Currying Techniques:

Handling multiple arguments.
Currying with variadic functions.

Common Pitfalls and How to Avoid Them:

Potential issues when using currying.
Best practices to follow.

Practical Applications:

Examples of currying in popular frameworks and libraries.
Integrating currying into existing projects.

Comparison with Other Functional Programming Techniques:

How currying compares to other techniques like closures and higher-order functions.

I would like this issue to be assigned to me.

@shrinjayshresth1 You can proceed with your contribute.
Before you start working on your PR, please make sure to:

⭐ Star the repository if you haven't already.
Pull the latest changes to avoid any merge conflicts.
Include the issue number in your PR description for better tracking.

I'm excited to see your contribution as part of Hacktoberfest 2024! 🎉
Don't forget to follow me on GitHub for more updates.
Happy open-source contributing! 🚀

@shrinjayshresth1 Are you making any progress?

Just Saw Currying is already added. How is it possible since it was assigned to me.


MouseRegion for Touchscreens

Use case
I'm working on a "swipe to select" feature on a photos app, where photos are selected as they are swiped over in the gallery (grid of photos). This would have been easy to do this if there were an onEnter callback that would trigger when the pointer enters a photo widget. This is just one use case, I'm sure having this callback would help in many other scenarios as well.
I've tried to get this working using GestureDetector and Listener and none of it's callbacks trigger when hovering over, when PointerDownEvent was triggered from outside the hovered widget. I also tried overriding handleEvent of RenderBox to get it work with the whatever little understanding I had about it. Couldn't find any pub packages that'll help.
Proposal
Would be great to have the ability to detect entering and exiting events on widgets by pointer on a touchscreen.
Since we already have MouseRegion for Web and Desktop, if it's easy create a Mobile (touchscreen) equivalent, it would definitely help.
Thank you!

The use case in this issue is similar to the one at https://github.com/flutter/flutter/issues/140471. Could you check if it can assemble this?

The use case in this issue is similar to the one described in #140471. Could you check if it can assemble this?

The use case is similar, but I don't need an out-of-the-box solution like the one he wants.
I have already built a multi-select feature in my gallery app. However, the only way to select items now is by individually selecting each one, and I have not yet integrated a "drag-to-select" feature, which is available in most gallery apps.
To build drag-to-select, I was looking for ways to call a callback when the touch pointer enters a widget (a photo in my gallery, in this case) so I can trigger selection for that photo. I discovered the MouseRegion widget, but unfortunately, it doesn't work for touch screens. I was wondering if it's easy to create a similar widget like MouseRegion or make MouseRegion support touchscreens
I tried to figure out how MouseRegion works internally, but had no luck. I would love to create this and contribute to Flutter if you could let me know what documentation to read to understand it better.

I have the same thought as a user shared at https://github.com/flutter/flutter/issues/140471#issuecomment-1866339989: it should be built with a new package rather than a built-in feature. Despite that, I will label this to see other's thoughts.


feat: add markdown wrapped text indent

Try to add markdown wrapped text indent...

Closing as this feature will require a significant amount of work to implement properly


Functionals Base Class, L2 Norm Squared, L1 Norm

Please adapt your doc strings to MRpro standards

Think of a test which confirms that the prox is actually the argmin

@koflera do we need to adapt anything here with this PR?
https://github.com/PTB-MR/mrpro/blob/554052592324f364f63f79bc441efd8c1fb07518/tests/operators/_OptimizationTestFunctions.py#L19

summary from today's meeting:

tests required
l1_norm which handles complex data "correctly"
l1_norm_coponentwise which deals with real and imag part separately

Please rebase to current main and then go through the comments above one by one and click "resolve conversation" after checking that you have implemented the requested change.

we do not use underscores anymore. it should be scr/mrpro/operators/functionals/Functional.py

Trying to use L1Norm, L2NormSquared and MSEDataDiscrepancy, I noticed that they act differently in the shapes of (list of) tensor that they return, like in the screenshot here. Would it be better to have one same for all or not?

Yes.
Either remove the dims, or add a keepdim=False flag to the norms.
I think I would prefer the latter, as it is often useful.

Talking with @koflera :
We are fine with having a joint Functional/Loss class.
We should add a keep_dim = False to the functionals.
We should explicitly mention in the docstring, that only keep_dim=False, dim=None reduces to a single number.
For each functional, the docstring should show what the code does with respect to the weight setting.

Remove keep_dim, dim, divide_by_n from forward, prox, prox_convex_conj

I added a test_functionals, which tests all the functionals.
It mainly tests some properties that the functionals should have, and contains a single value check vs. odl (with some example code how to get the reference values from old)
I changed l2normsquared and l1norm to pass these tests.
This also changed the definition of l2normsquared (I removed the *1/2, l2normquared is now just the l2 norm squared, unscaled)
l1normview as real is unchanged so far..
I renamed the files to match our file name convention and added the imports to the __init__.py
As it seemed useful for the tests, I extended the RandomGenerator with two new methods to generate random tensors given either a dtype or a reference tensor. At some point we might move some of the other tests to these new functions as well.
Missing are cuda tests.

I suggest to maybe split this in multiple PRs for review:

The functional base class and tests cases
L1Norm
L2NormSquared
L1NormViewasReal


How to deploy

Download "yt_dlp" (only this 1 needed) from [ https://github.com/yt-dlp/yt-dlp ].
    Place which under "yt-dlp", and copy (or symlink) "./yt_dlp/__main__.py" to (as) "./__main__.py".
    [ "yt_dlp/__main__.py" wouldn't be used under such context: so move could be alright. ]
    `python "yt-dlp"` alike should work.
    [ See also: https://docs.python.org/3/using/cmdline.html#cmdarg-script ]
E.g.
(Unix Shell)
[[
	exec '/usr/bin/python' \
	'/sdcard/.src/yt-dlp' \
	--socket-timeout 5 \
	--retries inf \
	--extractor-retries inf \
	--fragment-retries inf \
	--file-access-retries inf \
	"$@";

]]
,
(Windows CMD (Batch) )
[[
	@"C:\python3\python.exe" ^
	"C:\.src\yt-dlp" ^
	--socket-timeout 5 ^
	--retries inf ^
	--extractor-retries inf ^
	--fragment-retries inf ^
	--file-access-retries inf ^
	%*

]]

[[
    Full documentation at:
    https://github.com/yt-dlp/yt-dlp/blob/master/README.md
]]
(for "--help")

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Do you really think padding bunch irrelevant verbiage on which aids readability..?
Somewhat related:
    https://bugzilla.mozilla.org/show_bug.cgi?id=1783791#c5
    ("Less verbosity = More readability")
The post may be used as new deployment instruction: more reasonable than using pre-compiled binaries. ("read-only open source")


PBE cannot be used

click start，it crashed.

update pattern

update pattern

12.5 it still collapsed


How do I change the base address when the game is updated

How do I change the base address when the game is updated

when game is updated check unknowncheats ;p

There no offsets and base address. It's internal cheat


How should the plugin/workflow handle 'terraform delete'?

So the obvious workflow of branches should run terraform plan, and a merge to master might run terraform apply seems obvious to me.
But at the end of the day when I want to use terraform to spin my things down, how should that be accomplished?
If we figure this out I'll get this plugin a PR for delete support ?

@flyinprogrammer I was thinking about this myself. I think that by default it should destroy the environment on a successful deployment, leave it up on failure, and then also have an option to not destroy via the .drone.yml. That's my two cents.

Hey there, I think that it could be useful to tell the plugin which command(s) has(have) to run after a plan. For example, I would like to bring a platform up, then provision it and finally destroy it. Maybe, it would be possible to specify multiple commands to run.
The use of the plugin could look like this:
pipeline:
  terraform:
    image: jmccann/drone-terraform
    plan: false
    command: ["apply", "destroy"]
    [...]

Or in the case we want to use a single command:
pipeline:
  terraform:
    image: jmccann/drone-terraform
    plan: false
    command: apply
    [...]

What do you guys think?

@Drc0w I like the first option, as well as having the option to show after the terraform remote command is done would be nice.

This is something I'll be looking for, too, shortly, but in a sightly different use case.
Our process will be:

Provision a temporary service
Run integration tests against it
Destroy the service

#2 is pretty much a a subset of #1. If we were to make the command a list, it can have a single element in it.
It also could make the plan option obsolete.
On the other hand, with my requirements, I'd like to add a flag that would block wiping out the .terraform at the end (and beginning), so that I can destroy the service after my tests run. With that command bing a single value would work for me, too.
If we agree on one or the other, I can spend time implementing it.

Implemented with #50


Add support for returning count and coverage information

ref: https://github.com/Azure/azure-sdk-for-python/pull/10182#discussion_r389909487

cc @brjohnstmsft This is the issue I mentioned in the call. min_coverage and coverage working find, but setting count=True on the query results in response.count still being None. Noting that this document:
https://docs.microsoft.com/en-us/rest/api/searchservice/search-documents#response
mentions count as being returned in @odata.count but also from prior discussion we are setting the header:
"Accept": "application/json;odata.metadata=none",


[FEATURE] - or Question? Auto start VPN if leaving the trusted SSID

Hi,
first, thank you for this cool peace of software. I am moving from openvpn to wireguard and have installed your app from fdroid.
My current settings with OpenVPN are:

When I leave my home SSID Easer (automation app)  starts OpenVPN to my home and sets Owntrack in move mode
when coming home Easer stops OpenVPN and sets Owntracks in pause mode

Now i try to have a similiar setting with wgtunnel, but i think i oversee something.

i set "tunnel on mobile data" to on, everything else to off and added my SSID as trusted SSID
tried it without SSID in trusted too

if i switch the peer on, it tunnels no matter i am on WLAN or LTE.  If I switch the tunnel off it does not tunnel even leaving my SSID.
It is probably me not seeing something here.
If this does currently not work, is there a command where i can switch the peer on and off with Easer?
Many thanks for any hint!

Hello! So the whole first block of settings on the settings screen is for auto tunneling settings. It sounds like you were configuring things correctly, you just need to "Enable auto-tunneling" to actually make those settings active. I'm sorry that this screen is a bit confusing. I'm thinking about changing it to be more intuitive. You will likely want to enable battery saver as well, or else the service that monitors the network changes will drain the battery.

Hi thank you ,for your answer. I tried that and have locatiion services enabled always - se ttings does not show the screen anymore - but when trying to enable auto tunneling if fails with - location services required -
Lineageos 20, rooted with magisk, no gapps
Location service works for home assistant, organic maps, owntracks, so i assume device setup is ok

Hi thank you ,for your answer. I tried that and have locatiion services enabled always - se ttings does not show the screen anymore - but when trying to enable auto tunneling if fails with - location services required -
Lineageos 20, rooted with magisk, no gapps
Location service works for home assistant, organic maps, owntracks, so i assume device setup is ok

Can you confirm you have "allow all the time" location permission enabled and "precise location" enabled?

from mobile i write from pc after uplosd

I am sorry its in German,  but these are the related screenshots. Its always and precise, but wgtunnel does not request the locations as shown in the other screenshot. homeassistant and others access it.

Thank you for making me aware of this. I think there must be something wrong with how the app is checking for location services on LOS. I will put LOS on one of my devices and see if I can find the issue.

Thank you for looking into this. Let me know if I can be of any help.

For me this works on LOS 20. But location services must not only be granted to the app, they actually have to be enabled in the Android settings. Otherwise auto-tunneling can't be toggled (yes, you can't even deactivate it) – you only get the "Location services required" message.
As location services are just needed for the trusted wifi filter to work, maybe the app should just show a warning when location services are disabled instead of preventing whole auto-tunneling to get activated/deactivated, @zaneschepke?

For me this works on LOS 20. But location service permissions must not only be granted to the app, they actually have to be enabled in the Android settings. Otherwise auto-tunneling can't be toggled (yes, you can't even deactivate it) – you only get the "Location services required" message. As location services are just needed for the trusted wifi filter to work, maybe the app should just show a warning when location services are disabled instead of preventing whole auto-tunneling to get activated/deactivated, @zaneschepke?

Thank you for this info @bastei! @vsatmydynipnet  Can you try and enable location services in Android settings?
As for your idea, I think this would be good for disabling auto-tunneling. I will add that capability. Permissions should not be prevent disabling auto-tunneling. I still want to prevent auto-tunneling enablement without (location services + tunneling untrusted wifi) because it will simply not work. It could then cause reports/issues of it not working that will be hard to diagnose.
I will add that it is possible to enable auto-tunneling without location services if you are not using it for tunneling on wifi networks and are just using it for tunneling on mobile data.

I still want to prevent auto-tunneling enablement without (location services + tunneling untrusted wifi) because it will simply not work. It could then cause reports/issues of it not working that will be hard to diagnose.

In my opinion that is not enough. What about users that disable location services in Android settings after enabling auto-tunneling with (trusted) wifi? Without any hint, the wifi filter stops working then, which is unexpected and you will get reports/issues again. ;)
I think that this scenario is not that rare. Users temporarily disable location services and sometimes they even forget to enable it again. As auto-tunnel is a core feature of wgtunnel and users rely on that feature, they better get informed about unexpected situations.
I think the following steps would help usability-wise:

Add a hint to the "Add trusted wifi name" input, for example: "Disabling the tunnel for trusted wifi connections only works while location services are enabled in the Android settings. The tunnel stays active otherwise and you have to disable the tunnel manually for trusted wifi connections."
Optionally add a status info (for example "Location services are currently enabled" + green light / "Locations services are currently disabled" + red light).
While auto-tunneling (with wifi) is enabled, listen for MODE_CHANGED_ACTION. When location services get disabled, inform the user on every wifi connection with a notification that wgtunnel enables the tunnel regardless of entered trusted wifis because it can't access wifi information with location services disabled.
Add an option "Disable the tunnel for the current wifi connection" to the notification, so that the user can easily disable the tunnel if the current wifi is actually trusted. Enable the tunnel again when onCapabilitiesChanged gets called.

This way, users stay informed about the current situation and are enabled to correct the behaviour of wgtunnel. They can even suppress the notifications if they don't fit to their personal user-case.

I think these are all good suggestions. I have a pretty full backlog at the moment, but perhaps some time will open up to implement this in the future. Thank you for such a detailed response and thoughtful approach to the problem!

I want to jump in here because I had an issue on LOS where I could not enable auto-tunnel if "Tunnel on untrusted wifi" was enabled at all. I ensured location was enabled all of the time, precise location was checked, battery optimization was turned off, the whole nine yards. The location services page in Android settings was blank and the quick tile appeared as though Location Services were enabled.
In the end, what fixed it for me was using the quick tile to disable location and re-enable it. That triggered some other popup about location services terms. Once accepting that and ensuring location was turned back on I was able to enable auto-tunneling with untrusted wifi enabled.
Hopefully that's helpful to someone else who comes across this issue. Seemed to be some weird LOS bug where location services weren't really enabled even though everything appeared as though they were.

Marking this one as closed with solution by @Trinnik. I created a separate issue for your ideas @bastei because I think there is a lot of value there and I don't want to lose that. #139


postgres: add socketDir option

Postgres: Fix a build failure when initialDatabase schema is null
Postgres: Add a socketDir config option which defaults to config.dataDir and allows customization of socketDir for users who do not wish it fixed to dataDir

Also, sockets are limited to around 100 chars
In the case that the default or desired dataDir absolute path exceeds this char limit, postgres will fail to start if it is also used for socketDir
In this case, dataDir can remain as desired and socketDir can be set separately to a shorter absolute path

@johnalotoski You can rebase with main and the CI should pass

Rebased and ready for workflow approval.

LGTM! Merging


Explicit versioning for build.sh

Original issue from: https://github.com/aspnet/HttpAbstractions/issues/259
I'm not up to speed on the dev branches yet, so I'm still working from master branches. When I try to build with build.sh I am pulling down the dev version (beta5) of KoreBuild with all the dnx stuff.
I had to add explicit versioning for the KoreBuild nuget package to get beta3 stuff to build.
Example of old build.sh from master:
mono .nuget/nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre

Adding versioning to build beta3:
mono .nuget/nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre -version 0.2.1-beta3

Closing because we are not planning to make changes to this or it is no longer needed.


Cannot assign to read only property 'ok' of object '[object Object]' while running in browser

Hello. I am trying to run power-assert in the browser using webpack and babel. The code transformation works great, but there is an error pointing to the return statement of the following line:
https://github.com/power-assert-js/power-assert/blob/master/build/power-assert.js#L13557
Here comes the stack trace:
Uncaught TypeError: Cannot assign to read only property 'ok' of object '[object Object]'
    at assign (<anonymous>)
    at eval (eval at empowerAssertObject (power-assert.js:4495), <anonymous>:1:1)
    at empowerAssertObject (power-assert.js:4495)
    at empowerCore (power-assert.js:4482)
    at empower (power-assert.js:4663)
    at applyEmpower (power-assert.js:17203)
    at customize (power-assert.js:17209)
    at power-assert.js:17226
    at createCommonjsModule (_commonjsHelpers-4f955397.js:14)
    at power-assert.js:17172

@kim366 Thank you for reporting!
I'll take a look.
Would you make a small repository or gist for reproduction of this case?

Yes, of course. Here it is: https://github.com/kim366/repro-power-assert

git clone https://github.com/kim366/repro-power-assert.git
npm install && npm start
Open http://localhost:8080/test/TestRunner.html
Open Devtools

Hope this helps.

Thank you for your repro case.
I've found that Rollup, where used internally by Snowpack, freezes assert module by default.
var assert$1 = /*#__PURE__*/Object.freeze({
  __proto__: null,
  'default': assert,
  AssertionError: AssertionError,
  fail: fail,
  ok: ok,
  assert: ok,
  equal: equal,
  notEqual: notEqual,
  deepEqual: deepEqual,
  deepStrictEqual: deepStrictEqual,
  notDeepEqual: notDeepEqual,
  notDeepStrictEqual: notDeepStrictEqual,
  strictEqual: strictEqual,
  notStrictEqual: notStrictEqual,
  throws: throws,
  doesNotThrow: doesNotThrow,
  ifError: ifError
});

Also found that Rollup has a freeze option for opting-out of Object.freeze usage.
refs: https://github.com/rollup/rollup/pull/1696
So if you can pass freeze option to Rollup via Snowpack, power-assert might work.


Added new plugin git-auto-status

Sorry, guys but I want to add another pull request to the pile that stuck on github.
New plugin allows to automatically run git status after specified commands like git commit

Closed because it duplicates functionality of git_prompt_status - before I didn't know about its existance


Update style.css

Done the changes according to issue number pranjay-poddar #1350
Title and Issue number
Updated the "Buy Now" Button of Apple Ecommerce Website and the issue no is #1350
Close #1350

Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[] I have created a helpful and easy to understand README.md

Not a relevant change also branch has conflicts


Typo "Azure data factory"→"Azure Data Factory"

https://docs.microsoft.com/en-us/azure/data-factory/tutorial-incremental-copy-partitioned-file-name-copy-data-tool
#PingMSFTDocs

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

The updated text appears to be referring generically to a data factory in Azure ("an ... data factory"), so it's correct as-is; we'll close the PR.
Internal style guidance is to refer to generic instances in lowercase, data factory, as opposed to referring to the Azure service name, Azure Data Factory.


https://async-graphql.github.io gives 404

Expected Behavior
I would expect https://async-graphql.github.io/ to redirect to https://async-graphql.github.io/async-graphql/en/index.html
Actual Behavior
It shows a 404 Error

I don't know how to configure this. 😂

You need to create a repository async-graphql.github.io. Its content of the master branch will be rendered on async-graphql.github.io. You could create a single file index.html with content
<!DOCTYPE html>
<html>
   <head>
      <meta http-equiv = "refresh" content = "0; url = https://async-graphql.github.io/async-graphql/en/index.html" />
   </head>
</html>

in order to redirect to the book or put any content you like.

I have done this, thank you! 🙂


fix: bson should handle nulls

Closes #2484

I think adding this as an SLT is pretty fragile and doesn't provide a lot of value. The code gets exercised. Given the quality of the mongo docker container we use and our mechanisms for getting data into it for SLTs fixtures, it seems precarious. I'm also sort of dubious about keeping the SLT fixtures in a shell script that's pretty far away from the actual tests in question. (local testing is hard, knowing where to fix it is hard, shell scripts like this are kind of grenades, etc.)
I think there's a project to be had about adding better support for fixtures in the SLTs, though I'm not sure where it would make sense to prioritize. And in light of that, I'm not convinced that we need to bodge in tests just because...

I think adding this as an SLT is pretty fragile and doesn't provide a lot of value.

I disagree. As a general rule, If an issue is opened with a specific reproducible example, I include that example in the tests to ensure that that specific case is tested against. This indirectly. Implicitly, i know that this bson stuff should fix the mongo issue, but it doesn't explicitly test the example I provided.
I agree that we shouldn't be creating a bunch of test data in those shell scripts, but we can create a bson file with that data & include it in our testdata dir, and do a mongoimport. In our testdata, we have a script to generate iceberg data, then that data is checked into source control. We should do something similar with bson.

I've written an additional test.


Name templating capability for pull request

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)
The capability to be able to specify the name of the pull request by providing a name template like the branchnametemplate. There's an extra parameter 'pullrequestnametemplate' introduced that accepts the name template.
:arrow_heading_down: What is the current behavior?
The pull request name was not configurable by the user
:new: What is the new behavior (if this is a feature change)?
The pull request name can be adjusted by specifying the 'pullrequestnametemplate' parameter and use the same templating parameters as the branchnametemplate uses. When not specified the default (existing) behavior will kick in.
:boom: Does this PR introduce a breaking change?
No, when pullrequestnametemplate is not provided the default name will be generated by NuKeeper
:bug: Recommendations for testing
:memo: Links to relevant issues/docs
:thinking: Checklist before submitting

[x] All projects build
[x] Relevant documentation was updated

Hi, is is possible to review this pullrequest?


Disable update-notifier for NPM

closes #28

This is not complete, you're missing the npm upgrade part.

This is not complete, you're missing the npm upgrade part.

should be sorted now

Still not complete:

Older Node.js versions may need to be pinned to a specific major version, e.g. npm v9.x or v8.x.

Right now you're trying to get Node.js 12 to update to npm 10, which isn't going to work


Support use of both Fragment Abuse plugins?

After noticing that you can't select both "Fragment Abuse" plugins on the Download Builder, I started to wonder why.  The URI styles obviously contradict but do the code internals?
Brief Twitter conversation with @rodneyrehm would suggest that the API accessor methods conflict for these two plugins conflict.  So, I guess at least one of the two plugins APIs would have to be altered in order to support both use cases with a single build of URI.js.
I'm in a situation where I am consuming 3rd party URIs w/ "fragment query strings" but parsing 1st party SPA "fragment paths"/"URL fragments".
Does this use case apply to anyone else?  Other discussion points?

I know this is an old thread, but I would like to suggest that for v2 a simple operation be added such that on construction I can declare how I would like to treat the fragment. For example, right now I have to do something like URI('?' + URI().fragment()).hasQuery('q') in order to treat the fragment like a query and find out if the parameter q is present. Likewise, I need to do URI(URI().fragment().substr(1)).segment(2) to treat the fragment as a URL and get the second segment of the page.
I would much prefer something fluent like var fq = URI.fragmentAsQuery(); var q = fq.hasQuery('q') which would then allow me to get the parameter q with minimal effort. Then I could just 'put it back' to the original URL with something like URI().fragment(fq.query()). This could easily be extended to URI.fragmentAsURI


KDB Studio 2 Prototype

Hi All,
The KDB Studio re-implementation prototype is at a point where we are happy to share progress:
https://github.com/ScottLogic/kdb-studio-2
This project uses:

The monaco editor, and adds q syntax support
Electron to allow the application to run on the desktop
Vue and Element for the UI layer
node-q for the communication layer

The current functionality is as follows:

Add / edit / delete servers
Query editing (with syntax highlighting)
Query execution, with results displayed as a simple HTML table

Considering that this prototype doesn't actually involve that much code, this is a decent amount of functionality.
I think this is looking like a viable route forwards. I'd be interested in opinions of others from @finos/dt-kdb - perhaps something to discuss in the project call in a couple of weeks?

Hi @ColinEberhardt
Well done on this awesome update! 🌟  Please see the following comment where I have asked how much time you need to present the POC to the KDB team ... https://github.com/finos/kdb/issues/50#issuecomment-872377679
Also, I'd to tie the conversation thread on comment where https://github.com/jshinonome/vscode-q  is introduced to @alvin-c-shih, @gyorokpeter and @psmulovics ... https://github.com/finos/kdb/issues/46#issuecomment-832779043
Do you think there's value inviting the vscode-q maintainer to this conversation if there's potential for a joint initiative?
James.
cc @dzmipt (Dmitry Zakharov)

Our discussion was more aligned whether it should be a new standalone app (using electron, etc), or should it be 'just' a well defined VSCode plugin (where most of the features for editing, displaying, windowing, etc would be provided by VSCode). Doing VSCode gives the ability to have the Q code coexist with the rest of your source code editing experience, git experience, etc., and can even work with being invoked when Q code is met within another language's source code.