Rename the swift-format utility to swift-indent

This is to distinguish the C++ indenting functionality from the new formatter that is written in Swift.

@swift-ci Please test

Build failed
Swift Test OS X Platform
Git Sha - 0135e01d026e07615516f3d3eb8f877c47b7c092

Build failed
Swift Test Linux Platform
Git Sha - 0135e01d026e07615516f3d3eb8f877c47b7c092

@swift-ci Please test


resources-added

Description
Added Web-development and programming resources.
Fixed #34

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] This change requires a documentation update

Checklist:

[x] I have pulled the latest changes in the repository
[x] I have squashed my commits
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

@anushruti11 kindly observe the website, how resources are added and displayed.

@anushruti11 kindly observe the website, how resources are added and displayed.

@anushruti11 Are you working on it?

@anushruti11 kindly observe the website, how resources are added and displayed.

@anushruti11 Are you working on it?

Since you aren't active. I am going to close this pull request.


Add handling of NaN, +Inf and -Inf in C++ code generation

Added the generation for Nan, +Inf and -Inf.
Currently it always generates the hex representation of a double (actual value is commented for understandability) which is decoded via the helper function __uint64_to_double.
I've also moved some C++ code generation specific code from common.h to the new CppCodeGen.h header file. Let me know if I have been overzealous here.

👍

@dotnet-bot test OSX Debug  please


Unification failure with NaT

Numba 0.48dev0 has problems unifying NaT (i.e. datetime[]) with datetime[D]:
import numpy as np
from numba import njit

a = np.datetime64("NaT")
b = np.datetime64("2000-01-01")

@njit
def test_NaT_typing(a, b):
    if a > b:
        return a
    else:
        return b

test_NaT_typing(a, b)

Results in:
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Can't unify return type from the following types: datetime64[D], datetime64[]
Return of: IR name '$12return_value.1', type 'datetime64[]', location:
File "", line 11:
def test_NaT_typing(a, b):

    if a > b:
        return a
        ^
Return of: IR name '$16return_value.1', type 'datetime64[D]', location:
File "", line 13:
def test_NaT_typing(a, b):

    else:
        return b
        ^

Closing this issue as it seems to be resolved. If this is not the case please re-open with a comment about any item that appears to be unresolved. Many thanks.


Increment version for sqlmanagement releases

Increment package version after release of Azure.ResourceManager.Sql

API change check
API changes are not detected in this pull request.


Basic C interface for build database

Those are the changes related to the C interface of the previously open PR here.
It will be used to build a Swift interface on top in a different PR.
rdar://50298712

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test


rendering the wrong icon in the title, but it is right in the property

Info:

OS: macOS

Logseq ver: 0.8.18

Plugin ver: 1.4.0

Theme name: Bonofix theme v3.8.3

[x] ⚠ Do i have issue with DISABLED my custom.css?

Description:
rendering the wrong icon in the title, but it is right in the property
To Reproduce:

add property icon::  (github doesn't have the font package used in the table picker so it's a square)
reload page

Expected behavior:
render the property icon in the title, the bus
Screenshots

I have the same issue
OS: Windows
Logseq ver: 0.8.18
Plugin ver: 1.4.0
Theme name: Awesome Styler Dark
Not using a custom.css
Screenshots


"export class" does not compile with outfile=foo (module=none, es6)

TypeScript Version:  3.8.3
Search Terms:
Code
{
   "$schema": "http://json.schemastore.org/tsconfig",
   "compilerOptions": {
      "module": "none",
      "target": "es6",
      "types": [],
      "outFile": "newFile.js" //   <- important
   },
   "files": [
      "main.ts"
   ]
}

// main.ts
declare module Common {
    abstract class absCom {
        constructor();
    }
}
export /* <- important */ class Com extends Common.absCom {
    constructor() {
        super();
    }
}

Expected behavior:
This should compile without problems.
Actual behavior:
When I configure an outfile no file is generated (js and no .d.ts, .js.map).
But we get no error message about this!
This is the same with --verbose:
[13:11:21] Project 'foo/tsconfig.json' is out of date because output file 'foo/newFile.js' does not exist
[13:11:21] Building project 'foo/tsconfig.json'...
[13:11:23] Updating unchanged output timestamps of project 'foo/tsconfig.json'...

Test 1:
Removing the outfile generates the following block in main.js:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Com extends Common.absCom {
    constructor() {
        super();
    }
}
exports.Com = Com;

Test 2:
Removing export in main.ts we get in newFile.js:
class Com extends Common.absCom {
    constructor() {
        super();
    }
}

Thats why I think merging Object.defineProperty(exports, "__esModule", { value: true }); into one outfile causes the abort.
Playground Link:
Not possible, as we need outfile to trigger the bug.
Related Issues:
none found

Per the docs, outFile is only legal when module is AMD or System, but the lack of error message seems like a bug.

Wow.
We are using outFile with module=none for over five years without problems.

I always interpreted the docs as

The only module loader that can be used in conjunction with --outFile are "AMD" and "System".

and not as

Only the values "AMD" and "System" can be used in conjunction with --outFile. Even "None" is not allowed.

Waiting for feedback from product owner.

The new website explains it:
https://www.typescriptlang.org/tsconfig#outFile

Note: outFile cannot be used unless module is None, System, or AMD. This option cannot be used to bundle CommonJS or ES6 modules.

So our code is valid :-)

This one does not compile either with NO error message:
export interface myInterface{
  value: boolean;
}
function a(){}

Works without problems when removing export.

Even easier to reproduce:
/* Fixing self https://github.com/microsoft/TypeScript/issues/11781 */
declare var self: ServiceWorkerGlobalScope; // eslint-disable-line @typescript-eslint/no-redeclare
export { };

with
    "compilerOptions": {
        "lib": [
            "WebWorker",
            "scripthost",
            "ESNext"
        ],
        "outFile": "ServiceWorker.js"


pack ukernel: optimized ARM64 code, benchmark,+refactorings

Brings a decently optimized ARM64 implementation of the iree_uk_pack microkernel.
It's not super optimized --- not even any assembly code.  Just some C with intrinsics, aiming at a trade-off with simplicity, generalizability, code size. We even have a naive for loop iree_uk_memcpy, which thanks to restrict the compiler is able to lift to a true memcpy while preserving compile-time memcpy size, and in some cases we just use that.
Another thought tilting us towards C is instrumentability: pack is the kind of place that's potentially relevant to sanitize (asan, tsan...) so it's kind of interesting to keep it in C.
The PR is made bigger because this was another instance where generalizing from having 1 microkernel (mmt4d) to more than 1, required some groundwork.
Performance charts . Some cases are fairly close to memcpy, other cases are 1 order of magnitude slower. Still probably good enough to not dominate profiles (by contrast, naive for loops before optimization could be 2 to 3 orders of magnitude slower than memcpy, and that was more clearly a problem).
Code size on ARM64, release: total 3104 bytes.
0000000000000924 t iree_uk_pack
0000000000000004 t iree_uk_pack_select_tile_func_arch
0000000000000220 t iree_uk_pack_select_tile_func_arm_64
0000000000000032 t iree_uk_pack_select_tile_func_generic
0000000000000260 t iree_uk_pack_tile_8x1_x32_arm_64_direct
0000000000000036 t iree_uk_pack_tile_8x1_x32_arm_64_transpose
0000000000000372 t iree_uk_pack_tile_8x1_x8_arm_64_direct
0000000000000136 t iree_uk_pack_tile_8x1_x8_arm_64_transpose
0000000000000248 t iree_uk_pack_tile_8x4_x8_arm_64_direct
0000000000000080 t iree_uk_pack_tile_8x4_x8_arm_64_transpose
0000000000000104 t iree_uk_pack_tile_8x8_x8_arm_64_direct
0000000000000196 t iree_uk_pack_tile_8x8_x8_arm_64_transpose
0000000000000212 t iree_uk_pack_tile_generic_direct
0000000000000280 t iree_uk_pack_tile_generic_transpose

nice! since these are all intrinsics it'd be cool to see how these compare to what the codegen produces and whether we can have the pack ops lower to appropriate dialect ops - this is a great way to iterate and verify performance and something we should be able to port to codegen once it's stabilized.

oooh i think i know why it's slower than memcpy. L1D aliasing strikes again.
in ruy packing code, we traverse only 4 rows at a time, so for a tile width 8 that means 2 traversings per tile. and it's worth it, for that reason. we should do the same here.... i'll either update this PR or send a follow up.

I've looked into this and tried a few things. It's not going to be a cheap lunch, because the cache issues are more diversified than I was hoping for above.
L1D aliasing does seem to be the top problem for some cases, but these cases are not the ones where we have the worst performance issues. These are cases where there is no outer-transposition (the linalg_ext.pack does not have outer_dims_perm). Some performance improvement can be obtained there by splitting kernels of width 8 into width 4 halves, if we care.
The worst problem here is that in the outer-transposing cases (corresponding to those linalg_ext.pack ops that have outer_dims_perm = [1, 0]), we are more or less implementing a matrix-transpose function, so whichever traversal order we pick is non-local in either the input or output buffer layout. Naturally I thought about tiling to solve such cases, and I was able to get 1.5x speedups with that, bringing performance from a paltry 6 GB/s to 9 GB/s on Cortex-A710, but that is still very bad compared to memcpy's 45 GB/s. At this point, code had gotten more complex, performance was still bad and I was looking at perf event counters to make dirty tile size heuristics. So I thought let's leave it here for now :-)

Discussed with @silvasean . Going to leave this PR as-is for now. When we care to further optimize pack ukernels, the main thing to look into will be some tiling to cache line size, so that we only ever write full cache lines.


TextField’s border is cut if placed inside a SingleChildScrollView

When a TextField is the bottommost widget in a SingleChildScrollView, its bottom border appears to be thinner than usual. Probably a rendering issue.
An unwrapped TextField looks like this:

A TextField inside a SingleChildScrollView looks like this:

If the border width is less than 1.0, then it becomes almost invisible inside the scroll view.
Here’s a sample code to reproduce the issue:
import 'package:flutter/material.dart';

void main() {
  runApp(SampleWidget());
}

class SampleWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      builder: (_, __) => Scaffold(
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(25.0),
            child: SingleChildScrollView(
              child: TextField(),
            ),
          ),
        ),
      ),
    );
  }
}

flutter doctor -v

[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.5 19F101, locale en-GB)
    • Flutter version 1.17.5 at /Users/denis/Projects/vendor/flutter
    • Framework revision 8af6b2f038 (2 weeks ago), 2020-06-30 12:53:55 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/denis/Library/Android/sdk
