Changes I've done to get Governor to work other then localhost

I had to change some things to get governor work with something other then localhost.
First I had to change etcd so it uses init and my own config:
In /etc/init/etcd.override:
# Override file for etcd Upstart script providing some environment variables
env ETCD_INITIAL_CLUSTER="sql1=http://<IP_ADDRESS>:2380,sql2=http://<IP_ADDRESS>:2380,etcd=http://<IP_ADDRESS>:2380"
env ETCD_INITIAL_CLUSTER_STATE="new"
env ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
env ETCD_INITIAL_ADVERTISE_PEER_URLS="http://<IP_ADDRESS>:2380"
env ETCD_DATA_DIR="/var/lib/postgresql/governor/data/etcd"
env ETCD_LISTEN_PEER_URLS="http://<IP_ADDRESS>:2380"
env ETCD_LISTEN_CLIENT_URLS="http://<IP_ADDRESS>:2379"
env ETCD_ADVERTISE_CLIENT_URLS="http://<IP_ADDRESS>:2379"
env ETCD_NAME="sql1"

In helpers/postgresql.py I added the following line:
        f.write("host all all %(self)s trust\n" % {"self": self.replication["self"]} )

right after:
     def write_pg_hba(self):
         f = open("%s/pg_hba.conf" % self.data_dir, "a")

and lastly added:
self: <IP_ADDRESS>/24

to the postgresX.yml files. This not ideal as now the hole <IP_ADDRESS>/24 network is trusted. But it did the trick for now. I would like to know you guys thought on this.

I'm thinking we should add rows for pg_hba.conf to the postgresX.yml files.  As part of the initialization process, Governor should create the proper pg_hba.conf records.  That would allow people to customize the cluster based on their needs.
postgres:
  pg_hba:
    - type: local
      database: all
      user: all
      method: trust
    - type: host
      database: all
      user: all
      address: <IP_ADDRESS>/32
      method: trust
    - type: host
      database: all
      user: all
      address:  "::1/128"
      method: trust
    - type: hostssl
      database: all
      user: all
      address: <IP_ADDRESS>/0
      type: md5

The replication user should automatically be added when creating the pg_hba.conf.

@Winslett yes that would be a nice start.

I think we need to (re)write the postgresql.conf as well for this to work:

Note: Remote TCP/IP connections will not be possible unless the server is started with an appropriate >value for the listen_addresses configuration parameter, since the default behavior is to listen for TCP/IP >connections only on the local loopback address localhost.

Thank for interesting HA solution!
I tried to implement Postgres HA solution with governor not on localhost and that is not implement, there are many errors, fault's and etc (
I think bug need to prioritize.

It is not really a bug. I have it working now on non-localhost ip addresses. I had to change the helpers/postgresql.py file so it will write the correct  listen_addresses to postgresql.conf and had to move the write_pg_hba() en the extra write_postgresql_conf() function before the pg_ctl start function together with the changes in the first post to get postgres to start correctly.
def initialize(self):
        if os.system("initdb -D %s" % self.data_dir) == 0:
            # start Postgres without options to setup replication user indepedent of other system settings
            self.write_postgresql_conf()
            self.write_pg_hba()
            os.system("pg_ctl start -w -D %s" % self.data_dir)

the postgresql_conf function itself:
    def write_postgresql_conf(self):
        f = open("%s/postgresql.conf" % self.data_dir, "a")
        f.write("listen_addresses = '%s'" % self.host )
        f.close()

@tvb, do you have the non-localhost code available somewhere, like a fork or a branch? I'd love to take a look at it ;-)

@wkielas sorry. I do not :(


Issue #15 - Add a script tag into README

@crazy4groovy I appreciate the thought you've put into this, but I'm going to leave the installation section as-is for the time being. There are too many caveats with linking from rawgit, etc. I'd consider a link from cdnjs, so feel free to request in-view there.


Fixing references / view file due to view compilation errors

see: https://github.com/OrchardCMS/Orchard/issues/7713

@jimasp,
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

Should we merge this one or wait for more changes from you @BenedekFarkas ?

I think we can merge this, as it definitely brings us closer to the goal, but let's not close the issue yet.
I'll open another PR with my changes after this one is merged, then we can discuss how to proceed (judging from what @jimasp commented on the issue, he's testing from VS, but I think validating with MSBuild is also necessary, see my comments on the issue about that).


Adapt repo to new rust-optimizer

The latest https://github.com/CosmWasm/rust-optimizer writes into a different directory.

[ ] Update static WASM: &[u8] = include_bytes!("../contract.wasm");  in tests/integration.rs
[ ] ...

And use the latest version.. it is 0.11.4 I think now and makes smaller and cheaper executables


[Agent] Lingo Wizard

systemRole
Lingo Wizard
You are Lingo Wizard, a multilingual assistant specializing in translating text into the specified language and refining expressions to be clear, natural, and conversational.

How to Use:

Translate or Enhance Text:

Default Output is English: Simply input the text, and you will translate or enhance it in English.

Specify Target Language: Clearly specify the target language within curly braces {}. The language of the instruction does not affect the output language.

Example:

Input:
{Please translate into Spanish}
"Thank you for your help."

Output:
Gracias por tu ayuda.

Specify Style or Tone:

Provide style or tone instructions within {}; these do not change the default output language.

Example:

Input:
"What are you doing?"
{Use a humorous tone}

Output:
What are you up to?

Provide Instructions or Ask Questions:

Content within {} is considered an instruction or question for you.
Asking for Usage Instructions: If a user asks "How can I use you?" within {}, provide these usage instructions.

Important Notes:

Output Language: Always default to outputting in English, unless another target language is explicitly specified within {}.
Instruction Language: The language used within {} does not affect the output language. Do not infer the output language from the instruction language unless explicitly stated.
Style and Tone: Can be specified within {}, and you will apply these in the default or specified target language.
Do not infer the target language based on the language of the instructions within {}.

👀

Input:
"What are you doing?"
{Translate into French, keep a formal tone}

Output:
Que faites-vous ?

Input:
{How can I use you?}

Output:
(Provides the above usage instructions.)

By following these guidelines, you will correctly translate or enhance text in English by default, unless another target language is specified within {}. You will not infer the output language based on the language of the instructions.
identifier
lingo-wizard
avatar
🧙♂
title
Lingo Wizard
description
Bilingual translator and enhancer.
tags
翻译, 多语言, 文本增强, 交流, 使用
locale
zh-CN

system role 是英文，meta 相关信息也需要是英文


Secondary survey support including and myfoodrepo hand off

Per the title

@cassidysymons, I'm merging as I think you were +1 on this. Please revert if incorrect


Display tooltip on truncated labels in tags (multiple mode)

First, thx for this wonderful component ! ❤
We are currently migrating our codebase to use virtual-select everywhere and it works fine 👍
Currently, it looks like a tooltip is displayed only when the single selected value overflows in the select, but there's no tooltip on tags when the multiple mode is enabled :
See for instance below, the text is truncated but there's no tooltip

would it be possible to add this feature ?

@abenhamdine could you please share the scenario (code pen or similar) where you're not getting the tooltip?

@abenhamdine I created a PR to add this behaviour for tags.
cc: @sa-si-dev

Fixed in release v1.0.41


DH keyexch: gettable params include wrong param

In providers/implementations/exchange/dh_exch.c:
static const OSSL_PARAM known_gettable_ctx_params[] = {
    OSSL_PARAM_int(OSSL_EXCHANGE_PARAM_EC_ECDH_COFACTOR_MODE, NULL),   <---- see here
    OSSL_PARAM_utf8_string(OSSL_EXCHANGE_PARAM_KDF_TYPE, NULL, 0),
    OSSL_PARAM_utf8_string(OSSL_EXCHANGE_PARAM_KDF_DIGEST, NULL, 0),
    OSSL_PARAM_size_t(OSSL_EXCHANGE_PARAM_KDF_OUTLEN, NULL),
    OSSL_PARAM_DEFN(OSSL_EXCHANGE_PARAM_KDF_UKM, OSSL_PARAM_OCTET_PTR,
                    NULL, 0),
    OSSL_PARAM_END
};

I would say that OSSL_EXCHANGE_PARAM_EC_ECDH_COFACTOR_MODE does not belong there.
Its an ECDH parameter, and is not handled anywhere in the DH code.
Most likely just a copy & paste leftover from the EC keyexch code....

Fix in #17515. Thank you for the report.


how to update about JavaEsSpark.saveToEs

What kind an issue is this?
JavaEsSpark.saveToEs is replace or not update
I wan't update data or not replace in one id

[ ] Bug report. If you’ve found a bug, please provide a code snippet or test to reproduce it below.
The easier it is to track down the bug, the faster it is solved.
[x] Feature Request. Start by telling us what problem you’re trying to solve.
Often a solution already exists! Don’t send pull requests to implement new features without
first getting our support. Sometimes we leave features out on purpose to keep the project small.

Issue description
Description
My test ES data:
#! Deprecation: query malformed, empty clause found at [2:13]
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "face_imsi_test",
"_type": "face_imsi_test",
"_id": "123",
"_score": 1,
"_source": {
"img_id": "11",
"img_url": "11",
"pid": "123",
"imsis": [
{
"imsi114": "10"
}
],
"update_time": "2017-10-12 19:49:04"
}
}
]
}
}
if My new data is "pid:123,imsis{imsi113:10}" I want update or not replace
I want data as follow:
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "face_imsi_test",
"_type": "face_imsi_test",
"_id": "123",
"_score": 1,
"_source": {
"img_id": "11",
"img_url": "11",
"pid": "123",
"imsis": [
{
"imsi114": "10",
"imsi113": "10"
}
],
"update_time": "2017-10-12 19:49:04"
}
}
]
}
}
if My new data is "pid:123,imsis{imsi114:20}" I want update or not replace
I want data as follow:
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "face_imsi_test",
"_type": "face_imsi_test",
"_id": "123",
"_score": 1,
"_source": {
"img_id": "11",
"img_url": "11",
"pid": "123",
"imsis": [
{
"imsi114": "20",
"imsi113": "10"
}
],
"update_time": "2017-10-12 19:49:04"
}
}
]
}
}
but now it's replace : My new data is "pid:123,imsis{imsi113:10}"
the result as follow
#! Deprecation: query malformed, empty clause found at [2:13]
{
"took": 1,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "face_imsi_test",
"_type": "face_imsi_test",
"_id": "123",
"_score": 1,
"_source": {
"img_id": "11",
"img_url": "11",
"pid": "123",
"imsis": [
{
"imsi113": "10"
}
],
"update_time": "2017-10-12 19:49:04"
}
}
]
}
}
ES mapping:
PUT face_imsi
{
"mappings": {
"face_imsi": {
"properties": {
"pid": {
"type": "keyword"
},
"img_url": {
"type": "keyword"
},
"img_id": {
"type": "keyword"
},
"update_time": {
"type" : "date",
"doc_values" : true,
"format" : "yyyy-MM-dd HH:mm:ss"
},
"imsis": {
"type": "nested",
"properties": {
"imsi":    { "type": "keyword"  },
"match_times": { "type": "integer"  }
}
}
}
}
}
}
Steps to reproduce
Code:
Test/code snippet

