README.md: Fixing various typos

Most notable, the cli command: wpsites conifg which is incorrect and should be wpsites config.

Thanks, @slaFFik!


cannot pass QuickMenuToggle props in constructor/_init

Let's take a look at this sample code:
class MyToggle extends QuickMenuToggle {
    constructor() {
        super({
            title: 'Sample title', // 'title' does not exist in type 'Partial<ConstructorProps>'
            subtitle: 'Blah blah', // 'subtitle' does not exist in type 'Partial<ConstructorProps>'
            iconName: 'selection-mode-symbolic',
        });

        this.title = 'Sample title'; // no error
        this.subtitle = 'Blah blah'; // no error
    }
}

Obviously, this happens because those properties are not defined as arguments for constructor/_init. So here is what we can do about it in ui/quickSettings.d.ts:
/**
* Initialization properties of `QuickMenuToggle` class
* -> needs url + version annotation? <-
*/
interface QuickMenuToggleProps { // -> should be exported? <-
    title: string | null;
    subtitle: string | null;
    gicon: Gio.Icon;
    menuEnabled: boolean;
}

/**
 * Class representing a quick menu toggle.
 *
 * @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/quickSettings.js#L144
 * @version 46
 */
interface QuickMenuToggle extends QuickMenuToggleProps {} // to make props accessible in class
export declare class QuickMenuToggle extends QuickSettingsItem {
    private _box: St.BoxLayout;
    private _menuButton: St.Button;

    /**
     * Initializes a new instance of `QuickMenuToggle`.
     */
    constructor(params: Partial<QuickMenuToggleProps> & Partial<St.Button.ConstructorProps>);

    /**
     * Initializes a new instance of `QuickMenuToggle`.
     */
    _init(params: Partial<QuickMenuToggleProps> & Partial<St.Button.ConstructorProps>): void;
}

With these changes the sample code works just fine:
class MyToggle extends QuickMenuToggle {
    constructor() {
        super({
            title: 'Sample title', // no error
            subtitle: 'Blah blah', // no error
            iconName: 'selection-mode-symbolic',
        });

        this.title = 'Other title'; // no error
        this.subtitle = 'beep boop'; // no error
    }
}

So is this:
class MyToggle extends QuickMenuToggle {
    override _init() {
        super._init({
            title: 'Sample title', // no error
            subtitle: 'Blah blah', // no error
            iconName: 'selection-mode-symbolic',
        });

        this.title = 'Other title'; // no error
        this.subtitle = 'beep boop'; // no error
    }
}

The same should be done with some other classes. I could make a MR with these changes if you don't mind. Just answer my questions I wrote in the code snippet above

I'm not sure I understand the problem.  Can you post a minimal compilable example, including a tsconfig?

Looking at the code of quick settings I presume the issue is that the types are incomplete, ie, the constructor does not declare the class properties, but only those of the base class?
If so feel free to make a merge request.  We do use a different way to declare properties tho, see eg Notification in message tray.  In particular we haven't used declaration merging the way you did to avoid duplicate declaratios. Personally, I'm not a fan of this, I find it's a tad too magic, but I'm happy to be overruled 🙂

I'm not sure I understand the problem. Can you post a minimal compilable example, including a tsconfig?

https://github.com/zeroxdead/example-40
Uncomment these lines to see the error https://github.com/zeroxdead/example-40/blob/master/src/myToggle.ts#L9-L10

Looking at the code of quick settings I presume the issue is that the types are incomplete, ie, the constructor does not declare the class properties, but only those of the base class?

