On macOS, can't use alt-keys to type @, |

I can't type some special characters with Alacritty.
For example, alt-* should result in @ on my keyboard (Danish keyboard with Danish mapping), but instead nothing is written.
Other special characters using the alt key, e.g ± (alt-+) I can type with no issues.
I've just installed Alacritty 5 mins ago and didn't touch the configuration.
I can type the mentioned characters in iTerm2 as well as Terminal.app with no issues.
Which operating system does the issue occur on? macOS Mojave 10.14.1

This has been reported in several other issues already.
Please see https://github.com/jwilm/alacritty/issues/1349, https://github.com/jwilm/alacritty/issues/1681 and https://github.com/jwilm/alacritty/issues/1139 for just a few similar problems.


Question about Deque

Hi~
In the last example of trimming array
	[ x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, 1, 2, 3 ]
	                                |                             |
	                                capacity                      head

At this time, capacity = 10, head = 20
But, because of the capacity > 10 condition,  the dequeue() method won't trim the array,
So I change the capacity > 10 to capacity >= 10, It trim successfully, but net next graph bugs me.
	[ x, x, x, x, x, 1, 2, 3 ]
	              |
	              head
	              capacity

After the dequeue() method, capacity = 5,  and head = 5
So.... should the head and capacity point at .... 1?
or I misunderstood something?
Thanks

Definitely looks suspicious...
// cc @hollance

Maybe the example isn't optimal because of that capacity > 10 check. That check is there so that we don't trim very small arrays (because that's not really worth it). So the example is correct if you pretend this capacity > 10 check does not exist.
I think you are right that head and capacity need to point at 1 after the trimming. I must have counted wrong -- a typical off-by-one error. ;-)

Thank for reply, helps a lot.

Added this to the bugs watchlist. Thanks!


shard e2e tests so they complete faster

Cuts the time for e2e tests on Ubuntu (the only one that blocks merging) from ~7-8min to ~2-3min.
Test plan
CI

When we merge this, we'll need to change the branch protection rules to require all of the ci / test-e2e (ubuntu, N/4) items and NOT the ci / test-e2e (ubuntu) (unsharded) item. This will likely require all open PRs to be rebased against main.

@dominiccooney  @toolmantim I'm going to sleep now, but you (or anyone else) feel free to merge this and change the branch protection rules as described above if you want it sooner.

For :eyes: review of the updated branch protection rules. Thanks for the work and the pointers @sqs

Related Slack if there's any fallout from this, kibitz over here: https://sourcegraph.slack.com/archives/C05AGQYD528/p1710841082182039


Problem block of mods

The schematic does not recognize mod's blocks.
Exemple: Sandstone Wall (quark) = Ice (minecraft)

What did you use to save the schematic file? Also what Minecraft version?

Arf i used worldedit. I gonna try to save with schematica tonight and I'll let you know that it works

Ok i save with schematica and no problem. Sry for disturbing

worldedit does not save the block pallette.


support .tsx files in @primate/frontend

When the react export is set to use the .tsx extension.
Potentially this has been already solved due to https://esbuild.github.io/content-types/#jsx

This works by setting the react handler to { extension: ".tsx" }, documented in c28963a.


[Scenario] record when the scheduler tries to schedule Pods on Pod annotation

It's important for those who analyze the scheduler by using Scenario to see when the scheduler tries to schedule Pods.
We record them only when the running Scenario exists and the time should be represented in ScenarioStep of running Scenario.
/assign
/kind feature

/area simulator

Also related to scenario
/area scenario

/remove-lifecycle rotten
/lifecycle frozen


problem in connecting to binance

hi dear
i m new in coding with c#
i download code zip file and open it in VS 2019 but i can not install binance package on solution by this command
"PM> Install-Package Binance"
i think his is removed or renamed.
so i execute console app in samples and is working without error in compiling
but after execution
i have seen list of command that i can enter in console window.
when i enter "ping" or "time" command , i receive this error in console window

i,v set api key and secret in json file .
i change my ip addres and LanCard becouse i think im banned by binance
but the problem exist.
thanks for helping to solve this problem.

hi
problem solved.
this is related to my vpn and firwall setting in windows.
if anyone recived this mesage
try to get price of coins in browser
for example:
https://api.binance.com/api/v3/ticker/price
if you get valid number
check network connections
windows firwall
vpn . or other similar setting in OS.


[Web] RawKeyboardListener does not return correct data

Steps to Reproduce

Gist of code to reproduce the problem:
https://gist.github.com/mjeffw/8f3f57d23b596fde3c1a8dac93a64549

Create a flutter web app with a TextField wrapped by a RawKeyboardListener
In the onKey callback, check for a specific key using the following code: if (value.logicalKey == LogicalKeyboardKey.keyA) print('A');
Run the web app and type the expected key. It never matches.

If I print the logicalKey value of the RawKeyEvent, and type the letter 'A', here is the output:
dart_sdk.js:18740 LogicalKeyboardKey#00039(keyId: "0x00000039", keyLabel: "9", debugName: "Digit 9")
dart_sdk.js:18740 LogicalKeyboardKey#f1dc1(keyId: "0x1000c018a", keyLabel: null, debugName: "Launch Mail")
dart_sdk.js:18740 LogicalKeyboardKey#f1dc1(keyId: "0x1000c018a", keyLabel: null, debugName: "Launch Mail")
dart_sdk.js:18740 LogicalKeyboardKey#00039(keyId: "0x00000039", keyLabel: "9", debugName: "Digit 9")

Logs

Jeffs-MacBook-Pro-2:flutter_web_rawkeyboardlistener_example jeff$ webdev serve --verbose
[INFO] Connecting to the build daemon...
[INFO] Generating build script...
[INFO] Generating build script completed, took 401ms
[INFO]
[INFO] Starting daemon...
[INFO]BuildDefinition: Initializing inputs
[INFO]BuildDefinition: Reading cached asset graph...
[WARNING]BuildDefinition: Throwing away cached asset graph due to Dart SDK update.
[INFO]BuildDefinition: Cleaning up outputs from previous builds....
[INFO]BuildDefinition: Cleaning up outputs from previous builds. completed, took 136ms

[INFO] Generating build script...
[INFO] Generating build script completed, took 109ms
[INFO]
[INFO] Creating build script snapshot......
[INFO] Creating build script snapshot... completed, took 12.4s
[INFO]
[INFO] Starting daemon...
[INFO]BuildDefinition: Initializing inputs
[INFO]BuildDefinition: Building new asset graph...
[INFO]BuildDefinition: Building new asset graph completed, took 1.5s

[INFO]BuildDefinition: Checking for unexpected pre-existing outputs....
[INFO]BuildDefinition: Checking for unexpected pre-existing outputs. completed, took 2ms

[INFO] Initializing inputs
[INFO] Building new asset graph...
[INFO] Building new asset graph completed, took 1.5s
[INFO]
[INFO] Checking for unexpected pre-existing outputs....
[INFO] Checking for unexpected pre-existing outputs. completed, took 2ms
[INFO]
[INFO] Setting up file watchers...
[INFO] Setting up file watchers completed, took 4ms
[INFO]
[INFO] Registering build targets...
[INFO] Starting initial build...
[INFO] Starting resource servers...
[INFO] Serving `web` on http://<IP_ADDRESS>:8080

[INFO] About to build [web]...
[INFO]Build: Running build...
[INFO]Heartbeat: 1.0s elapsed, 89/108 actions completed.
[INFO]Heartbeat: 2.0s elapsed, 285/303 actions completed.
[INFO]Heartbeat: 3.1s elapsed, 517/537 actions completed.
[INFO]Heartbeat: 4.2s elapsed, 694/726 actions completed.
[INFO]Heartbeat: 5.3s elapsed, 694/726 actions completed.
[INFO]Heartbeat: 6.4s elapsed, 705/741 actions completed.
[INFO]Heartbeat: 7.4s elapsed, 716/750 actions completed.
[INFO]Heartbeat: 8.5s elapsed, 720/752 actions completed.
[INFO]Heartbeat: 9.5s elapsed, 722/752 actions completed.
[INFO]Heartbeat: 10.6s elapsed, 726/754 actions completed.
[INFO]Heartbeat: 11.6s elapsed, 731/754 actions completed.
[INFO]Heartbeat: 12.7s elapsed, 734/754 actions completed.
[INFO]Heartbeat: 13.8s elapsed, 737/754 actions completed.
[INFO]Heartbeat: 14.8s elapsed, 739/754 actions completed.
[INFO]Heartbeat: 15.8s elapsed, 740/754 actions completed.
[INFO]Heartbeat: 16.9s elapsed, 740/754 actions completed.
[INFO]Heartbeat: 17.9s elapsed, 742/754 actions completed.
[INFO]Heartbeat: 18.9s elapsed, 743/754 actions completed.
[INFO]Heartbeat: 20.0s elapsed, 744/754 actions completed.
[INFO]Heartbeat: 21.0s elapsed, 745/754 actions completed.
[INFO]Heartbeat: 22.1s elapsed, 748/754 actions completed.
[INFO]Heartbeat: 23.1s elapsed, 750/754 actions completed.
[INFO]Heartbeat: 24.2s elapsed, 750/754 actions completed.
[INFO]Heartbeat: 25.3s elapsed, 752/754 actions completed.
[INFO]Heartbeat: 26.3s elapsed, 752/754 actions completed.
[INFO]Heartbeat: 27.4s elapsed, 752/754 actions completed.
[INFO]Heartbeat: 28.4s elapsed, 752/754 actions completed.
[INFO]Heartbeat: 29.5s elapsed, 752/754 actions completed.
[INFO]Heartbeat: 30.5s elapsed, 754/754 actions completed.
[INFO]Build: Running build completed, took 30.9s

[INFO]Build: Caching finalized dependency graph...
[INFO]Build: Caching finalized dependency graph completed, took 197ms

[INFO]Build: Succeeded after 31.1s with 560 outputs (3266 actions)

[INFO] ----------------------------------------------------------------------------------------------------------------------------------------------------------------

[INFO] About to build [web]...
[INFO]Build: Updating asset graph...
[INFO]Build: Updating asset graph completed, took 12ms

[INFO]Build: Running build...
[INFO]Build: Running build completed, took 359ms

[INFO]Build: Caching finalized dependency graph...
[INFO]Build: Caching finalized dependency graph completed, took 242ms

[INFO]Build: Succeeded after 652ms with 9 outputs (7 actions)

[INFO] ----------------------------------------------------------------------------------------------------------------------------------------------------------------

flutter analyze
Analyzing flutter_web_rawkeyboardlistener_example...
No issues found! (ran in 2.8s)

