Does it have any way to force keep WiFI connected if no internet?

Android 11, 12 makes it very hard for iOT devices. It is impossible to connect and configure them as Android detects that the connected WIFI  does not have internet connection. It would be handy to have something to keep it connected.

we gonna check this!
just wait for it.

Android 11, 12 makes it very hard for iOT devices. It is impossible to connect and configure them as Android detects that the connected WIFI does not have internet connection. It would be handy to have something to keep it connected.

The API you need for this purpose is probably this. I'm not a kotlin developer, but am still working around best ways of adding it.
That API has so many limits, if the user tries to connect to another wifi (not the suggested ones by application/client), the client is blocked for 24 hours.
The other problem is "time". I don't know why and in theory I don't think there should be a delay when using that API in these situations, but in all my tests, this API is a bit slower than the other one and has some weird issues.

Thanks, I tested with Android 10, 11 and 12. It works slower in Android 10 but works. In Android 11 and Android 12 it works and switches WiFi but it does not allow to use TCP Socket connection - IOT WiFi which does not have internet. Socket can not connect to IP port, seems like the problem is the OS detects that the WiFi does not have internet, it blocks all transport thru it. I reported the issue to Google but still no solution - https://issuetracker.google.com/issues/238443303

Thanks, I tested with Android 10, 11 and 12. It works slower in Android 10 but works. In Android 11 and Android 12 it works and switches WiFi but it does not allow to use TCP Socket connection - IOT WiFi which does not have internet. Socket can not connect to IP port, seems like the problem is the OS detects that the WiFi does not have internet, it blocks all transport thru it. I reported the issue to Google but still no solution - https://issuetracker.google.com/issues/238443303

You mentioned that you checked wifi IoT package with "withInternet: false" parameter (and with additional WiFiForIoTPlugin.forceWifiUsage(true)), have you tried it with "withInternet: true"?
And is there any reason for not using the WifiSuggestion API?
The implemtion of WifiSuggestion (the one that it calls when using internet: true) in the package you mentioned has some problems as well, I may have a better idea providing a dart code for you to test, if you could explain what are you expecting to happen.
Are you trying to make the phone auto-connect to a wifi?
Could the connection be peer to peer?
If not, did you test both of the available APIs? (WifiNetworkSpecifier and WifiSuggestion)

Thanks, I tested with Android 10, 11 and 12. It works slower in Android 10 but works. In Android 11 and Android 12 it works and switches WiFi but it does not allow to use TCP Socket connection - IOT WiFi which does not have internet. Socket can not connect to IP port, seems like the problem is the OS detects that the WiFi does not have internet, it blocks all transport thru it. I reported the issue to Google but still no solution - https://issuetracker.google.com/issues/238443303

You mentioned that you checked wifi IoT package with "withInternet: false" parameter (and with additional WiFiForIoTPlugin.forceWifiUsage(true)), have you tried it with "withInternet: true"?
And is there any reason for not using the WifiSuggestion API?
The implemtion of WifiSuggestion (the one that it calls when using internet: true) in the package you mentioned has some problems as well, I may have a better idea providing a dart code for you to test, if you could explain what are you expecting to happen.
Are you trying to make the phone auto-connect to a wifi? Could the connection be peer to peer? If not, did you test both of the available APIs? (WifiNetworkSpecifier and WifiSuggestion)
Thanks for the response.

Yes, I tried like "withInternet: true" as well.

No special reason - I did not find any Flutter library implementing that one. Which pub.dev package implement that API? Or should I implement it myself?

It would be very helpful if you can help. This is all what I need:

Joining to a WiFi with given SSID and password (Connected WiFi does not have internet and never will - It is a way similar to Bluetooth to connect, commission, configure device thru WiFi connection)

Send byte data to that IOT device thru Flutter socket - something like: Socket.connect("ipHere", portNumberHere)

package com.example.test

import android.content.Context
import android.net.wifi.WifiConfiguration
import android.net.wifi.WifiManager
import android.net.wifi.WifiNetworkSuggestion
import androidx.annotation.NonNull
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodCall //
import io.flutter.plugin.common.MethodChannel

class MainActivity : FlutterActivity() {
    private val CHANNEL = "test/wifi"
    private var requestingPermission = false

    override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
        super.configureFlutterEngine(flutterEngine)
        MethodChannel(flutterEngine.dartExecutor.binaryMessenger, CHANNEL).setMethodCallHandler {
            call,
            result ->
            when (call.method) {
                "initializeWifi" -> initializeWifi(call, result)
            }
        }
    }

    private fun initializeWifi(@NonNull call: MethodCall, result: MethodChannel.Result): Boolean {
        val wifiManager: WifiManager = context.getSystemService(Context.WIFI_SERVICE) as WifiManager
        val arguments: Map<String, String> = call.arguments()!!
        val ssid = arguments["ssid"]!!
        val password = arguments["password"]!!
        if (android.os.Build.VERSION.SDK_INT >= 29) {
            try {

                val wifiNetworkSuggestion: WifiNetworkSuggestion =
                    WifiNetworkSuggestion.Builder()
                        .setSsid(ssid.toString())
                        .setWpa2Passphrase(password.toString())
                        .build()
                val list: MutableList<WifiNetworkSuggestion> = ArrayList()
                list.add(wifiNetworkSuggestion)
                wifiManager.removeNetworkSuggestions(ArrayList<WifiNetworkSuggestion>())
                wifiManager.addNetworkSuggestions(list)
                result.success(true)
                return true
            } catch (e: Exception) {
                e.printStackTrace()
                result.success(false)
                return false
            }
        } else {
            try {
                var wifiConfiguration =
                    WifiConfiguration().apply {
                        SSID = "\"" + ssid + "\""
                        preSharedKey = "\"" + password + "\""
                        status = WifiConfiguration.Status.CURRENT // or nothing
                        allowedKeyManagement.set(WifiConfiguration.KeyMgmt.WPA_PSK)
                    }

                if (!wifiManager.isWifiEnabled) {
                    wifiManager.setWifiEnabled(true)
                }
                var netid = wifiManager.addNetwork(wifiConfiguration)
                wifiManager.disconnect()
                wifiManager.enableNetwork(netid, true)
                wifiManager.reconnect()
                result.success(true)
                return true
            } catch (e: Exception) {
                e.printStackTrace()
                result.success(false)
                return false
            }
        }
    }
}

put this in $your-project\android\app\src\main\kotlin\com\example\test\MainActivity.kt
import 'package:flutter/services.dart';

const MethodChannel _channel = MethodChannel('test/wifi');

Future<bool> initializeWifi(String ssid, String password) async {
  final bool result = await _channel.invokeMethod<bool>(
        'initializeWifi',
        <String, String>{'ssid': ssid, 'password': password},
      ) ??
      false;
  return result;
}

and put this in $your-project\lib\wifi_tool.dart
Now import the second file in your test and use initializeWifi method and check if it works or not.

Thanks, I tested with Android 10, 11 and 12. It works slower in Android 10 but works. In Android 11 and Android 12 it works and switches WiFi but it does not allow to use TCP Socket connection - IOT WiFi which does not have internet. Socket can not connect to IP port, seems like the problem is the OS detects that the WiFi does not have internet, it blocks all transport thru it. I reported the issue to Google but still no solution - https://issuetracker.google.com/issues/238443303

You mentioned that you checked wifi IoT package with "withInternet: false" parameter (and with additional WiFiForIoTPlugin.forceWifiUsage(true)), have you tried it with "withInternet: true"?
And is there any reason for not using the WifiSuggestion API?
The implemtion of WifiSuggestion (the one that it calls when using internet: true) in the package you mentioned has some problems as well, I may have a better idea providing a dart code for you to test, if you could explain what are you expecting to happen.
Are you trying to make the phone auto-connect to a wifi? Could the connection be peer to peer? If not, did you test both of the available APIs? (WifiNetworkSpecifier and WifiSuggestion)
Thanks for the response.

Yes, I tried like "withInternet: true" as well.
No special reason - I did not find any Flutter library implementing that one. Which pub.dev package implement that API? Or should I implement it myself?
It would be very helpful if you can help. This is all what I need:

Joining to a WiFi with given SSID and password (Connected WiFi does not have internet and never will - It is a way similar to Bluetooth to connect, commission, configure device thru WiFi connection)
Send byte data to that IOT device thru Flutter socket - something like: Socket.connect("ipHere", portNumberHere)

The only pub.dev package that uses WifiSuggestion API that I'm aware of is wifi_iot (the one you are already testing),
check if provided codes work for you and if they do, you need to implement it yourself.

Thanks heaps man. I'll check it

@h1376h Thanks for answering the questions, we haven't had time lately because of a project on startup

thank you guys!


[ZEPPELIN-3131] FIX: cursor in paragraph editor jumps

What is this PR for?
Sometimes when a user enters text in the paragraph field the lower part of the paragraph starts to jump. This PR fixes this.
What type of PR is it?
[Bug Fix]
What is the Jira issue?
ZEPPELIN-3131
Screenshots

Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

Awesome，I hit this issue as well. Thanks for fixing this.

BTW, is the screenshot the behavior before fixing ?

BTW, is the screenshot the behavior before fixing ?

@zjffdu
Here is an example of work after a fix:

This does not fix ZEPPELIN-3131, it's a different issue (see the video there).

@timovwb sorry about this. I change the task number.


vSphere password with special characters still works incorrectly

I have my favourite password with ! and \ characters, but I can't use it with Kubo.
Pre-start script fails with the following error:
/var/vcap/packages/govc/bin/govc: ServerFaultCode: Cannot complete login due to an incorrect user name or password.

