feat: create a text editor tool with multiple commands

Changes:

support optional params, literals in docstring -> jsonschema: https://github.com/block/goose/pull/188
create a tool that calls out to different commands

Anthropic is using this text editor tool for Computer Use. It might be useful to try this in goose - docs, code. It seems like they prefer to have fewer tools, but each tool has more optional args which are used for specific actions. For example, in goose we have separate tools for read_file, write_file, patch_file but in this case, its a single EditorTool with command as an Enum that routes to the editor action (view, create, insert).
Test:
tool descriptions are correctly passed

interesting, will try this out, could be promising. I did notice that tool calling seemed to work well with parameters in the past, and even with richer CLIs - ie able to use the one "tool" different ways seems to suit it more so than choosing between tools (intuitively that makes sense, as a human, to some limited extent, you don't have the cognitive overload of choosing the tool)

@salman1993 any tips on how to try it out to A/B test?

tried it out with editing just one spot in a yaml file... just FYI:
The phrase "Found packages with disallowed licenses" occurs multiple times in the .github/workflows/license-check.yml file, making it necessary to be more
specific in the string replace operation. I'll view more of the file to identify the different locations and modify them accordingly. Let's check the
occurrences separately.

─── .github/workflows/license-check.yml ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

         uses: actions/setup-python@v5
         with:
           python-version: '3.10'

       - name: Install dependencies
         run: |
           python -m pip install --upgrade pip
           pip install tomli requests urllib3

       - name: Check licenses
         run: |
           python .github/workflows/scripts/check_licenses.py \
             pyproject.toml || exit_code=$?
           if [ "${exit_code:-0}" -ne 0 ]; then
             echo "::error::Found packages with disallowed licenses"
             exit 1
           fi

       - name: Check Exchange licenses
         run: |
           python .github/workflows/scripts/check_licenses.py \
             packages/exchange/pyproject.toml || exit_code=$?
           if [ "${exit_code:-0}" -ne 0 ]; then
             echo "::error::Found packages with disallowed licenses in exchange"
             exit 1
           fi

─── .github/workflows/license-check.yml ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

─── .github/workflows/license-check.yml ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Let's specify the contexts where we succeed the operations, starting with the first one.

─── .github/workflows/license-check.yml ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

 echo "::error::Found packages with disallowed licenses"

->

 echo "::error::Found packages with disallowed licenses, it was in the goose package."

─── .github/workflows/license-check.yml ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

 echo "::error::Found packages with disallowed licenses in exchange"

->

 echo "::error::Found packages with disallowed licenses, it was in the goose package."

some odd artifacts like:

so far seems to do a good job - but not pushed too hard today

changes from this PR are in this one: https://github.com/block/goose/pull/191


Add Run on FloydHub button

Saw this on Twitter and had to reproduce it!
 You can try it out by clicking the button from my repo's fork: https://github.com/whatrocks/dancenet.

@whatrocks Awesome PR!


Clean images in the right region

What type of PR is this?
Bugfix
What this PR does / why we need it:
image-clean does not use the same region as ci.
fixes #147

Closes #147


PHP failed to use closure in function to create credential

What version of gRPC and what language are you using?
PHP 7.2.5 (cli) (built: Apr 26 2018 12:07:32) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.5, Copyright (c) 1999-2018, by Zend Technologies

GRPC 1.12.0
PB 3.5.2
What operating system (Linux, Windows, …) and version?
macOS 10.13.4
What runtime / compiler are you using (e.g. python version or version of gcc)
PHP
What did you do?
<?php

require __DIR__ . '/../vendor/autoload.php';

use Wener\Api;

$updateMetadata = function ($context) {
//    echo "CALL $context->service_url : $context->method_name" . PHP_EOL;
    return [];
};

function createCred(){
    $updateMetadata = function ($context) {
        return [];
    };
    $cred = Grpc\ChannelCredentials::createComposite(
        Grpc\ChannelCredentials::createSsl(file_get_contents('roots.pem')),
        Grpc\CallCredentials::createFromPlugin($updateMetadata));
    return $cred;
}

$cred = Grpc\ChannelCredentials::createComposite(
    Grpc\ChannelCredentials::createSsl(file_get_contents('roots.pem')),
    Grpc\CallCredentials::createFromPlugin($updateMetadata));

// This works
$client = new \Wener\Service\V1\InfoServiceClient("myservice.com:443", [
    'credentials' => $cred,
]);

list($reply, $status) = $client->GetInfo(new \Wener\Service\V1\GetInfoRequest())->wait();

// This not work
$client = new \Wener\Service\V1\InfoServiceClient("myservice.com:443", [
    'credentials' => createCred(),
]);

list($reply, $status) = $client->GetInfo(new \Wener\Service\V1\GetInfoRequest())->wait();

What did you expect to see?
Works the same
What did you see instead?
PHP Fatal error:  Uncaught Error: Cannot call overloaded function for non-object in /Workspace/vendor/grpc/grpc/src/lib/UnaryCall.php:44
Stack trace:
#0 /Workspace/vendor/grpc/grpc/src/lib/UnaryCall.php(44): Grpc\Call->startBatch(Array)
#1 /Workspace/vendor/grpc/grpc/src/lib/BaseStub.php(242): Grpc\UnaryCall->start(Object(Wener\Service\V1\GetInfoRequest), Array, Array)
#2 /Workspace/vendor/wen/wenapis/Wener/Service/V1/InfoServiceClient.php(31): Grpc\BaseStub->_simpleRequest('/Wener.servic...', Object(Wener\Service\V1\GetInfoRequest), Array, Array, Array)
#3 /Workspace/ignored/t3.php(39): Wener\Service\V1\InfoServiceClient->GetInfo(Object(Wener\Service\V1\GetInfoRequest))
#4 {main}
  thrown in /Workspace/vendor/grpc/grpc/src/lib/UnaryCall.php on line 44

Fatal error: Uncaught Error: Cannot call overloaded function for non-object in /Workspace/vendor/grpc/grpc/src/lib/UnaryCall.php:44
Stack trace:
#0 /Workspace/vendor/grpc/grpc/src/lib/UnaryCall.php(44): Grpc\Call->startBatch(Array)
#1 /Workspace/vendor/grpc/grpc/src/lib/BaseStub.php(242): Grpc\UnaryCall->start(Object(Wener\Service\V1\GetInfoRequest), Array, Array)
#2 /Workspace/vendor/wen/wenapis/Wener/Service/V1/InfoServiceClient.php(31): Grpc\BaseStub->_simpleRequest('/Wener.servic...', Object(Wener\Service\V1\GetInfoRequest), Array, Array, Array)
#3 /Workspace/ignored/t3.php(39): Wener\Service\V1\InfoServiceClient->GetInfo(Object(Wener\Service\V1\GetInfoRequest))
#4 {main}
  thrown in /Workspace/vendor/grpc/grpc/src/lib/UnaryCall.php on line 44

Anything else we should know about your project / environment?
NO

It's mostly likely cause by the life cycle of the function variable $updateMetadata you defined inside the function createCred. This variable is destroy after the function ends.
We save the pointer for this variable  function variable instead of copying the whole function. As this pointer becomes invalid, I expect a segment fault when the call wants to fetch it.
Can you please try it by define $updateMetadata out of the function and passing it into the closure?
function createCred($updateMetadata){
    $cred = Grpc\ChannelCredentials::createComposite(
        Grpc\ChannelCredentials::createSsl(file_get_contents('roots.pem')),
        Grpc\CallCredentials::createFromPlugin($updateMetadata));
    return $cred;
}

// This works
$updateMetadata2 = function ($context) {
    return [];
};
function createCred()
{
    global $updateMetadata2;

    $cred = Grpc\ChannelCredentials::createComposite(
        Grpc\ChannelCredentials::createSsl(file_get_contents('roots.pem')),
        Grpc\CallCredentials::createFromPlugin($updateMetadata2));
    return $cred;
}

// This also works
$holder = [];
function createCred()
{
    global $holder;
    $updateMetadata2 = function ($context) {
        return [];
    };
    $holder[] = $updateMetadata2;
    $cred = Grpc\ChannelCredentials::createComposite(
        Grpc\ChannelCredentials::createSsl(file_get_contents('roots.pem')),
        Grpc\CallCredentials::createFromPlugin($updateMetadata2));
    return $cred;
}

I know how to write my helper function now, but the problem still exists.
class MoreGrpc
{
    static private $_rootPem;
    static private $_holder = [];

    static function getRootPem()
    {
        if (self::$_rootPem == null) {
            $reflector = new ReflectionClass("Grpc\AbstractCall");
            $grpcDir = dirname(dirname(dirname($reflector->getFileName())));
            self::$_rootPem = file_get_contents("$grpcDir/etc/roots.pem");
        }

        return self::$_rootPem;
    }

    static function createCredentialWithAccessIdAndSecret($accessId, $accessSecret)
    {

        $updateMetadata = function ($context) use ($accessId, $accessSecret) {
            return ['x-access-id' => [$accessId], 'x-access-secret' => [$accessSecret]];
        };
        self::$_holder[] = $updateMetadata;

        $cred = Grpc\ChannelCredentials::createComposite(
            Grpc\ChannelCredentials::createSsl(self::getRootPem()),
            Grpc\CallCredentials::createFromPlugin($updateMetadata));

        return $cred;
    }
}

By the problem still exists, do you mean the error PHP Fatal error:  Uncaught Error: Cannot call overloaded function for non-object in /Workspace/vendor/grpc/grpc/src/lib/UnaryCall.php:44 Stack trace still exists?
Have you tried assign the result of creating new credentials into a variable and then pass it to the stub?
$creds = createCred();
$client = new \Wener\Service\V1\InfoServiceClient("myservice.com:443", [
    'credentials' => $creds,
]);

If this still fail, please let me know. Thanks!
I wrote a simple test case which runs well under the grpc root directory:

// Still not work
// PHP Fatal error:  Uncaught Error: Cannot call overloaded function for non-object in /.../vendor/grpc/grpc/src/lib/UnaryCall.php:44

function createCred2()
{
    $updateMetadata = function ($context) {
        return [];
    };
    $cred = Grpc\ChannelCredentials::createComposite(
        Grpc\ChannelCredentials::createSsl(file_get_contents('roots.pem')),
        Grpc\CallCredentials::createFromPlugin($updateMetadata));
    return $cred;
}
$cred = createCred2();
$client = new \Yikaiye\Service\V1\InfoServiceClient("sms.ykyapis.com:443", [
    'credentials' => $cred,
]);

For the problem still exists I mean even I can use the workaround(use an array to hold the closure), but the original version should not failed, that's the problem.If this is by design, then just add a note about this will be fine.

I checked php-src, and zend doesn't provide an API for me to make a copy of zend_fcall_info_cache and zend_fcall_info easily, as well as expend the life cycle of the object to cross the script.
I am working on adding documents for c extension recently. I will add notes for createFromPlugin method until we find a way to manage the function object.


Merge Feat/multipass to dev

Since this branch is a little behind, issues that need resolving are only where this branch attempts to overwrite some changes made on other branches to accommodate DAMASK V3 with old material parameter yml layouts etc.

Using matflow validate on this branch gets me this error:
matflow.errors.UnsatisfiedSchemaError: Unresolved task schema for task "sample_texture" with method "from_random" and software "damask". The function mapper function "orientations_from_random" contains the following arguments that are not consistent with the schema: "orientations_use_max_precision".

Which is completely unrelated to task modify_volume_element methods geometry and orientations? Merging to see if this can be resolved in dev...


Pfeiffer master

@hankim813 @pfeiffer @anoonan @Peripheral1994
Resolved conflicts for pull/26 on a new branch. Updates History.md and package.json to release 2.4.1

e2e tested 👍 :

@pfeiffer this is now live 😄 thanks for the PR!

Awesome! Thanks :-)