SparkConf conf = new SparkConf();
conf.set("es.nodes", "<IP_ADDRESS>");
conf.set("es.port", "9200");
if (Shell.WINDOWS) {
conf.setMaster("local");
conf.setAppName(FaceAndImsiTest.class.getName());
}
SparkSession spark = SparkSession.builder().appName("Java Spark SQL basic example").config(conf).config("es.write.operation", "upsert").getOrCreate();
JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
    List<Map<String, Object>> imsis = new LinkedList<>();
    Map<String, Object> imsi = new HashMap<>();
    imsi.put("imsi113","10");
    imsis.add(imsi);

    List<MatchImsiPo> lm = new LinkedList<>();
    MatchImsiPo mp = new MatchImsiPo("123","11","11","2017-10-12 19:49:04",imsis);
    lm.add(mp);
    JavaRDD<MatchImsiPo> esRdd = sc.parallelize(lm);

    Map<String, String> vmId = new HashMap<>();
    vmId.put("es.mapping.id", "pid");
    JavaEsSpark.saveToEs(esRdd, "face_imsi_test/face_imsi_test",vmId);

Strack trace:
Stack trace goes here

see Description
Version Info
OS:         :  centos 6.5
JVM         :
Hadoop/Spark:  2.6.0/2.1.0
ES-Hadoop   :
ES          :   5.5.0
elasticsearch-spark-20_2.11 : 5.5.0

Feature description

As we mentioned previously: "Please post questions on the forums as github is reserved for confirmed bug reports and feature tracking." If you feel like this ticket belongs on github, please comment here instead of opening new tickets, and we can see about re-opening.

sorry, I feel like this ticket belongs on github, so , come in

sorry, I feel like this ticket belongs on github, so , come in

You've provided no extra information as to why this might be a bug. If you read the documentation on ES updates and on how ES-Hadoop does updates you will find that there is an update operation that can be configured that allows partial updates to be applied. In the cases of modifying data structures like lists, one can use the built in scripting support to write a painless script that modifies the underlying data structure.


Cxx17

Added GCC/GCC7/Clang5 C++17 + GCC7 C++14 toolchain.
No GCC5 because GCC 5 has incomplete C++17 support.

Thanks!


Add documentation to [Raster], [Blob] and [RoundedRect]

Also renamed some parameters to be more consistent, and altered the layout of [Raster] to group similar parameters together. I won't be doing many more layout changes in the near future though, since we don't have a convention for them yet.

Thanks a lot for that great contribution!


Update contact details in the README

points to slack and slack the points to discord. should be directly pointing to slack

Thanks, I'll change in the next PR to point to Discord since we do support there now.


Would it be possible to add a feature to dump structures in hexadecimal?

Hello!
At the moment I can print some slices, but what I would like to do would be to do something like this:
print hex.Dump(something)

Is this something that is currently possible?

what do you mean exactly? What would the output look like?

the output would be the hexadecimal string representation of a byte/int slice

This could be solved when we do better conversions for interface values:
(dlv) call fmt.Printf("%#v", 4)
> main.main() ./server.go:19 (hits goroutine(1):3 total:3) (PC: 0x73f918)
Command failed: can not convert 4 constant to []interface {}


examples/platform_view build failures on iOS simulator

Engine roll: https://github.com/flutter/flutter/pull/113560
Build output: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8800033243652895169/+/u/run_test.dart_for_build_tests_shard_and_subshard_2_4/test_stdout
There is quite a lot of output, but note that the actual test entries which are failing are iOS simulator builds.
[        ] "flutter ios" took 25,854ms.
[   +4 ms] Encountered error while building for device.
[        ]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _BuildIOSSubCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:361:7)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1244:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:283:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:64:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:91:3)
           <asynchronous suspension>

[        ] ensureAnalyticsSent: 0ms
[        ] Running 1 shutdown hook
[        ] Shutdown hooks complete
[        ] exiting with code 1
╔═╡ERROR╞═══════════════════════════════════════════════════════════════════════
║ Command exited with exit code 1 but expected: zero exit code.
║ Command: ../../bin/flutter build ios --no-codesign --debug -v
║ Relative working directory: examples/platform_view
╚═══════════════════════════════════════════════════════════════════════════════

Maybe related https://github.com/flutter/flutter/issues/113539

Yup, that looks like the same issue, closing this one.


Build failed

19:11	Executing tasks: [:app:assembleDebug] in project /home/user/experiments/rosettadrone_mini2
19:12	Gradle build failed in 1 m 54 s 762 ms

I'm new to Android Studio, and don't know much about the guts of compiling software. Where can I find more useful information besides "failed"?
I also see this under Problems:

Cannot resolve symbol '@string/google_key'

And Build Output has a few things:
> Task :app:processDebugResources FAILED
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/home/user/experiments/rosettadrone_mini2/app/src/main/AndroidManifest.xml","position":{"startLine":115,"startColumn":8,"endLine":117,"endColumn":49}}],"original":"/home/user/experiments/rosettadrone_mini2/app/src/main/AndroidManifest.xml:116:9-118:50: AAPT: error: resource string/google_key (aka sq.rogue.rosettadrone:string/google_key) not found.\n    ","tool":"AAPT"}

Android resource linking failed: /home/user/experiments/rosettadrone_mini2/app/src/main/AndroidManifest.xml:116:9-118:50: AAPT: error: resource string/google_key (aka sq.rogue.rosettadrone:string/google_key) not found.

Android resource linking failed
/home/user/experiments/rosettadrone_mini2/app/src/main/AndroidManifest.xml:116:9-118:50: AAPT: error: resource string/google_key (aka sq.rogue.rosettadrone:string/google_key) not found.

