Mocking Nested Functions

Sorry I couldn't find the solution to this problem.
So I am writing a unit test for a sensor API. The API has a sensor.c, sensor.h and sensor_types.h file.
sensor.c has various functions needed to access the sensor, these functions are declared in the sensor.h and sensor_types.h has some constants. Also, there are HAL files for i2c communication.
Now, the real problem here is, consider the function given below,  sensor_init, funcA and funcB all are in same file sensor.c.
eg: int8_t sensor_init(some struct){
funcA{}
i2c_read()
funcb{}
i2c_write()
}
I was able to write unit tests and test the funcA and funcB as they don't depend on anything else. Also, for the i2c_read and write I was able to write unit tests.
My problem is writing unit test for sensor_init, I cannot directly mock funcA and funcB as they belong to the same file.
I tried creating a dummy header file containing the declaration of dummy_funcA and dummy_funcB, and mocking this header into the test file. I changed the name to avoid conflict. Is this a right approach.?
Also I don't understand how to handle this nested function situation? Any clue would be very helpful

This can be usefull  https://github.com/ThrowTheSwitch/Ceedling/issues/604
https://github.com/ThrowTheSwitch/CMock/issues/365

Closing this issue to cull open issues. Issue #936 collects issues related to this one.


[CI] Test failure - Failing Snapshot Tests

Snapshot tests are failing on test_objc on Circle CI:
RNTesterIntegrationTests
  testImageSnapshotTest, failed: caught "NSInternalInconsistencyException", "Test failed"
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:235

      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);
      RCTAssert(testModule.status == RCTTestStatusPassed, @"Test failed");
    }

  testSimpleSnapshotTest, failed: caught "NSInternalInconsistencyException", "Test failed"
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:235

      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);
      RCTAssert(testModule.status == RCTTestStatusPassed, @"Test failed");
    }

  testTheTester_ExpectError, failed: caught "NSInternalInconsistencyException", "RedBox errors during bridge invalidation: (
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:256

  }
  RCTAssert(errors == nil, @"RedBox errors during bridge invalidation: %@", errors);
  RCTAssert(batchedBridge == nil, @"Bridge should be deallocated after the test");

  testTimersTest, failed: caught "NSInternalInconsistencyException", "RedBox errors: (
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:233

    } else {
      RCTAssert(errors == nil, @"RedBox errors: %@", errors);
      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);

RNTesterSnapshotTests
  testARTExample, failed: caught "NSInternalInconsistencyException", "Test failed"
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:235

      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);
      RCTAssert(testModule.status == RCTTestStatusPassed, @"Test failed");
    }

  testLayoutExample, failed: caught "NSInternalInconsistencyException", "Test failed"
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:235

      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);
      RCTAssert(testModule.status == RCTTestStatusPassed, @"Test failed");
    }

  testScrollViewExample, failed: caught "NSInternalInconsistencyException", "Test failed"
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:235

      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);
      RCTAssert(testModule.status == RCTTestStatusPassed, @"Test failed");
    }

  testSliderExample, failed: caught "NSInternalInconsistencyException", "Test failed"
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:235

      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);
      RCTAssert(testModule.status == RCTTestStatusPassed, @"Test failed");
    }

  testSwitchExample, failed: caught "NSInternalInconsistencyException", "Test failed"
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:235

      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);
      RCTAssert(testModule.status == RCTTestStatusPassed, @"Test failed");
    }

  testTabBarExample, failed: caught "NSInternalInconsistencyException", "Test failed"
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:235

      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);
      RCTAssert(testModule.status == RCTTestStatusPassed, @"Test failed");
    }

  testTextExample, failed: caught "NSInternalInconsistencyException", "Test failed"
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:235

      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);
      RCTAssert(testModule.status == RCTTestStatusPassed, @"Test failed");
    }

  testViewExample, failed: caught "NSInternalInconsistencyException", "Test failed"
  /Users/hramos/git/react-native/Libraries/RCTTest/RCTTestRunner.m:235

      RCTAssert(testModule.status != RCTTestStatusPending, @"Test didn't finish within %0.f seconds", kTestTimeoutSeconds);
      RCTAssert(testModule.status == RCTTestStatusPassed, @"Test failed");
    }

	 Executed 26 tests, with 12 failures (12 unexpected) in 22.351 (22.370) seconds

2018-12-14 16:28:44.025 xcodebuild[59013:2826194] [MT] IDETestOperationsObserverDebug: 40.037 elapsed -- Testing started completed.
2018-12-14 16:28:44.026 xcodebuild[59013:2826194] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2018-12-14 16:28:44.026 xcodebuild[59013:2826194] [MT] IDETestOperationsObserverDebug: 40.037 sec, +40.037 sec -- end
Failing tests:
	-[RNTesterIntegrationTests testImageSnapshotTest]
	-[RNTesterIntegrationTests testSimpleSnapshotTest]
	-[RNTesterIntegrationTests testTheTester_ExpectError]
	-[RNTesterIntegrationTests testTimersTest]
	-[RNTesterSnapshotTests testARTExample]
	-[RNTesterSnapshotTests testLayoutExample]
	-[RNTesterSnapshotTests testScrollViewExample]
	-[RNTesterSnapshotTests testSliderExample]
	-[RNTesterSnapshotTests testSwitchExample]
	-[RNTesterSnapshotTests testTabBarExample]
	-[RNTesterSnapshotTests testTextExample]
	-[RNTesterSnapshotTests testViewExample]
** TEST FAILED **

Fixed in https://github.com/facebook/react-native/commit/0407d8c8fd94caa06c17dcc27a36ab1860dbc562.
This leaves three other tests that are failing, and I've opened separate issues to track their resolution:

https://github.com/facebook/react-native/issues/22695
https://github.com/facebook/react-native/issues/22696
https://github.com/facebook/react-native/issues/22697


Updated README with background/statement of need

Doing smaller PRs so that we keep track of the changes. Will do one for the sphinx documentation too

@JatGreer how is me adding a README breaking the build? xD

never mind, the bug was temporary (?). probably due to EMPIAR having some structure organisation

I rearranged a little bit to put the API before the CLI as I think that is the most important part! Please make sure it looks okay and then merge @mooniean


[RFR] [Feature] can set autoHideDuration for Notification's

resolves #911
the autoHideDuration can be set globally: <Notification autoHideDuration={5000} />
or even different for every message: showNotification('you_fail', 'warning', 30000)

theres no documentation where to add it though
i did not manage to find any docs for Notification

You're right, I suggest adding a section in the Theming chapter.

ok, tried adding some simple one

Thanks!


TronSigningOutput.json  have no "raw_data_hex" value

use https://api.nileex.io/wallet/getnowblock getinfo

let contract = TronTransferContract.with {
                    $0.ownerAddress = "TF17Fnj797ukLJsBDAKnmcKY8T4ihtv1MC"
                    $0.toAddress = "TB7QepEkcbyXJAfJA6diyTC1GPapHnUfGT"
                    $0.amount = 100000000
                }

                let input = TronSigningInput.with {
                    $0.transaction = TronTransaction.with {
                        $0.contractOneof = .transfer(contract)
                        $0.timestamp =<PHONE_NUMBER>000
                        $0.blockHeader = TronBlockHeader.with {
                            $0.timestamp =<PHONE_NUMBER>000
                            $0.number = 25879278
                            $0.version = 23
                            $0.txTrieRoot = Data(hexString: "197a099ef4cb93c80d242495b6f923939cd44bf05b7716f4fa96fde45c29163d")!
                            $0.parentHash = Data(hexString: "00000000018ae2ed66df8a69507a37b77fac79aaa0a99571a4b3eb77a545e58c")!
                            $0.witnessAddress = Data(hexString: "414bbb38ac8f2c666f56c16e0b21ccda04d18b6b6b")!
                        }
                        $0.expiration =<PHONE_NUMBER>000 + 10 * 60 * 60 * 1000
                    }
                    $0.privateKey = Data(hexString: "49fb3a81fda24c02e70fa77805c46818004ee0def691170bd31fbb1295691bfe")!
                }
        let output: TronSigningOutput = AnySigner.sign(input: input, coin: .tron)

outputjson: {"raw_data":{"contract":[{"parameter":{"type_url":"type.googleapis.com/protocol.TransferContract","value":{"amount":100000000,"owner_address":"413734aa0f627ff23915397113bcbe7b598896efa4","to_address":"410c852de139c14b31360df1e9642e8adc5a95c677"}},"type":"TransferContract"}],"expiration":1651167078000,"ref_block_bytes":"e2ee","ref_block_hash":"3e327c83ee4dec62","timestamp":1651131078000},"signature":["86468c1d0e08884470c003fcd8f42ead0755c6359fbee47fb2546608b3c57e7176ee0d2e5c47820d5b84bdf9a2b271fb2a28330f784f3eb6f4fa5511daa6795001"],"txID":"16533dc8af98a70795fcc7c519c3a8942a6429f1ceed484ae763772c533eee63"}
set json to https://cn.developers.tron.network/reference/broadcasttransaction
{
"code": "TAPOS_ERROR",
"txid": "16533dc8af98a70795fcc7c519c3a8942a6429f1ceed484ae763772c533eee63",
"message": "5461706f7320636865636b206572726f722e"
}

code : error
the output.json  have no "raw_data_hex" value

The reason for the fourth error is because of different node problems,
But another question is, is it possible to get raw_data_hex in walletcore? Or get the hex that can be used for broadcasting in the end?

the json you got from wallet core can be broadcasted to node directly


Support older Angular Versions

Feature Type
Enhancement
Feature Description
Might consider supporting older angular versions to help people migrating from older projects < Angular V18

Hi, thank you for the feedback!
This is something I would have loved to be able to do, but are a bit limited unfortunately. When starting this project we decided to go all in with signals, as a result relying on signal inputs, outputs, models etc.. this future proofs the project and means we wont need to do a large rewrite in future causing breaking changes to support things like zoneless or provide the best possible performance. As some of these features only came along in recent versions of Angular we aren't able to support older versions.
It may be possible to support Angular 17.3 or higher, I can't recall if we are relying on any APIs that were introduced only in 18, so I'll try and look into that and see if there is anyway we could support even the latest minor of v17.