• Platform android-30, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• 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.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 41.1.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[!] IntelliJ IDEA Ultimate Edition (version 2020.1.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[✓] Connected device (2 available)
• Android SDK built for x86 • emulator-5554                        • android-x86 • Android 10 (API 29) (emulator)
• iPhone 11 Pro Max         • 6FCA75B1-A34C-45EC-BF25-BA36CC5DA55D • ios         • com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
! Doctor found issues in 1 category.

flutter doctor -v
[✓] Flutter (Channel dev, 1.20.0-7.1.pre, on Mac OS X 10.15.5 19F101, locale
    en-GB)
    • Flutter version 1.20.0-7.1.pre at /Users/taha/Code/flutter_dev
    • Framework revision 7736f3bc90 (3 days ago), 2020-07-10 16:33:05 -0700
    • Engine revision d48085141c
    • Dart version 2.9.0 (build 2.9.0-21.2.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-30, build-tools 30.0.0
    • ANDROID_HOME = /Users/taha/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 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

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

[✓] Connected device (6 available)
    • SM M305F (mobile)      • 32003c30dc19668f                     •
      android-arm64  • Android 10 (API 29)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E            • ios
      • iOS 13.5.1
    • iPhone 11 (mobile)     • C56E212F-BE8E-4766-8610-12CFADC797F0 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64
      • Mac OS X 10.15.5 19F101
    • Web Server (web)       • web-server                           •
      web-javascript • Flutter Tools
    • Chrome (web)           • chrome                               •
      web-javascript • Google Chrome 83.0.4103.116

• No issues found!

@denis-evteev
Thanks for catching this

@denis-evteev This is an anti-aliasing effect. If you don’t want it, please configure SingleChildScrollView(child: TextField(), clipBehavior: Clip.none,), Hope it helps you^_^

@xu-baolin The SingleChildScrollView widget does not have a clipBehavior property.

(Channel master, 1.21.0-2.0.pre.83

Well, you’re referring to a property that doesn’t yet exist in the stable channel, so unfortunately your suggestion won’t work there. Nonetheless, it’s great to know that the issue has been addressed and resolved in more recent flutter releases.

Well, you’re referring to a property that doesn’t yet exist in the stable channel, so unfortunately your suggestion won’t work there. Nonetheless, it’s great to know that the issue has been addressed and resolved in more recent flutter releases.

As a workaround, you can hack your source code, it is easy.

I’m not sure what you mean by hacking my source code, but I don’t think that implementing a hack-like solution is a good idea anyway.
A simple workaround that I already implemented was to wrap the TextField in a Padding widget and specify some bottom padding. Once the clipBehavior property that you pointed to becomes available in the stable channel, I’ll switch to using that instead.

It sounds like this is fixed on master, so I am going to close this issue. If you feel that we have not addressed the issue, let us know and we will re-open it!
#14288 is a long-standing issue around anti-aliasing, there is a lot of discussion and work arounds for various cases there as well! :)

After further investigation, I think this may be a bug related to ClipRect. Here, the size of _RenderSingleChildViewport is the same as the size of the child. According to the code-logic(flutter/packages/flutter/lib/src/widgets/single_child_scroll_view.dart:575) will go to pushClipRect, after clip, the TextField's underline will be cut no matter the clip behaver is antiAlias or hard-edge.
  bool _shouldClipAtPaintOffset(Offset paintOffset) {
    assert(child != null);
    return paintOffset < Offset.zero || !(Offset.zero & size).contains((paintOffset & child.size).bottomRight);
  }

Also, ask a question, If the size of the parent is the same as the size of the child. Why should it be cut?
(Rect.contains's comment: Rectangles include their top and left edges but exclude their bottom and right edges)
@liyuqian Looking forward to your answer，thanks.

After further investigation, I think this may be a bug related to ClipRect. Here, the size of _RenderSingleChildViewport is the same as the size of the child. According to the code-logic(flutter/packages/flutter/lib/src/widgets/single_child_scroll_view.dart:575) will go to pushClipRect, after clip, the TextField's underline will be cut no matter the clip behaver is antiAlias or hard-edge.
  bool _shouldClipAtPaintOffset(Offset paintOffset) {
    assert(child != null);
    return paintOffset < Offset.zero || !(Offset.zero & size).contains((paintOffset & child.size).bottomRight);
  }

Also, ask a question, If the size of the parent is the same as the size of the child. Why should it be cut?
(Rect.contains's comment: Rectangles include their top and left edges but exclude their bottom and right edges)
@liyuqian Looking forward to your answer，thanks.

The second question I think it is a bug that has been around for a long time, I will fix it.

Thanks for investigating @xu-baolin and opening a pull request! I'll re-open this issue.

Thanks for investigating @xu-baolin and opening a pull request! I'll re-open this issue.

Hi, thank you for reopening this issue.
Although #63054 will cause unnecessary clipRect, I think this is not the root cause of this problem, because the clipRect is equaled to the child's size not overflow, so the child's underline should not be cut. This is why I did not link #63054 to the issue.
In summary, here are some things that need to be figured out. ^-^

I found the line be cut 1.5px here, @liyuqian who will affect this parameter?

#63054 is definitely something we need to fix. Thank you @xu-baolin for finding it!
The 0.5 pixel comes from Skia's hairline logic. Flutter sets 0 stroke width in the border paint used by the underline to make that underline a hairline. The hairline always has 1-device-pixel regardless of the transformation and it's impossible for Flutter to figure out exactly which pixel it may touch on the Dart level. Due to anti-aliasing, such 1-device-pixel line may actually touch 2 pixels (e.g., drawing 0.4, 0.6 in two pixels to approximate a solid pixel at a fractional 0.4 offset).
As hairline's actual boundary depends on transformations and a Transform can be added on top of a widget at any time, it seems impossible for a widget to calculate its paint boundary correctly if there are hairlines. Therefore correctly clipping a widget with hairlines seems to be mission impossible. CC @Hixie @reed-at-google for thoughts.

Agreed -- can't clip to a hairline

@liyuqian Hi, I want to ask a question, how can I capture a special frame SkPicture by flutter screenshot --type=skia --observatory-uri, I found it only captures the 1st frame of the APP.

@xu-baolin It should capture the current frame of the app instead of the 1st frame of
the app. In what version of Flutter did you find this problem? I'm
currently having difficulty in visualizing the skp due to
https://bugs.chromium.org/p/skia/issues/detail?id=10588

@xu-baolin It should capture the current frame of the app instead of the 1st frame of
the app. In what version of Flutter did you find this problem? I'm
currently having difficulty in visualizing the skp due to
https://bugs.chromium.org/p/skia/issues/detail?id=10588

I made a mistake, it did capture the current frame. My version is Channel unknown, 1.21.0-8.0.pre.84, I don't know why is channel unknown, I think it should be channel master. I meet the seam issue last week #62845, but it was repaired quickly.
Now I have an issue in my project, When I swipe the screen, the screen is a little bit blurry transitory, so is there any way to capture the frames during a period for debug?

@liyuqian  I switch to up-to-date master-branch, it works well.
PS F:\flutter_dev\src_new\flutter> flutter screenshot --type=skia --observatory-uri=http://<IP_ADDRESS>:49512/h8BUvMyqB7g=/#/vm-connect
No supported devices connected.
The following devices were found, but are not supported by this project:
PDCM00 (mobile)   • 9LL7VO8XUOIN75ZH • android-arm64 • Android 10 (API 29)
Windows (desktop) • windows          • windows-x64   • Microsoft Windows [Version 10.0.17763.615]
If you would like your app to run on android or windows, consider running `flutter create .` to generate projects for
these platforms.

Screenshot written to flutter_08.skp (300kB).
PS F:\flutter_dev\src_new\flutter> flutter doctor -v
[√] Flutter (Channel master, 1.21.0-8.0.pre.172, on Microsoft Windows [Version 10.0.17763.615], locale en-US)
    • Flutter version 1.21.0-8.0.pre.172 at F:\flutter_dev\src_new\flutter
    • Framework revision 8dcb4c338a (2 hours ago), 2020-08-11 17:29:35 -0700
    • Engine revision 06458d2f6c
    • Dart version 2.10.0 (build 2.10.0-11.0.dev)
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\Administrator\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
    • All Android licenses accepted.

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.0)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.7.30330.147
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 3.6)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin version 48.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)

[√] VS Code (version 1.47.2)
    • VS Code at C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.12.1

[√] Connected device (2 available)
    • PDCM00 (mobile)   • 9LL7VO8XUOIN75ZH • android-arm64 • Android 10 (API 29)
    • Windows (desktop) • windows          • windows-x64   • Microsoft Windows [Version 10.0.17763.615]

• No issues found!
PS F:\flutter_dev\src_new\flutter>

Thanks for bringing https://github.com/flutter/flutter/issues/62845 to my attention! It indeed seems to be the root cause and I've closed the Skia bug accordingly.
https://api.flutter.dev/flutter/scheduler/timeDilation.html might help you capture a frame in the middle of an animation,


for next version check when values zero

about a dozen cases in which chl and phaeo values zero. do we need to explain in methods and/or adjust quality flag?

This was due to incorrect data entry in Sosik mvcochl.xls Taylor has fixed. There should not be any zeroes in next version

Closed this issue but reopened because I'm under the impression it's been fixed but keep it open as a good reminder to double check once we have a publishable ver of the data table.


Fix docker-compose

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Tests pass?
✔

Removed alias for public directory (https://github.com/yiisoft/yii-docker/pull/7)
Renamed docker-compose.yml.local to docker-compose.yml
Removed unnecessary ignored files in .gitignore

Thanks!


PKG_DDL_UTIL: ORA-20113: Object BC_PORTAL:INDEX:bcp_addresses_l1:BC_PORTAL::BCP_ADDRESSES:::: is not correct.

The DDL for this index starts with an empty line first which was not ignored.
CREATE UNIQUE INDEX "BC_PORTAL"."bcp_addresses_l1" ON "BC_PORTAL"."BCP_ADDRESSES" ("ID")

In t_schema_ddl.add_ddl it is now verified that the DDL text table (converted from a CLOB) is not empty.


No connectivity in protected namespace as unprivileged

I have successfully used namespaced-openvpn for a year or two, but now after having upgraded to the latest testing version of Debian I am experiencing problems running unprivileged applications with it.
I have installed namespaced-openvpn in /usr/local/sbin (-rwxr-xr-x root).
Once the namespace is set up (sudo namespaced-openvpn --config ./my_openvpn_config_file
), if I run ping in the protected namespace as root:
sudo ip netns exec protected ping -w 3 www.google.com
then all is fine.
But, if I run ping in the protected namespace as user:
sudo ip netns exec protected sudo -u $USER ping -w 3 www.google.com
then I have no connection and get 'ping: www.google.com: Name or service not known'.
I have no connectivity running all other applications in the protected namespace unprivileged - apart from, for some reason, Tor.
Unfortunately, I don't have a great deal of expertise in this area and haven't been able to find the cause, and so any pointers would be gratefully received.

Thanks for the report!
This appears to be a failure of name resolution when running unprivileged. Are you using systemd-resolved? If so, you should disable it as described here: https://github.com/slingamn/namespaced-openvpn#dns-hardening
If that's not the problem, try the following commands:
sudo ip netns exec protected python3 -c "import socket; print(socket.gethostbyname('www.google.com'))"

sudo ip netns exec protected sudo -u $USER -i python3 -c "import socket; print(socket.gethostbyname('www.google.com'))"

sudo ip netns exec protected strace python3 -c "import socket; print(socket.gethostbyname('www.google.com'))

sudo ip netns exec protected sudo -u $USER strace python3 -c "import socket; print(socket.gethostbyname('www.google.com'))"

These attempt to do a "vanilla" name resolution with Python, first in the namespace as root, then in the namespace as the current (presumably unprivileged) user. The commands with strace in them should provide detailed information about what operations are occurring and which ones are failing.

I was using systemd-resolved, but disabling it didn't unfortunately resolve the problem.
However, using the strace tool I found the following line:

openat(AT_FDCWD, "/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = -1 EACCES (Permission denied)

Looking at permissions, sudo ip netns exec protected ls -la /etc/resolv.conf yielded:
-rw------- 1 root root 45 Mar 13 18:31 /etc/resolv.conf
so only root could access the address of the dns resolver.
I've changed the permissions to '-rw-r--r--' and I can now use the protected namespace unprivileged to connect to the internet.  Even after removing and recreating the 'protected' namespace, and shutting down and restarting my computer, everything now works as it should.
However, I'm not sure what I did to cause the problem in the first place.
Thanks - without your help I would never have got to the root of the problem!

Interesting, thanks.
Try stopping namespaced-openvpn, deleting /etc/netns/protected/resolv.conf, restarting it, and seeing if the problem comes back? That file actually persists across reboots, so the issue might not be fixed.

Although changing resolv.conf permissions remedies the problem, the problem does persist when totally removing namespaced-open and reinstalling it:
Stop namespaced-openvpn:
sudo ip netns del protected
Delete protected resolv.conf:
sudo rm /etc/netns/protected/resolv.conf
Delete executable:
sudo rm /usr/local/sbin/namespaced-openvpn
Download, extract, and installfresh copy of namespaced-openvpn to /tmp:
cd /tmp/namespaced-openvpn-master
make
sudo make install

Start namespaced-openvpn:
sudo namespaced-openvpn --config $ovpnFile --daemon
Check permssions:
sudo ls -la /etc/netns/protected/resolv.conf

-rw------- 1 root root 45 Mar 14 09:49 /etc/netns/protected/resolv.conf

These are the permissions in the /tmp folder where namespaced-openvpn extracted:
ls -la /tmp/namespaced-openvpn-master

total 72
drwx------  3 angus angus  4096 Dec  6 10:05 .
drwxrwxrwt 27 root  root   4096 Mar 14 09:51 ..
-rw-r--r--  1 angus angus    12 Dec  6 10:05 .gitignore
-rw-r--r--  1 angus angus  1062 Dec  6 10:05 LICENSE
-rw-r--r--  1 angus angus   255 Dec  6 10:05 Makefile
-rwxr-xr-x  1 angus angus 14678 Dec  6 10:05 namespaced-openvpn
-rw-r--r--  1 angus angus 22372 Dec  6 10:05 README.md
-rwxr-xr-x  1 angus angus   657 Dec  6 10:05 seal-unseal-gateway
-rw-r--r--  1 angus angus    30 Dec  6 10:05 setup.cfg
drwx------  3 angus angus  4096 Mar 14 09:46 tests

This is the permission for the executable:

-rwxr-xr-x 1 root root 14678 Mar 14 09:46 /usr/local/sbin/namespaced-openvpn

It would be helpful to know if I am taking a wrong turn at some point leading to the problem, or whether there is a wider issue that may affect others.  Thanks!

It sounds like this issue will affect other people, although I'm not sure what the root cause is yet.
Reinstalling /usr/local/sbin/namespaced-openvpn shouldn't affect anything. Does the problem reproduce if you leave the executable in place, but stop the process and delete /etc/netns/protected/resolv.conf?
If so, the problem is most likely just that the file is created with the wrong permissions. See if the problem reproduces without --daemon? Also, try strace -ff sudo namespaced-openvpn --config $ovpnFile and see if there's a call to umask(2) (that's what controls the permissions of newly created files).

Hi - I've managed to track down the source of the problem, and am more than a little embarrassed as it has nothing to do with your code.
I was running the 'sudo namespaced-openvpn --config $ovpnFile' command in an Emacs Org-mode code-block.  When run directly in a terminal the resolv.conf permissions were normal.
(I've yet to get to the bottom of the elisp code-block code, but it is obviously here that the permissions are being affected.)
Thanks for all your trouble.

No worries, thanks for the report!


Signing out every hour

Product and Version [VSCode]:
OS Version [Windows]:
Latest:
Target Platform or Language [Node.js]:
What were you doing when you encountered the desync?
in a live share with a buddy
How often have you encountered desyncs?
every hour

We are looking at a fix, as a workaround, can you try running this command: Live Share: Disable VSCode account authentication? This will revert the authentication to the old flow, and not use the in client auth. Please let us know if this unblocks you.


Feat(eos_designs): Add sflow_settings

Change Summary

Add sflow_settings
Component(s) name
arista.avd.eos_designs
Proposed changes

sflow_settings:
  destinations:
    - destination: <str>
      port: <int>
      vrf: <str>
  structured_config: <dict>

How to test

Added to existing sFlow molecule tests.
Checklist
User Checklist

N/A

Repository Checklist

[x] My code has been rebased from devel before I start
[x] I have read the CONTRIBUTING document.
[x] My change requires a change to the documentation and documentation have been updated accordingly.
[x] I have updated molecule CI testing accordingly. (check the box if not applicable)

@jonxstill @pmerlo2022 thank you for your reviews. I have updated the data model a bit since Jon reviewed, to be simpler for VRF. And for both of you I just added support for the new default_mgmt_method so it respects that if you don't set the VRF.

The changes generally look good to me - the only comment I have is that I still references in the documentation to NTP server(s) instead of sFlow destination.

Fixed. Thank you for catching this (again)...


Latin accents are not working on Chrome and Mozilla (works on Safari) on macbooks

Describe the bug
Latin accents are not working on Chrome and Mozilla (works on Safari) on macbooks, when user tries to type a char with an accent like é, á or any other, it first shows the accent and then when you type the letter only the letter is shown (tried with many inputmasks configs)
To Reproduce
Steps to reproduce the behavior:

On macbook, chrome or Mozilla

Create an input with any config that accepts letters with accents
type and accent
Type a letter
See only the letter

Expected behavior
Its expected to show a letter with an accent like á, é, ú or any other.
Additional context
I debugged a bit and found out that Chrome and Mozilla on MAC emmit (or dont) an event that makes this error.

Guys, please, I've the same issue and this is very annoying.

@gquittet , @rodolfodosanjos,
Ok, can you make an example mask in codepen or jsfiddle.
Is this only happening on MAC or also on other platforms?
I tried a simple mask like aaaaaaaaaa with Inputmask 5.x on browserstack Mac/Mojave/ Chrome & firefox and have no problem entering éèà.
Which version are you using of the inputmask?


Windows fixes for the cli

Should fix #28
Based on @tduffield's very useful comments in #58.

Unfortunately I do not have access to a Windows machine anymore, so I can't make any more improvements currently.
I have tested all these changes but the last commit.

This looks great, we will merge and test


Bugfix: Video thumbnail not showing correctly on Beehive pprd

The problem was duplication of items in the index, which caused react to flatten items in the array due to duplicate keys. We were using a combination of item.unique_id and item.type to uniquely identify the object to solr. We now have items with different types (ex: MetadataOnlyObject, VideoObject, etc), so this no longer works. Additionally, item.unique_id is only guaranteed to be unique within a collection. Changed this to use the collection.unique_id + item.unique_id when identifying the object in solr. This will mean we need to reindex after a deploy.

Coverage decreased (-0.02%) to 95.733% when pulling 87a0b5c6f518916a9099c319743bc34fa28e4f40 on DEC-1309-Bugfix-Video-thumbnail-missing into 3149a5c411e59f61e706d6c01b0213405cf38050 on master.

This will require a reindex of everything. It should be much faster now with the changes to indexing.


Copy selection fails if (a heading is present AND preceding text is selected)

There are three conditions to reproducing this bug:

Copy-selection must be used;
A heading (any level: h2/h3/h4, etc.) must be present
Text before that heading must be part of the selection.

I tried copy-selection-as-markdown with the following text selected:

Default rule handles nodes which are not recognised by any other rule. By default, it outputs the node's text content (separated  by blank lines if it is a block-level element). Its behaviour can be customised with the defaultReplacement option.

Rule Precedence

Turndown iterates over the set of rules, and picks the first one that matches the filter. The following list describes the order of precedence:

This fails, with the following output:
**Default rule** handles nodes which are not recognised by any other rule. By default, it outputs the node's text content (separated by blank lines if it is a block-level element). Its behaviour can be customised with the `defaultReplacement` option.

### []

[]: #rule-precedence

However, if I omit the line before the heading, and select:

Rule Precedence

Turndown iterates over the set of rules, and picks the first one that matches the filter. The following list describes the order of precedence:

I get the correct text, which is:
### []Rule Precedence

Turndown iterates over the set of rules, and picks the first one that matches the `filter`. The following list describes the order of precedence:

[]: #rule-precedence

Please let me know if I can help pin down the bug any further.

Interestingly, I couldn't replicate this by copy-pasting the HTML above into a new file, but I can replicate it here: https://www.npmjs.com/package/turndown
It looks like it's getting stuck on the anchor for some reason. I'll have to investigate further.

Interestingly, I couldn't replicate this by copy-pasting the HTML above into a new file, but I can replicate it here: https://www.npmjs.com/package/turndown
It looks like it's getting stuck on the anchor for some reason. I'll have to investigate further.

I don't know what I'm doing wrong, but it stems all the way back to the window.getSelection() function not quite getting everything (or I don't know how to get everything)...

I don't know what I'm doing wrong, but it stems all the way back to the window.getSelection() function not quite getting everything (or I don't know how to get everything)...


Do not capture nil errors

First of all, thanks for the project! :)
I've added some nil checks so it doesn't try capture nil errors. My grpc endpoints return nil when there's nothing wrong, so all my valid requests are currently producing usage errors in sentry at the moment haha.

Attached is the error currently being reported in sentry when a successful grpc call is done.
I waive all rights to these code changes and agree to the license

Sidenote, would you mind adding a v0.0.1 tag for this project so I can have a nice and clean go.mod :)

Cheers!


docs: update docs and readme.

Better docs and readme.
Will fix #27

have you intention to finish it? or I can close?

I have tried improving the documentation to my best. You had already done a great job in improving rest of the docs.


Change the behavior for use_docker in execute_code

https://github.com/microsoft/autogen/blob/main/autogen/code_utils.py#L216
default to None. If docker is not installed, we issue the warning. if set to True and docker is not installed, we throw an exception.

Please assign this to me

I have raised PR for this, please review.


feat(forms): Ability to provide custom public ticket form

Works for me with custom form; and the tests are broken the same way they were before my changes so it's fine.
probably won't be useful for many people but django-allauth uses the same behaviour which means it's useful for at least some
not sure if you have feature freeze already in place - in this case this PR may wait for the next release

Codecov Report

Merging #949 (1713a86) into master (78a027b) will increase coverage by 0.00%.
The diff coverage is 80.00%.

@@           Coverage Diff           @@
##           master     #949   +/-   ##
=======================================
  Coverage   72.79%   72.79%
=======================================
  Files          52       52
  Lines        5124     5132    +8
  Branches      612      612
=======================================
+ Hits         3730     3736    +6
- Misses       1208     1210    +2
  Partials      186      186

Impacted Files
Coverage Δ

helpdesk/views/public.py
68.75% <77.77%> (+0.13%)
:arrow_up:

helpdesk/settings.py
90.90% <100.00%> (+0.21%)
: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 78a027b...1713a86. Read the comment docs.


fix: context data race

Context may involve in a RW data race when setting and accessing a value and its done channel.
Fixes: https://github.com/gliderlabs/ssh/issues/160

This fix is incomplete.
Every call to sshCtx.Context (including Err() and others) all causes Data Race.


Chef 12.3.0 package provider override not working

I'm using chef-server-ingredient and supplying a package source, which should pass provider Chef::Provider::Package::Rpm to the package resource given the following code:

https://github.com/chef-cookbooks/chef-server-ingredient/blob/v0.3.2/libraries/chef_server_ingredients_provider.rb#L57
https://github.com/chef-cookbooks/chef-server-ingredient/blob/v0.3.2/libraries/helpers.rb#L44

Despite that, it's using yum_package which is giving me the same issues as #3059
[2015-06-03T16:48:42-04:00] DEBUG: resources for generic package resource enabled on node include: [Chef::Resource::YumPackage]
[2015-06-03T16:48:42-04:00] DEBUG: resources that survived replacement include: [Chef::Resource::YumPackage]
[2015-06-03T16:48:42-04:00] DEBUG: resources for generic package resource enabled on node include: [Chef::Resource::YumPackage]
[2015-06-03T16:48:42-04:00] DEBUG: resources that survived replacement include: [Chef::Resource::YumPackage]

    * packagecloud_repo[chef/stable] action add[2015-06-03T16:48:42-04:00] INFO: Processing packagecloud_repo[chef/stable] action add (/var/chef/cache/cookbooks/chef-server-ingredient/libraries/chef_server_ingredients_provider.rb line 48)
 (skipped due to only_if)
[2015-06-03T16:48:42-04:00] DEBUG: Skipping packagecloud_repo[chef/stable] due to only_if ruby block
    * yum_package[supermarket] action install[2015-06-03T16:48:42-04:00] INFO: Processing yum_package[supermarket] action install (/var/chef/cache/cookbooks/chef-server-ingredient/libraries/chef_server_ingredients_provider.rb line 53)
[2015-06-03T16:48:42-04:00] DEBUG: yum_package[supermarket] checking rpm status
supermarket 1.10.1~alpha.0-1.el5
[2015-06-03T16:48:45-04:00] DEBUG: yum_package[supermarket] checking install state
package supermarket is not installed
[2015-06-03T16:48:45-04:00] DEBUG: yum_package[supermarket] supermarket not installed, installing
[2015-06-03T16:48:45-04:00] DEBUG: yum_package[supermarket] is already installed - nothing to do

I added a ChefSpec test to my cookbook which currently fails because it expects rpm_package to be used, not yum_package:  https://github.com/irvingpop/supermarket-omnibus-cookbook/pull/8/files#diff-9f91e0135de8f3ef2e8493be0f54648bR112

The way its using the provider attribute on a package resource is wrong.  You want to refactor that so that it builds an rpm_package or yum_package resource explicitly instead.  What you're getting is an rpm_package provider wrapped in a yum_package resource which is displaying 'yum_resource'.  This was always bad practice and its become a worse practice with Chef 12

cc:  @jtimberman
I think have some ideas for fixing this in chef-server-ingredient

hey @lamont-granquist I don't know if it's wrong or not, but this is a pattern I've seen in many other cookbooks and it had been working well enough.
I don't think it's fair to simply close this issue saying the usage is wrong.   Why would package allow a provider argument if it's wrong?   where's the deprecation warning?   why does our documentation say this is an OK thing to do?

@lamont-granquist I owe you an apology, I shouldn't have gotten testy in my previous comments.   I filed a PR against chef-server-ingredient which I believe will get my customer unblocked.
What I should have said is:   provider is a documented feature of the package resource and it's widely used in the field by our customers.   We should continue to support it until it is deprecated (with generous warning to cookbook authors)

what I see now is that it really was using rpm_package all along - but I was thrown off by the yum_package in the messages.    We should fix that at, but definitely not a huge priority.

Using provider isn't totally deprecated, so I wouldn't want to add a deprecation warning, but it remains that this logic:
my_provider = if whatever?
  Chef::Provider::Package::Yum
else
  Chef::Provider::Package::Rpm
end

package "whatever" do
  provider my_provider
end

was ALWAYS inferior to this logic:
if whatever?
  yum_package "whatever"
else
  rpm_package "whatever"
end

In Chef 10+11 you got a Chef::Resource::Package wrapping a Chef::Provider::Package::Yum (or ::Rpm) which meant that any validation and additional properties in Chef::Resource::YumPackage could not be used as well.  This was also a problem on the command line where the typical use case of writing:
package "foo"
Always resulted in this case so that on a CentOS box doing yum-specific arguments in package would fail and if you went down the road of trying to pass a Chef::Resource::YumPackage argument then you would also need to know that you needed to change the resource you typed to yum_package to get it to work.
In Chef 12 this common case is fixed so that yum-specific properties just work because you really get a Chef::Resource::YumPackage when you type that on a CentOS box in the DSL.  That's better for the much more common case for more users.  And this is reflected in the output where you're getting yum_package[whatever] now instead of package[whatever] now.
In the process this made passing the provider argument worse and more confusing, but that was always bad, you were never really getting what you thought you were, and its a leaky abstraction and very tight coupling to the class tree internals of the chef-client (the fact that Chef::Provider::Package::Yum is in so much cookbook code means that class is now fixed in stone and we could never change it if we wanted to).
By going in through the DSL in the second case, you instead correctly specify the real RESOURCE that you want and not just the PROVIDER.  You also avoid the tight coupling and you're not embedding internal class names in your own code.  You are also going through all the resource resolver and provider resolver logic which converts the typed DSL code 'yum_package' into the correct resources and providers inside of the chef-client.
The use case of hacking up the provider like that is bad code practice.  Arguably we should at least put in a foodcritic rule here to start to stop this practice, but I just don't want to fight that battle yet.  But the fact that I don't have the energy to start the argument about deprecating this feature doesn't mean its a feature and doesn't mean that there's any bug to get fixed here.  It just means that lots of people are writing very bad code with unsupportable edge cases.
So that's the whole story, and the TL;DR is that this really is a WONTFIX.  There is no bug to fix here, its working as designed.  The use of the provider property is the issue and that really does need to get fixed, because it NEVER worked (and CANNOT work) the way people assumed it did.

Actually this is the better code in place of using the provider property:
my_resource = rhel? ? :yum_package : :apt_package
declare_resource my_resource, "lsof" do
  action :upgrade
end

That uses symbols instead of classes, and you can keep roughly the same kind of shape as the existing code, but it uses an argument to declare_resource rather than a method on an already built resource of the wrong type.
There should be a FC rule to replace the use of provider with that pattern instead.

Thanks @lamont-granquist - that explanation was super helpful!   I didn't know about using declare_resource, that is awesome and quite readable.  I think it might be worth a blog post to introduce it, I didn't find any documentation or articles mentioning it :wink:

Yeah, dan added that and build_resource back in 11.10.0 and it cleaned up the DSL generation code as well as gave a really useful method to do things like that, but nobody took it over the line in terms of getting the word out.


Changed colors to support Dark Mode

Fixes #23

The yellow with white text is not readable

Searching on the full detail page has all black text

Update from master to resolve the CI failing

Looks like this header is black when in light mode, should probably match other colors and be white


Add support for the 5.5m 768 LED variant

Hi. Thanks for the work. I was happy to find your custom component while I was standing in OBI, deciding wheter to buy the light strip.
It took me a minute (more like an hour) to find out, that it currently only supports exactly the onle light strip you bought, so I added a disclaimer in the readme. The good news is, after adding the name in the const.py file, I works just fine.
I will be working on moving brightness and effects into a single Light. So maybe I'll do another pull request in the new year.

Thank you!!


Add strategy.comparable()

Add and document a new fuzzing strategy:
def strategy.comparable(
    min_value: Optional[int] = None,
    max_value: Optional[int] = None,
): ...

That will behave exactly the same as the existing integers strategy, but will limit explored range (no matter if unbound or specified by min_value/max_value arguments), to range_check_builtin.bound values, as Cairo stdlib comparison functions expect.
The goal is to let users not have to worry about values exceeding the range check in this builtin functions.
Consider making this the default strategy for felt parameters.
Consider extending the fuzzing tutorial in docs to use this strategy as a new step to simplify the test from having to expect_revert range overflow. If that makes sense (it doesn't have to).

alternative API design is to extend the felts strategy:
def strategy.felts(comparable: bool = True): ...

partially blocked by #625  because there is a risk of conflicts


Expose raw buffer

Is this not fixed by to_buffer, or was this issue about the original non-RGB data? Needs context.

@campaul ^^

This is referring to the not dcraw processed data.

I'm not sure that we need this; I think we should be the higher level API, this strikes me as a lower level thing (which you can get through the LibRaw API if you want to go down to that level).

I just had another change of heart on this; maybe we do want to support this, because if you're a researcher using photos to analyse something you probably want a way to get the raw bayer moire data (and you shouldn't have to dig down into libraw land to do it). I'll probably change my mind again tomorrow though.

I pinged you about exactly that on FreeNode! I would actually need access to the non-debayered raw data (brut sensor data) that I would hook into Numpy arrays for further explorations.

Hi. This is very useful, but is there a way to expose the full Bayer matrix (RGGB)? This is the -D option in dcraw. Also with 16 bit enabled images each channel is split in two 8 bit images, is this intentional?

I still haven't gotten around to fixing this issue, sorry. I've messed with it a bit, but the LibRaw behavior is not well defined here and doesn't appear to match the docs. I'll ask around and see if I can't get it working this weekend.

No problem, I'll be glad to help if you want, as I was in the process of starting the implementation of a cpython interface with libraw when I found your module.

@paalge many thanks; pull requests are always welcome.

I've created a pull request #104
By the way I think the reason that the 16 bit image becomes two 8 bit images is that the returned type is ushort, while bytearray assumes only one byte.


Make KRR allocate @safe

My PR revives the original PR (https://github.com/dlang/phobos/actions/runs/12297111982/job/34317628480?pr=10585)

Reference: https://github.com/dlang/phobos/pull/6416


Link missing on README

mask_rcnn_damage_detection README has no link where it says:

Please see it at the link below:

https://www.analyticsvidhya.com/blog/2018/07/building-mask-r-cnn-model-detecting-damage-cars-python/


Changes by create-pull-request action

Add 3.12.4 to community operators

/pipeline restart operator-hosted-pipeline


Two instances of mobus Proxy

Hey,
is ist possible to install modbus proxy addon twice on Home assistant. I habe two inverter who must be added to two clients.
Thanks

Mhh, while home assistant cant run the addon twice we can run modbus twice inside the addon itself.
The configuration gets a bit confusing but ill have a look on how to improve on that

Would be handy indeed, let me know how to configure 2 instances / a connection to 2 servers. I have 2 solaredge inverters so would love to use the proxy for both.

Excuse me, what is the status of double integration?


ValueError while training on data1.2

I followed the instructions on the readme.md and the training part worked with no error with data.zip before.
However, when I clone the current version of the gqa branch and followed the instructions on the same md from the beginning(downloading everything again and merging), I am getting the following error in the training part just after the first epoch:
ValueError: Index (148690) out of range (0-108076)
Full stack trace after the first epoch is as follows:
eb  1, 78 (10000 / 10000), t = 0.32 (0.00+0.23), lr 0.0003, l = 1.9574, a = 0.5469, avL = 1.9961, avA = 0.5434, g = -1.0000, emL = 2.0224, emA = 0.5367; gqaExTraceback (most recent call last):
  File "main.py", line 848, in <module>
    main()
  File "main.py", line 710, in main
    evalRes = runEvaluation(sess, model, data["main"], dataOps, epoch, getPreds = getPreds, prevRes = evalRes)
  File "main.py", line 251, in runEvaluation
    minLoss = prevRes["val"]["minLoss"] if prevRes else float("inf"))
  File "main.py", line 571, in runEpoch
    imagesBatch = loadImageBatch(data["images"], batch)
  File "main.py", line 363, in loadImageBatch
    imageBatch[i, 0:numObjects] = toFile(imageId)["features"][imageId["idx"], 0:numObjects]
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "/home/ec2-user/conda/envs/tf_gpu/lib/python3.6/site-packages/h5py/_hl/dataset.py", line 553, in __getitem__
    selection = sel.select(self.shape, args, dsid=self.id)
  File "/home/ec2-user/conda/envs/tf_gpu/lib/python3.6/site-packages/h5py/_hl/selections.py", line 94, in select
    sel[args]
  File "/home/ec2-user/conda/envs/tf_gpu/lib/python3.6/site-packages/h5py/_hl/selections.py", line 261, in __getitem__
    start, count, step, scalar = _handle_simple(self.shape,args)
  File "/home/ec2-user/conda/envs/tf_gpu/lib/python3.6/site-packages/h5py/_hl/selections.py", line 457, in _handle_simple
    x,y,z = _translate_int(int(arg), length)
  File "/home/ec2-user/conda/envs/tf_gpu/lib/python3.6/site-packages/h5py/_hl/selections.py", line 477, in _translate_int
    raise ValueError("Index (%s) out of range (0-%s)" % (exp, length-1))
ValueError: Index (148690) out of range (0-108076)

oh sorry that's right the test-dev question rely on images in a different h5 file than train/val so have to change it accordingly. Alright for now will revert back to val to make it work in the meantime and then will make the needed change to make it work for test-dev.

Alright for now I updated the preprocess.py file to read back val instead of test-dev so this works without errors with val for now.
In addition I made an update to https://github.com/stanfordnlp/mac-network/blob/gqa/merge.py (should work but haven't verified yet). If you're interested in running on test-dev (as I recommend!) please try to run merge.py again following the instructions on the readme: python merge.py --name objects and python merge.py --name objects, and afterwards you can run on test-dev either by passing --test to the model or by changing the value here: https://github.com/stanfordnlp/mac-network/blob/gqa/preprocess.py#L829 from val to testdev.
After I verify that this works smoothly for people will make a new commit with the val -> testdev change.

I re-run the latest version of merge.py as you suggested, and changed the line 829 of preprocess.py as dataset["val"] = self.readTier("testdev" + suffix, train = trainOnVal), but again at the end of the first epoch, it failed.
Traceback (most recent call last):
  File "main.py", line 848, in <module>
    main()
  File "main.py", line 710, in main
    evalRes = runEvaluation(sess, model, data["main"], dataOps, epoch, getPreds = getPreds, prevRes = evalRes)
  File "main.py", line 251, in runEvaluation
    minLoss = prevRes["val"]["minLoss"] if prevRes else float("inf"))
  File "main.py", line 571, in runEpoch
    imagesBatch = loadImageBatch(data["images"], batch)
  File "main.py", line 363, in loadImageBatch
    imageBatch[i, 0:numObjects] = toFile(imageId)["features"][imageId["idx"], 0:numObjects]
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "/home/ec2-user/conda/envs/tf_gpu/lib/python3.6/site-packages/h5py/_hl/dataset.py", line 553, in __getitem__
    selection = sel.select(self.shape, args, dsid=self.id)
  File "/home/ec2-user/conda/envs/tf_gpu/lib/python3.6/site-packages/h5py/_hl/selections.py", line 94, in select
    sel[args]
  File "/home/ec2-user/conda/envs/tf_gpu/lib/python3.6/site-packages/h5py/_hl/selections.py", line 261, in __getitem__
    start, count, step, scalar = _handle_simple(self.shape,args)
  File "/home/ec2-user/conda/envs/tf_gpu/lib/python3.6/site-packages/h5py/_hl/selections.py", line 457, in _handle_simple
    x,y,z = _translate_int(int(arg), length)
  File "/home/ec2-user/conda/envs/tf_gpu/lib/python3.6/site-packages/h5py/_hl/selections.py", line 477, in _translate_int
    raise ValueError("Index (%s) out of range (0-%s)" % (exp, length-1))
ValueError: Index (148690) out of range (0-148689)

sorry about that will check and get back to you!

alright I made a mistake in the update for merge.py. Fixed it now. You can either wait for me to verify that or try the new version, hopefully it will work this time!

I tried it and got the following error after the first epoch.
ValueError: Index (148887) out of range (0-148854)

If it helps, here is what I did:

Re-run the merge.py with the updated version.
preprocess.py is the same with here, but the line 829 is changed to:
dataset["val"] = self.readTier("testdev" + suffix, train = trainOnVal)
Run python main.py --expName "gqaExperiment" --train --testedNum 10000 --epochs 25 --netLength 4 @configs/gqa/gqa.txt

sorry a lot for that and especially for keep having issues with that. I will test it tomorrow and get back to you.

oh ok I think I found the error sorry pushing now a new update to merge but I do want to validate it myself before asking you to rerun again. Will do so by tomorrow and update you if it worked / with the solution!

(sorry for the delay haven't got to test it yet will update as soon as I do)

alright tested not it works for me, please let me know if it works for you as well!

alright tested now it works for me, please let me know if it works for you as well!

Hey, please let me know if it worked for you or if there's anything else i can help with! :)

Thank you! I'm testing it and It's currently on epoch 17. It looks like it works well. :) Another question, is there any possibility that the challenge deadline may be postponed a little?

Awesome! :) Yea actually I do consider doing that we may postpone the deadline in a couple of weeks to mid may (but not guaranteed yet) - I'll hopefully update about that in a few days.

That would be great, waiting for the final decision.:)

Hi, alright good news we are going to extend the deadline to may 15. The evalAI server got updated and I will make a change in the formal website + notify by tomorrow. Best of luck! :)