Simple lint warning fixes

Got tired of all the warnings, figured it'd be good to get down to the real ones (like complexity) so we know where to concentrate when hopefully refactoring some of the JS next month.

:+1: Just the eslint ignore line as you see fit (I prefer single line ignores myself because there's less to remove if/when they're refactored away).

I'd say https://github.com/cfpb/cfgov-refresh/issues/300 can be closed after this. Linting warnings will be an ongoing thing.

:+1:


Relax dependencies

Right now, all dependencies need the exact same version as written in requirements. However this makes Sadedegel hard to install via pip, especially due to torch==1.5.1 dependency.
Perhaps change strict equality to equal or greater?

You are right. But until we reach a stable release we are reluctant to tackle with issues caused by dependency versions. Until then we strongly do recommend to use virtual environments whether you use pip or conda for package management.

We have started that. Please do check prod.requirements.txt in version 0.19


All ASP.NET Core IIS hosting processes restart with every IIS Application Request Routing (ARR) config change

I use IIS Application Request Routing (ARR) module and URL Rewrite module for zero downtime blue-green deployment of my ASP.NET Core 2.2 application as described here  and here. The problem is that all ASP.NET Core hosting w3wp.exe processes are restarted with every ARR config change, what makes the blue-green deployment strategy a little useless, because I cannot warm up the staging server properly (after switching the status of the live server to offline in the web farm configuration, the warmed up staging server is restarted).
All ASP.NET Core hosting w3wp.exe processes that are part of any farm are always restarted with every change in applicationHost.config <webFarms> section. Processes for non ASP.NET servers or for classic ASP.NET servers that are parts of farms are not restarted. It seems that changes in other than <webFarms> applicationHost.config sections do not cause restarts. ASP.NET Core processes that are not part of any farm are not restarted.
I use the ASP.NET Core 2.2 In Process IIS Hosting but it behaves the same way with the Out of Process Hosting. I tested it on Windows Server 2008 R2 (IIS 7.5) and on Windows 10 Pro (IIS 10) with the same results. It also doesn't matter if I change the web farms configuration via direct applicationHost.config editing, IIS Manager or Powershell.

We don't expect to change this. When changing server global config (applicationHost.config), we can't easily identify if we can avoid the restart so we restart to be safe.


Use reboot from @oacore/design

I am afraid sanitize.css and Bootstrap Reboot are not compatible but you probably know better now.

Sorry, if I stopped you. If I remember, Bootstrap Reboot removes paddings leaving only bottom ones, when sanitize.css doesn't.
If we replace, we should ensure, the layout did not start floating.

I stopped work here because there were a lot of changes required.  I will try differently. i.e. app bar, footer, few other components and then I will come back here.


No network connection after upgrading to 1.1.6 (before it was republished as a pre-release)

Windows Version
Microsoft Windows [Version 10.0.19043.2364]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[x] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>
Distro Version
Ubuntu 18.04
Other Software
No response
Repro Steps
I attempted a wsl.exe --update from 1.1.3 to 1.1.6 yesterday afternoon.
But ran into a vague-ish error about not being able to set an IP address, but ignored and assumed it would probably just address itself .
However, none of my WSL images are working, I even tried disabling the WSL feature in Windows off and on but to no avail.
I'm not particularly sure where WSL2 stores and fetches its IP address configuration, but something seems to have gone wrong there.
I even tried uninstalling the Windows Subsystem application itself as well as the distros but to no avail.
Expected Behavior
Simple ping <IP_ADDRESS> commands should work, meaning it's not DNS related, and it's a fundamental issue with the wrapping network itself.
Actual Behavior
Output of variable network diagnostics commands:
codebymikey@localhost:~$ ip address show eth0
6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1420 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:71:cc:75 brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/20 brd <IP_ADDRESS> scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::215:5dff:fe71:cc75/64 scope link
       valid_lft forever preferred_lft forever
codebymikey@localhost:~$ ip route list
default via <IP_ADDRESS> dev eth0 proto kernel
<IP_ADDRESS>/20 dev eth0 proto kernel scope link src <IP_ADDRESS>
codebymikey@localhost:~$ ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
From <IP_ADDRESS> icmp_seq=1 Destination Host Unreachable
From <IP_ADDRESS> icmp_seq=2 Destination Host Unreachable
From <IP_ADDRESS> icmp_seq=3 Destination Host Unreachable
From <IP_ADDRESS> icmp_seq=4 Destination Host Unreachable
From <IP_ADDRESS> icmp_seq=5 Destination Host Unreachable
From <IP_ADDRESS> icmp_seq=6 Destination Host Unreachable
From <IP_ADDRESS> icmp_seq=7 Destination Host Unreachable

Diagnostic Logs
https://aka.ms/AAk8s50

NB: After running the diagnostics tool, it seems to have fixed the network issues. But still going to report it here for reference purposes.
codebymikey@localhost:~$ ip address show eth0
6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1420 qdisc mq state UP group default qlen 1000
    link/ether 00:15:5d:05:41:7b brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/20 brd <IP_ADDRESS> scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::215:5dff:fe05:417b/64 scope link
       valid_lft forever preferred_lft forever
codebymikey@localhost:~$ ip route list
default via <IP_ADDRESS> dev eth0 proto kernel
<IP_ADDRESS>/20 dev eth0 proto kernel scope link src <IP_ADDRESS>
codebymikey@localhost:~$ ping <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=54 time=30.8 ms
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=54 time=113 ms
64 bytes from <IP_ADDRESS>: icmp_seq=3 ttl=54 time=25.7 ms
64 bytes from <IP_ADDRESS>: icmp_seq=4 ttl=54 time=87.6 ms
64 bytes from <IP_ADDRESS>: icmp_seq=5 ttl=54 time=18.9 ms
^C
--- <IP_ADDRESS> ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 18.969/55.338/113.538/38.038 ms

Could you specify what you mean by diagnostic tool? I've had this issue for a long time now and could really use a fix.

Same issue here, after running wsl --update on W11 2H22 network connectivity went kaboom! 💥

I basically followed the networking instructions detailed here.
Looking at the batch script, I think it deletes and recreates the "WSL HNS network" which might be what got corrupted.
Hopefully the same script fixes it for you!

Thank you for the link, unfortunately it did not fix the problem for me. I'll open a separete issue then.

@krippix you could try a more forceful approach. Terminate WSL, open an elevated console and run hnsdiag.exe reset all followed by a system reboot.

I managed it work with the following %USERPROFILE%/.wslconfig (Hyper-V: ON):
[wsl2]
dhcp=true
ipv6=true
networkingMode=bridged
vmSwitch=WSL

but its refuses to work with Cisco AnyConnect VPN by any means 😬

My initial suggestion regarding the diagnostics tool fixing it was apparently a false positive, as the issue returned after rebooting.
I was able to address the networking issue after upgrading to Windows 11. Upon starting WSL again, I received the following (in case that provides some additional context as to how to trigger the fix):
wsl: Failed to create network endpoint with address: '<IP_ADDRESS>', assigned new address: '<IP_ADDRESS>'

@krippix you could try a more forceful approach. Terminate WSL, open an elevated console and run hnsdiag.exe reset all followed by a system reboot.

I tried that out now, unfortunately the problem persists.

run the following code:
sudo vim /etc/resolv.conf

Then add: nameserver <IP_ADDRESS> nameserver <IP_ADDRESS>
Save


enhancement: adds custom datetime picker

Summary
Adds custom date-time picker for the expiration date
Changelog

adds the svelty-picker package to shared package.json

Relevant Issues
closes #3104
Type of Change

[x] New - a change that implements a new feature

Testing
Platforms

Desktop

[ ] MacOS
[x] Linux
[ ] Windows

Mobile

[ ] iOS
[ ] Android

Instructions

Click the Send button in the dashboard
Put the amount in the input
Select a recipient
Click Continue
Click on the expiration time
Click on Custom date

Checklist

[x] I have followed the contribution guidelines for this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have verified that new and existing unit tests pass locally with my changes
[x] I have verified that my latest changes pass CI workflows for testing and linting

Code LGTM!

Nice! I've added a few more lines to expose the expireDate value, needs some re-reviewing

We dont do anything with this value. We somehow need to use it in the trySend-function.
I'm not sure, but do we need to include it in the transferOptions in the sendAmount function in trySend.ts?

Yeah we will use it in the send function, once the correct bindings have been exposed, separate pr though


llm whitelist via api not working

Bug Report
Installation Method
docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama
Environment

Open WebUI Version:  v0.3.11

Ollama (if applicable): v0.3.4

