[Extension Bug] Clash rule edit fail

Extension – Title

Author:  Amasdeus

Description
Steps To Reproduce

Start app clash
turn to rules

The current behavior
it collapsed

and error is:

Error: Worker terminated due to reaching memory limit: JS heap out of memory
__node_internal_captureLargerStackTrace:errors:464:5
NodeError:errors:371:5
Worker.[kOnExit]:worker:279:26
Worker..onexit:worker:201:20

The expected behavior
Show the proxie rules
Raycast version
Version: 1.27.0

It seems that I have too much rules, is it possible to filter rules?

@l782993610 how many rules you have?

My Clash has almost 10000 rules, you can count yours by this command.
➜ curl localhost:9191/rules -s | jq '.rules | length'
9353


[LeadDesk] Updating the outdated brand names

Updated brand names like below:
Microsoft Flow -> Microsoft Power Automate
Flow -> Power Automate (only in Descriptions & Summaries)
PowerApps -> Power Apps
LogicApps -> Logic Apps

@Lokenstein Please approve the changes and let me know if you have any questions


wip: analytics tweaks based on feedback

see: https://github.com/ipfs-shipyard/ipfs-webui/issues/980
License: MIT
Signed-off-by: Oli Evans<EMAIL_ADDRESS>

I'm exploring letting the user add consent for each type of data we collect.

Checking the box at the top level enables all the the individual ones. Unchecking an individual one will disable that specific type of metric. The "show me" button will expand the section to reveal a summary help text to explain it, and example data payloads that would be sent if it was enabled. I've cataloged the request data per type here https://github.com/ipfs-shipyard/ipfs-webui/issues/980#issuecomment-467895697

That's absolutely wonderful!
Note: I only asked to label this as "BETA" as a short-cut to get something in while we continue to improve it. I'm completely happy calling that design a 1.0 (we can leave the libp2p transport till 2.0).

Such copy. Much care.

Is there a reason for the separate Analytics page?

Yep, I was struggling with how best to link to the analytics section from the ask on the status page. Pushing the info into the ask on the status page had complications, and trying to link to it on the status page would mean adding in custom "scroll to anchor" code as the hash-router means we can't use the browser one. Then @lidel gave the bright idea of just linking out ot a custom settings page with just the analytics on. This has the added benefit of focusing the user on a single task. It is a little odd, but I think it works, and dodges a bunch of other complexity.

@cwaring thanks! I'll fix the update the first two points in this PR. Could you PR and update to the checkbox component pls.

Ok, this is holding up the ipfs-desktop release so it's going in!


Search navigation bar - Catalog View

Is your feature request related to a problem? Please describe.
As an Airy user, i need to search for components to Install or already installed on Catalog view. I need to be able to look up components by component.name. I can also filter the catalog view by components status: "Installed", "tag.Soon", "Uninstalled".
Describe the solution you'd like
As an airy user:
1- I want to find a search navigation bar to be able to search for components by name. Navigation placeholder: "By:Name"
2- /components.list endpoint should retrieve component.name.
3- I should be able to either find the component i search for or get no results from/components.listendpoint.
4- I should be able to filter Catalog view by component.status? > Installed, tag.soon, Not installed.
Describe alternatives you've considered
Suggestions?
Additional context
We are reusing the same design components for search navigation bar and filter as on Inbox.

FIGMA LINK:
https://www.figma.com/file/fqxGvk4E3dWbmWoJKlVjYU/Control-Center-10?node-id=780%3A7759


OTAU

Why are all files from https://github.com/Koenkk/zigbee-OTA stored in /var/lib/homebridge?
And are all files supposed to be downloaded from index.json regardless of whether the device exists in my setup?

They're downloaded into the current directory.  You might want to login as the user running deCONZ and change to ~/otau (which is where the deCONZ OTAU plugin will be looking).
Right now all files are downloaded.  I plan to add command-line parameters in a later stage. to download a single image, or images from a single vendor.

They're downloaded into the current directory. You might want to login as the user running deCONZ and change to ~/otau (which is where the deCONZ OTAU plugin will be looking).
Right now all files are downloaded. I plan to add command-line parameters in a later stage. to download a single image, or images from a single vendor.

Thanks for the answer 👍


add option to show node_id in dag visualization

Summary
Adds an option to show the node_id in DAGCircuit visualization. This can be useful when debugging transpiler passes.
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

2 of 5 (40.0%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.08%) to 85.355%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/dagcircuit/dagcircuit.py
1
2
50.0%

qiskit/visualization/dag_visualization.py
1
3
33.33%

Files with Coverage Reduction
New Missed Lines
%

qiskit/visualization/dag_visualization.py
1
10.59%

Totals

Change from base Build<PHONE_NUMBER>:
-0.08%

Covered Lines:
67214

Relevant Lines:
78746

💛  - Coveralls


ChiselsAndBits conflict

In my serverlog it says "[chiselsandbits]: Unable to determine blocks eligibility for chiseling" for some of the blocks in the mod.
I read up on the error (https://github.com/AlgorithmX2/Chisels-and-Bits/issues/49) and it seems it can't be fixed by @AlgorithmX2.
These are the blocks:
net.bdew.generators.modules.efficiency.BlockEfficiencyUpgradeTier2$ attempted to load net/minecraft/client/util/ITooltipFlag
net.bdew.generators.modules.turbine.BlockTurbine attempted to load net/minecraft/client/util/ITooltipFlag
net.bdew.generators.modules.powerCapacitor.BlockPowerCapacitor attempted to load net/minecraft/client/util/ITooltipFlag

The mod has been recently updated to MC 1.16, older versions are no longer supported.
I'm mass closing older issues to clear up clutter in the bug tracker.
If you find this issue still exists in the current version feel free to reopen it.


Indication that Uploadable is not yet supported

Official documentation for ODM (https://github.com/Atlantic18/DoctrineExtensions#odm-mongodb-support) is saying that 'Uploadable' is not yet supported. It is worth mentioning here, in this documentation.
Possible issue reference:
Notice: Undefined index: filePathField in Gedmo\Uploadable:127

I'd rather not duplicate the doc of the extensions about what is supported.


defaultColDef doesn't work when columns defined in html

I'm submitting a ...  (check one with "x")
[ x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/ceolter/ag-grid-aurelia/blob/master/CONTRIBUTING.md#question

Current behavior
defaultColDef on GridOptions doesn't apply when defining columns in html templates using ag-grid-column. If columns are defined in typescript / js on the GridOptions, then the defaults get applied fine.
Expected behavior
defaultColDef on the grid options should apply the properties to the columns if the columns themselves don't define that option. For example, if defaultColDef.editable = false, and the column doesn't define the property, then it should be false. If a column sets editable = true, then only that column will be editable, the rest will be readonly.
Minimal reproduction of the problem with instructions
** Doesn't work: **
<!-- html -->
<ag-grid-aurelia class="ag-theme-bootstrap" grid-options.bind="defaultGridOptions"
        row-data.bind="rowData" style="height: 350px;">

        <!-- This column should be editable, as it defines the property so should override the default -->
        <ag-grid-column header-name="Code" field="code" width.bind="95" editable.bind="true">
        </ag-grid-column>

        <!-- Shouldn't be editable, doesn't define editable so should pick up the default -->
        <ag-grid-column header-name="Description" field="description" width.bind="150">
        </ag-grid-column>
</ag-grid-aurelia>

<!-- ts -->
private defaultGridOptions: GridOptions = <GridOptions>{
        defaultColDef: {
            editable: true
        }
    };
private rowData = [
    { code: "a", description: "apple" },
    { code: "b", description: "banana" }
];

** Works: **
<!-- html -->
<ag-grid-aurelia class="ag-theme-bootstrap" grid-options.bind="defaultGridOptions"
        row-data.bind="rowData" style="height: 350px;">
</ag-grid-aurelia>

<!-- ts -->
private defaultGridOptions: GridOptions = <GridOptions>{
        defaultColDef: {
            editable: true
        },
        colDefs: [
            { headerName: "Code", field: "code", editable: true },
            { headerName: "Description", field: "description" }
        ]
    };

private rowData = [
    { code: "a", description: "apple" },
    { code: "b", description: "banana" }
];

Please tell us about your environment:
Windows 10, VSCode, npm, aurelia-cli

ag-grid-aurelia version: 2.0.X
Tried in both 15 & 16

ag-Grid/ag-Grid-Enterprise version: 2.0.X
N/A

Aurelia version: 2.0.X
1.1.4

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Tested in Chrome & Edge

Language: [all | TypeScript X.X | ES6/7 | ES5]
Typescript 2.6.1

Adding a "Type" also doesn't work via templating, but it does when defining in the code behind. The pull request fixes that as well.


CPSAT 9.1: C++ wrong optimal solution and wrong infeasibility

What version of OR-Tools and what language are you using?
Version: v9.1.
Language: C++
With 9.0 it works.
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
CP-SAT
What operating system (Linux, Windows, ...) and version?
Ubuntu 20.04
What did you do?
I encountered different problems:

If I disable the pre-solver I can solve the problem sometimes
If I enable the pre-solver my problem is most of the time infeasible if I set the cost-function manually to the min-Value.

What the code does:
Solve two Objectives. After the first objective is minimized a constraint is added which forces the objective to be <= the objective value. Then it optimizes the next objective.
The fun part is "most of the time":
My console log:
$ ./bin/main --input ./test_data.json --output ./test_result.json
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20211113 17:17:42.874562 99290 solve.cpp:107] Start parsing
I20211113 17:17:42.874632 99290 solve.cpp:110] End parsing
I20211113 17:17:42.874637 99290 solve.cpp:112] Start building model
I20211113 17:17:42.875142 99290 solve.cpp:116] End building model
I20211113 17:17:42.875150 99290 solve.cpp:118] Start creating optimization steps
I20211113 17:17:42.875167 99290 solve.cpp:142] End creating optimization steps
I20211113 17:17:42.875172 99290 solve.cpp:144] Start solving
I20211113 17:17:42.875176 99290 solve.cpp:57] solving Step -100
I20211113 17:17:42.875222 99290 solve.cpp:40] Start solve threads:8 timeout: 3600
I20211113 17:17:42.883072 99298 solve.cpp:36] Solution 0 objective: 9
I20211113 17:17:42.883745 99294 solve.cpp:36] Solution 1 objective: 5
I20211113 17:17:42.883940 99294 solve.cpp:36] Solution 2 objective: 4
I20211113 17:17:42.887919 99290 solve.cpp:42] CpSolverResponse summary:
status: OPTIMAL
objective: 4
best_bound: 4
booleans: 361
conflicts: 9
branches: 484
propagations: 4536
integer_propagations: 2522
restarts: 424
lp_iterations: 0
walltime: 0.0125342
usertime: 0.0125343
deterministic_time: 0.000137172
primal_integral: 0.00533015
I20211113 17:17:42.888316 99290 solve.cpp:43] END solve
I20211113 17:17:42.888320 99290 solve.cpp:45] Restricting cost to 4
I20211113 17:17:42.888331 99290 solve.cpp:57] solving Step 10
I20211113 17:17:42.888339 99290 solve.cpp:40] Start solve threads:8 timeout: 3600
I20211113 17:17:42.893689 99306 solve.cpp:36] Solution 0 objective: -39
I20211113 17:17:42.893958 99306 solve.cpp:36] Solution 1 objective: -40
I20211113 17:17:42.900856 99290 solve.cpp:42] CpSolverResponse summary:
status: OPTIMAL
objective: -40
best_bound: -40
booleans: 361
conflicts: 8
branches: 422
propagations: 4772
integer_propagations: 4786
restarts: 422
lp_iterations: 116
walltime: 0.0123833
usertime: 0.0123834
deterministic_time: 0.003253
primal_integral: 0.00141012
I20211113 17:17:42.900872 99290 solve.cpp:43] END solve
I20211113 17:17:42.900876 99290 solve.cpp:45] Restricting cost to -40
I20211113 17:17:42.900943 99290 solve.cpp:146] End solving