Thanks a lot for the update ! :)


Travis build status badge in README [skip ci]

Adds build status badge to readme

Adding badges looks README colourful 😛
@developit what other badges would you like to add here?

@reznord About the npm downloads and version ?

Fixed !, didn't see that earlier 😅

Any more badges that we can add?

Waiting for input from @developit @rkostrzewski

Looks good! Just need to get those downloads up now haha

Hahaha, We sure will :)
Sent from my OnePlus ONEPLUS A3003 using FastHub


Feature/ga

This is based on r89 so that we can get 2.11 and a recent sbt (plus it'll make for an easier rebase :smile:).

[x] unstruct_event
[ ] context
[ ] events.x mapping
[ ] composite fields
[ ] let-through fields

closing for now


Making it smarter

Whereto from here? Are there any efforts to make it smarter and get more accurate? It's already pretty good so far for 80% of the cases, but I would like it to reach a higher level of accuracy.

Tweaking the coefficients based on machine learning and a big dataset (http://saliency.mit.edu/ for instance) would be one way ahead.
I also have plans to integrate it with face detection in the future (for usage on the server/with node).
Another thing worth trying is different windowing functions for scoring the image based on the salience/interestingness. I highly doubt the current rule of thirds functions is optimal. ;)

@jwagner To integrate face detection in smartcrop.js, you can refer to this js lib:https://trackingjs.com/ ,maybe it can help you

Hey @shinebay tracking.js looks pretty cool. My current plan is to make smartcrop.js expandable and then create a face detection plugin.

I'd also like to suggest intelligent zooming similar to the effects that Cloudinary offers.

@ajbogh it can already do that by setting minScale.

@jwagner thanks! I'll check it out.

I have integrated support for facedetection (via 'boosting areas in the image) into the 1.0 branch. The testbed currently includes trackingjs and jquery.facedetection for face detection. smartcrop-cli supports using opencv via node-opencv for facedetection. I plan to release soon all of these soon. :)

I merged 1.0 so I close this issue.

Is the demo up with this yet?

Yes the demo has been updated: https://29a.ch/sandbox/2014/smartcrop/examples/testbed.html

You might want to change the image to a person. I found jquery.facedetection was pretty bad with animal faces. The best type of picture for this would be one where the person's face is not normally the area of interest when selecting a certain image dimension. With the jquery.facedetection it should ignore that area and highlight the face instead. I just think it would be nice to see the difference in a more complex image.

@ajbogh I might change that image if I find something fitting with a permissive license. Most of my people photography is personal and constantly using pictures of myself gets old too. :)
In a way I even find it good to start with an example that displays the weakness of these face detection libraries. It seems that they have been trained on mugshots rather than actual photographs of people. :)