Jeffs-MacBook-Pro-2:flutter_web_rawkeyboardlistener_example jeff$ flutter doctor -v
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale en-US)
    • Flutter version 1.5.4-hotfix.2 at /Users/jeff/Projects/git/flutter
    • Framework revision 7a4c33425d (9 weeks ago), 2019-04-29 11:05:24 -0700
    • Engine revision 52c7a1e849
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/jeff/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • ios-deploy 1.9.4
    • CocoaPods version 1.6.1

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 35.3.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] IntelliJ IDEA Community Edition (version 2018.3.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 33.4.2
    • Dart plugin version 183.5912.23

[✓] VS Code (version 1.35.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.2.0

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Sorry, here's the correct URL for the gist:
https://gist.github.com/mjeffw/8f3f57d23b596fde3c1a8dac93a64549

@mjeffw  try this workaround
      onKey: (RawKeyEvent value) {
        if (value.data is RawKeyEventDataAndroid) {
          final data = value.data as RawKeyEventDataAndroid;
          if (data.keyCode == KeyCode.TAB) {
            print('tab');
          }
          if (data.keyCode == KeyCode.A) {
            print('A');
          }
        }
      },

              RawKeyboardListener(
                focusNode: FocusNode(),
                onKey: (RawKeyEvent event) => debugPrint('event=$event'),
                child: TextField(),
              ),

This code used to work with v1.10.15, but since v1.10.16 the RawKeyboardListener does not receive the key events when the TextField is focused.
In my case, I need to handle the up/down arrow keys. Is there a workaround?

same issue with @deckerst

Was struggling with this bug too, it doesn't seem to fire RawKeyboardListener on web build.  I've been futzing with it to use keyboard to control ScrollBar - ScrollView to bandaid bug here: https://github.com/flutter/flutter/issues/43694 but after our efforts, got stuck with this.  Even tried the if (keyEvent.data is RawKeyEventDataWeb) part and researched the other issues regarding.  Most of the bug reports were already closed like https://github.com/flutter/flutter/issues/33857 and https://github.com/flutter/flutter/issues/52656 but still should bump the issue.

@mjeffw
Pressing a and tab

Code Sample
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'Hello, World!',
            ),
            RawKeyboardListener(
              child: TextField(
                controller: TextEditingController(text: 'test'),
              ),
              focusNode: FocusNode(),
              onKey: (RawKeyEvent value) {
                print(value.logicalKey);
                if (value.logicalKey == LogicalKeyboardKey.tab) print('tab');
                if (value.logicalKey == LogicalKeyboardKey.keyA) print('A');
              },
            ),
          ],
        ),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

LogicalKeyboardKey#00061(keyId: "0x00000061", keyLabel: "a", debugName: "Key A")
A
LogicalKeyboardKey#00061(keyId: "0x00000061", keyLabel: "a", debugName: "Key A")
A
LogicalKeyboardKey#63774(keyId: "0x10007002b", keyLabel: null, debugName: "Tab")
tab
LogicalKeyboardKey#63774(keyId: "0x10007002b", keyLabel: null, debugName: "Tab")
tab

flutter doctor -v
[✓] Flutter (Channel dev, 1.20.0-0.0.pre, on Mac OS X 10.15.5 19F101, locale
    en-GB)
    • Flutter version 1.20.0-0.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision d9653445f4 (6 days ago), 2020-06-09 18:43:03 -0400
    • Engine revision e8c13aa012
    • Dart version 2.9.0 (build 2.9.0-14.0.dev 5c1376615e)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.0
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.46.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.11.0

[✓] Connected device (4 available)
    • SM M305F   • 32003c30dc19668f • android-arm64  • Android 10 (API 29)
    • macOS      • macOS            • darwin-x64     • Mac OS X 10.15.5 19F101
    • Web Server • web-server       • web-javascript • Flutter Tools
    • Chrome     • chrome           • web-javascript • Google Chrome
      83.0.4103.97

• No issues found!

Regarding my testing, it works properly when you run as a web debug, but when I release as build web, upload to FTP and test on web browser, that's where it fails to fire any results.. Since I couldn't see my debug logs on the release, I showed my print debug in a showToast, and tried all the keys and played with the focusNode, but nothing worked from the RawKeyboardListener.  Can you test in a web build and confirm your code sample working?

It looks like this has come up in a number of skipped tests, particularly around arrow keys. Linking them as they come up.

Hi @Piinks
Since the original issue is no longer reproducible on the latest master and the skip audit has been merged can this be closed?
Thank you

It looks like there are still 8 tests being skipped because of this issue, if they can be un-skipped and pass then this is resolved. It does not appear that it is though since they are still being skipped:
https://github.com/flutter/flutter/blob/master/packages/flutter/test/services/raw_keyboard_test.dart
https://github.com/flutter/flutter/blob/master/packages/flutter/test/widgets/focus_traversal_test.dart
The skipped tests have a comment referencing this issue number so you can search for them. :)


ENG-5952 duplicate event edittext fix and text watcher cut/paste  fix

Fix for the condition where edit text fields will add duplicate text watchers when app is backgrounded then foregrounded. This will send unwanted additional text input events back the server. This is fixed in the release/debug/reactnative flavors.
Fix for the condition where a registered text watcher will send an unwanted paste event on every text input after a paste into the edit text field is done. All flavor fix.

broken when switching between activities.


Components: User-Generated Flavor Page

Overview
User can click on "Generate Your Own Flavor" button. The user is prompted to a "slot machine" and can save a flavor if they like it, both on their profile page and hall of fame. The user can add newly generated-flavor to cart.
Action Items

[ ] create a wireframe for a user-generated flavor creation
[ ] create the UI for flavor creation (based on a wireframe)

Resources/Instructions
You can find the wireframe on Notion.

Adding this to the home page!


Add login refresh command

The ~/.azure/accessTokens.json file that is generated as a result of az login (and read by e.g. the azurerm terraform module) contains refresh_token sections. To my understanding this means that when the access_tokens have expired, it should be possible to use the refresh_tokens to get new access tokens and avoid the need to actually log in again (which is a bit cumbersome for the manual login step that requires a browser visit).
My suggestion therefore is to add a flag "-refresh" to login and implement this.
CLI Version
2.0.31
OS Version
Windows 10 Pro, Version 1709
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Python (Windows) 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)]

OK now I understand more - I was after the same thing as here:
https://github.com/terraform-providers/terraform-provider-azurerm/issues/502
Turns out there already is an az account list --refresh that probably does what I want.

Thanks for the suggestion @perbergland. @yugangw-msft has the most knowledge on this to make this decision.

Please use az account get-access-token. CLI users would never need this function as CLI takes care of the token refreshing automatically. Due to security concerns, enabling external tools to share the creds is not a goal for CLI even though I made some limited changes to make it feasible, but that is pretty much the most i can do.

@yugangw-msft az account get-access-token doesn't seem to refresh the user's group membership, any ideas why not?


HITL takeoff issue

Hello,
I'd like to perform HITL simulation. I've followed the tutorial reported in https://dev.px4.io/en/simulation/hitl.html and I've set my Gazebo simulation environment as described.
I've modified the iris.sdf file as requested and calibrated my RC.
When I launch Gazebo in HITL mode using gazebo Tools/sitl_gazebo/worlds/iris.world, I can arm the copter from my RC but unfortunately the iris doesn't take off at all, even if I set the throttle at max.
I'm working with ROS Kinetic, Gazebo 7 and px4 firmware v1.8.0-1772-g919a508.
Does anyone experience the same issue?
Thankyou in advance

Hi
Which board are you using?

I'm using a PixHawk 1. I've compiled and uploaded the firmware with px4fmu-v2_default upload

@bkueng I'm using a PixHawk 1. I've compiled and uploaded the firmware with px4fmu-v2_default upload. The throttle command is received by the board as I can see it in QGround... I don't have any idea how to fix it