second run:
$ ./bin/main --input ./test_data.json --output ./test_result.json
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20211113 17:17:43.627068 99313 solve.cpp:107] Start parsing
I20211113 17:17:43.627115 99313 solve.cpp:110] End parsing
I20211113 17:17:43.627116 99313 solve.cpp:112] Start building model
I20211113 17:17:43.627368 99313 solve.cpp:116] End building model
I20211113 17:17:43.627372 99313 solve.cpp:118] Start creating optimization steps
I20211113 17:17:43.627378 99313 solve.cpp:142] End creating optimization steps
I20211113 17:17:43.627380 99313 solve.cpp:144] Start solving
I20211113 17:17:43.627382 99313 solve.cpp:57] solving Step -100
I20211113 17:17:43.627410 99313 solve.cpp:40] Start solve threads:8 timeout: 3600
I20211113 17:17:43.635049 99321 solve.cpp:36] Solution 0 objective: 9
I20211113 17:17:43.635799 99320 solve.cpp:36] Solution 1 objective: 0
I20211113 17:17:43.640210 99313 solve.cpp:42] CpSolverResponse summary:
status: OPTIMAL
objective: 0
best_bound: 0
booleans: 361
conflicts: 4
branches: 459
propagations: 4410
integer_propagations: 2389
restarts: 431
lp_iterations: 0
walltime: 0.0126358
usertime: 0.012636
deterministic_time: 0.000107226
primal_integral: 0.00403877
I20211113 17:17:43.640709 99313 solve.cpp:43] END solve
I20211113 17:17:43.640714 99313 solve.cpp:45] Restricting cost to 0
I20211113 17:17:43.640803 99313 solve.cpp:57] solving Step 10
I20211113 17:17:43.640815 99313 solve.cpp:40] Start solve threads:8 timeout: 3600
I20211113 17:17:43.649726 99313 solve.cpp:42] CpSolverResponse summary:
status: INFEASIBLE
objective: NA
best_bound: NA
booleans: 0
conflicts: 0
branches: 0
propagations: 0
integer_propagations: 0
restarts: 0
lp_iterations: 0
walltime: 0.00878603
usertime: 0.00878613
deterministic_time: 2.4821e-05
primal_integral: 0
I20211113 17:17:43.649740 99313 solve.cpp:43] END solve

So there are two problems here:

In the first run it said, that the optimal value is 4, which is wrong, as it is 0.
In the second run it said that the optimal value is 0, which is true, but now the problem is infeasible.

I am 100% sure that I did not change the binary in between the runs or anything else. I just run the command twice.
Just to convince myself the timestamps:

first run: I20211113 17:17:42.900943 99290 solve.cpp:146]
second run: I20211113 17:17:43.627068 99313 solve.cpp:107]

So yes, I am sure that I did nothing stupid in the 0.7 seconds in between the two logging messages.
If I just force the first objective to be 0 the output is:
$ ./bin/main --input ./test_data.json --output ./test_result.json
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20211113 17:40:47.870162 111338 solve.cpp:109] Start parsing
I20211113 17:40:47.870227 111338 solve.cpp:112] End parsing
I20211113 17:40:47.870232 111338 solve.cpp:114] Start building model
I20211113 17:40:47.870723 111338 solve.cpp:118] End building model
I20211113 17:40:47.870730 111338 solve.cpp:120] Start creating optimization steps
I20211113 17:40:47.870746 111338 solve.cpp:144] End creating optimization steps
I20211113 17:40:47.870751 111338 solve.cpp:146] Start solving
I20211113 17:40:47.870759 111338 solve.cpp:59] solving Step -100
I20211113 17:40:47.870806 111338 solve.cpp:42] Start solve threads:8 timeout: 3600
I20211113 17:40:47.882195 111338 solve.cpp:44] CpSolverResponse summary:
status: INFEASIBLE
objective: NA
best_bound: NA
booleans: 0
conflicts: 0
branches: 0
propagations: 0
integer_propagations: 0
restarts: 0
lp_iterations: 0
walltime: 0.0111955
usertime: 0.0111957
deterministic_time: 1.7653e-05
primal_integral: 0
I20211113 17:40:47.882803 111338 solve.cpp:45] END solve

and sometimes it works:
$ ./bin/main --input ./test_data.json --output ./test_result.json
WARNING: Logging before InitGoogleLogging() is written to STDERR
I20211113 17:42:29.693964 111431 solve.cpp:109] Start parsing
I20211113 17:42:29.694022 111431 solve.cpp:112] End parsing
I20211113 17:42:29.694026 111431 solve.cpp:114] Start building model
I20211113 17:42:29.694404 111431 solve.cpp:118] End building model
I20211113 17:42:29.694411 111431 solve.cpp:120] Start creating optimization steps
I20211113 17:42:29.694420 111431 solve.cpp:144] End creating optimization steps
I20211113 17:42:29.694424 111431 solve.cpp:146] Start solving
I20211113 17:42:29.694429 111431 solve.cpp:59] solving Step -100
I20211113 17:42:29.694473 111431 solve.cpp:42] Start solve threads:8 timeout: 3600
I20211113 17:42:29.702590 111433 solve.cpp:38] Solution 0 objective: 0
I20211113 17:42:29.706969 111431 solve.cpp:44] CpSolverResponse summary:
status: OPTIMAL
objective: 0
best_bound: 0
booleans: 361
conflicts: 9
branches: 338
propagations: 8801
integer_propagations: 5320
restarts: 309
lp_iterations: 0
walltime: 0.0123036
usertime: 0.0123038
deterministic_time: 4.0493e-05
primal_integral: 0.00179632

I also tried the master branch, but there it does nothing. It just idles using one thread. No console message after SolveCpModel
CMAKE:
  set (BUILD_SAMPLES OFF)
  set (BUILD_EXAMPLES OFF)
  FetchContent_Declare(
    ortools
    GIT_REPOSITORY https://github.com/google/or-tools.git
    GIT_TAG        v9.1
  )

  set(BUILD_DEPS ON)
  FetchContent_MakeAvailable(ortools)
  set(ORTOOLS_LIBS "ortools::ortools")

I am sorry but I cannot do anything from this report.

@lperron I could not come up with a small code example, so I would just send you the proto if you don't mind.

Yes please
Le dim. 14 nov. 2021, 20:13, Phibedy @.***> a écrit :

@lperron https://github.com/lperron I could not come up with a small
code example, so I would just send you the proto if you don't mind.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2896#issuecomment-968347569,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3J5QF2BC3EQS4KJGC3UMAC7JANCNFSM5H6Z5OQA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Yes please

I sent you the models + optimization logs. If you need something else just let me know.
Thank you for your support :)

I ran all protos multiple times on master (1 or multiple threads, always with presolve).
It always returns 0.

It currently fails on my computer using FetchContent_Declare in CMAKE and in the CI it fails using https://github.com/google/or-tools/releases/download/v9.1/or-tools_amd64_ubuntu-20.04_v9.1.9490.tar.gz with the ubuntu:20.04 as base image.
But I could set up a Dockerfile to solve it.
Can you share the code how you executed the model proto directly?

I use the C++ example sat_runner.
The easiest way to run it is to download the sources, install bazel from
bazel.io
then run:
bazel build -c opt --cxxopt=-std=c++17 examples/cpp/sat_runner &&
./bazel-bin/examples/cpp/sat_runner --logtostderr --input
--params num_search_workers:8
Laurent Perron | Operations Research | @.*** | (33) 1 42 68 53
00
Le dim. 14 nov. 2021 à 23:13, Phibedy @.***> a écrit :

It currently fails on my computer using FetchContent_Declare in CMAKE and
in the CI it fails using
https://github.com/google/or-tools/releases/download/v9.1/or-tools_amd64_ubuntu-20.04_v9.1.9490.tar.gz
with the ubuntu:20.04 as base image.
But I could set up a Dockerfile to solve it.
Can you share the code how you executed the model proto directly?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/2896#issuecomment-968373255,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3OE4CCNENYK4V5YDRTUMAYAZANCNFSM5H6Z5OQA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I just ported the code back up 9.0 (used some functions which were added in 9.1).
If I run it in 9.0 it works. If I run it in 9.1 it fails. The diff between the two git branches is only the changed ortools-version.
$ git diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4a25195..01af829 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,7 @@ else()
   FetchContent_Declare(
     ortools
     GIT_REPOSITORY https://github.com/google/or-tools.git
-    GIT_TAG        v9.0
+    GIT_TAG        v9.1
   )