Contributions.md edited First PR

@Roshanjossey Had to say Tutorial is self explanatory . I am exuberant that it was merged without a conflict

@tannishk, I’d urge you to continue contributing to other open source projects.
We also have a slack team to help/mentor people trying to contribute to open source projects.
You can join the team by going to https://firstcontributions.herokuapp.com


bypass SSL in react-native-webview v12.4.0

Is there any way to bypass SSL in react-native-webview in version 12.4.0 (Android and IOS)?
"react-native": "0.71.11",
"react-native-webview": "12.4.0",

any solutions

any solutions?

+1
"react-native": "^0.71.6",
"react-native-webview": "^13.6.0",

So, there is a static setCustomCertificatesForHost in the native code for IOS.
But its not exposed through the .tsx files. Is this some WIP for assigning our own self-signed certificates?

Anyone find solution?


I need to use the same level in two or more hierarchies but I get a KeyError exception related to Multiple Levels.   I can do this in the Java Atoti+ API.   How do I achieve the same in atotiCE python?

Steps to reproduce

Actual Result

Expected Result
Environment

atoti:
Python:
Operating System:

Logs (if relevant)

Hello,
When you hae multiple levels with the same name in different hierarchies you need to provide a tuple (<HIERARCHY_NAME>, <LEVEL_NAME>) instead of just using the level name.
If I have two levels Country, one on hierachy Country the other one on hierarchy Geography I have to do:
l = cube.levels
- l["Country"] # Will throw since two levels have the same name
+ l["Geography", "Country"] # From Geography hierarchy
+ l["Country", "Country"] # From Country hierarchy