After some digging, we found out that pre-start script transforms ! character to something else.
It works much better when we changed how password is passed to the following way
GOVC_PASSWORD=$'#&;^\ !%\'Az1'

See more http://wiki.bash-hackers.org/syntax/quoting#ansi_c_like_strings

What the password looks like in VSphere: #&;^\ !%'Az1


Moved the memories spi block back into the pinmux.

This gives a little more flexibility in software compartmentalization and should also solve the problem found in https://github.com/lowRISC/sonata-system/pull/323

All tests passing apart from the SPI Flash Pinmux test


New version: Yao v0.7.0

Registering package: Yao
Repository: https://github.com/QuantumBFS/Yao.jl
Created by: @GiggleLiu
Version: v0.7.0
Commit: fef45cf841a34596535218297de58d533968adac
Reviewed by: @GiggleLiu
Reference: https://github.com/QuantumBFS/Yao.jl/issues/179#issuecomment-1036952219
Description: Extensible, Efficient Quantum Algorithm Design for Humans.

@GiggleLiu please see the message above.  Once you fix the automerge issues you can register again the new revision without changing the version number and this pull request will be automatically updated.
[noblock]


[ISSUE#1707] delete unit test to solve isHostConnector always return true.

Fixes #1707
Make sure that:

[ x] You have read the contribution guidelines.
[] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #1711 (bb0f46f) into master (7a8096d) will decrease coverage by 0.59%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1711      +/-   ##
============================================
- Coverage     60.63%   60.04%   -0.60%
+ Complexity     2273     2262      -11
============================================
  Files           478      478
  Lines         10108    10108
  Branches       1028     1028
============================================
- Hits           6129     6069      -60
- Misses         3476     3537      +61
+ Partials        503      502       -1

Impacted Files
Coverage Δ

...enyu/client/tars/TarsServiceBeanPostProcessor.java
25.67% <0.00%> (-33.79%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
63.10% <0.00%> (-18.45%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
49.47% <0.00%> (-13.69%)
:arrow_down:

...apache/shenyu/common/utils/UpstreamCheckUtils.java
88.88% <0.00%> (-5.56%)
:arrow_down:

...henyu/plugin/httpclient/NettyHttpClientPlugin.java
57.14% <0.00%> (-2.05%)
:arrow_down:

...elimiter/handler/RateLimiterPluginDataHandler.java
69.23% <0.00%> (-1.54%)
:arrow_down:

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 7a8096d...bb0f46f. Read the comment docs.


add clear button

What does this do?
It seems like it adds just ad additional callback method (which btw has a typo in its name).
What does this buy you that you can't accomplish with the standard Dialog callbacks or say a button in your app?

i think that if someone like me  wants to clear a task's  duedate than  he needs to add a clear button. actually, the button is  gone  if  you don't set the clearListener. waiting  for your reply ：）

This is really too specific functionality for a generic date / timepicker.
If you don't feel comfortable maintaining your own changes, you could use a remove button in your app (see google keep for how they do it), or for example do swipe to remove on the reminder entries (which is what I do in an app).

ok,thanks for your advice

FYI, I just documented a slightly hacky, but elegant and fully functional, way to add a "Clear" button into DatePickerDialog in issue #183

@denversc can you please tell how to then use ClearableDatePickerDialog to create a dialog.
DatePickerDialog dpd = DatePickerDialog.newInstance(
MainActivity.this,
now.get(Calendar.YEAR),
now.get(Calendar.MONTH),
now.get(Calendar.DAY_OF_MONTH)
);
instead of datepickerdialog


Some projects listed under manifest authors name

The poseidon project is showing up on the website with Andre's name not with the name in the manifest: "A. Sina Booeshaghi". This may be because the full contact detains for the contact are not filled out.
I think we should allow partial contact details or show the line blank. Otherwise it may look like we are taking credit for other people's project!

Relevant code is:
https://github.com/OpenKnowHow/okh-search/blob/master/components/ProjectCard.js#L6-L10
(sorry for using experimental javascript with optional chaining -- I even had to add a compiler plugin to enable this and make the code less readable to the average developer -- I just find checking for null so tedious)
It checks for licensor then the first contributor and only then falls back on manifest-author. I think we should just make sure to include project-author or licensor when we author manifests. Having your name listed on a project that you didn't create can act as a badge of shame. :laughing:

Well the name is filled out, just nothing else in that section..

Ok, let's do what you suggest.


测试CC防护，未触发拦截。

钟馗面板，ip黑白名单均已关闭，CC防护打开后设置cc-ip每分钟阈值设置为3次，重启nginx刷新版本数据已保存。我局域网内81端口是openresty默认欢迎页，82代理81,85代理82，可以理解为85代理的81，浏览器访问<IP_ADDRESS>:85，高频访问85，没有触发CC拦截，使用局域网内其他设备（<IP_ADDRESS>）的80端口代理本机85端口，再次使用另一台设备高频访问http://<IP_ADDRESS>，也没有触发CC拦截。是我测试的方式不对吗？

(base) w@XiaoXin-15-Air:/usr/local/openresty/nginx/zhongkui/conf$ cat sites.conf
server {
    listen 82;

    server_name <IP_ADDRESS>;

    charset utf-8;

    location / {
        proxy_pass http://<IP_ADDRESS>:81;
        proxy_set_header  X-Real-IP  $remote_addr;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
server {
    listen 85;

    server_name <IP_ADDRESS>;

    charset utf-8;

    location / {
        proxy_pass http://<IP_ADDRESS>:82;
        proxy_set_header  X-Real-IP  $remote_addr;
        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

以下是部分测试的日志。
2024/05/22 13:09:46 [error] 442517#442517: *2 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:09:46 [error] 442517#442517: *4 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:09:46 [error] 442517#442517: *6 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:46 [error] 442517#442517: *6 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:47 [error] 442517#442517: *7 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:09:47 [error] 442517#442517: *9 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:09:47 [error] 442517#442517: *11 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:47 [error] 442517#442517: *11 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:48 [error] 442517#442517: *12 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:09:48 [error] 442517#442517: *14 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:09:48 [error] 442517#442517: *16 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:48 [error] 442517#442517: *16 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:53 [error] 442517#442517: *17 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:09:53 [error] 442517#442517: *19 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:09:53 [error] 442517#442517: *21 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:53 [error] 442517#442517: *21 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:54 [error] 442517#442517: *22 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:09:54 [error] 442517#442517: *24 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:09:54 [error] 442517#442517: *26 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:54 [error] 442517#442517: *26 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:56 [error] 442517#442517: *27 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:09:56 [error] 442517#442517: *29 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:09:56 [error] 442517#442517: *31 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:56 [error] 442517#442517: *31 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:57 [error] 442517#442517: *32 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:09:57 [error] 442517#442517: *34 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:09:57 [error] 442517#442517: *36 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:09:57 [error] 442517#442517: *36 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:10:11 [error] 442517#442517: *37 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:10:11 [error] 442517#442517: *39 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:10:11 [error] 442517#442517: *41 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:10:11 [error] 442517#442517: *41 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:10:12 [error] 442517#442517: *42 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:10:12 [error] 442517#442517: *44 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:10:12 [error] 442517#442517: *46 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:10:12 [error] 442517#442517: *46 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:10:13 [error] 442517#442517: *47 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:10:13 [error] 442517#442517: *49 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:10:13 [error] 442517#442517: *51 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:10:13 [error] 442517#442517: *51 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:10:14 [error] 442517#442517: *52 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:10:14 [error] 442517#442517: *54 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:10:14 [error] 442517#442517: *56 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:10:14 [error] 442517#442517: *56 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:10:15 [error] 442517#442517: *57 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:not found, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:85"
2024/05/22 13:10:15 [error] 442517#442517: *59 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: <IP_ADDRESS>, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:82"
2024/05/22 13:10:15 [error] 442517#442517: *61 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"
2024/05/22 13:10:15 [error] 442517#442517: *61 [lua] geoip.lua:51: lookup(): failed to lookup by ip,reason:lookup failed: Name or service not known, client: <IP_ADDRESS>, server: localhost, request: "GET / HTTP/1.0", host: "<IP_ADDRESS>:81"

123

我问问


Add ShineWiFi-X/S Datalogger Reconfiguration Guide

Added a detailed step-by-step guide for reconfiguring the ShineWiFi-X/S datalogger using the ShinePhone app.

Thanks for this PR, it's exactly what I was hoping someone would submit one day!
I've just added 1 comment, if you can tweak that I'm happy to merge!

I'm happy to contribute! I took the time to take the screenshots since my datalogger hade reset to default setting somehow.


CB-13464:Add validation to check if the mentioned Key exists in AWS

Verified he change with invalid (correct format but wrong ARN(the ARN of the key which is not present on AWS on the specified region)) and the env creation failed as below
Also validated the successful env creation with valid key.

@satyabollineni Could you please squash the commits into one with the latest commit message?


Pie / Donut chart adding SVG element to body with visibility:hidden, but creates height

If you notice even on the demo pages:
http://c3js.org/samples/chart_pie.html
http://c3js.org/samples/chart_donut.html
When the data re-loads the scrollbar jumps momentarily. The library is adding an  element to the  tag. It is set to have the style visibility=hidden, but it still renders like a block element. To fix for our project I had to add a CSS rule for any child SVG of Body to have a height:0

Also getting this behavior in Chome (mac osx), though not on Firefox. I have 4 small spline charts on one page, so I don't think this is limited to Pie/Donut variants.
I'm seeing as many as 10 empty SVG elements being created & immediately destroyed constantly, every second or so.
It wreaks havoc with my other scripts that are sensitive to the page height, and seems to be bogging down the browser when it really gets bad since the entire page is being redrawn constantly (in my case).

Watch the vertical scroll bar as you mouseover the charts:
http://jsfiddle.net/h6vj9fcn/1/
I also noticed that y-axis ticks are cropped off when I don't have a y-axis label set.

Thanks for reporting. I think this is a bug and fixed by the commit above. I changed to set height:0 for the element inserted when redraw, and I cannot see the scrollbar after this fix.
I'll release this fix in the next version 0.4.10 shortly. Thanks.

I'm getting this problem as well, with the latest version: "0.4.10-rc1" code, using a combo line + bar chart. I can see my scroll bar appearing and disappearing on every update.

I think this has been fixed in #1005 and the fix was already released in the latest version 0.4.10, so let me close at the moment.


Update flycut to 1.8

[x] Commit message includes cask’s name (and new version, if applicable).
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.

should be 1.8.1 now
https://github.com/TermiT/Flycut/releases/tag/1.8.1
thanks

Update: maybe wait a bit: 1.8.1 is bugged on macOs Sierra
https://github.com/TermiT/Flycut/issues/115


Fixing caching issues for similar_region

Similar regions code seem not to handle caching properly. Specifically, it overwrites existing cache rather than adding to it (including if no new downloads were attempted at all !)
While this behavior might be desired sometimes, in majority of cases we would like to preserve already cached data (this is the whole point of caching, after all). Note that re-download can still be forced by deleting local files. Proposed changes provide for a more reasonable process. Most of relevant changes are in SimilarRegionState's 'save' method.
Also made a few minor adjustments:

using relative import for some packages
quell numpy warnings and
allow requests for more regions than available (by simply returning all available)
renamed a few variables (no functionality changes) and added some comments

Should be ready for final approval and merging into development (don't have permissions to do this)

retested, lgtm


"format" instead of "filetype"

https://github.com/ankane/torchaudio-ruby/blob/1c9dbdd0df9b5586764dac53907d5971aa01c995/lib/torchaudio.rb#L36
Hi, @ankane.
Torchaudio uses "format" keyword since version 0.8.0

Hey @orlando-labs, thanks for reporting. Just pushed a fix, and will push a new release shortly.


Support QL Memory Bank Protocol for Tile-Based Netlists

Describe the solution you'd like
Is it possible to tile fabric generation with ql_memory_bank protocols? Scan_chain has some negative sides in aspect of physical design. I would like to use advantages of tile based fabrics and ql_memory_bank protocols together.

@msaideroglu Currently, we only support CCFF chains as we already see several successfully FPGA chips based on this technology. The QL memory bank will be supported. It is planned in 2023 Q4 as now.

Thanks.


[PROPOSAL]

Laravel Nova Excel allows you to gain full control over your resource exports, and you can choose to create your own actions:
https://docs.laravel-excel.com/nova/1.1/exports/customizations.html#full-control
I added an action field and it worked, it's asking me for a value.
https://nova.laravel.com/docs/1.0/actions/defining-actions.html#action-fields
However when I add the handle() method to access the field I get a signature problem and I'm not sure what to do.
Return type declaration must be compatible with DownloadExcel->handle(request : \Laravel\Nova\Http\Requests\ActionRequest, exportable : \Laravel\Nova\Actions\Action) : array

Could you please share a bit more of your code and which versions you're using?
See https://github.com/Maatwebsite/Laravel-Nova-Excel/blob/1.1/.github/ISSUE_TEMPLATE.md if you need any guidance on this.
Thanks!

Was a solution provided for this? Thanks.

Hi @thomassmith10 @GlennM asked me to simulate and provide more information but unfortunately I had to move on to other things. So the "request" was closed. Perhaps you can simulate the problem and provide more detail?

Thanks @eugenevdm.
I added the below to the Action that extends DownloadExcel;
/**
 * Get the fields available on the action.
 *
 * @return array
 */
public function fields()
{
    return [
        Text::make('Subject'),
    ];
}

I looked in to the Maatwebsite vendor folder and wasn't able to provide a proper solution so put the following rather hacky solution in place instead; in the map method I simply collect the value via $subject = $this->request->subject;.


Missing French translation

Some translations are missing in the package and in Transifex.
Is public
#: apps/catalogue/abstract_models.py:267
#, fuzzy
#| msgid "Is public?"
msgid "Is public"
msgstr "Est publique ?"

#: apps/catalogue/abstract_models.py:269
msgid "Show this product in search results and catalogue listings."
msgstr ""

#: templates/oscar/dashboard/catalogue/product_update.html:176
msgid "Drag images to re-order them. Space for additional images will appear when images are added."
msgstr ""

There might be more but that's what I've found so far.

We update the package translation files manually once in a while. Same for Transifex at present (see #3029). We do need a better workflow for this.

Transifex should now be up to date - I'll give it a few days before pulling back the translations from there in case you want to update/add any translations.

Thanks! I've translated all of them!


WIP: Handle Redirects in the PoolManager and Normalize URLs during redirects

This could probably be two PRs, but they're deeply related in my mind so I'm starting by keeping the pieces of work together. I'll happily pull 2176c26 into its on PR if you want.
That said, I'm starting this WIP now because the previous implementation of Url was not rfc3986 compliant and I'm not sure if we want to keep that behaviour and if people are actually relying on it. Specifically doing
from urllib3.util.url import parse_url

url = parse_url('google.com:80/foo')

Would give you an instance of Url where url.hostname == 'google.com'. Section 3 of RFC3986 however points out that you can only determine the authority (in which the hostname is contained) if it starts with //, e.g., a valid URI would be //google.com:80 not google.com:80. So when rfc3986.urlparse sees this input, it (correctly per the RFC) parses that differently than parse_url used to.
Presently, we even have tests that assert this behaviour. Is this something anyone can rely on? As I understand it, you can't pass a URL without a scheme and hostname. I'm wondering what we needed this for.
I hate removing tests, but I think these should be removed. Thoughts @Lukasa @haikuginger ?

For the moment I'm ACKing this, but I don't have time to review it right now: I'll need to take a look at it tomorrow. Just wanted to note that I hadn't missed it.

I have no additional substantive comments. One thought; would it be worth adding a method to do round-trip URL cleaning/validation?

@sigmavirus24, the SessionManager branch moves the redirect logic to RequestMethods; would you be interested in taking a look at that branch and seeing if the logic you've added here can fit into it?

@haikuginger yes. I'm just working on getting a new release of rfc3986 out the door first to handle a few things that I noticed urllib3 needs for these tests to pass


Scaledobject check fails for cpu trigger in keda v2.0.0 beta

Discussed in https://github.com/kedacore/keda/discussions/1280

Originally posted by simhan95 October 22, 2020
I deployed keda v2.0.0 beta version and deployed a scaled object for cpu trigger. But it fails to create a scaledobject with below error
Status:
Conditions:
Message:               Failed to ensure HPA is correctly created for ScaledObject
Reason:                ScaledObjectCheckFailed
Status:                False
Type:                  Ready
Message:               ScaledObject check failed
Reason:                UnkownState
Status:                Unknown
Type:                  Active
I am attaching my configuration here:
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
name: cpu-scaledobject
namespace: voice
spec:
scaleTargetRef:
name: voice-agent
triggers:

type: cpu
metadata:
type: Utilization
value: "50"

Why keda is not creating scaledobejct for cpu. Same is happening for memory.

As per https://github.com/kedacore/keda/discussions/1280#discussioncomment-3453867, what version are you running? If you are still using 2.0.0-beta; please upgrade to a newer version.

As @tomkerkhove  said, please update to a newer version, v2.0.0 is a bit old. Apart from that, do you have the Kubernetes metrics server installed? It's a requisite because KEDA delegates CPU and memory to the k8s metrics server

@JorTurFer Im running version: 2.7.3, Ive tried formatting the certs in several different ways, this was working before on an insecure cluster but adding the trigger auth has been difficult to debug, my comment was inline as it was related to the issue above

Could you share your ScaledObject and keda-operator logs?
Last SO you shared uses CPU and memory, so TriggerAuthentication is not needed.
Do you have kubernetes metric server installed?

This is my scaledobject, the above is the config from the related issue, mine does need auth its scaling on secure kafka cluster
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  annotations:
    meta.helm.sh/release-name: order-events-producer-egsp-order-events-enricher
    meta.helm.sh/release-namespace: neurons
  creationTimestamp: '2022-08-22T18:20:16Z'
  finalizers:
    - finalizer.keda.sh
  generation: 1
  labels:
    app: egsp-order-events-enricher
    app.kubernetes.io/managed-by: Helm
    scaledobject.keda.sh/name: egsp-order-events-enricher
  managedFields:
    - apiVersion: keda.sh/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:annotations:
            .: {}
            f:meta.helm.sh/release-name: {}
            f:meta.helm.sh/release-namespace: {}
          f:labels:
            .: {}
            f:app: {}
            f:app.kubernetes.io/managed-by: {}
        f:spec:
          .: {}
          f:advanced:
            .: {}
            f:horizontalPodAutoscalerConfig:
              .: {}
              f:behavior:
                .: {}
                f:scaleDown:
                  .: {}
                  f:policies: {}
                  f:stabilizationWindowSeconds: {}
                f:scaleUp:
                  .: {}
                  f:policies: {}
                  f:stabilizationWindowSeconds: {}
          f:cooldownPeriod: {}
          f:maxReplicaCount: {}
          f:minReplicaCount: {}
          f:pollingInterval: {}
          f:scaleTargetRef:
            .: {}
            f:name: {}
          f:triggers: {}
      manager: helm
      operation: Update
      time: '2022-08-22T18:20:16Z'
    - apiVersion: keda.sh/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:finalizers:
            .: {}
            v:"finalizer.keda.sh": {}
          f:labels:
            f:scaledobject.keda.sh/name: {}
        f:status:
          .: {}
          f:conditions: {}
          f:originalReplicaCount: {}
          f:scaleTargetGVKR:
            .: {}
            f:group: {}
            f:kind: {}
            f:resource: {}
            f:version: {}
          f:scaleTargetKind: {}
      manager: keda
      operation: Update
      time: '2022-08-22T18:20:16Z'
  name: egsp-order-events-enricher
  namespace: neurons
  resourceVersion: '471284882'
  uid: 4b2486bf-be22-4bae-80b9-431122f33414
  selfLink: >-
    /apis/keda.sh/v1alpha1/namespaces/neurons/scaledobjects/egsp-order-events-enricher
status:
  conditions:
    - message: Failed to ensure HPA is correctly created for ScaledObject
      reason: ScaledObjectCheckFailed
      status: 'False'
      type: Ready
    - message: ScaledObject check failed
      reason: UnkownState
      status: Unknown
      type: Active
    - status: Unknown
      type: Fallback
  originalReplicaCount: 1
  scaleTargetGVKR:
    group: apps
    kind: Deployment
    resource: deployments
    version: v1
  scaleTargetKind: apps/v1.Deployment
spec:
  advanced:
    horizontalPodAutoscalerConfig:
      behavior:
        scaleDown:
          policies:
            - periodSeconds: 300
              type: Pods
              value: 1
            - periodSeconds: 300
              type: Percent
              value: 25
          stabilizationWindowSeconds: 600
        scaleUp:
          policies:
            - periodSeconds: 30
              type: Pods
              value: 4
            - periodSeconds: 300
              type: Percent
              value: 25
          stabilizationWindowSeconds: 300
  cooldownPeriod: 30
  maxReplicaCount: 2
  minReplicaCount: 1
  pollingInterval: 15
  scaleTargetRef:
    name: egsp-order-events-enricher
  triggers:
    - authenticationRef:
        name: keda-trigger-auth-kafka-credential
      metadata:
        bootstrapServers: kafka-1j-us-east-1.egdp-test.aws.away.black:9093
        consumerGroup: order_event_consumer
        lagThreshold: '1'
        topic: trips_order_event_v1
      type: kafka`

and this is my trigger auth
apiVersion: keda.sh/v1alpha1
kind: TriggerAuthentication
metadata:
  annotations:
    meta.helm.sh/release-name: order-events-producer-egsp-order-events-enricher
    meta.helm.sh/release-namespace: neurons
  creationTimestamp: '2022-08-22T18:20:16Z'
  generation: 2
  labels:
    app.kubernetes.io/managed-by: Helm
  managedFields:
    - apiVersion: keda.sh/v1alpha1
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:annotations:
            .: {}
            f:meta.helm.sh/release-name: {}
            f:meta.helm.sh/release-namespace: {}
          f:labels:
            .: {}
            f:app.kubernetes.io/managed-by: {}
        f:spec:
          .: {}
          f:secretTargetRef: {}
      manager: helm
      operation: Update
      time: '2022-08-22T18:20:16Z'
  name: keda-trigger-auth-kafka-credential
  namespace: neurons
  resourceVersion: '471307401'
  uid: 78a09cde-ad6b-404e-a19c-6b4283b37356
  selfLink: >-
    /apis/keda.sh/v1alpha1/namespaces/neurons/triggerauthentications/keda-trigger-auth-kafka-credential
spec:
  secretTargetRef:
    - key: tls
      name: keda-kafka-secrets
      parameter: tls
    - key: cert
      name: keda-kafka-secrets
      parameter: cert
    - key: key
      name: keda-kafka-secrets
      parameter: key

@JorTurFer  do you know how I access the keda-operator logs? I typically access my cluster through Lens the only message i see is

message: Failed to ensure HPA is correctly created for ScaledObject
reason: ScaledObjectCheckFailed

I have my cert in a PKS format and tried to convert cert key ca format, and i see kubernetes secrets decoding the base64 properly but im not sure if its authorizing

But that trigger is not CPU, it's kafka.
In the namespace you installed KEDA (usually keda) you should have 2 pods, the operator and the metrics server. Share the operator logs please


Add/fix HMR support for definePageMeta

Environment
------------------------------
- Operating System: Linux
- Node Version:     v18.18.0
- Nuxt Version:     3.8.2
- CLI Version:      3.10.0
- Nitro Version:    2.8.1
- Package Manager<EMAIL_ADDRESS>- Builder:          -
- User Config:      devtools
- Runtime Modules:  -
- Build Modules:    -
------------------------------

Reproduction
https://stackblitz.com/edit/github-bybsea?file=pages%2Findex.vue
Describe the bug
Not sure if this is a known/intended limitation but HMR does not work for changes made to definePageMeta's parameters. For example, if I change layout: 'default' to layout: 'blue' in the reproduction, the page does not update until I do a manual reload.
There are some DX scenarios where having HMR for definePageMeta parameters could be helpful (e.g. experimenting with different transition classes for page/layout transitions).
Additional context
No response
Logs
No response

Can i take up this issue?

I am currently trying to familiarize myself a little with vite HMR. I thought I'd link it to the issue here. I thought I'd write down what I've found out and also where I ended up stuck (for now).
First the obvious:

the file.vue?macro=true import.meta.hot.accept is never called.
even if it would be called it should cause problems because the meta data is not in mod but mod.default (?).
it is relatively easy to trigger a reload of all modules, but this is like a full reload

Where I am a bit stuck:

even if in handleHotUpdate the self accept of the macro triggers and then write the value to __nuxt_page_meta, there is no update of the layout
I still don't understand exactly when and whether a module has to be invalidated via the moduleGraph.
the logic for the case that both page meta and “normal” content is updated is still unclear to me

Maybe someone can give me feedback on some of the points. If not, then I hope it will help the next editor 😄


Why the testing code only use half of the size of gru bias

Thanks for your wonderful code. When I train my own RNNoise model, I found that three gru bias sizes are twice as large as the origin RNNoise in rnn_data.c. But I print out the model in python and sure that my gru bias size is correct.
However, I read the compute_gru function in rnn.c and found that test code only use half of the gru bias in the testing, Can anyone explain why this case happen? And why the origin RNNoise model only keep half of the actual size of gru bias.
Thanks

في ثلاثاء، 27 نيسان، 2021 في 11:43 ص، كتب benlin1996 <
@.***>:

Thanks for your wonderful code. When I train my own RNNoise model, I found
that three gru bias sizes are twice as large as the origin RNNoise in
rnn_data.c. But I print out the model in python and sure that my gru bias
size is correct.
However, I read the compute_gru function in rnn.c and found that test code
only use half of the gru bias in the testing, Can anyone explain why this
case happen? And why the origin RNNoise model only keep half of the actual
size of gru bias.
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/xiph/rnnoise/issues/177, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOW7T7DQZG3ZOKAWS3H3AO3TKZ2MPANCNFSM43URAQVA
.


Less fakes in testing strategy

I'm working on branch for #18, all unit tests pass... but running the example CLI  to get a PyPI package is not working. So I would suggest less #[cfg(test)] code variants and more just running with the real code paths.

Do you suggest remove all mocks functions?

As much as possible, unless you already have good mocking library that has maximal realism. Otherwise you tend to end up testing something that doesn't match reality, and tests might pass even if real world code doesn't.
For example of how to not use mocks but deal with shared state, in #21, the application name is hard-coded as update-informer-rs. If you make that configurable (and maybe users would like that anyway?), tests could use random value so that each test starts with (mostly) independent state since it would point at different directory.
Even for talking to GitHub etc., in this particular case talking to real services might be fine. One time in a thousand it'll fail, but how much time do you spend working on this library? Chances of it slowing you down are low. (For things you work on every day, I'd probably go with a verified fake—https://pythonspeed.com/articles/verified-fakes/).

Okay, I don't mind. Let's try to do it.


Runnin Gremlin Queries in joern CLi

Hey , i am working on a project where i have a bunch of gremlin queries to run on a code property graph. i am currently working on joern and  i am not sure if the joern cli language covers everything gremlin does.
here is a sample of the queries  i am working on : Sample Queries
Is there a way to run gremlin queries in joern CLI ?
And Please i am having problems understanding the key/value pairs in the parameters of each node. Is there a clear documentation about the content of every node,
Thank you

Hello!
please checkout https://docs.joern.io, it contains queries and documentation about the CPG (https://docs.joern.io/code-property-graph) as well as the language reference (https://docs.joern.io/cpgql/reference-card).
There is no out of the box way to run those queries and we do not plan to support it. The underlying technology has changed.

+1, you won't be able to run your queries "as-is".
That being said: at first sight, you should be able to port all those queries. The underlying cpg query dsl is built on top of overflowdb Traversal which contains many gremlin-like steps, e.g. outE etc.

Closing, because the issue seems to be resolved.


Working directory

It'd be very useful if the action supported working-directory

@connorjclark Check out https://github.com/carlkidcrypto/os-specific-runner, I added an experimental working_directory parameter. Unfortunately, it can only make folders under /tmp. Make sure to use what's on the main branch.


Update Get-AzSubscription PS Command Example

The documentation references output from $sub.TenantId and $sub.SubscriptionId in the "Where to Obtain" section of the table under "Define Packer Template", however there are no commands specified that would create/define the $sub variable and its values. Updated the PowerShell example command for Get-AzSubscription to properly store results in variable $sub so that a user can properly retrieve the Tenant and Sub ID values.

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

@cynthn,
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@cynthn any update on this change ?

@cocallaw I'm not clear why you think the change is needed. Get-AzSubscription returns the sub name, ID, and tenant ID. If you don't know your sub ID, you can't use the syntax you proposed. But, I might not be understanding the issue?

@cynthn the table that is under the Define Packer Template section states that output of $sub.TenantID and $sub.SubscriptionId is to be used, but the output from those two will be empty as nothing has been stored in a $sub variable. Instead of updating the PS section of the doc, the table could be updated to say "Output from Get-AzSubscription command" for tenant_id and subscription_id


Can't set different network policy to different pods in single workflow

I am using Argo to build CI pipeline, and I have two step (compile, test) in a workflow. I want using hostNetwork only in compile step pods.

Hi, there is a way to specify hostNetwork PodSecurityPolicy for certain steps?
It would be a very useful enhancement

Could you simple labels the pods to set your net pol?


No .editorconfig or lint config for the project

Currently, there is no .editorconfig nor .prettierrc or .eslintrc to match a common codestyle. Making a .editorconfig over a default config should suffice, if help is needed I could provide one with general code styles that most of people match. Thanks!

Sample .editorconfig file, prettier can format based on .prettierrc or .editorconfig
`root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = false
max_line_length = 120
tab_width = 2
[{.cjs,.js, *.ts}]
indent_size = 2
tab_width = 2
`

Thanks for the contribution!

I will be code contributing tomorrow since this has been fixed, today I had a lot of work to do, thanks to you for being open to contribs!


Update ANT Manager app's icon

I suggest to change the icon of ANT Manager android application.
How about this?

I removed shadow under the ant. How about this?

LCTM. I think simple design could be nice.

LGTM


Travis configuration files

travis-ci.org configuration files. Composer is having troube with symfony/framework-bundle not being installable but, the tests dosent depend on any outside classes for now.

Ill create another.


How do I change the background color of each chart

I can edit css to change the1 background ,But the background of each chart is still white
How do I change the background color of each chart
How do I remove the title of each chart

Hi @winterliebe Bence put together a great tutorial that covers most of this:
https://www.youtube.com/watch?v=VtQcY0I0CWs


Android thirdparty SDK needs initalized in OnCreate(). OnCreate not directly accessable when making plugin

So i am working with Particle devices, Particle is a batteries included Internet of Things platform that basically takes an Arduino style micro controller and connects it to the cloud. They offer Android and IOS sdks but to no surprise, nothing for dart/flutter. I have written apps that go through the method channels and it is getting quite cumbersome. i want to solve this problem once and not again if you know what i mean. Therefore i want to make a plugin to expose the Particle SDK to flutter/dart. The issue is that the Particle SDK requires an init command that must be ran in the OnCreate() Method and requires context as a param.
I have been able to find the activity context and try to init in methods available within the plugin framework, but it must be initialized during the OnCreate Sequence. I have found some things like PluginRegistry.Registrar and Flutter plugin Registrar but im not sure how to use them to solve my issue. I noticed how the GeneratedPluginRegistrar is ran in the OnCreate method of all flutter apps. so i think that if i can add my app init to the GeneratedPluginRegistrar my issue may be solved. I feel that i cannot be the only person to have attempted to create a plugin that needs to be initialized during the OnCreate sequence, I am just not able to find the solution through google or stack overflow up to this point.
Any assistance is very appreciated. i am relatively new to flutter so please forgive me if there is some easy fix that i just need to open my eyes to see.

Please consider asking support questions in one of the other channels listed at http://flutter.io/support .

Our Android engine code has been refactored in 1.12. The new plugin APIs offer more lifecycle hooks. See details in https://flutter.dev/go/android-plugin-migration.


bug?: check suite results aren't cleared up front when re-requested

I'm counting this as a bug, but more research is needed to determine if anything can be done about this at all.
If a check suite has completed or is even partially complete, with results having already been reported for check runs within that suite and the suite is re-run (for the same commit) the results of each check run associated with the first execution of the check suite are not cleared until a new result associated with the new execution of the check suite is received.
The result is it is possible that one can view checks for a PR in the web UI and see old check run results mixed with new check run results.
If it is possible to do so, the results of all check runs associated with a check suite should be cleared up front when a new execution of the check suite is requested.

Example:

Try as I might, I cannot find a way around this.

Check runs can not be deleted
Any attempt to change an existing check run's status after it has completed has been fruitless
Check suites can not be deleted
Requesting a check suite to re-run yield the existing behavior
Re-requesting each individual check run to be re-run would "work" but would create a bigger problem in that it would trigger a whole slew of other events that were not intended.

My inescapable conclusion is that things are working as GitHub intended them.
Closing.


"get_data.py" file is missing

Can you upload the "get_data.py" script so we can fully reproduce the example? Thanks!

Here you go: https://github.com/alexcg1/fashion_docarray_push/
I haven't touched the code in a couple of months, so let me know if you hit any bugs

BTW, what are you building out of interest? Always curious to see what our community are up to!


Implementing deserializers with serde-rs

I'm going to write BERT deserializer for the Vec<u8> type and I have few questions about implementing deserializers with serde-rs:

Does serde-rs have a common approach to implement this stuff? Different extensions(or plugins) have a different implementation of deserialize mechanism. For example, I overlooked JSON/YAML/CBOR extensions. Theirs codebase very different and its looks like serde-rs don't specify "how to" make it in the right way.
Existing plugins have a forward_to_deserialize macro, which different of each other. When and where necessary to using it? Does it required for deserializers?
Don't understand where to start my implementation. Serde docs let me "sketchy understanding" that need to override trait (like to the ser::Serialize?). What to do with parse_* methods? When and where are the calling? For which cases shall I to use them?

Theirs codebase very different and its looks like serde-rs don't specify "how to" make it in the right way.

There's no good way to specify anything, because every serialization format has its own quirks. We explicitly moved away from supporting json-like formats by default, and requiring formats to implement all methods.

Existing plugins have a forward_to_deserialize macro, which different of each other. When and where necessary to using it? Does it required for deserializers?

due to the mentioned change that all methods need to be implemented, certain formats that don't really need all that knowledge about the exact type now need to forward all their methods to the deserialize method. For a binary format that is not helpful, you need to implement all methods (and error out on those that you do not support).
You need to implement the Deserializer trait for a BertDeserializer type (or any other name) that you created. That type needs access to the &[u8] from which you extract your values.

What to do with parse_* methods?

We have parse_* methods? not sure what you mean.

For which cases shall I to use them?

A Deserializer does not call any methods, its methods get called.

Thanks for the explanation! 😊

due to the mentioned change that all methods need to be implemented, certain formats that don't really need all that knowledge about the exact type now need to forward all their methods to the deserialize method. For a binary format that is not helpful, you need to implement all methods (and error out on those that you do not support).

As far as I understand this macro is usefull when I don't want to implement unsupported methods? And for each other which are supported by BERT better to specify manually?

We have parse_* methods? not sure what you mean.

For example take the CBOR deserializer. This module have a lot of different parse_* methods. Function parse_value it is a main function, which called by deserializer and using for make a hint about passed data, right?

A Deserializer does not call any methods, its methods get called.

How can I then to make a hint for a deserializer to which types necessary to convert all passed data?

How can I then to make a hint for a deserializer to which types necessary to convert all passed data?

My brain was still on vacation.
You can obviously call all methods that the Visitor object passed to the method offers, and all methods you implement on your deserializer type.

This module have a lot of different parse_* methods. Function parse_value it is a main function, which called by deserializer and using for make a hint about passed data, right?

That's just a design chosen by CBOR. Feel free to copy it if it fits your needs close enough.

As far as I understand this macro is usefull when I don't want to implement unsupported methods? And for each other which are supported by BERT better to specify manually?

No.
All methods except for deserialize are there as hints from the type to the Deserializer about what kind of value the object of that type expects. So if you don't support a method, you need to return an error. If you don't care about the hint, because your format specifies its types in the format itself, then you can just forward all methods to deserialize, that is what the macros do.

Thanks a lot for your help.


Train and publish a lung segmentation model

Trained and published in the same manner as the hippocampus segmentation model.
AB#7046

This was completed in #808.


Fix broken e2e tests for server requests

Broken e2e tests was detected after CI was fixed:
Exception: command `curl --fail-with-body -X POST http://kairos/api/v1/deposit -H 'Content-Type: application/json' -d '{"public_key": "publickey", "amount": 10}'` failed (exit code 22)

Tests fixed in https://github.com/cspr-rad/kairos/pull/65.


When using batch mode with 'same-sat', the received address is different from the expected one

When using the --batch parameter, and the mode is set to 'same-sat', I have written 'destination' under 'inscriptions'. However, I found that the address of the inscription is not the one specified after 'destination' in the YAML file. How should I set it to ensure it goes to the specified address?
inscriptions:

file: a.txt
destination:  xxx
file: b.txt
destination:  xxx

If you are inscribing on the same sat everything will go to the same destination. We should however add a way to specify the destination of that sat. I will have to do the following:

Raise an error if user specifies destination in shared-output mode or same-sat mode
Add a top level field called destination-all for those modes

Closed by some PR


Fix firewall issues

Firewall rule 3.6.2 blocks all incoming connection which should be the last action once all allow rules has been added.
Also, adding task in 3.6.5 to allow incoming SSH connection.
Fixes #33 and #35

Hi @LorensK it would be great if you can review this PR.
I would request @anthcourtney to add you as collaborator on this repo so we can review each others PRs and make sure we do not break things.


Grpc.Core server rejects gRPC requests forwarded with YARP with "Missing header"

Describe the bug
I have an insecure C# Grpc.Core server and want to forward requests to it via an YARP reverse proxy. The proxy receives the request and then the subsequent HTTP request to the gRPC server fails with an exception:
  System.Net.Http.HttpRequestException: An error occurred while sending the request.
   ---> System.IO.IOException: The request was aborted.
   ---> System.Net.Http.Http2StreamException: The HTTP/2 server reset the stream. HTTP/2 error code 'INTERNAL_ERROR' (0x2).
     --- End of inner exception stack trace ---
     at System.Net.Http.Http2Connection.ThrowRequestAborted(Exception innerException)
     at System.Net.Http.Http2Connection.Http2Stream.CheckResponseBodyState()
     at System.Net.Http.Http2Connection.Http2Stream.TryEnsureHeaders()
     at System.Net.Http.Http2Connection.Http2Stream.ReadResponseHeadersAsync(CancellationToken cancellationToken)
     at System.Net.Http.Http2Connection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     --- End of inner exception stack trace ---
     at System.Net.Http.Http2Connection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
     at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
     at Yarp.ReverseProxy.Forwarder.HttpForwarder.SendAsync(HttpContext context, String destinationPrefix, HttpMessageInvoker httpClient, ForwarderRequestConfig requestConfig, HttpTransformer transformer)

I have followed documentation, namely the gRPC page. The most interesting gRPC server trace prints appear to be these "Missing header" and "Missing :authority or :path":
I0818 18:27:38.889382 0 ..\..\..\src\core\lib\channel\channel_stack.cc:239: OP[connected:000001FC81FC0CB0]:  CANCEL:{"created":"@1629304058.888000000","description":"Missing :authority or :path","file":"..\..\..\src\core\lib\surface\server.cc","file_line":1421,"referenced_errors":[{"created":"@1629304058.888000000","description":"Failed processing incoming headers","file":"..\..\..\src\core\ext\filters\http\server\http_server_filter.cc","file_line":123,"referenced_errors":[{"created":"@1629304058.888000000","description":"Missing header","file":"..\..\..\src\core\ext\filters\http\server\http_server_filter.cc","file_line":204,"key":"te"}]}]}
I0818 18:27:38.889556 0 ..\..\..\src\core\ext\transport\chttp2\transport\chttp2_transport.cc:1646: perform_stream_op[s=000001FC81FC1A70]:  CANCEL:{"created":"@1629304058.888000000","description":"Missing :authority or :path","file":"..\..\..\src\core\lib\surface\server.cc","file_line":1421,"referenced_errors":[{"created":"@1629304058.888000000","description":"Failed processing incoming headers","file":"..\..\..\src\core\ext\filters\http\server\http_server_filter.cc","file_line":123,"referenced_errors":[{"created":"@1629304058.888000000","description":"Missing header","file":"..\..\..\src\core\ext\filters\http\server\http_server_filter.cc","file_line":204,"key":"te"}]}]}

Full log
The call is served properly when I call the gRPC server from the client directly.
To Reproduce
I have prepared a reproduction repo. Just clone the repo, open in VS and F5.
I have also tried the code-first approach outlined on the Direct Forwarding page as well, with same result (having adjusted VersionPolicy in RequestProxyOptions).
Further technical details

Windows 10
VS 16.9.3
.Net 5.0
Grpc.Core 2.39.1
Yarp.ReverseProxy 1.0.0-preview.12.21328.2

Next steps:

Get a network capture (Wireshark) between YARP and the destination to see the wire format for the request and if one of these request headers really is missing.
Getting the debug level logs from YARP would also be useful.

@mzabsky if you're able to capture those it would help, otherwise we'll get to it.

Trace logs for the proxy host
Wireshark capture for the destination port
The headers:

Thanks. The Wireshark and the YARP logs are consistent which implies a compat issue at the destination. @JamesNK who's a good person to follow up on the gRPC server end of this?

Create an issue at https://github.com/grpc/grpc

This issue was moved to grpc/grpc#27065

I think moving this issue to Grpc.Core is perhaps a bit premature.
I followed up a bit more and did a Wireshark capture of a direct call without forwarding. Here are the headers:

The only header missing appears to be "te: trailers". I modified the proxy to use HttpForwarder and added the header manually:
        private class CustomTransformer : HttpTransformer
        {
            public override async ValueTask TransformRequestAsync(HttpContext httpContext, HttpRequestMessage proxyRequest, string destinationPrefix)
            {
                // Copy headers normally and then remove the original host.
                // Use the destination host from proxyRequest.RequestUri instead.
                await base.TransformRequestAsync(httpContext, proxyRequest, destinationPrefix);
                proxyRequest.Headers.TE.Add(new TransferCodingWithQualityHeaderValue("trailers"));
                proxyRequest.Headers.Host = null;
            }
        }

After this modification, the forwarded call suddenly works and the client receives the reply. I have pushed a functional version of the reproduction code with this workaround to a branch.
However, I am not very familiar with HTTP/2 or details of the gRPC protocol so I can't tell if the server should be able to serve the request with the "te" header missing.

I can confirm that te: trailers is required by Grpc.Core. I don't know what that header does but Grpc.Core rejects gRPC calls that don't have it.
https://github.com/grpc/grpc-dotnet/blob/e3a2c06639c49f903663aee7acddbc1a7fcc7efd/src/Grpc.Net.Client/Internal/GrpcCall.cs#L805-L807

Ah, we were looking at the misleading error "Missing :authority or :path", but there was a second one burred in there "Missing header"..."key":"te".
@JamesNK how common of a requirement is that in gRPC implementations? This is the first server we've run into that requires it. It seems to be optional in the HTTP/2 spec.
https://datatracker.ietf.org/doc/html/rfc7540#section-<IP_ADDRESS>

The only exception to this is the TE header field, which MAY be
present in an HTTP/2 request; when it is, it MUST NOT contain any
value other than "trailers".

Grpc.Core seems overly restrictive here.

Grpc.Core uses a C implementation of gRPC server/client. It is reused by Grpc.Core (C#), gRPC C++, Ruby and Python.


Mirror Image's "next attack misses" effect should prevent block from being used up

Obsolete in favor of #68


How to add scss support?

Thank you for such a comprehensive starter. This is my favorite mern boilerplate on github. but I need sass/scss support for my project. How can I add that?

Hi Farrukhameen,
Thanks, but most of the credits should go to the developers behind React, Universally and mern-starter. I just combined those two get a MERN boilerplate. Both of them had stuff i liked :-)
In order to add SCSS you need to add a few lines of code to Webpack configuration. You can find the configuration in  "mern-starter2/internal/webpack/configFactory.js" in webpackConfig variable.
Check SASS Loader for sample configuration.
I would however recommend using Styled Components. You get encapsulated CSS code just like Angular 2 has. You code the CSS same way you do with with SCSS to. Its a bit of a learning curve, but its really cool once you get a hang of it.

Thank you it helped. I will study styled components for next project.


Broken CI: "No match for argument: python"

https://travis-ci.com/ansible/molecule/jobs/241187632#L1819

... 'No match for argument: python\n', 'There are following alternatives for "python": python2, python36\n', 'No match for argument: python-devel\n' ...

Ran into https://github.com/ansible/molecule/issues/2350 while trying to resolve this :(

Ok, the issue can be resolved with:
diff --git a/molecule/test/resources/playbooks/docker/Dockerfile.j2 b/molecule/test/resources/playbooks/docker/Dockerfile.j2
index 65279a5e..df4f70d5 100644
--- a/molecule/test/resources/playbooks/docker/Dockerfile.j2
+++ b/molecule/test/resources/playbooks/docker/Dockerfile.j2
@@ -10,7 +10,7 @@ ARG testarg=fail
 ENV envarg=$testarg

 RUN if [ $(command -v apt-get) ]; then apt-get update && apt-get install -y python sudo bash ca-certificates iproute2 python-apt aptitude && apt-get clean; \
-    elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python sudo python-devel python*-dnf bash iproute && dnf clean all; \
+    elif [ $(command -v dnf) ]; then dnf makecache && dnf --assumeyes install python2 python36 sudo python2-devel python36-devel python*-dnf bash iproute && dnf clean all; \
     elif [ $(command -v yum) ]; then yum makecache fast && yum install -y python sudo yum-plugin-ovl bash iproute && sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && yum clean all; \
     elif [ $(command -v zypper) ]; then zypper refresh && zypper install -y python sudo bash python-xml iproute2 && zypper clean -a; \
     elif [ $(command -v apk) ]; then apk update && apk add --no-cache python sudo bash ca-certificates; \

Because in testing, we test against the centos:latest image, and this new image only provides python2/python36 packages now. If we make this change in the standard cookiecutter Dockerfile.j2, then we are not supporting the latest centos image and installations will break. How to support backwards compatability in this case?
This may finally force our hand to come up with a more sustainable position on how to deal with the Dockerfile.j2.

Seen in the CI build now over at https://github.com/ansible/molecule/pull/2354#issuecomment-539033739.


Increase minimum required version of visual studio to 15.3.0

Part of aspnet/buildtools to notify VS users that they need to update Visual Studio. Note that this does not allow 15.3.0-preview releases (only 15.3.0 or later).

@jkotalik,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

:shipit: If this is the only change being made, I'd just send an FYI PR and merge it in.

@pranavkm this is the first repo I am changing, I just wanted to get some light on it before doing it to all product repos.


UDP comms uses msgpack directly instead of using server supplied serializer

won't fix, getting rid of serializers


Remove System.Net.Http nuget dependency from full .Net Framework build

Using System.Net.Http nuget package causes all sorts of problems. Microsoft are removing OOB package, preferring the GAC'd version.
See https://github.com/dotnet/corefx/issues/17522 for a post-mortem on the System.Net.Http problems

Sorry for very late response. Could you please describe what you experienced and how did you resolve it so that I can help others experiencing the same type of issue.


Error: Initial locale argument was not passed into serverSideTranslations

Hello,
I'm trying to test the new example-umami out of the box.
While I'm trying to access to a node i'll get the error : Initial locale argument was not passed into serverSideTranslations
Errors logs :
error - Error: Initial locale argument was not passed into serverSideTranslations     at _callee$ (/Users/septembre/Documents/GitHub/japi/test-umami/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:172:19)     at tryCatch (/Users/septembre/Documents/GitHub/japi/test-umami/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:86:17)     at Generator._invoke (/Users/septembre/Documents/GitHub/japi/test-umami/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:66:24)     at Generator.next (/Users/septembre/Documents/GitHub/japi/test-umami/node_modules/@babel/runtime/helpers/regeneratorRuntime.js:117:21)     at asyncGeneratorStep (/Users/septembre/Documents/GitHub/japi/test-umami/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)     at _next (/Users/septembre/Documents/GitHub/japi/test-umami/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)     at /Users/septembre/Documents/GitHub/japi/test-umami/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7     at new Promise (<anonymous>)     at /Users/septembre/Documents/GitHub/japi/test-umami/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12     at serverSideTranslations (/Users/septembre/Documents/GitHub/japi/test-umami/node_modules/next-i18next/dist/commonjs/serverSideTranslations.js:272:17) {   page: '/[...slug]' }
I don't think it is an auth issue because all the pages works correctly except nodes.
Not sure if it come from my drupal config or something in the local dev version of example-umami.
Drupal instance
Drupal : 9.4.1
Php : 8.1
Next-drupal
"next": "^12.1.4",
"next-auth": "^4.3.4",
"next-drupal": "^1.4.0",
"next-i18next": "^11.0.0",
Next.config is the same as github :
const { i18n } = require("./next-i18next.config")

module.exports = {
  i18n,
  images: {
    domains: [process.env.NEXT_IMAGE_DOMAIN],
  },
}

next-i18next.config.js is the same as github
const path = require("path")

const config = require("./site.config")

module.exports = {
  i18n: {
    defaultLocale: config.defaultLocale,
    locales: Object.keys(config.locales),
    localePath: path.resolve("./public/locales"),
  },
}

Would appreciate it if someone have a clue for this

@septembre2018 quick question. Are you following the guide at https://gist.github.com/shadcn/23d2cff86eb68836774f877a3ecc88a3?

no, I've tried with my server where I've install a drupal instance

HI,
I've strictly follow the guide and I still have the same error.

OK this might sound like an easy fix but I just had this error as well and clearing the cache on the Drupal site fixed it. Can you give it a try?

Sorry it doesn't change anything.

Hello
I'm getting the exact same error with my Umami installation - error : Initial locale argument was not passed into serverSideTranslations
I have followed the install guide to the letter. I also have cleared the caches several times. Everything seems to be working but when I click on any node, the error pops up.
@septembre2018 could you please tell me in more detail which permissions were to blame?

Thank you for a quick answer. I deleted everything and started from scratch. Everything is working now.
I think that for some reason the required Drupal patches in composer.json failed to apply. That was probably the reason for the error for me.

I also can't seem to trigger the patches
Composer version 2.5.4 2023-02-15 13:10:06
PHP 8.1.16 (cli) (built: Feb 16 2023 07:22:21) (NTS)

{
    "name": "drupal/recommended-project",
    "description": "Project template for Drupal projects with a relocated document root",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "homepage": "https://www.drupal.org/project/drupal",
    "support": {
        "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
        "chat": "https://www.drupal.org/node/314178"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],
    "require": {
        "composer-runtime-api": "^2.0.0",
        "composer/installers": "^2.0",
        "cweagans/composer-patches": "^1.7",
        "drupal/core-composer-scaffold": "^10.0",
        "drupal/core-project-message": "^10.0",
        "drupal/core-recommended": "^10.0",
        "drupal/dotenv": "^1.2",
        "drupal/jsonapi_menu_items": "^1.2",
        "drupal/jsonapi_resources": "^1.0@beta",
        "drupal/jsonapi_views": "^1.1",
        "drupal/next": "^1.6",
        "drush/drush": "^11.5"
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "config": {
        "discard-changes": true,
        "platform": {
            "php": "8.1.16"
        },
        "sort-packages": true,
        "allow-plugins": {
            "ergebnis/composer-normalize": true,
            "composer/installers": true,
            "cweagans/composer-patches": true,
            "composer/package-versions-deprecated": true,
            "drupal/core-composer-scaffold": true,
            "oomphinc/composer-installers-extender": true,
            "drupal-composer/drupal-scaffold": true,
            "drupal/core-project-message": false
        }
    },
    "extra": {
        "drupal-scaffold": {
            "locations": {
                "web-root": "public/"
            }
        },
        "installer-paths": {
            "public/core": [
                "type:drupal-core"
            ],
            "public/libraries/{$name}": [
                "type:drupal-library"
            ],
            "public/modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "public/profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "public/themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "public/modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "public/profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "public/themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ]
        },
        "extra": {
            "composer-exit-on-patch-failure": true,
            "patches": {
                "drupal/subrequests": {
                    "Get same results on different request": "https://www.drupal.org/files/issues/2019-07-18/change_request_type-63049395-09.patch"
                },
                "drupal/decoupled_router": {
                    "Unable to resolve path on node in other language than default": "https://www.drupal.org/files/issues/2021-05-05/3111456-34.patch"
                }
            }
        }
    }
}


Defining End Time with angular

How do i set the value of the endtime dynamically?
Something like this does not work:
< timer end-time="{{object.time}}" >{{days}} days, {{hours}} hours, {{minutes}} minutes, {{seconds}} seconds.< /timer >
I put in the spaces because in the last issue github escaped the timer tags

Have you tried without the {{ syntax? Usually, attributes prefer binding to the object itself rather than what it evaluates to:
<timer end-time="object.time" ..
Side note: You can avoid the escaping by using the \`` key on each end of code. If you have a block of code, you can surround it with ````.

I have the same issue, with or without {{ }}syntax. Is there anyway to allow two-way-binding for these attributes, it would make the module very useful. Thanks.

my fix is to parseInt my variable and add it without {{}} syntax. for example:
$scope.mytime = parseInt('1430604000000');
<timer end-time="mytime" ..
that fixed the problem for me

I have this issue as well and none of the above solutions worked for me. A notice would have been nice since this directive loses a lot of value without supporting dynamic values.

same here .. no solution works

+1

same problem with or without {{}}. Useless without data-binding.

yeap.

+1

+1

same here !!

+1


[HOLD for payment 2023-08-17] [$1000] Web - Inconsistent display format for phone number contact in members page of workspace and room

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
Precondition: Either logged in user should have primary account as phone number or logged user should have common workspace with user having primary account as phone number

Open the app
Open workspace room which has user with phone number as primary contact
Click on header to open details page
Click on members and observe the format of phone number contact displayed below display name of that user
Click on back and click on workspace name
Click on members and observe the format of phone number contact displayed below display name of that user, it is different then the one in step 4

Expected Result:
App should display phone number contact in newer format throughout the app on details pages
Actual Result:
App displays phone number contact in older format on room members page causing inconsistency in format between room members page and workspace members page
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.45-7
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/a46055fd-3620-4794-b15b-71a135154e50
https://github.com/Expensify/App/assets/93399543/d58db0e9-992f-40ad-9afd-2122b5ce7015
Expensify/Expensify Issue URL:
Issue reported by: GH handle - @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690377835176189
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01584c3a7472629000
Upwork Job ID:<PHONE_NUMBER>942258688
Last Price Increase: 2023-08-03
Automatic offers:

fedirjh | Reviewer | 25991568
samh-nl | Contributor | 25991575

Woot! Looks like we got proposals! cc @fedirjh

For above issue, we are by default showing alternate text that's why it's showing inconsistent display format for phone number, for fixing this issue we can change alternate text to "Text" or "Search Text"

![Expensify](https://github.com/Expensify/App/assets/82495417/84d4ba27-e476-4069-a261-07c54e32cdeb)

Great work here!

Payment summary:

Reporter: @dhanashree-sawant $250
Contributor: @samh-nl $1,500
C+: @fedirjh $1,500

Upwork job. Please apply!

Hi @dylanexpensify, If possible, can you send me invite to the job?

Payments sent @fedirjh and @samh-nl!  @dhanashree-sawant invite to job sent!

Offer waiting to be accepted @dhanashree-sawant!

Thanks @dylanexpensify, I have accepted the offer.

Paying out!

all done!


go: nested class names can conflict with top-level names

:bug: Bug Report
Affected Languages

[x] GoLang
[ ] TypeScript or Javascript
[ ] Python
[ ] Java
[ ] .NET (C#, F#, ...)

General Information

JSII Version: 1.24.0
Platform: any

What is the problem?
Consider the following jsii code (widely used in the CDK L1 generated output):
export interface CfnBrokerProps {
  readonly tags?: CfnBroker.TagsEntryProperty[];
}

export namespace CfnBroker {
  export interface TagsEntryProperty {
    readonly key: string;
    readonly value: string;
  }
}

This will result in the following go output:
// duplicate-names
package duplicatenames

type CfnBrokerProps struct {
	Tags []cfnbroker.TagsEntryProperty `json:"tags"`
}

If I would add a class to my jsii code, e.g:
export class FooBar {
  public brokerTags?: CfnBroker.TagsEntryProperty;
}

Then, the imports are added.

Fixed by #2650


Commented out sections in TPCC

Hi, I'm looking at DBx1000's implementation of "new order" transactions in TPCC, and came across the following line:
https://github.com/yxymit/DBx1000/blob/fda3950a1837f5d75e46b5aaeb550731d40c3ac0/benchmarks/tpcc_txn.cpp#L424
The commented-out section that comes below inserts to the order line table, which is required by TPCC. Is it a bug?
It also appears to me that the benchmarks in DBx1000 don't exercise insert_row() in any index structures, but the indexes themselves seem functional. Is this intended?

Hi Yihe,
We disabled inserts in TPC-C in order to keep the memory footprint low. We found that with inserts, the program can quickly run out of memory. Disabling inserts is ok for us since inserts were not the main focus of our previous research. If you want to study performance for indexes, you should uncomment those lines. The hash index should work properly with inserts/deletes. We haven't tested the B-tree index for a while; so be careful with B-tree since there might be bugs.
Best,
Xiangyao

Thanks for the clarification Xiangyao!


Context Menu Actions in a ListView

This document is incorrect as Context Menu Actions don't work in a ListView on Android for the last 2 years: https://github.com/xamarin/Xamarin.Forms/issues/2180

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 1b0eed28-8065-951a-1b3f-325c59414a7c
Version Independent ID: eac566b7-faba-2bea-f9c4-bdadff5169f6
Content: ListView Interactivity - Xamarin
Content Source: docs/xamarin-forms/user-interface/listview/interactivity.md
Product: xamarin
Technology: xamarin-forms
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @tchadwick
I just tried the sample associated with the doc, and context menu actions in a ListView on Android worked just fine.

Hello @davidbritch, Thank you for the swift response, the context menu works, but the select event/selected item binding (both) on the listview stops working, this makes the listview near useless for 95% of use-cases.

@tchadwick
I'm struggling to repo this. I tried this sample and was able to use context menu items, and the selected event still fired afterwards.


graphql client api mutations[codegen] help...

Which Category is your question related to?
API Graphql
What AWS Services are you utilizing?
Auth, API, Storage
Provide additional details e.g. code snippets
Hello @mikeparisstuff and @kaustavghosh06 I am loving Amplify CLI but I am wondering what I am doing wrong with respect to calling the codegen created mutations, the queries seem to work ok. Below are details:
I have created a Vue.js project please see package.json below:

Here is my schema:

Here is the "codgen" generated mutation:

Here is the import:

Here is the call within the Vue.js "method" section:

Here is the error I continue to get.. :

Please help... I have tried many variations but can't see why it is failing.. I basically just tried to follow the examples from here
Any suggestions or help would be very appreciated.. Thanks in advance for your time..

Have you tried await uuidv4()?

@jkeys-ecg-nmsu  Thanks I just did try  await uuidv4() and still no go.. same error. I have even tried hard coding a string i.e. {input: {recording_id:"this-is-a-uuid"}} and still getting "Variable input has coerced Null..."
Thanks for the idea though.

I had to set owner as nullable, otherwise the API expects it in the input. It should be set automatically either way.

@sgoveia I had another approach, I updated my schema on AppSync console, and removed the required (!) for owner attribute like this
input CreateRecordingsInput {
	id: ID
	recording_id: String!
	owner: String
}

and saved the schema and tried with this code
async callApi() {
    const new_recording = {
      recording_id: uuid(),
    }
    const response = await API.graphql(graphqlOperation(mutations.createRecordings, { input: new_recording }));
    console.log({response});
  }

Ah.. @elorzafe  yes thank you! looks and works great!
@UnleashedMind , @kaustavghosh06 this issue can be closed! Thanks to all who have helped..!!


Configured debug type 'extensionHost' is not supported.

VSCode Version: code-oss-dev 1.7.0 (Commit unknown, Date unknown)
OS Version: Darwin x64 16.1.0
Extensions:

As title described

This is as designed, when you run vscode out of source the node debug is not packaged as an extension - it only gets packaged once you build the full vscode.
What you need to do is copy the node-debug from your vscode stable installation folder inside your user .vscode-oss-dev/extensions folder. That way the out of source vscode will pick up the built in node debug extension

oh thanks!!

I have the same issue.
The closest I find to a node-debug extension in the vscode stable installation folder is
<app path>\resources\app\extensions\ms-vscode.node-debug
<app path>\resources\app\extensions\ms-vscode.node-debug2

I coped these folders in to my ~/.vscode-oss-dev/extensions folder and it removes the error but now I see this when trying to debug my extension

just to add
  windows 10 64 bit
  npm: 4.0.2,
  http_parser: '2.7.0',
  node: '6.9.1',
  v8: '5.1.281.84',
  uv: '1.9.1',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  icu: '57.1',
  modules: '48',
  openssl: '1.0.2j'

@pflannery in the 'launch.json' under 'args' as the first argument of the array you should add a path to your vscode repository.
As to why this is exactly needed @weinand can clarify

This is as designed, when you run vscode out of source the node debug is not packaged as an extension - it only gets packaged once you build the full vscode.

So why can't there be some sort of better install script that actually installs node debug for the dev version too?
Also, if by stable version you happen to mean the one on the website, that one isn't free software (see #17996 ) which means being required to copy from it would imply the "Code - OSS Dev" free version actually doesn't properly work without copying from a proprietary software which is somewhat suboptimal.

@JonasT just checkout vscode-node-debug, do an npm install and a gulp package. Then side-load the resulting vsix into Code - OSS Dev.

https://github.com/Microsoft/vscode-go/wiki/sideload Is this the sideload procedure I need to use? Ok, let me try whether that works..
As a note: from #12570 it sounds like this is no longer supposed to be necessary, or did I misunderstand that ticket? It would be neat if at some point an install script would automatically address this.

Ok that worked, and after editing the launch args as in https://github.com/Microsoft/vscode/issues/13394#issuecomment-263220546 it launches VSCode for debugging - however, apparently not with the extension loaded which I want to debug :confused: (it's not listed in extensions in the inner instance - shouldn't it be?)
Also this whole process seems a bit complicated.. e.g. why do I need to edit the launch args, and does everyone else who wants to test it need to do it too? Should I remove the .vscode/launch.json from the repository so everyone can edit it without conflicts? I still don't really understand the intended workflow

I run Code - OSS Dev because I'd rather have a free piece of software I can freely tinker with than this abomination of a license: https://code.visualstudio.com/License/ (pretty standard for proprietary software I'm aware, but that doesn't make it much better)
Why is debugging an extension not directly support from the free software of VS Code?

Because in the 'free' version of VS Code you are 'free' to decide what extensions you want to use. We do not want to force anybody to use the node debug extension (and we believe that the "Install from VSIX..." action makes it painless to include any extension you want to use).

That does actually kind of make sense. Would I have needed to manually locate, download & build node-debug though? It would make sense to at least make that process a little easier since I imagine it's a common extension. (for example, by adding a list of commonly downloaded extensions right into VS Code where you can just click the name and it gets downloaded & installed)
Unless of course that's already inside and I was just needlessly taking the route with more effort :smile:

We are assuming that if you want to build 'Code - OSS Dev' yourself, then you probably want to build 'node-debug' yourself too.
If you need an easier route, just use the stable or Insider versions, they include the node debugger extension automatically.


kubernetes throws an error: certificate signed by unknown authority from the latest acs-engine (0.80) for self signed certificate

Is this a request for help?:
No
Is this an ISSUE or FEATURE REQUEST? (choose one):
Issue
What version of acs-engine?:
0.80

Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernetes
What happened:
after cluster install I issued "kubectl get nodes". It gives you "Unknown Authority" error
What you expected to happen:
Previous version I believe I was able to communicate without this issue
How to reproduce it (as minimally and precisely as possible):
Install cluster using 0.80 acs-engine with self-signed certificate and issue any kubectl command
Anything else we need to know:
I didn't try properly signed certificate so I am not 100% sure "self signed" certificate is an issue here.

We will look into this, thank you!

@lachie83 When you get a chance this week could you build a 1.8.0 cluster using acs-engine (either master or v0.8.0 should repro), and try to verify that the user-provided self-signed cert flow is broken?


Implement info-update event in wechaty

We do have a dirty event to invalid cache, however the bot also needs to listen to such events so that it can update external long-term storage such as database.
After some early thinking, I think we have 3 basic options here.

So far the dirty events stop propagation at wechaty level. If we can make it through out to bot level, the bot can use the payload (usually id) to load the new data and refresh database.
pros and cons: minum change to the current design. Dirty events fire frequently, may cause abundant I/O stress.

New event: 'Info-update'

We can create a new event which focus on this functionality. It can be very specefic. e.g.
export interface InfoUpdateEventPayload {
  type: string,
  id: string,
  field: string,
  oldValue?: string,
  newValue: string,
}

pros and cons: This event will fit our current need perfectly, we don't even have to sync and load payload again. However there is not much expansibility with this design. (maybe message info update? e.g. we can update the message sending status to failed after the callback since the deleted event comes later than message sending callback)

New event: 'System-Notification'

We can create a more flexible new event than the previous design. This is similar to system message in message event but with no coversation id. Possible scenario may include info modification, notifications (e.g. get banned by Tencent)and post events (we don't have initiative post event so far).
pros and cons: Just the opsit to the second design. Many stuff can be put into this event and it will be hard to write a clear tye definition.
Personally I like design 2.

Vote 2

Merged