Tomorrow I will build the examples and try the sat_runner.

you shoult try the master branch.

I just sent you the email.
For completeness the CMAKE:
cmake_minimum_required(VERSION 3.16)
project(ortools_runner)

if (USE_PRECOMPILED_ORTOOLS)
  link_directories(/usr/local/lib)
  set(ORTOOLS_LIBS "ortools")
else()
  include(FetchContent)

  set (BUILD_SAMPLES OFF)
  set (BUILD_EXAMPLES OFF)
  FetchContent_Declare(
    ortools
    GIT_REPOSITORY https://github.com/google/or-tools.git
    GIT_TAG        master
  )

  set(BUILD_DEPS ON)
  FetchContent_MakeAvailable(ortools)
  set(ORTOOLS_LIBS "ortools::ortools")
endif()

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(CMAKE_CXX_STANDARD 17)

#is include_directories needed?
include_directories(src)

add_executable(main src/main.cpp)
target_link_libraries(main ${ORTOOLS_LIBS})

add_custom_command(
        TARGET main POST_BUILD
        COMMAND ${CMAKE_COMMAND} -E copy
                ${CMAKE_SOURCE_DIR}/model_fail.proto
                ${CMAKE_CURRENT_BINARY_DIR}/model_fail.proto)
add_custom_command(
        TARGET main POST_BUILD
        COMMAND ${CMAKE_COMMAND} -E copy
                ${CMAKE_SOURCE_DIR}/infeasible_model.proto
                ${CMAKE_CURRENT_BINARY_DIR}/infeasible_model.proto)

I am looking into this. It seems to be a problem with our symmetry detection code.
So while waiting for the fix and for it to be pushed, if you run with parameters.set_symmetry_level(0), it seems to work fine.

@fdid-git Thank you :)

Should be all fixed on master.


Flipper for React Native 0.62

Overview
This issue is to track items to get Flipper enabled for 0.62.
RNTester Integration

[x] Android works with Flipper in RNTester

This should be working as of #27482
May also need https://github.com/facebook/react-native/pull/27631

[ ] iOS works with Flipper in RNTester

Requires https://github.com/facebook/react-native/pull/27762

Default Template Integration

[x] Android - Can install app from template and use Flipper by default.

Requires https://github.com/facebook/react-native/pull/27569

[ ] iOS - Can install app from template and use Flipper by default

Requires https://github.com/facebook/react-native/pull/27569

Upgrade Flipper SDK Version

[x] Android - Can use latest Flipper version

FBJNI migration
BUCK fix
RNTester Upgrade
Templade upgrade
Upgrade Flipper version in template

[X] iOS - Can use latest Flipper version

Should be done by #27426

Upgrading

[x] Address pod install speed with openssl Edit: addressed here
[x] Address swift inclusion

See: https://github.com/facebook/react-native/pull/27426
Removed in https://github.com/facebook/react-native/commit/8f93dedc6a5653edd2220c65ccb4ff8736ee060c

[ ] Clean up upgrade requirements

Using Flipper with default RN template
See https://github.com/facebook/react-native/issues/27565#issuecomment-580950480

[ ] Address React Devtools issue

React devtools plugin for Flipper is blank

[ ] Make sure the upgrade tool works well for this release #27879
[ ] Figure out use_framworks support

Documentation

[ ] Add React Native the Flipper website
[ ] Add documentation to the website

Adding Flipper to new projects (mention included by default after 0.62)
Adding Flipper to existing projects

[ ] In Flipper Docs

Commits to Cherry Pick

[x] Dec 5 - fix build failure due to duplicate libc++_shared.so
[x] Dec 6 - Fix Flipper integration on iOS and update it
[x] Dec 12 - Edits to flipper pods comments
[x] Dec 16 - Fix RNTester integration with Flipper
[x] Dec 17 - Remove NativeRunnableDeprecated
[x] Jan 14 - clang-format cpp
[x] Jan 21 - Migrate to FBJNI
[x] Jan 21 - Fix BUCk build
[x] Jan 28 - Use new Flipper SDK (android)
[x] Jan 29 - Integrate Flipper in RNTester on Android
[x] Jan 29 - Upgrade Flipper version in tempalate
[x] Jan 30 - initalizeFlipper should be set in template app by default
[x] Feb 3 - Remove empty swift file
[x] Feb 5 - Add androidx.swiperefreshlayout to RNTester build.gradle

I give up. @hramos! 😭

While working on a Flipper plugin it was noted that the inclusion of FlipperKit in the Podfile caused pods to need to install openssl-ios-bitcode which required building openssl for all the architectures. As you can imagine this takes a while. In a normal pod install the developer will not know what is going on likely as this is what they will see for a long time:

If you run pod install --verbose you can actually see progress during this process. On my machine it took a good 10+ minutes to complete this install. The good news is once this pod is in your cache future pod installs are much quicker. If you would like to experience this first hand you can do the following steps:

Run pod cache clear openssl-ios-bitcode
Run pod install (include --verbose if you are interested in seeing what it is actually doing) in a ios folder of a RN project with the FlipperKit pods setup

I understand the need for this library but it will be a jarring experience for developers upgrading and also for first time users of react-native. I feel like if we can't avoid it that it is at least worth calling attention to it so users don't cancel the pod install part way through and say its broken.

@rmevans9, I added that to the checklist. 👍

@rmevans9 thanks for bringing that.
I confirm that bumping the version from 0.23.6 to 0.30.0 solved that issue, we now rely on OpenSSL-Universal (<IP_ADDRESS>) instead of openssl-ios-bitcode. I've just double checked, and openssl-ios-bitcode is not in Podfile.lock.

Looks like I got you, bot!

@charpeni ok perfect! I am glad that issue got solved with the upgrade.

Submitted a PR to initialize Flipper on Android & iOS based on the context from @axe-fb.
https://github.com/react-native-community/releases/issues/145#issuecomment-567597488

Have this issue enabling Flipper on android.
execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: Duplicate class com.facebook.jni.CppException found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.CppSystemErrorException found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.DestructorThread found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.DestructorThread$1 found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.DestructorThread$Destructor found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.DestructorThread$DestructorList found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.DestructorThread$DestructorStack found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.DestructorThread$Terminus found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.HybridClassBase found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.HybridData found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.HybridData$Destructor found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.IteratorHelper found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.MapIteratorHelper found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.NativeRunnable found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.ThreadScopeSupport found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)
  Duplicate class com.facebook.jni.UnknownCppException found in modules classes.jar (com.facebook.fbjni:fbjni:0.0.2) and classes.jar (com.facebook.react:react-native:0.62.0-rc.0)

if I exclude com.facebook.fbjni from either implementation the app compiles but I will have a runtime error of SoLoader not finding jsfbni.so

Hey @rickhanlonii, I enabled Flipper for our React Native 0.61.5 app a few weeks ago. Flipper works fine apart from React Devtools (due to React version, so should be resolved in 0.62)
However, since then any XMLHttpRequest PUT requests seem to be failing with status=0. This is for uploading files to Amazon S3.
Disabling Flipper resolves the problem. Production builds haven't been affected because Flipper was only enabled for debug builds.
I can't really provide a simple repro as it takes various file picker, aws setup etc. But just wanted to make sure you're aware of the issue. Happy to provide more information if required.

@birkir thanks for the info, this is the issue @mdvacca is looking into 👍
@mjmasn thanks for the info, what's the issue with the React DevTools?

@rickhanlonii I think it's just that React Native 0.61.x only supports v3 of devtools. Gives an error in Flipper saying to install react-devtools@^3, which doesn't really help because v4 is built into Flipper.
https://reactjs.org/blog/2019/08/15/new-react-devtools.html#which-versions-of-react-are-supported says that React Native 0.62.x will be supported in devtools v4 (and presumably in Flipper too).

@rickhanlonii I updated RNTester to include Flipper support.
https://github.com/facebook/react-native/pull/27631

@mjmasn were you ever able to track down the HTTP issue?

@rickhanlonii I haven't really looked into it, wondered if it was to do with the file size as there was some issue fixed in Flipper for large responses but actually it fails even with a 9kB file request as seen below. Note the 'Stream Closed' response. Maybe the RN NetworkingModule is trying to consume a stream that was already consumed by the Flipper network plugin? That's just a guess, I don't know enough about Android / Java / Flipper to know exactly what's going on.
No errors are logged to adb when this occurs.
{
  UNSENT: 0,
  OPENED: 1,
  HEADERS_RECEIVED: 2,
  LOADING: 3,
  DONE: 4,
  readyState: 4,
  status: 0,
  timeout: 900000,
  withCredentials: true,
  upload: {},
  _aborted: false,
  _hasError: true,
  _method: 'PUT',
  _response: 'Stream Closed',
  _url:
    'https://REDACTED.s3.amazonaws.com/REDACTED',
  _timedOut: false,
  _trackingName: 'unknown',
  _incrementalEvents: false,
  responseHeaders: undefined,
  _requestId: null,
  _cachedResponse: undefined,
  _headers: { 'content-type': 'image/jpeg', 'content-length': '9933' },
  _responseType: '',
  _sent: true,
  _lowerCaseResponseHeaders: {},
  _subscriptions: []
};

@alloy that all seems to make sense to me and seems like a safer option for upgrades, want to send the PRs?

Ok I ran some testing and:
RNTester

Android works ✅
iOS does not work (PR open) 🚫

Default template

Android works ✅
iOS does not work (not sure why) 🚫

As mentioned above a change was made in Flipper’s dependencies to switch from the openssl-ios-bitcode pod to OpenSSL-Universal in order to reduce build times. However, the OpenSSL-Universal pod does not include a bitcode slice, which both Apple’s and RN’s application templates enable by default for device builds (simulator builds are unaffected).
This means that, with the current RN template, users will not be able to build for device and have Flipper integrated at the same time.
Perhaps possible, but, as of yet, untested solution:

Disable bitcode in Debug configurations in the RN template. (Unsure if there any cons to this.)
Use a different existing pod that does have prebuilt binaries for bitcode. (Unsure if one exists.)
Revert to building from source. (While this does take long initially, it does bring us closer to a setup where Flipper will be able to build with both static and dynamic libs without the need to monkey-patch CocoaPods.)

Disable bitcode in Debug configurations in the RN template. (Unsure if there any cons to this.)

I think we should try this approach, as Flipper is enabled only for Debug builds.

Use a different existing pod that does have prebuilt binaries for bitcode. (Unsure if one exists.)

I had looked at it last time, but didn't find any such prebuilt binaries.

Revert to building from source. (While this does take long initially, it does bring us closer to a setup where Flipper will be able to build with both static and dynamic libs without the need to monkey-patch CocoaPods.)

Not entirely sure about this approach, as the build times are long at the start, and due to which we have also faced some CI test's time outs and user reports regarding the long build times.

@alloy Sample, SampleSwift and Tutorial apps in Flipper repo are bitcode enabled and they compile. OpenSSL-Universal seems to be bitcode enabled, see this

Well blimey, that’s great! I’ll double-check my build machine tomorrow to see why ld was complaining about this.

Alas, seems not the case:
ld: '/Users/eloy/tmp/TestWithAllChanges/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(bio_lib.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

We can see that the slices have no bitcode section:
otool -l -arch arm64 ios/Pods/OpenSSL-Universal/ios/lib/libssl.a  | grep LLVM
otool -l -arch arm64 ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a | grep LLVM

…and indeed, looking at the last commits of the OpenSSL-Universal pod, bitcode has been disabled:
$ git log --pretty=oneline
17794e6faf5928f42264a7e3ef093ea7c08c5a15 (HEAD -> master, tag: 1.0.219, tag: <IP_ADDRESS>, origin/master, origin/HEAD) Rebuild without bitcode
7ca5804216a079ce057d01502cc224c2a34642ea ENABLE_BITCODE = NO for iOS target
896c0ae5d5d10e93dd93789125ee12860df1ffb9 Add missing include
52ef14139ab791650ddad38ece782285ef56d722 Update FUNDING.yml
9e14bcdd27ae2323742cbdb8c221ae48ad1b19ac Merge pull request #74 from ilammy/disable-bitcode
5477325f53df56b92f672ea7c2399aed46c5e4fc Disable LLVM bitcode support (again)

On the flip side, I did experiment with changing the application to build without bitcode in Debug and that did successfully build and run. (The Flipper client applications finds the app running on my device, although it doesn’t seem to connect or detect any plugins, is that known?)
In any case, it seems like for now the best solution would be to indeed disabled bitcode in Debug builds by default in the RN application template.

So regarding the need to use a preprocessor define to compile Flipper into the app, I did create https://github.com/react-native-community/cli/pull/958 and [TODO().
However, having thoroughly tested this manually, I came around to how this should work. It feels like we don’t need to take on this extra fragmented complexity; instead we just always define FB_SONARKIT_ENABLED in the Debug configuration and only wrap the AppDelegate.m code in a #if DEBUG.
People can always just remove the code from AppDelegate.m entirely, like they can the dependencies from their Podfile.
Put differently; imo we can just always enable Flipper by default in the template and keep things simple.

Alright, https://github.com/facebook/react-native/pull/28044 should address all my open feedback.

Is Flipper can be already consumed in latest 0.62 RC? Super excited about it, thanks a lot to all contributors for working on integration.

@todorone Yes, it’s available in the 0.62.0 RCs; please do try!

Hi,
Just to mention that ENABLE_BITCODE must be disable on debug otherwise the build failed, due to missing OpenSSL-Universal  bitcode.
  - Flipper-Folly (2.1.1):
    - boost-for-react-native
    - CocoaLibEvent (~> 1.0)
    - Flipper-DoubleConversion
    - Flipper-Glog
    - OpenSSL-Universal (= <IP_ADDRESS>)

Going to close this, as this ship has set sail! :shipit:

@alloy react-devtools is completely broken in RN 0.62 both standalone and in flipper. It never connects!

@AndrewMorsillo please don't respond to closed issue as very little people will see them, and provide relevant reproduction information. "Doesn't work" is unactionable.

After updating 0.61.5 to 0.62.2 ENABLE_BITCODE error drives me crazy. Not any problem while creating fresh project but it happens on upgrading to 0.62.2.
Trying to debug on real device it gives error message on below.
ld: '... project path .../ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(bio_lib.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
Any idea about it?

@ezranbayantemur please don't respond to closed issue as only few people will see them, and it pings a people that don't have your specific issue needlessly. So please open a new issue instead :)

@ezranbayantemur please don't respond to closed issue as only few people will see them, and it pings a people that don't have your specific issue needlessly. So please open a new issue instead :)

Oh my bad, I saw mentioned comments about it and didn't recognize it was closed.
Sorry for bother people 👍

need help
https://github.com/facebook/react-native/issues/29251

need help
$ pod install --verbose

#29251

stop, after installing here

$ pod install

same here! anyone knows how to solve it?


Builder support for @system-env imports

This module should be populated in the tree and built like any other.

It still doesn't work, right?


Add final_url_suffix and update UTMs

Are you a current Fivetran customer?
Jocelyn Chan, Data Analyst, Paper Culture
What change(s) does this PR introduce?
Added final_url_suffix into stg_google_ads__campaign_history and stg_google_ads__ad_history and modified logic for extracting the UTMs.
The reason for the changes is to help get complete information on UTMs.
Depending on each company’s preferred way of setting up campaigns, sometimes the UTMs can be configured in the final_url_suffix field. In this case, if we only usefinal_urls to extract UTMs as in the original logic, it will return empty values, but it’s not true. Therefore, we will search UTMs first in the final_urls (for ad_history model) or tracking_url_template (for campaign_history model), and if null, search in final_url_suffix .
The changes are applied to not only the ad_history but campaign_history model. The reason is that the ad_history model doesn’t include data from all campaigns. Some campaigns like Google Performance Max campaigns don’t have ad_group or ad level, and they will be excluded from the ad_history model. Since it’s beneficial to have UTM information for reporting, the UTM fields are added to the campaign_history model.
The changes made in this package will be used in the dbt_google_ads package to achieve the result with complete UTM information in the downstream models, which I will create a separate PR for it.
Did you update the CHANGELOG?

[x] Yes

Does this PR introduce a breaking change?

[ ] Yes (please provide breaking change details below.)
[x] No  (please provide an explanation as to how the change is non-breaking below.)
Since final_url_suffix field has been already included in the temp models, stg_google_ads__ad_history_tmp and stg_google_ads__campaign_history_tmp, adding this new field in the downstream models doesn't require data re-sync. As long as the new changes from the PR are merged completely and users are pointing to the new version of the package, the project should run with no issues.

Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)

[x] Yes

Is this PR in response to a previously created Bug or Feature Request

[ ] Yes, Issue/Feature [link bug/feature number here]
[x] No

How did you test the PR changes?

[ ] Buildkite
[x] Local (please provide additional testing details below)
I followed the instruction on how to contribute to the package through this article, https://discourse.getdbt.com/t/contributing-to-an-external-dbt-package/657. I installed the local version of the package that I made the changes to in my project, and I tested the package by running through my dbt project. It ran successfully with the intended changes I'm looking for.

Select which warehouse(s) were used to test the PR

[x] BigQuery
[ ] Redshift
[ ] Snowflake
[ ] Postgres
[ ] Databricks
[ ] Other (provide details below)

Provide an emoji that best describes your current mood

:dancer:
Feedback
We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your feedback on our existing dbt packages or what you'd like to see next

To add some sample data for reference:
For stg_google_ads__campaign_history model, the tracking_url_template can be left empty without any configuration but final_url_suffix will contain campaign-level UTMs.

For stg_google_ads__ad_history model, the final_urls can only have the landing page URL while the final_url_suffix has the actual UTM values.

Dropping a comment here to express that there is more interest in this PR getting merged in. UTM fields only getting populated via final_url is a bit burdensome in Google Ads because it means more manual input in ensuring that those fields are populated for each ad rather than allowing for automated input via the URL suffix.

@dlubawy thanks so much for chiming in and adding your thoughts! This has been blocked due to my remaining questions as I want to ensure we are updating the package properly based on the intended behavior of the Google Ads data. I will take your input and work on updating this PR (likely in a new PR prior to being merged with main).
I will share with you once the changes are ready and you can test them out to validate on your end that all looks good before moving forward.

@dlubawy thanks so much for chiming in and adding your thoughts! This has been blocked due to my remaining questions as I want to ensure we are updating the package properly based on the intended behavior of the Google Ads data. I will take your input and work on updating this PR (likely in a new PR prior to being merged with main).
I will share with you once the changes are ready and you can test them out to validate on your end that all looks good before moving forward.

@fivetran-joemarkiewicz is there an update regarding the status of these changes? It would be a massive improvement if we can move away from having to add UTM parameters manually to each URL by having them get sourced from final_url_suffix instead.

Hey @dlubawy yup! I am picking this up in our current sprint to continue moving this forward! You should see more updates in the current week 😄

There are still some updates that need to be applied to this update before being able to merge to main. As such, I will merge into a staging branch. Be sure to follow the accompanying PR to follow along for updates.


Fix $fml

Allen $fml
Dan The command fml doesn't exist. Did you mean mp?

10/10 forgot to port over.


RTL support is a bit buggy

The drawer view supports  RTL direction, but the items inside it don't. See attached screenshot.

First of all I thank you for this very nice module.
Is it possible to say when your next version release ?