I'm converting this to discussion as it is not an issue


CFE_SB_CreatePipe: Improve message when OS_QueueCreate fails

Currently if OS_QueueCreate fails in CFE_SB_CreatePipe, the message is just "CreatePipeErr:OS_QueueCreate returned %d,app %s". It would be valuable to show the name of the error rather than (or in addition to) the numeric error code. The OS_GetErrorName function may help here if it's available in all of the OSAL implementations.
It may be valuable to provide other details depending on the error. For example, the message in the case of OS_ERR_NAME_TAKEN could indicate the name of the pipe that was requested (and is already in use).

Imported from trac issue 277.  Created by tflemin1 on 2019-04-09T14:33:04, last modified: 2019-05-23T16:43:54


Add a system tool to get/set hostname

Summary
Add a tool to get/set hostname
Impact
Userspace can now get and set the system hostname
Testing
Tested by setting hostname, and getting it back. Checked that the hostname was used in dhcp requests.

fwiw, uname -n can also be used to get the hostname, but it's not as intuitive, and doesn't support setting the hostname (which inspired adding the tool).

A related question: I want to automatically include a unique identifier from the board, eg network mac address or something, in the hostname. What do you think the best way to achieve that would be? Obviously writing a small userspace tool to generate the hostname which can be fed to the hostname tool via back quotes would work, but maybe an option to append BOARDCTL_UNIQUEID to LIBC_HOSTNAME would be viable? I'd prefer to avoid it in board_app_initialize. (Also I noticed NETUTILS_DHCPC_HOST_NAME, maybe it should just be replace with LIBC_HOSTNAME these days?)