Operating System: Ubuntu 22.04.4 LTS

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.
[x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:
Users with the “user"-authorization can only access the LLMs via the API that have been added to the whitelist.
Actual Behavior:
All users can access all pulled LLMs, even those that are not in the whitelist
Description
Bug Summary:
All users can use all LLMs, even those that are not in the whitelist.
Reproduction Details
Steps to Reproduce:
as Admin:

add User with user role
pull two llms but only whitelist one of them

as User:

create API key
create API request with own API Key. (tested with thunder client in vs code)

Use as model the LLM which is not in the whitelist

check the response

Logs and Screenshots
Screenshots/Screen Recordings (if applicable):
whitelisted llm:

all pulled models:

user api request body:

api response:

available llms via frontend:

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Fixed on dev, testing wanted here!


MSBuild and SendGridMail dependency on System.Net.Http, Version=<IP_ADDRESS>

Hi... I am currently having to use SendGridMail .net 4.0 due to one of our projects being in .net 4.0
We are trying to release this using MSBuild.exe to our website through TeamCity.
When I try to package the project I get the following error.
[ResolveAssemblyReference] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605, 5): warning MSB3268: The primary reference "SendGridMail" could not be resolved because it has an indirect dependency on the framework assembly "System.Net.Http, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "SendGridMail" or retarget your application to a framework version which contains "System.Net.Http, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
My System.Net.Http is version 4.0.0 which is the standard .net 4.0.30319. It appears that the System.Net.Http reference in SendGridMail .net 4.0 is referencing System.Net.Http version 2.0.0.
Is there a way to correct this reference?
Regards
Gwasshoppa

Looks like the problem is with .net 4.0, can you try the solution mentioned here: http://sharpfellows.com/post/Compile-can-not-resolve-SystemNetHttp-in-currently-targeted-framework

Brilliant... that fixed the issue. Thanks for the quick response :)
Gwasshoppa


[Bug] magicType点击不同格式的展示不能有效立即生效

Version
5.4.3
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-stack&version=5.4.3&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQDKYAhgMYDWOAJrADITQ6VEC-AGiJhgwLJBAFUxDACcIAc0U45VOqQgBnPuiFFcK6K2lF0rOvQIBtSgFEAtnQhZKg2JQCq0KHACCrDrulABqEKw4wLABQR4AIhByOAxgbh7UOHRyDAAWsHbQity8ALoCwuiKCiaEsrgAZhQeAMwApG5msAqKOU2UACztFcQARsBgog5UbR2yDDD03Bx0IzhYBGByAK445SJiWGOkprL1mWBbSSeysFp0AG44floAkk4q0vo3sO8QDAAqAE8QPhat8MMDQbYsMU0pQRlk4Vp6MxKGVZPxOpi9MNSH5NFprugwJCqAxLDhFMA5IDZqNgFtjFlAQBxOhSWD1OhYLQ4YbmSx0GyUACyMDh_x2cIA6mwJTktnCAGIKOHUSxqxlovboQH47REiEgqj3blSnW3VQQHCE2DWToyG7QOgOUH2JwuOmyEnGjwwnhe4jIxhMKj_cbcwMCqx2gCMACYAAzuWPNeMpxOxlPNfruACcydg8eahfjscT6OIX2IjtkztdVG8vmigSjRrd_t4_KDKNDHnD9Fc3ejQrt8aTKYAHOnYLG81mizn3PGC-5miW1-XKziHZ10PW3WEIlEYm2fR3YcPbr2wxGh3vYBYY9ZYwBWUtp5eZlOv3Oz1ewOuhb9FuWLdrWxAHlQCRJCkZ6kn6l4PsGzC3oObZPqO1hpoW64ziWC7rn-zQAUBa5JtusDVugEH7i6boZFkuT5IUSHfOeVCdm2KF9pQA6RlemE2NOhZ5p-sAFguYl_gmAGphus44ZR2KwGU_AANxAA
Steps to Reproduce

Current Behavior
magicType: {
        type: ['line', 'bar', 'stack']
    }

点击不同格式的展示不能有效立即生效
Expected Behavior
如点击成切换柱状图，无法有效切换
Environment
- OS:
- Browser:
- Framework:

Any additional comments?
No response

I think this is a documentation issue - stack is not explained, just mentioned.
In fact it is not meant to be a switch, but a toggle button between bars and stacked bars. A typical usage for stack is this official example where it toggles between grouped and stacked bars.
So the solution is - either explain this in the docs, or rewrite the code to make it a switch button. The latter is kind of tricky though, because only grouped bar data is "switchable". Simple bars cannot be stacked, so what would this button do if someone is using it in such context?


Clicking on a notification opens a page with a 404

When I click on a notification (Windows 10, Chrome), it opens up https://alex.github.io, which gives me a 404, rather than the full page at https://alex.github.io/nyt-2020-election-scraper/battleground-state-changes.html

Thanks for the heads up, looking into this.

@HughMacdonald This may be fixed by the PR I just merged. Let me know if not though!

Yup - that worked for me - thanks!

Loaded site within last 15 minutes and enabled then clicked on a notification for the first time, it took me to the root with a 404.

Just got a 404


Dolt version of dataset

Hi Curation,
This is Tim, the CEO of the company that built Dolt and DoltHub. Dolt is git semantics wrapped on top of a SQL database and DoltHub is a place to share those databases. We think this dataset makes a lot of sense on DoltHub.
I took the liberty of importing it (even with the scraped articles):
https://www.dolthub.com/repositories/Liquidata/curation-corpus
We thought Dolt might be an interesting tool for you to check out.
--Tim

I was only able to get content for ~4000 articles using the provided scraper:
timsehn$ dolt sql -q "select count(*) from articles where article_content != 'Exception'"
+----------+
| COUNT(*) |
+----------+
| 3394     |
+----------+

Added a saved query for the above:
https://www.dolthub.com/repositories/Liquidata/curation-corpus/query/master?q=select count(*) as total_count%2C (select count(*) from articles where article_content !%3D 'Exception')%20as%20articles_with_content%20from%20articles


Improvement in the UI of the application.

Currently the UI of app looks like this.

hello, Kindly assign this issue to me! I would like to help improving the UI for this Website

Go ahead @SinghAnsh07

Hey @sharmavikas4 I am a UI/UX expert please assign me this task so that i improve the design

@Prithvi2004 i have already assigned @SinghAnsh07  if he is not able to do then i will assign it to you.

@sharmavikas4 you can assign it to someone else, sorry for the inconvenience, I am currently working on other project

@Prithvi2004 you can go ahead now

Hello, I would like to take up this issue and help improve the UI for the website. Could you please assign the issue to me?

@Prithvi2004 what's the progress so far

@sharmavikas4 Could you please assign me this issue? I would like to contribute to the UI of the application.

@Prithvi2004 what's the progress so far

@Prithvi2004 are you working on it or not?

Hey @sharmavikas4  I would like to work upon this issue as well if possible


Eager: Invalid placement of vars/consts depending on their types and not the tf.device

Hi,
I'm currently testing eager execution on TF 1.5.0-rc1 (built it with XLA and CUDA enabled) and observe strange behavior: variables and constants get created either on GPU or CPU depending on their types, and not with tf.device(...): block. Moreover, on creation of int32 variable it fails completely. For example, when I run the following code
import tensorflow as tf
import tensorflow.contrib.eager as tfe

tfe.enable_eager_execution()

print('TensorFlow version:', tf.__version__)

with tf.device('/gpu:0'):
    A = tf.constant([1.0, 2.0, 3.0], dtype=tf.float32)
    print('Const A is placed on:', A.device)

    B = tf.constant([1, 2, 3], dtype=tf.int32)
    print('Const B is placed on:', B.device)

    C = tfe.Variable([1.0, 2.0, 3.0], dtype=tf.float32)
    print('Variable C is placed on:', C.device)

    D = tfe.Variable([1, 2, 3], dtype=tf.int32)
    print('Variable D is placed on:', D.device)

I get the following output:
TensorFlow version: 1.5.0-rc1
2018-01-14 01:16:06.385929: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:895] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-01-14 01:16:06.386198: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1105] Found device 0 with properties:
name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.582
pciBusID: 0000:01:00.0
totalMemory: 10.91GiB freeMemory: 363.06MiB
2018-01-14 01:16:06.386223: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1195] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:01:00.0, compute capability: 6.1)
Const A is placed on: /job:localhost/replica:0/task:0/device:GPU:0
Const B is placed on: CPU:0
Variable C is placed on: /job:localhost/replica:0/task:0/device:GPU:0
Traceback (most recent call last):
  File "tf_bug.py", line 18, in <module>
    D = tfe.Variable([1, 2, 3], dtype=tf.int32)
  File "/home/kpot/pyves/lib/python3.6/site-packages/tensorflow/python/ops/resource_variable_ops.py", line 277, in __init__
    constraint=constraint)
  File "/home/kpot/pyves/lib/python3.6/site-packages/tensorflow/python/ops/resource_variable_ops.py", line 422, in _init_from_args
    graph_mode=self._in_graph_mode)
  File "/home/kpot/pyves/lib/python3.6/site-packages/tensorflow/python/ops/resource_variable_ops.py", line 53, in _eager_safe_variable_handle
    container=container)
  File "/home/kpot/pyves/lib/python3.6/site-packages/tensorflow/python/ops/gen_resource_variable_ops.py", line 396, in var_handle_op
    attrs=_attrs, ctx=_ctx, name=name)
  File "/home/kpot/pyves/lib/python3.6/site-packages/tensorflow/python/eager/execute.py", line 66, in quick_execute
    six.raise_from(core._status_to_exception(e.code, message), None)
  File "<string>", line 3, in raise_from