index imports for models (#5654)

Closes #5654

Hello @Shaikh-Danish there are some conflicts to resolve in one file.  Please take a look and let us know if you need any help prior to review

I will fix via a temporary branch


Style login page

Hey Gordana, this looks great! One thing, on views/admins/login.php, there is now a base_url call on master to replace Diane's static link. Would you, please, pull that change and update this branch so we can merge?

@jgilme01 I pulled in the newest changes on master into my branch, and resolved the conflicts. I think it's good to be merged now.


Automatically convert memory units (from KB/MB/GB)

Hello! I discovered this repo and I do have some experience with C. I'd like to work on this issue.

Sounds good @dellzer! Assigning to you


Improved the accuracy of the hockey description.

Implements #4970, titled "hockey" action has misleading api description

I'm not sure why @fastlane-danger-bot commented, as I do have a link in the description.

Thanks for the PR, this is great. It complained because it requires a URL, and doesn't check for #number yet 👍


Adding documentation about SBOM report and how to get access to it

WHAT
This PR is adding information about the recently implemented SBOM reports. It is using already existing pages to explain what is a SBOM report and how to get access to it.
Resolves https://github.com/aiven/devportal/issues/1540

If this feature isn't live yet, (it's marked pre-release), then please keep it as draft to prevent accidental merging.

Pending feedback from Jamie to get this pushed through or closed out.


Perfect Nested Sampling

We can do perfect Nested Sampling that asymptotically converges in both posterior and evidence calculations, for arbitrarily complicated likelihoods. The cost is slightly more likelihood computations.

Done


silly question

hey men. meaby it's the right place to ask.
i'm made my own framework to make progressive web apps
i'm super duper with how it works. but i have a issue about deploy
I'm made the same server-side render as you made.
but the question: how I ensure that when enter the url. www.foo.como/
is taking the server.js fisrt to render and not the index.html like it did usualy.??
Thanks

What I understood is you have site abc.com. So if you load the site, it should response from server.js.  Like express server for example.

@JuanLuisClaure Right this app is hosted in github pages. You can try now.sh to deploy this app. Since I have configured server.js and in package.json to run the application.


Fix the calculation of the histogram buckets and writing to the tensor in summary_db_writer

Issue: 1141: Incorrect data being written out for the histogram in the db

The calculation of the histogram buckets is incorrect per the histogramProto defined in 	summary.proto
The data is getting clobbered in MigrateHistogram when writing it to a Tensor. This results in incorrect data being stored in the db

The pr provides a fix for this.
Testing:

Added a unit test

Thanks for the review.   Yes, thats right. I noticed that too in my experiments and had to hack/strip the dbl min in order to get the rendering to work.  I was thinking of opening an issue but if the todo's in code suffice, I can leave it at that.
I have added the todo's per your request and that made your approval stale.  Can you please approve again.  Thank you.

That sounds good.  I have updated the title for that TensorBoard issue and reopened it, so we can use that.

Thank you @nfelt


Add support for handling nil receivers of typed slices

NilAway supports nil receivers of methods, but not of typed slices. This results in a false positive as shown in the example below. Extend nil receiver support for handling such cases.
type FooBars []int

func (f FooBars) Count() int {
	var cnt int
	for range f {
		cnt++
	}
	return cnt
}

func main() {
	var foo FooBars = nil
	fmt.Println(foo.Count()) // error: literal `nil` called `Count()`
}

PR #189 addressing this issue is merged. Closing.


Add make clean as final step of Jenkins builds

This should reduce the archived size of builds.

LGTM.  This ought to help bigly with the disk space shortages.


XMLParser and trim bug fix