Those properties are defined (https://github.com/gjsify/gnome-shell/blob/main/packages/gnome-shell/src/ui/quickSettings.d.ts#L55-L58) and they are accessible from class instance, we just can't pass them as contstructor/_init arguments, though it's totally acceptable (https://gjs.guide/extensions/topics/quick-settings.html#toggle-menu)

I'm not a fan of this, I find it's a tad too magic,

I understand, I can change that to something similar to MessageDialogContent:
/**
 * @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/quickSettings.js#L144
 * @version 46
 */
export declare namespace QuickMenuToggle {
    export interface ConstructorProps extends St.Button.ConstructorProps {
        title: string | null;
        subtitle: string | null;
        gicon: Gio.Icon;
        menuEnabled: boolean;
    }
}

/**
 * Class representing a quick menu toggle.
 *
 * @see https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/quickSettings.js#L161
 * @version 46
 */
export declare class QuickMenuToggle extends QuickSettingsItem {
    title: string | null;
    subtitle: string | null;
    gicon: Gio.Icon;
    menuEnabled: boolean;

    private _box: St.BoxLayout;
    private _menuButton: St.Button;

    /**
     * Initializes a new instance of `QuickMenuToggle`.
     */
    constructor(params?: Partial<QuickMenuToggle.ConstructorProps>);

    /**
     * Initializes a new instance of `QuickMenuToggle`.
     */
    _init(params?: Partial<QuickMenuToggle.ConstructorProps>): void;
}

Just let me know if that's acceptable to you

Yeah sure, please do make a pull request.  Any improvement to these type declarations is welcome 💃


Move to undetected-chromedriver library

This is to swap the dependencies on selenium-wire to undetected-chromedriver, making it easier to spin up this project without having to manually edit the chromedriver binary.

sweet, thanks for doing this! i'm going to do some testing on it as well (probably early january). once i feel good about things i'll merge it into the master branch. this update also makes it conducive to turning this into a package pip can install. so that's also on the to-do.


Production build errors with type-only imports inside curlys and emitDecoratorMetadata on

🐞 Bug report
Command (mark with an x)

[ ] new
[x] build
[ ] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[ ] extract-i18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?

 Yes, the previous version in which this bug was not present was: ~~12.x.x~~ (we were using tslint before, so I'm not really sure)
Description
 A clear and concise description of the problem...
🔬 Minimal Reproduction

Run ng new test-app
Apply the below patch, which just imports OnChanges and SimpleChanges as type-only imports and adds emitDecoratorMetadata: true to tsconfig.json
Run npx ng build (succeeds on development build)
Run npx ng build --configuration production:

./src/app/app.component.ts - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
SyntaxError: /Users/********/dev/temp/test-type-modifier/src/app/app.component.ts: Unexpected token, expected "," (1:14)

> 1 | import { type SimpleChanges, } from '@angular/core';
    |               ^
  2 | import * as i0 from "@angular/core";
  3 | import * as i1 from "@angular/common";
  4 | import * as i2 from "@angular/router";

Patch for minimum reproduction:
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 0e696fa..36f0caf 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -1,10 +1,18 @@
-import { Component } from '@angular/core';
+import {
+  Component,
+  type OnChanges,
+  type SimpleChanges,
+} from '@angular/core';

 @Component({
   selector: 'app-root',
   templateUrl: './app.component.html',
   styleUrls: ['./app.component.scss']
 })
-export class AppComponent {
+export class AppComponent implements OnChanges {
   title = 'test-type-modifier';
+
+  ngOnChanges(changes: SimpleChanges): void {
+    console.log(changes);
+  }
 }
diff --git a/tsconfig.json b/tsconfig.json
index ff06eae..b5be6c7 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -14,6 +14,7 @@
     "declaration": false,
     "downlevelIteration": true,
     "experimentalDecorators": true,
+    "emitDecoratorMetadata": true,
     "moduleResolution": "node",
     "importHelpers": true,
     "target": "es2020",

🔥 Exception or Error

./src/app/app.component.ts - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
SyntaxError: /Users/******/dev/temp/test-type-modifier/src/app/app.component.ts: Unexpected token, expected "," (1:14)

> 1 | import { type SimpleChanges, } from '@angular/core';
    |               ^
  2 | import * as i0 from "@angular/core";
  3 | import * as i1 from "@angular/common";
  4 | import * as i2 from "@angular/router";

🌍 Your Environment

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 14.1.0
Node: 16.15.0
Package Manager: npm 8.5.5
OS: darwin arm64

Angular: 14.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1401.0
@angular-devkit/build-angular   14.1.0
@angular-devkit/core            14.1.0
@angular-devkit/schematics      14.1.0
@schematics/angular             14.1.0
rxjs                            7.5.6
typescript                      4.7.4

Anything else relevant?

The problem only exists with:

A type-only import which uses the type keyword inside the curly braces
emitDecoratorMetadata is true in tsconfig.json
Certain type imports
Production build

Details:

This problem happens when you use type-only imports (using the type keyword) using the syntax introduced in TypeScript 4.5 where you use the type keyword inside the curly braces:
import { type SimpleChanges } from '@angular/core';

and does not happen when you use the type keyword outside the curly braces:
import type { SimpleChanges } from '@angular/core';

We enable emitDecoratorMetadata in tsconfig.json due to eslint rules which require type information (otherwise it thinks DI classes in the constructor should be type-only imports, for example, but they can't be)

This problem only happens with certain imports, and only with @angular imports. Known failing types:

import { type SimpleChanges } from '@angular/core'
import { type Route } from '@angular/router'

Known types that don't cause the error:

import { type Routes, type CanLoad } from '@angular/router'
import { type OnInit, type OnChanges } from '@angular/core';
import { type HttpHeaders, type HttpParams } from '@angular/common/http'
any other npm module, e.g. import { type Observable } from 'rxjs' - this works fine
any local module, e.g. import { type MyInterface } from './interface' - this works fine

This problem only happens on production builds. Regular development builds and ng serve work without issue.

For anyone else who experiences this, there is a workaround.
Leave emitDecoratorMetadata set to true in tsconfig.json.
The CLI will use the regular tsconfig.app.json (with this setting set to true) for development and linting.
Create a new tsconfig.app.prod.json file:
{
  "extends": "./tsconfig.app.json",
  "compilerOptions": {
    "emitDecoratorMetadata": false
  }
}

And in angular.json under the build configuration for production, tell it to use this new tsconfig file:
{
  "projects": {
    "app": {
      "architect": {
        "build": {
          "configurations": {
            "production": {
              "tsConfig": "tsconfig.app.prod.json"
            }
          }
        }
      }
    }
  }
}

We are investigating a fix for the issue.  However, emitDecoratorMetadata should generally be avoided when possible due to it having known design limitations that can lead to temporal dead zone errors during application runtime. These limitations are not Angular specific.
The last workaround mentioned above of adding the option into the eslint configuration is most likely the ideal option as it avoids the use of the option for built code.


Integration on android with firebase

Is it possible, and is there any documentation to use this library with android and firebase?
Please give a example project.

Yep, does this work on Firebase? I've been trying it out and it doesn't get any notifications, at least on Android, seems like there is a lot missing from the guide at https://firebase.google.com/docs/cloud-messaging/android/client

I was able to receive push notifications using both the FCM web interface and the https://fcm.googleapis.com/fcm/send endpoint.   You need to get the token from the device and use that to send a message.

I tried exactly that and got nothing on the device, did you add anything that is not included in the README.md to the AndroidManifest.xml etc?

Finally made it work with the REST endpoint, not from the web interface, can you show us what you put in the fields for the message? @nolan-m

POST https://fcm.googleapis.com/fcm/send
{
 "notification": {
    "title": "This is the title",
    "body": "This is the body"
  },
  "to" : __DEVICE_TOKEN__
}

Yes, that is for the REST endpoint, but it doesn't work from the Firebase web console.

@octohedron, @nolan-m,
When you set up this plugin what you write in manifest.xml to works with firebase ?

@kholiavko-roman
All you need to add is the gcmSenderID
<meta-data android:name="com.wix.reactnativenotifications.gcmSenderId" android:value="1234567890\0"/>

@nolan-m
Thank you! I already added it, but I cant receive device token on setRegistrationTokenUpdateListener, maybe you have an example project and can share it ?
I tried to do next:
NotificationsAndroid.refreshToken();

NotificationsAndroid.setRegistrationTokenUpdateListener(onPushRegistered);

function onPushRegistered(token) {
  console.log('token is');
  console.log(token);
}

But, I didnt see the token in console, onPUshRegiseted dont work.

@kholiavko-roman any progress? I have the same issue.

@ronilitman I doesn't found a solution for this navigation. I use instead react-router-flux.

@kholiavko-roman That is about notifications, not navigation, did you mean something else?

@ronilitman sorry, I has early problem with wix react-navigation too, and now I thought about that.
instead of this library i use react-native-fcm.


docs(generate): add appShell and universal to generate docs (wiki)

The ng generate command is documented on the wiki here: https://github.com/angular/angular-cli/wiki/generate
This list is missing universal and appShell. It would be helpful to have these schematics and their options documented there.
Thank you.

yeah we need it

https://angular.io/cli/generate


CastelProtocolDecoder

Hi,
I noticed in the latest version of Traccar that my Castel device no longer communicates with the server. After inspecting the log file i found that the GPS tracker sends the initial login message and the server then sends a response but after the server sends the response the communication stops.
Looking through the code I found that it is likely caused by the server sending a inccorect login response message. When you streamlined the CastelProtocolDecoder.java with a generic response method call, you forgot to write the "content" to the response channel buffer object. This should occur after line 101 but it's missing.
As a result the GPS tracking receives an incorrect response and stops communicating with the server until the unit is externally reset. The tracker wont establish permanent communication until the server side is fixed.
I will try and update the code and rebuild. Will let you know what the result is. I have attached the log file for your reference.
tracker-server.txt

Fixed the problem. It was a silly mistake when I changed the decoder.


WIP add Doxygen to protocol

Just started to add doxygen comments to the protocol. I'm probably not the right person to comment the code (because I didn't wrote it ;) but this could be a good starting point for the team.
I also added a github action which builds and publish the API documentation as github page. You can see a demo here
There are quite a few "TODO" in the comments. One of the team should document them
Fixes  #11

I will close this here. Everything is now integrated in the OO version. See #37


Controller Pattern in remote environments?

Tests with a Modal and the OverlayController show, that this pattern does not work. Because an OverlayController can not be "transferred" to the host environment.


Untested ports

These ports currently have TEST() added, but hasn't been run.
TEST() Status:

[x] app-crypt/qca
[ ] app-editors/retext
[ ] app-i18n/mozc
[ ] dev-lang/tcc

Track status in #1832


SITE-23: Fixing form error not showing and making Shopping Cart Widget more customizable

SITE-23

@DAud-IcI Could you review and merge this?

Ok, I will review it soon.


Default password ?

I just try to deploy convos with docker, when i go on local:8082 it ask to login or register, but nothing to do and i could not find any default user/admin.

No. Convos does not have any default admin. Did you see the You can't register without an invitation. message @skopal3 ? If so, you need to go to http://localhost:8082/register/your-code, where "your-code" is a setting in your [docker config|https://github.com/Nordaaker/convos/blob/master/Dockerfile#L30].

Closing this because of inactivity.


🐛 fix: Fixing python version (Dockerfile/README.md), Making K8s usage easier

🐛 fix: install python3.12 since code formating is only working on version 3.12
📝 docs: Add required python version to README
✏  typo: pre-commit changes
🐛 fix: ln commands in Dockerfile
🐛 fix: allow multi doc syntax in pre-commit
📝 docs: add docker tags badge
📝 docs: more badges on readme

Hi
I have discovered that the code is only working With python 3.12 because of string formats (I think because they are multi line)

It makes docker build longer but it's OK since it will make to be sure that python version is correct

That's good, thanks


Migrate mnemonic logic from fuel-rs to fuel-crypto

mnemonics aren't exclusive to SDK/Wallet use-cases, so to avoid requiring the whole SDK we should move core logic related to mnemonic->SecretKey utilities to fuel-crypto.
cc @digorithm

I have some bandwidth for that this week, I can take this one 😄


MM-25025: onboarding survey screen

Summary
This PR introduces an optional survey screen after creating the first (system admin) user and creating or joining a team through the pre-product onboarding flow. It fits seamlessly and does not negatively disturb any flows

[x] New Survey Screen
[x] Conditional Routing

Extra step appended to create_team with responsive "Next"/"Finish" button
Extra step appended to select_team (in the event the CLI is used to pre-create screens before the initial admin user is created)
Multiple validations/safety checks (failure: will skip survey to next or redirect back to /)

only the initial onboarding-flow-created sytem_admin user sees this screen
survey will only be shown if diagnostics are enabled

[x] Unit Tests for:

new signup_survey component
routing functionality added to existing components

[ ] E2E tests for:

new screen &/
changes to existing flows

NOTES:

Wording/copy subject to change.
Not testable on cloud servers (I believe, as teams/users are set up for you)

Ticket Link
https://mattermost.atlassian.net/browse/MM-25025
Related Pull Requests

Has redux changes
https://github.com/mattermost/mattermost-redux/pull/1154

Screenshots

Sorry for all the notifications, pulled last-minute.


I need to

You can specify {tenant __ =} in the route mapping for a spa on a route determined by
app.Map ("/{ tenant __ =}/my-spa/", x => ...
Thus?
expected result : https://localhost:5001/tenant-1/my-spa/#

@jean-jagnow  sorry for the late reply.
I'm not sure I understand what you are asking. What is the observed result when you try to do this? I honestly don't have a lot of personal experience using with SPAs, but I'd like to make sure I can help you.
Generally I use the tag helper and I just set the tag attribute asp-route-__tenant__=my_tenant and the link generation works ok.


Compile for Linux

Considering that RobTop said GD would be available fully for Linux at 2.2, I think it would be a good idea to get an early idea on what it would be like. I would help, but my laptop is fired and has gone for repairs, and I have school.

where robtop said that

where robtop said that

He said that he would look into it on Discord a few months back.

where robtop said that

He said that he would look into it on Discord a few months back.

didn't found yet

where robtop said that

He said that he would look into it on Discord a few months back.

didn't found yet

It's also been said on a recent AMA by RobTop.

oh ok. lets believe that robtop will eventually port GD on linux

Sorry, no plans to make it compile

All good, proton works fine

Yea.


salary - socio4 - translate to german?

asks for pounds. No one will answer this by their head.

In 2017 we already addressed it: https://github.com/softwaresaved/international-survey/blob/master/survey_creation/2017/de/listAnswers/salary.csv ... also mentioned as task in #215

dammit...overlooked it there.


Upgrade to Phantom2

Are you considering an upgrade?
How important is it for you?

:+1:

+1

given the regressions (http://phantomjs.org/release-2.0.html), it would make sense to wait for a 2.1 (or 2.0.1) release with those issues fixed...

Two months later, has anything changed in the topic?

:+1: A huge issue was fixed in Phantom 2.0. Would be nice to see it upgraded here.

Also interested in upgrading to Phantom 2.0 :+1:

package.json still depends on Phantom older than 2, seems that this bug shouldn't be closed yet?

There's a summary of reasons to hold off on 2.0 for now: travis-ci/travis-ci/issues/3225
At some point, 2.0.1 will be released (ariya/phantomjs/issues/12902) which should fix a number of regressions. Regardless, CoffeeScript is no longer supported, so switching to PhantomJS 2.0.x should be a major version increment.
Any thoughts on supporting both versions?

If you want to use 2.0 you can try using the unofficial fork from 0.7.1 https://www.npmjs.com/package/grunt-lib-phantomjs2-unofficial, it works OK with grunt-contrib-jasmine

@nathancahill
phantomjs v2.1.1 was released and is available for download, see:

https://twitter.com/AriyaHidayat/status/691492028383830017


No examples of IF statements or Ternary statements in the documentation

_ Is refactor
_ Is new feature
x Concerns documentation

Description of suggestion or shortcoming:
It would probably be good to have a "Syntax Guide" or something. There's no amazing place for it, but more work here seems pretty good.

Fixed by #1573.


Build problems win CLI Swift app [SOLVED]

macOS 10.13.6
Swift 4.1.2
VSCode Version 1.25.0-insider (1.25.0-insider)
MSDE 2.4.3

Hello, I have setup my system following this guide https://forums.swift.org/t/vscode-settings-for-swift/12216 and as you can see it include MSDE.
I'm trying to debug a simple CLI Swift app which has the usual Swift folder structure. When I hit the green run button, the first thing I see is this message...

If I select the "Show Errors" option, I see this message...

If I select "Debug Anyway", I see these messages...

and

Either way, I don't seem to be able to debug my program.
This is my launch.json...
{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "lldb",
            "request": "launch",
            "preLaunchTask": "swiftc with debug",
            "name": "Debug",
            "program": "${fileDirname}/${fileBasenameNoExtension}",
            "args": [],
            "sourceLanguages": [
                "swift"
            ]
        }
    ]
}

This is my tasks.json...
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "swiftc with debug",
            "type": "shell",
            "command": "swiftc -g ${file}",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "presentation": {
                "panel": "dedicated"
            }
        }
    ]
}

Both config files were as suggested by the https://forums.swift.org/t/vscode-settings-for-swift/12216 page.
Thanks in advance for any help you can give me.
Cheers,
Carl

On the MSDE plugin repo at Github, there appear to be two alternative macOS installation options for installing sourcekite. One is described as when using swiftenv or multiple Toolchains while the other is described as using Xcode's Toolchain.
Which one should I use? I suspect it's the latter option but I would like to be sure!

If you do not regular switch between different swift versions, picking the latter option was correct!

Thanks, Valentin! With your help, I've now got syntax-highlighting, program execution and debugging all working in VSCode. Yay! Congratulations on your victory against Sweden, by the way, but you left it a bit late, didn't you 😉

Happy to help 👍

Congratulations on your victory against Sweden, by the way, but you left it a bit late, didn't you.

Thanks.


Fetch the query quota capacity utilization rate  broker metric in a callback function

This PR fetches the query quota capacity utilization rate broker metric in a callback function.
Related issue: https://github.com/apache/pinot/issues/12768
The reason is that this broker metric is a gauge metric. If there is no incoming query, the gauge value would remain the same without any updates. In addition, if the total query quota is less than the number of brokers, meaning if the per-broker rate is less than 1, the metric value would always be > 100. So even there is only 1 incoming query for a while, the metric value would still be > 100.

@zhtaoxiang Can you help take a look?


Renamed admin roles for environment creation

The names of many admin roles were recently changed. This commit reflects the actual names and makes it more concrete.

@sebastianzolg
I've taken these and other terminology changes to live via my branch.


Update to 0.9.29

As above.