fwiw, uname -n can also be used to get the hostname, but it's not as intuitive, and doesn't support setting the hostname (which inspired adding the tool).

It's fine to add hostname program since it exists on FreeBSD/Linux too.

A related question: I want to automatically include a unique identifier from the board, eg network mac address or something, in the hostname. What do you think the best way to achieve that would be? Obviously writing a small userspace tool to generate the hostname which can be fed to the hostname tool via back quotes would work, but maybe an option to append BOARDCTL_UNIQUEID to LIBC_HOSTNAME would be viable?

you can create a PR and see the feedback from other.

I'd prefer to avoid it in board_app_initialize. (Also I noticed NETUTILS_DHCPC_HOST_NAME, maybe it should just be replace with LIBC_HOSTNAME these days?)

or let NETUTILS_DHCPC_HOST_NAME default value to LIBC_HOSTNAME.


Inline edits

I believe inline edits from the table or preview is a must for a db client. Is this something that is on the roadmap?

The main idea for this project is to be a simple DB client. Although many new features I didn't initially think on adding to the project have being add gradually. I won't implement it by myself, because I don't really miss this kind of feature. But a PR is welcome 😄

Okido, thanks for clarifying :+1:

Yeah I'd call it a must as well :(  If I only had more time to dive into it myself, really love the overall design/philosophy of this project


[feature] Allow uploads to non-nodes  [OSF-8884]

Purpose
This serves as the second step in two upcoming changes: allowing preprints to have files directly attached to aid in the node-preprint divorce, and allowing files to be uploaded directly to users to avoid the special casing currently present for the QuickFilesNode when filtering for AbstractNode.
Changes

Migration to remove node as a ForeignKey and instead add target as a GenericForeignKey() that can point to a node, a user, or a preprint
Add a GenericRelation() to OsfStorageFile on AbstractNode to access the reverse relation
Change all references to a file's node to a file target

Side effects

Relies on 3 migrations. The second one is pretty large -- for my staging dump took about 2 minutes. Staging has around 450K BaseFileNodes, while as prod has over 3 million, so by that extension should take about 15 mins of downtime on prod.
This was tested with local waterbutler and worked just fine with no modifications, but I may have missed something!

Questions for CR:

On staging, there is one OsfStorageFile that has Null for the node relationship. The migration to update the target fields really should also be altering the target_object_id to be removing null=True and blank=True for both target_content_type and target_object_id, but it doesn't at the moment because of that one node. Are there any BaseFileNodes on prod that are lacking the node relationship?
update_file in elastic_search.py sends the node_title in file_doc, which will send the target's title if it has one, and set to None if not.  Is this desirable? Should node_title be generalized?
The Event class stores the node, which seems reasonable. By extension the FileEvent class also stores the node, which also seems reasonable except maybe in the url property which returns the URL of the node. I'm pretty sure a FileEvent will only happen when related to a NodeLog, so this should all be fine for now, but may get confusing in the future when a file isn't just on a node?

Notes for QA:
This should be another one of those "no visible frontend changes" things! This touches a whole lot of code, but should be only related to things having to do with files. Basically all file actions shouldn't change!
Ticket
https://openscience.atlassian.net/browse/OSF-8884

Are there any BaseFileNodes on prod that are lacking the node relationship?

In [1]: BaseFileNode.objects.filter(node__isnull=True).count()
Out[1]: 1

This appears to be trash, though. It has an id, _id, provider, and type, but is otherwise null.

elastic_search.py sends the node_title [...] Is this desirable?

It seemed fine to me, at least for the time being

Should node_title be generalized?

Probably eventually, but I think that will require more work finagling ES / everything that touches it than is merited at present.

the FileEvent class also stores the node, which [...] should all be fine for now, but may get confusing in the future when a file isn't just on a node?

Agreed. If it's only used for notification emails when file-related nodelogs are created, there's no urgent need to change it and every related email template.
Pass complete 👾

@sloria, migration now uses the batch approach! Locally, I have about 1,350,000 BaseFileNode objects, and the migration took about 37 minutes. Perhaps can be improved even more!

Migration took 49 min on a recent prod dump with ~4.9M BaseFileNodes. Much better than before! I'll experiment with the BATCHSIZE to see if I can make it faster.

Making the BATCHSIZE 10000 speeds it up a bit (~35 min). Let's get this merged into a new branch. I'll make my updates to the migration after that.


Adding useJUnitPlatform()

Adding useJUnitPlatform() to the test stanza. As it stands, the unit tests are never actually being executed, including in your GitHub Actions CI/CD process.

Because of this change and the fact that the tests are actually now executing, some of the tests fail and need to be fixed. I don't know how to fix them, but they were never actually being executed before.

@oleg-nenashev / @tomakehurst Please check this out - Because of this change and the fact that the tests are actually now executing, some of the tests fail and need to be fixed. I don't know how to fix them, but they were never actually being executed before.

This test is failing, but only on windows with Java 11:
GrpcAcceptanceTest > fixedDelay() FAILED
    java.lang.AssertionError:

17 tests completed, 1 failed
    Expected: a value equal to or greater than <1000L>
         but: <992L> was less than <1000L>
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
        at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
        at org.wiremock.grpc.GrpcAcceptanceTest.fixedDelay(GrpcAcceptanceTest.java:272)

It seems #35 will fix this

Thanks!


Add missing availability guards in tests

Motivation
Some of the test code was missing availability guards for Apple platforms, resulting in build failures for these platforms, e.g.
error: Concurrency is only available in iOS 13.0.0 or newer

Modifications
Add missing availability guard to async function.
Result
Tests can now build and run on iOS and other Apple platforms.

@swift-server-bot add to allowlist


Keyref on longdescref element inside image is not resolved to an href

Started from:
https://www.oxygenxml.com/forum/viewtopic.php?p=68639#p68639
Let's say I have an image element with a longdescref inside it having a keyref:
<image href="image.jpg">
  <longdescref keyref="targetKey"/>
</image>