tensorflow.python.framework.errors_impl.NotFoundError: No registered 'VarHandleOp' OpKernel for GPU devices compatible with node VarHandleOp = VarHandleOp[container="eager-execution-2/", dtype=DT_INT32, shape=[3], shared_name="11"]()
	 (OpKernel was found, but attributes didn't match)
	.  Registered:  device='GPU'; dtype in [DT_VARIANT]
  device='GPU'; dtype in [DT_COMPLEX128]
  device='GPU'; dtype in [DT_COMPLEX64]
  device='GPU'; dtype in [DT_BOOL]
  device='GPU'; dtype in [DT_DOUBLE]
  device='GPU'; dtype in [DT_FLOAT]
  device='GPU'; dtype in [DT_HALF]
  device='CPU'
  device='XLA_GPU'
  device='XLA_CPU'
 [Op:VarHandleOp] name: Variable/

As you can see, the constants and variables get placed either on GPU:0 or CPU:0 despite all of them gathered inside the same tf.device('/gpu:0') block.

Silent copying does not work for me when using tfe.enable_eager_execution(device_policy=tfe.DEVICE_PLACEMENT_SILENT) for me. I'm running tensorflow 1.12.0 in Arch Linux.
Also, using with tf.device('/gpu:0') explicitly works for some examples, but not all. For eg. when using tf.layers.conv2d in eager with silent device placement and enforcing with tf.device('/gpu:0') fails with:
NotFoundError: No registered 'VarHandleOp' OpKernel for GPU devices compatible with node {{node VarHandleOp}} = VarHandleOp[container="", dtype=DT_INT32, shape=[3,3,4,64], shared_name="b11/conv2d/kernel_42"]()
	 (OpKernel was found, but attributes didn't match)
	.  Registered:  device='GPU'; dtype in [DT_VARIANT]
  device='GPU'; dtype in [DT_INT64]
  device='GPU'; dtype in [DT_COMPLEX128]
  device='GPU'; dtype in [DT_COMPLEX64]
  device='GPU'; dtype in [DT_BOOL]
  device='GPU'; dtype in [DT_DOUBLE]
  device='GPU'; dtype in [DT_FLOAT]
  device='GPU'; dtype in [DT_HALF]
  device='CPU'
  device='XLA_CPU'
  device='XLA_GPU'
 [Op:VarHandleOp] name: b11/conv2d/kernel/

@rharish101 can you open a new issue with instructions to reproduce?
I don't know why your conv kernel is trying to create a variable with a variant dtype; that is not supported.

I sort of found out the issue. It was occurring when I was passing an int to the conv2d layer. Looking at the docs, I should have been passing a float. When I explicitly converted the input using tf.to_float before passing to the conv2d layer, it worked.
However, instead of warning me about int being an unsupported dtype, it gave me this exception. Is this a bug?


Pipeline tests execution time revised

Pipeline tests time limitation reduced 100 times.
However, there are still tests that require web queries that take up to 15 seconds to run.

If anyone has (and requires) any other speedup ideas, they are welcomed.
Except for ideas including removing web queries , cause: they are boring.


Add sample decorator

Feature #31 sample decorator

Not sure about the test cases. I will be happy to make any changes.

This looks great, thank you so much :)


Add some more spacing for icons

Without using Customize UI to add some more padding, I felt like the icons were a bit cramped currently:

With this PR:

I also tried using \t instead, but that seems to result in rather small spacing, surprisingly.

It looks good. Would you mind updating the CHANGELOG as well?
btw, another option is to use a full character space character in CJK set 　 See ideographic space in https://en.wikipedia.org/wiki/Whitespace_character. But three spaces is probably better since it for sure be available in all platforms.

Updated!

Release v0.9.2. Thanks 😄


Username length limitation

          @tamas6 move this issue to fdp-storage then please.

Originally posted by @crtahlin in https://github.com/fairDataSociety/fdp-create-account/issues/243#issuecomment-1576598861

I was unable to create ‘accountSep’
Due to “Invalid username” error
@.staging.
🤷🏻♂

The error comes from fdp-contract https://github.com/fairDataSociety/fdp-contracts/blob/ab1708a548ac42671a6a6f19175144e7d0cd2725/js-library/src/utils/domains.ts#L16


resources/app/static/{Folder} is missing after bundle

It seems that resources/app/static/{My Folder} is missing after bundle at the latest version.
Is there any solution to the issue? 😄
Thanks

@ShawnLin013 this is weird, you should get your folder. Which OS are you using ? Can you paste the logs you get when executing the bundler and your app both with the -v flags ?

@asticode
I found the resources folder is changed to AppData/Roaming/{My App}/resources. How to get the path of the resources folder?
Thank you for your prompt reply!


How to substitute adjustTilePoint (_adjustTilePoint is not a function)

Hi,
I'm using an old lib to load a .mbtiles as a leaflet layer of my map. This lib is working fine with leaflet 0.7. The problem is when I use it with leaflet 1.0, I'm not able to retrieve the tileUrl because _adjustTilePoint was removed in leaflet v1.0
Working example of the lib with leaflet 0.7 and  _adjustTilePoint : http://jsfiddle.net/kochizufan/rj4Eh/
Any idea on how to substitute _adjustTilePoint and use leaflet 1.0 ?
Thank you

Hi there,
this is more a question on how to use Leaflet, rather than an issue or feature suggestion. You might be better of asking on stackoverflow or https://gis.stackexchange.com.
Having said that, TileLayer has been heavily refactored, so there's no exact corresponding method in 1.0. You might want to look at GridLayer's _update, _addTile and _wrapCoords, which have parts of the same logic, from a quick look at things.

I'm going to just leave this here: https://gitlab.com/IvanSanchez/Leaflet.TileLayer.MBTiles

Thank you @perliedman and @IvanSanchez , it really helps.


Forbidden overwrite in public links with drop zone

Closes https://github.com/cs3org/reva/issues/2480

@phil-davis can you take a look at the failing tests?


x/tools/gopls: handle go1.22's go/types.Alias

This issue tracks the adoption in gopls of go1.22's new types.Alias type. We will need to audit every place that type-switches or type-asserts a types.Type to ensure that it works correctly with the new type. Initially the type checker will not produce instances of these types unless GODEBUG=gotypesalias=1 is set.
Things to resolve:

https://github.com/golang/go/issues/64584 (done)
waiting for cmd/compile support for writing aliases (done)
gcimporter support for reading and writing aliases (done)
sprinkling Unalias in a great many places (done)
supporting parameterized aliases (for now my goal is just to support with the new representation of simple aliases).
adding tests to each x/tools package with aliases, both ordinary and parameterized.
working with @dominikh to upgrade staticcheck in a similar way. (https://github.com/dominikh/go-tools/issues/1523)
working with the vulncheck folks to do the same (done)

Related:

https://github.com/golang/go/issues/65294

@gri @findleyr

I tested gopls using tip GOROOT after hardwiring types.Checker.enablealias to true. (We can't use GODEBUG=gotypesalias=1  to control it yet because this environment variable would be inherited by 'go list' and the Go compiler, which doesn't yet have support for writing out Alias types, so it crashes.)
I added rudimentary support to the gcimporter package used by gopls for reading and writing aliases, and sprinkled lots of Unalias operations throughout the tree, and was able to get all but three tests (of vulncheck and staticheck) to pass. So I think it's in good shape for the 1.22 release, though we have a lot of work to do after the release.

Is this now completed?

Yeah, I think so.
Never has the Close button felt so good to press.


Extract value from map when the key is nested field alike

Description
Fixes bug where PPL cannot extract value when field is a map structure with key value pairs, but the key is like a nested JSON path.
It looks like dots in Spark are used for accessing nested fields in complex data types such as structs.
But it doesn't work when the keys are nested field alike. The person reporting the bug wrote that: SQL is able to do it by select unmapped['userIdentity.sessioncontext.sessionIssuer.type'].
The original Spark parser translates such expression to:
Project [
  UnresolvedAlias [
    UnresolvedExtractValue
      child: [ UnresolvedAttribute[ "unmapped" ] ]
      extraction[ Literal[ "userIdentity.sessioncontext.sessionIssuer.type" ]]
  ]
  ...
]

I also used this approach in my solution.
Issues Resolved
https://github.com/opensearch-project/opensearch-spark/issues/565
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Also run the sbt scalafmtAll to fix errors:
[error] scalafmt: 1 files must be formatted (/home/runner/work/opensearch-spark/opensearch-spark/integ-test)

Could you elaborate why we need to treat this Struct as a Map? I thought this is no difference than accessing a Struct column?
CREATE TABLE nested_test (
age INT,
user_data STRUCT<user.first.name:STRING>
)
USING JSON;
INSERT INTO nested_test
VALUES
( 30, STRUCT("Alice") ),
( 40, STRUCT("Bob") );
SELECT age
FROM nested_test
WHERE user_data.user.first.name = 'Bob';
40

I think it doesn't matter whether this column is of Struct or Map type.
With tables defined as
CREATE TABLE nested_test (
  age INT,
  user_data STRUCT<`user.first.name`:STRING>
)
USING JSON;

INSERT INTO nested_test
VALUES
( 30, STRUCT("Alice") ),
( 40, STRUCT("Bob") );

and
CREATE TABLE nested_test2 (
  age INT,
  user_data MAP<STRING, STRING>
)
USING JSON;

INSERT INTO nested_test2
VALUES
( 30, MAP("user.first.name", "Alice") ),
( 40, MAP("user.first.name", "Bob") );

commands like:
select age from nested_test where user_data.`user.first.name` = 'Bob';
select age from nested_test where user_data['user.first.name'] = 'Bob';

select age from nested_test2 where user_data.`user.first.name` = 'Bob';
select age from nested_test2 where user_data['user.first.name'] = 'Bob';

return the same results.
Looks like ppl aready supports commands where nested field containing dots is enclosed in ` `
Do you think this is enough and this PR can be closed?

Could you elaborate why we need to treat this Struct as a Map? I thought this is no difference than accessing a Struct column?
CREATE TABLE nested_test (
age INT,
user_data STRUCT<user.first.name:STRING>
)
USING JSON;
INSERT INTO nested_test
VALUES
( 30, STRUCT("Alice") ),
( 40, STRUCT("Bob") );
SELECT age
FROM nested_test
WHERE user_data.user.first.name = 'Bob';
40

I think it doesn't matter whether this column is of Struct or Map type.
With tables defined as
CREATE TABLE nested_test (
  age INT,
  user_data STRUCT<`user.first.name`:STRING>
)
USING JSON;

INSERT INTO nested_test
VALUES
( 30, STRUCT("Alice") ),
( 40, STRUCT("Bob") );

and
CREATE TABLE nested_test2 (
  age INT,
  user_data MAP<STRING, STRING>
)
USING JSON;

INSERT INTO nested_test2
VALUES
( 30, MAP("user.first.name", "Alice") ),
( 40, MAP("user.first.name", "Bob") );

commands like:
select age from nested_test where user_data.`user.first.name` = 'Bob';
select age from nested_test where user_data['user.first.name'] = 'Bob';

select age from nested_test2 where user_data.`user.first.name` = 'Bob';
select age from nested_test2 where user_data['user.first.name'] = 'Bob';

return the same results.
Looks like ppl aready supports commands where nested field containing dots is enclosed in   Do you think this is enough and this PR can be closed?

Yes, that's my question. I don't quite understand why we add special syntax here. I thought existing syntax for delimiting identifier is sufficient in SQL and PPL. Let me know if I miss anything. Thanks!

Yes, that's my question. I don't quite understand why we add special syntax here. I thought existing syntax for delimiting identifier is sufficient in SQL and PPL. Let me know if I miss anything. Thanks!

You're right. I just wanted to introduce syntax similar to the one the person reporting this issue used in the SQL query.
But maybe this complicates things unnecessarily, and it's enough to support the existing syntax. If so this PR can be closed.


yield with function doesn't work

Godot version:
3.2 beta 3
OS/device including version:
Linux Manjaro
Issue description:
In the documentation for the yield you can see that:
You can also use yield to wait for a function to finish:

func _ready():
    yield(do_something(), "completed")
    yield(do_something_else(), "completed")
    print("All functions are done!")

func do_something():
    print("Something is done!")

func do_something_else():
    print("Something else is done!")

but if you try to yield a function you will get that error:
First argument of yield() not of type object.

Steps to reproduce:
yield(print("ok"), "completed")

@grevius5 See the documentation.
GDScriptFunctionState yield( Object object=null, String signal="" )

print("ok") returns null. This is not an object.
To wait for a function to complete, you should use something like the following:
extends Node

func f():
    print('f 1')
    yield(get_tree().create_timer(3), 'timeout')
    print('f 2')

func _ready():
    print('_ready 1')
    yield(f(), 'completed')
    print('_ready 2')

See also #31494.

@dalexeev so is wrong the example in the documentation because it calls simple functions with only a print

@grevius5 I tried to find the phrase on the Internet, but did not find an exact match. Could you provide a link?

Official documentation:

I have this in my 3.2 beta 3 godot internal documentation

Indeed, this example (apparently incorrect) was added recently. #33872
@zaksnet @akien-mga

Hello guys,
It seems that in order to yield the function you are yielding also needs to inherit from GDScriptFunctionState. So the documentation should be changed to :
_Ready():
    yield(do_something(), "completed")
    yield(do_something_else(), "completed")
    print("All functions are done!")

func do_something():
    yield(get_tree(), "idle_frame")
    print("Something is done!")

func do_something_else():
    yield(get_tree(), "idle_frame")
    print("Something else is done!")

_Ready():

func _ready():

:smile:

_Ready():

func _ready():

😄

Been losing my mind lately going c# to GDScript >.<

func _Ready():

func _ready():

GDScript is a case-sensitive programming language!
Do not rush like that. :smile: :smile: :smile:

await should solve most of these incorrect usages in the future hopefully: #32034, #33224 (meaning if you do pass null to await, it should handle that without errors).
I've also written some docs on this in godotengine/godot-docs#2644.

Fixed in #34280.


Minor Change Request

@FrigidSec/webdevteam dev team Please change "OFFICIAL CTF TEAM OF VELLORE INSTITUTE OF TECHNOLOGY, BHOPAL" to "OFFICIAL CTF COMMUNITY OF VELLORE INSTITUTE OF TECHNOLOGY, BHOPAL"  in the front page of the website.

Fixed


are the tiles in *.mbtiles files pbf format?

I opened a mbtiles file with a SQLite Browser and I found a talbe like below.
I wonder does the BLOB field tile_data store pbf format file? and if so , how can I deserialize it with python or js.   thank you

I opened a mbtiles file with a SQLite Browser and I found a talbe like below.
I wonder does the BLOB field tile_data store pbf format file? and if so , how can I deserialize it with python or js. thank you

The BLOB is a gzipped PBF file!
To work with it you first need to unzip it and then parse with a MVT parsing library.
Check https://github.com/osm2vectortiles/osm2vectortiles/blob/master/tools/compare/tileInfo.jsfor an example.

I have got some information like picture below, but I still want to know the detail information in the [object] list. and How can I resolve them. thank you :)

I have got some information like picture below, but I still want to know the detail information in the [object] list. and How can I resolve them. thank you :)