Thank you for your library!
While using it I faced a problem. Reading a file with an element value with an escaped character, the value in the AEXMLDocument was removing the spaces around it. Setting the trimming to false, fixed the problem. But I wanted to have trimming :)
For example This & that becomes This&that and This ôr that becomes Thisôr that.
The problem is that XMLParserDelegate parser(_:foundCharacters:) might return multiple chunks of texts (https://developer.apple.com/documentation/foundation/xmlparserdelegate/1412539-parser ), which happens with special characters.
To fix it, I moved the trimming to the delegate method when the element ends.

It's merged now in 4.3.0, thanks again!


Log retries in NodeRPC client

#41  👈
main

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

Join @vegarsti and the rest of your teammates on  Graphite


[BUG] ApexTool's size is wrong if you select an element, that inside another element whose size was changed by webuffet

Describe the bug
ApexTool's size is wrong if you select an element, that inside another element whose size was changed by webuffet. It looks like follow the element's original size.
To Reproduce
Steps to reproduce the behavior:

Go to https://www.google.co.kr/

Select the element.

Make the element's size bigger.

Select the element again like below, that inside the previous element.

See error (like the screenshot)

Expected behavior
ApexTool's size should be bigger. Match with the element's new size.
Screenshots

Chrome version

74

Hello again!
I fix this issue and leave a pull request. #57

Thank you for a priceless bug report.


[stable/nextcloud] Inject certificates into image

What this PR does / why we need it:
Adds CA certificate support to nextcloud. Allowing it to authenticate against ldap with an internal CA.
Which issue this PR fixes
N/A
Special notes for your reviewer:
Checklist

[X] DCO signed
[X] Chart Version bumped
[X] Variables are documented in the README.md
[X] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @chrisingenhaag

/assign @billimek

Hi @ballj ,
thx for the PR. I think it is really specific what you want to realize. Isn´t something that can be handled via the extraVolumeMounts already existing within the chart? Sure you have to prepare a volume or configmap for this usecase. But from here I think it would work and would prevent us to bring this complexity into this chart.
regards

Basic functionality can be achieved with extra volumes. However I was thinking this maybe useful for others using ldap (for example) as it will work out of the box. I wouldn't say its very complex as the _certificates.tpl isn't used unless a certificate if specified.

The nextcloud chart has migrated to a new repo.  Can you please raise the pull request over there?  https://github.com/nextcloud/helm


Apply cruft updates

Automatically generated PR from repo_conformance to apply updates using scruft.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.77%. Comparing base (173b8e3) to head (52b1496).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #46   +/-   ##
=======================================
  Coverage   94.77%   94.77%
=======================================
  Files           6        6
  Lines         383      383
=======================================
  Hits          363      363
  Misses         20       20

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Ship a E21_PersonFromWikidata.toml

We have autocomplete with wikidata URIs in the sample project, so we should at least also ship an import definition for that data

Implemented in d249d9972914152fada5163b9cba9dbb2be95932


Unable to set an initial folder when using ActionOpenDocumentTree

Hello,
I'm trying to support cifs document provider in my photo viewer app. Now I am having a problem that I can't solve so I hope someone can help here.
          Intent i = new Intent(Intent.ActionOpenDocumentTree);             i.PutExtra("android.content.extra.SHOW_ADVANCED", true);             i.PutExtra("android.content.extra.FANCY", true);             i.PutExtra("android.content.extra.SHOW_FILESIZE", true);             if (curi != "")             {                 Android.Net.Uri AU = Android.Net.Uri.Parse(curi);                 i.PutExtra(DocumentsContract.ExtraInitialUri, AU);             }             i.AddFlags(ActivityFlags.GrantReadUriPermission | ActivityFlags.GrantWriteUriPermission);             StartActivityForResult(i, SELECT_FOLDER_REQUEST);
When I add this i.PutExtra(DocumentsContract.ExtraInitialUri, AU); I can make the folder picker to start at specified folder (content uri)
The above code worked for both external storage and removable storage.
But when I use the same code with CIFS document provider it is not effective. is there anything I did wrong?
an example of initial_uri that worked: AU = {content://com.android.externalstorage.documents/tree/05AD-1C45%3A/document/05AD-1C45%3AAPP}

I can not find the way to set initial directory by DocumentsContract.EXTRA_INITIAL_URI.
I also want to use that parameter.

@wa2c I am not sure if this will help, not really sure if ChatGPT is hallucinating but this might be helpful.

DocumentsContract.EXTRA_INITIAL_URI is an extra that can be used when launching a storage access framework (SAF) picker to specify the initial directory that the picker should display. If your document provider app wants to handle this extra, you need to extract the URI from the intent that launches your provider and use it to set the initial directory in your app.

Here is an example of how you might handle DocumentsContract.EXTRA_INITIAL_URI in your DocumentsProvider:
import android.content.ContentValues
import android.database.Cursor
import android.database.MatrixCursor
import android.net.Uri
import android.os.Bundle
import android.provider.DocumentsContract
import android.provider.DocumentsProvider
import kotlinx.coroutines.runBlocking

class YourDocumentsProvider : DocumentsProvider() {

    override fun queryRoots(projection: Array<out String>?): Cursor {
        // Your implementation for queryRoots
    }

    override fun queryChildDocuments(
        parentDocumentId: String?,
        projection: Array<out String>?,
        sortOrder: String?
    ): Cursor {
        // Extract the initial URI from the intent
        val initialUri: Uri? = context?.contentResolver?.call(
            DocumentsContract.PROVIDER_INTERFACE,
            "getDocumentMetadata",
            parentDocumentId,
            null
        )?.getParcelable(DocumentsContract.EXTRA_INITIAL_URI)

        // Use the initial URI to set the initial directory
        val initialDirectory = initialUri?.let {
            // Resolve the initial URI to get the document ID
            val initialDocumentId = DocumentsContract.getDocumentId(initialUri)
            runBlocking {
                // Fetch the initial directory using your app's logic
                // This is where you might handle the initial URI specific to your app
                // For example, you might convert the initial URI to a directory in your app's data
                val initialDirectory = fetchDirectoryForDocumentId(initialDocumentId)
                initialDirectory
            }
        }

        // Now you can use the initial directory in your query logic
        // ...

        // Your implementation for queryChildDocuments
    }

    // Other overridden methods...

    private fun fetchDirectoryForDocumentId(documentId: String): YourDirectoryType? {
        // Your logic to convert the document ID to a directory in your app
        // For example, you might have a mapping of document IDs to directories
        // Return the corresponding directory for the given document ID
    }
}

In this example, fetchDirectoryForDocumentId() is a placeholder for your logic to convert the document ID obtained from the initial URI to a directory in your app. The handling of the initial URI might be specific to your app's internal structure or business logic.

Please replace the placeholder with your actual logic for determining the initial directory based on the provided document ID.

Keep in mind that not all SAF pickers may use DocumentsContract.EXTRA_INITIAL_URI, and its availability depends on how the calling app initiates the document picker. Therefore, it's a good practice to handle both cases (with and without the initial URI) gracefully in your queryChildDocuments method.

@RebelliousX
No, that is invalid code.


Plugins in Nexus Studio

Plugins

[x] Neuron Morphology https://github.com/BlueBrain/nexus/issues/950
[x] Neuron Electrophysiology https://github.com/BlueBrain/nexus/issues/1028
[x] Administration https://github.com/BlueBrain/nexus/issues/1041
[x] "MINDs" Metadata https://github.com/BlueBrain/nexus/issues/1102
[x] Data Access https://github.com/BlueBrain/nexus/issues/1101
[x] Image https://github.com/BlueBrain/nexus/issues/1105
[x] Simulation @pgetta
[x] Simulation Campaign @pgetta
[x] Circuit @pgetta
[ ] Fact-sheet(s): mutliple possible
[ ] Morphology(ies): mutliple possible
[ ] Default Metadata
[ ] Provenance
[ ] Query Results: mutliple possible
[ ] Document
[ ] Video

Add extra issues from improvements to the list


Merge multiple devices into one keyboard

Context: my keyboard has an n-key rollover feature which makes it register itself as multiple HID devices. Each of these is interpreted as an individual keyboard by wlroots compositors.
Consequently, modifiers are only sent if they belong to the same input device as the key being pressed. Grouping multiple devices into one keyboard would allow sharing these modifiers (as well as keymap and repeat rate),
The libinput list-devices command indicates that these devices all belong to the same group, which might be a good way to merge keyboards by default.
Device:           Keyed Up Labs ES-87
Kernel:           /dev/input/event5
Group:            5
...
Device:           Keyed Up Labs ES-87 Keyboard
Kernel:           /dev/input/event6
Group:            5
...
Device:           Keyed Up Labs ES-87 Consumer Control
Kernel:           /dev/input/event7
Group:            5

Well, found a victim that has to test for us I guess :)
This should be feasable with the same/a similar approach to what I did for graphics tablets (https://github.com/swaywm/wlroots/blob/master/rootston/seat.c#L836).
Your log shows that all devices are in the same group and I hope those are the only ones in said group.
The more interesting question is, how and where this should be handled.
Following the current code examples we have, it's a better fit for compositors. OTOH this is a major issue, should need support in every compositor and should be non-opinionated here.
To put it into the compositor, I'd put the lookup here https://github.com/swaywm/wlroots/blob/master/rootston/seat.c#L620 and merge devices from the same group.
In the library it should probably be around https://github.com/swaywm/wlroots/blob/master/backend/libinput/events.c#L88 and not create a keyboard in the first place.
Compositor version is probably easier to do, since iirc there's no clean way to iterate all libinput devices at that point.
Notes:
I'm not 100% sure if I mentioned it before, though I have been aware:
The way we handle keyboards currently is different from other compositors/libraries.
Because wlroots uses a dedicated xkb state for each keyboard, while others have one per seat.
IMO the xkb-common doc hints towards "the other" way being the intended way.
IMO our way is better :) I use the feature of having different layouts/xkb config stuff for different keyboards.
So I'm against just going for the "state per seat" approach, even though it'd fix this.

Your log shows that all devices are in the same group and I hope those are the only ones in said group.

Yes, that's the case.

The way we handle keyboards currently is different from other compositors/libraries.

I noticed, the discrepancy with weston made me dig a bit into this.
I also didn't mean to imply that all keyboard should be merged together, just that it should be possible for a compositor to do so. I was able to hack something on tinywl, but I figured it should be something supported by the library.
I will look into what you did for the tablets and see what I can do.

Following the current code examples we have, it's a better fit for compositors

Not possible as there is one wlr_keyboard (thus one XKB state) per input device.

I thought we feed that from the compositor and could just ignore the leftovers.
But I might easily be wrong, haven't touched any of this in quite a while.
then yea, it'll have to be done in the backend.

The XKB state is bound to the wlr_keyboard, thus to the wlr_input_device. This makes it impossible to fix this issue. On the other hand, we don't want to bind it to the seat either (to allow for multiple separate devices bound to the same seat). We might need to add a new type for this.

Why wouldn't it work to change https://github.com/swaywm/wlroots/blob/master/backend/libinput/keyboard.c#L10 to have a list, instead of a single pointer and handle all of this in the libinput backend?
From what I see, the events all have to end up onthe same wlr_keyboard, and this (should be)is libinput specific.

Yeah, making this libinput-specific would work.

Shouldn't modifiers be shared throughout the whole seat, not just the same keyboard?  Xorg has modifiers shared between keyboards, so does the raw tty terminal.  The only place I know of that has modifiers specific to the keyboard is OSX.
Maybe I am wrong, but what is the logic behind modifiers not shared anyway?
None the less, having the ability to share modifiers would be appreciated.

I think a solution similar to how a wlr_cursor is the shared state between one or more pointers would be good for keyboards too.
This would allow to let the compositor/seat decide if modifiers should be shared by attaching the input device to the "wlr_keyboard".
The only problem stopping me from working on a PR is that I can't come up with a good name for those two different wlr_keyboard types.

MayeulC asked for a libinput trace so there it is: https://gist.github.com/vesim987/943235a8b06756dcab73da04bae89faa
I've tested this trace using libinput debug-events and it is showing the events fine, but sway is still not reacting for them so it should be reproducible
To test this I've used
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle

in my config.
And also i think it is worth mentioning that the input devices are in different groups:
-event8   DEVICE_ADDED     Huawei WMI hotkeys                seat0 default group10 cap:k
-event5   DEVICE_ADDED     AT Translated Set 2 keyboard      seat0 default group11 cap:k


(How) Can emacs-tree-sitter recognize additional languages/modes?

As titled, how can we add new languages/Emacs modes to tree-sitter? For instance, Emacs Lisp, or mhtml-mode, which is the default major mode for HTML files.

New languages can be added in the tree-sitter-langs. There you can find also an explanation on how to add languages: https://github.com/ubolonton/tree-sitter-langs (there is even a PR for mhtml.
Regarding Emacs Lisp, I've created a Common Lisp grammar https://github.com/theHamsta/nvim-treesitter-commonlisp based on  https://github.com/sogaiu/tree-sitter-clojure. You might be able to either adapt the Common Lisp grammar or use sogaiu's clojure or Janet grammar as a starting point to create a parser that could be added to tree-sitter-langs.

It seems like the question was answered


Refactored script to use less dependencies. Added requirements.txt

Refactored "get_dummy_fastq.py" to use less dependencies and some other linting changes (not finished in that regard, though)
Added empty "requirements.txt" to be filled with needed dependencies in the future.

I removed the input flags from the parser because this makes this argument 'optional' whereas I think it is better to have the input fastq list as a required positional argument. Made a few changes to help text.

Is the requirements file supposed to be empty?

@mshadbolt the requirements.txt needs to be filled with the dependencies, I created it while there were still but I deleted both pandas and biopython from the script so it isn't needed.
I just left it there for people to fill it when creating new scripts with dependencies, but it's not necessary. We can delete until needed!

Actually, the other script in the repo has 4 dependencies so I might fill it.

ok cool so we treat it as a requirements file for any script that gets added to this src file, that sounds reasonable

@ami-day could you review and agree/disagree with the changes? Thanks!


Japanese language support

Hello, @MrCrayfish and contributors!
Your work is very helpful for me.
I wish Controllable to support Japanese language and become more useful for Japanese users .
I'm ready to provide ja_jp.json for Controllable.
Can I send PR?

Yes you can send a PR

I opened PR #279. Not of all phrases are translated, but the phrases oftes appear are done.
@MrCrayfish You can review and merge the PR, or wait a completion of translation. Either is fine.

Any updates on this?


⚠ Bofrost.be has degraded performance

In 4e0be62, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1515 ms

Resolved: Bofrost.be performance has improved in 227a99f.


[Mockapi][Feature] mockapi supports res

Compared with mockapi, router of autorest.testserver support res which could make the test more compact and clean. If we could support it, it will be very convenient.

Could you explain more how this make it cleaner, the mockapi style was done with the very purpose of not having to use the express response which require a lot more knowledge of how to use express.

https://github.com/Azure/cadl-ranch/blob/1dbe0df3c5e2c6a20a3fb60fe1e197d98efeae37/packages/cadl-ranch-specs/http/from-testserver/non-string-enum/mockapi.ts#L9

https://github.com/Azure/autorest.testserver/blob/e66f072497164e23886e40ac687774333b8d3671/legacy/routes/nonStringEnums.js#L15
I think we could provide some response template which makes the mockapi cleaner like:

there is a few helpers, in particular json will set a json body so you don't have to manually write the content type.
 return {
      status: 200,
      body: json({ received: "model" }),
    };


DST issue in the unit tests

Issue summary
The seem to be a DST issue with how the split() function is tested, because it assumes that a day always has 24 hours, which will be true except for two days during the year.
System informations

Information
Description

League\Period version
master (3.3.0)

PHP/HHVM version
PHP 7.0.0

OS Platform
OSX 10.12

Standalone code, or other way to reproduce the problem
Run the test suite on a day where we mess around with DST, like today (Nov 5th).
Expected result
Tests should pass.
Actual result
$ phpunit --stop-on-failure
PHPUnit 4.8.27 by Sebastian Bergmann and contributors.

Runtime:	PHP 7.0.0 with Xdebug 2.4.0RC2
Configuration:	/Users/marc/Projects/period/phpunit.xml

................F

Time: 428 ms, Memory: 8.00MB

There was 1 failure:

1) League\Period\Test\PeriodTest::testSplitWithInconsistentInterval
Failed asserting that 18000 matches expected 14400.

/Users/marc/Projects/period/test/PeriodTest.php:154

FAILURES!
Tests: 17, Assertions: 52, Failures: 1.

@marcaube Exactly its an bug in the test suite not in the method on itself I'll fix that in the next release.

bufixed by #52


The server and client are already working, the character doesn't respond