> Task :app:externalNativeBuildDebug FAILED
Build djivideojni_armeabi-v7a
ninja: Entering directory `/home/user/experiments/rosettadrone_mini2/app/.cxx/cmake/debug/armeabi-v7a'
[1/2] Building C object CMakeFiles/djivideojni.dir/src/main/cpp/dji_video_jni.c.o
In file included from ../../../../src/main/cpp/dji_video_jni.c:4:
In file included from ../../../../src/main/cpp/ffmpeg.h:34:
In file included from ../../../../src/main/cpp/cmdutils.h:28:
In file included from ../../../../src/main/cpp/include/libavcodec/avcodec.h:31:
In file included from ../../../../src/main/cpp/include/libavutil/samplefmt.h:24:
In file included from ../../../../src/main/cpp/include/libavutil/avutil.h:289:
In file included from ../../../../src/main/cpp/include/libavutil/common.h:401:
In file included from ../../../../src/main/cpp/include/libavutil/mem.h:33:
../../../../src/main/cpp/include/libavutil/error.h:121:5: warning: non-constant static local variable in inline function may be different in different files [-Wstatic-local-in-inline]
    static char str[AV_ERROR_MAX_STRING_SIZE];
    ^
../../../../src/main/cpp/include/libavutil/error.h:119:1: note: use 'static' to give inline function 'av_err2str' internal linkage
av_always_inline char *av_err2str(int errnum) {
^
static
../../../../src/main/cpp/include/libavutil/attributes.h:37:30: note: expanded from macro 'av_always_inline'
#    define av_always_inline __attribute__((always_inline)) inline
                             ^
1 warning generated.
[2/2] Linking C shared library ../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libdjivideojni.so
FAILED: ../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libdjivideojni.so
: && /home/user/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=armv7-none-linux-androideabi22 --gcc-toolchain=/home/user/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/user/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security  -O0 -fno-limit-debug-info  -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--exclude-libs,libunwind.a -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libdjivideojni.so -o ../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libdjivideojni.so CMakeFiles/djivideojni.dir/src/main/cpp/dji_video_jni.c.o  ../../../../src/main/cpp/lib/armeabi-v7a/libffmpeg.so /home/user/Android/Sdk/ndk/22.0.7026061/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/arm-linux-androideabi/22/liblog.so -latomic -lm && :
ld: error: ../../../../src/main/cpp/lib/armeabi-v7a/libffmpeg.so:1: unknown directive: version
>>> version https://git-lfs.github.com/spec/v1
>>> ^
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Make sure you have git-lfs installed before cloning the repo

Make sure you have git-lfs installed before cloning the repo

Also iirc i only added the for aarch64/armv7a, not x86(64)

I have now installed git-lfs to see if that helps.
If I need to change something in order to build for aarch64/armv7a please explain what to change. I went to Build > Select Build Variant, and I see the option arm64-v8a is selected.
Builds keep failing with the same error messages.
The problem seems pretty clearly to be with some Google key. Is it a Google Maps API key? If so, then where am I supposed to put that key? If it's not Google Maps, what is it, how do I get it, and where do I put it?

Could the problem be that in Android Studio, under File > Settings... > System Settings > Android SDK, I have API 32 selected? Should I change it to an earlier version?

Ok, I fixed this by putting a bogus Google Maps key in the keys.xml file (because I don't care about Google Maps, since I usually fly where there's no internet). I generated my signing key, and use Build > Generate Signed Bundle / APK and choose the APK option (because just plain building failed, complaining about not being signed), and then the build failed with the version error mentioned here https://github.com/The1only/rosettadrone/issues/55#issuecomment-805485817 despite having the phone plugged in. So I did the git lfs clone steps from https://github.com/The1only/rosettadrone/issues/55#issuecomment-878260282 and the version error continues. I tried with both build variants release and debug.

you'd want git lfs checkout iirc as that actually replaces the placeholder files with the actual content.
Sorry didnt get to do much lately so progress has been halted.
Will bring everything up to  date the coming weeks and get rid of the SDK hooks

Ok, I finally got this built! The steps:

Using Manjaro Linux, install git-lfs package.
git lfs install # run this anywhere. It must be run once on each machine post-install, otherwise git lfs commands fail quietly.
cd your-favorite-directory
git lfs clone https://github.com/m4xw/rosettadrone_mini2.git
If the previous step doesn't get everything in place, then cd rosettadrone_mini2 && git lfs checkout
Put the keys.xml file with a DJI key and a Google Maps key (or a fake Google Maps key) in rosettadrone_mini2/app/src/main/res/values/
Open Android Studio.
Open Project, select rosettadrone_mini2.
Accept the offer to build the Gradle project, and wait for that to finish.
Set up your signing keys, either by following Android documentation or by going to Build > Generate signed bundle / apk... and choosing APK and following the steps. Honestly, I'm not sure if this step is necessary, since I found it necessary when I was still getting other errors.
Build > Make project
look for the APK in rosettadrone_mini2/app/build/outputs/apk/debug/

@m4xw wrote:

Will bring everything up to date the coming weeks and get rid of the SDK hooks

This sounds great! Thanks for your effort on this, and I look forward to seeing it even more polished.

Ok, I finally got this built! The steps:

Using Manjaro Linux, install git-lfs package.
git lfs install # run this anywhere. It must be run once on each machine post-install, otherwise git lfs commands fail quietly.
cd your-favorite-directory
git lfs clone https://github.com/m4xw/rosettadrone_mini2.git
If the previous step doesn't get everything in place, then cd rosettadrone_mini2 && git lfs checkout
Put the keys.xml file with a DJI key and a Google Maps key (or a fake Google Maps key) in rosettadrone_mini2/app/src/main/res/values/
Plug your Android phone into your computer, and make sure ADB debugging is enabled on the phone. On my Manjaro GNU/Linux system, I plug my phone into my laptop, then I open a console and run adb devices and that starts the ADB server. Maybe your machine is different.
Open Android Studio.
Open Project, select rosettadrone_mini2.
Accept the offer to build the Gradle project, and wait for that to finish.
Set up your signing keys, either by following Android documentation or by going to Build > Generate signed bundle / apk... and choosing APK and following the steps. Honestly, I'm not sure if this step is necessary, since I found it necessary when I was still getting other errors.
Build > Make project
look for the APK in rosettadrone_mini2/app/build/outputs/apk/debug/

Hey, ive downloaded RosettaDrone2 for Mini2 and it opens up and connects to my DJI Mini 2. But when I press "open" on the main screen the app crashes. Any ideas why that is, since u've been working with the Mini2 Repository?

Ok, I finally got this built! The steps:

Using Manjaro Linux, install git-lfs package.
git lfs install # run this anywhere. It must be run once on each machine post-install, otherwise git lfs commands fail quietly.
cd your-favorite-directory
git lfs clone https://github.com/m4xw/rosettadrone_mini2.git
If the previous step doesn't get everything in place, then cd rosettadrone_mini2 && git lfs checkout
Put the keys.xml file with a DJI key and a Google Maps key (or a fake Google Maps key) in rosettadrone_mini2/app/src/main/res/values/
Plug your Android phone into your computer, and make sure ADB debugging is enabled on the phone. On my Manjaro GNU/Linux system, I plug my phone into my laptop, then I open a console and run adb devices and that starts the ADB server. Maybe your machine is different.
Open Android Studio.
Open Project, select rosettadrone_mini2.
Accept the offer to build the Gradle project, and wait for that to finish.
Set up your signing keys, either by following Android documentation or by going to Build > Generate signed bundle / apk... and choosing APK and following the steps. Honestly, I'm not sure if this step is necessary, since I found it necessary when I was still getting other errors.
Build > Make project
look for the APK in rosettadrone_mini2/app/build/outputs/apk/debug/

Hey, ive downloaded RosettaDrone2 for Mini2 and it opens up and connects to my DJI Mini 2. But when I press "open" on the main screen the app crashes. Any ideas why that is, since u've been working with the Mini2 Repository?

Hi, linus131313. I have the same problem how do you solve it?

I solved it by the steps mentioned here https://github.com/m4xw/rosettadrone_mini2/issues/14#issuecomment-1364742735 However, I think there may be other issues as well that are not related to the screen rotation

That fix among others is now upstream as well as a reimpl of my dji waypoint interpreter by one of the new maintainers (@kripper)
Btw @stefansommer i will work on reducing fork distance over time, now that some of the key features of my fork are upstream, so will be porting my video stuff again etc and from there upstream repo becomes more attractive for our purpose again, so we should consider moving the AI stuff there as there seems to be some interest and its now more actively maintained again (For the time being can still only vouch for my impl tho as it is trialed and optimized on real flight data)
But we should def bring everyone together, especially since we all want to have fun with AI ;)

@m4xw Sorry if i ask you, but there is a difference between this repo and the original repo of The1only?

@m4xw Sorry if i ask you, but there is a difference between this repo and the original repo of The1only?

Yes many things. Litchi waypoint processor, far more stable video feed, optimized stream duplication to qgc (compatible with many troublesome phones), DJI waypoint interpreter (now upstream as well somewhat) and a bunch of other fixes.
Its getting less and less tho as upstream gets better!

Btw @stefansommer i will work on reducing fork distance over time, now that some of the key features of my fork are upstream, so will be porting my video stuff again etc and from there upstream repo becomes more attractive for our purpose again, so we should consider moving the AI stuff there as there seems to be some interest and its now more actively maintained again (For the time being can still only vouch for my impl tho as it is trialed and optimized on real flight data)
But we should def bring everyone together, especially since we all want to have fun with AI ;)

Yes, definitely. It is great to see upstream being maintained again, I hadn’t noticed that. Should I start an AI thread in upstream to get discussion started?

agree

Should I start an AI thread in upstream to get discussion started?

Yes, please.

Here: https://github.com/The1only/rosettadrone/discussions/133


org settings: Add modal for time limits.

We have a couple of settings that look like

It would be great to instead change that to be something like "Messages can be edited for: 5 hours [Change]", where Change opens a modal.
The modal should make it easy to choose "No limit", or [input a number] {minutes, hours, days}. It can't be seconds, since we have a buffer of 10-20 seconds on some of our time limits.

@zulipbot claim,

@zulipbot claim

Before zulipbot comments, I've started working on this issue :trollface:

Ahh, Sorry for the delay because of my college exams. I have started working on this again.

will be completing this pr after exams i.e. 18th Dec

Hi! I am a student who needs to contribute to a github project for a class. Would this be an easy task for a beginner?

Hey @aliyareneekhan, the aim of this has changed a lot and I've recently opened a new PR(#8920) for it. There can be some other good first issue to work on. Thank you.

This issue still shows up even when searched with is:open filter.
Please remove it from the same.

@Shoumorup can you explain what you mean?  I don't understand your comment.


util.py Depends on resource

util.py calculates the memory used by the current process using the resource module. This module is *nix specific, and can't be used on Windows. In favor of broader cross-platform compatibility, this module could use psutil to make the same calculation (see this Stack Overflow question for an example)
I encountered this issue in trying to use pyensembl (which depends on gtfparse) from a Windows 10 box.

I just ran into the same issue with a tool that depends on gtfparse. On my windows box, I just edited util.py to no longer import resource and made memory_usage() return some constant number, and I was able to continue.
Please consider following the above suggestion to use something more cross-platform rather than the unix-specific resource module.

@mattiyeh & @definitelysean -- do either of you mind submitting a PR with how you'd prefer to get memory usage in a Windows compatible way?

Came up as a problem for another Windows user: https://github.com/openvax/varcode/issues/234


Nima: WebClient Proxy Support

https://github.com/helidon-io/helidon/issues/6006
Supports proxy type HTTP/1.X.
It does not support proxy authentication so far.

I went through all your comments @Verdent
The missing part is still this comment: https://github.com/helidon-io/helidon/pull/6441#pullrequestreview-1500510216
I set this as a draft meanwhile I work on that. The other comments can be reviewed.

This comment is also done: https://github.com/helidon-io/helidon/pull/6441#pullrequestreview-1500510216


Update schemars to latest version in all four casper crates (node, ee, types and hashing)

Triaged. Low priority.


File open / stream reports correct Filesize but stream is 0

Hi - the example PPPoS_Client.ino with http GET work well.
I have modified it to the open File/Stream example from the same HttpGet library (StreamHTTPClient) . It connects the webserver on the other side, requests the file, get the correct filesize (http.getSize();) but then the size = stream->available(); reports 0 !?
Any hints?

The debug output of the ESP32:
Requesting File http://<IP_ADDRESS>/test.avi
[  9617][V][HTTPClient.cpp:245] beginInternal(): url: http://<IP_ADDRESS>/test.avi
[  9622][D][HTTPClient.cpp:293] beginInternal(): protocol: http, host: <IP_ADDRESS> port: 80 url: /test.avi
[  9634][D][HTTPClient.cpp:579] sendRequest(): request type: 'GET' redirCount: 0
[  9665][D][HTTPClient.cpp:1125] connect():  connected to <IP_ADDRESS>:80
[  9728][V][HTTPClient.cpp:1216] handleHeaderResponse(): RX: 'HTTP/1.0 200 OK'
[  9728][V][HTTPClient.cpp:1216] handleHeaderResponse(): RX: 'Server: SimpleHTTP/0.6 Python/3.8.10'
[  9733][V][HTTPClient.cpp:1216] handleHeaderResponse(): RX: 'Date: Mon, 06 Mar 2023 11:44:09 GMT'
[  9741][V][HTTPClient.cpp:1216] handleHeaderResponse(): RX: 'Content-type: video/MP2T'
[  9749][V][HTTPClient.cpp:1216] handleHeaderResponse(): RX: 'Content-Length: 17296'
[  9757][V][HTTPClient.cpp:1216] handleHeaderResponse(): RX: 'Last-Modified: Tue, 24 Jan 2023 15:28:42 GMT'
[  9766][V][HTTPClient.cpp:1216] handleHeaderResponse(): RX: ''
[  9771][D][HTTPClient.cpp:1257] handleHeaderResponse(): code: 200
[  9777][D][HTTPClient.cpp:1260] handleHeaderResponse(): size: 17296
[  9783][D][HTTPClient.cpp:603] sendRequest(): sendRequest code=200
[HTTP] GET... code: 200<\n>
Len:17296
stream
size:0
size:0
size:0
size:0
...


Memcache Expire Regression

https://github.com/yiisoft/yii2/commit/fcf2d0a3f2e4371be6fe09d9aa435fd006bed07b#diff-f9f025d17dc839d144e378e0dda1414cL202
Memcached uses timestamp expiration, while Memcache uses seconds (this is only for set however. For add it uses expiration)
http://php.net/manual/en/memcache.set.php
http://php.net/manual/en/memcached.expiration.php
I'll get a pull request in

PHP manual says "Expiration time of the item. If it's equal to zero, the item will never expire. You can also use Unix timestamp or a number of seconds starting from current time, ..."


Weekly build failures

Helix-machines and helix-service weekly builds are failing with:
Exception: Microsoft.Rest.Azure.CloudException: The access token is from the wrong issuer 'https://sts.windows.net/975f013f-7f24-47e8-a7d3-abc4752bf346/'. It must match the tenant 'https://sts.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47' to get the token. Note, if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later.

Release Note Category

[ ] Feature changes/additions
[ ] Bug fixes
[ ] Internal Infrastructure Improvements

Release Note Description

I've seen this before. Running secret-manager locally should be enough to unblock the weekly builds. It seems like there's something more to this error as it keeps popping up so it would be good to create a follow-up Ops issue to find the root cause.

Ran secret-manager locally over all manifests on both repos. No manual intervention was needed.
I'm running the weekly pipelines as well to validate that there are no more secrets that still need attention:
https://dev.azure.com/dnceng/internal/_build/results?buildId=2461675&view=results
https://dev.azure.com/dnceng/internal/_build/results?buildId=2461680&view=results

Both weekly builds are passing now. I'll create a follow-up ops issue to figure out the underlying error and close this afterwards.

Opened https://github.com/dotnet/dnceng/issues/2964 for fixing the underlying issue


Some minor CSS improvements.

Projector: Use same line height in list elements as in content.
Projector: Reduce indentation of ul/ol lists.
Projector: Add more space between line numbers and motion text,
Agenda list: Remove padding-left in item list view.

@normanjaeckel Please review later.

Ok.


Added Parallelism configuration option to lakectl

Closes #8159
Change Description
Added the option to configure the amount of parallelism for lakectl.
See feature request  for more backround.
Currently, the configuration nests in a new section "Options"

@N-o-Z Thank you for your review!
Got rid of all the redundancies. LMK what do you think.


Do not dispatch Actions with pending dependent value updates

While there are AttributeValues for any given Component that are still involved in a DependentValuesUpdate, we want to hold off on dispatching any Actions for those Components. This will let us make sure that the Action will be operating with the most up-to-date data possible in the model.
Now that we're tracking the root nodes for the DependentValuesUpdate graph of AttributeValues to update, we can directly check the Components that are involved in the pending DependentValuesUpdate to see if an Action would operate on an involved Component.

bors try

bors r+


Cannot find module 'har-schema'

I am facing "Cannot find module 'har-schema' " issue while updating npm.
even I can not install har-schema manually.
can you please help me in this.

is this still occuring?


Multiple Domain support

Hello, I just wanted to reach out I am trying to get multiple domain support working,
I have 2 domains in Cloudflare:
example.app
example.onl
my ingress's
hello.example.app, hello.test.example.app => hello-service
hello.example.onl => hello-service
When I apply the ingress config I have tried 1 ingress with 3 rules/tls blocks, I have tried 2 separate ingress resources for each domain
the example.app ingress I have for the 2 hello subdomains that one works and routes accordingly  to the hello service I get the webpage all is fine (both URL's), I check Cloudflare I have 2 origin certificates in the correct domain, the dns records are orange proxied, pointed to my nginx ingress LB everything is great there.
The ingress definition for hello.example.onl to the other domain it also creates an origin server in the correct zone but when going to the URL I get ERR_TOO_MANY_REDIRECTS error in chrome the dns record for this one is proxied (orange proxy icon), the only difference between the 2 ingress definitions is the domain url, they both use the same OriginIssuer the api key for the OriginIssuer has access to both zones as it does create the origin certs in both the respective zones.

Okay so I'm closing this ticket because I figured it out, and was a me problem
Forgot to turn on strict TLS on the onl domain, once I did that it worked immediately.


Clairctl push cannot push local official dockerhub image to clair

Clairctl push cannot push a local official docker.io image.
sf-clair ~ # docker pull nginx:1.11.5
1.11.5: Pulling from library/nginx
43c265008fae: Already exists
e4c030a565b1: Pull complete
685b7631c1ce: Pull complete
Digest: sha256:dedbce721065b2bcfae35d2b0690857bb6c3b4b7dd48bfe7fc7b53693731beff
Status: Downloaded newer image for nginx:1.11.5

sf-clair ~ # clairctl --log-level debug push nginx:1.11.5 -l
DEBU[0000] Using config file: /root/clairctl.yml
INFO[0000] retrieving docker0 interface as local IP
DEBU[0000] Update local server port from "0" to "40293"
INFO[0000] Starting Server on <IP_ADDRESS>:40293
DEBU[0000] docker image to save:  nginx
DEBU[0000] saving in:  /var/opt/tmp/hyperclair/nginx/blobs

Meanwhile in the temp dir
sf-clair ~ # ls -alh /var/opt/tmp/hyperclair/nginx/blobs/
total 181M
drwxr-xr-x. 2 root root 4.0K Oct 27 13:08 .
drwxr-xr-x. 3 root root 4.0K Oct 27 13:08 ..
-rw-r--r--. 1 root root 181M Oct 27 13:09 output.tar

Then it crashes with the following
client quit unexpectedly
FATA[0085] retrieving manifest for "nginx:1.11.5": unexpected EOF

No cleanup is done after the crash
sf-clair ~ # ls -alh /var/opt/tmp/hyperclair/nginx/blobs/
total 181M
drwxr-xr-x. 5 root root 4.0K Oct 27 13:09 .
drwxr-xr-x. 3 root root 4.0K Oct 27 13:08 ..
drwxr-xr-x. 2 root root 4.0K Oct 27 13:09 86b2a981852b216252b88a7734030495b7fa07936d63f6cf3e572faa4969b442
drwxr-xr-x. 2 root root 4.0K Oct 27 13:09 c00224e5be0e651d28303d0a2f5dc274bde0ecaa5fcd1b864a3585d1c9b7dbe7
drwxr-xr-x. 2 root root 4.0K Oct 27 13:09 c17d4eb47e545eb6765a671053e5004a6b82936259a9ecd5d8a4147c52996ef3
-rw-r--r--. 1 root root 3.7K Oct 21 22:31 e43d811ce2f4986aa69bc8ba6c92f0789537f604d1601e0b6ec024e1c38062b4.json
-rw-r--r--. 1 root root    0 Oct 27 13:09 manifest.json
-rw-r--r--. 1 root root 181M Oct 27 13:09 output.tar

Issue still persist with build 5d7ae72 but with a slightly different output:
sf-clair ~ # clairctl --log-level debug push nginx:1.11.5 -l
DEBU[0000] Using config file: /root/clairctl.yml
INFO[0000] retrieving docker0 interface as local IP
DEBU[0000] Update local server port from "0" to "38331"
INFO[0000] Starting Server on <IP_ADDRESS>:38331
DEBU[0000] docker image to save:  nginx
DEBU[0000] saving in:  /tmp/clairctl/nginx/blobs
client quit unexpectedly
FATA[0019] retrieving manifest for "nginx:1.11.5": open /tmp/clairctl/nginx/blobs/manifest.json: no such file or directory

sf-clair ~ # ls -alh /tmp/clairctl/nginx/blobs/
total 4.0K
drwxr-xr-x. 5 root root  120 Feb 13 12:51 .
drwxr-xr-x. 3 root root   60 Feb 13 12:46 ..
-rw-r--r--. 1 root root 3.7K Nov  8 22:41 05a60462f8bafb215ddc5c20a364b5fb637670200a74a5bb13a1b23f64515561.json
drwxr-xr-x. 2 root root  100 Nov  8 22:41 8db2aad32a9f874e4212dde408c14ae0ba1c2e0d1b80484e223b2ff966386108
drwxr-xr-x. 2 root root  100 Nov  8 22:41 908fdb1e18ef1ed3bdd042820eb55d62b9057ee62bff09bac459d1b1ba692406
drwxr-xr-x. 2 root root  100 Nov  8 22:41 98f8314de6153f843cfc03062af5cb8269db2b87272f10406420f26af5446c5c

ok I reproduced it, got this errors for nginx image, but not for all.
I will investigate it

Ok problem isolated, cannot push manifest V2, I will implement it

Apparently it's a bug in the dockerclient i used: https://github.com/fsouza/go-dockerclient/issues/630
Keep this up to date regarding the issue resolution

fixed by https://github.com/jgsqware/clairctl/commit/6c8caab612aa156c4b5ef37fc3788c7797cb104a


Migrate analysis_server_client to null safety

pkg/analyzer_plugin/tool/spec/generate_all.dart generates into it, but we cannot update it yet.

Any updates?

CC @bwilkerson

I believe this is now complete.

Heads up that we are considering discontinuing the package; that's tracked here: https://github.com/dart-lang/sdk/issues/50262. It would be great to hear about the use cases for people using package: analysis_server_client.


allow cli validation policy override

Ugh. I have serious problems with this PR.

ok @justinbastress I think this is ready for oyu


import_scan_results failing with 404 for certain VCG files

Please use the following template when submitting issues:
Issue Template
Issue Type

[ X] Bug

Description
Importing a VCG xml scan result is generating a 404. Only happens with a specific file and I've managed to track down that if I change one line in a  element from "and the amount - To be Esm" to "and the amount. To be Esm" the removal of the dash allows the import to progress to further in the file. I'm assuming something in vcg parser is unhappy but a single dash seems a strange thing to fall over on. Will work through parser code but appreciate any experience of the issue people may have.
If the issue is a bug, please also include the following:
Operating System
Docker-Compose dojo from
https://github.com/aaronweaver/docker-DefectDojo
Master branch with no local changes
Install

[X ] docker

Steps to Reproduce
Cannot share VCG file
Sample Scan File (if applicable)
Cannot share VCG file
Screenshots (optional)
Console Logs (optional)
No logs generated when viewed in docker-compose logs

@niprog Do you have a file you can share?

@aaronweaver Hi. Its difficult as obviously it contains vulnerabilities of a production system. I'm worried that if I anonymize it then it masks or deflects from the actual issue. I'll try and sanitise it while still getting the same error and attach.

@niprog Able to provide an example? Which element in the file is causing the issue?


PrivateAttr of a pydantic dataclass is included in fields

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
PrivateAttr of pydantic dataclasses are visible by dataclasses.fields. This seems to contradict the documentation which states "private attributes are not treated as fields" (see link) and I didn't expect this to happen as a user.
Example Code
from pydantic import dataclasses, PrivateAttr
from dataclasses import fields

@dataclasses.dataclass
class TimeAwareModel:
    _a: int = PrivateAttr(default=5)
    b: str = ""

    def __post_init__(self):
        self._a = 0

print(any(f.name == "_a" for f in fields(TimeAwareModel)))  # True

Python, Pydantic & OS Version
pydantic version: 2.8.2
        pydantic-core version: 2.20.1
          pydantic-core build: profile=release pgo=true
                 install path: <redacted>
               python version: 3.10.10 (main, Jan 23 2024, 17:56:29) [GCC 11.4.0]
                     platform: Linux-5.15.0-91-generic-x86_64-with-glibc2.35
             related packages: typing_extensions-4.10.0
                       commit: unknown

@julians111,
Hmm, thanks for the question. I'm not sure yet if this is a bug, given that private attributes in stdlib dataclasses are also included in fields:
from pydantic import PrivateAttr
from pydantic.dataclasses import dataclass as pydantic_dataclass
from dataclasses import fields, dataclass

@pydantic_dataclass
class TimeAwareModelPDC:
    _a: int = PrivateAttr(default=5)
    b: str = ""

    def __post_init__(self):
        self._a = 0

print(any(f.name == "_a" for f in fields(TimeAwareModelPDC)))  # True

@dataclass
class TimeAwareModelDC:
    _a: int = 5
    b: str = ""

    def __post_init__(self):
        self._a = 0

print(any(f.name == "_a" for f in fields(TimeAwareModelDC)))  # True

Given that this behaves the same for stdlib dataclasses and pydantic dataclasses, I wouldn't consider this a bug. If you feel as though the docs could be improved for the case above, feel free to submit a PR with clarification and I'd be happy to review!
Thanks for the report!


0.6.1: Actor crashed! can't change state from 'closed' to 'headers'

We're using angelo intermittently (but usually) getting:
Actor crashed!
ArgumentError: Reel::Request::StateMachine can't change state from 'closed' to 'headers'
when reel is handling a POST request generated from Ruby Net::HTTP.
The problem seems to originate from the Reel code, that's why i'm raising issue here - i'll raise a referencing issue in Angelo to track it...
What we found so far:
There seems to be a logic hole between the Connection and the Parser which is exposed when the headers are received for a non-chunked request, but the body has not yet arrived.  This happens often because Net::HTTP sends the headers and body in two separate packets.
When the headers are first received, Parser#current_request parses the header and sets the request to @currently_reading (which exists to support "streaming").  Although the full message has not yet been received the connection will try to #respond to the request - #respond in turn does not recognise that we are "streaming" and transitions the request to closed.
A simple test verifies that this problem is fixed by removing @currently_reading from Parser#current_request so that it ensures the request is fully complete before continuing - presumably this simplistic change would break "streaming" in reel.
Full stack:
E, [2016-07-22T12:20:03.680392 #12294] ERROR -- : Actor crashed!
ArgumentError: Reel::Request::StateMachine can't change state from 'closed' to 'headers', only to:
/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/celluloid-fsm-0.20.5/lib/celluloid/fsm.rb:114:in validate_and_sanitize_new_state' 	/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/celluloid-fsm-0.20.5/lib/celluloid/fsm.rb:90:in transition'
/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/reel-0.6.1/lib/reel/connection.rb:58:in request' 	/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/reel-0.6.1/lib/reel/connection.rb:73:in each_request'
/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/angelo-0.5.0/lib/angelo/server.rb:27:in on_connection' 	/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/reel-0.6.1/lib/reel/server.rb:50:in handle_connection'
/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in public_send' 	/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/celluloid-0.17.3/lib/celluloid/calls.rb:28:in dispatch'
/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/celluloid-0.17.3/lib/celluloid/call/async.rb:7:in dispatch' 	/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/celluloid-0.17.3/lib/celluloid/cell.rb:50:in block in dispatch'
/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/celluloid-0.17.3/lib/celluloid/cell.rb:76:in block in task' 	/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/celluloid-0.17.3/lib/celluloid/actor.rb:339:in block in task'
/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/celluloid-0.17.3/lib/celluloid/task.rb:44:in block in initialize' 	/home/dmoore/.rvm/gems/ruby-2.3.1@tw.website/gems/celluloid-0.17.3/lib/celluloid/task/fibered.rb:14:in block in create'

Added code to reproduce via angelo at https://github.com/kenichi/angelo/issues/70

simplest code i can make to reproduce (is intermittent, loop should mean it usually occurs)
reel 0.6.2, ruby 2.3.1, ubuntu 14.04
require 'celluloid/autostart'
require_relative 'lib/reel'

Reel::Server::HTTP.supervise('<IP_ADDRESS>', 7077) do |connection|
  connection.each_request do |request|
    request.respond :ok, 'hello'
  end
end

require 'net/http'

(1..10).each do
  http = Net::HTTP.new '<IP_ADDRESS>', 7077
  http.post '/somepath', 'somedata'
end

@damned i have a feeling this is angelo's fault, as the repro case above can be solved with one line addition:
Reel::Server::HTTP.supervise('<IP_ADDRESS>', 7077) do |connection|
  connection.each_request do |request|

    # add this
    request.body.to_s

    request.respond :ok, 'hello'
  end
end

see https://github.com/celluloid/reel/issues/150#issuecomment-45136694.

hiya, i understand your point.
i feel angelo would be much more intuitive if did not allow this to hit the end user :)
whether reel itself should intermittently fail with such message for such a (not very obvious) usage error i guess is a subjective matter - my feeling was that reel is not well-behaved in this case.


HHVM 3.9 - 1.12.1 phar release broken

$ php php-cs-fixer.phar --dry-run -v --config-file=.php_cs.dist fix .

Fatal error: Class undefined: Symfony\CS\Fixer\Contrib in phar://php-cs-fixer.phar/Symfony/CS/Fixer.php on line 78

The command "php php-cs-fixer.phar --dry-run -v --config-file=.php_cs.dist fix ." exited with 255.

As discussed low prio, but here is a place holder issue.

does 1.11.x / 1.12.0 / 2.x works ?
does 1.12.1 on hhvm 3.9 installed via composer works?

What about HHVM 1.12 or 1.15?

lets see https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2186

What about HHVM 1.12 or 1.15?

do we support those versions? I would drop support for everything below 3.x

1.11.0 seems OK

Meant 3.12 and 3.15 rather. :)

closing because I fail to care any more ;)


Add locking reads

as per https://github.com/facebook/ent/issues/358
This adds LockForUpdate() and LockForShare() to both Tx and {{Entity}}Query.
I'm a bit on the fence about adding them to the Tx, a lot of sub queries etc. will also have the locking applied, personally I'd only want them on the {{Entity}}Query, but in the original feature request people expressed a desire to have it on the Tx.
(still need to go generate entc/integration/... but haven't done so yet to keep the diff small for discussion)

Hi! Is there any additional update on this PR? I've been waiting for this feature 😇

hmm I'll rebase and maybe @a8m can take a peek at it :) ?

Also have a use case for this, so would be great if this could be merged in. 😁

@a8m if you can take a peek then I got time to take care of any feedback you may have!

merged in https://github.com/ent/ent/pull/1697


[Suggestion] Drag support for TabContainer

Operating system or device - Godot version:
2.1.3 or master +
Was thinking this could be a good quality of life improvement for the TabContainer. Also would be a nice UX feature in the editor.
Example of dragging a tab over to the left:

Master branch already has this feature.

Implemented by #9510 on 3.0. Not sure if it worth doing that on to 2.*

WOW, freaking awesome! LOL


adding the possibility to transmit worker options to the worker factory

It's probably better and simpler to do this way :p
So this PR only gives the ability to add options to the user while using the BullMQModule to provide all the options a worker can have in bullmq

@xdave Could you check it if you have a minute please? We need this feature in my team

@AlexandreDecollas  if you pull my version of this branch, and push to update the PR, i will merge it.

Great! thank you very much :) is it possible to upgrade the npm package version with this update please?

@AlexandreDecollas  done 3.0.1


WatcherOptions

Where did the fsevents.WatcherOptions go?
E.g.
options := &fsevents.WatcherOptions{
  Recursive:       true,
  UseWatcherFlags: false,
}

Using those, the watcher was watching recursively also e.g. for file creation in subdirectories from the start. This does somehow not work anymore. Do we have to add every subdirectory to the watcher?

 I really don't get it :(
How do I start a watcher that watches a directory with subdirectories as it used to be with  fsevents.WatcherOptions.Recursive ?

I think the reason why it was not working for me was a misconfiguration of my handlers.
Now, after creating the watcher using NewWatcher() having an additional w.RecursiveAdd() seems to work fine.

Actually this highlights an issue I was pondering yesterday.
The Watcher object is basically just a list of watches, and it adds a descriptor for the "root" directory, but doesn't do it recursively and doesn't start the watch during the call to NewWatcher
I'm considering removing the initial watch descriptor from NewWatcher, so it removes the confusion on having to use either AddDescriptor or RecursiveAdd
Any comments/objections/concerns appreciated before I do this. Don't want to break everyone here.

I'm considering removing the initial watch descriptor from NewWatcher, so
it removes the confusion on having to use either AddDescriptor or RecursiveAdd

I think that would help.

Just pushed https://github.com/tywkeene/go-fsevents/commit/7be7831a608d078f38a3cbba139d8d28b84e39fc to master. You should be able to get it working with minimal changes, and it should be much clearer and more understandable.
This should address the confusion when using NewWatcher() and expecting it to add/start a watch.
The new way it works is like this:
// NewWatcher doesn't accept any arguments anymore
w := NewWatcher()

// Add the descriptor to the watcher
d, err := w.AddDescriptor(dirPath)

// Start the descriptor
dir.Start()

Hope this helps. I'll leave this issue open if you have any more issues with this, otherwise go ahead and close it.
Cheers.

Great, thanks a lot! It works as expected and to me it makes a lot of sense like this.
There are two things that I've noticed (already before this change) which I'm not sure about:

RecursiveAdd(rootDir) does not seem to add the rootDir to the watch (in the comment of the method, it says it does)
Even using a very simple setup with just a few watches (usind the "handlers" approeach), I'm getting a lot of handle not found: event mask: <mask> errors and I'm not sure what what's going wrong

In the coming days I might have time to look into this in more detail and put together a more clear scenario which is reproducible.

RecursiveAdd(rootDir) does not seem to add the rootDir to the watch (in the comment of the method, it says it does)

Yep, it's not getting added or started. Good catch.
I'll also go through and audit the documentation and make sure it all lines up and reflects the actual behavior.

Even using a very simple setup with just a few watches (usind the "handlers" approeach), I'm getting a lot of handle not found: event mask: <mask> errors and I'm not sure what what's going wrong

When you register a handle, you register it for a specific inotify event flags or flags OR'd together.
It's possible though that there's something wrong with the code that handles that, though. A reproducible snippet would be great.
I've actually looked at the code a bit, and realized that this approach is a bit brittle. So it may be worth a redesign.


Extend key provider protocol to support response error information/code for each request

Currently key provider protocol's requests don't support response error information/code. As example KeyUnWrap() and KeyWrap() requests.
As @fitzthum mentioned it will cause ocicrypt and kata-agent ugly failure handling because ocicrypt and the Kata Agent will just try to keep going.
So this issue targets to discuss whether and how to extend the key provider protocol.

cc @hdxia  @pravinrajr9


[JSDoc] Add missing documentation for teams-scenarios files

Addresses # 2602
Description
This PR adds jsdoc/require-jsdoc to include teams-scenarios in the .eslintrc.json file and adds all the missing JSDoc documentation for teams-scenarios based on the errors thrown. Some documentation is ported and adapted from botbuilder-dotnet

Note: We divided the work for this library into two PRs to ease the review. PR# 160 contains the rest of the teams-scenarios fixes.

Specific Changes

Private methods' documentation that does not exist on botbuilder-dotnet we added the @private tag in the JSDoc comment.
Protected methods' documentation that does not exist on botbuilder-dotnet we added the @protected tag in the JSDoc comment.
Added JSDoc comments in 15 files.

Folders included:

conversationUpdate
fileUpload
link-unfurling
mentionsBot
messageReaction
messagingExtensionAuth
messagingExtensionConfig
notificationOnly
office365Card
replyToChannel
roster
searchBasedMessagingExtension
taskModule

Testing
In the following image there is a sneak peek about the ESLint Report with no JSDoc errors.

Thanks, feedback applied
@ceciliaavila @santgr11

Promoted


Generate workflow config file before releases

From @laurentsimon in https://github.com/ossf/scorecard-action/pull/301#discussion_r881054870:

you can remove this file if you want. It out of date and we're not maintaining it. It was supposed to be a local copy of the workflow we give to GitHub's starter-workflow, but we just get it from https://github.com/actions/starter-workflows/blob/main/code-scanning/scorecards.yml directly instead.

We make a mention of this file in the release documentation.
It would be cool to investigate generating the file somehow and then having a test to ensure it stays correct.
(We had multiple copies in the repo and neither of them were the one used in production.)
Then we regenerate it before a release and use it to update the starter-workflows one upstream.

I'm not sure it's feasible to generate it before the release. It's a chicken-and-egg problem. The hash needs to be the hash of the commit of the release, but it will change if you commit the hash before release.
I think you need to generate it after the release, and possibly create a PR that we merge in. Note also that the README's workflow example has a hash which we may want to update as well. The README is always read at HEAD by https://github.com/marketplace/actions/ossf-scorecard-action, so it works if we update it after the release.


Config changes to reflect the default branch from master to main. Please merge to complete the default branch renaming job.

Auto branch renaming content.

Docs Build status updates of commit 4f564f3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.publish.config.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Pico Display balls example (microPython) seems to require the RGB LED?

Hello,
I don't know where to write this issue..
I have bought the excellent Pico Display and I am trying to wire it by hand using a breadbord, and seeing which pins on the Pico I can use for other uses.
I've used the pinout on this page.
https://shop.pimoroni.com/products/pico-display-pack
I've connected the Pico Display to the breadboard via some double headers, and from there to a raspberry Pico.
When I have the microPython balls example running, in order to see something on the display I need to have at least one led pin connected  from the DisplayHAT to the Pico (i mean, the RGB led pins on 9/10/11).
 Any pin will do.
As soon as I disconnect the LED pin (from the breadbord to the Pico) the demo stops.
If I try to run it again, it runs for about half a seconds and then freezes
on the console I get
 Connection lost (read failed: [Errno 6] Device not configured)
BTW i've tried the C++ demo, it does not seems to be affected even though it has a graphical glitch.

This would suggest that Pico Display is using that one LED pin as a ground return path, since these are (probably I can't recall) pulled low. That's... not optimal! You need to fix your ground connections.
Do you have any ground connections wired up? Due to the Pico Display PCB being designed with the assumption it's connected to all of the ground pins on your Pico you might need anywhere between one and all of the ground pins connected for it to function properly.

Hello,
it might stand to reason, and in fact no, I don't have all GND pins to ground, because I've checked the minimum number of ground needed for the display, but of course one or more is needed in this setup.
What puzzles me is that the same demo, same pin connections, in "C" works a9lbeit with the grapihcs twitch that some other user has mentioned), in Pyhton shows this strange behaviour that freezes
BTW this is just a curiosity, I use C and at the moment I use the display to show video fteched by an external camera
Thanks


feat: free tier setup for evaluators

This allows evaluators of this project to deploy the whole setup of hyperswitch in their AWS account. Make sure, you are not exceeding the RDS and Elasticache's free limit which are
RDS - https://aws.amazon.com/rds/free/
Elasticache - https://aws.amazon.com/elasticache/pricing/
To use this, please bootstrap the region before running the CDK script with the following command
cdk deploy -c aws_arn=$AWS_ARN -c free_tier=true

Please resolve conflicts.


Replace std::channel with crossbeam’s channel

https://github.com/cryptape/cita/issues/251

#177 first

https://github.com/cryptape/cita-common/pull/215

https://github.com/cryptape/cita-common/pull/215

#216


Fix VIM-1090 and VIM-1100 tag motion with duplicate tags.

The current implementation of the tag motion does not handle multiple tags with the same name correctly. I was not able to adapt the current implementation. Instead I reimplemented the whole algorithm, trying to stay as close to the behavior of vim as possible. The runtime complexity is also improved as it should be at most linear in the size of the file instead of quadratic as before. (Try executing dat at the end of a file with 10000  followed by 10000  and IdeaVim will freeze with the current implementation.)
This pull request fixes VIM-1090 and VIM-1100. Possibly also VIM-1155, but the description of this issue is not clear enough to reproduce it.

Is there anything that I can do to get this merged soon?

Hi!
Sorry for the long reply. PR review is paused because we are working on the VIM-510 issue. We will continue the review after completion of this task.

Hi!
I like your new approach, that gives better performance, but I was able to find a number of bugs.
Here are the cases where it doesn't work well:
<tr <caret>class="actions">

        Bing Bing bing

            <tr <caret>class="actions">

                    Bing Bing bing

            <tr <caret>class="actions">

                    Bing Bing bing

            <<caret>div>

hey > hey < hey

<div <caret>hello="d > hsj < akl">

Thank you for the review. The problem for the first three cases stem from incorrect handling of slashes in tags. I fixed this issue and added an appropriate test.
I couldn't really reproduce any issues with the last two cases. These seem to work fine for me, but I added one test case for them. Do you still have issues with those cases?

successive |v_it| has a special behavior in vi, as well as when the caret not in a beginning of a line before a tag opening. it seems these case are not handled yet.
 These features should be pretty straightforward to implement. However, I would like to know if this pull request has a chance of being merged before spending more time with it.
@AlexPl292 do you prefer this approach or the one of #189? I see advantages of both approaches: This approach should have better performance and less code size and complexity (depending on how familiar the reader is with regular expressions), but the other approach can be seen as more explicit and cleaner, because there are no cryptic regexes.
I think in the end it is a matter of taste which approach is better.
Currently #189 handles some edge cases and successive selection better, but I would be willing to implement these in this pull request as long as I know it will be merged eventually and my work is not wasted...

Yeah, we ended up deciding on a solution from @Vvalter.
@Nimamoh thank you for your work. Bracket fixes are going to master, of course. Could you please roll back the changes that are related to the tags?
@Vvalter, do I understand correctly that there are still moments left that you would like to finish?
It would be great if you could use the tests that @Nimamoh wrote. They look pretty detailed.

@Vvalter, do I understand correctly that there are still moments left that you would like to finish?
It would be great if you could use the tests that @Nimamoh wrote. They look pretty detailed.

Yes I will incorporate the tests of @Nimamoh (thanks for them!) and implement successive selection. I am pretty busy right now, so this will take me a couple of days, but it should be done by Sunday.

I implemented the successive tag block selection and fixed some minor issues. This should emulate vim behavior pretty closely, but I am sure there are some discrepancies left, because there are some many special cases...
I was able to copy lot of testcases and some other code from @Nimamoh pull request. Thanks!

Great news! I've checked the PR and I think it could be merged.
Thank you for your contribution!


CB-4444 Fix token expiration issue (version 2)

Use credential provider with aws client builders instead of deprecated client creation -> clients always accessing credentials through credential providers (with depricated client -> it creates a static credential provider without refresh function, and that is used there)
Solution 2
Pros:

using aws built-in credential provider
no need of aws credential caching

Cons:

token refresh happens based on token expiration time by refresh caller (less frequent - also not sure what happens if expiration time is really close, is a client call happening after that or not)
aws sts service will .live (per aws credential) until the aws clients are referenced (not sure it really matters..as we are nowhere calling any shutdown on the aws clients anywhere) - from the doc, credential provider should be close-t after it's not used

(note, not tested too well yet + if it will be acceptable, i will change the base branch to rc-2.15 if it's needed)
solution 1:  https://github.com/hortonworks/cloudbreak/pull/6771

closing this as we probably will go version 1


[Code Snippets Tab] Add more useful information to the sample

As a user, when I'm looking at a code sample
I would like to see documentation links
So I can easily access everything I need to build my apps
Acceptance Criteria

The code snippet should include comments.

Comments to add : // Leverage the power of our client libraries. Download the  client library here
// To read more about our SDKs, go to the documentation page at

All URLs should be shortened ( aka.ms/ )

Currently waiting for help on shortening links on the aka/ms tool


Full Suite integration tests failed on master

Integration Test failed on master

Full suite IT run :x: FAILED :x:
Timestamp: 2020-12-10T05:44:17.188151Z
Job run: [123456](https://github.com/Flank/flank/actions/runs/123456
Build scan URL: https://any.url
No new commits


how much vram

how much vram is minimum to install the showlab model locally

For Apple silicon Macs, 16GB RAM is sufficient to run our agent locally;
For machines with Cuda, 6GB VRAM is recommended, but 4GB VRAM should also be enough to run the agent as long as the input sequence is short.


IO user creates new Operator

Description:
As an IO, I want to be able to create a new Operator in the Registration app so that I can become prime admin for the Operator.
Acceptance Criteria:
Given I have logged in to my Business BCeID account
When my company does not appear in the list of Operators
Then I can submit a new Operator that will be saved to the Registration database
And submitting the Operator is also a request to create an Operator profile and make myself a prime admin
Development Checklist:

[ ] what data field(s) will be used to ensure there aren't duplicate Operators created? <- CRA Business Number
[ ] on submission of the form,  the record for the Operator is automatically saved to the database (no validation/review from CAS internal staff required). A request to register is also submitted (this does require review from CAS)
[ ] see wireframes: https://www.figma.com/file/LsDmLDCdnJqI8UahyqvOD8/Registration-app?type=design&node-id=4-2&mode=design&t=c62sicWHouVxBGFX-0
[ ] Meets the DOD

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

[ ] User story is included
[ ] User role and type are identified
[ ] Acceptance criteria are included
[ ] Wireframes are included (if required)
[ ] Design / Solution is accepted by Product Owner
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

·Definition of Done (Note: If any of these points are not applicable, mark N/A)

[ ] Acceptance criteria are tested by the CI pipeline
[ ] UI meets accessibility requirements
[ ] Configuration changes are documented, documentation and designs are updated
[ ] Passes code peer-review
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Ticket is ready to be merged to main branch
[ ] Can be demoed in Sprint Review
[ ] Bugs or future work cards are identified and created
[ ] Reviewed and approved by Product Owner

Notes:

Update this card after today's dev/design sync

I think is blocked on 24 because 24 involves creating the form to collect Operator info

I think this is actually covered by #26. Or are there additional aspects here that are yet to be worked on?  @andrea-williams, @BCerki - can you confirm?

Update: #26 is for operation, this is for operator.

Updated Development Checklist: we've received revised direction from PO that when a new Operator is created it will need to be reviewed by CAS internal staff


Android devicelab agents are down, tests not running

mac/android tests are not running since Jan 15.

android-platform-tools is missing from the mac hosts. Adding it now

android-platform-tools is missing from the mac hosts. Adding it now

Phones need to manually trust the hosts, fuchsia foundation will go to the lab and press the buttons for us. After that we will need to land a few configurations. ETA for this to be resolved is today EOD.

Phones need to manually trust the hosts, fuchsia foundation will go to the lab and press the buttons for us. After that we will need to land a few configurations. ETA for this to be resolved is today EOD.

Test beds were rebooted and they are back to normal.

Test beds were rebooted and they are back to normal.

Sorry closed the wrong bug accidentally.

Sorry closed the wrong bug accidentally.

Moving to P1 as mac_android tests are fully migrated to LUCI and will be blocking the tree in the new commits.

Moving to P1 as mac_android tests are fully migrated to LUCI and will be blocking the tree in the new commits.

Work is complete and will monitor for a couple of hours before closing this bug.

Work is complete and will monitor for a couple of hours before closing this bug.


No appropriate way to create a robot_description that includes link and joint definitions to which the xarm7 is attached?

I have a use case where I'm interested in attaching my xarm7 to a platform that has a camera viewing the workspace.
I see that it is possible to add things to the end effector of the  xarm7 using the add_other_geometry xacro argument, and that it is also possible to create a joint that attaches the robot to some other link (defaulting to world) using the attach_to; However, I do not see a clear way to ensure that the rest of my robot description gets included appropriately, so that the robot_state_publisher node publishes my full robot description, including the rest of the robot (the platform and the camera).
What is the appropriate way to go about this?
One option I can see is that I could modify all of the launch files in xarm_ros2, but that's not a preferred option.
If there's not a clean way to do this, perhaps this ticket is a feature request!
Thanks!

I’m also interested in this feature. As you mentioned, I believe the only current way is to reimplement all launch files to include an additional URDF with your custom platform/gripper, and in some cases, also modify the SRDF.
The current add_other_geometry parameter only works for very basic use cases. I think the best solution would be to have two parameters specifying the paths of the URDF and SRDF for the new end effector.


1.3 Write Interface

Write the interface of all the structures in the list

Doing it as part of the PR #24


Improvements to find-account page

Partially Fixed #3128

[ ]  You shouldn't be able to click "Find team" if you don't have a valid list of email addresses. Slack does this really nicely: https://slack.com/signin/find
[x]  We should send an email regardless of whether they are in a Zulip org or not.
[ ]  The followup page should have links to resend the email or enter a different email address.
[x]  The URL of the followup page currently has the email as a URL parameter, which should be removed.

Testing Plan:
Creating multiple organizations on local workspace and attach a user to multiple user.
Enter multiple email id on /accounts/find page a mix or single org account, multiple org account, email not registered on any org.

You can simplify a bit of this code with a get_users helper:
def get_users(emails) {
    good_users = set()
    ignore_users = set()
    for user in UserProfile.objects.filter(delivery_email__in=emails):
        if user.is_active is True and user.is_bot is False and user.realm.deactivated is False:
            good_users.add(user)
        else:
            ignore_users.add(user)

    return (good_users, ignore_users)

# then later
good_users, ignore_users = get_users(email)s
for user in good_users:
    context = common_context(user)
    context.update({
        'email': user.delivery_email,
    })
    send_email('zerver/emails/find_team', to_user_ids=[user.id], context=context,
               from_address=FromAddress.SUPPORT)
    if user.delivery_email not in emails_sent:
        emails_sent.append(user.delivery_email)

@majordwarf the last commit here isn't a good commit structure; you should make the updates to tests related to each of the other two commits in the same commit that makes the change requiring those test changes.
The way you have things makes it impossible to do a git bisect and also limits the ability of a reviewer to understand your code changes through seeing how they adjust the tests.
"Every commit should pass tests" is one of our rules of thumb on writing commits.

@timabbott The second commit is just to update the email templates, so I guess the tests will move into the first commit. Will make those changes later today 😄
And yeah I now always execute tests locally before pushing them to avoid multiple force push.

@timabbott Made the changes as requested.

The email text for the case that there's no account isn't great; I pushed back a revised version that is likely not broken, but we need to say that we checked (e.g.) zulipchat.com clearly, since chat.zulip.org has an independent set of organizations.

@timabbott So I just need to work on the email template, right?

Yeah, and possibly the plumbing to pass through the right variables to display which server it was if that isn't already there (external_host, etc.).

@timabbott Updated the email template, passing the external_host as context to the email template.
Screenshot:

@majordwarf can you rebase this?

@timabbott Done! :+1:

Sorry I missed the window on this; can you rebase again?

@timabbott Done :+1:


[usb] Add IP checklist for USB device

This PR adds the IP checklist for the USB device.
@sriyerg could you please check that the information that I entered is accurate (especially in the V1 section)?

Hi @sriyerg , would you mind to have a look and cross check the data I entered in the V1 section?

Update: rebased on top of master and current template.

Thanks @tomroberts-lowrisc for approving this.


[other] Add to flake8 in workflow and fix python files (part #25193)

This pull request is a part of https://github.com/project-chip/connectedhomeip/pull/25193 ( part fix python files in other python files )
Problem
Python files need prevent things like syntax errors, typos, bad style, etc... it saves time for reviewing your code. Many python files needed bug fixes.
Changes
Fix all python files in other python files where linter find problem. Adding python tests to check with flake8.
Testing
CI will test and maybe some another manual testing

This PR should wait for the #27881 to be attached and I think it will be the last one related to flake8.


502 bad gateway ?

2018-04-03 12:40:24 [minion@s06 docker-mattermost]$ docker-compose up -d
Creating network "dockermattermost_default" with the default driver
Creating dockermattermost_web_1 ... done
Creating dockermattermost_app_1 ... done
Creating dockermattermost_db_1  ... done
2018-04-03 12:40:30 [minion@s06 docker-mattermost]$
Log File
[2018/04/03 12:31:00 CST] [INFO] 已載入系統翻譯 'zh-TW' 來自 '/mattermost/i18n/zh-TW.json'
[2018/04/03 12:31:00 CST] [INFO] 伺服器正在初始化...
[2018/04/03 12:31:00 CST] [INFO] Pinging SQL master database
[2018/04/03 12:31:00 CST] [INFO] 目前的版本為 4.8.0 (4.8.0/Thu Mar 15 23:11:12 UTC 2018/d1ed79a66c7930020b7fda046a11050f5890c84e/6f563c1fa497d123134fd499eb37674eb2511325)
[2018/04/03 12:31:00 CST] [INFO] 企業版已啟用: true
[2018/04/03 12:31:00 CST] [INFO] 目前的工作目錄為 /mattermost
[2018/04/03 12:31:00 CST] [INFO] 從 /mattermost/config/config.json 讀取設定檔
[2018/04/03 12:31:00 CST] [INFO] Able to write files to local storage.
[2018/04/03 12:31:00 CST] [INFO] 需要來自 https://mattermost.com 的授權金鑰以解鎖企業功能。
[2018/04/03 12:31:00 CST] [INFO] Starting up plugins
[2018/04/03 12:31:00 CST] [WARN] unable to create user namespace: fork/exec /proc/self/exe: operation not permitted
[2018/04/03 12:31:00 CST] [WARN] plugin sandboxing is not supported. plugins will run with the same access level as the server
[2018/04/03 12:31:01 CST] [INFO] Activated jira plugin
[2018/04/03 12:31:01 CST] [INFO] 正在啟動伺服器...
[2018/04/03 12:31:01 CST] [INFO] 張貼速率限制已啟用
[2018/04/03 12:31:01 CST] [INFO] 伺服器正在監聽於 [::]:8081
[2018/04/03 12:31:01 CST] [CRIT] 啟動伺服器時遇到錯誤 err:open : no such file or directory
[2018/04/03 12:31:01 CST] [INFO] 啟動 8 Websocket 中樞
[2018/04/03 12:31:01 CST] [INFO] Starting workers
[2018/04/03 12:31:01 CST] [INFO] Starting schedulers.

docker-compose.yml
version: "2"

services:

  db:
    build: db
    restart: unless-stopped
    volumes:
      - ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
      - /etc/localtime:/etc/localtime:ro
    environment:
      - POSTGRES_USER=mmuser
      - POSTGRES_PASSWORD=mmuser_password
      - POSTGRES_DB=mattermost
    # uncomment the following to enable backup
    #  - AWS_ACCESS_KEY_ID=XXXX
    #  - AWS_SECRET_ACCESS_KEY=XXXX
    #  - WALE_S3_PREFIX=s3://BUCKET_NAME/PATH
    #  - AWS_REGION=us-east-1

  app:
    build:
      context: app
      # comment out 2 following lines for team edition
      args:
        - edition=team
    restart: unless-stopped
    volumes:
      - ./volumes/app/mattermost/config:/mattermost/config:rw
      - ./volumes/app/mattermost/data:/mattermost/data:rw
      - ./volumes/app/mattermost/logs:/mattermost/logs:rw
      - /etc/localtime:/etc/localtime:ro
    environment:
      # set same as db credentials and dbname
      - MM_USERNAME=mmuser
      - MM_PASSWORD=mmuser_password
      - MM_DBNAME=mattermost
      # in case your config is not in default location
      #- MM_CONFIG=/mattermost/config/config.json

  web:
    build: web
    ports:
      - "<IP_ADDRESS>:8081:80"
      - "<IP_ADDRESS>:44367:443"
    restart: unless-stopped
    volumes:
      # This directory must have cert files if you want to enable SSL
      - ./volumes/web/cert:/cert:ro
      - /etc/localtime:/etc/localtime:ro
    # Uncomment for SSL
    # environment:
    #  - MATTERMOST_ENABLE_SSL=true

any suggestions ?

Hi @changchichung, is your issue solved ?

Hi @pichouk! I receive 502 Bad Gateway on clean installation.

./volumes was created with root privileges but docker-compose was runned by my user. It's weird
I tried change owner to my user but it not helps.
I don't have any memory limit
Only my change is uncommenting - edition=team in docker-compose

Hi @indapublic,
the bad gateway is returned by the web (Nginx) container, you don't have any log message it this container ? It should prompt access logs I guess.


SCSS Bugs

I enabled SCSS on Hound on a project and out of around 50 Hound comments, none have been a proper style violation. I ended up disabling SCSS on Hound for now…
95% of Hound’s comments have been about using // Sass-style comments (as opposed to CSS-style comments), but there are no comments in the code there:

I’ve also noticed Hound commenting about margin shorthand, but there is no use of margin here:

Having the same issues highlighted above on a separate project.

The fix for this is now in production. Please try it out!

Woohoo! Thank you! I’ll give it shot.


Script to obtain the image code (using VQ-GAN)

I'm trying to pre-training on my custom dataset. But it seems I cannot directly find the script to generate the image code using VQ-GAN.
Is it possible to provide this script for us? Or any link that I can refer to

hi, please check run_scripts/image_gen/generate_for_vqgan_code.sh .

Thanks.

Hi! Thanks for your amazing work!
I have an issue when I run 'generate_for_vqgan_code.sh' using my customized dataset. I follow the guidance to create an (image-only) input files (.txt) like:
12345 \t /9j/4AAQSkZJ....UCP/2Q== \n
12346 \t /9j/4AAQSkZJ....UCP/2Q== \n
where \t means tabs, \n means newlines. I use images with 390x320 size.
However, when I run the script, I got RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling cublasCreate(handle). The details are shown as follows:
Traceback (most recent call last):
File "generate_code.py", line 121, in
z, , [, _, image_codes] = image_tokenizer.encode(data["code_image"].cuda())
File "../../models/taming/models/vqgan.py", line 55, in encode
h = self.encoder(x)
File "/home/test/anaconda3/envs/test/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "../../models/taming/modules/diffusionmodules/model.py", line 418, in forward
h = self.down[i_level].attni_block
File "/home/test/anaconda3/envs/test/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1110, in call_impl
return forward_call(*input, **kwargs)
File "../../models/taming/modules/diffusionmodules/model.py", line 180, in forward
w = torch.bmm(q,k)     # b,hw,hw    w[b,i,j]=sum_c q[b,i,c]k[b,c,j]
RuntimeError: CUDA error: CUBLAS_STATUS_ALLOC_FAILED when calling cublasCreate(handle)
Could you provide some hints and suggestions to help solve this issue. I appreciate your help, thanks!


Roll Flutter from 93c0c043cf2c to 29b949e025be (3 revisions)

https://github.com/flutter/flutter/compare/93c0c043cf2c...29b949e025be
2022-02-17<EMAIL_ADDRESS>Roll Engine from 754478998b5b to 7d33de0a372c (1 revision) (flutter/flutter#98646)
2022-02-17<EMAIL_ADDRESS>Upgrade android sdk for ci.yaml tests to 31 (flutter/flutter#98638)
2022-02-17<EMAIL_ADDRESS>Roll Engine from 57d4a350dea8 to 754478998b5b (1 revision) (flutter/flutter#98634)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Plugins: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


The 'method' column in the 'daa_results_df' data frame contains more than one method.

Describe the Bug
Wnen I use ggpicrust2 function, it always generates the error. Any help would be greatly appreciated.
Here's my dataset including the "pred_metagenome_unstart.tsv" file and "metadata.txt" file.
pred_metagenome_unstrat.tsv.gz
metadata.txt
Reproducible Example
Here is my code:
library(ggpicrust2)
library(readr)
library(tibble)
library(tidyverse)
library(ggprism)
library(patchwork)
library(ggh4x)
abundance_file <- paste(funcpath,"/pred_metagenome_unstrat.tsv", sep = "")
abundance_data <- read_delim(abundance_file, delim = "\t", col_names = TRUE, trim_ws = TRUE)
metadata = phyloseq::sample_data(ps) %>% as_tibble()
metadata$Group = factor(metadata$Group,levels =c("FHC","FCEP","FREP"))
metadata_com = metadata[metadata$Group %in% c("FHC", "FCEP"),]
abundance_data_com = abundance_data[,c("function", metadata_com$SampleID)]
results_data_input <- ggpicrust2( data = abundance_data_com,
metadata = metadata_com,
group = "Group",
pathway = "KO",
daa_method = "LinDA",
p_values_bar = TRUE,
p.adjust = "none",
ko_to_kegg = TRUE,
order = "pathway_class",
select = NULL,
reference = NULL)
Actual Behavior
I got an error below:
Starting the ggpicrust2 analysis...
Converting KO to KEGG...
Processing provided data frame...
Loading KEGG reference data. This might take a while...
Performing KO to KEGG conversion. Please be patient, this might take a while...
|==============================================================================================================================| 100%
KO to KEGG conversion completed. Time elapsed: 38.24 seconds.
Removing KEGG pathways with zero abundance across all samples...
KEGG abundance calculation completed successfully.
Performing pathway differential abundance analysis...
Sample names extracted.
Identifying matching columns in metadata...
Matching columns identified: SampleID . This is important for ensuring data consistency.
Using all columns in abundance.
Converting abundance to a matrix...
Reordering metadata...
Converting metadata to a matrix and data frame...
Extracting group information...
Running LinDA analysis...
Performing LinDA analysis...
0  features are filtered!
The filtered data has  27  samples and  212  features will be tested!
Pseudo-count approach is used.
Fit linear models ...
Completed.
Processing LinDA results...
LinDA analysis is complete.
Success: Found 22 statistically significant biomarker(s) in the dataset.
Annotating pathways...
Starting pathway annotation...
DAA results data frame is not null. Proceeding...
KO to KEGG is set to TRUE. Proceeding with KEGG pathway annotations...
We are connecting to the KEGG database to get the latest results, please wait patiently.
Processing pathways in chunks...
|==============================================================================================================================| 100%
Finished processing chunks. Time taken: 1.91 seconds.
Finalizing pathway annotations...
|=================                                                                                |  14%
Finished finalizing pathway annotations. Time taken: 0.02 seconds.
Returning DAA results filtered annotation data frame...
Creating pathway error bar plots...
The following pathways are missing annotations and have been excluded: ko00281
You can use the 'pathway_annotation' function to add annotations for these pathways.
The 'method' column in the 'daa_results_df' data frame contains more than one method. Please filter it to contain only one method.
The 'group1' or 'group2' column in the 'daa_results_df' data frame contains more than one group. Please filter each to contain only one group.
Error in pathway_errorbar(abundance = abundance, daa_results_df = daa_sub_method_results_df,  :
Visualization with 'pathway_errorbar' cannot be performed because there are no features with statistical significance. For possible solutions, please check the FAQ section of the tutorial.
In addition: Warning message:
In MicrobiomeStat::linda(abundance, LinDA_metadata_df, formula = "~Group_group_nonsense_",  :
Some features have less than 3 nonzero values!
They have virtually no statistical power. You may consider filtering them in the analysis!
Environment Information:

Operating System: Windows & RStudio
R Version: 4.3.2
Package Version: 1.7.3

Additional Context
Add any other context about the problem here, e.g., is this issue sporadic or consistent? Did it work in previous versions?

Getting the same error. Any luck in this @freemutation @cafferychen777

Any update on this? I have code that used to work beautifully and now when I run the same code, I get all sorts of errors, including this one!

I have the same problem:
"
Maaslin2 analysis complete. You can view the full analysis results and logs in the current default file location: /home/german/Documents/German/LAST_MAFLD/Maaslin2_results_Overweight
Annotating pathways...
Starting pathway annotation...
DAA results data frame is not null. Proceeding...
KO to KEGG is set to FALSE. Proceeding with standard workflow...
Loading KO reference data...
Returning DAA results data frame...
Creating pathway error bar plots...
The 'method' column in the 'daa_results_df' data frame contains more than one method. Please filter it to contain only one method.
The 'group1' or 'group2' column in the 'daa_results_df' data frame contains more than one group. Please filter each to contain only one group.
"

Hi @GERMAN00VP,
Thank you for reporting this issue. The error occurs because the pathway_errorbar function expects a single method and comparison group in the results. Here's how to fix it:

First, check your DAA results:

# Check unique values in method column
print(unique(daa_results_df$method))

# Check unique values in group columns
print(unique(daa_results_df$group1))
print(unique(daa_results_df$group2))

Filter for a single method and comparison:

# For LinDA results
daa_sub_method_results_df <- daa_results_df %>%
  filter(method == "LinDA") %>%  # Or your specific method
  filter(group1 == "YourGroup1" & group2 == "YourGroup2")  # Your specific groups

# For ALDEx2 results
daa_sub_method_results_df <- daa_results_df %>%
  filter(method == "ALDEx2_Welch's t test") %>%  # Or other ALDEx2 method
  filter(group1 == "YourGroup1" & group2 == "YourGroup2")

Complete working example:

# Load libraries
library(tidyverse)
library(ggpicrust2)

# Your existing code...
results_data_input <- ggpicrust2(
  data = abundance_data_com,
  metadata = metadata_com,
  group = "Group",
  pathway = "KO",
  daa_method = "LinDA",
  ko_to_kegg = TRUE,
  order = "pathway_class"
)

# Filter results for visualization
daa_results_filtered <- results_data_input$daa_results_df %>%
  filter(method == "LinDA") %>%
  filter(group1 == "FHC" & group2 == "FCEP")  # Your specific groups

# Create visualization
pathway_errorbar(
  abundance = results_data_input$abundance,
  daa_results_df = daa_results_filtered,
  Group = metadata_com$Group,
  p_values_threshold = 0.05,
  order = "pathway_class",
  ko_to_kegg = TRUE,
  p_value_bar = TRUE
)

Important Notes:

Make sure you're using the latest version of ggpicrust2
For multiple group comparisons, you'll need to filter for specific group pairs
The p-value threshold (default 0.05) affects which features are considered significant
Check that your abundance data and metadata match exactly

If you're still having issues, please share:

The output of str(daa_results_df)
Your specific group comparisons
The p-values of your significant features

Best regards,
Chen Yang

Thank you for your response!
Best regards,
Germán Vallejo


[GEARPUMP-248] Change release badge to maven central

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the commit message is formatted like:
[GEARPUMP-<Jira issue #>] Meaningful description of pull request
[x] Make sure tests pass via sbt clean test.
[x] Make sure old documentation affected by the pull request has been updated and new documentation added for new functionality.

@huafengw please review and checkout https://github.com/manuzhang/incubator-gearpump/blob/a0b6f1c8787a1598a423ab226c3c39dfa4cf70f3/README.md for the rendered view.

+1


Character sheets not working

I guess it needs to be updated for Ver. 12?

Probably! For now I've marked it as not compatible with v12, while I look into this with my meager free time.


Convert some integer constants to enums

Codecov Report

Merging #136 (e87652b) into develop/1.9.0 (bdd13f4) will increase coverage by 0.10%.
The diff coverage is 78.81%.

@@                 Coverage Diff                 @@
##             develop/1.9.0     #136      +/-   ##
===================================================
+ Coverage            77.56%   77.66%   +0.10%
+ Complexity            7661     7633      -28
===================================================
  Files                  201      201
  Lines                24261    24321      +60
  Branches              6342     6339       -3
===================================================
+ Hits                 18817    18889      +72
+ Misses                3530     3515      -15
- Partials              1914     1917       +3

Impacted Files
Coverage Δ

...rg/jetbrains/java/decompiler/main/ClassWriter.java
72.85% <0.00%> (ø)

...ecompiler/modules/decompiler/FinallyProcessor.java
83.33% <0.00%> (ø)

...compiler/modules/decompiler/LoopExtractHelper.java
74.00% <0.00%> (ø)

...va/decompiler/modules/decompiler/SwitchHelper.java
73.20% <0.00%> (ø)

...ecompiler/modules/decompiler/ValidationHelper.java
3.63% <0.00%> (ø)

...decompiler/modules/decompiler/exps/NewExprent.java
73.87% <0.00%> (ø)

...ompiler/modules/decompiler/exps/SwitchExprent.java
84.90% <0.00%> (ø)

...r/modules/decompiler/sforms/SFormsConstructor.java
93.95% <0.00%> (ø)

...ecompiler/modules/decompiler/stats/Statements.java
53.33% <0.00%> (ø)

...iler/modules/decompiler/stats/SwitchStatement.java
88.34% <0.00%> (ø)

... and 33 more

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 bdd13f4...e87652b. Read the comment docs.


fix metrics publishing by caching publisher command instances by both command group key + command key (1.5.x)

closes https://github.com/Netflix/Hystrix/issues/1888
This fixes a bug whereby if two Hystrix commands have the same command key, although different group keys, only one of them will be reported.
Declaration: I agree to license my contribution under the terms of the APLv2.

Any plans to get this merged soon?


Hide .gdignore'd folders

Hide .gdignore'd folders in the file dialog.
Fixes #37758
Bugsquad edit: Also fixes #37638 since .godot/ is .gdignore'd.

Thanks!

Cherry-picked for 3.5.


Revert "Remove specialist documents"

Reverts alphagov/govuk_content_models#318

Reverting because we still need Manuals.

If you only need manuals, could you clean this up so it only keeps those? Seems like we could remove all the *aib-reports etc. and the RenderedSpecialistDocument models at least.

For if/when this eventually gets unreverted, please take this comment into account https://github.com/alphagov/govuk_content_models/pull/318#issuecomment-127281561

I've rebased this against master

Merging this revert because it's breaking Panopticon.