As lukas suggested to read the detail information you need to parse this with a MVT parsing library:
MVT Library for Python
MVT Library for JavaScript
Example of MVT JavaScript library which outputs all layers in a vector tile:
zlib.unzip(tile, function(err, tile) {
	    if (!err) {
      		var rawTile = new VectorTile(new Protobuf(tile))
      		var tileLayers = rawTile.layers;
      		console.log(tileLayers);
      	}
});

In the example above you can see that the tile gets unzipped, read with the Protobuf library, and then with the MVT Javascript Library. Mapbox Vector Tiles are stored in a highly optimized way. So the representation in your picture above is not suitable to work with. It is necessary to use the MVT Library in order to correctly read an Mapbox Vector Tile.


Bancatransilvania - Scraper does not recognize Targu Mures as a city in Romania

ENVIROMENT: production
URL: https://scrapers.peviitor.ro/src/bancatransilvania/index.html
Browser: Chrome
Device: laptop
OS: Windows 10
STEPS TO REPRODUCE:

Open URL in browser
Click on 'Run Scraper' button
Check location for 'Responsabil Relatii Clienti (Call Center)' job

EXPECTED RESULTS:
Targu Mures is recognized as a city in Romania for 'Responsabil Relatii Clienti (Call Center)' job
ACTUAL RESULTS:
The Scraper does not recognize Targu Mures as a city in Romania and displays 'Targu Mures is not a city in Romania'

After retesting Targu Mures is recognized as a city in Romania, but now the bug reproduces for Piatra Neamt

After Re-Test the scraper recognize the city correctly


support for php 8?

Is this project still maintained? will there be php 8 support?

Is this project still maintained? will there be php 8 support?

Tested yesterday - PHP 8.2 - working

Get an error during make test with PHP 8.2 on Ubuntu 22.04 LTS
=====================================================================
PHP         : /usr/bin/php8.2
PHP_SAPI    : cli
PHP_VERSION : 8.2.3
ZEND_VERSION: 4.2.3
PHP_OS      : Linux - Linux 51fcec2faa8c 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64
INI actual  : /realpath_turbo/tmp-php.ini
More .INIs  :
CWD         : /realpath_turbo
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2023-03-05 02:39:29
=====================================================================
PASS realpath_turbo: Basic tests [tests/001.phpt]
PASS realpath_turbo: Option realpath_turbo.disable_dangerous_functions (disabled; with disable_functions set) [tests/010.phpt]
PASS realpath_turbo: Option realpath_turbo.disable_dangerous_functions (disabled; without disable_functions set) [tests/011.phpt]
PASS realpath_turbo: Option realpath_turbo.disable_dangerous_functions (enabled; with disable_functions set) [tests/012.phpt]
PASS realpath_turbo: Option realpath_turbo.disable_dangerous_functions (enabled; without disable_functions set) [tests/013.phpt]
PASS realpath_turbo: Option realpath_turbo.open_basedir (set; without open_basedir set) [tests/020.phpt]
FAIL realpath_turbo: Option realpath_turbo.open_basedir (set; with open_basedir already set) [tests/021.phpt]
PASS realpath_turbo: Option realpath_turbo.open_basedir (unset; with open_basedir set) [tests/022.phpt]
PASS realpath_turbo: Basic functionality (disabled) [tests/100.phpt]
PASS realpath_turbo: Basic functionality (enabled) [tests/101.phpt]
=====================================================================
TIME END 2023-03-05 02:39:29

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   17
---------------------------------------------------------------------

Number of tests :   10                10
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    1 ( 10.0%) ( 10.0%)
Tests passed    :    9 ( 90.0%) ( 90.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
realpath_turbo: Option realpath_turbo.open_basedir (set; with open_basedir already set) [tests/021.phpt]
=====================================================================
make: *** [Makefile:135: test] Error 1


Some errors in apache proxy

I want to use camaleon cms as apache web server proxy tunneling.
But some errors occurs. I cannot know how to do with it.
Direct accessing through port 3000 did not have errors.

actionpack (5.2.1) lib/abstract_controller/helpers.rb:162:in `rescue in block in modules_for_helpers'
actionpack (5.2.1) lib/abstract_controller/helpers.rb:155:in `block in modules_for_helpers'
actionpack (5.2.1) lib/abstract_controller/helpers.rb:144:in `map!'
actionpack (5.2.1) lib/abstract_controller/helpers.rb:144:in `modules_for_helpers'
actionpack (5.2.1) lib/action_controller/metal/helpers.rb:94:in `modules_for_helpers'
actionpack (5.2.1) lib/abstract_controller/helpers.rb:108:in `helper'
actionpack (5.2.1) lib/action_controller/railties/helpers.rb:19:in `inherited'
app/controllers/application_controller.rb:1:in `<main>'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
activesupport (5.2.1) lib/active_support/dependencies.rb:472:in `block in load_file'
activesupport (5.2.1) lib/active_support/dependencies.rb:657:in `new_constants_in'
activesupport (5.2.1) lib/active_support/dependencies.rb:471:in `load_file'
activesupport (5.2.1) lib/active_support/dependencies.rb:369:in `block in require_or_load'
activesupport (5.2.1) lib/active_support/dependencies.rb:37:in `block in load_interlock'
activesupport (5.2.1) lib/active_support/dependencies/interlock.rb:14:in `block in loading'
activesupport (5.2.1) lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
activesupport (5.2.1) lib/active_support/dependencies/interlock.rb:13:in `loading'
activesupport (5.2.1) lib/active_support/dependencies.rb:37:in `load_interlock'
activesupport (5.2.1) lib/active_support/dependencies.rb:352:in `require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:46:in `block in require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:45:in `require_or_load'
activesupport (5.2.1) lib/active_support/dependencies.rb:506:in `load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `block in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:57:in `load_missing_constant'
activesupport (5.2.1) lib/active_support/dependencies.rb:193:in `const_missing'
camaleon_cms (<IP_ADDRESS>) app/controllers/camaleon_cms/camaleon_controller.rb:1:in `<main>'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
activesupport (5.2.1) lib/active_support/dependencies.rb:472:in `block in load_file'
activesupport (5.2.1) lib/active_support/dependencies.rb:657:in `new_constants_in'
activesupport (5.2.1) lib/active_support/dependencies.rb:471:in `load_file'
activesupport (5.2.1) lib/active_support/dependencies.rb:369:in `block in require_or_load'
activesupport (5.2.1) lib/active_support/dependencies.rb:37:in `block in load_interlock'
activesupport (5.2.1) lib/active_support/dependencies/interlock.rb:14:in `block in loading'
activesupport (5.2.1) lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
activesupport (5.2.1) lib/active_support/dependencies/interlock.rb:13:in `loading'
activesupport (5.2.1) lib/active_support/dependencies.rb:37:in `load_interlock'
activesupport (5.2.1) lib/active_support/dependencies.rb:352:in `require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:46:in `block in require_or_load'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:45:in `require_or_load'
activesupport (5.2.1) lib/active_support/dependencies.rb:506:in `load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:58:in `block in load_missing_constant'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/active_support.rb:57:in `load_missing_constant'
activesupport (5.2.1) lib/active_support/dependencies.rb:193:in `const_missing'
camaleon_cms (<IP_ADDRESS>) app/controllers/camaleon_cms/frontend_controller.rb:1:in `<main>'
bootsnap (1.3.2) lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
...

The apache httpd.conf settings are like here:
<VirtualHost OO.OO.OO.OO>
        ServerName OOOOO

        <IfModule mod_proxy.c>
        ProxyRequests On

        <Proxy *>
        Order deny,allow
        Allow from all
        #Require all granted
        </Proxy>

        <Location />
        ProxyPass http://<IP_ADDRESS>:8000/ retry=0
        ProxyPassReverse http://<IP_ADDRESS>:8000/
        </Location>

        </IfModule>
</VirtualHost>

Hi @damulhan
Looks like something is not configured well.
helpers/camaleon_cms/admin/application_helper.rb with module "CamaleonCms::Admin::ApplicationHelper" too.
Cheers!


Widget (search/replace) - input height is too big for font size 10/11

Widget (search/replace) - input height is too big for font size 10/11

Related to #11.


Remove unnecessary helper functions from fst module.

Functions and objects that ara available from the piblic API, directly in
the neurom module, have been removed:

load_neuron
load_neurons
NEURITE_TYPES

Deprecated function fst.load_population has been removed.

Could you possibly not change this until after the summit? :) Some users are already accustomed to the use of this module and it would be useful to leave it as it is for the demonstration of the current functionality...