The server and client are already working, but the character doesn't respond to me,I checked the openai key there is no problem,it works with other program

Did you try on different browsers? Just asking?

Also, can you check the log from your Docker container or (if running directly) the server side?

Did you try on different browsers? Just asking?

I tried on safari and chrome don't work

Also, can you check and post the log from your Docker container or (if running directly) the server side?

Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 2.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 8.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 16.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
This is the log

2023-07-17 20:52:32,319 - handle_receive - websocket_routes.py - INFO - Client #634658 selected character: Loki
2023-07-17 20:52:44,967 - _generate_context - openai_llm.py - INFO - Found 1 documents
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 1.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
2023-07-17 20:54:00,654 - handle_receive - websocket_routes.py - INFO - Client #715 closed the connection
Client #4993138192 left the chat
INFO:     connection closed
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 2.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 4.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 8.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
Retrying langchain.chat_models.openai.acompletion_with_retry.._completion_with_retry in 16.0 seconds as it raised APIConnectionError: Error communicating with OpenAI.
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 980, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)  # type: ignore[return-value]  # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 2039, in create_connection
File "uvloop/loop.pyx", line 2016, in uvloop.loop.Loop.create_connection
TimeoutError: [Errno 60] Operation timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/openai/api_requestor.py", line 668, in arequest_raw
result = await session.request(**request_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/aiohttp/client.py", line 536, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 540, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 901, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 1206, in _create_direct_connection
raise last_exc
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 988, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.openai.com:443 ssl:default [Operation timed out]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 247, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/fastapi/applications.py", line 270, in call
await super().call(scope, receive, send)
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/starlette/applications.py", line 124, in call
await self.middleware_stack(scope, receive, send)
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/starlette/middleware/errors.py", line 149, in call
await self.app(scope, receive, send)
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 51, in call
await self.app(scope, receive, send)
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/starlette/routing.py", line 680, in call
await route.handle(scope, receive, send)
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/starlette/routing.py", line 334, in handle
await self.app(scope, receive, send)
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/starlette/routing.py", line 81, in app
await func(session)
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/fastapi/routing.py", line 283, in app
await dependant.call(**values)
File "/Users/wangshu/PycharmProjects/realcharacter/RealChar/realtime_ai_character/websocket_routes.py", line 48, in websocket_endpoint
await asyncio.gather(main_task)
File "/Users/wangshu/PycharmProjects/realcharacter/RealChar/realtime_ai_character/websocket_routes.py", line 145, in handle_receive
response = await llm.achat(
^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/RealChar/realtime_ai_character/llm/openai_llm.py", line 42, in achat
response = await self.chat_open_ai.agenerate(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/langchain/chat_models/base.py", line 200, in agenerate
raise exceptions[0]
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/langchain/chat_models/base.py", line 301, in _agenerate_with_cache
return await self._agenerate(
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/langchain/chat_models/openai.py", line 411, in _agenerate
async for stream_resp in await acompletion_with_retry(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/langchain/chat_models/openai.py", line 95, in acompletion_with_retry
return await _completion_with_retry(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/tenacity/_asyncio.py", line 88, in async_wrapped
return await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/tenacity/_asyncio.py", line 47, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/tenacity/init.py", line 325, in iter
raise retry_exc.reraise()
^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/tenacity/init.py", line 158, in reraise
raise self.last_attempt.result()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/tenacity/_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/langchain/chat_models/openai.py", line 93, in _completion_with_retry
return await llm.client.acreate(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/openai/api_resources/chat_completion.py", line 45, in acreate
return await super().acreate(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 217, in acreate
response, _, api_key = await requestor.arequest(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/openai/api_requestor.py", line 372, in arequest
result = await self.arequest_raw(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/openai/api_requestor.py", line 685, in arequest_raw
raise error.APIConnectionError("Error communicating with OpenAI") from e
openai.error.APIConnectionError: Error communicating with OpenAI
ERROR:    closing handshake failed
Traceback (most recent call last):
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/websockets/legacy/server.py", line 248, in handler
await self.close()
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 766, in close
await self.write_close_frame(Close(code, reason))
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 1232, in write_close_frame
await self.write_frame(True, OP_CLOSE, data, _state=State.CLOSING)
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 1205, in write_frame
await self.drain()
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 1194, in drain
await self.ensure_open()
File "/Users/wangshu/PycharmProjects/realcharacter/venv/lib/python3.11/site-packages/websockets/legacy/protocol.py", line 935, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: sent 1000 (OK); no close frame received
INFO:     connection closed

Please check this is the server log and env file .

@yinjie1949 you should hide your api key

@yinjie1949 you should hide your api key

Thanks a lot!

@yinjie1949 ,
i have the same error,
Have you solved the problem
https://user-images.githubusercontent.com/88878773/254117436-19e669b4-6318-4574-982b-eacf836334f3.png

if you goto chrome / browser / console - can you see any errors?

I fix the problem by filling the openai_api_base and openai_proxy in chat_models/openai.py

I fix the problem by filling the openai_api_base and openai_proxy in chat_models/openai.py

where is the file chat_models/openai.py?


Don't rerun closure-compiler if frontend hasn't changed

Moves the JS into its own derivation

@tomsmalley @luigy Just tested changing the backend and the frontend does not rebuild.


Root web url

is there anyway to change the root prefix for stackrox to /stackrox or something like that?

Hi @Engrave-zz and thank you for opening an issue!
Could you clarify a bit what prefix you are trying to change?
My understanding is that youwould like to change the URL that the WebUI is exposed at, correct?


Project title

Project title
(Write project title over here)
Project Description
(Describe the project over here)
Stack:
[ ] Html
[ ] CSS
[ ] JavaScript

hey @dunsin2018 @Ahsan-Ehtesham , I'm interested in this issue can you assign me this issue to me.


add missing copyright header

In PR #742 this file is added without a copyright header.
Appeared in review of #679
This will only add the copyright header

LGTM

LGTM


Add Project Archiving Feature

Implement a new attribute of a Project to indicate if the project is archived.
This attribute should be used as a filter for Projects in the various places multiple projects are displayed in the UI and returned from the API.
"ARCHIVED" should show as a badge on the project specific view.
A new UI element should be put in place for project configuration on the project specific view that allows for the project to be archived.
Project archiving from a UI perspective should mirror similar behaviors in GitHub and GitLab. The user should be advised as to the implications of archiving and feature a confirmation aspect to prevent projects from being inadvertently archived.

Will be released in Imbi 0.7.0


Handlebars Dependency Broken

I am getting a build error
error[E0518]: attribute should be applied to function
 --> /Users/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/handlebars-0.31.0/src/grammar.rs:3:10
  |
3 | #[derive(Parser)]
  |          ^^^^^^ not a function
error: aborting due to previous error
For more information about this error, try `rustc --explain E0518`.
error: Could not compile `handlebars`.

which I believe is being caused by handlebars

I should mention that that is on nightly rust, happy to fix and do a pull request if needed

Thanks for the report, and for trying Criterion.rs.
I'll try to fix this soon. A pull request would be welcome if you get around to it first, though.

I keep getting the error on travis, but I cannot seem to reproduce it on my local machine... https://travis-ci.org/QCGPU/qcgpu-rust/jobs/361201489

Now also failing on nightly, any ideas how to fix?
Thanks!

According to https://github.com/sunng87/handlebars-rust/issues/209, the problem is solved by the latest version of pest (1.0.7). cargo update should fix it - it seems to have worked for me, at least.

That worked for me thanks!


EntityEquipmentEvent

The EntityEquipmentEvent is an ongoing project to be able to detect all changes to an EntityEquipment. It works best for non-stackable items (tools/weapons), but should work for all items.
Current Known Issues:

Doesn't work at all in versions <1.11
Sometimes items appear to disappear
Behavior of event changes depending on player gamemode
Placing blocks in survival mode seems to cause issues

Added high priority since the event can sometimes clear the held item.

Sometimes items appear to disappear
Behavior of event changes depending on player gamemode
Placing blocks in survival mode seems to cause issues

Probably fixed in e85d85a and 8d03ad2

Issue is still present.
To replicate:

More your cursor to first (empty) hotbar slot
/wm get <any weapon>
While the weapon is supposed to appear at your currently selected slot, it does not.


[BP-1.13][FLINK-23954][tests] Fix e2e test test_queryable_state_restart_tm.sh

Backport of #17027 to release-1.13.

The build failure seems to be related to the updated NoticeFileChecker. This should be fixed now.


Android's "don't ask again"

🚀 Feature Requests
Android's permission dialog gives the user the option to "Don't Ask Again".
I must know, through  the PermissionStatus enum, if the user selected that option. That's because, if I can't ask again, I must tell the user to go to the device's settings screen to give me the necessary permissions.
I suggest creating PermissionStatus.dontAskAgain.

Ibid.

@celiyawong That's exactly my point.

@hugocbpassos, @celiyawong, you can use the shouldShowRequestPermissionRationale method to figure this out.
This method returns true if the user has previously denied the request. But if the user has selected “Dont’ ask again” this method would always return false. It also returns false if we are prompting for permission for the first time.

@mvanbeusekom So the only way I can be 100% sure that the user selected "Don't ask again" is requesting the permission, checking if it's denied and then checking if shouldShowRequestPermissionRationale returns false, right? If I just want to check the permission, the same logic wouldn't work because if I haven't requested the permission at least once, it'll be denied and shouldShowRequestPermissionRationale would return false either. I would have to rely on my own code to know if the permission had been requested before or stop checking permissions, but always requesting.
I'm sorry, but you got to agree with me that this is a bad approach. Not only because it wouldn't work in the mentioned situation, but also because it makes things more complex and demands the plugin user to create more platform-specific code – if (Platform.isAndroid) doThis() else doThat().
I would be glad if you considered adding the dontAskAgain to PermissionStatus enum.
Please, feel free to correct me if something I said is wrong.

So to find out if the user selected “don’t ask again” (even the first time you are requesting permissions) is (this is on Android):

Make a call to the checkPermissions
If the return value is denied call the shouldShowPermissionRationale:
a. If the value returned equals false, the user selected "don’t ask again".
b. If the value equals true it is either the first time you are requesting permissions or the user denied permissions earlier but did NOT select the “don’t ask again” option. Either way it is save to continue requesting permissions.

So you don’t have to “always” request permissions.

@mvanbeusekom There are at least three ways to get a false shouldShowRequestPermissionRationale (didn't test service-related situations):

Checking a permission that has never been requested:
status: denied
shouldShowRequestPermissionRationale: false

Checking or requestinga permission that has been told to "Don't ask again":
status: denied
shouldShowRequestPermissionRationale: false

Checking or requesting a permission that has been granted:
status: granted
shouldShowRequestPermissionRationale: false

Well, I can't distinguish between 1 and 2. As you said, seems like the only solution would be persisting if we requested permissions before, but I feel like this is a plugin responsibility. If you don't think so, at least the shouldShowRequestPermissionRationale function should have a really clear documentation, which explains the developer its responsibility.

You have convinced me that we could maybe do a better job here and make it easier for other developers ;).
This means that we will be introducing a breaking change (since the enum value might change overnight).

I had the exact same problem on Android and I came up with this idea: I'm checking how long it takes for the requestPermissions() method to return a value. If it's less than 100ms then I can be fairly certain it's an automatic response from the platform itself without any user interaction and I redirect the app to the Settings page, otherwise I parse the response from the requestPermissions() method.

That's a nice trick. I could use that while this issue is opened, but I wonder how effective it is some low-range devices.

@tonisostrat That is an awesome way of getting around this - great work.
However, it would be great if we can get a Don't Ask Again flag as it is considered Android best practice to redirect users to the setting screen in this case.

To do this we would need to store a bool, for instance, in the SharedPreferences and be able to call shouldShowRequestPermissionRationale.
if shouldShowRequestPermissionRationale is false and it's been asked before (that's why we need the SharedPreferences), then it's been denied forever.

try this helper. It will answer "granted", "not granted" or "do not ask again".
I don't want to send a pull request because it implies another dependency (SharedPreferences)
If you think that can be added, let me know and I'll send a PR.
import 'package:flutter/foundation.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:shared_preferences/shared_preferences.dart';
enum MyAwesomeStatus { granted, notGranted, doNotAskAgain }
class PermissionHelper {
static Future askWriteExternalPermission(
TargetPlatform platform, PermissionGroup permissionGroup) async {
MyAwesomeStatus status;
if (platform == TargetPlatform.android) {
Map<PermissionGroup, PermissionStatus> permissionsGranted =
await PermissionHandler()
.requestPermissions([permissionGroup]);
PermissionStatus permissionStatus = permissionsGranted[permissionGroup];
    if (permissionStatus == PermissionStatus.granted) {
      status = MyAwesomeStatus.granted;
    } else {
      bool beenAsked = await hasPermissionBeenAsked(permissionGroup);
      bool rationale = await PermissionHandler().shouldShowRequestPermissionRationale(permissionGroup);
      if (beenAsked && !rationale) {
        status = MyAwesomeStatus.doNotAskAgain;
      } else {
        status = MyAwesomeStatus.notGranted;
      }
    }
  } else {
    status = MyAwesomeStatus.granted;
  }

  setPermissionHasBeenAsked(permissionGroup);
  return status;
}

static Future<void> setPermissionHasBeenAsked(
    PermissionGroup permissionGroup) async {
  (await SharedPreferences.getInstance())
      .setBool('PERMISSION_ASKED_${permissionGroup.value}', true);
}

static Future<bool> hasPermissionBeenAsked(
    PermissionGroup permissionGroup) async {
  return (await SharedPreferences.getInstance())
      .getBool('PERMISSION_ASKED_${permissionGroup.value}') ?? false;
}

}


Made changes so that kubectl reads from file instead of piping

I signed it!

I see you have signed it; I'm not sure why the CLAbot didn't see that.  You might try a "I signed it!" again, but it looks like you also have some flake errors that need to be fixed.

There are some linter errors. Could you run hooks/check-everything and fix the errors you get?

Yes I'll make those changes


[4.x] Add CODE_OF_CONDUCT.md and UPGRADING.md to export-ignore

PR for #2723

Coverage remained the same at 100.0% when pulling 02320ed00fc64ea815374b258432edbb94963dd9 on adriansuter:patch-2 into 1c6d10605caca4488b971910ddddb4fb353c4c7a on slimphp:4.x.


[docs] Installation with GraalVM updated

This PR fixes the documentation about the installation with the automatic install script with GraalVM. The option for the GraalVM JDK version was not correct.
Related issue: https://github.com/beehive-lab/TornadoVM/issues/235

The documentation for this change: https://tornadovm--239.org.readthedocs.build/en/239/installation.html#installation


Revert "[LFUCache]Add frequency of key and delete the empty cache queue"

Reverts apache/dubbo#7967

Codecov Report

Merging #10143 (ecbea52) into master (edd3d28) will decrease coverage by 0.05%.
The diff coverage is 92.59%.

@@             Coverage Diff              @@
##             master   #10143      +/-   ##
============================================
- Coverage     60.48%   60.43%   -0.06%
+ Complexity      413      412       -1
============================================
  Files          1100     1100
  Lines         44557    44450     -107
  Branches       6485     6446      -39
============================================
- Hits          26950    26863      -87
+ Misses        14641    14629      -12
+ Partials       2966     2958       -8

Impacted Files
Coverage Δ

...n/java/org/apache/dubbo/common/utils/LFUCache.java
86.27% <92.59%> (+5.41%)
:arrow_up:

...rg/apache/dubbo/remoting/utils/PayloadDropper.java
76.92% <0.00%> (-15.39%)
:arrow_down:

.../apache/dubbo/rpc/protocol/AsyncToSyncInvoker.java
62.06% <0.00%> (-10.35%)
:arrow_down:

...mmon/threadpool/support/fixed/FixedThreadPool.java
80.00% <0.00%> (-7.50%)
:arrow_down:

...moting/transport/netty4/NettyEventLoopFactory.java
30.00% <0.00%> (-6.37%)
:arrow_down:

.../threadpool/support/limited/LimitedThreadPool.java
83.33% <0.00%> (-5.56%)
:arrow_down:

.../dubbo/remoting/transport/netty4/NettyChannel.java
58.41% <0.00%> (-4.96%)
:arrow_down:

...on/threadpool/support/cached/CachedThreadPool.java
85.71% <0.00%> (-4.29%)
:arrow_down:

...he/dubbo/remoting/transport/netty/NettyServer.java
70.17% <0.00%> (-3.51%)
:arrow_down:

.../org/apache/dubbo/qos/legacy/LogTelnetHandler.java
30.30% <0.00%> (-3.04%)
:arrow_down:

... and 27 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 edd3d28...ecbea52. Read the comment docs.


Find scheduled games

Need the game id's of the games either in the future or in the present. This needs knowledge of todays date so we can have real-time games.

6114585 Done


Remove unnecessary padding

I've noticed that every texture in the output is currently padded with unnecessary transparent space.
Since the offsets/dimensions of every texture are already stored in another file, is there any chance that this can be removed?

Try set Padding option to 0

Ah, I didn't even notice that. Thanks for the help, and thanks so much for open-sourcing it. 👍 Looks like I can finally delete TexturePacker. 🎉


ctrl-backspace not working after swapping the fn and ctrl keys

Hey, I have an Asahi linux installed on an M1. I am using the below config to swap the fn and ctrl keys:
[ids]
*

[main]
fn = layer(control)
leftcontrol = fn

2 observations I had after applying the above config:

ctrl-backspace no longer deletes one word to the left.
In a text field, ctrl-shift-left selects all characters until the start of the text field instead of just selecting up to the start of the current line.

I understand that I can play a little with macros, but I'd really like to use the native functionality to preserve the contextual behaviors of these keybindings; i.e. they should natively behave differently in vim than in a Firefox window.

Shouldn’t Ctrl–Shift–Left select only to the beginning of the current word? Anyway, to me this would indicate your fn key still submits fn, because fn–Left submits HOME on some hardware, which goes to the beginning of the line and Shift selects. Use the keyd monitor functionality to find out what the output really is.

@luetage It's swapped already, and fn acts as ctrl. It's the 2 observations that I'm concerned to report. As for #401, it holds true for certain OEMs like Lenovo. However, for Apple, I think that's not available unfortunately except from within MacOS itself (the first thing I did after getting my M1 😃).

Use the keyd monitor functionality to find out what the output really is.

@ElSamhaa Can you test this too and verify you're seeing what I'm seeing?

#comment your rules (/etc/keyd/default.conf)
sudo keyd -m
press (and hold) the fn key
press backspace
press left
release fn

I get the following output ("delete" instead of "backspace", "home" instead of "left"), which would indicate that the macbook is not sending the original keys for backspace and arrow keys when fn is held down (I'm using Fedora Asahi Remix on an M1 MacBook Air)
keyd virtual keyboard   0fac:0ade       fn down
keyd virtual keyboard   0fac:0ade       delete down
keyd virtual keyboard   0fac:0ade       delete up
keyd virtual keyboard   0fac:0ade       home down
keyd virtual keyboard   0fac:0ade       home up
keyd virtual keyboard   0fac:0ade       fn up

@rxhfcy yep, exactly the same with me. I'm on the fedora Asahi remix too btw.

@ElSamhaa great, so this issue can be closed then (not a keyd bug but a feature of the Asahi Linux kernel)
PS. About your earlier comment:

However, for Apple, I think that's not available unfortunately except from within MacOS itself

Luckily, that's not true. Here's a pretty easy way to swap fn and control in Fedora Asahi Remix (permanently, you can later undo this by using hid_apple.swap_fn_leftctrl=0 instead of hid_apple.swap_fn_leftctrl=1 if you want):
sudo grubby --update-kernel=ALL --args="hid_apple.swap_fn_leftctrl=1"

...and then reboot. Or if you want to see the effect immediately, you can do this too (not permanent):
echo 0 | sudo tee /sys/module/hid_apple/parameters/swap_fn_leftctrl

Thank you. I'll try that soon. Closing this issue now.