Please update the bootloader (https://docs.px4.io/en/advanced_config/bootloader_update.html), and flash the v3 target if possible. v2 does not include the necessary HIL driver because of limited flash space.


Tests silently fail when exception thrown inside request callback.

var request = require('request');

describe("metric/series",function() {
  it("should have expected structure (2)", function(done) {
    request("http://example.com", function(error, response, body){
      //throw "exception"
      done();
    });
  });
});

This test passes. But if you uncomment throw "exception" it fails silently.

without --captureException,
process.on('uncaughtException', function() {
console.log('error');
});
after 5sec, you'll get time out and test result in your console.

/Account sss
Message:
timeout: timed out after 5000 msec waiting for spec to complete
Stacktrace:
undefined

I don't know how and why it works, it just worked.
Can anyone explain for me?


the newindex returned varies

I'm using ng-sortable and noticed 2 issues:

dragging an element from a list to another empty list, the newIndex in onadd is supposed to be 0.
on my desktop, it's 0; on my ipad, it's 1.

then I updated the HTML a little(removing surrounding div), the newindex returned on my desktop is 1 too.
now I have to find the index in code again:
_.findIndex(evt.models, evt.model)

Create example on jsbin.com


How to change the title text color of MaterialListPreference

Since the md_title_color global theming attributes not work any more, how could I change the title text color of MaterialListPreference?
Obviously, I don't want to change the value of android:textColorPrimary.

That attribute works perfectly fine. List items will match the content
color unless you set md_item_color or use itemColor().
On Wed, Apr 8, 2015, 11:15 PM Darktiny He<EMAIL_ADDRESS>wrote:

Since the md_title_color global theming attributes not work any more, how
could I change the title text color of MaterialListPreference?
Obviously, I don't want to change the value of android:textColorPrimary.
—
Reply to this email directly or view it on GitHub
https://github.com/afollestad/material-dialogs/issues/424.


Client.Disconnect() crashes program

When Disconnecting a client, the program freezes up for over 2 minutes... Then reaches the onDisconnected event.
Freezes on line 501 in TwitchClient.cs

Was because I had not received or sent any messages.


Bring back UnsafeCell for command buffer internals of Metal

We used to have it around CommandBufferInner, and I replaced it by Mutex because it was much cleaner, safer, and we were focused on CTS. Now, every bit of performance matters, and we should bring it back. Ideally - in release only (or behind a feature) so that we can investigate any unsafety issues later on.

Uh oh, we are actually using Arc<RefCell<> there, which is reasonable.


Compatibility?

The README doesn't mention anything about compatibility, but it seems worth having at least a sentence about it.
Does it run RubyGems/Bundler/Rails? Does it have the Ruby standard library? C extensions?

Also related is does it support e.g. large integers, redefining Integer#+, etc and monkey-patching in general, i.e. important Ruby features which have a significant impact on performance?
https://www.infoworld.com/article/2074776/so-you-want-to-optimize-ruby.html has a list of more of these.
Of course it's totally fine if it doesn't but then it should be mentioned explicitly, because this definitely affects performance and interpretation of the benchmark results.

Thank you for comments!  and sorry for late response.
Yes, monoruby supports Bignum, redefining of basic operations (such as Integer#+, Float#*, ..), and monkey-patching.
As for compatibility, monoruby can not run Rails and there are no plans to make it work in the near future.
The same goes for C extensions.
This is my personal study project and does not aim to replace CRuby.
RubyGems does not work yet, but now I am working on it.
I'll add some documents about compatibility with CRuby later.


Multiple errors for swift 3

Multiple build time errors

Referred previous issue: https://github.com/Hearst-DD/ObjectMapper/issues/579
I'm using v1.5.0 and Xcode 8.3.3
I've cleaned the derived data folder and also cleaned project the tried building, still getting the same issue. Any suggestions?

1.5.0 doesn't support Swift 3. Use at least 2.0.0 version for Swift 3


[WIP]Merge small files in dmfile

What problem does this PR solve?
Issue Number: close #7595
Problem Summary:
What is changed and how it works?

we introduce the new dmfile format::V3. In which format, we will merge all the tiny files in dmfile(including index / mark / null.data, every file whose size is less than dt_small_file_size_threshold) to x.merged.  When the data is quite tiny, the file in dmf_x may like the picutre shows

Besides the meta format is keep the same as https://github.com/pingcap/tiflash/pull/6826, and the V3 is completely compatible with the format in S3 now.

we provide a dttool to migrate the dmfile in v3 to v2.
we do a dtworkload on both v2 and v3, find that there is no noticeable difference in performance.

Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/run-unit-test

/run-all-tests

/run-unit-test

/run-unit-test

/run-all-tests

/run-all-tests

/run-all-tests

/run-unit-test

/cc @JinheLin @flowbehappy @breezewish

/cc @lidezhu

/run-all-tests

/run-unit-test


Add widget tests a few.

What does this change?

Added a few widget tests.

What is the value of this and can you measure success?

Improve Test Coverage.

Screenshots (Optional)

No

Codecov Report

Merging #17 into master will decrease coverage by 5.47%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #17      +/-   ##
==========================================
- Coverage   67.90%   62.43%   -5.48%
==========================================
  Files          34       38       +4
  Lines         349      394      +45
==========================================
+ Hits          237      246       +9
- Misses        112      148      +36

Impacted Files
Coverage Δ

lib/data/remote/app_dio.dart
100.00% <100.00%> (ø)

lib/l10n/delegate.dart
66.66% <0.00%> (ø)

lib/ui/home/home_page.dart
0.00% <0.00%> (ø)

lib/app.dart
41.66% <0.00%> (ø)

lib/ui/component/toast.dart
0.00% <0.00%> (ø)

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 df7fb4b...6373f57. Read the comment docs.


Does smee convert from application/x-www-form-urlencoded to application/json automatically?

I tested a webhook using webhook.site, and it shows that the body is form-urlencoded. When I use smee client locally, the body that I get in my local server is a JSON (though the header is still application/x-www-form-urlencoded). I wonder if there's a way to disable to automatic conversion.

We're also having the same issue! That is not acceptable. It should forward the body as is.


Display notebooks in project Notebooks tab

We will place .ipynb files in a /notebooks path in the workspace bucket. For any such files, display a notebook card in the 'notebooks' tab of the workspace.
For now, these cards should be below the clusters list (that list will eventually go away).
See invision mocks for the card designs. We don't yet have the ability to screenshot the notebook. For now, this card can have no image. Note that the dimensions are different from the workspace card however.

For now, we can test this by manually placing ipynb files in the workspace bucket via gsutil.

An interim image to display until screenshots are available would be to display the python or R language logo depending on the language of the particular notebook.
We should be doing cards/list toggle similar to the workspace list, except a different form factor


Fix test and scipy intersphinx link

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.933%

Totals

Change from base Build<PHONE_NUMBER>:
0%

Covered Lines:
2986

Relevant Lines:
2988

💛  - Coveralls


Request can set customer messages

Is your feature request related to a problem? Please describe.
I want when the user presses the live chat button, the message in the live chat widget is automatically filled with the message the developer wants.
Describe the solution you'd like
Added setter methods to set customer messages such as set customer name or email currently available.
Describe alternatives you've considered
Currently there is no other alternative

Hello @dickyindra 👋
Thanks for reaching out to us with your feature request. Unfortunately, the changes you have described are not part of this project. To use such functionality, it would need to be first implemented in the LiveChat Widget application for Adapters to be able to use it.
We will discuss your request in the team and let you know if it is something that we will add to the main application 🙂

Ok i'm waiting for the good news, thank you 🙂


ENG-1013 and ENG-1494 NEW metric and check nodes

Describe your changes and why you are making these changes
This PR consolidates metric and check artifact/operator pairs into one node.
Users are now able to see the results of a metric or check from right within the metric or check's operator node.
Loom Demo:
https://www.loom.com/share/5ede8201f2804fc18c342875dd83ead5
Related issue number (if any)
ENG-1013 (https://linear.app/aqueducthq/issue/ENG-1013/designimplement-metric-artifact-dag-node)
ENG-1494 (https://linear.app/aqueducthq/issue/ENG-1494/designimplement-check-artifact-dag-node)
Checklist before requesting a review

[x] I have created a descriptive PR title. The PR title should complete the sentence "This PR...".
[x] I have performed a self-review of my code.
[x] I have included a small demo of the changes. For the UI, this would be a screenshot or a Loom video.
[x] If this is a new feature, I have added unit tests and integration tests.
[x] I have run the integration tests locally and they are passing.
[x] I have run the linter script locally (See python3 scripts/run_linters.py -h for usage).
[x] All features on the UI continue to work correctly.
[x] Added one of the following CI labels:

run_integration_test: Runs integration tests
skip_integration_test: Skips integration tests (Should be used when changes are ONLY documentation/UI)

New UI looks great, @agiron123! One tiny thing: Could we reduce the number of decimal places shown on the metric node to be maybe max 3?

@vsreekanti I've updated the node to use the .toFixed(3) function so that three decimal places are shown.
Here's what it looks like on our churn workflow:

Nope, I think this looks great. Thanks!


Fixing bot

temp fix uploaded with new devices, currently working well

patched, working on an update

fixed


C# kernel does not work at Jupyterlab/Notebook

Describe the bug

C# kernels die / do not work, python works perfect, so not sure if this is a dotnet interactive or jupyterlab bug. See https://github.com/jupyterlab/jupyterlab/issues/13320

Please complete the following:
FROM jupyter/datascience-notebook:lab-3.5.0

USER root

# Install dotnet 6 sdk & runtime
RUN apt-get update && apt-get install -y dotnet6 && \
    apt-get clean && apt-get autoclean && apt-get autoremove --purge -y && rm -rf /var/lib/apt/lists/*

# Install .NET Interactive to support C# in Jupyter notebooks
ENV PATH="$PATH:/home/jovyan/.dotnet/tools"

USER 1000

RUN dotnet tool install -g --no-cache --version 1.0.350406 --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" Microsoft.dotnet-interactive && \
     dotnet interactive jupyter install

docker build -t testjupyter - < Dockerfile

docker run -it -p 8888:8888 testjupyter start.sh "jupyter" "lab" "--log-level=DEBUG"

OS

[ ] Windows 11
[x] Windows 10
[ ] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[x] Chrome
[ ] Edge
[x] Firefox
[ ] Safari

Frontend

[x] Jupyter Notebook
[x] Jupyter Lab
[ ] nteract
[ ] Visual Studio Code
[ ] Visual Studio Code Insiders
[ ] Visual Studio
[ ] Other (please specify)

Screenshots

Note: same happens for Jupyter notebook see https://github.com/jupyterlab/jupyterlab/issues/13320#issuecomment-1293883969

This happens currently because the expected HTTP port is not being opened in your Docker setup. (The need for this port will be removed in an upcoming update to .NET Interactive.)

I think I have the exactly the same issue but I'm not using a docker setup, I have my own VM. I am using TLJH if that is relevant. Is there a workaround for this?

I can run notebooks with python kernel.
When I open a notebook with F#-kernel, it says kernel starting, please wait... for a while, but it doesn't start. It fails with A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration. after few minutes, and Not Connected after that.

dotnet --info
.NET SDK:
 Version:   7.0.102
 Commit:    4bbdd14480

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  20.04
 OS Platform: Linux
 RID:         ubuntu.20.04-x64
 Base Path:   /usr/share/dotnet/sdk/7.0.102/

Host:
  Version:      7.0.2
  Architecture: x64
  Commit:       d037e070eb

.NET SDKs installed:
  7.0.102 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.2 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

dotnet-interactive --version
1.0.360602+9bf026dabac44a6256a65168fa93dcb7e2edcca4

python3 --version
Python 3.9.7

jupyter --version
IPython          : 8.8.0
ipykernel        : 6.20.2
ipywidgets       : 7.7.2
jupyter_client   : 7.4.9
jupyter_core     : 5.1.5
jupyter_server   : 1.23.5
jupyterlab       : 3.5.3
nbclient         : 0.7.2
nbconvert        : 7.2.9
nbformat         : 5.7.3
notebook         : 6.5.2
qtconsole        : 5.4.0
traitlets        : 5.8.1

This happens currently because the expected HTTP port is not being opened in your Docker setup. (The need for this port will be removed in an upcoming update to .NET Interactive.)

Hi! Just wondering if there's an ETA for the fix or some work around?

This happens currently because the expected HTTP port is not being opened in your Docker setup. (The need for this port will be removed in an upcoming update to .NET Interactive.)

What is the expected port number that needs to be opened?


Local statistics card(s) disappears

Avoid duplicates

[X] Bug is not mentioned in the FAQ
[X] Bug is specific for iOS only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
[X] Bug is not already reported in another issue

Technical details

Device name: iPhone 11 Pro
iOS version: 14.7.1
App version: 2.6.2

Describe the bug
The local statistic card(s) sometimes disappears.

Steps to reproduce the issue
Not really clear in which circumstances this problem happens.
Expected behaviour
The local statistics card(s) should not disappear without the user having deleted them.
Additional context
This bug report is based on feedback I received from a Twitter user: https://twitter.com/tejaytwit/status/1421722380511109123?s=20

Internal Tracking ID: EXPOSUREAPP-8753
Internal Tracking ID: EXPOSUREAPP-8762
PR https://github.com/corona-warn-app/cwa-app-ios/pull/3287

Internal Tracking ID: EXPOSUREAPP-8753
Internal Tracking ID: EXPOSUREAPP-8762
PR https://github.com/corona-warn-app/cwa-app-ios/pull/3287

@dsarkar
Has this been fixed in version 2.6.3?

@Ein-Tim It should be fixed.

Corona-Warn-App Open Source Team

@heinezen
Thank you!
Closing as fixed.


API Log save to database

In Leaf.Datalayers.Core.Datalayer:

Function SaveLogRequest just make a print on console debug TODO: save log to database
Function SaveLogResponsejust make a print on console debug TODO: update log to database

Use api_log Model to store data
:

Uploaded Initial Models
Commit: 6c3c776dce9892d9fd6e789be3da06d77bea1af7

Done, ApiLog Updated Model is needed
Commit: 0e389cb9991a85fcaa5daaa6beca0f610bf91589


Change SSL server API creds API so that we add an option to force client authentication

What's the status on this? #163 has this as a possible prerequisite but I'm going to go ahead on it without whatever happens here.

Thanks. You have the core support that you need for this (as well as #163).

We do? Oh, I see it now - it appears to have landed in the core in 5029b30d1ce8509a4 on 21 July. Should this issue still be open? Is it simply tracking the exposure of the option in the wrapped languages?

Is it simply tracking the exposure of the option in the wrapped languages?

Correct.

—
Reply to this email directly or view it on GitHub
https://github.com/grpc/grpc/issues/2527#issuecomment-135508608.

I've added the python label to this issue because this work is still outstanding for Python. I see the wrapped languages, c, and API BREAKAGE labels on this issue as well - can those be removed if they aren't tracking active work? Are there wrapping languages other than Python that have yet to do this?

@tbetbetbe looks like ruby still needs to be upgraded. Any other languages? @murgatroid99 may know as well.

This was fixed for Python in 9e4d0610ea5e2bb3; removing the Python label from this issue.

FYI: This was fixed for Ruby in #162.  AFAICT every wrapped language supports this now

Closing: Please re-open if there wrapped-languages with servers that don't have this


Add antctl mc command to print ClusterSet join parameters

Add "antctl mc get joinconfig" command to print the config parameters for a member cluster to join a ClusterSet.
Signed-off-by: Jianjun Shen<EMAIL_ADDRESS>

I plan to support printing the member token too, but to avoid conflicts with #4254 I chose not to add that in this PR.
I will also add more unit tests later.

Added UT.

/test-all


Links to "edit this" should be buttons

Several pages have an "edit this" (e.g., single event, single person, etc.).  These should all be turned into buttons using this styling:

Edit this thing

Similarly, the "delete this object" links should be buttons.

Closed via #298.


[Proposal] Feature: Keyword search capability for systems

What does this PR do
Allows systems to expose keywords for traces, so that the search feature of Envy can find traces by more than just the URL of the trace.
Resolves #187
New System<T> interface member:

Adds a new interface function to System<T>: getSearchKeywords
Systems can implement this to return a string[] containing keywords they wish the main search to find a given trace by.
Implements for the built-in GraphQL system, where this allows searching for traces by the GQL operation name.
Implements for the custom viewer example CocktailDB system, where this allows searching for traces by the name of the cocktail.
Updates customizing.md README file

New ability to inject a large volume of traces:

A somewhat "undocumented" feature for now, but if you hold shift when clicking the "Inject mock traces" option in the debug menu, it will add the mock traces 100 times over (1,300 traces).
The purpose of this is to inject a large number of traces to be able to verify application performance.
I had originally tried to inject the mock traces 1000 times over, (13,000 traces), but the UI performance was unacceptable...
...as such I will raise a ticket to look at ways to improve the UI performance at this scale.
For the performance of the search at 1,300 traces, the performance was in keeping with any other operation (such as filtering by system, opening a trace, etc)...
...and so whilst the search could still be optimised further, I don't believe that it has impacted performance dramatically; certainly at the sub-1,000 trace count.

Screenshots
Using the search term to find CocktailDb API traces by cocktail name

How to test
Basic:

Run ENVY locally in development mode
Inject the mock traces (or, if you're brave, inject lots of them by holding shift when clicking the option)
Search for one of the GQL operation names, such as RegisterPerson or PDP
You should see these results appear.
Compare this to existing versions, where these GQL results will not appear.

Custom viewer:

Run yarn example:apollo:custom-viewer
Open ENVY on http://localhost:4002/
Open the example apollo-client on http://localhost:4001/
Refresh the cocktail widget a few times, make a note of a cocktail name you want to search for
Search for a cocktail name
Matching results from the www.thecocktaildb.com API should be displayed

Should we consider a solution that is system-agnostic and uses the object keys (unfiltered or filtered) of incoming traces with a hash map or stringly based search? That could allow users to search on any value available without specifically updating the code.
The stringly based search (where you concat fields into a single string) is less performant and higher likely hood of false positives, but simpler to implement.
The hash map (where you map all incoming keys/value pairs into a map) is higher performance, but a little more difficult to implement.
We could also consider a tag-based search approach where you can type the specific property into the search host:localhost, the same way chrome network tools work, but that could be quite a bit more work.

We can.  That's certainly an option.  Some considerations:

You might want to the ability to refine what parts of the data should be discoverable in search.  For example, searching for "Classic XXI" might bring back the trace you are looking for because that corresponds to the product name, but it might also bring back a lot of traces you didn't want, because that shoe was mentioned in the product story, or in the basket details, etc... thinks which are technically valid, but not the primary piece of data you wanted to search.
You might want to transform the data which is available for search; for example, if you wanted to be able allow search for data found in cookies, but you want to decode that data rather than expect people to enter encoded values in a search.

The tag-based approach is a good idea, and one which can work alongside the "generic" search.  E.g.,
host:localhost method:PATCH classic XXI could be a search term which looks for specifically localhost in the host data, PATCH in the method data, and classic XXI in the same way defined in this PR


Show multiplicity for sampling with replacement

Often when you sample items with replacement (as is done here), you need to know how many times each item is drawn.  I.e. in the second tests.json test case "Test an example yielding a duplicate selection", item "1" is selected twice.  If the sample was used in a risk-limiting audit, any discrepancies associated with the choice "1" would need to be factored in twice.
So when showing the results in Unique and Sorted forms, it would be handy to add an associated count for each item (sometimes called the multiplicity of the item in the selected multiset)

Thanks for the suggestion, @nealmcb!


feat(terraform): support for-each meta-argument for data sources

Fixes https://github.com/aquasecurity/trivy/issues/5554

I think the last count PR caused a merge conflict, could you resolve it @nikpivkin?


GET /2/users/by/username/:username/following endpoint returns 404 error

Describe the bug
In the dashboard, there are two endpoints given to getting the followings of an account,
one is by using the user's ID <GET /2/users/:id/following>
and the other is by using the user's name <GET /2/users/by/username/:username/following>
the one with ID works, however, the one with username return 404 in response
To Reproduce
Run this code:
import requests
import json

bearer_token = "{YOUR TOKEN}"

def bearer_oauth(r):
    r.headers["Authorization"] = f"Bearer {bearer_token}"
    r.headers["User-Agent"] = "v2FullArchiveSearchPython"
    return r

def connect_to_endpoint(url, params, method: str = 'GET'):
    response = requests.request(method, url, auth=bearer_oauth, params=params)
    print(response.status_code)
    if response.status_code != 200:
        raise Exception(response.status_code, response.text)
    return response.json()

def get_acc_followings(user_name: str):
    search_url = "https://api.twitter.com/2/users/by/username/%s/following" % user_name
    print(search_url)
    query_params = {"user.fields": "id,name,public_metrics,username"}
    json_response = connect_to_endpoint(search_url, query_params)
    print(json.dumps(json_response, indent=4, sort_keys=True))

if __name__ == "__main__":
    get_acc_followings('{PUT USERNAME HERE}')

Expected behavior
The response should include details of "following" users
Additional context
Running the same code by using the user's ID works just fine.
def get_acc_followings_by_id(user_id: str):
    search_url = "https://api.twitter.com/2/users/%s/following" % user_id
    print(search_url)
    query_params = {"user.fields": "id,name,public_metrics,username"}
    json_response = connect_to_endpoint(search_url, query_params)
    print(json.dumps(json_response, indent=4, sort_keys=True))

Can you provide a link to where you're seeing GET /2/users/by/username/:username/following? thanks.

This endpoint seems to be open now for Basic Access. I've tried a request and got a Not Found response. Also the docs are not updated to include it. Does it work ?

You can try this https://twitter.utools.me/ tel: https://t.me/Yang0619


Dynamic Substitutions in InitializationContext

Can we use dynamic substitutions when passing data in initializationContext?
For example:
"initializationContext": {
    "action": "yes",
    "id": "10",
    "text": "{{description.value}}"
},

When description is a text element defined as:
{
    "type": "Input.Text",
    "id": "description",
},

Thanks

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

ID: b948883f-055a-1e6a-791d-84338fc437a5
Version Independent ID: 62b37158-dc1a-bfbe-d7ff-ba1963de950c
Content: Invoke an Outlook add-in from an actionable message - Outlook Developer
Content Source: docs/actionable-messages/invoke-add-in.md
Product: outlook
Technology: o365-connectors
GitHub Login: @jasonjoh
Microsoft Alias: jasonjoh

To clarify, you’re looking to pass user input from the card to the add-in? I’m not sure if it’s possible, I’ll ask and post an update. Let me know if I’m misunderstanding.

Yes indeed. We need to pass some user input into the Add-In.

@chaim770 I double-checked with the team to see if this was something that just wasn't documented, and unfortunately no, the initialization context does not support this. Please feel free to share your feedback with<EMAIL_ADDRESS>


No podspec found for DutchconceptsCapacitorBarcodeScanner in ../../node_modules/@dutchconcepts/capacitor-barcode-scanner

Describe the bug
When trying to install the plugin, I get an error saying there is no podspec found for the plugin.
To Reproduce
Steps to reproduce the behavior:

Follow installation instructions - starting with npm install @dutchconcepts/capacitor-barcode-scanner
Run npx cap sync
See error:

No podspec found for DutchconceptsCapacitorBarcodeScanner in ../../node_modules/@dutchconcepts/capacitor-barcode-scanner

Expected behavior
When running npx cap sync we should not get this error.
Additional context
I see a podspec file in capacitor-barcode-scanner, so not sure why it's not finding it. Even after adding it to Info.plist, I still get this error. I have not tried it on Android yet so do not know if the plugin works there.

Can you try installing the just released 1.0.1 version? That should fix it.

@tafelnl
Installing the newest version fixed it! Thanks.


pass db config to baseInterface, similar to dbame

Add flexibility to the database interfaces by passing db config info to the base interface rather than having the base interface reading it directly from the config file.

Looks fine.


rotate d elements to the left of an array #1596

This is the code for Rotating d elements to the left of an array. This was an issue  with issue #1596 .
Please review my code and merge if satisfied by the code.
Also if there is any problem then kindly point me the changes.

This code is written in java


[Workspace] Fix lookup of llvm tools and clang

rdar://problem/45577364 swiftpm should look for the llvm tools next to its binary instead of using xcrun/which 😩

@swift-ci smoke test

Removing the test and it makes more sense for it to be in integration tests anyway.

@swift-ci smoke test


[MOI] Set Gurobi-specific attributes

As raised in this Discourse post, we should implement Gurobi-specific MOI attributes to allow the getting and setting of attributes from JuMP.
A sketch of the idea looks like:
struct ConstraintAttribute{T} <: MOI.AbstractConstraintAttribute
    name::String
end

function MOI.set(
    model::Optimizer, attr::ConstraintAttribute{Int},
    con::MOI.ConstraintIndex{MOI.ScalarAffineFunction{Float64}, T}, val::Int
    ) where {T}
    row = model[con]
    set_intattrelement!(model.inner, attr.name, row, val)
    return
end

function MOI.get(
    model, attr::ConstraintAttribute{Int},
    con::MOI.ConstraintIndex{MOI.ScalarAffineFunction{Float64}, T}) where {T}
    return get_intattrelement(model.inner, attr.name, model[con])
end

MOI.set(model, ConstraintAttribute{Int}("Lazy"), con, 3)
MOI.get(model, ConstraintAttribute{Int}("Lazy"), con) # --> 3

Here is the list of Gurobi attributes
http://www.gurobi.com/documentation/8.1/refman/attributes.html
Here is the list of Gurobi.jl attribute getters and setters
https://github.com/JuliaOpt/Gurobi.jl/blob/master/src/grb_attrs.jl
Note that different functions need to be called based on the type of the attribute (e.g., get_intattr, get_dblattr, get_strattr).
Here is the list of abstract MOI attributes
https://github.com/JuliaOpt/MathOptInterface.jl/blob/06216dc6907b5ec76390c8380e4655065c83ea22/src/attributes.jl#L16-L35
We should repeat the Julia code above for the other types of attributes listed in the Gurobi documentation, defining new structs as needed.
We probably need to check that the string attribute names match the right int/dbl/str type.
Any code also needs tests and documentation.
For anyone working on this, make some small changes, and then open a pull-request. It doesn't need to be complete. We can workshop the changes before you spend too much time trying to implement everything.
Also, if you have a better idea for how to implement this, say so.

Hi,
I would like to know the equivalent steps for the Lazy constraints generation that is described in the "Lazy Constraints" section of http://www.juliaopt.org/JuMP.jl/0.18/callbacks.html#lazy-constraints? I am using a Gurobi Solver. But I would like to see the place where I can
Any pointers will be highly appreciated.
Thanks.

Please provide a link if you post in multiple places: https://discourse.julialang.org/t/setting-constraints-as-lazy-with-jump-0-19-and-gurobi/24516/7?u=odow. I have replied on Discourse.

2.5 months later I finally have time to work on this! I am trying something based on the suggestion above but it is not working, at least not the way I am trying. My goal is to get this to work after a model is created using model = Model(with_optimizer(Gurobi.Optimizer)) as suggested in the discourse thread. It already works when creating the model in direct-mode (as mentioned in the discourse thread) but the whole point here is to not do that.
Gurobi.set_intattrelement!() needs a  Gurobi.Model, and an index for the constraint in the corresponding Gurobi.Optimizer. I can obtain one with model.moi_backend.optimizer.model, but this Gurobi.Optimizer has 0 variable and 0 constraint, therefore it is impossible to access the constraint that I want to set as lazy. Here is a small example:
model = Model(with_optimizer(Gurobi.Optimizer))
@variable(model, x >= 0)
@constraint(model, c, 2x >= 1)
grb_model = model.moi_backend.optimizer.model
grb_model[index(c)]

The output is a KeyError, so I assume that I am not looking in the right place.  Any idea where I can access the correct Gurobi.Model?

We can forget about JuMP for now. It is already possible to set MOI attributes. See, e.g.,
using JuMP, Gurobi
model = Model(with_optimizer(Gurobi.Optimizer))
@variable(model, x >= 0)
@constraint(model, c, 2x >= 1)
MOI.set(model, MOI.ConstraintName(), c, "my_c")
@assert name(c) == "my_c"

What we need to do is define the equivalent of MOI.ConstraintName for other things. Then this would work
MOI.set(model, Gurobi.ConstraintAttribute("Lazy"), c, 1)

The rough steps are as follows. (All the code should go in src/MOI_wrapper.jl.)
Define ConstraintAttribute, VariableAttribute, and ModelAttribute:
struct ConstraintAttribute <: MOI.AbstractConstraintAttribute
    name::String
end

Here is the documentation for the MOI super-types.
Then, we need a MOI.set function like so:
function MOI.set(
    model::Optimizer, key::ConstraintAttribute,
    c::ConstraintIndex{MOI.ScalarAffineFunction{Float64}, <:Any}, value::Int
)
    set_intattr!(model.inner, key.name, _info(model, c).row, value)
    return
end

Somehow, we need to deal with the different types of attributes (int, dbl, char, etc), and also variable and model attributes.
Does this make sense? You might want to hold off making changes until #216 is merged.

Thank you, it does make sense, I will wait until #216 is merged then do as you suggest.

Just a quick note, I cannot have both Gurobi 0.7.0 and JuMP 0.19 installed at the same time. If I install Gurobi#master then install JuMP, it installs JuMP 0.18.6. If I install JuMP#master then Gurobi, it installs Gurobi 0.6.0. If I try to install both with #master, there is an unsatisfiable requirement for MathOptInterface. Is this normal or is there something wrong with my setup? I think I need both Gurobi 0.7 and JuMP 0.19 to be able to add the MOI feature described above.

You need to use this branch of JuMP for it to work with MOI v0.9: https://github.com/JuliaOpt/JuMP.jl/pull/2003

After tinkering a bit I am stuck, since Gurobi.set_intattrelement!() requires a Gurobi.Model but all I have when creating my model using with_optimizer() is a Model. Is there any way to obtain a Gurobi.Model from my JuMP Model? The only thing I can find is model.moi_backend.optimizer.model.inner which is of the right type but appears to be empty, i.e. it does not contain variables or constraints previously added to the model.

You need to do MOIU.attach_optimizer(model) to fill it in. Note that this is automatically called at optimize!(model)

Thank you! Is this call expensive? If yes, is there any way to check if the model is already "attached"?

Yes but if you call attach and it's already attached it's a no-op so it shouldn't harm. Anyway, you can check that state with MOIU.state(backend(model)), see https://www.juliaopt.org/MathOptInterface.jl/stable/apireference/#Caching-optimizer-1

Note that touching model.moi_backend.optimizer.model.inner is generally a bad idea because the indices between the JuMP model and this Gurobi model may not map 1:1. direct_model was designed for the use case where you want to work with a JuMP model and the Gurobi model at the same time.

Thanks again, I somehow did not realise that this documentation existed, that's on me. On my system the first call to MOIU.attach_optimizer(model) is indeed very expensive:
using JuMP, Gurobi, CPUTime

model = Model(with_optimizer(Gurobi.Optimizer))
@variable(model, x >= 0)
@constraint(model, c, 2x >= 1)
@objective(model, Min, x)

@CPUtime MOIU.attach_optimizer(model)

elapsed CPU time: 370.165058 seconds
This is using JuMP#master and Gurobi 0.7.0.

Note that touching model.moi_backend.optimizer.model.inner is generally a bad idea because the indices between the JuMP model and this Gurobi model may not map 1:1. direct_model was designed for the use case where you want to work with a JuMP model and the Gurobi model at the same time.

Thanks, I had no idea, I am discovering the whole code (as made obvious from my questions above). The reason why I am trying to do this is to be able to use MOI.set() with a model created using with_optimizer(), as it was suggested. Now I understand that this is a bad idea to begin with (or there is something else I am missing). Is there some kind of consensus on what to do here? Should I just stick to direct_model?

Are you on Julia 1.2? 370s is way too long. How long does optimize! take?

Yes, this is Julia 1.2. optimize!() takes long as well, but all the time is spent in the initial MOIU.attach_optimizer() call.

You've probably hit https://github.com/JuliaLang/julia/issues/32167. I suggest that you revert to Julia 1.1 until we tag a new version of MOI (and JuMP) with a fix.

Following all the recent updates I am using Julia 1.2 with JuMP 0.20.0, MOI 0.9.1 and Gurobi 0.7.2. I have a piece of code that should work but somehow does not, I believe there is an issue with Gurobi.jl so I made a MWE:
using JuMP, Gurobi

model = JuMP.direct_model(Gurobi.Optimizer())
@variable(model, x >= 0)
@constraint(model, c, 2x >= 1)
@objective(model, Min, x)

opzr = backend(model)

Gurobi.set_intattrelement!(opzr.inner, "Lazy", Gurobi._info(opzr, index(c)).row, 2)
Gurobi.get_intattrelement(opzr.inner, "Lazy", Gurobi._info(opzr, index(c)).row)

The call to get_intattrelement() returns 0. A quick experiment on a large model suggests that using set_intattrelement!() to set many constraints as lazy does have an effect, so I am guessing that get_intattrelement() does not function as intended (or that I do not understand the intent).

Thanks, it's great that these functions exist. Is there any reason why they are not systematically called in Gurobi setters and getters? Formulated differently: is there any attribute that does not require an update following modification?

First pull request: https://github.com/JuliaOpt/Gurobi.jl/pull/243
I only included constraint attributes so far. If people are satisfied with what I did, I can add variable and model attributes too.

More pull requests submitted, we now have variable attributes and soon model attributes too. I would also like to have methods that are more convenient to call, I think this needs to be added to JuMP, any idea where I should add this? I'm thinking about something like this:
using JuMP, Gurobi

model = JuMP.direct_model(Gurobi.Optimizer())
@variable(model, x >= 0)
@constraint(model, c, 2x >= 1)
@objective(model, Min, x)

MOI.set(c, "Lazy", 2)

Or if that is not possible, something like
MOI.set(model, c, "Lazy", 2)

This should work:
using JuMP, Gurobi

model = JuMP.direct_model(Gurobi.Optimizer())
@variable(model, x >= 0)
@constraint(model, c, 2x >= 1)
@objective(model, Min, x)
MOI.set(model, Gurobi.ConstraintAttribute("Lazy"), c, 2)
optimize!(model)

It's pretty convenient. It just needs to be documented: https://github.com/JuliaOpt/JuMP.jl/issues/2057

From the Gurobi side, I think this issue can be considered closed by #243, #245, and #247.

It should be noted here that the constraints need to be set as lazy individually. If you have a set of constraints defined together (say, as @constraint(model, c[i in 1:2], 2x>=i)), you can't just write
MOI.set(model, Gurobi.ConstraintAttribute("Lazy"), c, 2)

Instead, you need
for i in 1:2
    MOI.set(model, Gurobi.ConstraintAttribute("Lazy"), c, 2)
end


Octave Matlab Compatibility

Changed the sample data file and added new columns. The file is in CSV format. Load properly in Octave. Check if there are any issues in Matlab.

The sample data file seems to be loading up as expected in both Matlab and Octave.


Update deeplearning.md

I know that there is priority things to do and it seems useless this change, but I really like to get things organized

Great job sir! And great to see you around!


Adapted to the new version rofi 1.7.0

In the new 1.7.0 version, the background color could not display properly. I modified to adapt the new version

this pr fixes the problem for me

Hey! Thanks for fixing the issue. I will be merging your PR now.


Broken search on https://osism.tech/docs/

The search on https://osism.tech/docs/ does not work properly at the moment.

The search generates broken links depending on the state (URL, breadcrumb) in the documentation it is called from (example: "https://osism.tech/docs/guides/configuration-guide/commons/packages/docs/guides/configuration-guide/commons/packages#upgrade-of-packages")
If you enter a search term such as "clush" + "" in the search field, the first result of the interactive search is displayed instead of the list of search results (not a serious problem, but somewhat unexpected from the user's point of view)

This is confusing, especially for new users who are not familiar with the documentation, and it does not make a good impression.

I quickly inspected the implementation and the current setup.
It seems that we are using docusaurus-search-local and the configuration is in docusaurus.config.js.
Probably setting blogRouteBasePath and docsRouteBasePath helps.
I created a experimentation-PR for this, but currently do not have a idea how to test it...

Solved :-9


Set up CircleCI configuration

We could use CircleCI to add stages to be run on every push made to the project. Starting with make test would be a good idea, what do you think? I could help with that. 🐼

Continuous integration is never a bad idea. :) Feel free to work on it, if you want to.

Awesome! I can work on this one! Would you mind providing me access to the repository so I can set up CircleCI? I guess Developer role is good enough for that!

Can I work on this for Hacktoberfest @mbenford ?

@mohitsaxenaknoldus This issue is outdated since GitHub Actions exists. I appreciate you interest in helping, though. 😃


ticdc lag reached more than 10min when run ha_pdleader_data_io_hang and ticdc crash

What did you do?
1、run tpcc with threads 10 and warehouse 1000
2、After 10 minutes, simulates the io of pd leader is hang but the pod is still active
fault start time：2023-05-15 12:05:38
3、After 10 minutes, recovery the fault
fault recover time：2023-05-15 12:15:38
What did you expect to see?
changefeed lag is less than 30s
What did you see instead?
1 、changefeed lag reached more than 10min after inject fault
2、 ticdc crash

Versions of the cluster
git hash：1335f98cdbaf77239bbcbc6b61561e4254449ffe
current status of DM cluster (execute query-status <task-name> in dmctl)
No response

/severity major

#9106 alleviate this problem, in testing, it was found that after merging this PR, there is only a 50% chance of encountering the cdc stuck issue.

/assign @fubinzh

What is the root cause of the lag since TiCDC doesn't depends on PD leader's IO, TiCDC just asynchronously push the checkpoint to PD. cc @nongfushanquan

This issue still seen with v7.2.0
chaos injection time: 2023-06-21 19:14 - 19:19

PD  can't read the leader's information from etcd , which may be caused by the following issue
https://github.com/etcd-io/etcd/issues/12528.

It's a etcd issue, we can fix now.

ticdc crash when inject pd leader io delay 1s
[2023/10/18 17:36:14.719 +08:00] [INFO] [chaos.go:64] ["Run chaos"] [name=iochaos_io_delay] [selectors="[endless-ha-test-ticdc-tps-3240159-1-638/tc-pd-2]"] [selectorsRetainPolicy(selectors)="[endless-ha-test-ticdc-tps-3240159-1-638/tc-pd-2]"] [targetSelectors="[nil]"] [targetSelectorsRetainPolicy(targetSelectors)="[nil]"] [experimentSpec="IODelaySpec{Duration: "", Scheduler: , Delay: "1s", Path: "/var/lib/pd/data/**/*", Percent: 100}"]

/remove-label affect-7.5

If PD is able to upgrade  it etcd version to 3.4.31, it's likely that the issue will be resolved.
Ref: https://github.com/etcd-io/etcd/pull/17465#event-11888619658
cc @flowbehappy

After the merge of https://github.com/pingcap/tiflow/pull/10881, the checkpointTs lag during pd-leader-io-hang cases was reduced to less than 120s, meeting the requirement.


Rss fixes

I think that should fix the links - I'll deploy ad hoc to test
That fixed it:

The issue was that while I had set SITE_URL in the secrets, I hadn’t actually wired it through to the containers in docker-compose.yml

Still getting an error when trying to subscribe via Reeder though :(

Odd, packages showed up a moment later despite the error, but not releases, even after retry.

List seems to be out of order though - something isn’t right here.

So the packages one looks like it's working, and the items in it seem sensible from what I can see.
The releases.rss is a 404 for me. No RSS content at all, just HTML as a 404.

Well, it kinda helps to add the route 🤪
I’ll go over the whole thing again tomorrow though - I was way too unfocused today 😅

I am a bit at a loss what's going on here. The feeds validate and can subscribe to them without error now. However, what I see has virtually nothing to do with the most recent items in our respective lists:

My best and only guess is that my client is in a weird state, because it pulled in the feeds in random order before I added pubDate. Although even that shouldn't have messed up the order, because there was order in the feed.
I've tried deleting and re-adding the feeds but no difference.

What feed content do you see for the deployed version (83b5a760eb223039c04a9f3f074cb1e0ff51c601) which is what the above is referring to?


Add repository node to Maven POM publication distributionManagement

Fixes #28759
Context

Contributor Checklist

[X] Review Contribution Guidelines.
[x] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
[X] Make sure all contributed code can be distributed under the terms of the Apache License 2.0, e.g. the code was written by yourself or the original code is licensed under a license compatible to Apache License 2.0.
[X] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team.
[x] Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective.
[X] Provide unit tests (under <subproject>/src/test) to verify logic.
[X] Update User Guide, DSL Reference, and Javadoc for public-facing changes.
[X] Ensure that tests pass sanity check: ./gradlew sanityCheck.
[X] Ensure that tests pass locally: ./gradlew <changed-subproject>:quickTest.

Reviewing cheatsheet
Before merging the PR, comments starting with

❌ ❓must be fixed
🤔 💅 should be fixed
💭 may be fixed
🎉 celebrate happy things

Thank you for your contribution!
This PR has a valid DCO and tests. The relevant team for this area will confirm the design of the implementation choices.

@hfhbd we're busy for 8.12, but I've added this to our list to consider for 8.13.  We think this is a useful thing to add


Add new chart repo APIs routes to the Harbor API layer

Work is done, code hold in PR https://github.com/vmware/harbor/pull/5314. Will be merged back when the container of the chart is ready. Close the issue.


VLAN trunking and QinQ  support for Linux Bridges

Description
This issue it to implement VLAN trunking support in Linux bridging.  As the  implementation of QinQ uses this bridge functionality we will implement support for it in this issue.
Use case
This will allow to restrict the VLANs that a VM can access to and use trunking mode in a secure way, as we'll as easily define QinQ networks.
Interface Changes
The implementation should use the attributes already present in OpenvSwitch

VLAN trunking, uses VLAN_TAGGED_ID to specify a range of VLANs to tag, for example: 1,10,30,32,100-200.
QinQ uses 2 different attributes to set the customer and service vlan ids:

CVLANS Customer VLAN IDs, as a comma separated list
VLAN_ID Service 802.1Q VLAN ID.  (current setting)

Additional Context
A different feature will address access control to the VLAN sets

Progress Status

[ ] Code committed
[ ] Testing - QA
[ ] Documentation (Release notes - resolved issues, compatibility, known issues)

Looking forward to this feature, it would make my life a lot easier! :)

This is now implemented and will be released in the next maintenance versions, more details in:

QinQ in 802.1Q driver

VLAN trunking in bridge driver

Thanks for this new feature. Feliz Navidad!


Add go 1.11 and 1.12 tests

Coverage remained the same at 88.571% when pulling d45c2bcd31effbbaf50cdca261c8b0415677622a on o1egl-patch-1 into b1a8b0be7dc11be75e7b6923dc6d07f718a51c33 on master.

Coverage remained the same at 88.571% when pulling d45c2bcd31effbbaf50cdca261c8b0415677622a on o1egl-patch-1 into b1a8b0be7dc11be75e7b6923dc6d07f718a51c33 on master.


Drop Warehouse not possible with soft deleted tables

From discord:
Hello everyone!
We’ve encountered a couple of issues while working with StarRocks and Lakekeeper:

Error when deleting a database (The full error message is attached):
When trying to delete a database from Lakekeeper, the following error occurs:

ERROR 1064 (HY000): Unexpected exception: Namespace is not empty.
Steps to reproduce:
•    Create a catalog in StarRocks.
•    Create a database in the external catalog.
•    Create a table in the database.
•    Delete the table.
•    Delete the

I think we should default to cascade deletes in most places and add an additional "Locked" attribute to prohibit deletes - similar to what Azure / AWS does.
In Azure RGs also cascade deleted, unless the RG or any containing Resource is locked.

What would locked mean in that context? Cannot be used at all or just cannot be deleted?
We could also have soft-deletes on a higher level

As discussed this morning, we prefer the following behavior:

If tables are still present in an entity, whether they are soft-deleted or still active, we don't allow drop on the Namespace via the REST Endpoint
We add an additional drop endpoint as part of the management API that allows cascade deletes and gives more control over how deletion is performed (cascade, soft / hard, physical / logical)

This protects as best as possible from data loss.
Cascade deltas would be blocked if any affected item has the locked attribute


Test_WSL_Ubuntu_22.04.yml - run initPC script twice

Some commits in the PR are already merged to the branch testing (github error?).


Use Named parameters for API and Spec types within the .NET generator

Tests are much less brittle when named parameters for all api/spec types within the .NET generator Unit Tests. This has several benefits:
Less of a false positive or false negative when the api/spec changes.
Less work to update tests when the spec changes.
Robust against changes to the ordering of parameters, especially adjacent parameters of the same type.

Not required anymore. This is on the old generator.


Docs comments only appear if they are written directly above getter

Bug Report
This works as expected
Struct Media
  include JSON::Serializable

  @[JSON::Field(key: "idMal")]
  # The mal id of the media
  getter id_mal : Int32?
end

This, however, does not
Struct Media
  include JSON::Serializable

  # The mal id of the media
  @[JSON::Field(key: "idMal")]
  getter id_mal : Int32?
end

#9332 handled this for other things, but this one is prob special in that it's a macro call vs macro definition.

Duplicate of #6449


fix(cmd): check for invalid probe types

closes deis/workflow#704

Codecov Report

Merging #297 into master will increase coverage by 0.1%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master     #297     +/-   ##
=========================================
+ Coverage   72.58%   72.68%   +0.1%
=========================================
  Files          59       59
  Lines        4082     4097     +15
=========================================
+ Hits         2963     2978     +15
  Misses        792      792
  Partials      327      327

Impacted Files
Coverage Δ

cmd/healthchecks.go
86.51% <100%> (+2.73%)
:arrow_up:

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 1ffbad5...aad8e10. Read the comment docs.

Code change LGTM; however, a corresponding update to e2e expectations will be needed (see linked jenkins ci run), for example, we still expect Applying livenessProbe healthcheck but we now get Applying liveness healthcheck:
16:25:00 • Failure [60.125 seconds]
16:25:00 deis healthchecks
16:25:00 /go/src/github.com/deis/workflow-e2e/tests/healthcheck_test.go:204
16:25:00   with an existing user
16:25:00   /go/src/github.com/deis/workflow-e2e/tests/healthcheck_test.go:170
16:25:00     who owns an existing app that has already been deployed
16:25:00     /go/src/github.com/deis/workflow-e2e/tests/healthcheck_test.go:169
16:25:00       that user can set a tcpSocket liveness healthcheck [It]
16:25:00       /go/src/github.com/deis/workflow-e2e/vendor/github.com/onsi/ginkgo/ginkgo_dsl.go:365
16:25:00
16:25:00       No future change is possible.  Bailing out early after 32.316s.
16:25:00       Got stuck at:
16:25:00           Applying liveness healthcheck... ...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...o...done
16:25:00
16:25:00           === test-91480123 Healthchecks
16:25:00
16:25:00           web/cmd:
16:25:00           --- Liveness
16:25:00           Initial Delay (seconds): 50
16:25:00           Timeout (seconds): 50
16:25:00           Period (seconds): 10
16:25:00           Success Threshold: 1
16:25:00           Failure Threshold: 3
16:25:00           Exec Probe: N/A
16:25:00           HTTP GET Probe: N/A
16:25:00           TCP Socket Probe: Port=1500
16:25:00
16:25:00           --- Readiness
16:25:00           No readiness probe configured.
16:25:00
16:25:00       Waiting for:
16:25:00           Applying livenessProbe healthcheck...
16:25:00
16:25:00       /go/src/github.com/deis/workflow-e2e/tests/healthcheck_test.go:86

Okay if that's the expected output I'll keep that change in there. Lemme do some code switcheroo and revert some of the deletions I made.

done, changes made and now it's passing e2e normally.


Fix typos

Hi, thanks for the fixes! I'm a bit hesitant to add codespell as a dev-dependency to the project though, as I try to be careful to contain the dependency tree. Could you remove the addition of codespell from this PR?

:partying_face: :partying_face: :partying_face: :partying_face: :partying_face:

Thanks again for the patch!


[autoupdate] Update Python for Mac OS X: 3.8.6→3.8.7, 3.9.0→3.9.1

A new version of Python for Mac OS X is available.

3.8.6 can be updated to 3.8.7
3.9.0 can be updated to 3.9.1

For details of the updated versions, see https://github.com/pyenv/pyenv/releases/v1.2.22.
I am a bot, and this action was performed automatically.

The failed check is fixed by 8b1d3d1d3f5085234e4b18c703bf201774066ae3. Checks should pass the next time the autoupdater is run.

The failed check is fixed by 8b1d3d1d3f5085234e4b18c703bf201774066ae3. Checks should pass the next time the autoupdater is run.


Copying links other than text doesn't appear to be working?

Thanks for fixing the missing context menu options on Nightly. Unfortunately, copying links in anything other than plain text doesn't appear to be working. For example, if I select the FormatLink-Firefox at the top of this page and select copy as markdown, nothing gets added to the clipboard and hence there's nothing to paste.
Linux/Nightly.

Same behavior for me with all links I've tried on AMO. The only place where it worked for me there was to copy the page link (when invoked from either the tab's context menu or the icon it places next to the address bar). So this seems to apply to AMO only, but works fine on all other sites I've tried so far.
For the books: I've had the very same issues with Copy URL, so this could be a bug either in WebExtensions, or in the AMO page design (or in both, or AMO could willingly have done so).
BUT: while on sites other than AMO the URL was captured fine, the link title was always set to that of the page the link was on – not to the link description (i.e. {{text}} is always replaced by the page title). Unless I've "marked" ("selected") the entire URL manually beforehand (ah, I see: that must be this code; is this a limitation by WebExt? Can't one get the URL text (a.nodeValue) from the same place you get the link (a.href) from? Always having to select the link first is a bit annoying). Using v1.3.1 here, in case it matters.
@Radagast can you confirm this?
Looks like this could become a replacement for CoLT when legacy addons are shot down with FF57 – provided the {{text}} issue is solved. Funnily, CoLT has no issues with the AMO site.
(PS: AMO = Addons.Mozilla.Org)

@IzzySoft Thanks for your comment. Your observations are the same as mine. I described them at "KNOWN LIMITATIONS" in https://addons.mozilla.org/ja/firefox/addon/format-link3/
I believe these are limitations of the web extension APIs.
For context menus, I use
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/contextMenus/onClicked
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/contextMenus/OnClickData
at
https://github.com/hnakamur/FormatLink-Firefox/blob/d494ccf41df63fbd22350804867baafc932ac8b8/background.js#L34
But the info.selectionText is empty if you just right click on a link. As you say, if you select the link text manually, then info.selectionText is set to the text.

Thanks for your feedback, @hnakamur – I vaguely remembered having read about some such limitation but didn't remember where (Mozilla drives me crazy with their breaking everything every few years; I'm using Firefox since back when it was called Phoenix, and only didn't switch because I haven't yet found a suitable alternative – so this is about the 3rd time I've got to completely "restock" my extensions).
With the WebExt API still not being "finished" by them, is there any chance this limitation might be removed in the future? I'm not a FF or Chrome dev and not familiar with it, but I would expect even an API as limited as that one should be able to retrieve the link's nodeValue as well – so my hope is this is something they'll add?
Btw: As you can get the URL by info.linkUrl, maybe the nodeValue is stored in the info object as well. Guess you've already tried that, but did console.log(info) yield something helpful? (I do some basic Javascript from time to time, and found console.log() often revealed helpful things)

PS: @hnakamur you might wish to check into this bugzilla issue. Is exactly about the "link title", and still open. As for the "alternative approach" I mentioned in my previous comment, it has even that:
function menuClick(info, tab) {
  let url = new URL(info.linkUrl);
  browser.tabs.executeScript(tab.id, {
    code: `
      var link = document.querySelector('a[href="${url.pathname}"]');
      ....
    `
  });

(if the same link exists multiple times, as a work-around you could just pick the first one. Shouldn't happen too frequently anyway, hopefully).
Chime in there, point out that your addon (and the other one I've mentioned I used to verify) would need that in contextMenus.OnClickData. Should rise its priority at least slightly.

@IzzySoft Thanks for your info and code. I modified your code and created and merged the pull request https://github.com/hnakamur/FormatLink-Firefox/pull/6
I just submitted Format Link version 1.3.2 for the review.

Thanks! Just tested it (loading it as "temporary extension" via about:debugging). Strange. Works for some links, but not for others. Reproducible:

Go to the main page of your repo
try these links:

MIT (the license in the header): Works as hoped for
the "LICENSE" file: Works as expected (title will be "MIT", as that's how the very same link appears first on the page)
top tabs (Code, Issues, Pull Requests): "Code" has "Github" as title, "Issues" works, everything else gets the page title
second row (commits … MIT): all except for "MIT" have the page title
all links from the file list have the page title
all links from within the README seem to work fine again

Same "mixed bag" on other sites. Tried at Stack Exchange: Links from the content work fine, from the headers not. Here at least is some clue: those which do not work have some event handler attached. Oh, guess what: for "click", so that could interfere (however, CoLT captures them correctly). Didn't see any event attached to those "failed links" on the Github page, though.
Some debug via Console (back again on your Github page) indeed matches that:
document.querySelector('a[href="https://github.com/hnakamur/FormatLink-Firefox/branches"]')
// returns: null
document.querySelector('a[href="https://github.com/hnakamur/FormatLink-Firefox/blob/master/LICENSE"]')
// <a href="https://github.com/hnakamur/FormatLink-Firefox/blob/master/LICENSE">

So for the failing links, document.querySelector does not return anything. Looking at the page source (Ctrl-U) they are actually not there it seems – that is, until you strip the https://github.com from the start!
Suggested fix: In background.js, extend the code: you pass to browser.tabs.executeScript and add an else, like
if (link) then link.innerText.trim() : "";
else {
  link = document.querySelector('a[href="${url}.pathname"]');
  link ? link.innerText.trim() : "";
}

(well, syntax error for the new URL – but you get what I mean). Basically: If the full URL was not found on the page, try again with the path only.
I'm ready to test that again, just let me know when it's ready :)

@IzzySoft Thanks for your comment.
href may be relative URL such as ../foo, so I use selectQueryAll('a') and choose a link whose href property (which becomes a full URL) to the selected URL.
https://github.com/hnakamur/FormatLink-Firefox/pull/7
Could you test it again?
Thanks!

Fantastico! I was one step behind you (have tried in parallel, got the relative URLs working and was just about to deal with anchors as well – your fix already includes that. Strange that looping over all links (document.querySelectorAll('a')) always considers the full qualified link, while looking it up with document.querySelector('a[href="url"]') does not.  Will test a bit more before giving a final answer, but it looks very good to me – thanks, and congrats! Now yours is the only WebExt that manages that (tried a few, all failed).
So: Works like a charm now – except for AMO pages, strangely, where it still doesn't catch a thing. Rushes right through tryToGetLinkSelectionText as if it would "return Promise…", though "text" is undefined. Tried selecting some text – and ran into an exception with that, claiming on line 78 that copyTextToClipboard would not be defined. With no text selected, it just rushes through and does nothing to the clipboard – last stop line 35, then straight to the end of that function. No idea what's behind that.
For now I'd suggest to publish the next version and leave the AMO issue for later (as that has its separate issue, guess this one can be considered solved and be closed now). Thanks a lot for your help! If I do the switch to FF57, this will now be my replacement for CoLT. :+1:

Thanks for your test and comment.
I suppose document.querySelector('a[href="url"]') searches for a tags whose href attribute value written as is. On the other hand, HTMLHyperlinkElementUtils.href - Web APIs | MDN returns the whole URL.
Code for context menu and copying text to clipboard are copied from
https://github.com/mdn/webextensions-examples/tree/master/context-menu-demo
https://github.com/mdn/webextensions-examples/tree/master/context-menu-copy-link-with-types

This add-on injects JavaScript into web pages. The addons.mozilla.org domain disallows this operation, > so this add-on will not work properly when it's run on pages in the addons.mozilla.org domain.

To copy text to clipboard, you need to inject JavaScript to web pages, but you cannot do that in the addons.mozilla.org for security reason.
As for copyTextToClipboard, yes I see the error TypeError: copyTextToClipboard(...) is undefined in the console when I use dev tool debugger too.
I copied the code from
https://github.com/mdn/webextensions-examples/blob/d7bf874833d0f752e505047574594edf76ba5a07/context-menu-copy-link-with-types/background.js#L23-L42
and first it checks the copyTextToClipboard is defined and then define it if it is not defined yet.
I submitted the version 1.3.3 for the review.
Thanks a lot for your help, too!
I'm happy as a developer that this web extension is useful for you,
and also as a user myself now I don't need the link text manually!

Typical win-win situation then :grin:
As for AMO: the (legacy) addon CoLT can extract URLs fine from there. Guess one could play with parsing the DOM tree to see whether that's possible (and also working with AMO and other possibly "restricted sites"). For now I guess your addon will work on 95% of all sites or more, and that's a good thing! I've updated my Gist accordingly, naming your addon as only possible replacement for CoLT (as the other candidates fail on too many things). Yours has even an advantage over CoLT: I can chose to let the copied link have a different title by simply selecting some text from the page :rofl:
One minor (cosmetic) suggestion (common.js, function createContextMenus): instead of "copy url in %s format" I'd rather name the menu items "as %s", looks cleaner:
Format Link -> as Default
            -> as Markdown
            -> as reST
            -> ...

Alternatively: "using %s format" (e.g. "using default format", "using Markdown format").
Nothing urgent, just cosmetical :wink:
Finally, my big thanks for your great support! Need to remember to mention that in my Gist.

Thanks for your advice!
I renamed context menu item labels and submit it as version 1.3.4 for the review.
Also thanks for mentioning my support in your Gist!

Thanks! Update arrived and looks great! Funnily I still found a few "misbehaving links" (unfortunately in a protected area you'll have no access to). If I figure what it is (and maybe cann present an openly accessible example) I'll let you know.

Okay, checklist of my findings. Pages that do not work include:

links in mails displayed with Roundcube (no reaction at all, so regardless of format). If I "select" the link (ie. text marked), the text will be copied to the clipboard but never the link. I've set some breakpoints, but it seems the routines are not even called. Funny thing is the debugger doesn't even list background.js being available – only clipboardhelper.js, common.js and content.js are mentioned (but that doesn't seem to be the culprit, as it's neither visible here at Github where the addon works fine).
ownCloud files app: Links from the panel get the wrong title. This is "expected behavior" as they work via Javascript events, with their href attribute being identical – so the title is taken from the first link. Just mention it in case of "similar reportings".
Links in some pages of My Oracle Support, e.g. in SR comments. Same behavior as described with Roundcube above: links have hrefs, but FormatLink doesn't seem to be triggered at all, though it's available in the context menu.
Some Wordpress pages (e.g. this one)

Just removed some bullet points from above list. If someone reports "wrong titles" or "not working at all", there are a few cases where that is "expected behavior":

the second bullet point above
if any text on the page is selected, that's obviously used as title (face-palm – of course that's how it should be, but one must be aware of it. Takes some time getting used to :wink:).
links are Javascript events (aka "OnClick") only, having no href
pages having right-click disabled (obviously we cannot hook into a non-existing context menu)
AMO

Will keep my eyes open. Apart from above "minor annoyances", it works pretty well now!

It generally works fine for me on Windows. But on Linux, I find that it only works if I've never copied anything to the clipboard since logging in. Once I've copied something to the clipboard in another program, then Format Link stops working (clipboard still contains the previous thing copied). I am guessing this is a limitation of the Firefox WebExtensions implementation on Linux.


How to include the Azure Policy Check Gate task within a yaml pipeline?

We would like to evaluate this task inside a yaml pipeline. As it is a ServerGate task, it does only seem to pop up as a deployment gate task within designer release pipelines?
Tutorial: https://learn.microsoft.com/en-us/azure/governance/policy/tutorials/policy-devops-pipelines
Task identity: AzurePolicyCheckGate@0
Source code can be found here:
https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/AzurePolicyV0

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

ID: 204c76e5-edae-976b-c243-3df0edbb3c13
Version Independent ID: 204c76e5-edae-976b-c243-3df0edbb3c13
Content: AzurePolicyCheckGate@0 - Check Azure Policy compliance v0 task
Content Source: task-reference/azure-policy-check-gate-v0.md
Service: azure-devops-pipelines
Sub-service: azure-devops-pipelines-tasks
GitHub Login: @steved0x
Microsoft Alias: sdanie

@cveld -- Carl, thank you for your questions.  Please consider these resources:

Azure DevOps Services
Azure DevOps on Stack Overflow

@steved0x -- Steve, please look into this issue.

Thank you for your feedback. We are migrating this issue to our new documentation feedback system, and closing this issue.
As we phase out GitHub issues for this repository, we encourage you to propose changes using public PRs or submit feedback through our updated control at the top of the page. For more information on our feedback systems, see https://aka.ms/contentuserfeedback.


When output is filtered for tests, pretty date printing should show absolute date

Assuming this is no longer needed with btstest.


api still not work 404 error，but cli could work- normally

As per the readme, /conversation is a POST request.


perf: use more efficient way to splice a linked list

Thanks, meant to do this myself after I read your other loop PR, but you saved me the trouble :)


Questions: Change Scene W/ JS?

I'm looking at the API and having a little bit of a hard time translating it into code. I would like to be able to transition scenes via voice commands. Can someone provide an example how I would use JS to load a new scene?
Thanks!
Brandon

After instantiating a Pannellum instance, in this case viewer (see custom controls example), use viewer.loadScene(sceneid), where sceneid is the scene ID in the Pannellum configuration, e.g. circle or house in the tour example.
If your application does not allow you to include all of the scenes in one configuration file, you can also add a new scene to the configuration using the addScene method and then switch to it using loadScene.

That was super helpful, thank you!
It's only one scene at the moment but If you say "show house" it will change the scene. :)
https://codepen.io/BrandonCorlett/pen/weKLBJ?editors=1111
Now to find a way to get it to work with a VR headset =P


server: stop status server early when gracefully shutdown

Signed-off-by: youjiali1995<EMAIL_ADDRESS>
What problem does this PR solve?
Issue Number: close https://github.com/pingcap/tidb/issues/25244
Problem Summary:
v4.0 TiDB introduced a mechanism that if a request sent to TiKV fails due to network problem, TiDB will check the liveness status of the TiKV through an HTTP API. If it's still reachable, TiDB will retry to send requests to it forever until backoff timeout.
However, TiKV may shut down slowly.
Jun 08 11:32:21 583d114d1e09 systemd[1]: Stopping tikv service...
Jun 08 11:33:51 583d114d1e09 systemd[1]: tikv-20160.service stop-sigterm timed out. Killing.
Jun 08 11:33:53 583d114d1e09 systemd[1]: tikv-20160.service: main process exited, code=killed, status=9/KILL
Jun 08 11:33:53 583d114d1e09 systemd[1]: Stopped tikv service.
Jun 08 11:33:53 583d114d1e09 systemd[1]: Unit tikv-20160.service entered failed state.
Jun 08 11:33:53 583d114d1e09 systemd[1]: tikv-20160.service failed.
Jun 08 11:33:53 583d114d1e09 systemd[1]: Started tikv service.
Jun 08 11:33:53 583d114d1e09 run_tikv.sh[74711]: sync ...
Jun 08 11:33:53 583d114d1e09 run_tikv.sh[74711]: real        0m0.103s
Jun 08 11:33:53 583d114d1e09 run_tikv.sh[74711]: user        0m0.000s
Jun 08 11:33:53 583d114d1e09 run_tikv.sh[74711]: sys        0m0.101s
Jun 08 11:33:53 583d114d1e09 run_tikv.sh[74711]: ok

The gRPC service is stopped but the liveness check API still works.
[2021/06/08 11:32:21.557 +08:00] [WARN] [client_batch.go:530] ["no available connections"] [target=<IP_ADDRESS>:20160]
...
[2021/06/08 11:33:53.034 +08:00] [INFO] [region_cache.go:1660] ["[liveness] request kv status fail"] [store=<IP_ADDRESS>:20180] [error="Get http://<IP_ADDRESS>:20180/status: dial tcp <IP_ADDRESS>:20180: connect: connection refused"]

What is changed and how it works?
What's Changed:
Stop the status server which provides the early.
Related changes
Check List
Tests

No code

Side effects
Release note
None

/rebuild

May this affect metrics reporting?

/release make dist_release

May this affect metrics reporting?

@MyonKeminta I think it doesn't matter because the store is stopping.

/run-all-tests

@MyonKeminta @sticnarf PTAL

/merge


fix noopValidator loggerName

this was preventing NoopValidator logger from beign configured with all springfox classes
fixes #3785

up


Set Regarding for Task is Disabled

The option to allow Set Regarding for Task is disabled. In the screenshot you can see the checkbox is grayed out. I've even tried exporting the solution, turning the options on by editing the XML, and reimporting. The settings get stripped out on import. Task has been hardcoded to now allow on Set Regarding.

The normal process to setup Entities for tracking in Outlook is documented here.
https://docs.microsoft.com/en-us/dynamics365/outlook-app/enable-a-custom-entity-to-appear-in-the-regarding-lookup
If I bypass the DOM restrictions and set the checkbox for “Enable for activities”, saving the changes results in an error.

A custom entity defined as an activity must not have a relationship with Activities.
Dynamics Tasks derive from Activities and are prevented from being used in the Set Regarding fields.
We need this limitation removed so that we can set regarding on Tasks.

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

ID: 6f5588c1-b920-500f-184f-39c24e4d868c
Version Independent ID: ccbb257c-aea0-02c3-9630-37befb2043b3
Content: Enable a custom entity to appear in the Regarding lookup in Dynamics 365 App for Outlook  (Dynamics 365 apps)
Content Source: ce/outlook-app/enable-a-custom-entity-to-appear-in-the-regarding-lookup.md
Service: crm-online
GitHub Login: @mduelae
Microsoft Alias: mkaur

Thanks for contacting us. Unfortunately, we're unable to handle Support requests for the product here. To contact Support, consider one of the options described here: https://docs.microsoft.com/dynamics365/get-started/support/.
Closing this issue.


remove the CountEventsPlugin

because it creates extremely huge response in the /metrics endpoint, but nobody cares about it, or uses the data.

Current coverage is 50.91% (diff: 100%)

Merging #478 into master will decrease coverage by 0.08%

@@             master       #478   diff @@
==========================================
  Files           135        132     -3
  Lines          3108       3074    -34
  Methods           0          0
  Messages          0          0
  Branches        263        259     -4
==========================================
- Hits           1585       1565    -20
+ Misses         1443       1430    -13
+ Partials         80         79     -1

Powered by Codecov. Last update e940e4e...79dc4d9

:+1:

👍


Labels dont seem to update when titles changes

I guess it's a feature? :)

You missed https://github.com/carsonbot/carsonbot/pull/37 :)

Apparently :open_mouth:


Tabs

@Stefanwullems made some changes in order to improve keyboard navigation.
@Michiel87 any comments? otherwise I'll merge!