Fix invalid function type casts

This is what my new gcc-warning "-Wcast-function-type" found so far.

Will fix the review comments in the afternoon, and do a squash-commit, unless someone objects.

I am renaming bio_info_cb to BIO_info_cb.
I have one question:
what do I do with these?
util/private.num:bio_info_cb                             datatype
util/indent.pro:-T bio_info_cb

rename both of those, also.

rebased, fixed indentation and renamed bio_info_cb=>BIO_info_cb.

Note: Today I applied the warning patch for gcc-trunk,
so we need to fix the function types one way or the other.

rebased.

Merged to master.  Thanks!


Any benchmark on ws recv?

I saw the benchmark is about ws server, are there any bench mark about ws recv message?

The benchmark is a recv-write echo loop:
https://github.com/denoland/fastwebsockets/blob/70a4a98c3927b400d5db002441788799c9e58846/examples/echo_server.rs#L31-L35


Fix incorrect pixel format bit count check

Fixes #659
Missing bit shift of 8 to the right! But we already have a function for this, so reuse it

Closing, as libgdiplus is deprecated


How to add a component with event handler?

I created an app menu item for a sample counter and temperature components that I would like to add. I clone the repo and have not use the rf-init command. I am on windows 10.
config.py
"navigation": {
    "home": {
        "getting started": "start.py"
    },
    "app": {
        "introduction": "intro.py",
        "temperature": "temperature.py",
        "counter": "counter.py",
    }
},

The counter.py has this entry.
# Main content area: takes in rx.Componenets and passes them to base file
def __components__(self):
    return [
        # add your components below #
        CounterComponent()
        # end your components above #
    ]

That CounterComponent() is an import from my content folder.
from content.counter import CounterComponent

The content folder is under the reflexify folder.

My content/counter.py
from app.states.mainState import MainState
import reflex as rx

class CounterState(MainState):
    count: int = 0

    def increment(self):
        self.count += 1

    def decrement(self):
        self.count -= 1

def CounterComponent():
    return rx.box(
        rx.text('Counter App', font_size='1.5em'),
        rx.spacer(),
        rx.hstack(
            rx.button(rx.icon(tag='add'), color='green',
                      on_click=CounterState.increment
            ),
            rx.text(CounterState.count),
            rx.button(rx.icon(tag='minus'), color='red',
                      on_click=CounterState.decrement
            )
        )
    )

What is the issue?
The issue is that when you press the plus or minus button, the counter is unresponsive, meaning if you press the plus sign, the counter shown will not change, similar to minus sign.

I tested this on my end and it worked:

This is what I did:

In the file where you want to put the counter:

from app.core.base import RxBasePage
from app.helpers.nav_helpers import NavHelper
import reflex as rx
from app.states.counterState import CounterState

def CounterComponent():
    return rx.box(
        rx.text("Counter App", font_size="1.5em"),
        rx.spacer(),
        rx.hstack(
            rx.button(
                rx.icon(tag="add"), color="green", on_click=CounterState.increment
            ),
            rx.text(f"{CounterState.count}"),
            rx.button(
                rx.icon(tag="minus"), color="red", on_click=CounterState.decrement
            ),
        ),
    )

class RxPage:
    # Title of page: must match high-level key in config.py
    def __title__(self):
        return "Reflexfy"

    # Page route path: must follow /parent-key/file-name *without .py extension*
    def __route__(self):
        return "/"

    # Left navigation panel: automated based on config navigation order
    def __left_navigation__(self):
        nav: list = NavHelper.__get_left_navigation__(self.__title__())
        return NavHelper.__set_left_navigation__(nav)

    # Right navigation panel: TBD
    def __right__navigation__(self):
        return []

    # Mobile navigation drop down
    def __mobile_navigation__(self):
        return NavHelper.__get_left_navigation__(self.__title__())

    # Main content area: takes in rx.Componenets and passes them to base file
    def __components__(self):
        return [CounterComponent()]

    # Build method: creates a new instance for the page above
    def build(self):
        page = RxBasePage(
            self.__components__(),
            self.__left_navigation__(),
            self.__right__navigation__(),
            self.__mobile_navigation__(),
        )
        return page.build()

Place your states all in the states folder - it'll be easier to organize and keep track of. Inside of states i created a file called counterState.py and placed the following code as such:

from .mainState import MainState

class CounterState(MainState):
    count: int = 0

    def increment(self):
        self.count += 1

    def decrement(self):
        self.count -= 1

This i what I did and the counter worked.
Don't place your own components, like the counter, outside the app folder. This messes with the path, even if you're using Reflex plainly, always place the files inside the main directory.  So for example, your content folder, place it inside the app folder and this way you'll have access to it easily.

Thanks it worked.


Android Release 600017[Bug report]

Version
0.7.0
Platforms
Android
Device Model
xiao mi (Android 12)
flutter info
[✓] Flutter (Channel stable, 3.13.4, on macOS 13.5 22G74 darwin-arm64, locale zh-Hans-CN)
    • Flutter version 3.13.4 on channel stable at /Users/wuning/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 367f9ea16b (7 days ago), 2023-09-12 23:27:53 -0500
    • Engine revision 9064459a8b
    • Dart version 3.1.2
    • DevTools version 2.25.0

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/wuning/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

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

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

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

[✓] Connected device (4 available)
    • iPhone测试 (mobile)          • 5225363e0ccb1ba45c093a4c51aa6f04ca9716e0 • ios            • iOS 16.3.1 20D67
    • iPhone 14 Pro Max (mobile) • 7AD633DA-085A-4B2B-A6D8-E8B0D53241B8     • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-4
      (simulator)
    • macOS (desktop)            • macos                                    • darwin-arm64   • macOS 13.5 22G74 darwin-arm64
    • Chrome (web)               • chrome                                   • web-javascript • Google Chrome 116.0.5845.187

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

How to reproduce?
In the Android version, the signatures of debug and release are consistent. When using the one-click login function, it can be used normally on debug. When using the release package, error 600017 will be reported. After some troubleshooting, I found that the parameters of initSDK are the same and the error message is ‘SDK null’
Logs
No response
Example code (optional)
No response
Contact
<EMAIL_ADDRESS>

同样遇到此问题，应该是插件在release打包时候进行了混淆导致的问题

已经解决 在android/app/build.gradle  中的 buildTypes =>release 配置中 将 minifyEnabled、shrinkResources 改成false,关闭打包体积压缩代码混淆即可

已经解决 在android/app/build.gradle 中的 buildTypes =>release 配置中 将 minifyEnabled、shrinkResources 改成false,关闭打包体积压缩代码混淆即可

请问有遇到release包不显示图片的问题吗？


Read .env for s3 credentials

This resolves #1 and easier to work with multiple copies/projects.
Don't forget to add .env to .gitignore 🤣
I'm new to Golang so please criticize if I'm not doing it right :D

I only added the action to read the variables from .env, it should not prevent you from using the variables set by other tools.

This I understand. My point is circumvent what should be handled by the package and what should not. I'm going to take a few days with this at the back of my mind.

I think a program should read a file in such a hidden way. Maybe we can add a cli option to read the environment from a file, but it shouldn't be hidden like this.
For the moment, I'll close this PR. However, I understood that some experienced errors might come from the fact that the environment is not properly set, thanks for the debugging in the issue https://github.com/nicolas-graves/lfs-s3/issues/1 . I've added some error handling in this case in commit f575b78.


Add AmiGemini.