I publish the DITA Map to HTML5, look in the temporary files folder at the temp DITA topic and it does not contain an @href on the <longdescref> element.
As a possible suggested fix in this field org.dita.dost.writer.KeyrefPaser.keyrefInfos probably an extra definition needs to be added:
ki.add(new KeyrefInfo(TOPIC_LONGDESCREF, ATTRIBUTE_NAME_HREF, false, false));

If possible can you also provide the same fix for this dita-ot-1.8.5 version also , as this fix is very crucial for our business needs. As we have a roadmap of using the latest version of dita-ot sometime later after this year.

I made a testcase to test all the standard DITA elements that support @keyref:
4071.zip
Using ditaot_save_preprocessing.pl, I confirmed that <longdescref> is the only element that is missing support.

Fixed by https://github.com/dita-ot/dita-ot/pull/4080.


ls: fix version cmp

merge after #5013

Thanks for picking this up too!

and could you please add a test on ls ? thanks


wiki: MinorReleases doesn't make it clear that last two releases are supported equally

The https://golang.org/wiki/MinorReleases page currently still says:

"Use a more recent stable version" is a valid workaround, so very few fixes will be backported to both previous issues.

That statement isn't true per discussion in #34536. We should either update it or remove it. If it's not already said elsewhere on the page, we should likely replace it with something similar to what's written in https://github.com/golang/go/issues/34536#issuecomment-572188389.
/cc @ianlancetaylor @cagedmantis @toothrot @andybons

Hmm, I think it'll be more clear to keep this issue about the clearly incorrect statement (which has been fixed, see comment above), and reopen #34536 to finish documenting the policy on the MinorReleases wiki page.


Docker run_command validation is incorrect, should be list of strings

https://github.com/mayn/packerlicious/blob/739a415c1fd74252e7d00e3574532c01322b8f95/src/packerlicious/builder.py#L770
Docker run_command should be a list of strings, not a string. See https://www.packer.io/docs/builders/docker.html#run_command
I'll throw a pull request together if I get the time, but wanted to at least document.

@gnewson first one to a pull request wins! (It wont be me, i have no free time anymore)

@PacketPerception v1.0.2 was released w/ this change. Thanks!


[lint] Add a lint rule to disallow Haste imports

Summary
This is an ESLint plugin that infers whether an import looks like a Haste module name. To keep the linter fast and simple, it does not look in the Haste map. Instead, it looks for uppercase characters in single-name import paths, since npm has disallowed uppercase letters in package names for a long time. There are some false negatives (e.g. "merge" is a Haste module and this linter rule would not pick it up) but those are about 1.1% of the module names in the RN repo, and unit tests and integration tests will fail anyway once Haste is turned off.
You can disable the lint rule on varying granular levels with ESLint's normal disabling/enabling mechanisms.
Also rewrote more Haste imports so that the linter passes (i.e. fixed lint errors as part of this PR).
Changelog
[General] [Changed] - Add a lint rule to disallow Haste imports
Test Plan
Run yarn lint, yarn flow, and yarn test as a sanity check. Modify an import statement to use a Haste module name and verify the linter reports an error. Do the same with a require call.

Doing some internal fiddling right now to make this land. It's gonna look a little bit different from the version of the PR here in terms of how it's integrated into the repo.

It probably makes sense to publish @react-native-community/eslint-plugin to npm as well. I wasn't able to do that because the permission system seems broken but you might have better luck.


Add ShellSort.py

What type of PR is this? (check all applicable)

[ ] 🚀 Added Name
[ ] ✨ Feature
[ ] 🌟 ed the repo
[ ] 🐛 Grammatical Error
[ ] 📝 Documentation Update
[x] 🚩 Other

Description
Add ShellSort.py to Python folder.
Add Link of GitHub Profile
https://github.com/ldh/hacktoberfest2020-5

Thank you for your help.

Thank you for your help.

thank you for this appreciatation.


refactor: integration of base signer/observer structure

Description
The PR integrated Signer and Observer structures into existing EVM/BTC Signer and Observer structures.
Closes: 2022
Closes: 2126
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.

[x] Tested CCTX in localnet
[ ] Tested in development environment
[x] Go unit tests
[ ] Go integration tests
[ ] Tested via GitHub Actions

Checklist:

[ ] I have added unit tests that prove my fix feature works

use separate PR to integrate base observer


Update libgit2 for libressl compatibility

This fixes #178

What do you mean? It's already separated commits, or maybe I misunderstood something?
Do you want me to get rid of the two last commits and keep only the first one?

Yeah let's just drop those commits from this PR

Done


Polling on an endpoint with code can create stale data requests

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Should be fixed in v0.2.x


docs: temporarily disable intersphinx integration with SciPy

Summary
See also scipy/scipy#17316
Details and comments

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 88.851%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3411

Relevant Lines:
3839

💛  - Coveralls


WYSIWYG Editor

Summary
This PR will add the WYSIWYG editor to the webapp.
Ticket Link

Related Pull Requests

Has server changes (please link here)
Has mobile changes (please link here)

Screenshots

Release Note

closing.  We will be using https://github.com/mattermost/mattermost-webapp/compare/contribute/wysiwyg


Issue in Vector3i: RotateCW and RotateCCW have errors.

Thanks for sharing your code.
As for the issues:
file:
Vector3i.cs
method:
RotateCW and RotateCCW
cause:
You try to swap values but you are actually assigning values in a wrong way. Use your temp value.

Thank you for filing an issue.
I will try to upload the fix sometime this week.

Pushed a fix to the repository.


Update Quarkus Patch to 3.1.2.Final

Set quarkus quarkus version on patch to 3.1.2.Final

please update also to 2.13.7.SP3-redhat-00003.

/approve
/lgtm


Do not search for static libs

Closes #8124

/test mini

/test jenkins

Thanks for review, looks all green!


Added bonded interface support to system stats plugin

During the stats check this will also check the current interface directory's entries for anything titled 'slave_'.  For each one of these that exists it's entry will be added to that interface as bondname.slave_inf.speed
This will allow users to determine the actual composition of their bonded interface by parsing any slave entries off of an interface name.  A quick check via the speed will let them know the makeup of the speed value for the bond.
Extra data could be added if wished, but it could also just be parsed from the rest of the stats since the interface stats for the slave will also be in the output

[approve ci autest]

[approve ci autest]

Remember to set Milestone and Projects etc.


Add additional code validation

Pull Request
Description
Adds an additional code validation based on https://github.com/bitmarck-service/base32check-java
Closes
#24

thanks @gtuk ! It looks good at first glance, but I will want to test run the code and since this is not a critical bugfix and I'm very busy right now it might take until next week for me to review this. Just so you know 😃

@fongie don't worry, as you said. It's nothing urgent to be merged

live in 1.2.0 @gtuk 😃


Add packages for Debian 12 Bookworm

Debian 12 Bookworm has been released since 2023-06-10
Could you please add Debian 12 Bookworm packages to Erlang / Elixir package repository?

Add explanation about the issue as below.
I cannot install erlang with .deb package download from official website. It depands on libssl1.1 but the defaut version is libssl3 with the distribution of debian bookwork (Debian 12). The same deb package can be installed on Debian 11. The download link of deb package is:
https://binaries2.erlang-solutions.com/debian/pool/contrib/e/esl-erlang/esl-erlang_26.0.2-1~debian~bullseye_amd64.deb
The installation prompt:
┌──(root💀debian)-[~]
└─# dpkg -i esl-erlang_26.0.2-1~debian~bullseye_amd64.deb
Selecting previously unselected package esl-erlang.
(Reading database ... 50659 files and directories currently installed.)
Preparing to unpack esl-erlang_26.0.2-1~debian~bullseye_amd64.deb ...
Unpacking esl-erlang (1:26.0.2-1) ...
dpkg: dependency problems prevent configuration of esl-erlang:
 esl-erlang depends on libssl1.1; however:
  Package libssl1.1 is not installed.