It is not necessary to demonstrate the current functionality. That has been available directly under neurom for a long time now, and announced.

Don't worry, we didn't use fst, not even once :P Thanks for waiting!


Error after deploying

I got this error after deploying

Fatal error: Uncaught Error: Class 'PSX\Framework\Environment\WebServer\Engine' not found in D:\xampp\htdocs\fusio-sample-cms\public\index.php:26 Stack trace: #0 {main} thrown in D:\xampp\htdocs\fusio-sample-cms\public\index.php on line 26

what is going wrong?

Hi, it sounds like you have not executed composer install to install all dependencies through the composer packagemanager.

I did that already. Is it possible that it has something related with the fusio framework version?

Yes this could be also a reason, please try to remove the composer.lock file and then run composer install again, through this you will obtain the latest versions of the dependencies.

FYI I have also just updated the composer.lock file so that we use the correct dependencies.

Its still doesn't work for me :(   but I try to move it to the latest fusio framework installed and working fine.

I will close this issue since it looks like the issue is solved, otherwise please open another issue.


feat(ROMS): enable all ROMS types and filters on FE

Ticket: https://trello.com/c/H9FxenFD/1161-add-shared-output-filter-options

Was any of these changes not forced by the TypeScript compiler? Or did it point you to all these locations? Just checking because if the former, we'll improve the types.

@jeysal I think all of this was TS forced.


Docs

Codecov Report

Merging #21 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #21   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           4      4
  Lines          59     59
  Branches       13     13
=====================================
  Hits           59     59

Continue to review full report at Codecov.

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

:tada: This PR is included in version 1.1.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


feat: Migrated Enum style error codes to constants style

Description
We are using Enums for the status code it is syntactically not good as we need to call status.HTTPSTATUS.value which does not look right sometimes or gets wrong sometimes by the user, instead now we are just using status.HTTPSTATUS which is a common practice.
This PR fixes #435

Hey @Mr-Sunglasses 👋
Great work. Thank you for the PR :D
We have a reference of the StatusCodes enum in the docs folder as well. Can you make an edit there too?

@sansyrox Sure

Hey @sansyrox 👋 I have done the necessary changes 😄 .


Is there some function to get call stack via programming?

I want to get the "call chain" via programming.

You can use the new Error().stack.
Next time, please ask this kind of questions on stack overflow.


WebUI is not working from remote host

Discussed in https://github.com/cybertec-postgresql/pgwatch/discussions/523

Originally posted by ondar August 26, 2024
When I log in from another computer on the network, I get Undefined error after pressing login:

Seems UI is requesting response from localhost and not the remote server I run it from.
Backend and Grafana seems to be working just fine. What am I doing wrong?

You can delete the 1st part about blank screen. That was already solved by you. Problem here is only 2nd part. Maybe next time I report errors I should do that separately 😁 Sorry for the confusion.

Would you please provide steps to reproduce the error? Thanks

Steps to reproduce:

run pgwatch by included docker compose file on 1 computer in network
connect to pgwatch UI from different computer on the network

Ough, now I need to buy one more computer.... ;-)

I tried that again with freshly built docker image about an hour ago.

I did that using 2 virtual computers on 1 physical. Maybe you can try it from phone connected to the same wifi?

I guess there is some setting in UI that represent endpoint of backend pgwatch that is currently set to http://localhost:8080. This setting needs to be dynamicaly derived from host you call UI from or maybe set manually when deployed by env variable to host's external IP and port? Calling backend from frontend is tricky 😁

ok, thanks. There was an easier way to reproduce the issue: http://<IP_ADDRESS>:8080/