close #102 opened by @gskoljarev
Also mention that Galacteek also supports IPFS (close #168)

@weakish Great! Thank you 👍


Formalize AMDS release approach and revise history

@codecubepi , @npetersen2 -- collecting a plan on how to handle AMDS releases:
Versioning Approach
Per this comment lets plan to

have the AMDS be on its own release numbering system which follows the same approach as the AMDC --> i.e. vA.B.C, changelog, and use of tags/releases
we'll add to the AMDC docs a requirements section that indicates which version of the AMDS every release of the AMDC requires; we anticipate placing this near the top of AMDS Interface doc
further out in the future, we may set the AMDC up to query the AMDS at boot-up to determine the firmware version compatibility

Revise history
Looking through the AMDS commit history I suggest the following:

We create a V1.0.0 release by branching off of 3e2b936 with a commit that adds a changelog. We create a V1.0.x branch pointing to this commit.
We merge the v1.0.x branch into develop (which has the new code necessary for the timing manager since #48 was merged)
We proceed with a v1.1.0 release: create a new commit on develop that adds a changelog entry, create a v1.1.x branch here.
We delete the v1.3.x tag / release (because now we have the v1.1.0 release)
We create a new section near the top of AMDS Interface doc of what version of AMDS is required for each release of AMDC. I think it will be a table with row 1 showing AMDC v1.0.x - v1.2.x   |  AMDS >= 1.0; AMDC 1.3.x  |  AMDS >= 1.1

(We'll set up default branches and branch protection rules in AMDS just like AMDC to point to v1.1.x etc)

@codecubepi , @npetersen2 -- one question: with the latest upgrades for the timing manager (#48), is the current AMDS code still compatible with AMDC v1.2 and lower?

codecubepi , npetersen2 -- one question: with the latest upgrades for the timing manager (#48), is the current AMDS code still compatible with AMDC v1.2 and lower?

Umm... maybe? The old AMDC Firmware (pre-v1.3) sends two interrupts to the AMDS: one tells it to sample its sensors (SYNC_ADC), the second tells it to return the latest data (SYNC_TX). With the Timing Manager introduced in v1.3, the idea is that a sensor interface receives one signal from the TM telling it to sample data, and once data is sampled, it is assumed that it should be returned immediately. It's a different philosophy of data collection. Therefore in the new AMDS code, the SYNC_TX interrupt has been removed, as the AMDS will both collect and return data with each SYNC_ADC interrupt.
In the old AMDC-Firmware, SYNC_ADC is already aligned with the PWM carrier. With the new AMDS code sending back the data automatically with each occurence of the SYNC_ADC signal, you would have to make sure the v1.2 AMDC driver is expecting the data. So it may be possible if a user can guarantee that their control code is calling motherboard_request_new_data() in sync with the PWM carrier and SYNC_ADC signal. But without the Timing Manager to synchronize the control code to the PWM carrier (and by extension the SYNC_ADC signal), I'm not sure how this guarantee could be made. Note that this hasn't been tested, it's just my speculating.

Thanks @codecubepi. So this brings up a question:
in the AMDC, vA.B.C:

incrementing B for a new release signifies a minor release, which is the addition of a new feature and is supposed to be safe for everyone to upgrade to;
incrementing A signifies a major release, which likely breaks / changes old functionality and upgrading to this requires changes to user code.

If we employ the same logic to the AMDC, is this newest release actually v2.0.0 because it potentially breaks user code that is running on the AMDC?
Maybe the counter argument is that if a user upgrades both the AMDC and the AMDS at the same time, their user code stays the same and doesn't need changing?

I agree, is is a bit hairy to say the v1.3.0 release is really a "minor release" but I argue it actually is:
Apart from some function renaming (which yes, theoretically pushes it to a major release, but in practice, is just fixing silly names from years past), the v1.3.0 is indeed backwards-compatible for users. Users can download the new code, and their existing user code should work as before.
The difference here is that, the AMDS changed, which is a separate system....so, really, this new AMDS code should be v2 and the old AMDS code should be v1. And, in the AMDC firmware, the new v1.3.0 simply requires >= v2 while the previous AMDC firmware (i.e., v1.2.0 and before) require < v2 for the AMDS

Thanks!  I'll update the issue description accordingly.


feat(chat): support model reference instead of id into conversationId (Issue #1811)

Description:
support model reference instead of id into conversationId
Issues:

Issue #1811

Checklist:

[x] the pull request name complies with Conventional Commits
[x] the pull request name starts with fix(<scope>):, feat(<scope>):, feature(<scope>):, chore(<scope>):, hotfix(<scope>): or e2e(<scope>):. If contains breaking changes then the pull request name must start with fix(<scope>)!:, feat(<scope>)!:, feature(<scope>)!:, chore(<scope>)!:, hotfix(<scope>)!: or e2e(<scope>)!: where <scope> is name of affected project: chat, chat-e2e, overlay, shared, sandbox-overlay, etc.
[x] the pull request name ends with (Issue #<TICKET_ID>) (comma-separated list of issues)
[x] I confirm that do not share any confidential information like API keys or any other secrets and private URLs

/deploy-review

/deploy-review

/deploy-review


Update WINTER load order

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage remained the same at 81.906%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

mirar/pipelines/winter/load_winter_image.py
0
3
0.0%

Files with Coverage Reduction
New Missed Lines
%

mirar/pipelines/winter/load_winter_image.py
2
63.31%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
8687

Relevant Lines:
10606

💛  - Coveralls


Interference Pattern in Integrated Terminal (Ubuntu)

When a computer running Ubuntu 18.4 goes into standby and is subsequently unlocked the integrated terminal is not viewable but displays an interference pattern.

Steps to Reproduce:

Launch Visual Studio Code 1.26.1
Let computer go into standby
Unlock computer

Does this issue occur when all extensions are disabled?: No
Extensions installed:

C/C++
Eslint

This is caused by Chromium corrupting the canvas, it will likely get fixed eventually when Chromium/Electron fixes it. In the meantime you can hide/show the terminal or resize the window to fix up the rendering


avoid modification of the cycle variable

This is a small stylistic improvement which I think makes the code a lot more understandable. Can you check that this change is correct?
To be reviewed after #3 is merged.

This is not correct in PPO because of this line: https://github.com/lcswillems/pytorch-a2c-ppo/blob/master/torch_rl/torch_rl/algos/ppo.py#L96
But I can replace the inds in this line by inds+i+1 but I am not sure it makes the code clearer.

Nice catch, I added the fix. I think it does make the code cleaner, because modifying the variable in for loop  is a really nonstandard practice.


Registration as provider failed

Describe the Bug
Registration with email and password results in a 500, next try with the same credentials gives: "Benutzer existiert bereits, wollen sie sich stattdessen anmelden? " Login with the credentials fails with wrong name or password.
Expected Behavior
Registration should work

This is a duplicate of #111


horizontal scroll problems in collapsing toolbar

I have the calendar view in a collapsing toolbar. The problema I have, is that horizontal scrolling (to change between months) is not smooth, meaning that it gets interrupted by the vertical scroll of the RecyclerView/CollapsingToolbar.
I am not sure where the problema comes from, but probably from this library, because I did not observe this with other calendar views.
(If somebody knows how to fix this but has no time, I probably can try to do it. I just do not know where to start.)

I can have a look at some time and see if I can test it with CollapsingToolbarLayout or RecyclerView and fix the problem. It would be good if you can upload an example but it's not required. Maybe an experiment can be to overide the ``onTouch()``` for RecyclerView for example and disable scrolling to see what happens.

I've had a quick look at CollapsingToolbarLayout, I havn't looked at the android source code for this yet. But my hunch is that CollapsingToolbarLayout doesn't play nice with GestureDetector and it might be something todo with how it handles events inside onInterceptTouchEvent.
I never intended it to be used inside a CollapsingToolbarLayout/RecyclerView so it maybe a little more difficult todo. I think maybe embeding the Calendar inside a custom view pager might fix the problem. But I will keep this ticket posted after I look through the android source code.

@zilimojo
I had also the same problem and I have fixed it with overriding app:layout_behavior to my own layout behavior which returns false in onInterceptTouchEvent. (This disables vertical scroll for the CollapsingToolbarLayout)
Demo:

See for details in this repository. Specifically this and this file.
@SundeepK
Thanks for the great library! I was been searching for some time for a calendar view similar to the Google Calendar app.

Well done! Yes looks like my hunch was right. I was planning to provide a custom Layout to go with the library that overrided the behaviour but you have done some of that work. Many thanks.
I'll spend some time over the weekend to look further into this.

As an update, I've been experimenting with some animations for opening/closing the calendar. This way you don't necessarily have to embed the calendar within the toolbar. And the you will be able to open/close the calebdar via method call.
Note the gif is slowed down for some reason, possibly when I compressed it, not sure. Might upload a better one when I get time.

I have merge a potentail fix for this bug to master, hopefully it will fix the problem. If anyone is interested, you can important the library locally and test it out. Will release a new version once I have made a few changes to master.

I have released a new version:
dependencies {
    compile 'com.github.sundeepk:compact-calendar-view:1.8.5'
}

I think this should resolve this issue, have a go and let me know if this works.

Hello,
I used your Calendar inside a RecyclerView and had the same issue. The fix you applied still prevents vertical scrolling if we're touching inside the CalendarView. The problem is that you're preventing the parent to intercept touch as soon as the CalendarView is touched, no matter if the touch is a simple click, a scroll (vertical or horizontal) or anything else.
To correct that, I've made 2 changes :

For the horizontal scrolling, there is actually a method in View (that appeared in API 14) that sets if a given View can scroll horizontally and fortunately, the ViewPager reads it. We simply need to override the method "canScrollHorizontally" and return true :
https://developer.android.com/reference/android/view/View.html#canScrollHorizontally(int)

For the vertical scrolling, I resolved it using the same trick you used for #82 but limited to a horizontal scroll : when I detect that the Calendar is scrolled horizontally, I prevent the parent to scroll. And I then re-allow it to intercept scrolling when the scroll is finished.

I'll open a Pull-Request with those modifications if you're interested in reviewing them.

@JulienArzul Thanks for the pull request, I've left a comment.

I believe this problem should now be fixed. I have tested this inside a ViewPager andToolbar (as shown above). I'll test inside a RecyclerView at somepoint just to be sure, before releasing a new version. Perhaps, I can add some additional acitivty to the sample to demonstrate that.

Fixed in version:
dependencies {
    compile 'com.github.sundeepk:compact-calendar-view:1.9.4'
}


change text for realistic feel to the website

i will be updating this text fieds with the text which is in english and is relevant to website theme.
assign this issue to me

Can you assign this issue to me?


Editorconfig scans & changes everything on open project

Hello,
I have hard time dealing with editorconfig and projects with huge dependencies. For example I have following editorconfig (instead of * I use include):
[{/*,/assets/*]
indent_tyle = space
indent_size = 2

yet every project opening is cpu & I/O intensive with log filling with messages from plugin for dirs like bower_components, dist, node_modules (all of those are in gitignore too!)
Is there a way for plugin to ignore some dirs for editorconfig without hiding them form netbeans?

I'd rather have editorconfig apply changes only on save. Or even only on format. There's more conversation in #74.

/cc @FinBoWa

+1 @jyrkij applying changes without even opening the file is a nogo. please just reformat on an explicit call to format or at least give a chance to disable auto reformatting.

I created an issue for that: https://github.com/welovecoding/editorconfig-netbeans/issues/80
Please follow that issue (comment it with +1), when you want to watch the status of this feature.


[Bug] 0.47.0 TypeError: Cannot read properties of undefined (reading 'CI')

Reproducible in vscode.dev or in VS Code Desktop?

[ ] Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

[ ] Not reproducible in the monaco editor playground

Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Reproduction Steps
vue3 vite
Actual (Problematic) Behavior
TypeError: Cannot read properties of undefined (reading 'CI')
at<EMAIL_ADDRESS>(platform.js:42:27)
at __init (chunk-GFT2G5UO.js?v=536ba6aa:15:56)
at<EMAIL_ADDRESS>(async.js:9:1)
at __init (chunk-GFT2G5UO.js?v=536ba6aa:15:56)
at<EMAIL_ADDRESS>(colorRegistry.js:6:1)
at __init (chunk-GFT2G5UO.js?v=536ba6aa:15:56)
at symbolIcons.js:7:1
Expected Behavior
Can compile normally
Additional Context
No response

I faced to the same issue at https://github.com/microsoft/monaco-editor/issues/4402 but nothing update in version 0.47.0.
It started from https://github.com/microsoft/vscode/pull/200935
Currently, I still keep using version 0.45.0 instead. So bad


Drop AST for libraries after final analysis

Fixes #1088
Includes https://github.com/microsoft/python-language-server/pull/1133

Remove AST nodes from types
Cache AST nodes at module level so they cache can be cleared when analysis is done.
Occasionally analysis is requested again even when previous was claimed to be final, so add code to reload and reparse the file. This may be related to #907.
Keep AST for stubs generated by the scraper since some functions there require evaluation with arguments
Remove reference to the AST root from nodes, reducing node size.
Add qualified name to types in preparation for their identification in persistent models

One thing to check, CompletionTest.InImport is consistently failing for me.
 InImport
   Source: CompletionTests.cs line: 745
   Duration: 11 sec

  Message:
    Expected completion list items to have label 'TestCase', but it has none.
  Stack Trace:
    at LateBoundTestFramework.Throw(String message) in LateBoundTestFramework.cs line: 16
    at AssertionScope.FailWith(String message, Object[] args) in AssertionScope.cs line: 225
    at CompletionResultAssertions.HaveAttribute(IEnumerable`1 attributes, Func`2 attributeSelector, String itemNameSingle, String itemNamePlural, String because, Object[] reasonArgs) in CompletionResultAssertions.cs line: 113
    at CompletionResultAssertions.HaveLabels(IEnumerable`1 labels, String because, Object[] reasonArgs) in CompletionResultAssertions.cs line: 95
    at CompletionResultAssertions.HaveLabels(String[] labels) in CompletionResultAssertions.cs line: 91
    at CompletionTests.InImport() in CompletionTests.cs line: 789

   Open additional output for this result

Passes on 2017 and 2019, although there is some flakiness in tests that involve imports, I had 3 tests (different) failed but passed on rerun (re compile, datetime delta and some other). This is actually b/c 'analysis ready' event on the module is set when one of the sessions completes. Hence if module is analyzed before stub, as we have in the bug, analysis may end up incorrect as await returns with the analysis without the stub and not with the final one, which happens later. This happens in master as well.


Wait external event to continue workflow execution

Hello @danielgmyers. I am trying some tools for a new project and Amazon SWF looks like a nice alternative. Googling about it, I found your library, and it seems like it would make coding the integration with SWF a lot easier. One thing i am not certain is how to architect a workflow with a step that pauses and wait for an external event (a sqs listener for example). For what i have seen from the examples it isn't possible, but maybe i missed something. Is it possible with this client?

Not directly. I'm going to keep this issue open while I consider ways to build this kind of thing directly into the library.
In the meantime the way I typically handle this kind of scenario is to have a workflow step that just checks whether it's safe to proceed (e.g. check if the resource is ready, if there's a message in the queue, if the database record is present, etc) and if not, retry by throwing an exception or returning StepResult.retry().
Something like this:
public class WaitForResource implements WorkflowStep {
    @StepApply
    public StepResult checkIfReady(@Attribute("resourceId") String resourceId) {
        if (!resourceIsReady(resourceId)) {
            return StepResult.retry("Resource isn't ready yet!");
        }
        return StepResult.success();
    }
}

By default this will do exponential backoff on the retries, so you may want to tune the retry timing parameters (see @StepApply for more details).
This won't work in all cases (like waiting for a push notification) but hopefully it's enough to get started.

Ok. Thanks for the fast response.


Models

Hello! Congratulations on your work! I wanted to ask if you could make the trained models mentioned in the paper available. Thank you very much!

Hi,
Thank you for showing interest in our work. Unfortunately, our project was carried out with an external company and we will be only sharing the dataset and the evaluation script. We used the Tensorflow Object Detection API (https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/) for training the models.
Thank you!

Well, congrats for turning in that direction and thank for your response.

Well, congrats for turning in that direction and thank for your response.


d3.scaleRadial?

To avoid introducing distortion with radial bars, you need a scale that smoothly varies from d3.scaleSqrt when the inner radius is zero to d3.scaleLinear when the inner and outer radius are equal. It’s the same principle as uniform annulus sampling.
Here’s a simplified implementation I came up with:
function scaleRadial() {
  var domain = [0, 1],
      range = [0, 1];

  function scale(x) {
    var r0 = range[0] * range[0], r1 = range[1] * range[1];
    return Math.sqrt((x - domain[0]) / (domain[1] - domain[0]) * (r1 - r0) + r0);
  }

  scale.domain = function(_) {
    return arguments.length ? (domain = [+_[0], +_[1]], scale) : domain.slice();
  };

  scale.range = function(_) {
    return arguments.length ? (range = [+_[0], +_[1]], scale) : range.slice();
  };

  scale.ticks = function(count) {
    return d3.scaleLinear().domain(domain).ticks(count);
  };

  scale.tickFormat = function(count, specifier) {
    return d3.scaleLinear().domain(domain).tickFormat(count, specifier);
  };

  return scale;
}

For comparison, here’s what a linear scale looks like:

The area of the largest bar, California, is exaggerated because the bar gets wider as it extends away from the center of the circle: the circumference grows linearly with radius. But a sqrt scale over-fixes the problem, causing the small bars to appear too large:

A sqrt scale only works when the inner radius is zero. Here is area-proportional result using the proposed “radial” scale:

Or like so:
function square(x) {
  return x * x;
}

function radial() {
  var linear = d3Scale.scaleLinear();

  function scale(x) {
    return Math.sqrt(linear(x));
  }

  scale.domain = function(_) {
    return arguments.length ? (linear.domain(_), scale) : linear.domain();
  };

  scale.nice = function(count) {
    return (linear.nice(count), scale);
  };

  scale.range = function(_) {
    return arguments.length ? (linear.range(_.map(square)), scale) : linear.range().map(Math.sqrt);
  };

  scale.ticks = linear.ticks;
  scale.tickFormat = linear.tickFormat;

  return scale;
}

Looks rather specific, and I wonder if a more generic version wouldn't be more useful.
Something like rescale(s = d3Scale.scaleLinear(), x =>   Math.sqrt(s(x)));

It doesn’t feel too-specific to me, at least any more specific than implied by the name “scaleRadial”. It’s like a linear scale mapping to circumference, given the visual prominence is proportional to the square of the radius.
Though I don’t understand your proposed generic alternative. #62 refers to a transformation of the domain, and that’s what d3.scalePow and d3.scaleLog implement. This is special because it’s a transformation of the range.

An alternative would be a constructor that allows to create scaleRadial by specifying a base scale (linear), a forward (sqrt) and an inverse (square) function. (I forgot the inverse in my previous message). It's simple enough though, so maybe it's not needed.

@mbostock Specifically signed in to thank you for this implementation: it turned out to be precisely what I needed for a radial scatterplot chart.


how to set date picker with range for 2 date picker?

how to set date picker with range with 2 date picker?
(i know for bootstrap-datetimepicker, but don't on meteor)

Take a look at this gist.
Take note of ./meteor/packages - using the 4.x version of tsega:bootstrap3-datetimepicker currently breaks with meteor-autoform-bs-datetimepicker.

support V4 now

Closing all issues. The plugin was a proof of concept which others have forked and made better alternatives.


added phpstan types to deserializer functions

@staabm I made a couple of comments above. See what you think...


Increase default maximum size of ipsets and make configurable.

Fixes #768.

retest this please

FV failure is due to FV test problem, should be resolved when the development branch is merged in later.

retest this please

OK, found the comments explaining the delete.  Looks good, but I would like to see a successful FV.

retest this please

retest this please

retest this please

retest this please

Another FV failure due to a timeout at install time.


Fix Traceflow IPv6 e2e error

Fix e2e issue introduced by https://github.com/vmware-tanzu/antrea/pull/2029#pullrequestreview-631984458

/test-all

/test-all
/test-ipv6-all
/test-ipv6-only-all

Codecov Report

Merging #2059 (457233f) into main (b8046f8) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2059      +/-   ##
==========================================
- Coverage   41.44%   41.41%   -0.04%
==========================================
  Files         131      131
  Lines       16437    16437
==========================================
- Hits         6812     6807       -5
- Misses       9046     9049       +3
- Partials      579      581       +2

Flag
Coverage Δ

unit-tests
41.41% <ø> (-0.04%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/apiserver/certificate/certificate.go
69.86% <0.00%> (-6.85%)
:arrow_down:

/test-hw-offload

/test-hw-offload

@gran-vmv The HW offload CI is broken I think, no need to try running it
cc @AbdYsn

Unrelated errors for "jenkins-ipv6-ds-e2e"


conditional field in schema definition

What version of CUE are you using (cue version)?

$ cue version 0.0.15 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system are you using?
linux
What did you do?
test.cue
S :: {
	if true {
		b: int
	}
}
s: S
s: {
	b: 100
}

$ cue eval test.cue

What did you expect to see?
no errors
What did you see instead?

s: field "b" not allowed in closed struct:
    ./test.cue:8:5

This is fixed in the new evaluation (https://github.com/cuelang/cue/releases/tag/v0.3.0-alpha1) so marking this as closed

awesome, thanks :+1:

This issue has been migrated to https://github.com/cue-lang/cue/issues/279.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


Collier County (Naples, Marco Island, Immokalee) has an extremely bloated funding proposal for the sheriffs department while neglecting community necessities. Please help.

Here are the county commissioners:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Here is the budgeting decision at stake:
42% of the collier county budget for 2021 is being spent on law enforcement and only 4% is going towards emergency services, 0.39% towards the health department and .08% towards veteran services.
In Collier County we have an absurd amount of police officers. We are notorious for that. We are also known for having one of the highest economic disparities and one of the largest spikes in Covid 19 which disproportionately affects the Immokalee farmworkers who have little to no access to healthcare.
Here is the email that I have created for example but I believe it needs some tuning up:
I am a resident of Collier County and I am writing to demand that the county commissioners adopt a budget that prioritizes community wellbeing and redirects funding away from the police.
I DEMAND THAT YOU, MY LOCAL OFFICIALS, WILL:

Vote no on all increases to police budgets.
Vote yes to decrease police spending and budgets.
Vote yes to increase spending on health care, education and community programs that keep us safe.

We need to defund the Collier County Police Department. We need a budget that adequately and effectively meets the needs of Collier County residents during the pandemic and well past it. We need a budget that supports our communities.
42% of the collier county budget for 2021 is being spent on law enforcement and only 4% is going towards emergency services, 0.39% towards the health department and .08% towards veteran services.
In the time of COVID-19, and specifically in Collier county where we have seen a huge spike in cases, there is no excuse for the amount of funds to go towards law enforcement proposed for the 2020-2021 fiscal year while neglecting the need to fund the health department, veteran services, mental health services and emergency services.
We demand that the County Commissioners meaningfully defund the CCPD. We join the calls of those across the country to #DefundThePolice. We demand a budget that adequately and effectively meets the needs of at-risk Collier County residents during this trying and uncertain time, when livelihoods are on the line. We demand a budget that supports community wellbeing.

Thank you for submitting your city to defund12.org! Your request is now in the queue for review and publishing. We’ll reply here if we have any questions.

Oh that’s great news! Thanks y’all. I really look forward to spreading this
email throughout the community.
On Mon, Jun 15, 2020 at 1:26 PM mahrer<EMAIL_ADDRESS>wrote:

Thank you for submitting your city to defund12.org! Your request is now
in the queue for review and publishing. We’ll reply here if we have any
questions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/defund12/defund12.org/issues/1565#issuecomment-644266497,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP6LIT5HKKHGTQOJJL3H7OLRWZKSRANCNFSM4N5U2JJA
.

Edits below:

Send to:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Message:
Dear County Commissioners,
I am a resident of Collier County and I am writing to demand that the County Commissioners adopt a budget that prioritizes community wellbeing and redirects funding away from the police.
42% of the proposed FY2020-2021 Collier budget is being spent on law enforcement, while only 4% is going towards emergency services, 0.39% towards the health department, and .08% towards veteran services. In Collier County, we are notorious for having both an absurd amount of police officers as well as one of the largest spikes in COVID-19, which disproportionately affects the Immokalee farmworkers who have little to no access to healthcare. There is no excuse for overfunding our law enforcement while neglecting the health department, veteran services, mental health services and emergency services.
I demand that you, my County officials, will:

Vote no on all increases to police budgets.
Vote yes to decrease police spending and budgets.
Vote yes to increase spending on health care, education and community programs that keep us safe.
Defund the Collier County Police Department. We need a budget that adequately and effectively meets the needs of Collier County residents during the pandemic and well past it. We need a budget that supports our communities.

I demand that the County Commissioners meaningfully defund the CCPD. We join the calls of those across the country to #DefundThePolice. We demand a budget that adequately and effectively meets the needs of at-risk Collier County residents during this trying and uncertain time, when livelihoods are on the line. We demand a budget that supports community wellbeing.
Sincerely,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]

This is great. What do I do next?


Function to format any code

For future versions I think it would be appropriate to add natively the option to format any code and not depend on extensions like Beautify (terrible, it is impossible for me to uninstall, I can only disable it) that only format Javascript, JSON, CSS, Sass, and HTML, being languages insufficient for many like me, working in C++, C#, PHP, etc..
Visual Studio Community brings this option natively, as does Sublime Text and Atom. Why not add it to VSCode?
Greetings and thank you.

I apologize if I didn't express myself well from the beginning, perhaps I had to indicate that in the VS Code Marketplace there isn't an extension that fulfills this purpose; there are different extensions for different languages, each one having to be installed separately, but what I suggested is that they integrate this function in a native way without needing to install extensions since this is something that other code editors have been incorporating for a long time, including their big brother Visual Studio and it's a good idea.
Greetings and thanks again.


gRPC server does not shutdown after sbt run

If you start a server using sbt run (as we often do in tutorials) and then kill it with Ctrl-C, it keeps running. If you try to run it again, it fails to startup because the port is in use.
When you shutdown sbt you get an exception:
[error] (run-main-0) java.lang.InterruptedException
[error] java.lang.InterruptedException
[error]         at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1040)
[error]         at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1345)
[error]         at cats.effect.internals.IOPlatform$.$anonfun$unsafeResync$2(IOPlatform.scala:51)
[error]         at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
[error]         at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:57)
[error]         at scala.concurrent.package$.blocking(package.scala:146)
[error]         at cats.effect.internals.IOPlatform$.unsafeResync(IOPlatform.scala:51)
[error]         at cats.effect.IO.unsafeRunTimed(IO.scala:325)
[error]         at cats.effect.IO.unsafeRunSync(IO.scala:240)
[error]         at cats.effect.internals.IOAppPlatform$.main(IOAppPlatform.scala:25)
[error]         at cats.effect.IOApp.main(IOApp.scala:67)
[error]         at cats.effect.IOApp.main$(IOApp.scala:66)
[error]         at com.example.Server$.main(Server.scala:7)
[error]         at com.example.Server.main(Server.scala)
[error]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error]         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error]         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error]         at java.base/java.lang.reflect.Method.invoke(Method.java:567)

Confirmed that this is NOT fixed by #830. It's still happening.

Also when we use IOApp?

Yes. This is the code I tested with:
package com.example

import cats.effect._
import com.example.hello.Greeter
import higherkindness.mu.rpc.server._

object Server extends IOApp {

  implicit val greeter: Greeter[IO] = new HappyGreeter[IO]

  def run(args: List[String]): IO[ExitCode] = for {
    serviceDef <- Greeter.bindService[IO]
    server     <- GrpcServer.default[IO](12345, List(AddService(serviceDef)))
    _          <- GrpcServer.server[IO](server)
  } yield ExitCode.Success

}

I investigated this, and it appears it's nothing to do with Mu - it's the interaction between sbt and IOApp.
Here is a minimal reproduction of the problem, and a nice answer from Daniel Spiewak about what's going on.
To summarise: when you press Ctrl-C in sbt while the run task is running, sbt interrupts the IOApp's main thread. But IOApp does not treat that as cancellation, so it keeps running as if nothing happened.
Actually it's not only IOApp that suffers from this problem. Here's an example with akka-http:
https://github.com/sbt/sbt/issues/5226.
Here are two workarounds in sbt:

Set fork := true, so the IOApp runs in a separate process.  IOApp will take care of shutting down the Mu server cleanly in a shutdown hook.
Set Global / cancelable := false. This will disable the "try to cancel by interrupting" behaviour and revert sbt to its pre-1.3.x behaviour. Hitting Ctrl-C will exit sbt completely. (Again, IOApp will take care of shutting down the Mu server cleanly in a shutdown hook).

Out of these two options, I would say fork := true is preferred. Having sbt unexpectedly quit when you hit Ctrl-C can be quite irritating.
I'll add fork := true to build.sbt in the g8 template.


How To Add Vertical Data on The Side Of The Chart

Hi,
I love the charts and everything about them, but i was wondering if we can add vertical data on the side like the image below.

No solution for this task?

hey any update?

Marking this as a duplicate of https://github.com/coinjar/react-native-wagmi-charts/issues/154


COCO first release: updating the ccruntime yaml

Updating the  ccruntime yaml to point to the correct CC runtime payload image.
This is mostly ready and needs to be updated for the release version - small effort
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

This is dependent on https://github.com/confidential-containers/operator/issues/44
Once the Kata payload with required bits is available, we will update the ccruntime.yaml

ccruntime.yaml is updated with payload image with successful CI runs- https://github.com/confidential-containers/operator/pull/96


docs: update the Bump.sh brand

Description
This PR is only about updating the Bump.sh brand to make sure we always append the ".sh", as per our branding requirements.
Related issue(s)
N/A

@alequetzalli your review is required

/rtm


Verify that demo database is in sync for production database.

The demo database seems to be out of sync with production. We need to verify that the demo database is in sync and operates the same.

Received.  Not able to assign myself... should I be a member of the org?

You are a member of the repo now.

Characterizing the issue:

When I look at how new features are inserted into the features table by the crawler (see https://github.com/internetofwater/nldi-crawler/blob/master/src/main/resources/mybatis/mappers/feature.xml), it looks like it is expecting the geometry information to be in the shape column.
The demo database from this repo includes both a shape and a location column, both of which are of geometry type.
The table creation SQL (https://github.com/internetofwater/nldi-db/blob/master/liquibase/changeLogs/nldi/nldi_data/tables.sql) defines the feature table as having only a location column.

The existing crawler inserts with geometry in the shape column; the demo database has both shape and location geometry columns.  And the production database, if it was created wwith the tables.sql script, has only a location column.

This has implications for the porting of the crawler to python.  I'm hoping to replicate the function I see in the java port (where shape is the geometry), and test it with the demo DB. Moving to production -- an open question as to whether a successful demo test will work in production.

OK... so I'm jammed up here on how the docker images are used to create the demo database. Looks like the database is just restored from a snapshot taken at some point with the feature table populated.   That's the part to re-do.
So -- if this repo will be transitioning to another technology (i.e. python + sqlalchemy + alembic) to automate database creation, we can just keep track of this detail for that work.  But if we're sticking with LiquiBase et al, then I will need to figure out how to push this change into the existing framework.

This is probably a topic to bring up with others working on USGS databases. I think LiquiBase is probably what we are sticking with.
Can you just fixup and reup the snapshot for now and we take up automating the demo database at a later time?

Can you just fixup and reup the snapshot for now and we take up automating the demo database at a later time?

Short answer is yes... can create a snapshot to use in place of the current.  The Dockerfile specifies
https://github.com/internetofwater/nldi-db/releases/download/artifacts-1.0.0/nldi_data.crawler_source.pgdump.gz

We can either create a new release (1.0.1, say) or overwrite the existing release.  I am not finding any documentation in the repo from Ethan as to the workflow for these artifacts.  Will need to do some digging -- so while I think the final answer is going to be easy, it likely won't be fast.

@gzt5142 -- I think I am going to take care of this in #100
My plan is to dump the tables that need to be loaded for the demo database and load them using the same mechanism as you could for the production database. As part of that, I am thinking I'll create one of the dump files that contains several tables so on in demo we can load a number of demo feature sources and on prod we can load a different set.
Not quite sure how that's going to work yet, but it seems like the right concept. Any thoughts?

Agree concpetually. . . a pg_dump (or similar) of a developer's minimum load would be useful, and the fully populated version of same tables in a more production-like system, or production itself.   I put some comments in another issue that I now see that I should have put here.   So in summary:

Dev needs the full crawler_source table
Needs the full nhdplus dataset
Full feature table for one of the smallest sources.
A minimal feature table for the other sources

The NHD pieces are needed to ensure that ingested features will be spatially matched to a comid from NHD. With a subset, we risk not getting a match for newly ingested features.

Right -- so the dump that contains several tables could accommodate the variation in requirements you have in your dot points. I'll at least get this roughed in as a pattern so we can iterate on the details.

Should be good with #112


computed is not defined

Version
nuxt-directus v5.4.0
nuxt: v3.5.3
Steps to reproduce

Create a new nuxt project
Install<EMAIL_ADDRESS>Add directus-nuxt to the modules array in the nuxt config
Start nuxt

What is Expected?
Nuxt and directus-nuxt start without an issue and no error is thrown
What is actually happening?
[nuxt] [request error] [unhandled] [500] computed is not defined                                                                                17:25:45
  at Module.useDirectusToken (C:\Users\xxx\directus-nuxt-test\node_modules\nuxt-directus\dist\runtime\composables\useDirectusToken.mjs:54:28)
  at Module.useDirectus (C:\Users\xxx\directus-nuxt-test\node_modules\nuxt-directus\dist\runtime\composables\useDirectus.mjs:10:105)
  at Module.useDirectusAuth (C:\Users\xxx\directus-nuxt-test\node_modules\nuxt-directus\dist\runtime\composables\useDirectusAuth.mjs:11:42)
  at Object.setup (C:\Users\xxx\directus-nuxt-test\node_modules\nuxt-directus\dist\runtime\plugin.mjs:11:47)
  at Object.wrapper (C:\Users\xxx\directus-nuxt-test\node_modules\nuxt\dist\app\nuxt.js:191:21)
  at C:\Users\xxx\directus-nuxt-test\virtual:nuxt:C:\Users\xxx\directus-nuxt-test\.nuxt\plugins\server.mjs:23:87
  at Module.executeAsync (/C:/Users/xxx/directus-nuxt-test/node_modules/unctx/dist/index.mjs:111:19)
  at Object.setup (C:\Users\xxx\directus-nuxt-test\virtual:nuxt:C:\Users\xxx\directus-nuxt-test\.nuxt\plugins\server.mjs:23:63)
  at wrapper (C:\Users\xxx\directus-nuxt-test\node_modules\nuxt\dist\app\nuxt.js:191:21)
  at C:\Users\xxx\directus-nuxt-test\node_modules\nuxt\dist\app\nuxt.js:111:58

Fixed with https://github.com/Intevel/nuxt-directus/commit/65c1cdfaaabbf84d74fbb3ab68f492949f657ea9

Release today in the evening.

Hi @Intevel Not to rush you! But do you have any idea when this will be released? I tried using the commit hash in my package.json to already test with this fix, but it didn't work.

Hi @Intevel Not to rush you! But do you have any idea when this will be released? I tried using the commit hash in my package.json to already test with this fix, but it didn't work.

Give me 40 minutes.

Hi @Intevel Not to rush you! But do you have any idea when this will be released? I tried using the commit hash in my package.json to already test with this fix, but it didn't work.

Give me 40 minutes.

Im actually trying to publish it currently, but have no access. I think npm has some problems currently, I reauthed and switched devices. We have to wait:

No worries at all! Thanks for this package.

Fixed in v5.4.1


Password strength verification component

Is your feature request related to a problem? Please describe.
Yes, I often encounter situations where users set weak passwords that do not meet security standards, leading to potential security risks.
Describe the solution you'd like
I would like to have a password strength verification component that checks if a password is stronger than 8 characters and includes a mix of numbers and letters. This component should provide real-time feedback to users as they type their password, indicating whether it meets the required criteria or not.
Describe alternatives you've considered
One alternative could be implementing a tooltip or error message that appears when users enter a weak password, highlighting the specific criteria they need to meet for a strong password.
Component: Orion Login
Additional context
Example

Related with: orion-services/users#59

9721e5da20b84a648366a8454ba481d60fd27edc resolve the issue


cudaPackages: all outPaths should be evaluate-able

...even for packages marked "broken".
Reflecting on https://github.com/NixOS/nixpkgs/pull/273781, our error handling should obviously take Ofborg into account, as well as try not to break interfaces that users outside nixpkgs might expect. One way to go could be:

No throws, only meta.broken. Users can override meta.broken
Broken packages shall still evaluate with allowBroken = true: they'll have a valid outPath, but their builds would always fail.
In particular, when there's a src missing for a sourceProvenance = [ binaryNativeCode ] package (e.g. depending on the platform), we should set src to a valid fake value, e.g.null. In contrast, this fetchurl throws: https://github.com/NixOS/nixpkgs/blob/076fc3ad3158bdf0b04374570dfaa30fd0aaf9a9/pkgs/development/cuda-modules/generic-builders/manifest.nix#L112-L117
Optionally: prefer static structure for attribute sets when possible, cf. https://github.com/NixOS/nixpkgs/issues/266475. This may also be related to recursion issues

@NixOS/cuda-maintainers

Here are my takeaways:

[!Important]

All default attributes should evaluate successfully.
Incoherent configurations should be caught by assertion.
Invalid configurations which will fail to build or run should be marked as broken.
Supported platforms should not be conditional on configuration.

[!Note]
Our conditional platform logic exists only because we do not have a platform specific to Jetson and instead re-use aarch64-linux.

I'll see if I can work with this. One thing of note from the conversation in Matrix:
Consumers of our packages can use meta.unsupported, a derived attribute: https://github.com/NixOS/nixpkgs/blob/fd7914c96f7c006047e0154dd239aa2396478094/pkgs/stdenv/generic/check-meta.nix#L310-L364
This would allow them to avoid checking for existence of a package in our package set, and instead condition on meta.unsupported.

Tracked in #274319.

Our conditional platform logic exists only because we do not have a platform specific to Jetson and instead re-use aarch64-linux

H'm. On that note, cudaSupport and cudaCapabilities effectively are part of the "real" platform


Create index.md

@FidelChe and @om-henners, please merge this pull request.

@Brent-Wood @jonah-sullivan Done!

Thanks @om-henners !


Create examples of methods for optical calculations

Examples for the methods Three-Phase-Method and trace-glare.

irradiance
Von:    "Christoph Maurer" @.>
An:     "ise621/building-envelope-data"
@.>
Kopie:  "bbuenoun" @.>, "Mention"
@.>
Datum:  11.11.2021 10:22
Betreff:        Re: [ise621/building-envelope-data] Created examples of
methods for optical calculations, three-phase met… (#148)
@christoph-maurer commented on this pull request.
In examples/dbe/optical/methodThreePhase.json:

@@ -0,0 +1,20 @@
+"method": {

"id": "473a2f69-2e18-4745-809d-519882b25e8b",
"name": "Three-phase method",
"description": "The three-phase method separates the solar radiation
fromthe outdoor to the indoor environments into three phases: exte-rior
transport, transmission through the fenestration system andinterior
transport. Each phase of energy transport is simulated inde-pendently and
stored in matrix form. The resultant irradiance (orradiance, illuminance
or luminance) at interior sensor points (I) isobtained by the matrix
multiplication I = VTDs, where V is a viewmatrix that relates the interior
sensor points with the inner BSDFpatches, T is a transmission matrix that
relates the inner with theouter BSDF patches, and D is a daylight matrix
that relates the outerBSDF patches with the sky patches. The final part of
the equationis a vector (s) that contains the average radiance of the sky
patchesfor a given time and sky condition. The combined VTD matrix
cantherefore be understood as a daylight coefficient matrix that
relatesoutdoor radiance with indoor irradiance.",

@bbuenoun What do you mean by orradiance?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.


fix: add broken routes

Fixes #76
TODO:

Complete documentation at following paths

/docs/advanced/transforms/
/docs/advanced/queries/
/docs/advanced/blocks-docs-generation/

Thanks!


build: typescript from repo

Missed this with the earlier TypeScript update, probably why Thomas was seeing errors

Pull Request Test Coverage Report for Build 400

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

Totals

Change from base Build 398:
0.0%

Covered Lines:
468

Relevant Lines:
681

💛  - Coveralls

:tada: This PR is included in version 0.218.0 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Signal message doesn't always include DOM element that caused the problem

Background:
I've got a lot of TeX content that I'm trying to use Mathjax for, and there are a lot of things MathJax doesn't support.  I have a script that generates test pages, with a few hundred equations on each, and captures MathJax signals to find the errors. Per the example, I have a callback that takes the message argument, which is an array.
Problem:
I've found that only some of the messages contain a link back to the script that caused the problem. Specifically, "parse error" messages do; but "undefined control sequence" messages don't. (That's not an exhaustive list, obviously).
If it's easy, could you make the message array the same for all these types of errors?

Not a reply but have you looked at https://github.com/mathjax/MathJax-node?

I hadn't seen it, that looks nice. It looks like a replacement for svgtex?

It could be used as a substitute for svgtex, yes  MathJax-node includes command-line tools, and is designed so that it could serve as a back-end for a web service, though it doesn't include a server component itself.  Recently, one was made available by a third party, however.

MathJax v3 no longer uses signals, so closing this issue.


ModelViewInheritance: Chained merging no longer works as before

Chained merging of several listviews used to work in eXpand (at least in 17.2.5) but is no longer working after upgrading an application to XAF standalone modules.
Detailed description:
I have 4 list views in the model:

Connection_ListView
Connection_ListView_Base (generated by CloneModelView-Attribute)
Connection_ListView_NestedBase (generated by CloneModelView-Attribute)
Element_Connections_ListView

The 2nd ListView merges the differences from 1st (via MergedDifferences-Node in ModelEditor of Base Module). The 3rd ListView merges from 2nd ListView and 4th from 3rd. By the way merging here is all about column settings.
This worked flawlessly in eXpand 17.2.5 but strangely does no longer after upgrading to XAF-standalone modules.
The columns gets correctly merged until 3rd ListView but then strangely no more to the 4th ListView.
A strange thing to observe under 4th ListView's MergedDifferences-Node is, that although only one node was added manually (that one for merging 3rd LV) another node is automatically generated (for merging of 4th LV - showing up in non bold letters in ModelEditor). Column settings seem pretty much to don't get merged at all for 4th ListView.
I hope that by knowing the inner workings and changes of ModelViewInheritance-Module you can deduce what change might have caused this problem any hopefully can fix it.

thnks for posting the module is now rewritten simplified and unit tested. Thus having a repro sample will help me add more tests to cover this case.

Hi,
I have created sample project and attached it. All the interesting stuff is in the base module.  Just take at the "Element" sample business class there. If you open the model editor you can look at the Element_ListViewBase and Element_ListViewNestedBase and see that Base-LV correctly merges Element_ListView (only Street column should be shown). But ListViewNestedBase that merges from Element_ListViewBase does not merge correctly (all columns are shown).
Thanks, Johannes
Btw: Is the old expand-website and forum information really all gone? That would be real pitty. I have googled problems and found eXpand-forum entries that are no longer available. The start page  was also useful etc.
Solution1.zip

Thnks for the sample, I ll let u know once I unit test the case.
Yes the old site is now gone, GitHub is a superior platform supporting the old site was a big headache. Either way the plan is to rewrite and document the whole framework, so you will not miss that old data in a few months.

I see the headache supporting the site. Hopefully the information on it is really no longer needed in the future. The split up of monolithic eXpand is a great thing in any case! Thanks

I agree with u however since we are in public now and the modules will remain I do not agree that the current status can be named monolithic. All the modules right now can work as standalone with a reference to the Base lib this is exactly what XAF offers, this way you might call XAF monolithic. The new project can be named low dependency as it does not carry/share a Base lib and its dependecies.

Sorry, I probably just don't know the current status. With "monolithic" I refered to those times where you added one eXpand-module and that one often referenced a bunch of others and so you had add a lot of modules that you weren't originally interested in and that usually added complexity and headaches (for me).

no need to sorry we just discussing something,

With "monolithic" I refered to those times where you added one eXpand-module and that one often referenced a bunch of others and so you had add a lot of modules that you weren't originally interested in and that usually added complexity and headaches (for me).

yes this is tru for some modules. They still reference other modules however they do not register them. Meaning that there are not low dependency but the depended module do not interfere as they not registered. They are reference so to explicit consume their API but as I said their artifacts are not consumed by XAF automatically as they not registered.
Monolithic has a different meaning and was simply misused with no offense.
With the new project you should be able to puzzle what you need only. Note however that if you puzzle all then again you will end with the support cost of such an action.

If there is no need to register the dependent modules anymore and so they don't interfere than this is a big win as well.

though that is the case at least for some years now, apparently there are more issues like the ones you having but since I do not know them I cannot plan anything for them.
so please put some details for consideration as we are in the middle of a major refactor.

Indeed some of my experiences are years back and I therefore have no details anymore. Those experiences at least caused me to minimize eXpand dependencies and sometimes rather not use powerful features that would have been useful (f.e. I vaguely remember that I refrained from ModelArtifactState once, as it needed to many other references/modules that somehow interfered - maybe security module or something like that - unfortunately only vague memories that might not be correct) . If the old forum would still be alive I would have looked up some of my former eXpand-Forum posts for possibly getting some old issues I experienced and thereby update my memory.
For one current application now I only use the new CloneModelView, ModelViewInheritance extensions and also some assembly references to eXpand IO where I only use ImportEngine and ExportEngine with interfaces (ISerializationConfiguration etc.) but not the included business objects, UI etc.
With IO module I am OK so far as I don't have to use the module and just reference the assemblies. Of course it would be nicer if the basic  functionality I need, would be in assemblies that maybe wouldn't need to have a reference to DX assemblies, as I then wouldn't no longer need to update eXpand when I update to a new DX version. Or maybe it could also move in a new XAF extension.
I am really glad that I got rid of eXpand.SystemModule with the new extensions in one application. Xpand SystemModule is/was a module that I remember as doing a lot of "magic" and introtuced features and interferences I didn't appreciate. At least some of these things were discussed in the old forum.
For another client application I additionaly use Model Difference module. So for me it would be nice if it's functionality would also move in a new XAF extension (for easier DX upgrades).
So hopefully there might be something in these (vague) thoughts/memories that can be considered somehow regarding the refactorings.

Addendum: As you see above it seems a real loss that the information of the old forum is gone. With the help of google cache I just looked up one former interesting conversation in a thread called "Issue with Inheriting from XpandRole" (opened by someone else) where I asked:
"My Question is wheter this can be changed so that XpandSecurity doesn't interfere when I don't want/need to use XpandSecurity (I need to add it just because other Xpand-Modules depend on it)?"
Unfortunately I can't navigate to the second page of the discussion with the help of google cache.
Also this thread shows how helpful the forum information was when you googled problems relating to eXpand and XAF. The thread was opend in 2015 and I came there in 2018 as I searched the reason for a strange error message that seemed to come out from nowhere (that nowhere then turned out to be the security module).

IO, ModelDifference, ModelArtifact are good s fits for standalone packages, and until then it could be doable to remove dependencies to base and system modules. This already into my plan.
The Current situation with BaseImpl and its dependecies also suffers and there is much place for improvement there, I am also planning some works for this as we move forward.
Also maybe the wayback machine can be of some help yo u instead of google cache? https://archive.org/web/
There is also a downloader available at https://github.com/hartator/wayback-machine-downloader. From what I see is possible to get a list of your issues https://web.archive.org/web/20170820072508/http://www.expandframework.com/support/forum/user/285-johannes.html

While writing a test for this case it become apparent that there is nothing wrong with the module. I agree it might have a bit of different behavior than before but now is a well structured and tested code and most probably the behavior before will not be consistent of deeper levels.
Now to clarify some parts:
In Element_ListViewNestedBase you merge the differences of Element_ListViewBase however the Element_ListViewBase has no differences except the MergeElement_ListView (this confused as I understand in the top of this thread) so nothing is done. If you want to merge future differences of Element_ListViewBase in addition to current and future differences of Element_ListView you could write
<ListView Id="Element_ListViewNestedBase">
  <MergedDifferences>
    <MergedDifference Id="@a8226d80-7abd-444f-bb74-82bbc08a31b2" View="Element_ListView" IsNewNode="True" />
    <MergedDifference Id="MergeElement_ListView" Removed="True" />
    <MergedDifference Id="MergeElement_ListViewBase" View="Element_ListViewBase" IsNewNode="True" />
  </MergedDifferences>
</ListView>

in the snippet i removed the MergeElement_ListView I am not so sure if we should remove it by default though. The module correctly detected this as a difference and merged it but not take into account.

The DevExpress.XAF repository includes commits that relate to this task:

ModelViewInheritance: Test Chained_Cloned_listview_merging #471

Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.
If you do not use the Xpand.XAF.Modules directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.
Thanks a lot for your contribution.

The code might be more beautiful now, but from usage/feature point it seems pretty clearly less powerful and less consistent now. I will try your posted workaround  this week.
If CloneView code in "main" eXpand  is still working as before I might also fall back on main eXpand.

The DevExpress.XAF repository includes commits that relate to this task:

ModelViewInheritance: DeepMerge support #471

Please update the related Nuget packages and test if issues is addressed. These are nightly nuget packages available only from our NugetServer.
If you do not use the Xpand.XAF.Modules directly but through a module of the main eXpandFramework project, please wait for the bot to notify you again when integration is finished or update the related packages manually.
Thanks a lot for your contribution.

eXpand.lab release 19.1.602.7 includes commit that relate to this task:

Bump standalone packages #471 #525

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.
Thanks a lot for your contribution.

Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.


ng tests fails with Object prototype may only be an Object or null: undefined

Bug Report or Feature Request (mark with an x)
- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Repro steps.
I created a small project, after I was finished I thought, why not implementing tests, I really don't know why it failed, the error says nothing to me:
ng test
I have to say I had a similar error when one global component had an  absolute path definition
before
import { UserService } from '../../../user/user.services';
after(working one)
import { UserService } from 'services';
https://github.com/angular/angular-cli/issues/5769
The log given by the failure.

Uncaught TypeError: Object prototype may only be an Object or null: undefined
at setPrototypeOf ()
at Array.concat.__extends (test.ts:65929)
at test.ts:65939
at Object.Array.concat.Object.setPrototypeOf.proto (test.ts:65998)
at webpack_require (test.ts:20)
at Object.Array.concat.Object.defineProperty.value (test.ts:15750)
at webpack_require (test.ts:20)
at Object.Array.concat.Object.defineProperty.value (test.ts:64892)
at webpack_require (test.ts:20)
at Object.Array.concat.Object.defineProperty.value (test.ts:15645)
at webpack_require (test.ts:20)
at Object.Array.concat.c (test.ts:65154)
at webpack_require (test.ts:20)
at Object.Array.concat.Object.defineProperty.value (test.ts:15659)
at webpack_require (test.ts:20)

Desired functionality.
working
Mention any other details that might be useful.
My tsconfig includes routes of shared elements
"paths": {
"services": [
"app/global/services/index"
],
"models": [
"app/models/index"
],
"components": [
"app/global/components/index"
],
"directives": [
"app/global/directives/index"
]
},

@neridonk Is there a repo where you can replicate the issue.

Ok I resolved this it has to do with the paths, a lil bit sensitive but okey

@neridonk What have you changed in paths?

I think it isn't solution. I am going to use barrels in my projects, and it's very useful for me, but now I can't build my project with AOT, it's a great bug


CLSCor: Language statistics

2 views: one as a bar chart, then below as a list

[ ] List of languages
[ ] How often in dataset?

RS-Doku on charts


Created Left Control Bar

Added Some Spike Pictures
Added Left control bar, which will handle navigation and eventually handle global controls.
Initialized with navigation to Home, Search, Create and Collection

closes #26


WW-4620 ParametersInterceptor should check collection index to against DOS

ParametersInterceptor should check collection index to against DOS
Check the parameters map to have only 255 objects to avoid DOS.
https://dzone.com/articles/spring-initbinder-for-handling-large-list-of-java

A second thought  max of 512 could be a better number.

this fix doesn't make sense


Feature Request: Separate Proxy APIs for Translation and Transcription, or Allow Using Different APIs for Translating Transcribed Text

The current version of BUZZ only allows using a single proxy API, which is bound to both the AI transcription and translation functions once selected. This means that it's not possible to switch to a different proxy API for translation.
Could you please consider adding the ability to set different proxy APIs for different functions? Alternatively, could you allow users to select a separate proxy API to operate on the transcribed audio text once the transcription is complete?
Having this flexibility would be highly beneficial, as it would allow users to choose the most suitable proxy API for each specific task - transcription and translation. This can lead to improved performance, better results, and a more customized user experience.
Thank you for considering this feature request. Please let me know if you need any further clarification or have any questions.
PS:when i use fast whisper, Failed (Unknown error) happend
GPU Memory：8180 MB

model_path='C:\Users\YD\AppData\Local\Buzz\Buzz\Cache\models\models--guillaumekln--faster-whisper-medium\snapshots\8701f851d407f3f47e091bb13b8dac5290c7f7fb', id=10619793, uid=UUID('7cede170-d258-45a5-9206-51172f8d6523'), segments=[], status=None, error=None, queued_at=None, started_at=None, completed_at=None, output_directory=None, source=<Source.FILE_IMPORT: 'file_import'>, file_path='G:/打轴/GHMT05/02/03/03.MP3', url=None, fraction_downloaded=0.0)
[2024-07-27 23:23:46,608] whisper_file_transcriber.transcribe:71 DEBUG -> whisper process completed with code =<PHONE_NUMBER>, time taken = 0:00:15.276752, number of segments = 0
[2024-07-27 23:23:46,608] file_transcriber.run:61 ERROR ->
Traceback (most recent call last):
File "buzz\transcriber\file_transcriber.py", line 59, in run
File "buzz\transcriber\whisper_file_transcriber.py", line 80, in transcribe
Exception: Unknown error
[2024-07-27 23:23:46,608] file_transcriber_queue_worker.run:40 DEBUG -> Waiting for next transcription task

Regarding Faster whisper, please, select a language, or try yet unreleased the version from here https://github.com/chidiwilliams/buzz/actions/runs/9951485492 I think you may be getting error where "Detect language" was not working
If you recognize the speech first and then change the API you will be able to translate with different AI, but I agree that having separate API urls would give more flexibility

One benefit in having a single API url is that it makes the app simpler to new users, but it would also be good to give extra flexibility for more advanced users who want it. One option to achieve this could be to introduce and document environmental variables or app flags that give the extra flexibility without adding new fields in the settings. This way we could expose many more settings to user control.
For example if you run the app with extra flag or add it to the app launch shortcut.
TRANSCRIBE_API_BASEURL=https://api.openai.com/v1 TRANSLATE_API_BASEURL=https://api.groq.com/openai/v1 python -m buzz

or
set "TRANSCRIBE_API_BASEURL=https://api.openai.com/v1" && set "TRANSLATE_API_BASEURL=https://api.groq.com/openai/v1" && "C:\Program Files (x86)\Buzz\Buzz.exe"

Once implemented this would allow to set different API base urls for transcription and translation.
Things we could expose to user choice this way:

API base urls
Cache folder
Model settings, like whisper.cpp number of parallel processes or some decoding settings where one id faster but possibly less accurate and the other is slower but more accurate

What does community think of  this approach?

Ability to set custom API URL and key for translation has been added via Advanced preferences (environment variables). Please see https://chidiwilliams.github.io/buzz/docs/preferences#advanced-preferences
Available in latest development builds from here https://github.com/chidiwilliams/buzz/actions/workflows/ci.yml?query=branch%3Amain


Add kernelCTF CVE-2023-6817_lts_cos

There are still a few comments that haven't been addressed yet (for example https://github.com/google/security-research/pull/90#discussion_r1664360188).

There are still a few comments that haven't been addressed yet (for example #90 (comment)).

Hi, all the comments has been handled. Please check it.

There are still some unaddressed comments. The GitHub UI might hide some of them my default and you might have to click "load more" to see them.

There are still some unaddressed comments. The GitHub UI might hide some of them my default and you might have to click "load more" to see them.

Oh, Sorry about that. I should have dealt with all the comments this time.


[DOCFIX] docs/cn/Running-Spark-on-Alluxio.md

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/18792/
Test PASSed.

Merged build finished. Test PASSed.


Simplify codepath selection

Is there a reason why codepath selection logic seems to be trying to work around compilers? Wouldn't it be easier and cleaner to just rely on what gets passed to the compiler?
Drop all HAVE_EXTENSION and just check for __EXTENSION__ instead?
https://stackoverflow.com/questions/28939652/how-to-detect-sse-sse2-avx-avx2-avx-512-avx-128-fma-kcvi-availability-at-compile

Good question, you'd think we could just use those macros at compile time and all would be good. But unfortunately it's a case of Chesterton's Fence.
On x86, this library supports runtime dispatch for multiple architectures, so that the same library can run unmodified on everything from an Atom to the latest AVX512 machine. This simplifies the life of a distro packager because they can ship one binary library that works everywhere.
Let's take a concrete example and focus on the SSE2 codec for really old Pentiums. On the code path for these old Pentiums,  none of the code can use any instructions newer than SSE2, or the machine will crash with an illegal instruction error. That means that the library dispatch code should be compiled for nothing higher than generic x86, and the SSE2 codec should be compiled with nothing higher than SSE2 support.
Because what happens when you compile the SSE2 codec with a compiler that has -mavx512 enabled? The compiler will happily "optimize" the code to use all sorts of newer instructions. And that will crash our Pentium, or anything that can't handle AVX512 in fact if we're unlucky about the optimizations that the compiler does.
For that reason, this library has to have full control over the architecture arguments to the compiler. It has to ensure that the SSE2 codec is only compiled at SSE2 compatibility level and strictly nothing higher. The way to inform the library that you want support for a certain architecture, and to set the compiler flags for that certain architecture, is through the HAVE_XXX stuff.
I hope it now becomes clear that the __SSE2__ macro doesn't actuallly help much. If it's defined, you could still be generating code that won't run on an SSE2 machine.

I actually asked about this to simplify packaging. While I do understand your concern about safeguarding for incorrect compiler flags I would argue that it causes more issues than it solves. If you define lets say -march=tigerlake (11th gen with AVX512) and expect the final binary to run on la Haswell based Pentium (no AVX instructions at all) that's hardly the project at fault. That would also cause the majority of packages by far to be unusable since they'll be optimized for the target hardware defined by compiler settings. Some projects do however provide a "baseline" option which disables all optimization (ffmpeg for example) but that's usually for debugging rather than safeguarding.
fwiw, I started hacking on this mostly as an exercise but also to see if it were possible to simplify packaging.

You're advocating for a library that selects a single codepath at compile time. That's a reasonable position to take, but it's not the current design intent of this library. This library is positioned as a multi-arch, runtime-dispatched library that can run on all sorts of hardware without recompilation. It's also intended to provide the best possible performance by dispatching based on the capabilities of the actual hardware, rather than whatever baseline the packager chose. You are free to question these assumptions (and I'm not too happy with them after many years of maintaining this library), but they are quite fundamental. Changing them would mean a major break in compatibility.
Full disclosure: I am unhappy about the runtime dispatching and would like to get rid of it (or rather make it optional) at some point in the future. I also agree with you that the compilation and configuration system is complex and messy. To fix this, I have some not-very-concrete plans about rebranding this project and doing a large rewrite at some point.
I'd like to have standalone codecs which are exported as first-class symbols and are callable directly by the user, so that the user can do their own runtime dispatch. The internal runtime dispatcher needs to be optional, or maybe needs to disappear entirely, because I don't want to maintain platform selection code any more. The tree of #includes needs to be cleaned up. I'd like to simplify the compilation system and supply the arch-specific compiler arguments through some other mechanism, possibly #pragma's embedded in the codecs. The build system should be drastically simplified. Cleaner directory layout, and so on, and so on.
If you have any good suggestions in this area after hacking on the library, I'm certainly interested.

I'd like to simplify the compilation system and supply the arch-specific compiler arguments through some other mechanism, possibly #pragma's embedded in the codecs.

This would introduce strong coupling between compiler flags and source files which I really dislike. And while I concur that the buildsystem can be simplified, I find it surprising that you'd want to move details about the build process from the buildsystem into the source files.
I've rewritten the BLAKE3 buildsystem within the last year--a library which faces similar build challenges--and I've arrived at a simpler design by dropping most of the compiler introspection support and fine grained codec (SSE/AVX/...) selection.

I'd like to have standalone codecs which are exported as first-class symbols and are callable directly by the user, so that the user can do their own runtime dispatch.

Sure this is fine for simple cases, but as soon as you have more than one independent component/library which takes a dependency on this library you will get multiple runtime dispatch implementations (each has to include their own) or have to make the optional component... uh... non-optional 😅


split/bud orbital myositis from orbital pseudotumor

close #7257
@twhetzel please see discussion on the ticket.
Could you also verify that my logical definition is correct on orbital myositis (according to google, the extraocular muscles are the muscles of the orbit)

your synonym looks good, all the checks have passed, I will merge. Thank you!


Group shows/animes

Add a new settings to be able to group the shows together and the anime together.

Split "Shows" and "Animes" in two tabs when enabled.

TODO: restore pull-to-refresh


Scrape additional problem information from Leetcode

Needed information:
{
  description: string,
  likes: Integer,
  disliked: Integer
}

*dislikes

Done