Also we need to regenerate the aleph_zero.rs in aleph-client (subxt codegen --derive Clone Debug Eq PartialEq | rustfmt --edition=2018 > src/aleph_zero_shorter_session.rs

IMO we should consider writing a build.rs for aleph-node and regenerating the aleph_zero.rs on every build. If the content changes, then fail the build process and inform the user that he needs to commit the changes.

Also we need to regenerate the aleph_zero.rs in aleph-client (subxt codegen --derive Clone Debug Eq PartialEq | rustfmt --edition=2018 > src/aleph_zero_shorter_session.rs

IMO we should consider writing a build.rs for aleph-node and regenerating the aleph_zero.rs on every build. If the content changes (simply run git status and check if the output contains any lines), then fail the build process and inform the user that he needs to commit the changes.

it is not so easy as you need running chain for subxt :( anyway added a task here


🐛 [firebase_analytics] About the error of upgrading flutter-plugin-loader with 3.19.0

After upgrading according to the latest version of flutter 3.19.0
settings.gradle:
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}
settings.ext.flutterSdkPath = flutterSdkPath()
 includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")

 repositories {
     google()
     mavenCentral()
     gradlePluginPortal()
 }

}
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
id "com.google.gms.google-services" version "4.4.0" apply false
id "com.google.firebase.crashlytics" version "2.9.9" apply false
}
include ":app"
app.gradle:
plugins {
id "com.android.application"
id "com.google.gms.google-services"
id "com.google.firebase.crashlytics"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
Using firebase_analytics will prompt an error message
E/FA (22376): Missing google_app_id. Firebase Analytics disabled. See https://goo.gl/NAOOOI
Of course, when I roll back the code, such an error does not exist.

Duplicated: https://github.com/firebase/flutterfire/issues/12388


std.algorithm.iteration.each on opApply doesn't support ref

schveiguy (@schveiguy) reported this on 2016-07-09T01:04:49Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=16255
CC List

acehreli
greeenify
jrdemail2000-dlang

Description
Look at this code:

struct S
{
   int x;
   int opApply(int delegate(ref int _x) dg) { return dg(x); }
}

void main()
{
   S s;
   foreach(ref a; s) ++a;
   assert(s.x == 1);
}

If we replace the foreach loop with an each call, we would do:

s.each!"++a";

Except it doesn't work. When each accepts the iterable, it accepts it by value. It should accept it by reference (if it's a class, it could take the class reference by value). Otherwise, the point of using ref throughout each is kind of useless.

github-bugzilla commented on 2017-01-16T23:26:09Z
Commits pushed to newCTFE at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/f903de7bc6a507e787323d633679872c5c8e618c
Fix issue 16255 - std.algorithm.iteration.each on opApply doesn't support ref

https://github.com/dlang/phobos/commit/515b6a4ea2d9485a01efbf212357b623980bfa82
Merge pull request #4991 from wilzbach/fix-issue-16255-each-opApply

jrdemail2000-dlang commented on 2016-10-09T21:25:24Z
An example that appears related:

void main()
{
    import std.algorithm : each;

    int[] dynamicArray = [1, 2, 3, 4, 5];
    int[5] staticArray = [1, 2, 3, 4, 5];

    dynamicArray.each!((ref x) => x++);
    assert(dynamicArray == [2, 3, 4, 5, 6]); // modified

    staticArray.each!((ref x) => x++);
    assert(staticArray == [1, 2, 3, 4, 5]);  // not modified

    staticArray[].each!((ref x) => x++);
    assert(staticArray == [2, 3, 4, 5, 6]);  // modified
}

Using a ref parameter works in the range cases, but not the static array case (opApply).

github-bugzilla commented on 2016-12-24T20:38:38Z
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/f903de7bc6a507e787323d633679872c5c8e618c
Fix issue 16255 - std.algorithm.iteration.each on opApply doesn't support ref

https://github.com/dlang/phobos/commit/515b6a4ea2d9485a01efbf212357b623980bfa82
Merge pull request #4991 from wilzbach/fix-issue-16255-each-opApply

Fix issue 16255 - std.algorithm.iteration.each on opApply doesn't support

github-bugzilla commented on 2017-01-07T03:03:18Z
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/f903de7bc6a507e787323d633679872c5c8e618c
Fix issue 16255 - std.algorithm.iteration.each on opApply doesn't support ref

https://github.com/dlang/phobos/commit/515b6a4ea2d9485a01efbf212357b623980bfa82
Merge pull request #4991 from wilzbach/fix-issue-16255-each-opApply

acehreli commented on 2022-06-10T20:12:00Z