But I guess it still works if it finds backend at localhost:8080, if you run it from different device where there is nothing on port 8080 it will throw timeout but this timeout just show error message "Undefined" (as there is nothing in response body I guess?


Plugin request for sudorandom/protoc-gen-connect-openapi

This plugin has been mentioned several times in the Slack channel. I created this issue to assess its potential as a plugin and to gauge community feedback.
It might not be possible because from a cursory glance it required an auxiliary yaml file.
Mandatory
Where is the source code for the plugin?
https://github.com/sudorandom/protoc-gen-connect-openapi
Optional
Does the plugin have a valid semver version?
Yes, https://github.com/sudorandom/protoc-gen-connect-openapi/releases/tag/v0.7.2
Does the output of this plugin depend on any other external libraries?
Not sure

Hi, I authored this plugin! Adding a few more details:

Does the output of this plugin depend on any other external libraries?
From a Go point of view, this plugin uses this library to generate OpenAPI JSON/YAML: github.com/pb33f/libopenapi. All Go libraries can be found in go.mod.

This plugin uses options from gnostic, protovalidate, and google/api/annotations.HttpRule from gRPC/HTTP transcoding so all of those options can influence output.

It might not be possible because from a cursory glance it required an auxiliary yaml file.
It does not require this YAML file. Some examples show using a base YAML file in order to more easily define some things in the output without requiring adding options to your protobuf file(s).

Hi @mfridman, could we revisit this? OAS3 is still a painpoint.

Thanks for flagging it, and thank you for the additional details. I can't promise anything, but I'll bring it up with the team.

Hi, any news on this? I would appreciate if it was added to the registry.

+1 - would also love if this was added to BSR


problem with the auto.js execution

Hey there, I'm trying to use auto.js, essentially as is, to test getting a cert but I keep running into an exception.
Would write "pCWJ_5UHalASCBfjQk5HlQhuqbRsK61UTn8McdY3dIo.hOYObyEDbWAyjJ5yIJ0h2Kf2GjEb-SegaCGzhrtyHA4" to path "/Users/max/src/github.com/acme-www/.well-known/acme-challenge/pCWJ_5UHalASCBfjQk5HlQhuqbRsK61UTn8McdY3dIo"
(node:39313) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
    at maybeCallback (fs.js:142:9)
    at Object.writeFile (fs.js:1175:14)
    at Object.challengeCreateFn (/Users/max/src/github.com/smallstep/node-acme-test/test.js:35:25)
    at _callee3$ (/Users/max/src/github.com/smallstep/node-acme-test/node_modules/acme-client/lib/auto.js:211:61)
From previous event:
    at _callee4$ (/Users/max/src/github.com/smallstep/node-acme-test/node_modules/acme-client/lib/auto.js:267:40)
    at tryCatch (/Users/max/src/github.com/smallstep/node-acme-test/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (/Users/max/src/github.com/smallstep/node-acme-test/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.<computed> [as next] (/Users/max/src/github.com/smallstep/node-acme-test/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (/Users/max/src/github.com/smallstep/node-acme-test/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /Users/max/src/github.com/smallstep/node-acme-test/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13
(node:39313) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:39313) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```

from the line that is writing the http challenge file. It's been a minute since I've used node.js, so I'm sure it's an issue on my end. All I did was uncomment the line of code that was doing the `await fs.writeFile(filePath, fileContents);`. I also tried `return ...` at the head of that line and still the same error.

Appreciate the time/help!

Hey,
Yeah the pseudocode in the example didn't work correctly, since the fs-library expects a callback but the example is await-ing it like a promise. I've updated the example so that it should work out of the box in https://github.com/publishlab/node-acme-client/commit/f60726587348a2e5e8be55dc1d325eebd4e69d3c.
Basically you have to promisify the fs-methods you want to use, either by using:

Node's built-in https://nodejs.org/api/util.html#util_util_promisify_original

const { promisify } = require('util');
const fs = require('fs');

const writeFileAsync = promisify(fs.writeFile);
const unlinkAsync = promisify(fs.unlink);

async function() {
    await writeFileAsync(...);
    await unlinkAsync(...);
}

Or by using Bluebird's promisifyAll() (used in example), which promisifies all methods under ${methodName}Async

const Promise = require('bluebird');
const fs = Promise.promisifyAll(require('bluebird'));

async function() {
    await fs.writeFileAsync(...);
    await fs.unlinkAsync(...);
}

Hope this helps!

Hey @nmorsman thanks for the explanation! That helped.


Use nodemailer's callback style

This should get @devinus review too, but :+1:

This loses messageId?

Yes. Mandrill uses per message id. Setting a higher level one would just be ignoring/overriding the rest of them.

We could, return an array of messageId's as an alternative.

This is tricky. It should be a string since that is expected always that I can tell.
It looks like a random one is generated by default though if missing.

messageId - optional Message-Id value, random value will be generated if not set

How about we just let the random value be generated?
[1] https://github.com/andris9/Nodemailer#e-mail-message-fields

@motdotla random is for sending for what I can observe.

This is the default messageId implementation used when one isn't found in the headers:
https://github.com/andris9/buildmail/blob/3d4a38ec1d8ac1d5a9f58d9bbbc446756259ed70/src/buildmail.js#L427

Good find @devinus. I think that is probably the best solution then - just let it autogenerate. Agree, disagree, guys?

So basically this will be passed down in the mail object?

Yep

Added. @motdotla @devinus

I'm not sure if it's part of mail.data. In fact, I think it might be part of mail.message

Actually, I'm not sure if it's sent to at all by default. I think it's only generated for SMTP transport. Could easily test by inspecting data when sending with Nodemailer.

Here's the object that comes back:
{ data:
   { from<EMAIL_ADDRESS>     to<EMAIL_ADDRESS>     subject: 'Hello',
     html: '
How are you?
',
     headers: {} },
  message:
   { nodeCounter: 1,
     baseBoundary: '14322463038340.754273205762729',
     date: Thu May 21 2015 15:11:43 GMT-0700 (PDT),
     rootNode: [Circular],
     keepBcc: false,
     parentNode: undefined,
     childNodes: [],
     _nodeId: 1,
     _headers:
      [ { key: 'Content-Type', value: 'text/html' },
        { key: 'From', value<EMAIL_ADDRESS>},
        { key: 'To', value<EMAIL_ADDRESS>},
        { key: 'Subject', value: 'Hello' },
        { key: 'X-Mailer',
          value: 'nodemailer (1.3.4; +http://www.nodemailer.com; Mandrill/0.1.1)' } ],
     _isPlainText: true,
     _canUseFlowedContent: false,
     _isFlowedContent: false,
     _envelope: false,
     _transforms: [],
     content: '
How are you?
' },
  resolveContent: [Function] }

So, messageId is NOT generated by default - that documentation was referencing it's own internal transports like SMTP transport.
Given that I would be for just using the first _id of the result response. That object looks like this on a multiple to send.
{ accepted:
   [ { email<EMAIL_ADDRESS>       status: 'sent',
       _id: '9e7dffd4fe704e66a2c45d48c02b8a7b',
       reject_reason: null },
     { email<EMAIL_ADDRESS>       status: 'sent',
       _id: '4bc281398c7e499daba122b43ff7d278',
       reject_reason: null } ],
  rejected: [],
  messageId: undefined }

:+1:


[BUG] Fullscreen immediately exits in example

Describe the bug
Fullscreen immediately exits in example
To Reproduce
Clone the code, run the example, play the video, click fullscreen button
Expected behavior
Fullscreen should not immediately exit
Screenshots
Screen recording: https://user-images.githubusercontent.com/1558019/165871698-06a0be65-ec1d-4375-bb98-04d26b468387.mp4
Technical Details:

Device: Pixel 3
OS: Android 11

me too same issue. Please let us know, Any solution for it.
Thanks

add this line under YoutubePlayerBuilder
     onEnterFullScreen: () {
        SystemChrome.setPreferredOrientations([
          DeviceOrientation.landscapeLeft,
          DeviceOrientation.landscapeRight,
        ]);
      },


feat(role): create role bindings using imported service accounts (#1522)

Backport
This will backport the following commits from k8s-25/main to k8s-23/main:

feat(role): create role bindings using imported service accounts (#1522)

Questions ?
Please refer to the Backport tool documentation

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1523

Questions ?
Please refer to the Backport tool documentation


Integrate chat system in application

This adds the chat plugin developed by Liteflow to the template so user can chat with each other

[x] Integration of the chat window in app
[x] Add state to preserve user's preferences
[x] Resolve name based on app's data

Small comments:
Before typing an address, cursor is very small, when entering at least 1 character the cursor is fine:

When creating a new chat and typing the address, the error message appears under the viewport. Maybe a solution is to pop the chat open when clicking on new.

Other design comment, The black border is a bid strong, maybe a gray border with drop shadow would look better, just opinion :).
Let me know if I need to create issues for these.

 Messaging system - Marketplace Template implementation


Prototype: WIP: Anvil Widget Selection

Description

[!TIP]
Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content team).
Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR.

Fixes #32363
or
Fixes Issue URL

[!WARNING]
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation
/ok-to-test tags=""
:mag: Cypress test results

[!CAUTION]
If you modify the content in this section, you are likely to disrupt the CI result for your PR.

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

/build-deploy-preview skip-tests=true

Closing as the code has been merged into release after cleanup.


Sanitizing HTML stripped some content

I have a warning (5+ at the time):
WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)

Can you show how to reproduce this ? Or what component is causing these warnings.

@adrianfaciu
I have select:
<ng-select [allowClear]="true"
              [items]="roles"
	      [active]="roles[1]"
              [disabled]="inProgress"
              (data)="setRole($event)"
              placeholder="Виберіть роль">
</ng-select>

And data:
roles:Array<any> = [
  {id: 1, text: 'Мама'},
  {id: 2, text: 'Батько'},
  {id: 3, text: 'Сестра'},
  {id: 4, text: 'Брат'},
  {id: 5, text: 'Дідусь'},
  {id: 6, text: 'Бабуся'}
];

Error occurs when I open select (20 errors!) and 3 when choose item. Select is in bsModal and form divs.

This might come from Angular itself, with no easy way to fix. Have a look here for more info.

@adrianfaciu ok. What about initial value #307 ?


barcode 1D reading

It will be a good feature to read also 1D barcodes

@lmmolinero Thanks for suggesting, but to keep this app simple, not planning to support 1D for now. But will keep it on the bucket list for future enhancements.

Thank you very much for your kind answer. It's a pity because I suppose it wouldn't be very difficult to detect whether it is 1D or 2D code. In any case it is an excellent application and indeed very simple, as you said. Thanks

@lmmolinero Yes, it was originally built as a simple QR code scanner as PWA.  But there are many apps that support 1D I guess. Try them out and see if it works for you.


Update stream-permissions.md

Issue 18062
I added spans and edited the padding so that the text was more aligned.
Testing plan:
I tested through the Zulip developer environment.
GIFs or screenshots:

@stefanieelling5 thanks for working on this!  It looks like you've successfully aligned the labels, but not the icons to the left of the labels; can you try doing that?
Also, please check out the Zulip commit message guidelines for how to write proper commit messages: https://zulip.readthedocs.io/en/latest/contributing/version-control.html#commit-messages


Validation score v/s paper's score

Thanks for the repository, great job!! The paper reports score of 85.4 on val with multi-scale attention and without coarse training. Is this the same model as the 84.7 which we train without coarse annotations? If not, how to reproduce the 85.4% score without coarse annotations

Hi @sborse3 sorry what do you mean by the same model? Yes, it's same architecture without the mutli-scale attention head. Those are also multi-scale evaluation just for your reference.
I am assuming you are referring to Table 2 here. They are all using same architecture. When we added our MS attention. We keep base architecture the same.

Also what is the 84.7 number you are referring too ?  did you meant 84.9 ?

Thanks @karansapra  I'll let you know how it goes :)


I want to add  special character like ★

But it show ? instead ★
is it possible?

★ = \u2605
Yes, it is.
fileformat - use this site to search the symbol, and when you see "C/C++/Java source code" text, just copy the encoding and paste in your source.

Sorry, but can you give me source code? because  i'm not good at C++..

good info roses, thank you. :)
Was usefull for me


[Bug]-[2900]:Maintain order of data when the table's schema changes

Is there an existing issue for this?

[X] I have searched the existing issues

Description
When i have defined a table schema with all the customisations necessary and then the schema of the table changes to have only a few columns from the original schema or no columns, the customisations I made are lost.
Steps To Reproduce

Add a table widget
Bind it to data
Customise the table schema like change the bg color in a column
Pass data where the column is not present
Now pass the data again where the column is present
Observe the customisations are lost now.

Public Sample App
No response
Version
Production
 Front conversations

@sbalaji1192 @keyurparalkar here's my thought expanding Nikhil's idea
If the column which was configured disappears and re-appears then we can check based on the widget's original dsl if the column configuration and order contain the column name. If it does then we can add the column back in the same column order and keep the schema config for column same.
The idea here is when the key is missing from table data we generate the table without the column, but if the key comes back we check if it was is in the original table dsl and show the column. I don't think there's any value in showing an empty column and we don't need user intervention here.

Stats

Stat
Values

Reach
725

Effort (months)
0.5

@rajatagrawal can you check this out?

This looks like a good work option to me.
The worst of all worlds is if you make a mistake in binding data and the column disppears for ever. This is basically impossible to recover from and you have to revert your whole canvas change.
My usecase is where I have onSubmit handlers and custom names for a column and cross multiple different versions of a table. One mistake wiped out several columns and I had to create a branch, revert master and then try to recover bits of code from the branch I created. Cost me at least a couple of hours.

Cases

In the edit mode
In the view mode

Table1 - connected query1 -> changes and connects to query2
Backup columns as a new field -> How do we come up with a number - @dilippitchika to analyse
Freeze current schema -> By default it's not frozen - Toggles it on - New columns should we add or not, in the view mode
Experimenting

By default we have the backup part with 20 cols
Cache invalidation on refresh of page

-> Performance app example

Table 30 cols - 20 are coming q1 and 10 coming from q2
As soon as page loads - We have 30 cols in dsl
Query2 is late - DSL removes 10 cols
Query returns - DSL adds 10 cols back
We will use the cache - 10 cols and we will check if those are same
We will add back the col structures
You refresh the page

@keyurparalkar to triage

another user on Discord is requesting this feature:
https://discord.com/channels/725602949748752515/1131859200528633878

Another user requested this feature.

In the table widget, the columns are dynamic.
Suppose there's a column A.
The field A is present in the data of one day 1 and not present in the data of day 2.
Now, I make some configurations in the computed value of column A.
If I load data of day 2, the column A disappears.
When I load the data of day 1 again, the column A reappears but two problems:

The configuration I made for it's computed value is lost
The column is pushed to the right end
Kindly help me with this issue

cc : @sbalaji1192 @somangshu

Hey @AdithyaSanjay, I understand this is a frustrating scenario but we still need to get to prioritising this on our roadmap.
A workaround I can suggest right now is wrapping your data with a JS function, where you schema is consistent and based on some condition you show / hide the column. This will be approximately the solution / behaviour you need.

I actually tried it. But each time that the column disappears and
reappears, the configurations get reset.
On Fri, 5 Jan, 2024, 4:20 pm Somangshu Goswami, @.***>
wrote:

Hey @AdithyaSanjay https://github.com/AdithyaSanjay, I understand this
is a frustrating scenario but we still need to get to prioritising this on
our roadmap.
A workaround I can suggest right now is wrapping your data with a JS
function, where you schema is consistent and based on some condition you
show / hide the column. This will be approximately the solution / behaviour
you need.
—
Reply to this email directly, view it on GitHub
https://github.com/appsmithorg/appsmith/issues/17152#issuecomment-1878474936,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZ2FXTMO7BKRHEPOVIGWZFDYM7LGNAVCNFSM6AAAAAAQXVPBBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGQ3TIOJTGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

@AdithyaSanjay as per the above suggestion I have given, the column must not disappear from the schema in order to persist the config set by you. What you can do is to conditionally hide the column using the visible prop if its undefined overall.


Website Edits

Hi @EstebanMendez01,
The website is easy to use, and has a clear layout which is nice!
Some more things to keep:

I like that when my mouse hovers over a button the button changes colors and my mouse changes shapes
I also like the idea of having quizzes so students have a takeaway of something specific to remember from that page/assignment

Some Ideas:

Adding grades to assignments, and making this an option teachers could choose to implement if they wanted
Having a progress bar showing how many classes the user has completed. This can help motivate people to do more work or encourage them to see how much they’ve done
Adding a check to confirm someone wants to log out or leave the page rather than just leaving the page. This way users don’t accidently log out or leave a page and lose their data. Does data only get saved once someone clicks submit or does it automatically save throughout use?

Website design edits:

the class IDs are pretty long, which can make them look intimidating and overwhelming
In the phone view, the home page that has the welcome back Ben menu was at the bottom of the page. It might make more sense to have that at the top of the page. Just so users know it’s there before they see the page’s contents.
Button issues: When I hover over the home button my mouse didn’t change to show me that it was a link/button; which might be confusing for users. Also, the logout button is only clickable in half of the box
When the screen is between full and the smallest size, it creates a large amount of whitespace on the outside. I don’t know how you implemented the two columns but maybe think of making the white space in between “Classes” and “Welcome Back Ben” as a percentage of the screen size rather than just a set number. This way it will change in proportion to the screen rather than just staying fixed.

This is such a cool idea! I'm looking forward to seeing where it ends up!

Some updates: Your website looks pretty good from the student side. Some possible things to work on and implement on the instructor side might be changing access to certain buttons so that only the instructors can see them.

Thank you for the feedback @rebekahrudd !


luaPackages.pathlib-nvim: init at 2.2.0-1

Description of changes
This PR adds the pathlib.nvim Lua package. I also fixed some outdated comments in-code relating to the name of the Lua packages updater package as a second commit and thought I'd roll that into the same PR rather than opening it separately.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review run on x86_64-darwin 1

7 packages built:

lua51Packages.pathlib-nvim
lua52Packages.pathlib-nvim
lua53Packages.pathlib-nvim
lua54Packages.pathlib-nvim
luajitPackages.pathlib-nvim
luarocks-packages-updater
vimPluginsUpdater


Pipeline enhancements

Dependent on types PR: https://github.com/rancher/types/pull/293.

collect and show error/initializing messages with conditions, for https://github.com/rancher/rancher/issues/11983.
Add support for pull request trigger, for https://github.com/rancher/rancher/issues/11678.
Update environment variables substitution support, for https://github.com/rancher/rancher/issues/11934.
Support building with arbitrary public repository, for https://github.com/rancher/rancher/issues/11982.

Add one more commit to fix https://github.com/rancher/rancher/issues/12182

LGTM

LGTM. Can be merged after updated with types https://github.com/rancher/types/pull/293


DM: Support MySQL 8.4

Is your feature request related to a problem?
MySQL 8.4 removes things like SHOW MASTER STATUS. These have been replaced with SHOW BINARY LOG STATUS.
So things like this needs an update:
https://github.com/pingcap/tiflow/blob/be1553484fe4c03594eabb8d7435c694e5fd7224/dm/pkg/conn/utils.go#L112
https://github.com/pingcap/tiflow/blob/be1553484fe4c03594eabb8d7435c694e5fd7224/dm/pkg/conn/db.go#L108
This should be done without breaking compatibility with MySQL 8.0, 5.7 or MariaDB
Describe the feature you'd like
.
Describe alternatives you've considered
No response
Teachability, Documentation, Adoption, Migration Strategy
No response

/area dm
/label compatibility

cc @lance6716

/assign @lyzx2001

Related: https://github.com/go-mysql-org/go-mysql/issues/866

Maybe something like this:
diff --git a/dm/pkg/conn/utils.go b/dm/pkg/conn/utils.go
index df18fe876..3bef16ec0 100644
--- a/dm/pkg/conn/utils.go
+++ b/dm/pkg/conn/utils.go
@@ -15,6 +15,7 @@ package conn

 import (
        "context"
+       "database/sql"
        "fmt"
        "math"
        "strconv"
@@ -107,9 +108,15 @@ func GetMasterStatus(ctx *tcontext.Context, db *BaseDB, flavor string) (
                binlogIgnoreDB string
                gtidStr        string
                err            error
+               rows           *sql.Rows
        )
        // need REPLICATION SLAVE privilege
-       rows, err := db.QueryContext(ctx, `SHOW MASTER STATUS`)
+       rows, err = db.QueryContext(ctx, `SHOW BINARY LOG STATUS`)
+       if err != nil {
+               if strings.Contains(err.Error(), "You have an error in your SQL syntax") {
+                       rows, err = db.QueryContext(ctx, `SHOW MASTER STATUS`)
+               }
+       }
        if err != nil {
                err = terror.DBErrorAdapt(err, db.Scope, terror.ErrDBDriverError)
                return binlogName, pos, binlogDoDB, binlogIgnoreDB, gtidStr, err

While there is the notion of a flavor, there isn't really a good/easy way go get the version (e.g. from the "ServerGreeting)" without executing another query. Maybe we should do a SELECT VERSION() once after the connection is established and then store it so we can do if flavor==MySQL && version.Compare(...) {}


Set ----> OrderSet

Wallets sometimes encounter a situation where authorizations do not receive a response when interacting with certain dApps. Upon investigation, it has been found that dApps retrieve the first element from the authorization array, and using a Set can alter the order of authorizations. The recommended approach is to use an OrderSet, which not only removes duplicates but also maintains the original order of authorizations.

I think it's not safe to rely on elements order. More safe approach can be to iterate by set.

Why dapps taking first element? It seems like vary optimistic implementation.

Get the first item from the list obtained from https://curve.fi/#/ethereum/swap.  Not sure if there are any other dapps to handle it. OrderSet both maintains the order and removes duplicate elements, which is more reasonable

@xumoyan  can you give a specific example?

Wallet: TP iOS Version
DApp: Curve
After connecting to Wallet Connect, Curve is likely unable to display the connection status. However, switching to a different network reveals that the connection is working properly.
The issue with Curve arises from accessing the first element of the array it retrieves. However, the first element is not necessarily the chain ID for Ethereum.
Testing on Android and web platforms has been successful. Only iOS is affected due to the use of a Set, which changes the order and causes this problem.

@llbartekll Has this problem not recurred?

no one has ever reported similar issue, so I am trying to understand.
It may also be just an incorrect integration.
can you share all the namespaces used in the session, exact requests and errors?

I'm closing it due to inactivity. Looks like incorrect SDK integration from Curve side


Added certificate cache override

These changes create a certificate cache override on the Webscale TLS
config, formerly certmagic. This override can be set with an alias-keyed
certificate cache and, when set, is used instead of the default
certificate-name-keyed cache. The alias-keyed cache will use the
SNI from the client's hello message during the TLS handshake to look for
an exact match in the certificate cache. If one is found, its
certificate is returned. Otherwise, a default certificate is returned.

PR #5 has this change and is less risky because of fewer differences from the original Caddy/Certmagic code.


Updated docs on allauth and shibboleth fork plus minor fixes

For me, the search seems to be broken:
Uncaught ReferenceError: jQuery is not defined

I've added readthedocs-sphinx-search to the build, it might help. Can only be tested in deployment on readthedocs I guess. What you think @jochenklar ?

@MyPyDavid: I merged #30 today. You should rebase your branch.


fix gan cra loss_batch-> loss_task bug

fix the class representative attack bug: loss_batch -> loss_task

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


Right-click context menu to select server

Dependent on a new feature in tidepool-platform-client, which is deployed to npm already.
Also contains the feature to have blip open a web page if chrome-uploader is NOT installed, and the uploader if it IS installed (when blip is running in Chrome only).
After this change, a right click on the uploader will offer a "Server" menu, which has individual markings for local, development, staging, and production, with a check mark next to the current one.
The build process has changed to no longer require pre-setting the environment -- in fact, that now gets a warning message (it should be left at the default, which is production). However, developers can still pre-set it if you want to save clicks while testing (however, the initial state of the check mark in the right click menu will be wrong if you do).
@jebeck or @jh-bate , please review

@jebeck -- I've fixed things so that it loads properly for me. The problem doesn't seem to have been a race condition, but just a wrong object path.

Mostly this looks fine to me, but I have a few comments/questions (and also the comment above about fixing the console.log):

When I deleted all my versions of the uploader from my Chrome apps and tried to construct the tidepool.org/uploader link from the link I get out of blip currently (app ID and token from the end of the URL), I got an error instead of a redirect to the Chrome Store (but I'm logged in properly and can get there just fine from the current blip link). Is that expected? Also there isn't yet a blip PR to change the link there, right? It did properly launch the loaded unpacked extension when I tested before I deleted that.

I think I'd prefer it if we just prevent devs from setting ENV variables since it won't be reflected in the initial context menu; I'd rather we stick to just one way of setting the environment (i.e., the context menu), but my feelings around this are not super strong. @jh-bate do you have thoughts?

A limitation of the way this works is that you can log in on one environment, then switch servers after log in and try to upload. All the POSTs fail with 401s, of course. Not sure if we care about this. It should only affect devs, but there's a chance overly ambitious users will find the context menu and fiddle with things, then kill their ability to upload, etc. If it's easy to make opening the context menu even harder (⌘+right click, for instance), that would be fine by me.

The uploader, when it's installed, registers to handle urls that look like "tidepool.org/uploader?token=blah". The old Chrome store URL is now on that page on tidepool.org. There's not yet a PR for changing Blip to use that; thanks for reminding me. The trello card is here.
I think there's still a reasonable case for doing a build with other than the default environment (mainly so  you don't have to change every time you restart), which is why I left it.
I haven't yet found a way to restrict the right-click menu to the login screen. I think there probably is one -- but I'd rather not hold up this PR for that. Trello.

@jebeck -- I had what I thought were race condition issues -- so I fixed it properly. It turns out that wasn't my problem...but it's better for it.
I do think this is ready for merge now.

@jebeck -- I've merged in the stuff from #49 and also put in one more tweak that should make things fit better.

I'm merging this so we can get it tested.