dpkg: error processing package esl-erlang (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 esl-erlang

Working on it, have to do some refactors to support debian 12

@dalbarado any news?

@dalbarado any news on bookworm packages?

Hi there, I'm busy with other projects right now, so it will be updated as
soon as possible. If you want to contribute or help please let me know it
would be great.
On Fri, 12 Jan 2024 at 13:16, Sebastien BLAISOT @.***>
wrote:

@dalbarado https://github.com/dalbarado any news on bookworm packages?
—
Reply to this email directly, view it on GitHub
https://github.com/esl/packages/issues/70#issuecomment-1889585963, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AGRO4LHRZTW3TV3WO6X4XDDYOFOWFAVCNFSM6AAAAAA4S3EHOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZGU4DKOJWGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
*
*
Join us in 2024 for:
Code BEAM America
https://codebeamamerica.com/?utm_source=email&utm_medium=mail_footer&utm_campaign=ESL_footer
7-8 March
ElixirConf EU
https://elixirconf.eu/?utm_source=email&utm_medium=mail_footer&utm_campaign=ESL_footer
18-19 April
Code BEAM Lite Stockholm
https://codebeamstockholm.com/?utm_source=email&utm_medium=mail_footer&utm_campaign=ESL_footer
13 May
Lambda Days
https://www.lambdadays.org/?utm_source=email&utm_medium=mail_footer&utm_campaign=ESL_footer
27-28 May
Code BEAM Europe
https://codebeameurope.com/?utm_source=email&utm_medium=mail_footer&utm_campaign=ESL_footer
14-15 October
Erlang Solutions cares about your data and privacy;
please
find all details about the basis for communicating with you and the way we
process your data in our Privacy Policy
https://www.erlang-solutions.com/privacy-policy.html. You can
update your
email preferences or opt-out from receiving Marketing emails here.
https://forms.erlangsolutions.com/email-preference?epc_hash=JtO6C7Q2rJwCdZxBx3Ad8jI2D4TJum7XcUWcgfjZ8YY

And predicted date to release a new version? I have been using debian 12 for months. It's appreciated if a new adapted version is released.

Will be done by 14th May

EDIT: Having some other tasks, doing best effort to have it done this week.

Is it ready? We have been using debian bookworm for nearly one year.


[MM-47950] Allow setting developer mode via /apps settings

Summary
By default, developer mode is enabled when Enable Developer Mode is enabled in the system console and HTTP apps are allowed when it's an on-prem server or developer mode is enabled.

Ticket Link
Fixes https://mattermost.atlassian.net/browse/MM-47950

/update-branch

Heads up that CI is still failing for unknown reasons. Need to look into it.

@asatkinson Good catch, I've fixed that with 638a791 (#372).

@DHaussermann The PR is ready for your review.

Codecov Report
Base: 21.12% // Head: 21.01% // Decreases project coverage by -0.11% :warning:

Coverage data is based on head (4bf24af) compared to base (eea5027).
Patch coverage: 4.44% of modified lines in pull request are covered.

:exclamation: Current head 4bf24af differs from pull request most recent head 21a7dd7. Consider uploading reports for the commit 21a7dd7 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #372      +/-   ##
==========================================
- Coverage   21.12%   21.01%   -0.12%
==========================================
  Files          81       81
  Lines        5216     5234      +18
==========================================
- Hits         1102     1100       -2
- Misses       4000     4020      +20
  Partials      114      114

Impacted Files
Coverage Δ

server/config/config.go
11.11% <0.00%> (-0.29%)
:arrow_down:

server/config/service.go
0.00% <0.00%> (ø)

server/config/test_service.go
0.00% <0.00%> (ø)

server/plugin.go
43.29% <50.00%> (-0.71%)
:arrow_down:

utils/logger.go
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

@javaguirre Thanks for the review. :+1: I've simplified the confirmation message. It does not output the values any longer.

Documentation PR: https://github.com/mattermost/mattermost-developer-documentation/pull/1211


[Event Request] codeunit 6620 "Copy Document Mgt." - modify publishers

Hello, would it be possible to add VAR ToSalesHeader parameters on  OnAfterCopySalesInvLinesToDoc and OnAfterCopySalesCrMemoLinesToDoc events to codeunit 6620 "Copy Document Mgt.", like this:
[Current]
    [[IntegrationEvent(false, false)]
    local procedure OnAfterCopySalesInvLinesToDoc(ToSalesHeader: Record "Sales Header"; var FromSalesInvoiceLine: Record "Sales Invoice Line"; var LinesNotCopied: Integer; var MissingExCostRevLink: Boolean)
    begin
    end;

[Requested]
     [IntegrationEvent(false, false)]
    local procedure OnAfterCopySalesInvLinesToDoc(VAR ToSalesHeader: Record "Sales Header"; var FromSalesInvoiceLine: Record "Sales Invoice Line"; var LinesNotCopied: Integer; var MissingExCostRevLink: Boolean)
    begin
    end;

[Current]
    [IntegrationEvent(false, false)]
    local procedure OnAfterCopySalesCrMemoLinesToDoc(ToSalesHeader: Record "Sales Header"; var FromSalesCrMemoLine: Record "Sales Cr.Memo Line"; var LinesNotCopied: Integer; var MissingExCostRevLink: Boolean)
    begin
    end;

[Requested]
     [IntegrationEvent(false, false)]
    local procedure OnAfterCopySalesCrMemoLinesToDoc(VAR ToSalesHeader: Record "Sales Header"; var FromSalesCrMemoLine: Record "Sales Cr.Memo Line"; var LinesNotCopied: Integer; var MissingExCostRevLink: Boolean)
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 11755.


uv pip install does not install any new dependencies

Let's say I have a project with the following dependencies, and installed the package using:
cat pyproject.toml
uv pip install -e "."

# pyproject.toml

[project]
name = "test-project"
version = "0.0.1"
dependencies = ["fsspec"]

And, later if I add any new dependencies, doing uv pip install -e "." does not pick new dependencies and/or install them, unless I pass --upgrade.
[project]
name = "test-project"
version = "0.0.1"
dependencies = ["fsspec", "s3fs"]

$ uv pip install -e "."
Audited 1 package in 3ms

$ uv pip install -e "." --upgrade
   Built file:///private/var/folders/xh/trg29z296h70n109kwfk6g800000gn/T/tmp.tP1hZ9RVUH                                                Built 1 editable in 1.00s
Resolved 18 packages in 685ms
Downloaded 5 packages in 142ms
Installed 17 packages in 79ms
 + aiobotocore==2.11.2
 + aiohttp==3.9.3
 + aioitertools==0.11.0
 + aiosignal==1.3.1
 + attrs==23.2.0
 + botocore==1.34.34
 + frozenlist==1.4.1
 + idna==3.6
 + jmespath==1.0.1
 + multidict==6.0.5
 + python-dateutil==2.8.2
 + s3fs==2024.2.0
 + six==1.16.0
 - test-project==0.0.1 (from file:///private/var/folders/xh/trg29z296h70n109kwfk6g800000gn/T/tmp.tP1hZ9RVUH)
 + test-project==0.0.1 (from file:///private/var/folders/xh/trg29z296h70n109kwfk6g800000gn/T/tmp.tP1hZ9RVUH)
 + urllib3==2.0.7
 + wrapt==1.16.0
 + yarl==1.9.4

This differs from pip install behaviour.
uv version
uv --version
uv 0.1.4

Agree that this should behave as you describe. I can't remember off-hand if this is due to a caching thing or something else.

I am currently facing the same issue, but in other ways. It seems as if uv is auditing the installation of a package based on the metadata stored in the <mypackage>.dist-info directory – which is why if I delete the <mypackage> directory from a virtual environment, it successfully audits  based on the metadata directory's contents. Of course, this isn't recommended behaviour (deleting a package's installation from the virtual environment, that is) and this problem is in-line with what pip itself does (I should probably open an issue there as well).
A potential solution to mitigate this problem could be to store the checksums of the pyproject.toml/setup.py/setup.cfg files in the uv cache and validate them at the time of the audit.

I think this is fixed in version 0.1.11

I'll check when it gets released. Thanks. 🙂

@skshetry - Can you provide the exact repro for non-editable installs, just so I can track what isn't working?

cat pyproject.toml
uv pip install "test-project @ ."

[project]
name = "test-project"
version = "0.0.1"
dependencies = ["fsspec"]

After I add a dependency, say, s3fs, and run the above script again, it does not install new dependencies unless I add --upgrade.
cat pyproject.toml
uv pip install "test-project @ ."

[project]
name = "test-project"
version = "0.0.1"
dependencies = ["fsspec", "s3fs"]

$ uv pip install "test-project @ ."
Audited 1 package in 3ms

$ uv pip install "test-project @ ." --upgrade
Resolved 18 packages in 1.80s
   Built test-project @ file:///private/var/folders/xh/trg29z296h70n109kwfk6g800000gn/T/tmp.MLCVX8rwMP                                 Downloaded 1 package in 1.15s
Installed 17 packages in 66ms
 + aiobotocore==2.11.2
 + aiohttp==3.9.3
 + aioitertools==0.11.0
 + aiosignal==1.3.1
 + attrs==23.2.0
 + botocore==1.34.34
 + frozenlist==1.4.1
 + idna==3.6
 + jmespath==1.0.1
 + multidict==6.0.5
 + python-dateutil==2.8.2
 + s3fs==2024.2.0
 + six==1.16.0
 - test-project==0.0.1 (from file:///private/var/folders/xh/trg29z296h70n109kwfk6g800000gn/T/tmp.MLCVX8rwMP)
 + test-project==0.0.1 (from file:///private/var/folders/xh/trg29z296h70n109kwfk6g800000gn/T/tmp.MLCVX8rwMP)
 + urllib3==2.0.7
 + wrapt==1.16.0
 + yarl==1.9.4


Chinese Version

We have made a Chinese version for this warehouse and hope to work together

https://github.com/Web3-Club/vyper-by-example_Chinese

I've added a link to the translations
https://vyper-by-example.org/

Thank you.


Remove QueryParIter::for_each_unchecked

Objective

The function QueryParIter::for_each_unchecked is a footgun: the only ways to use it soundly can be done in safe code using for_each or for_each_mut. See this discussion on discord.

Solution

Make for_each_unchecked private.

Changelog

Removed QueryParIter::for_each_unchecked. All use-cases of this method were either unsound or doable in safe code using for_each or for_each_mut.

Migration Guide
The method QueryParIter::for_each_unchecked has been removed -- use for_each or for_each_mut instead. If your use case can not be achieved using either of these, then your code was likely unsound.
If you have a use-case for for_each_unchecked that you believe is sound, please open an issue.

My reasoning is that from the perspective of someone using bevy_ecs, this method has effectively been removed. It's probably good to change the title though.


Fade-in/Fade-out

Temporary solution and no more than that. Not sure if behavior is acceptable

Closing for time being as invalid 👾


fix: history chat

Follow up of https://github.com/rungalileo/dataquality/pull/779 to support having history in the chat of previous turns
Builds off of Jon's work here: https://colab.research.google.com/drive/1O5v41k-sMTBxTVqQCAkDuA8q5RX3qLZL?authuser=2#scrollTo=RhqLFpEPq2sI
Demo run: https://console.dev.rungalileo.io/insights/a29cfac8-773d-45f2-aaac-adfd61fe6ef5/201fc929-63be-4341-82e6-a694900719dc?dataframeColumns=chat_id%3B%26data_error_potential%3B%26input%3B%26perplexity%3B%26project_name%3B%26target%3B%26turn_id&metaFilter=chat_id%3A5&sortBy=turn_id&sortDirection=asc&taskType=8

Codecov Report

Merging #780 (e0c0848) into main (e40e48f) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #780      +/-   ##
==========================================
- Coverage   87.36%   87.27%   -0.10%
==========================================
  Files         186      186
  Lines       15201    15203       +2
==========================================
- Hits        13281    13268      -13
- Misses       1920     1935      +15

Files
Coverage Δ

...ataquality/integrations/seq2seq/formatters/chat.py
0.00% <0.00%> (ø)

... and 8 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jonathangomesselman  totally agree, we should not have to tokenize, decode, and then tokenize again later. i'll start working on that today

There's a few different ways this could be done:

Take the last 512, irrespective of turns.
Greedily consume the most recent turns until we get as close to 512.
I think for v1 maybe we should just do 2 and then take it to customers so that maybe they can customize it.

There's a few different ways this could be done:
Take the last 512, irrespective of turns.
Greedily consume the most recent turns until we get as close to 512.
I think for v1 maybe we should just do 2 and then take it to customers so that maybe they can customize it.

There's a few different ways this could be done:

Take the last 512, irrespective of turns.
Greedily consume the most recent turns until we get as close to 512.
I think for v1 maybe we should just do 2 and then take it to customers so that maybe they can customize it.

@setu4993 So (2) is how I did it in the first mock run we presented. To me this feels a bit more natural than taking the last 512 irrespective of turns. I think for now we are going to push something and then get feedback. But overall I more naturally align with (2).

Hey @setu4993 @jonathangomesselman I actually just made a last little update to support Setu's flow #1 .. let me know what you think