(In reply to Basile-z from comment #6)
> Is this supposed to work now ?
>
>
> void main()
> {
>     int[][] arr = void;

That is the problem. We can't use arr in any meaningful way because it already has garbage number of garbage elements.

>     arr.length = 10;

It reduces the length to 10 but all the elements are garbage.

b2.temp commented on 2017-02-05T22:16:10Z
Is this supposed to work now ?

void main()
{
    int[][] arr = void;
    arr.length = 10;

    version(all)
    {
        import std.algorithm.iteration : each;
        arr.each!((ref a){a.length = 10; a[] = -1;});
    }
    else
    {
        foreach(ref a; arr)
        {
            a.length = 10;
            a[] = -1;
        }
    }
}


how to ignore cover with sharpshooter and spell sniper?

hi, again! Great work! Quick question: How do you set a character to ignore half and three-quarters cover if they have sharpshooter or spellsniper (which allows the ignoring of all cover). Is there a flag to set or anything?

Never mind. Saw this already addressed in readme.


"for"-template not initially selected

From @johanneskopf on August 12, 2016 22:5

VSCode Version: 1.5.0-insider
OS Version: Windows 10, Build 14901

Steps to Reproduce:

Open a c# file
Write "for"
You have to press (Down) and (Tab) to use the "for"-template, it's not possible to write "for" and press (Tab) to use that template on the go.
Selecting the template initially would speed up coding.

Copied from original issue: Microsoft/vscode#10488

This is not a bug, because extensions don't have control over the order of items displayed. However as of VSCode 1.4 a setting has been added to change snippets to be always displayed first or not or keep old default behavior: "editor.snippetSuggestions": "top"
@DustinCampbell you can close this one :)

Thank you very much, that's making programming faster for me


I need your help

Hello sir ,may I ask you about this part A Good Anti-Noise  from you paper
A New Deep Learning Model for Fault Diagnosis with Good Anti-Noise and Domain Adaptation Ability on Raw Vibration Signals
thank you

Chatted personally via WeChat.


Some collected questions or only one example required

Hello and thanks for writing via WhatsApp.
To understand your way of doing the things it would be great to get some examples by you. The examples shouldn't be detailed the normal working code would even help.

Getting a contact by ID
Add a contact
Add a quote
Edit a quote

I think with these three examples i could translate it to allmost all required uses. But if you have more it would be absolutely great. What i can offer is to extend with pull requests all new things which i had to build and to help documenting.
My target is to build a configurable workflow from "calenso"->"bexio" and from "bexio"<->"stripe terminal for POS". In a second step a connect from a "standalone cardterminal"<->"bexio".
I have read your annotation about the bexio behavior and you are absolutely right. Actually i started opening one ticket for each inadequacy or bug.
Regards André and it would be great to ready by you.

Basically, the workflow to create/edit anything would be like :
    $bxbill = new BizCuit\BexioBills($bxCtx);
    $object = $bxbill->new();
    $object->supplier_id = $supplierid;
    $object->vendor_ref = $vendorref;
    $object->contact_partner_id = 1;
    $object->bill_date = $date;
    $object->due_date = $dudate;
    $object->amount_man = $amount;
    $object->manual_amount = true;
    $object->currency_code = $currency;
    $object->item_net = true;
    $object->attachment_ids = [$file];
    $object->address = new stdClass();
    $object->address->lastname_company = $name;
    $object->address->type = 'COMPANY';
    $lines = new stdClass();
    $lines->position = 1;
    $lines->amount = $amount;
    $object->line_items = [$lines];
    $object->discounts = [];
    $ret = $bxbill->set($object);

Updating is quite similar, except you use use $bxbill->update($object);. Take note that the Bexio API is buggy, so if you fetch an object and update it directly, it might not work at all (I try to workaround in the library but  ...).
For getting any object by ID, the use of $bxbill->get($id) works. In some case, the ID is not the ID but the UUID, the documentation got that wrong most of the time, so it's a guessing game. But contacts are by ID, it should be fine. What I do is
        try {
          $contact = $bxContact->get($id);
          /* ... */
        } catch (Exception $e) {
          /* try to get archived value */
          $contact = $bxContact->get($id, ['show_archived' => 'true']);
          /* ... */
        }

Thanks a lot - will play with your example and will give feedback for each part where i run into problems.
Regards André
PS: And i you have some code with more example content it would be great.

Just on update. If you use ->update() it should update only the property you pass (but randomly buggy). If you use ->set() with an ID in the body, it would overwrite the object.

I have added some documentations. I will improve with time.


SIMSBIOHUB-627: Misc Cleanup

Links to Jira Tickets
https://apps.nrs.gov.bc.ca/int/jira/browse/SIMSBIOHUB-627
Description of Changes
Minor UI cleanup/tweaks.
Resolves some warnings about incorrect html.
Fix two incorrect useEffects for the device/deployment edit forms.
Testing Notes

Not sure if related to this PR but deployment do not display in the left side panel of the manage telemetry page, yet the request succeeds

Not sure if related to this PR but deployment do not display in the left side panel of the manage telemetry page, yet the request succeeds

I think this is due to the fact that the seed critter records in SIMS don't match real records in Critterbase

Looks great! Made me think of something: we need to let users somehow remove vendor telemetry from a survey, in case they imported the wrong device or just want it gone. Right now you cannot remove vendor telemetry records and therefore can't get around the foreign key constraint preventing deployments from being deleted.


KAFKA-17762 Remove Utils.isBlank

More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.
Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

close as Utils#isBlank also handle the null check


Change redirect location after creating a parameter or profile

A simpler way of fixing the issue than my last PR. However, it does still depend on Restangular being removed

What does this PR (Pull Request) do?

[x] This PR fixes ##3453

Which Traffic Control components are affected by this PR?

Traffic Portal

What is the best way to verify this PR?

Create a new parameter and ensure you are immediately redirected to the link profiles page, and vice versa
The following criteria are ALL met by this PR

[ ] This PR includes tests OR I have explained why tests are unnecessary
[x] This PR includes documentation OR I have explained why documentation is unnecessary
[ ] This PR includes an update to CHANGELOG.md OR such an update is not necessary
[x] This PR includes any and all required license headers
[x] This PR ensures that database migration sequence is correct OR this PR does not include a database migration
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Can one of the admins verify this patch?

also, can you write 2 UI tests that verifies that the creation of a parameter and a profile takes them to the right page/view?

this change should not depend on the removal of restangular, right?

I thought it wasn't dependent on restangular's removal, but it needs to get the ID from the response in order to navigate to that page, which is the thing restangular was giving me so much trouble with


UI bugs in view detail transaction

Describe the bug
Version test: v1.0.6(183)
To reproduce the bug
Steps:

Go to the Stellaswap dApp
Perform swap feature
On the confirm transaction, touch the View detail button
Actual:

https://github.com/Koniverse/SubWallet-Mobile/assets/117999489/ecead4a0-964e-497c-b0b4-87916a2886a9

Version test: https://file.cdmteck.com/s/DB9JLAnjJczopcC/download?path=%2F&files=SubWalletMobile-build-187-838-merge-2023-06-28T10-51-29.ipa
Devices test: IP 11
Validation passed.


List of domains that Buildkite agent needs to be able to access

I run a Builtkite agent behind an HTTP proxy. The proxy only allows connections to whitelisted domains. Which domains should I have whitelisted for the Buildkite agent to work correctly?
https://agent.buildkite.com
... anything else?

Hey @nick040, thanks for getting in touch - sorry to hear you're having problems. The best way to get help on this is to email<EMAIL_ADDRESS>I'll close this ticket for now, but feel free to re-open it if you need.


Small Changes to NN plugin

Change requests:

[x] weights and bias are shown in floating point mode. Show fix number of digits
[x] thickness of arcs should be configurable between 5 and 10. Or set to 6, e.g.
[x] remove the error message: key : value = TAB_NN : undefined and put all other texts in the msg files
[x] the NNstep block should be usable more than once, the names of input and output neurons must match
[x] for decimal numbers, allow both ',' and '.'
[x] if a neuron is clicked, show the math for this neuron unconditionally
[x] check, that neuron names in "get neuron value" exist. All names must be different.
[x] code generator for pure nets in Java
[x] It would be nice if the edge weights could also be entered as fractions (1/2 1/3...).

This ticket can be open for some time and should assemble small requests (~1h time for implementation).
From time to time it can be closed and reopened with an empty feature list.
For new requests add comments. I (rbudde) will scan these comments and put them into the list
List of change request, that will not be done (this may be discussed, of course!)

representation of the NN as a matrix. REASON: many matrices are needed. Restriction to a single neuron is more user-friendly
see the NN during run (automated training ...) so you could see the changes to the weights/biases. REASON: almost impossible due to timing problems

It would be awesome if you could see the mesh during automated training so you could see the changes to the weights (similar to Tensorflow)....

It would be nice to have a additional block: "get weight from ... to ..."

With a view to a follow-up project, we should consider how smartphones can also be used for our KNN integration. For pupil could that gain a lot of fun.

It should be possible to create at least 8 neuron within hidden layer

Representation of the ANN as a matrix

all comments so far moved to the item list

Numbers with comma - instead of point - are "made" / convert to 0

It would be nice if the edge weights could also be entered as fractions (1/2 1/3...).

all comments so far moved to the item list.
This issue will be closed end of May

the nn input and output Blocks should be pre-named (like variables) and functions

Note in the tab -Neuronal Networks- : "In order to be able to program neurons here, you have to drag at least one input and one output neuron in the tab -Program NEPO- in the category >Neuronal Network< into the bracket >make a NN step<.
--> A picture or gif, would be perfect

for future updates: For the use in school classes it could be important to enable a possibility (interface) to upload files (CSV e.g. *Iris train  or some data set from SenseBox). In addition, it should be possible to display the sensor data display instead of a robot display.
*https://gist.github.com/netj/8836201
https://github.com/ramp-kits/iris/blob/master/data/train.csv

Integration of a Boolean activation function

After clicking on a neuron (status = yellow), you cannot return it to its original status by clicking on it again. You have to click on another neuron or click on the drop-down "show values".


Add start time, end time, and date to each Place card

infinite_scroll_list.js

Increased the default height of the place cards in getCardHeight() by 82px

place_list_item.html

Added place start time tag
Added place display date to be centered above the place name
Added place end time tag

Testing:

@JGreenlee @shankari could  you take a quick look and make sure this seems correct with what UNSW asked for?

start time, end time, and date to each Place card, similar to what we have on Trip cards

ToDo:
Make sure this solution is inline with @MaliheTabasi comment: https://github.com/e-mission/e-mission-docs/issues/871#issuecomment-1486148982

@sebastianbarry I would suggest that you hold off on this

If there are multiple days in between 2 trip objects, there will be place cards to fill in for each day: https://github.com/e-mission/e-mission-docs/issues/871#issuecomment-1486148982

pending the discussion in
https://github.com/e-mission/e-mission-docs/issues/871#issuecomment-1488774436

Addressed comment https://github.com/sebastianbarry/e-mission-phone/pull/8#discussion_r1151407719 in commit https://github.com/sebastianbarry/e-mission-phone/pull/8/commits/e521390b94ff8d8420f5faededfdcf2dca5b3e90
Testing:

@sebastianbarry we are deploying code from https://github.com/e-mission/e-mission-phone/tree/survey_refactor_expansion
to staging. I am not sure where this code is going...


[Style presets] Make sure style preset swithcer is working

[x] Need to check that selected style preset is saved on server after changing.
[x] To fix: rendered brew is not updated when style preset is changed in metadata editor

Implemented in 654d97c


sap.ui.core.util.ExportTypeCSV is deprecated in 1.73

OpenUI5 version: 1.73
It is announced that sap.ui.core.util.ExportTypeCSV is deprecated in 1.73. Excel export is an essential and basic function for a modern information system. The lack of the function arises significant concern. Do you plan to get it back in further release or propose alternative option?

Excellent question. One answer to this question we need.. <(-.-)>

Hello @imargulyan ,
The deprecation of the sap.ui.core.util.ExportTypeCSV control does not mean that it will stop functioning. All applications which use it will continue to work as before.
However, as it is stated in our Release Notes for 1.73 version, now it is recommended to use export functions from sap.ui.export.Spreadsheet, which functionality will be extended in the future.
Regards,
Iliana

@simlin: But the sap.ui.export functionality is not part of Openui5?

@codeworrior: Yes, indeed CSV Export is not yet part of the sap.ui.export and it is also not part of OpenUI5. Both is on our roadmap. As @IlianaB mentioned, the sap.ui.core.util.Export still works as before. The deprecation should indicate that there are no further investments planned in this area.

Hi @IlianaB,
just one question.
What means deprecation in case of an possible browser error in the future? Will it be fixed in an LTS version, because it no longer works, or will it be ignored for deprecated reason?
Right know, i understood it remains still as part of the delivery, but will not be enhanced, but will it be still supported?
Regards Holger

Hello @hschaefer123
exactly, pure bugfixing will still be done to keep existing scenarios running. But enhancements of the functional scope (e.g. support for ODataV4 model, ...) are not planned.
Best Regards
Jens

@codeworrior: Yes, indeed CSV Export is not yet part of the sap.ui.export and it is also not part of OpenUI5. Both is on our roadmap.

@simlin, are there any updates regarding the roadmap of bringing sap.ui.export, especially Spreadsheet, to OpenUI5?

@ future readers: the roadmap can be seen at https://roadmaps.sap.com/board?PRODUCT=73554900100800001361&range=FIRST-LAST#;INNO=771060710C8C1EDF89F8AEBF189F326D


az ad sp create-for-rbac doesn't treat --name the way I'd expect

az ad sp create-for-rbac --name colemick-acs-kube-sp2
results in:

I'm actually amazed this was even possible. The App ID URI is not valid. And the display name doesn't match the name I supplied.
I'd expected to see the following instead:
Name: colemick-acs-kube-sp2
App ID URI: http://colemick-acs-kube-sp2
CC: @yugangw-msft

Related to https://github.com/Azure/azure-cli/issues/1596?

Wow that was fast. Yes, this is a dupe. Thanks!


Insert request stuck for more than 15 minutes

My Environment

ArangoDB Version:        3.3.3
Storage Engine:             mmfiles
Deployment Mode:       Single Server
Deployment Strategy:   systemd start
Configuration:               mmfiles, Linux version 4.15.0-1051-aws (buildd@lgw01-amd64-005) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #53-Ubuntu SMP, ArangoDB 3.3.3 [linux] 64bit, using jemalloc, VPack 0.1.30, RocksDB 5.6.0, ICU 58.1, V8 5.7.492.77, OpenSSL 1.0.1 14 Mar 2012
Infrastructure:               AWS
Operating System:        Ubuntu 18.04
Total RAM in your machine:        4.0GiB
Disks in use:        50GB SSD
Used Package:              Debian or Ubuntu .deb

Component, Query & Data
Affected feature:
with arangojs driver
AQL query (if applicable):
'INSERT @row INTO inventory RETURN NEW', bind vars: {"row":{"_from":"warehouses/2550626","_to":"customer_products/4660815","inventoryDate":1573952781992}}
AQL explain (if applicable):
N/A
Dataset:
{"_from":"warehouses/2550626","_to":"customer_products/4660815","inventoryDate":1573952781992}
Size of your Dataset on disk:
1700 edges
Replication Factor & Number of Shards (Cluster only):
Single instance only
Steps to reproduce

Multiple insert requests to the same collection were in progress.
It goes back to normal after sometime.
Totally random when this issue arises.

Problem:
Some of the single row insert queries are taking as long as 15 minutes or more.
Expected result:
The query should fails within a shorter time duration.

Hi,
with MMFiles you've got a write lock on collections, so the performance on inserts boils down to the maximum throughput of your disk.
See this blogpost series on how to measure and tune the throughput of your system:
https://www.arangodb.com/2017/10/performance-analysis-pyarango-usage-scenarios/

Are you suggesting the disk was stuck for 15 minutes? Is there a way to have a circuit breaker in the driver configuration, so that I can handle it from single place.

you can get in a situation, where reads block writes for a longer time. You should tune your throughput. More memory may help (caching), but if you outdo your disk i/o you end up being blocked. NB, 3.3.24 is out since  2019-08 - please upgrade first.

Unfortunately, I had run into more frequent deadlocks on 3.3.16 and 3.3.21 and made the decision to rollback to 3.3.3, which had been more stable for past 2 years in production.

Ok,
so my recommendation remains. Do load tests as I advised above. find KPIs for 3.3.3 and the later versions, find out whats the bottleneck.
I won't be able to help you with a hopelessly outdated version.

Hi @nkanand4,
Did you find the bottleneck as dothebart was suggesting ?
We strongly suggest you upgrade to our latest ArangoDB Versions as 3.3 is going to be declared EOL soon - see here: https://www.arangodb.com/eol-notice/
Best,

Hi @nkanand4,
We haven't heard back from you recently, therefore I am closing this ticket now
Feel free to reopen it at any time
Best,


SAK-45219 Library change custom theme creation to use old _customizat…

…ion.scss file
https://jira.sakaiproject.org/browse/SAK-45219
Should allow folks to use the old -Dsakai.skin.customization.file with both SASS variables and to define CSS Custom Property based themes (light and dark).

Great!!!


Added style prop to MapCalloutProps in Typings

Fixes @marcmo issue in #1687

I also need it in MarkerProps as well

@haxxpop Just curious, what kind of styles can you do directly on <MapView.Marker>?


Is there a way to hide the "passthrough" status bar upon fullscreen of an embedded youtube video from passthrough mode?

Here's a screenshot of what I'm referring to: https://ptpb.pw/3b0T.png (that woman's hand is not inside that panda's bum).
The escape key will exit fullscreen, but Ctrl-[ will remove the bar. I'd just like to automate this if possible.
Cheers!

.. code:: viml
au! Fullscreen * if  != true
\   set guioptions+=n
\ else
\   set guioptions-=n
\ endif
Hides the status bar at the bottom in fullscreen mode when you enter it and shows it again when you leave it.

Ah, very nice, thank you! Where would I put this?

In your .pentadactylrc.
On 2016-11-05 19:08, krompus wrote:

Ah, very nice, thank you! Where would I put this?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/5digits/dactyl/issues/193#issuecomment-258655537

--
/"\  ASCII Ribbon Campaign
\ /  - against HTML emails
X   - against proprietory attachments
/ \  http://en.wikipedia.org/wiki/ASCII_Ribbon_Campaign

Ah, sorry for taking so long to respond; I've popped this in my .pentadactylrc, but it doesn't seem to do anything?

@krompus please try this version, witch works for me:
autocmd! Fullscreen *
\ set guioptions-=s
\ if <state> != true
\   set guioptions+=s
\ endif

After editing the .pentadactylrc you have to restart the browser.

Thanks for your response, but alas, this does not work either.


How to load a state as multiple view with own views into another state?

Hi guys.
I've for example state1
        .state('state1', {
            url: '/state1',
            views: {
                '': {
                    templateUrl: 'main.html',
                    controller: 'MainController'
                }
                'section2@': {
                    templateUrl: 'section2.html',
                    controller: 'Ctrl2'
                },
                'section1@': {
                    templateUrl: 'section1.html',
                    controller: 'Ctrl1'
                }
            }
        })

And another state2 which want to load state1 with all their views.
        .state('state2', {
            url: '/state2',
            views: {
                'all':{
                    templateUrl: 'main.html', //into

 I want to load all state1
                    controller: '???'
                },
                'modal': {
                    template: '<modal></modal>'
                }
            }
        });

Is it possible or should I all their sub-views directly?

I've already resolved my problem, I just loaded template from main.html and set views which were used in it, e.g
views: {
'section2@state2': {
//
}
}


enlarge margin of "Discard All changes" and "Stage All changes"

VSCode Version:1.17.2
OS Version:Mac OS high sierra.

Steps to Reproduce:
1.for now, the margin of "Discard All changes" and "Stage All changes" in git extension are too close. It is very easy to have a wrong click. Shall we enlarge the margin?

Reproduces without extensions: Yes/No

Can you show me a screenshot?


odo create --devfile.yaml, overriding the existing devfile to empty

/kind bug

What versions of software are you using?
Operating System:
Output of odo version: master
How did you run odo exactly?
$ odo create --devfile devfile.yaml
Actual behavior
I want to deploy component with existing devfile, odo create --devfile devfile.yaml, This devfile has lots of configuration added
and odo create --devfile devfile.yaml overrided it to empty file.
[adisky@localhost convert-to-devfile]$ cat devfile.yaml
schemaVersion: 2.0.0
metadata:
  name: nodejs
  version: 1.0.0
....
[adisky@localhost convert-to-devfile]$ odo create --devfile devfile.yaml
Experimental mode is enabled, use at your own risk

Validation
 ✓  Creating a devfile component from devfile path: /home/adisky/check-s2i/convert-to-devfile/devfile.yaml [28330ns]
 ✓  Validating devfile component [79173ns]

Please use `odo push` command to create the component with source deployed
[adisky@localhost convert-to-devfile]$ cat devfile.yaml

Expected behavior
odo create --devfile devfile.yaml should not override the existing devfile.yaml, user would lost configured data.
Any logs, error output, etc?

To make this issue more specific, the issue only happens when existing devfile and user specify devfile shares the same file system path. Existing devfile and user specify devfile use different paths work for me.
    ~/wang/odo-test  cat devfile.yaml                                                                                 ✔  12:21:45 
schemaVersion: 2.0.0
metadata:
  name: nodejs
  version: 1.0.0
projects:
  - name: nodejs-starter
    git:
      location: "https://github.com/odo-devfiles/nodejs-ex.git"
components:
  - container:
      name: runtime
      image: registry.access.redhat.com/ubi8/nodejs-12:1-36
      memoryLimit: 1024Mi
      mountSources: true
      endpoints:
        - name: http-3000
          targetPort: 3000
          configuration:
            protocol: tcp
            scheme: http
            type: terminal
commands:
  - exec:
      id: install
      component: runtime
      commandLine: npm install
      workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
      group:
        kind: build
        isDefault: true
  - exec:
      id: run
      component: runtime
      commandLine: npm start
      workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
      group:
        kind: run
        isDefault: true
  - exec:
      id: debug
      component: runtime
      commandLine: npm run debug
      workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
      group:
        kind: debug
        isDefault: true
  - exec:
      id: test
      component: runtime
      commandLine: npm test
      workingDir: ${CHE_PROJECTS_ROOT}/nodejs-starter
      group:
        kind: test
        isDefault: true
    ~/wang/odo-test  odo create --devfile ../devfile.yaml                                                                                 ✔  12:21:49 
Experimental mode is enabled, use at your own risk

 ✗  This directory already contains a devfile, you can't specify devfile via --devfile

To fix this, we can just add validation code at the beginning of the file copy function https://github.com/openshift/odo/blob/master/pkg/util/util.go#L1081 to return the function directly if source and destination paths are the same.
I believe the problem is that since we don't catch this edge case in the file copy function, then os.Create() and os.Open() conflicts with each other so that generating an empty devfile.

@GeekArthur yes, you are right it happens only when you specify path for devfile from current context directory, but still it should not override the file.


Improve World::query() performance

Currently, query() is O(n) and does a few full iterations to build up a vector with all matching entities. This
is inefficient especially for a function that is used multiple times per frame.
The World should keep some kind of index around which gets updated when adding/removing components. It would then do some hash or lookup in this table to get a reference to a list of all entities with those components.

Note: Since the last few commits, components now store their owner ID, so you can write loops like this instead of using query(), which provides better performance in almost all cases:
for (auto& pos: world.getComponents<Position>())
{
    auto ent = world.from(pos);
    auto vel = ent.get<Velocity>();
    auto sprite = ent.get<Sprite>();
    auto rot = ent.get<Rotation>();
    if (vel && sprite && rot)
    {
        ...
    }
}

The reason this is faster, is because there will always be the same amount or less instances of a specific component than entities. The query() method loops through all entities every time, where with this you can pick the least common component to optimize the performance.
Update: query() could just be changed to use this new method internally! That way they'd end up being very close in performance. I will try this and see how well it works, to simplify the syntax back to this:
for (auto ent: world.query<Position, Velocity, Sprite, Rotation>())
{
    auto pos = ent.get<Position>();
    auto vel = ent.get<Velocity>();
    auto sprite = ent.get<Sprite>();
    auto rot = ent.get<Rotation>();
    ...
}

Update: Even better! The query() method could check ALL component types passed in, and find the smallest array of components! Then, it would use that one to iterate through and return back the result set. This will be faster than the manual getComponents method in many cases where you aren't sure which is the best component to use, plus the syntax is more consistent.

This has been improved enough from the last commit.


Write specs for new Ruby 3.2 features and changes

ruby/spec already contains some specs for 3.2, but we should aim to cover all new features and important changes.
This will improve the test coverage of these features (and maybe discover a few bugs along the way), allow other Ruby implementations to implement the changes faster with more confidence and document clearly the new behavior.
The new specs should be within a version guard block:
ruby_version_is "3.2" do
  # New specs
end

NOTE: https://rubyreferences.github.io/rubychanges/3.2.html gives more details for many features and changes.
From https://github.com/ruby/ruby/blob/master/doc/NEWS/NEWS-3.2.0.md:
NEWS for Ruby 3.2.0
This document is a list of user-visible feature changes
since the 3.1.0 release, except for bug fixes.
Note that each entry is kept to a minimum, see links for details.
Language changes

[ ] Anonymous rest and keyword rest arguments can now be passed as
arguments, instead of just used in method parameters.
[Feature #18351]
def foo(*)
  bar(*)
end
def baz(**)
  quux(**)
end

[x] A proc that accepts a single positional argument and keywords will
no longer autosplat. [Bug #18633]
proc{|a, **k| a}.call([1, 2])
# Ruby 3.1 and before
# => 1
# Ruby 3.2 and after
# => [1, 2]

[x] Constant assignment evaluation order for constants set on explicit
objects has been made consistent with single attribute assignment
evaluation order. With this code:
foo::BAR = baz

foo is now called before baz. Similarly, for multiple assignments
to constants,  left-to-right evaluation order is used. With this
code:
foo1::BAR1, foo2::BAR2 = baz1, baz2

The following evaluation order is now used:

foo1
foo2
baz1
baz2

[Bug #15928]

[ ] "Find pattern" is no longer experimental.
[Feature #18585]

[ ] Methods taking a rest parameter (like *args) and wishing to delegate keyword
arguments through foo(*args) must now be marked with ruby2_keywords
(if not already the case). In other words, all methods wishing to delegate
keyword arguments through *args must now be marked with ruby2_keywords,
with no exception. This will make it easier to transition to other ways of
delegation once a library can require Ruby 3+. Previously, the ruby2_keywords
flag was kept if the receiving method took *args, but this was a bug and an
inconsistency. A good technique to find the potentially-missing ruby2_keywords
is to run the test suite, for where it fails find the last method which must
receive keyword arguments, use puts nil, caller, nil there, and check each
method/block on the call chain which must delegate keywords is correctly marked
as ruby2_keywords. [Bug #18625] [Bug #16466]
def target(**kw)
end

# Accidentally worked without ruby2_keywords in Ruby 2.7-3.1, ruby2_keywords
# needed in 3.2+. Just like (*args, **kwargs) or (...) would be needed on
# both #foo and #bar when migrating away from ruby2_keywords.
ruby2_keywords def bar(*args)
  target(*args)
end

ruby2_keywords def foo(*args)
  bar(*args)
end

foo(k: 1)

Core classes updates
Note: We're only listing outstanding class updates.
Fiber

[x] Introduce Fiber.[] and Fiber.[]= for inheritable fiber storage.
Introduce Fiber#storage and Fiber#storage= (experimental) for
getting and resetting the current storage.  Introduce
Fiber.new(storage:) for setting the storage when creating a
fiber. [Feature #19078]
Existing Thread and Fiber local variables can be tricky to use.
Thread-local variables are shared between all fibers, making it
hard to isolate, while Fiber-local variables can be hard to
share.  It is often desirable to define unit of execution
("execution context") such that some state is shared between all
fibers and threads created in that context.  This is what Fiber
storage provides.
def log(message)
  puts "#{Fiber[:request_id]}: #{message}"
end

def handle_requests
  while request = read_request
    Fiber.schedule do
      Fiber[:request_id] = SecureRandom.uuid

      request.messages.each do |message|
        Fiber.schedule do
          log("Handling #{message}") # Log includes inherited request_id.
        end
      end
    end
  end
end

You should generally consider Fiber storage for any state which
you want to be shared implicitly between all fibers and threads
created in a given context, e.g. a connection pool, a request
id, a logger level, environment variables, configuration, etc.

Fiber::Scheduler

[ ] Introduce Fiber::Scheduler#io_select for non-blocking IO.select.
[Feature #19060]

IO

[x] Introduce IO#timeout= and IO#timeout which can cause
IO::TimeoutError to be raised if a blocking operation exceeds the
specified timeout. [Feature #18630]
STDIN.timeout = 1
STDIN.read # => Blocking operation timed out! (IO::TimeoutError)

[ ] Introduce IO.new(..., path:) and promote File#path to IO#path.
[Feature #19036]

Class

[x] Class#attached_object, which returns the object for which
the receiver is the singleton class. Raises TypeError if the
receiver is not a singleton class.
[Feature #12084]
class Foo; end

Foo.singleton_class.attached_object        #=> Foo
Foo.new.singleton_class.attached_object    #=> #<Foo:0x000000010491a370>
Foo.attached_object                        #=> TypeError: `Foo' is not a singleton class
nil.singleton_class.attached_object        #=> TypeError: `NilClass' is not a singleton class

Data

[x] New core class to represent simple immutable value object. The class is
similar to Struct and partially shares an implementation, but has more
lean and strict API. [Feature #16122]
Measure = Data.define(:amount, :unit)
distance = Measure.new(100, 'km')            #=> #<data Measure amount=100, unit="km">
weight = Measure.new(amount: 50, unit: 'kg') #=> #<data Measure amount=50, unit="kg">
weight.with(amount: 40)                      #=> #<data Measure amount=40, unit="kg">
weight.amount                                #=> 50
weight.amount = 40                           #=> NoMethodError: undefined method `amount='

Encoding

[x] Encoding#replicate has been deprecated and will be removed in 3.3. [Feature #18949]
[ ] The dummy Encoding::UTF_16 and Encoding::UTF_32 encodings no longer
try to dynamically guess the endian based on a byte order mark.
Use Encoding::UTF_16BE/UTF_16LE and Encoding::UTF_32BE/UTF_32LE instead.
This change speeds up getting the encoding of a String. [Feature #18949]
[ ] Limit maximum encoding set size by 256.
If exceeding maximum size, EncodingError will be raised. [Feature #18949]

Enumerator

[x] Enumerator.product has been added.  Enumerator::Product is the implementation. [Feature #18685]

Exception

[x] Exception#detailed_message has been added.
The default error printer calls this method on the Exception object
instead of #message. [Feature #18564]

Hash

[x] Hash#shift now always returns nil if the hash is
empty, instead of returning the default value or
calling the default proc. [Bug #16908]

Integer

[x] Integer#ceildiv has been added. [Feature #18809]

Kernel

[x] Kernel#binding raises RuntimeError if called from a non-Ruby frame
(such as a method defined in C). [Bug #18487]

MatchData

[x] MatchData#byteoffset has been added. [Feature #13110]
[x] MatchData#deconstruct has been added. [Feature #18821]
[x] MatchData#deconstruct_keys has been added. [Feature #18821]

Module

[x] Module.used_refinements has been added. [Feature #14332]
[x] Module#refinements has been added. [Feature #12737]
[x] Module#const_added has been added. [Feature #17881]
[x] Module#undefined_instance_methods has been added. [Feature #12655]

Proc

[x] Proc#dup returns an instance of subclass. [Bug #17545]
[x] Proc#parameters now accepts lambda keyword. [Feature #15357]

Process

[ ] Added RLIMIT_NPTS constant to FreeBSD platform

Regexp

[x] The cache-based optimization is introduced.
Many (but not all) Regexp matching is now in linear time, which
will prevent regular expression denial of service (ReDoS)
vulnerability. [Feature #19104]

[x] Regexp.linear_time? is introduced. [Feature #19194]

[ ] Regexp.new now supports passing the regexp flags not only as an Integer,
but also as a String.  Unknown flags raise ArgumentError.
Otherwise, anything other than true, false, nil or Integer will be warned.
[Feature #18788]

[x] Regexp.timeout= has been added. Also, Regexp.new new supports timeout keyword.
See [Feature #17837]

Refinement

[x] Refinement#refined_class has been added. [Feature #12737]

Set

[ ] Set is now available as a built-in class without the need for require "set". [Feature #16989]
It is currently autoloaded via the Set constant or a call to Enumerable#to_set.

String

[x] String#byteindex and String#byterindex have been added. [Feature #13110]
[x] Update Unicode to Version 15.0.0 and Emoji Version 15.0. [Feature #18639]
(also applies to Regexp)
[x] String#bytesplice has been added.  [Feature #18598]
[x] String#dedup has been added as an alias to<EMAIL_ADDRESS>[Feature #18595]

Struct

[x] A Struct class can also be initialized with keyword arguments
without keyword_init: true on Struct.new [Feature #16806]
Post = Struct.new(:id, :name)
Post.new(1, "hello") #=> #<struct Post id=1, name="hello">
# From Ruby 3.2, the following code also works without keyword_init: true.
Post.new(id: 1, name: "hello") #=> #<struct Post id=1, name="hello">

Thread

[x] Thread.each_caller_location is added. [Feature #16663]

Thread::Queue

[x] Thread::Queue#pop(timeout: sec) is added. [Feature #18774]

Thread::SizedQueue

[x] Thread::SizedQueue#pop(timeout: sec) is added. [Feature #18774]
[x] Thread::SizedQueue#push(timeout: sec) is added. [Feature #18944]

Time

[x] Time#deconstruct_keys is added, allowing to use Time instances
in pattern-matching expressions [Feature #19071]

[x] Time.new now can parse a string like generated by Time#inspect
and return a Time instance based on the given argument.
[Feature #18033]

SyntaxError

[ ] SyntaxError#path has been added.  [Feature #19138]

TracePoint

[ ] TracePoint#binding now returns nil for c_call/c_return TracePoints.
[Bug #18487]
[ ] TracePoint#enable target_thread keyword argument now defaults to the
current thread if a block is given and target and target_line keyword
arguments are not passed. [Bug #16889]

UnboundMethod

[ ] UnboundMethod#== returns true if the actual method is same. For example,
String.instance_method(:object_id) == Array.instance_method(:object_id)
returns true. [Feature #18798]

[x] UnboundMethod#inspect does not show the receiver of instance_method.
For example String.instance_method(:object_id).inspect returns
"#<UnboundMethod: Kernel#object_id()>"
(was "#<UnboundMethod: String(Kernel)#object_id()>").

Stdlib updates
Bundler

[ ] Bundler now uses PubGrub resolver instead of Molinillo for performance improvement.
[ ] Add --ext=rust support to bundle gem for creating simple gems with Rust extensions.
[GH-rubygems-6149]
[ ] Make cloning git repos faster [GH-rubygems-4475]

RubyGems

[ ] Add mswin support for cargo builder. [GH-rubygems-6167]

CGI

[ ] CGI.escapeURIComponent and CGI.unescapeURIComponent are added.
[Feature #18822]

Coverage

[ ] Coverage.setup now accepts eval: true. By this, eval and related methods are
able to generate code coverage. [Feature #19008]

[x] Coverage.supported?(mode) enables detection of what coverage modes are
supported. [Feature #19026]

Date

[x] Added Date#deconstruct_keys and DateTime#deconstruct_keys same as [Feature #19071]

ERB

[ ] ERB::Util.html_escape is made faster than CGI.escapeHTML.
* It no longer allocates a String object when no character needs to be escaped.
* It skips calling #to_s method when an argument is already a String.
* ERB::Escape.html_escape is added as an alias to ERB::Util.html_escape,
which has not been monkey-patched by Rails.
[ ] ERB::Util.url_encode is made faster using CGI.escapeURIComponent.
[ ] -S option is removed from erb command.

FileUtils

[ ] Add FileUtils.ln_sr method and relative: option to FileUtils.ln_s.
[Feature #18925]

IRB

[ ] debug.gem integration commands have been added: debug, break, catch,
next, delete, step, continue, finish, backtrace, info
* They work even if you don't have gem "debug" in your Gemfile.
* See also: What's new in Ruby 3.2's IRB?
[ ] More Pry-like commands and features have been added.
* edit and show_cmds (like Pry's help) are added.
* ls takes -g or -G option to filter out outputs.
* show_source is aliased from $ and accepts unquoted inputs.
* whereami is aliased from @.

Net::Protocol

[ ] Improve Net::BufferedIO performance. [GH-net-protocol-14]

Pathname

[ ] Added Pathname#lutime. [GH-pathname-20]

Socket

[ ] Added the following constants for supported platforms.
* SO_INCOMING_CPU
* SO_INCOMING_NAPI_ID
* SO_RTABLE
* SO_SETFIB
* SO_USER_COOKIE
* TCP_KEEPALIVE
* TCP_CONNECTION_INFO

SyntaxSuggest

[ ] The feature of syntax_suggest formerly dead_end is integrated in Ruby.
[Feature #18159]

UNIXSocket

[ ] Add support for UNIXSocket on Windows. Emulate anonymous sockets. Add
support for File.socket? and File::Stat#socket? where possible.
[Feature #19135]

[x]   The following default gems are updated.

RubyGems 3.4.1
abbrev 0.1.1
benchmark 0.2.1
bigdecimal 3.1.3
bundler 2.4.1
cgi 0.3.6
csv 3.2.6
date 3.3.3
delegate 0.3.0
did_you_mean 1.6.3
digest 3.1.1
drb 2.1.1
english 0.7.2
erb 4.0.2
error_highlight 0.5.1
etc 1.4.2
fcntl 1.0.2
fiddle 1.1.1
fileutils 1.7.0
forwardable 1.3.3
getoptlong 0.2.0
io-console 0.6.0
io-nonblock 0.2.0
io-wait 0.3.0
ipaddr 1.2.5
irb 1.6.2
json 2.6.3
logger 1.5.3
mutex_m 0.1.2
net-http 0.3.2
net-protocol 0.2.1
nkf 0.1.2
open-uri 0.3.0
open3 0.1.2
openssl 3.1.0
optparse 0.3.1
ostruct 0.5.5
pathname 0.2.1
pp 0.4.0
pstore 0.1.2
psych 5.0.1
racc 1.6.2
rdoc 6.5.0
readline-ext 0.1.5
reline 0.3.2
resolv 0.2.2
resolv-replace 0.1.1
securerandom 0.2.2
set 1.0.3
stringio 3.0.4
strscan 3.0.5
syntax_suggest 1.0.2
syslog 0.1.1
tempfile 0.1.3
time 0.2.1
timeout 0.3.1
tmpdir 0.1.3
tsort 0.1.1
un 0.2.1
uri 0.12.0
weakref 0.1.2
win32ole 1.8.9
yaml 0.2.1
zlib 3.0.0

[x]   The following bundled gems are updated.

minitest 5.16.3
power_assert 2.0.3
test-unit 3.5.7
net-ftp 0.2.0
net-imap 0.3.4
net-pop 0.1.2
net-smtp 0.3.3
rbs 2.8.2
typeprof 0.21.3
debug 1.7.1

See GitHub releases like GitHub Releases of Logger or changelog for details of the default gems or bundled gems.
Compatibility issues

[x] String#to_c currently treat a sequence of underscores as an end of Complex
string. [Bug #19087]

[x] Now ENV.clone raises TypeError as well as ENV.dup [Bug #17767]

Removed constants
The following deprecated constants are removed.

[x] Fixnum and Bignum [Feature #12005]
[x] Random::DEFAULT [Feature #17351]
[x] Struct::Group
[x] Struct::Passwd

Removed methods
The following deprecated methods are removed.

[x] Dir.exists? [Feature #17391]
[x] File.exists? [Feature #17391]
[x] Kernel#=~ [Feature #15231]
[x] Kernel#taint, Kernel#untaint, Kernel#tainted?
[Feature #16131]
[x] Kernel#trust, Kernel#untrust, Kernel#untrusted?
[Feature #16131]
[x] Method#public?, Method#private?, Method#protected?,
UnboundMethod#public?, UnboundMethod#private?, UnboundMethod#protected?
[Bug #18729] [Bug #18751] [Bug #18435]

Error printer

[ ] Ruby no longer escapes control characters and backslashes in an
error message. [Feature #18367]

Constant lookup when defining a class/module

[ ] When defining a class/module directly under the Object class by class/module
statement, if there is already a class/module defined by Module#include
with the same name, the statement was handled as "open class" in Ruby 3.1 or before.
Since Ruby 3.2, a new class is defined instead. [Feature #18832]

Stdlib compatibility issues

[x] Psych no longer bundles libyaml sources.
And also Fiddle no longer bundles libffi sources.
Users need to install the libyaml/libffi library themselves via the package
manager like apt, yum, brew, etc.
Psych and fiddle supported the static build with specific version of libyaml
and libffi sources. You can build psych with libyaml-0.2.5 like this.
$ ./configure --with-libyaml-source-dir=/path/to/libyaml-0.2.5

And you can build fiddle with libffi-3.4.4 like this.
$ ./configure --with-libffi-source-dir=/path/to/libffi-3.4.4

[Feature #18571]

[ ] Check cookie name/path/domain characters in CGI::Cookie. [CVE-2021-33621]

[x] URI.parse return empty string in host instead of nil. [sec-156615]

C API updates
Added C APIs

[x] VALUE rb_hash_new_capa(long capa) was added to created hashes with the desired capacity.
[ ] rb_internal_thread_add_event_hook and rb_internal_thread_add_event_hook were added to instrument threads scheduling.
The following events are available:

RUBY_INTERNAL_THREAD_EVENT_STARTED
RUBY_INTERNAL_THREAD_EVENT_READY
RUBY_INTERNAL_THREAD_EVENT_RESUMED
RUBY_INTERNAL_THREAD_EVENT_SUSPENDED
RUBY_INTERNAL_THREAD_EVENT_EXITED

[ ] rb_debug_inspector_current_depth and rb_debug_inspector_frame_depth are added for debuggers.

Removed C APIs
The following deprecated APIs are removed.

[ ] rb_cData variable.
[ ] "taintedness" and "trustedness" functions. [Feature #16131]

Implementation improvements

[ ] Fixed several race conditions in Kernel#autoload. [Bug #18782]

Thank you. Marked the mentioned methods as completed.

Thank you, I've updated the tasks.

Encoding#replicate has been deprecated and will be removed in 3.3.

There is a test case that checks the method is removed in Ruby 3.3 but we still need a test that it causes warning in Ruby 3.2

Dir.exists? and File.exists? have been added in #1065

Update Unicode to Version 15.0.0 and Emoji Version 15.0. [Feature #18639]

It looks like that one has been covered in commit 8caf02ddc1d951425a5eea35fe93d5a1492f9c3a

Introduce IO.new(..., path:) and promote File#path to IO#path.
[Feature #19036]

This looks to be covered in commit 62c1bbe88028961acd8fc059c3d14c24a95e0316

Thank you, marked as done.


cherry-pick feat(webhook): plugin webhook's detail and list api can get api key info now

cherry-pick #6050 feat(webhook): plugin webhook's detail and list api can get api key info now

This PR will closed.
#6050 doesn't need to cherry-pick.


mobile suport

will it be available for android 32/64 bits ?

all of the pieces for android support should be publicly available now! no release until i finalize the implementation, but there is now something that can be tried i suppose


Document consumer solution sequence

Recently, while familiarizing myself with HARK, I found it challenging to excavate the sequence of function calls which solves one period of a consumer’s problem in ConsIndShockModel.  In my particular case, I wanted to access the endogenous grids generated during the solution, which all told required the following steps:

Create an instance of ConsIndShockSolverBasic
Call prepareToSolve from the parent class ConsIndShockSetup
Call prepareToCalcEndOfPrdvP
Call calcEndOfPrdvP
Call getPointsForInterpolation

I have my bearings now, but it could help future contributors become acclimatized if there were documentation/example code which maps out the procedure for solving the single period problem.

If by "the endogenous grids generated during the solution", you mean the normalized market resources (mNrm) and consumption (cNrm) values used to construct the consumption function, these can be more easily accessed as KarstensInstance.solution[t].cFunc.functions[0].x_list and KarstensInstance.solution[t].cFunc.functions[0].y_list respectively.
But in general, yes: The solution code is a bit of a maze, and there is no "map" that explains the structure of the methods, and which methods are overwritten by which child models.  This is something I'm going to work on this semester.
Eventually, there's going to be a complete overhaul / redo of the various solvers to give them better structure.

Thanks - helpful to know the grids are returned as part of the consumption function.
Good to hear there are plans for mapping/eventual overhauling, as well.

I guess there could be a sort of "How we solve a period" DemARK of the relevant steps. I was actually taking notes to do such a DemARK, because I've been touching more and more of the existing code and internals. However, if many things stand to change soon, this might be premature and a waste of time. After an overhaul, such a DemARK would be an excellent resource for newcomers who want to contribute to HARK, I think.

MNW will pull in Tiffany's notebooks and add missing sections, once that's merged into our Demarks repo, we can close this issue.

The HowWeSolve notebook is now in examples:
https://github.com/econ-ark/HARK/blob/master/examples/HowWeSolveIndShockConsumerType/HoweWeSolveIndShockConsumerType.ipynb
Closing


Laravel 5.1

Will there be any support for using Laravel 5.1?
Problem 1
- Conclusion: remove laravel/framework v5.1.10
- Conclusion: don't install laravel/framework v5.1.10
- vinelab/url-shortener 1.0.0 requires illuminate/support 5.0.* -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].
- vinelab/url-shortener v1.1.0 requires illuminate/support 5.0.* -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].
- vinelab/url-shortener v1.1.1 requires illuminate/support 5.0.* -> satisfiable by illuminate/support[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].
- don't install illuminate/support v5.0.0|don't install laravel/framework v5.1.10
- don't install illuminate/support v5.0.22|don't install laravel/framework v5.1.10
- don't install illuminate/support v5.0.25|don't install laravel/framework v5.1.10
- don't install illuminate/support v5.0.26|don't install laravel/framework v5.1.10
- don't install illuminate/support v5.0.28|don't install laravel/framework v5.1.10
- don't install illuminate/support v5.0.33|don't install laravel/framework v5.1.10
- don't install illuminate/support v5.0.4|don't install laravel/framework v5.1.10
- Installation request for laravel/framework == <IP_ADDRESS> -> satisfiable by laravel/framework[v5.1.10].
- Installation request for vinelab/url-shortener * -> satisfiable by vinelab/url-shortener[1.0.0, v1.1.0, v1.1.1].

Any Update on this?

Same here, so no update?

+1

+1

+1


Engine.is_editor_hint() non-existant when exporting project

Operating system or device, Godot version, GPU Model and driver (if graphics related):
Godot 3.0, Calinou 27/09
Issue description:

One of my scripts use Engine.is_editor_hint() to make a part of it only run in tool mode.
When exporting to Windows using Templates found here, it says the function is non-existant.
Image: https://puu.sh/xNBHx/c4e55fef04.png
Is there a way to test if something is built?

The commit, commit fd69604, that made these changes dates to Aug 13. It was not yet there when alpha1 was released.

Is there a way to test if something is built?

You could use Engine.has_method("is_editor_hint"). I wouldn't do this though, this is alpha after all and you shouldn't use it for production.


Kubelet on different nodes uses different configurations

Hello, I have a requirement like this.  I built a k8s cluster with rke, There are many nodes under the cluster. The hardware resources of each node are different, so I want to use different configurations for kubelet on different nodes (eg: some nodes use --kube-reserved=memory=1Gi , some nodes use --kube-reserved=memory=500Mi), but I have searched your documentation and network information and have not seen any relevant information. I would like to ask if the subsequent version provides this feature. Thank you and Thank you for providing such a good open source product.

Link to https://github.com/rancher/rancher/issues/22818

This may be a duplicate of https://github.com/rancher/rke/issues/1285


Refresh WebApiHost template

This PR refreshes all the templates to use

Latest version of EMG and non-EMG packages
Upgrade runtime from .NET Core 2.2 to .NET Core 3.1

The WebApiHost template requires the most work as there are few breaking changes when upgrading from ASP.NET Core 2.2 to 3.1.
Waiting for https://github.com/emgdev/aspnetcore-extensions/issues/4

Since the WebApiHost template has been updated to .NET 6 recently, I'm going to close this PR


Better documentation regarding to how to use

Hi
Thank you for this library as it seems it is a pretty good replacement for the basic token auth of DRF. I have been trying to get this library to work but confused as to how to actually replace the default token auth.
I currently use djoser for REST register/login/logout/set password etc with basic DRF Token Auth
Is this is a replacement for the for...

Replace
'rest_framework.authentication.TokenAuthentication',
with
'knox.auth.TokenAuthentication',

in
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.SessionAuthentication',
),
or
2. Do I have to change my login/logout views in addition to changing the authentication.
3. Do I remove     'rest_framework.authtoken', from INSTALLED_APPS?
Thanks

Thank you for bringing this to our attention, I actually remember now that I missed this information as well when I first installed rest-knox. Can you check if these changes answer your questions:  https://github.com/James1345/django-rest-knox/pull/48
I however cannot comment on how/if the triangle of drf + knox + djoser plays together nicely. I have never used djoser. Your feedback would be valueable.

Great! Thanks for the quick reply. This makes it more clear and will make it easier for somebody just getting started.
I played with trying to integrate djoser and rest-knox, but I couldnt get it to work yet.
I am convinced there must be a way just to use the TokenAuthentication code of reset-knox with djoser as a replacement for the DRF TokenAuthentication. This will make it alot more useful since djoser has more APIs for managing registration/changing passwords as well as logging in/out.

fixed in #48


Changed sudoku solver

I added a class-framework.
Added a simple test case with a main() method.
Renamed the methods according to PEP.
Added a test for availability of xrange
Added a __str__ method.

I will add a test suite (unittest)

@goswami-rahul I have done the requested changes.


Adds -O2 flag to bazel build.

🦟 Bug fix
Summary
Adds -O2 flag to bazel build to reduce execution time of tests.
See https://github.com/maliput/maliput_malidrive/pull/252#issuecomment-1818816657 for an example of the failures we face.
Checklist

[x] Signed all commits for DCO
[ ] Added tests
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if it affects the public API)

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

This is certainly not enough, but it won't block CI.

Going in


Upgrade to OCI SDK 3.12.1

Notes:

Update mocking test to include new method for the Monitoring interface
Tested successfully against OCI Logging and Monitoring services using oci-mp archetype generated from the cli tool and this change

This will resolve issue https://github.com/helidon-io/helidon/issues/7032


Keycloakify fails after 7.13.2 on Linux

Hi, we recently updated Keycloakify and had our builds fail on Linux machines and in AWS CodeBuild (aws/codebuild/standard:7.0 which is built on top of Ubuntu 22.04).
I tried it locally on a Ubuntu 22.04 with Node 18.16.1 and get the same issue as CodeBuild (which is using Node 18.16.0).
Colleagues running MacOS don't seem to have this issue and can build the themes.
I also don't get the issue if the local git repository isn't cleaned up (e.g. git clean -xdf) before switching to a newer version of Keycloakify.
Is it possible that the folder build_keycloak is not always created in newer versions?
Last version that seems to work for us was 7.13.2
🔏 Building the keycloak theme...⌚
--
758 | node:fs:601
759 | handleErrorFromBinding(ctx);
760 | ^
761 |
762 | Error: ENOENT: no such file or directory, open '/codebuild/output/src1672772893/src/github.com/****/build_keycloak/pom.xml'
763 | at Object.openSync (node:fs:601:3)
764 | at Object.writeFileSync (node:fs:2249:35)
765 | at generateJavaStackFiles (/codebuild/output/src1672772893/src/github.com/****/node_modules/keycloakify/bin/keycloakify/generateJavaStackFiles.js:79:12)
766 | at /codebuild/output/src1672772893/src/github.com/****/node_modules/keycloakify/bin/keycloakify/keycloakify.js:180:87
767 | at step (/codebuild/output/src1672772893/src/github.com/****/node_modules/keycloakify/bin/keycloakify/keycloakify.js:67:23)
768 | at Object.next (/codebuild/output/src1672772893/src/github.com/****/node_modules/keycloakify/bin/keycloakify/keycloakify.js:48:53)
769 | at fulfilled (/codebuild/output/src1672772893/src/github.com/****/node_modules/bin/keycloakify/keycloakify.js:39:58)
770 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
771 | errno: -2,
772 | syscall: 'open',
773 | code: 'ENOENT',
774 | path: '/codebuild/output/src1672772893/src/github.com/****/build_keycloak/pom.xml'
775 | }
776 |
777 | Node.js v18.16.0
778 | error Command failed with exit code 1.
779 | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
780 |
781 | [Container] 2023/07/12 16:18:05 Command did not exit successfully yarn keycloakify exit status 1

Hi @garronej,
thanks for you quick reply.
The repo is sadly not open source, since it's a bigger repo containing our whole Keycloak setup.
Is there some example project I could try to use? I'm not a frontend dev, but maybe I can help to reproduce the bug in a minimal setup

Well ther's the starter project https://github.com/keycloakify/keycloakify-starter

OK, I'm getting the same error there as well.
Can you try:
git clone --recursive https://github.com/keycloakify/keycloakify-starter
docker run -it --rm -v $PWD/keycloakify-starter:/keycloakify-starter ubuntu:20.04

# in docker
apt update && apt install -y curl
curl -sL https://deb.nodesource.com/setup_16.x | bash -
apt install -y nodejs
npm install -g yarn
cd keycloakify-starter
yarn && yarn keycloakify

So, I investigated,
Can I get the directory structure of your project.
My guess is you have a "keycloak-theme" somewhere within your "src/" directory
but you don't have neither a "login" nor "account" nor an "email" directory directly within your "keycloak-theme" dir.
Is that the case?

Ok, I'm having a look to your repro setup thanks!

We do have a Login folder in src/KcApp/keycloak-theme, but no Account or Email.
We send out emails via a separate service that is called by an SPI, we are not using Keycloak for email templates.
Right now we are also not using the account client in Keycloak as well.

OK, I'm getting the same error there as well.
Can you try:
git clone --recursive https://github.com/keycloakify/keycloakify-starter
docker run -it --rm -v $PWD/keycloakify-starter:/keycloakify-starter ubuntu:20.04

# in docker
apt update && apt install -y curl
curl -sL https://deb.nodesource.com/setup_16.x | bash -
apt install -y nodejs
npm install -g yarn
cd keycloakify-starter
yarn && yarn keycloakify

If this doesen't work it's unreleated.
It's because we are supposed to build the app then build the theme.
So it's either yarn build && npx keycloakify or yarn build-keycloak-theme (there is a script as an alias)
yarn keycloakify is just an equivalent of npx keycloakify.  Keycloakify takes as main input the build dir.

We do have a Login folder in src/KcApp/keycloak-theme, but no Account or Email. We send out emails via a separate service that is called by an SPI, we are not using Keycloak for email templates. Right now we are also not using the account client in Keycloak as well.

I do not handle capitalized directory names. (Maybe I should). Try renaming Login to login.
Be carful though if you just rename a file or directory by changing only the case, git won't notice (it's such a pain).
I think we got things figured out now. It explain everything. Why it works on your colleags machines, they must have "login" uncapitalized in their local copy but it's capitalized when you pull a fresh repo.

It's because we are supposed to build the app then build the theme.

Ah OK, that makes sense. Then I can't reproduce the issue with the keycloakify-starter repo.
If I run yarn && yarn build && yarn keycloakify instead of yarn && yarn keycloakify it's working fine.
So at least it seems related to our setup.

I do not handle capitalized directory names

I think that might be the clue. Linux and MacOS handle capitalization differently (e.g. the mentioned git issue doesn't exist under Linux. If you change the capitalization under Linux it will show as a diff in git).
This would also explain why my colleagues on MacOS don't see the same issue. I would guess Keycloakify expects login and account, and under Linux it will not ignore the wrong capitalization of our folders, while it will ignore the capitalization under MacOS.
Thanks so much for the help. I'll fix the capitalization in our repo
Can you try

Faced with the same problem. Renaming helps.


Handle ” quotes

The unicode quote ” should be replaced by "
The Muslim League can come in later after we pass this Resolution”

Currently there are only 4 such occurrences of “ and ” in data.txt


Fix sizing of all the webpages

Fix the sizing of all the webpage such that it doesn't overflow horizontally (i.e. the bottom scroll bar doesn't appear).

Hello, I would like to work on this issue.
Can you assign this issue to me?

Assign me this issue


fix(@angular-devkit/build-angular): downlevel with non-loose ECMA compliance

This ensures that the ES5 bundles operate consistently with the ES2015+ bundles.
Fixes #15673

Note to caretaker: Size failure is expected due to an increased size from a more comprehensive downlevel of the application code.


Changes the hash format to suit ruby 2.0.0

Coverage remained the same at 97.63% when pulling 87540fd88a0f579a995533b3d855aa123a1ef1e9 on prasadsurase:fix-failing-specs into c30245509789e63463d1b62f612a54ed6c37086e on piotrmurach:master.

Coverage remained the same at 97.63% when pulling 87540fd88a0f579a995533b3d855aa123a1ef1e9 on prasadsurase:fix-failing-specs into c30245509789e63463d1b62f612a54ed6c37086e on piotrmurach:master.

Coverage remained the same at 97.63% when pulling 87540fd88a0f579a995533b3d855aa123a1ef1e9 on prasadsurase:fix-failing-specs into c30245509789e63463d1b62f612a54ed6c37086e on piotrmurach:master.

Thanks but I won't merge since this is old Ruby syntax change.


Socket does not return Ticket heading when duplicating tickets

Related to client-react issue #129

Fixed in commit https://github.com/N4SJAMK/teamboard-api/commit/805da60bffedba188289913ae2b8bd5851d58f8f


How to use with ncnn-vulkan??

AMD/Intel GPU compatibility is possible thanks to BlueAmulet's esrgan-ncnn-vulkan based on nihui's realsr-ncnn-vulkan running on Tencent's ncnn framework._
Is this something that is included or tertiary?  I wasn unable to discover .pth models at that repo.  A wandering noob is really glad to find a GUI solution but it still doesnt seem straightforward via the short Installation instructions.

It's included.
It's used when CUDA Fallback in the Settings is set to NCNN.


Fix UG

Closes #218 and closes #217

Codecov Report

Merging #294 into master will not change coverage.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##             master     #294   +/-   ##
=========================================
  Coverage     73.62%   73.62%
  Complexity      878      878
=========================================
  Files           123      123
  Lines          2859     2859
  Branches        445      445
=========================================
  Hits           2105     2105
  Misses          646      646
  Partials        108      108

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/seedu/address/MainApp.java
0.00% <0.00%> (ø)
0.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b0092d...0f31955. Read the comment docs.


Unable to pass arguments to aiohttp web.Application()

Description
I'm passing a large payload to one of the api endpoints and getting back an error from aiohttp
<class 'aiohttp.web_exceptions.HTTPRequestEntityTooLarge'>: Request Entity Too Large

But since this is service to service request, I'd like to bypass this limit by passing the documented parameter client_max_size:
web.Application(client_max_size=0)

However, connexion doesn't support passing an app options during initialization:
self.subapp = web.Application(
    middlewares=[
        problems_middleware,
        trailing_slash_redirect
    ]
)

Ref: https://github.com/zalando/connexion/blob/master/connexion/apis/aiohttp_api.py#L97
Expected behavior
Expected to be able to pass app specific configuration, specifically client_max_size
Actual behavior
Unable to configure the aiohttp app
Steps to reproduce
Make a POST request using an aiohttp initialized app and send a json payload that's larger than 1048576 Bytes (1 MB)
Additional info:
Allow users to pass app specific options as a map:
app = connexion.AioHttpApp(
  __name__,
  specification_dir='swagger',
  app_options={...} # or just options if there's no name conflict
)

Output of the commands:

python --version
Python 3.7.3

pip show connexion | grep "^Version\:"
Version: 2018.0.dev1

How solve this problem? "web_request.Request" object taking "client_max_size" from web.Application, but it not working with connexion even if i use monkeypatch.

I suspect the options parameter in https://github.com/zalando/connexion/blob/34c7cb1/connexion/apps/aiohttp_app.py#L71 should be passed through to the web.run_app call - this would be consistent with the Flask app in https://github.com/zalando/connexion/blob/b0b83c4/connexion/apps/flask_app.py#L65.
There's some special-casing of the options parameter in the run method which I don't really understand, so I'm not confident submitting a PR.

@daxartio @tomwatson1024 This is my current workaround.
_api = connexion_app.add_api(os.path.join(os.getcwd(), API_SPECS_PATH),
    base_path='/api',
    strict_validation=True,
    pass_context_arg_name='request'
 )
# TODO temp hack to remove limit on request size. connexion does not allow passing of options to web.Application
_api._client_max_size = 0

While this works it's not a long term solution. I'm guessing it's straightforward to add an extra parameter to support supplying options.
@hjacobs Can you review the suggestions above? this is probably straightforward.

@simo-eskalera, its not working :).
I had to create another application and set parametr for AioHttpApp only_one_api=False (P.S. its default value)

For example
app = connexion.AioHttpApp(__name__, specification_dir=f'{BASE_DIR}/spec/', )
api = app.add_api('openapi.yaml',...)
app2 = web.Application(client_max_size=...)
app2.add_routes([web.post('/files', upload)])
app.app.add_subapp('/upload', app2)

Resolved by #885

Thanks @cognifloyd. When will it release?

I do not work for Zalando, and I don't know when the next release will be.

I'll try to cut a new release.

Released: https://github.com/zalando/connexion/releases/tag/2.5.0