ConnectionRefusedError: [Errno 111] Connection refused

when i run "train.py",it shows that "ConnectionRefusedError: [Errno 111] Connection refused"
line 156:main();then i add mp.set_start_method,but  it not working

@ziyuwzf  Can you give more error info, e.g., in which line, it raises the error?

---------- Start training -------------
Traceback (most recent call last):
File "train.py", line 156, in
main()
File "train.py", line 69, in main
for i, train_data in enumerate(train_loader):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 336, in next
return self._process_next_batch(batch)
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
IndexError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 106, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/root/Desktop/wzf/BasicSR-master/codes/data/LRHR_dataset.py", line 119, in getitem
img_LR = img_LR[:, :, [2, 1, 0]]
IndexError: index 2 is out of bounds for axis 2 with size 1
Exception ignored in: <bound method _DataLoaderIter.del of <torch.utils.data.dataloader._DataLoaderIter object at 0x7f2a926be8d0>>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 399, in del
self._shutdown_workers()
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 378, in _shutdown_workers
self.worker_result_queue.get()
File "/usr/lib/python3.5/multiprocessing/queues.py", line 345, in get
return ForkingPickler.loads(res)
File "/usr/local/lib/python3.5/dist-packages/torch/multiprocessing/reductions.py", line 151, in rebuild_storage_fd
fd = df.detach()
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 57, in detach
with _resource_sharer.get_connection(self._id) as conn:
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 87, in get_connection
c = Client(address, authkey=process.current_process().authkey)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 487, in Client
c = SocketClient(address)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 614, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

@ziyuwzf Can you give more error info, e.g., in which line, it raises the error?

@ziyuwzf 你能提供更多的错误信息，例如，哪一行，它会引发错误？

---------- Start training -------------
Traceback (most recent call last):
File "train.py", line 156, in
main()
File "train.py", line 69, in main
for i, train_data in enumerate(train_loader):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 336, in next
return self._process_next_batch(batch)
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
IndexError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 106, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/root/Desktop/wzf/BasicSR-master/codes/data/LRHR_dataset.py", line 119, in getitem
img_LR = img_LR[:, :, [2, 1, 0]]
IndexError: index 2 is out of bounds for axis 2 with size 1
Exception ignored in: <bound method _DataLoaderIter.del of <torch.utils.data.dataloader._DataLoaderIter object at 0x7f2a926be8d0>>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 399, in del
self._shutdown_workers()
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 378, in _shutdown_workers
self.worker_result_queue.get()
File "/usr/lib/python3.5/multiprocessing/queues.py", line 345, in get
return ForkingPickler.loads(res)
File "/usr/local/lib/python3.5/dist-packages/torch/multiprocessing/reductions.py", line 151, in rebuild_storage_fd
fd = df.detach()
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 57, in detach
with _resource_sharer.get_connection(self._id) as conn:
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 87, in get_connection
c = Client(address, authkey=process.current_process().authkey)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 487, in Client
c = SocketClient(address)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 614, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

@ziyuwzf Can you give more error info, e.g., in which line, it raises the error?

---------- Start training -------------
Traceback (most recent call last):
File "train.py", line 156, in
main()
File "train.py", line 69, in main
for i, train_data in enumerate(train_loader):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 336, in next
return self._process_next_batch(batch)
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
IndexError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 106, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/root/Desktop/wzf/BasicSR-master/codes/data/LRHR_dataset.py", line 119, in getitem
img_LR = img_LR[:, :, [2, 1, 0]]
IndexError: index 2 is out of bounds for axis 2 with size 1
Exception ignored in: <bound method _DataLoaderIter.del of <torch.utils.data.dataloader._DataLoaderIter object at 0x7f2a926be8d0>>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 399, in del
self._shutdown_workers()
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 378, in _shutdown_workers
self.worker_result_queue.get()
File "/usr/lib/python3.5/multiprocessing/queues.py", line 345, in get
return ForkingPickler.loads(res)
File "/usr/local/lib/python3.5/dist-packages/torch/multiprocessing/reductions.py", line 151, in rebuild_storage_fd
fd = df.detach()
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 57, in detach
with _resource_sharer.get_connection(self._id) as conn:
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 87, in get_connection
c = Client(address, authkey=process.current_process().authkey)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 487, in Client
c = SocketClient(address)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 614, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

@xinntao
---------- Start training -------------
Traceback (most recent call last):
File "train.py", line 156, in
main()
File "train.py", line 69, in main
for i, train_data in enumerate(train_loader):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 336, in next
return self._process_next_batch(batch)
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
IndexError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 106, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/root/Desktop/wzf/BasicSR-master/codes/data/LRHR_dataset.py", line 119, in getitem
img_LR = img_LR[:, :, [2, 1, 0]]
IndexError: index 2 is out of bounds for axis 2 with size 1
Exception ignored in: <bound method _DataLoaderIter.del of <torch.utils.data.dataloader._DataLoaderIter object at 0x7f2a926be8d0>>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 399, in del
self._shutdown_workers()
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 378, in _shutdown_workers
self.worker_result_queue.get()
File "/usr/lib/python3.5/multiprocessing/queues.py", line 345, in get
return ForkingPickler.loads(res)
File "/usr/local/lib/python3.5/dist-packages/torch/multiprocessing/reductions.py", line 151, in rebuild_storage_fd
fd = df.detach()
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 57, in detach
with _resource_sharer.get_connection(self._id) as conn:
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 87, in get_connection
c = Client(address, authkey=process.current_process().authkey)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 487, in Client
c = SocketClient(address)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 614, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

From your log
img_LR = img_LR[:, :, [2, 1, 0]]
IndexError: index 2 is out of bounds for axis 2 with size 1

It seems that some your LR images only have 1 channel. (If the codes run here, it means the img_HR has 3 channels.)
May check your dataset. Make sure that both the HR and LR images have 3 channels if you use RGB images.

@xinntao
我刚刚重新用extract_subimgs_single.py处理了一遍DIV2K_800数据集，共得到32208张训练集图像，以及4144张验证集图像。通过imagemagick完成了图像的缩小工作，之后修改了esrgan.json文件，依然是报错
---------- Start training -------------
Traceback (most recent call last):
File "train.py", line 156, in
main()
File "train.py", line 69, in main
for i, train_data in enumerate(train_loader):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 336, in next
return self._process_next_batch(batch)
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
IndexError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 106, in
samples = collate_fn([dataset[i] for i in batch_indices])
File "/root/Desktop/wzf/BasicSR-master/codes/data/LRHR_dataset.py", line 119, in getitem
img_LR = img_LR[:, :, [2, 1, 0]]
IndexError: index 2 is out of bounds for axis 2 with size 1
Exception ignored in: <bound method _DataLoaderIter.del of <torch.utils.data.dataloader._DataLoaderIter object at 0x7f2a926be8d0>>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 399, in del
self._shutdown_workers()
File "/usr/local/lib/python3.5/dist-packages/torch/utils/data/dataloader.py", line 378, in _shutdown_workers
self.worker_result_queue.get()
File "/usr/lib/python3.5/multiprocessing/queues.py", line 345, in get
return ForkingPickler.loads(res)
File "/usr/local/lib/python3.5/dist-packages/torch/multiprocessing/reductions.py", line 151, in rebuild_storage_fd
fd = df.detach()
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 57, in detach
with _resource_sharer.get_connection(self._id) as conn:
File "/usr/lib/python3.5/multiprocessing/resource_sharer.py", line 87, in get_connection
c = Client(address, authkey=process.current_process().authkey)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 487, in Client
c = SocketClient(address)
File "/usr/lib/python3.5/multiprocessing/connection.py", line 614, in SocketClient
s.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused
按理图片集中都是三通道的图像，我不知道怎么去解决或者排除问题，望告知，谢谢！

You can add a print function to print the shape of img_LR, to see what happened.
File "/root/Desktop/wzf/BasicSR-master/codes/data/LRHR_dataset.py", line 119, in getitem
img_LR = img_LR[:, :, [2, 1, 0]]


Fix broken links

Fix broken PR template links. Note: This PR already uses the updated template.
All Submissions:

[x] Have you followed the guidelines in our Contributing document?
[x] Have you read and signed the automated Contributor's License Agreement?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

[x] Does your submission pass tests?
[x] Have you lint your code locally prior to submission?

Changes to Core Features:

[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[x] Have you written new tests for your core changes, as applicable?
[x] Have you successfully ran tests with your changes locally?

Thanks buddy!


Consider syncing the release naming with the release month

a.k.a. skip the October release and call it the November release.

I really enjoy the monthly release cycle of Code. It's strange that the release naming follows the month in which the development work was completed, not the month in which the release occurred. I think it would make sense from an end user perspective to see anNovember release in November, rather than an October release in November.

But then VSCode loses its uniqueness...
Jk, in all seriousness, I think it's fine tbh, it's similar to how Windows 10 works, their most recent update (1809, September 2018) released in October (though it was on the 2nd so quite close to September nonetheless) and what usually tends to happen is they spend the whole month working on VSCode, then they spend a final few weeks clearing it up whilst working on the next month.
Once they're ready to release, they do and then put all efforts on a recovery and the next month.

It's strange that the release naming follows the month in which the development work was completed, not the month in which the release occurred

I understand what you mean, but I think the VSCode team wants users to know this specifically happened/started on this month, and next month we will have this etc. From the team's perspective (i guess?), they want the end user to know what they have been focusing on every month (even so by their iteration and endgame plans).
That's just my 2 cents, have a great day.

It would make sense, but we have no plan to change this. (When you think about it, we are not so different from the rest of the world: 2019 car models are released in Summer 2018,  magazine issues for January 2019 are published in November 2018, ..., we just go the other way. 😄)


feat:added modal for sharing information

Description
created the modal for sharing information
Concise description of proposed changes, We recommend using screenshots and videos for better description

Additional Information

[ ] I have read the contributing docs (if this is your first contribution)
[ ] This is not a duplicate of any existing pull request

Related Issues
_Closes #17 _
Note: If your changes are small and straightforward, you may skip the creation of an issue beforehand and remove this section. However, for medium-to-large changes, it is recommended to have an open issue for discussion and approval prior to submitting a pull request.
Your ENS/address:

the rest is perfect, we will implement all the behavior later


Analysis queue is not showing states correctly

Analysis verbose in Builder is not correctly showing states, as is reading "enqueued" when its actually running as per the api.
You can download the .carto here https://drive.google.com/open?id=0B0nG__Cq6i-7elRjenRZazZoZW8
This happens when solving node D3

We have these messages, not sure if they are ok:
…
"pending": "Analysis %{nodeId} running...",
"waiting": "Analysis %{nodeId} enqueued...",
"completed": "Analysis %{nodeId} completed",
"failed": "Analysis %{nodeId} failed",
"removed": "Analysis %{nodeId} deleted",
…

cc @alonsogarciapablo

Hey, any answer to that? I mean, do we want to use the same text? If so it is a 1 min change.

AFAIK, the problem is that the message shown in the UI is not the one received in the request.

The possible states, as I copied above are pending, waiting, completed, failed, and removed. And each one has a different message, there is no other info we have about that. So, if we want to show the same "text" instead of format them, there is no problem.

The possible statuses are https://github.com/CartoDB/camshaft/blob/f8a9944613df0d1681c40ede39e9551b9e4732ef/lib/node/node.js#L20-L29. So I guess the mismatch comes from using pending as running and waiting as enqueued, but probably I'm misjudging it as that might be something cartodb.js is providing in a different way.

cartodb.js doesn't do any translation, it will set whatever status it receives from the Maps API.
We're probably not considering the running status here.

Ahhh running... ok! thanks for the info guys!

Ready for code review.

✨ going to deploy.


Replaced DBMS specific "limit" keyword with generic subselect (Fixes #47)

@chrisgray The result of the query is always unique due to unique index name_timestamp_index

Would be absolutely awesome if you could release a new version with that fix as soon as possible 😄


Remove force_peek method from Lexer

Remove force_peek method from Lexer and use peek instead because force_peek may panic and thus isn't safe.

Done!


SwiftUI - setInput and triggerInput don't work in SubView when parent updated. Example Code Inc.

Description
In SwiftUI if a Rive view is hosted within a parent view that has been updated when a @Published value has changed, then it appears the RiveRuntime no longer responds to either triggerInput or setInput work.
By the looks of it's it's duplicating the view the RiveViewModel is using / there's a lifecycle issue. I've produced a very basic demo showing a version that works when the Confetti isn't within a subview (red background), right alongside one within a subview (green background) that doesn't work.
Both print a statement out when tapped, but only the one directly embedded in the SplashScreen works, any RiveViewModel.view()'s within subviews fail to respond to any triggerInput or setInput.
Minimal code to reproduce the issue is attached and is based on the rive-ios demo project with minimal changes.
This is likely causing issues for anyone using Rive in a serious way in a SwiftUI app, as very few apps are likely to host a RiveViewModel where the parent view has never been updated by an ObservableObject.
Minimal Repro
This is based on the SwiftUI Demo app. Just replace the SplashScreen with the code below. Minimal Repo also attached:
import SwiftUI
import RiveRuntime

// This is a view model that has a published property just for the purpose of forcing an update of the core view.
class ViewModel : ObservableObject {
    @Published var updateViewFlag : Int = 0

    init() {
        DispatchQueue.main.asyncAfter(deadline: .now() + 1, execute: {
            self.updateViewFlag += 1
        })
    }
}

// This is a subview that we will embed. Notice that after the ViewModel updateViewFlag has been updated this confetti no longer responds to "triggerInput"
struct ConfettiSubview: View {
    var confetti = RiveViewModel(fileName: "confetti", stateMachineName: "State Machine 1")

    var body: some View {
        confetti.view()
            .frame(width: 350, height: 200)
            .background(Color.green)
            .onTapGesture {
                print("Subview Tapped - Doesn't Work")
                confetti.triggerInput("Trigger explosion")
            }
    }
}

// Our main splash screen, one with a Subview in and one with the confetti directly in the view.
struct SplashScreen: View {
    @ObservedObject var viewModel = ViewModel()

    /// This file has a StateMachine that will react when we trigger an input called "Trigger explosion"
    var confetti = RiveViewModel(fileName: "confetti", stateMachineName: "State Machine 1")

    var body: some View {

        VStack(spacing: 10) {

            // This one always works
            confetti.view()
                .frame(width: 350, height: 200)
                .background(Color.red)
                .onTapGesture {
                    print("Primary View Tapped - Works")
                    confetti.triggerInput("Trigger explosion")
                }

            // This one doesn't work if the viewModel has ever historically triggered a view update
            ConfettiSubview()
        }

    }

}

extension Color {
    static var lightPurple = Color(hue: 0.786, saturation: 0.528, brightness: 0.463)
    static var darkPurple = Color(hue: 0.748, saturation: 0.917, brightness: 0.189)
}

struct SplashScreen_Previews: PreviewProvider {
    static var previews: some View {
        SplashScreen()
            .previewDevice("iPhone 13")
    }
}

Demo-App.zip

Any update on this / you guys been able to reproduce the issue internally?

Hi @SleepiestAdam - sorry for the delayed response. We'll take a look at this next chance we get, and definitely appreciate the reproduction project you provided!

No worries, not sure if this is related (I suspect it is), but RiveViewModel.riveView also isn't available for some reason after initialisation.
import SwiftUI
import RiveRuntime

struct Onboarding: View {

    @ObservedObject var viewModel = OnboardingViewModel.shared
    var splash : RiveViewModel

    init() {
        self.splash = RiveViewModel(fileName: "Splash", fit: .fitHeight, autoPlay: true)
        self.splash.riveView!.playerDelegate = viewModel // Thiss crashes
        // Trying to tap into player delegate to hide the splash.view() after it's completed playback.
    }

    // Rest of code inc body.

}

In RiveViewModel it looks like one of your devs might have also suspected an issue given the TODO in the RiveViewModel class... Seems like it's (maybe?) getting deallocated somehow; but I have absolutely no idea why, as as far as I can tell it is not a weak ref and if I remove the second line then it does play the Rive animation perfectly fine, so it is loading my Splash.riv without any issues, and isn't crashing at "riveModel = try! RiveModel(fileName: fileName, extension: extension, in: bundle)". Bit of an odd one...
    // TODO: could be a weak ref, need to look at this in more detail.
    open private(set) var riveView: RiveView?
    private var defaultModel: RiveModelBuffer!

    public init(
        fileName: String,
        extension: String = ".riv",
        in bundle: Bundle = .main,
        stateMachineName: String?,
        fit: RiveFit = .contain,
        alignment: RiveAlignment = .center,
        autoPlay: Bool = true,
        artboardName: String? = nil
    ) {
        self.fit = fit
        self.alignment = alignment
        self.autoPlay = autoPlay
        super.init()
        riveModel = try! RiveModel(fileName: fileName, extension: `extension`, in: bundle)
        sharedInit(artboardName: artboardName, stateMachineName: stateMachineName, animationName: nil)
    }

For the first issue, yes, I think this is due to var confetti = RiveViewModel(fileName: "confetti", stateMachineName: "State Machine 1") being reinitialized on the parent re-render. RiveViewModel holds a reference to its view (which I think you caught in your second comment) and when calling confetti.view() in the body, creates a new RiveView view and a reference on the newly initialized view model. So an overview of what I think is happening is:

You create confetti, the RiveViewModel
You render the confetti.view(), and thus a new view is created and confetti holds a reference to this view (for controlling API purposes)
Rerender is triggered up the parent tree
Subview recreates confetti (let's call it confetti2)
You render a new confetti2.view(), and thus a new view is created and confetti2 holds a reference to this new view
The original confetti.view notices an update, so its UIViewRepresentable implementation of updateUIView is called. Right now, we're not setting the new confetti2.view to confetti.view because that would essentially restart the animation/state machine
However, the original confetti.view remains face up, and any new use of confetti2.triggerInput() or any API for that matter, would not affect the view on screen (the original view)

A quick and dirty hack that's probably not viable as a long-term solution is to wrap confetti with a @StateObject wrapper, so that it does not get reinitialized, and the view persists. But ultimately, I think we have to re-examine how our RiveViewModel pattern should work in a SwiftUI paradigm. It's a relatively new implementation for Rive so there's definitely some room to learn from this and would love any suggestions here - a similar issue was reported: https://github.com/rive-app/rive-ios/issues/244
As for the second issue, riveView is not set yet as a member variable on rive view model until you call .view() or set the view manually on the view model, so you can't yet set the playerDelegate upon just creating the view model. We've usually seen folks wrap the RiveViewModel in another class and implement the delegates there (small example here: https://github.com/rive-app/rive-ios/blob/main/Example-iOS/Source/Examples/SwiftUI/SwiftEvents.swift#L42), but I could see why you want it separated.

@zplata Any update on improvement of the SwiftUI implementation?
We're running into issues in instances where StateObject isn't an option (e.g. when trying to load a rive assets via a dynamic web url where the object needs creating as part of an initializer where StateObject isn't available).
As we approach our internal project completion in the coming 1-2 months going to soon be blocking us producing a production build.


Link to compiler explorer

We could link in the compiler section for each Fortran compiler available on compiler explorer (https://godbolt.org/) to the respective view to allow people to quickly give the compiler a try without having to install it first.
Currently available on compiler explorer are

GCC GFortran (x86_64, aarch64, arm, mips, mipsel, mips64, mips64el, power, power64, power64le, s390x)
LLVM flang (x86_64)
Intel ifort / ifx (x86_64)

There is an open issue at GodBolt to support fpm: https://github.com/compiler-explorer/compiler-explorer/issues/3919


documentation: SqliteError & its attributes are undocumented

recently I was part of a discussion on  https://github.com/JoshuaWise/better-sqlite3/issues/125#issuecomment-903934794 where I discovered it is very efficient to perform unique inserts and then selects for the pattern of inserting some data and returning the id. The code to do so looks like this:

db.exec(`CREATE TABLE tag (
           id INTEGER PRIMARY KEY NOT NULL,
           name TEXT UNIQUE NOT NULL CHECK (length(name) < 10),
           created_at DATETIME NOT NULL);`)
const insert_stmt = db.prepare('INSERT INTO tag (name, created_at) VALUES (?, ?)')
const select_stmt = db.prepare('SELECT id FROM tag WHERE name = ?')

function create_tag(name) {
  try {
    return insert_stmt.run(name, new Date().toString()).lastInsertRowid
  } catch (e) {
    if (e instanceof Sqlite.SqliteError) return select_stmt.get(name).id
    else throw e
  }
}

create_tag('red') // performs an insert, returns 1
create_tag('red') // performs a insert (throws SqliteError), then select, returns 1

the issue though, is that there is not a good way to programmatically detect if the error I am capturing is from a unique constraint violation, or if it is a general sqlite error. E.g. in my catch function here, I cannot tell if I am dealing with a row that already exists or a CHECK violation.
create_tag('green')
create_tag('green') // SqliteError: UNIQUE constraint failed: tag.name
create_tag('supercalifragilisticexpialidocious') // SqliteError: CHECK constraint failed: length(name) < 20

This same problem applies to foreign key violations, and just about anything else sqlite could spit back out. The best I can do is do string comparisons on the error message: if (e.message.includes('UNIQUE')) { select_stmt.get(...) }. I dont know how reliable that is though

e.code === 'SQLITE_CONSTRAINT_UNIQUE'

oh wow great! I didnt realize code was available (I think part of the issue is that SqliteErrors are hard to inspect for some reason (https://github.com/JoshuaWise/better-sqlite3/issues/633)). I can update the issue title so this is a documentation request

SqliteError has been added to the API documentation (here).


Ispn 8114/stabilize natural id invalidation test

https://issues.jboss.org/browse/ISPN-8114
Extracting Eventually is necessary to use it in Hibernate integration module.

@slaskawi First of all, thanks for having a go at fixing this.
However, I think your fix goes against the spirit of the test. We have put in place some latches that should met in order for test to pass. To add eventually, or similar calls, which really means, try for N seconds until this is true, goes against what Radim and I agreed in this email thread.
To be more precise, both Radim and I agreed in that thread that waiting for a certain amount of time until the condition is true would be potentially unreliable.
I'd suggest you pass this onto me and I can have a closer look to understand what's really wrong with the test.

I've submitted #5386 to ignore the test while I look into it.

@galderz Sure, no problem. Please feel free to close this PR if you wish.
But I'm really not sure if you and @rvansa are right on this particular case. Failing an assert here strongly suggests that the test progressed too quickly to let the remote listener to catch the event. Of course adding latches or other type of synchronizers might fix it but isn't that overengineering? Remote listeners are async by its nature and tests should take it into account.
Anyway... as I said, please feel free to fix it whichever way you think is reasonable (and close this PR).

@slaskawi Note that the remote listener is not a clustered listener, it's just a local listener on another node (where we're not doing the main operation). I don't feel too strongly about using eventually, but something along the lines of expectEvict would be better (expectPFER? Haven't studied the test thoroughly), as you also assert that the listener is triggered by the operation you expect. Timing wise there'd be the same limit for eventually/latch.await so there would be the same amount of false positives due to time skew, but in the 'happy' case the test won't wait in the eventually loop.

+1 for the unification of eventually, but I would
a) use static import of the method (personal preference but we do the same for Exceptions etc. in most places)
b) in method signature use java.util.function.BooleanSupplier rather than Condition
c) use lambda instead of new Condition() { ...}


[stable/prometheus] Upgrade to 2.9.1

Signed-off-by: David J. M. Karlsen<EMAIL_ADDRESS>What this PR does / why we need it:
Upgrades to latest release
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[X] DCO signed
[x] Chart Version bumped
[X] Variables are documented in the README.md

@cpanato ptal

/lgtm


zoraxy: init at 3.0.4

Description of changes
Closes #312814

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

> nix build .#zoraxy
> tree result
 result
└──  bin
   └──  zoraxy

Tested ./result/bin/zoraxy creating a new account

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/3965

@SuperSandro2000 Applied suggestion.
Note: For the tests I had a few, but should be good to go now

@SuperSandro2000 bumped version to 3.0.5
Release notes


Toml grammar does not require whitspace in key=value

Here is the toml grammar:
keyval = key keyval-sep val
keyval-sep = ws %x3D ws
ws = *wschar     NOTE OPTIONALITY OF wschar

Is there a reason you opened this as an issue? It works as originally planned after all.

$ cat test.toml
time=10:00:00
$ cat test2.toml
time = 10:00:00
$ python test.py test.toml
Traceback (most recent call last):
File "test.py", line 2, in
toml.load("./test.toml")
File "/usr/lib/python2.7/site-packages/toml/decoder.py", line 112, in load
return loads(ffile.read(), _dict, decoder)
File "/usr/lib/python2.7/site-packages/toml/decoder.py", line 458, in loads
raise TomlDecodeError(str(err), original, pos)
toml.decoder.TomlDecodeError: Invalid date or number (line 1 column 1 char 0)
$ python test.py test2.toml
$
toml-257.zip

Good catch. It's a bug in Python 3.7.1 and toml library v0.10.0.
>>> import toml

>>> s1 = "time = 10:00:00"

>>> toml.loads(s1)
{'time': datetime.time(10, 0)}

>>> s2 = "time=10:00:00"

>>> toml.loads(s2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\users\dave.ostroske\appdata\local\programs\python\python37\lib\site-packages\toml\decoder.py", line 458, in loads
    raise TomlDecodeError(str(err), original, pos)
toml.decoder.TomlDecodeError: Invalid date or number (line 1 column 1 char 0)

Invalid date or number (line 1 column 1 char 0)

It probably isn't a problem with the spacing so much as it's a problem with how times are parsed. I tried the same thing with string values and had no problems.
>>> t1 = 'day = "Thursday"'

>>> toml.loads(t1)
{'day': 'Thursday'}

>>> t2 = 'day="Thursday"'

>>> toml.loads(t2)
{'day': 'Thursday'}

Thanks. FWIW we use Python 2.7.x  not 3.x.x

The following change will fix this issue:
725             if _load_date(pair[-1]) is not None:
726                 break
727             if TIME_RE.match(pair[-1]):
728                 break

This issue is resolved by https://github.com/uiri/toml/pull/266

@uiri A gentle reminder: please close this issue since it has been resolved.


luci-app-banip: sync with 0.7.3

just a typo fix from last commit

Signed-off-by: Dirk Brenken<EMAIL_ADDRESS>

Just merge it ;-)
Preferably with the "rebase and merge" option, as it is a simple commit from yourself.


fix string format conflicts

Using characters "{", "}" in an extraction pattern makes an error:
'IndexError: tuple index out of range'

Is proj alive?

Sorry for being unresponsive, haven't seen the notifications.
Could you please add a test case for it?

Sorry for being unresponsive, haven't seen the notifications.
Could you please add a test case for it?


[local_auth] [android] get 'not_enrolled' for locked_out times after first get 'locked_out' by too many failed attempts on Android

What package does this bug report belong to?
local_auth
What target platforms are you seeing this bug on?
Android
Have you already upgraded your packages?
Yes
Dependency versions
pubspec.lock
local_auth:
dependency: "direct main"
description:
path: "packages/local_auth/local_auth"
ref: HEAD
resolved-ref: "86dfd4aa35c7892478317932208115e5e151c889"
url: "https://github.com/AKAPUCH/packages"
source: git
version: "2.2.0"
local_auth_android:
dependency: transitive
description:
path: "packages/local_auth/local_auth_android"
ref: HEAD
resolved-ref: "86dfd4aa35c7892478317932208115e5e151c889"
url: "https://github.com/AKAPUCH/packages"
source: git
version: "1.0.38"
local_auth_darwin:
dependency: transitive
description:
path: "packages/local_auth/local_auth_darwin"
ref: HEAD
resolved-ref: "86dfd4aa35c7892478317932208115e5e151c889"
url: "https://github.com/AKAPUCH/packages"
source: git
version: "1.2.2"
local_auth_platform_interface:
dependency: transitive
description:
name: local_auth_platform_interface
sha256: "1b842ff177a7068442eae093b64abe3592f816afd2a533c0ebcdbe40f9d2075a"
url: "https://pub.dev"
source: hosted
version: "1.0.10"
local_auth_windows:
dependency: transitive
description:
name: local_auth_windows
sha256: "505ba3367ca781efb1c50d3132e44a2446bccc4163427bc203b9b4d8994d97ea"
url: "https://pub.dev"
source: hosted
version: "1.0.10"

Steps to reproduce
I tried to make flutter app using local_auth packages in Samsung Galaxy S20 5G.
my logic is:

call canCheckBiometrics to check whether device can authenticate. if not, emit error.
call getAvailableBiometrics to check whether device has biometrics. if not, also emit error.
after 2 steps, call authenticate to try authenticate.

I wanted to test whether local_auth still gives 'locked_out' exception after first get 'locked_out' exception by too many attempts.
Unfortunately, I got 'not_enrolled' exception... I'm wondering whether this error handling logic is provided by android(biometric_manager, biometric_prompt I guess..) or not.
Expected results
get 'locked_out' exception for locked_out times after first get 'locked_out' exception by too many failed attempts.
Actual results
get 'not_enrolled' exception for locked_out times after first get 'locked_out' exception by too many failed attempts.
 String message,
      String? errorDetail}) = FailToExecute;
  const factory BioAuthException.permissionDenied(
      {@Default('98') String code,
      @Default('생체인증을 사용할 수 없습니다. 권한을 확인해주세요.') String message,
      String? errorDetail}) = PermissionDenied;
  const factory BioAuthException.noBiometricRegistered(
      {@Default('97') String code,
      @Default('생체인증이 등록되지 않은 단말입니다.') String message,
      String? errorDetail}) = NoBiometricRegistered;
  const factory BioAuthException.exceededLimit(
      {@Default('96') String code,
      @Default('생체인증 최대 횟수를 초과하였습니다.') String message,
      String? errorDetail}) = ExceededLimit;
  const factory BioAuthException.notSupported(
      {@Default('95') String code,
      @Default('생체인증을 지원하지 않는 단말입니다.') String message,
      String? errorDetail}) = NotSupported;
  const factory BioAuthException.userCanceled(
      {@Default('90') String code,
      @Default('사용자가 실행을 취소했습니다.') String message,
      String? errorDetail}) = UserCanceled;
}

/// in another file
import '.../features/bio_auth/domain/error/bio_auth_exception.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/services.dart';
import 'package:local_auth/local_auth.dart';
import 'package:local_auth_android/local_auth_android.dart';
import 'package:local_auth_darwin/local_auth_darwin.dart';
import 'package:rxdart_ext/rxdart_ext.dart';

abstract class BioAuthRepository {
  Single<void> registerBioAuth();
}

class BioAuthRepositoryImpl extends BioAuthRepository {
  final LocalAuthentication authentication = LocalAuthentication();

  @override
  Single<void> registerBioAuth() {
    return Single.fromFuture(checkCapability()).flatMapSingle<bool>(
      (isCapable) {
        return isCapable
            ? Single.fromFuture(checkBiometricExists())
            : Single.error(const NotSupported());
      },
    ).flatMapSingle<bool>((bioExists) {
      return bioExists
          ? Single.fromFuture(doAuthenticate())
          : Single.error(const NoBiometricRegistered());
    }).onErrorResumeSingle((e, stackTrace) {
      if (e is PlatformException) {
        switch (e.code) {
          case 'NotAvailable':
            return Single.error(const PermissionDenied());
          case 'NotEnrolled':
          case 'PasscodeNotSet':
            return Single.error(const NoBiometricRegistered());
          case 'UserCancel':
            return Single.error(const UserCanceled());
          case 'LockedOut':
          case 'PermanentlyLockedOut':
            return Single.error(const ExceededLimit());
        }
        return Single.error(FailToExecute(errorDetail: e.message));
      } else if (e is BaseException) {
        return Single.error(e);
      }
      return Single.error(FailToExecute(errorDetail: e.toString()));
    });
  }

  Future<bool> checkCapability() async {
    return authentication.canCheckBiometrics;
  }

  Future<bool> checkBiometricExists() async {
    return (await authentication.getAvailableBiometrics()).isNotEmpty;
  }

  Future<bool> doAuthenticate() async {
    return await authentication.authenticate(
      authMessages: <AuthMessages>[
        const IOSAuthMessages(localizedFallbackTitle: '확인'),
        AndroidAuthMessages(
          signInTitle: 'androidSignInTitle'.tr(),
          cancelButton: 'androidCancelButton'.tr(),
          biometricHint: ' ',
        ),
      ],
      localizedReason: 'localizedReason'.tr(),
      options: const AuthenticationOptions(
        useErrorDialogs: false,
        stickyAuth: true,
        biometricOnly: true,
        sensitiveTransaction: true,
      ),
    );
  }
}

Screenshots or Videos

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
# fail attempts on purpose
I/BiometricPrompt(11181): onAuthenticationFailed
I/BiometricPrompt(11181): onAuthenticationFailed
I/BiometricPrompt(11181): onAuthenticationFailed
I/BiometricPrompt(11181): onAuthenticationFailed
I/BiometricPrompt(11181): onError: 7, 0
# after retry
I/BiometricPrompt(11181): onError: 11, 0

Flutter Doctor output
Doctor output
[✓] Flutter (Channel main, 3.22.0-33.0.pre.3, on macOS 14.3.1 23D60 darwin-arm64, locale ko-KR)
    • Flutter version 3.22.0-33.0.pre.3 on channel main at /Users/a84931/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 1484d09103 (9일 전), 2024-05-13 21:58:26 -0400
    • Engine revision a1cdcb6a66
    • Dart version 3.5.0 (build 3.5.0-151.0.dev)
    • DevTools version 2.36.0-dev.5

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/a84931/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/a84931/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

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

[✓] Android Studio (version 2023.2)
    • 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.9+0-17.0.9b1087.7-11185874)

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

[✓] Connected device (7 available)
    • SM G981N (mobile)               • R3CN60BDEXZ                          • android-arm64  • Android 13 (API 33)
    • iPhone 15 (mobile)              • 9357BC41-7501-4205-923A-46DCBECE8302 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-2 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 14.3.1 23D60 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 14.3.1 23D60 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 125.0.6422.76

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

• No issues found!

Thanks for the report @AKAPUCH
Can you narrow down the code sample to just include local_auth implementation (since easy_localization and rxdart are third party packages) and check if using it only, you still get same behavior or not ?
Going by https://github.com/flutter/packages/blob/df16d4e7bde3809e2091add6459b77d500351fb8/packages/local_auth/local_auth/lib/error_codes.dart#L13  it seems, not_enrolled should be thrown when there are no biometrics enrolled

2. call getAvailableBiometrics to check whether device has biometrics. if not, also emit error.

Does it throw the enrolled biometrics you setup ?

Thanks for the report @AKAPUCH Can you narrow down the code sample to just include local_auth implementation (since easy_localization and rxdart are third party packages) and check if using it only, you still get same behavior or not ?
Going by https://github.com/flutter/packages/blob/df16d4e7bde3809e2091add6459b77d500351fb8/packages/local_auth/local_auth/lib/error_codes.dart#L13 it seems, not_enrolled should be thrown when there are no biometrics enrolled

call getAvailableBiometrics to check whether device has biometrics. if not, also emit error.

Does it throw the enrolled biometrics you setup ?

Thank you for comment, darshankawar.
I made simple demo app to regenerate issue.
this is record file.
https://github.com/flutter/flutter/assets/116094622/c1474ecd-6941-45e5-bf98-78af82e24179
and this is the code.
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:local_auth/local_auth.dart';
import 'package:local_auth_android/local_auth_android.dart';
import 'package:local_auth_darwin/local_auth_darwin.dart';

class AuthCheckPage extends StatefulWidget {
  const AuthCheckPage({super.key});

  @override
  State<AuthCheckPage> createState() => _AuthCheckPageState();
}

class _AuthCheckPageState extends State<AuthCheckPage> {
  final auth = LocalAuthentication();
  bool canSupportAuthState = false;
  bool canAuthState = false;
  bool authResultState = false;
  String exceptionState = '';
  List<BiometricType> availableBiometricsState = List.empty();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('auth test app'),
      ),
      body: SafeArea(
        child: Center(
          child: Column(
            children: [
              ElevatedButton(
                onPressed: () => startAuthenticate(),
                child: Text('start Auth'),
              ),
              Text('canSupport: $canSupportAuthState'),
              Text('canAuth: $canAuthState'),
              Text('hasBiometrics: ${availableBiometricsState.isNotEmpty}'),
              Text('authentication Result: $authResultState'),
              Text('error: $exceptionState')
            ],
          ),
        ),
      ),
    );
  }

  Future<void> startAuthenticate() async {
    final bool canSupportAuth = await auth.isDeviceSupported();
    final bool canAuth = await auth.canCheckBiometrics;
    final List<BiometricType> availableBiometrics =
        await auth.getAvailableBiometrics();
    setState(() {
      canSupportAuthState = canSupportAuth;
      canAuthState = canAuth;
      availableBiometricsState = availableBiometrics;
    });
    try {
      final bool authResult = await doAuthenticate();
      setState(() {
        authResultState = authResult;
      });
    } on PlatformException catch (e) {
      debugPrint('platform: $e');
      setState(() {
        exceptionState = e.toString();
      });
    } catch (e) {
      debugPrint('others: $e');
      setState(() {
        exceptionState = e.toString();
      });
    }
  }

  Future<bool> doAuthenticate() async {
    return await auth.authenticate(
      authMessages: <AuthMessages>[
        const IOSAuthMessages(localizedFallbackTitle: 'OK'),
        const AndroidAuthMessages(
          signInTitle: 'Authentication required',
          cancelButton: 'Cancel',
          biometricHint: ' ',
        ),
      ],
      localizedReason: Platform.isAndroid ? 'Touch fingerprint sensor\n' : ' ',
      options: const AuthenticationOptions(
        useErrorDialogs: false,
        stickyAuth: true,
        biometricOnly: true,
        sensitiveTransaction: true,
      ),
    );
  }
}

Thanks for the detailed repro and video. I was able to replicate this using S10.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.22.0, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.22.0 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (5 days ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.22.0-45.0.pre.3, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.22.0-45.0.pre.3 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fe0932f2c0 (4 hours ago), 2024-05-22 22:19:25 -0400
    • Engine revision b8b82454e3
    • Dart version 3.5.0 (build 3.5.0-178.0.dev)
    • DevTools version 2.36.0-dev.10
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/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 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

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

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

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

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

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

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

This is likely an issue in the underlying library given that the initial result demonstrates that we can correctly map the error codes at the plugin layer.

@stuartmorgan does that mean we should close this issue since it is with the underlying library?

Ideally someone should validate that it's not a bug in our logic; I think it's very likely not to be given the symptoms, but a definitive answer from debugging would mean we would either know we could fix this, or know enough that someone could file an issue against the credential manager library.


Azure Blob Service Library - ListBlob with Filter

Thanks for the reply, however I cannot see the ListBlobs Method.
This method is not available within the new Azure.Storage.Blobs Package.
(https://github.com/Azure/azure-sdk-for-net/tree/Azure.Storage.Blobs_12.13.0/sdk/storage/Azure.Storage.Blobs)
The ListBlobs method you are referring to is from the depricated Microsoft.Azure.Storage.Blob Package.
(https://github.com/Azure/azure-storage-net)
Am I missing something here?
Originally posted by @Dan127001 in https://github.com/Azure/azure-sdk-for-net/issues/29961#issuecomment-1194123153

@Dan127001 Apologies for the late reply. Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.

@Dan127001 Since your requirement is to get the delta (blobs that changed by other PCs) since last check, Did you explore the  changefeed feature of Azure Blob Storage ? Change feed provides transaction logs of all the changes that occur to the blobs and the blob metadata in your storage account. This article shows you how to read change feed records by using the .NET blob change feed processor library.
More Info here.

This looks like the thing we need! Also with a cursor functionality - very nice.
However, I see it is still in preview.
Is there a timeline on the first release / stable version?

@Dan127001 The feature itself is GA. I am checking internally on the Azure.Storage.Blobs.ChangeFeed library's stable version release.  I will keep you posted.

@Dan127001 I have heard back from the Product Owners. They have informed that they do not have a timeline for the Change Feed library GA.  We will consider creating this timeline if there is sufficient customer demand. Hope this answers.

/unresolve
I now took a look at the library. It seems like the ChangeFeed is only available for the whole storage and not on container level.
Is it possible to get a ChangeFeed (cursor or filter by date) on container level?

@Dan127001 You are right. This is available only at the account level and not at the container level.
Change event records use the Apache Avro 1.8.2  format so the log file has the .avro file extension.
Your client applications can consume the change feed by using the blob change feed processor library that is provided with the change feed processor SDK. See Process change feed logs in Azure Blob Storage.
So if you are concerned about a particular container only you need to write that logic within your application to fikter those events only and fetch the required details. Here's an example of a log file and you can see the apitestcontainerver container data:
{
"schemaVersion": 1,
"topic": "/subscriptions/XXXXXXXXXXXX/resourceGroups/sadodd/providers/Microsoft.Storage/storageAccounts/SADODD-DEV-09",
"subject": "/blobServices/default/containers/apitestcontainerver/blobs/F_0003",
"eventType": "BlobCreated",
"eventTime": "2022-08-11T18:12:01.079Z",
"id": "55e5531f-8006-0000-00da-ca3467000000",
"data": {
"api": "PutBlob",
"clientRequestId": "edf598f4-e501-4750-a3ba-9752bb22df39",
"requestId": "00000000-0000-0000-0000-000000000000",
"etag": "0x8D698F13DCB47F6",
"contentType": "application/octet-stream",
"contentLength": 128,
"blobType": "BlockBlob",
"url": "",
"sequencer": "000000000000000100000000000000060000000000006d8a",
"storageDiagnostics": {
"bid": "11cda41c-13d8-49c9-b7b6-bc55c41b3e75",
"seq": "(6,5614,28042,28038)",
"sid": "591651bd-8eb3-c864-1001-fcd187be3efd"
}
}
}
Hope this answers.

/unresolve
Thanks for your answer.
I thought about writing server-side code to filter the ChangeLog before giving it to a client. However, this would result in heavy load on our backend, which we want to avoid.
Also, the transmission and RAM of our Backend would spike -> every time a client requests the changelog the backend goes through all clients changes since cursor X and then after filtering all of this, transmits the filtered results to the client.
Filtering on the client end would be unsecure, since the client would then have access to all the changelogs of different containers (in our case container other account’s data).
Our goal is to handle the access to containers within a blob storage in our backend (with an authenticated user) and then handle the following tasks regarding delta checks and downloads between the client and storage, without blocking / using many resources at our backend.
Those are my thoughts on why filtering is not a valid option for us.
I hope you understand where we are coming from and why we want to achieve this.

@Dan127001 Thanks for getting back. We hear you and understand your concern. I had reached out to the Product Owners too to get their pointers. Unfortunately, there is currently no option to filter the changefeed to a specific container. The changefeed for the entire storage account is stored in a specific container $blobchangefeed  in the storage account.  To process the changefeed, the SDK has to download the changefeed for the entire storage account for a specific time period.
The only way I see for your scenario to filter the changefeed by a container would be to implement a filter on top of the SDK in their code. Hope this answers.


fine-tune 3D smal fiting

Hi, @benjiebob ,thanks for your sharing.
I have tried to utilize the  project to get a fine-tune smal parameters for a specific cat with a  cat  .obj file.
And the  smal results as  followed.
1.family_0.obj fine-turn to family 0 smal base model  stage 0 result

2.family_0.obj fine-turn to family 0 smal base model  stage 2 result

3.family_4.obj fine-turn to family 0 smal base model  stage 0 result

4.family_4.obj fine-turn to family 0 smal base model  stage 2 result

Seems that it can work better for cross species other in the same species with minor difference.
Any suggestion for a better inner-species fine-turn result?
We may Take the family_0.obj  exported from data_000781_4_all.pkl  as a benchmark.
Configaration for the result above:
My training config use the fitter_3d/example_cfg.yaml (family_id=0)  and my input .obj was exported from my_smpl_data_00781_4_all.pkl.

Hi, @benjiebob ,thanks for your sharing. I have tried to utilize the project to get a fine-tune smal parameters for a specific cat with a cat .obj file. And the smal results as followed. 1.family_0.obj fine-turn to family 0 smal base model stage 0 result
2.family_0.obj fine-turn to family 0 smal base model stage 2 result
3.family_4.obj fine-turn to family 0 smal base model stage 0 result

4.family_4.obj fine-turn to family 0 smal base model stage 2 result
Seems that it can work better for cross species other in the same species with minor difference. Any suggestion for a better inner-species fine-turn result? We may Take the family_0.obj exported from data_000781_4_all.pkl as a benchmark.
Configaration for the result above: My training config use the fitter_3d/example_cfg.yaml (family_id=0) and my input .obj was exported from my_smpl_data_00781_4_all.pkl.

Hi, have you figured out this problem?


CAMEL-13559: initial work to add change data capture in camel-salesforce (DO NOT MERGE PLEASE)

Not ready to be merged, but as I will be away from keyboard the coming days it would be a good spot to get quick feedback.

Thanks for early feedback. Closing this PR for now.


Veracode Password reset.

Topics (Please mark an [x] to your Topic):

[ ] KICS
[ ] Invicti
[ ] GitGuardian
[ ] Pentesting
[ ] Security assessment (threat modeling, code reviews)
[ ] Trivy
[X] Veracode (initial setup, GitHub integration)
[ ] Other

Request Veracode password reset.

Please write me your mail address so I can find you in Veracode.
Generally helpful if you would add your real name to your GitHub profile, so that it is clear that you are not an NPC.

My email would be<EMAIL_ADDRESS>

Change password email sent


GPT-2 model error

when I tried to evaluate your pretrained models, all gpt-2 models(goal_benchmark_gpt, step_benchmark_gpt, order_benchmark_gpt) raised the same error
Traceback (most recent call last):
File "./transformers/examples/multiple-choice/run_multiple_choice.py", line 254, in
main()
File "./transformers/examples/multiple-choice/run_multiple_choice.py", line 200, in main
if training_args.do_eval
File "/users4/qkshi/rkwang/eri/WikiHow/transformers/examples/multiple-choice/utils_multiple_choice.py", line 132, in init
pad_token_segment_id=tokenizer.pad_token_type_id,
File "/users4/qkshi/rkwang/eri/WikiHow/transformers/examples/multiple-choice/utils_multiple_choice.py", line 543, in convert_examples_to_features
return_overflowing_tokens=True,
File "/users4/qkshi/anaconda2/envs/wikihow/lib/python3.6/site-packages/transformers/tokenization_utils.py", line 1571, in encode_plus
"Unable to set proper padding strategy as the tokenizer does not have a padding token. "
ValueError: Unable to set proper padding strategy as the tokenizer does not have a padding token. In this case please set the pad_token (tokenizer.pad_token = tokenizer.eos_token e.g.) or add a new pad token via the function add_special_tokens if you want to use a padding strategy

Hi,
Please make sure that you are using the correct version of huggingface transformers, and the run_multiple_choice.py file modified by us (which allows the use of GPT-2). Our colab notebook here is a working demo on how to use the models. Please let us know if you have more questions!


quaternion2euler doesn't work for certain sets of angles

🐛 Bug
In 3D viewer mode, if viewer.camera.angles is set to some particular set of Euler angles, a RuntimeWarning is raised and the viewer.camera.angles sends back a tuple containing a nan.
We can trace it back to the quaternion2euler function that doesn't work as intended. For certain angles, the argument that goes into the arcsin function is greater than 1, raising an error and returning a tuple containing a nan.

To Reproduce
Steps to reproduce the behavior via the viewer (easy to show how problematic that can be) :

Set viewer.camera.angles to a particular angle -> raises a warning
Ask back viewer.camera.angles -> shows the nan

import napari
viewer = napari.Viewer()

viewer.dims.ndim = 3
viewer.dims.ndisplay = 3
viewer.axes.visible = True

# Particular set of angles
angles_0 = (180,-90,0)

# Set view
viewer.camera.angles = angles_0
# Get view and print
print(viewer.camera.angles)

Steps to reproduce the behavior directly via the function quaternion2euler :

Convert the set of angles to a vispy Quaternion (as done in the camera)
Convert back this object to Euler angles via the quaternion2euler function

from napari._vispy.quaternion import quaternion2euler
from vispy.util.quaternion import Quaternion as Q

# Particular set of angles
angles_0 = (180,-90,0)

quaternion = Q.create_from_euler_angles(*angles_0, degrees = True)

# Supposedly same angles...
angles = quaternion2euler(quaternion, degrees = True)

print(str(angles_0) + ' became ' + str(angles))

The warning that is raised is :
..\napari\_vispy\quaternion.py:128: RuntimeWarning: invalid value encountered in arcsin   np.arcsin(2 * (q.w * q.y - q.z * q.x)),

Expected behavior
Expected to get back the exact tuple of angles we just set and without warning.

Environment
napari: 0.4.7
Platform: Windows-10-10.0.19041-SP0
Python: 3.8.8 | packaged by conda-forge | (default, Feb 20 2021, 15:50:08) [MSC v.1916 64 bit (AMD64)]
Qt: 5.15.2
PyQt5: 5.15.3
NumPy: 1.20.1
SciPy: 1.6.1
Dask: 2021.02.0
VisPy: 0.6.6
OpenGL:

GL version: 4.6.0 NVIDIA 457.09
MAX_TEXTURE_SIZE: 32768

Screens:

screen 1: resolution 1920x1080, scale 1.0

Plugins:

animation: 0.1.dev86+g1fa7b65
console: 0.0.3
svg: 0.1.4

Additional context

The problem is half solved if we cap the modulus of the arcsin argument by 1, but then there is still a problem in the conversion leading to "get" angles different from the ones we set. I'll probably open another issue for that.

Wow, nice catch!! Thanks for filing this report and the PR, I'll take a look at that now too. We'll definitely want to fix this

This was closed by #2530


posix: Clean up various headers

Ok, so this started as just moving open() from unistd.h to fcntl.h, but as usual, led to chain of conflicts, which however this time were tracked down to completion.

Per POSIX, open() is defined in <fcntl.h>. fcntl.h in turn comes from
the underlying libc, either newlib, or minimal libc.
Signed-off-by: Paul Sokolovsky<EMAIL_ADDRESS>

Ok, so this started as just moving open() from unistd.h to fcntl.h, but as usual, led to chain of conflicts, which however this time were tracked down to completion.

@mbolivar: I don't understand what you mean. Please review previous comments and history of title changes regarding the goal of this PR. And perhaps, post comments without hitting -1 button right away?

post comments without hitting -1 button right away?

I posted 3 comments; what are you talking about?

I posted 3 comments; what are you talking about?

Ok, sorry, I didn't get them in email, and didn't see at once here.

I'm done with this PR. Dismissing my stale review.

I would like to see this merged soon since it's required as the basis of reworking #17003.

@pabigot: Thanks for approval.

Rebased to the latest master and removed #include <kernel> from sys/stat.h to accommodate thorough reviewers here.

Let me try to remove that and see if it leads to cascade of unexpected CI breaks (which is very common so far with POSIX subsys stuff, and what I'm trying to fix - step by step).

Failed. Surprise.
But this time it looks like some regression from timer (counter?) API rework. I'm curious why main CI didn't/doesn't catch it  - I also see our (Linaro's) CI fails on that. (Didn't have a chance to look closely, as we're at a sprint now.)

/home/buildslave/src/github.com/zephyrproject-rtos/zephyr/drivers/timer/apic_timer.c:6:10: fatal error: drivers/system_timer.h: No such file or directory
 #include <drivers/system_timer.h>

Build is green, @nashif, please re-review.

@pfalcon this needs a rebase so we can push it toward a merge.  Thanks.

this needs a rebase

Rebased, thanks. The build is green. (Note that I'm going on vacation for a week re: any possible future requests.)

@pfalcon Thanks.   My rework of #17003 is complete and waiting for this to be merged so I can submit those changes and DS3231 support.  I'm hoping that'll happen soon.  Enjoy your vacation.

@nashif can you re-visit your review?

(I know Anas is on holiday and double checked that his remark was included, so I dismissed it - hope that's OK)

@mgielda, Thanks for review.
Also, the PR is rebased against master, added a commit to fix issue mentioned in https://github.com/zephyrproject-rtos/zephyr/pull/17768#issuecomment-515015980 (cc: @PiotrZierhoffer).

A few minor comments, but otherwise looks good.

Should be addressed now.


Upgrade Angular to a more recent version that is not EoL

We are currently on Angular 9. At the time of writing active support ended 2 years ago and security support one year ago.
Should be pretty easy to upgrade, but need to check gotchas in upgrade instructions. Probably best to upgrade incrementally?

Hi.
I would like to work on this issue. Can you assign me to it?

Sure. Please note that from Angular 10 you probably need to upgrade hav-components to 2.0.0.

HI!
There is PR ready, for the update to version 10.
https://github.com/havochvatten/MSP-Symphony/pull/66

Hi!
There is the update to version 11.
#76


Update schema and refactor zip code exclusion

I want to merge this change because it updates branch to newest schema.
PR intended to be tested with API branch: master
Pull Request Checklist

[ ] All visible strings are translated with proper context.
[ ] All data-formatting is locale-aware (dates, numbers, and so on).
[ ] Translated strings are extracted.
[x] Number of API calls is optimized.
[ ] The changes are tested.
[ ] Data-test are added for new elements.
[ ] Type definitions are up to date.
[ ] Changes are mentioned in the changelog.

Test environment config

API_URI=https://master.staging.saleor.rocks/graphql/

Ref #877


Need help compiling an Android plugin (.so) which uses WebRTC

I've successfully built the Android WebRTC libraries using the scripts in this repository.  Now what I really want to do is compile an Android C++ library (.so) which uses WebRTC together with a bunch of other code for my use.  I want to use the typical ndk-build system (with Android.mk, Application.mk) to create this plugin.  My main struggle has generally been knowing which C++ runtime (APP_STL) to choose, and maybe someone can help me with this.
Specifically my Android library will not only use WebRTC, but also the boost libraries as well as other third party libraries.  So I need to find a way that all of them can be linked together with consistent C++ runtime...
Before dealing with the hard case of mixing WebRTC with boost, I wanted to verify that I know how to build an Android library which only links to WebRTC.  So I created the dummy cpp file, foo.cpp, seen below, and eventually determined the right .mk files that allow it to build with ndk-build.
foo.cpp
#include "webrtc/base/thread.h"
extern "C" void foo() { rtc::Thread *thread = new rtc::Thread; }

Application.mk:
NDK_TOOLCHAIN := arm-linux-androideabi-4.9
APP_ABI := armeabi-v7a
APP_STL := c++_static

Android.mk:
LOCAL_PATH := $(call my-dir)
WEBRTC_ROOT = /home/vagrant/mybuild/webrtc/src
WEBRTC_LIB_ROOT = $(WEBRTC_ROOT)/out_android_armeabi-v7a/Release/obj

include $(CLEAR_VARS)
LOCAL_CFLAGS    := -DNDEBUG -DWEBRTC_POSIX -DWEBRTC_LINUX -DWEBRTC_ANDROID -std=gnu++11
LOCAL_LDLIBS    :=  -llog -L$(WEBRTC_LIB_ROOT)/webrtc/base \
                   -lrtc_base -lrtc_base_approved \
                   -L$(NDK_ROOT)/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a \
                   -lc++_static

LOCAL_MODULE    := foo
LOCAL_SRC_FILES := ../foo.cpp
LOCAL_C_INCLUDES:= $(WEBRTC_ROOT)
include $(BUILD_SHARED_LIBRARY)

This is the combination that seemed to work for me.  Other choices of APP_STL seemed to fail...  Does that seem right?  Do I have to use c++_static in order to be consistent with the way the WebRTC libraries were built?
But now I'm struggling with mixing it with boost.  Until now I've been dealing with boost by building using CrystaX NDK which seemed to have simpler support for boost.  When I've done this in the past, I've generally set APP_STL:=gnustl_static, which seems like it may be inconsistent with the way we built WebRTC...  Does that mean I will need to configure WebRTC to build with CrystaX too? Does anyone know of a simpler solution to add the boost libraries to the mix?
Any help would be appreciated.
Eran.

Eran,
I'm not sure I can help you, WebRTC is meant to be built using the scripts and not the NDK.
Can't you just link the built libraries in your project? Can't they be mixed together after they are actually built?

Thanks.  I did (hopefully) solve this issue in the end.
Again the issue was that I needed to use both WebRTC and boost in my project, and the former is built (by default) with llvm-libc++, while the latter is built with gnustl.  And mixing them together caused problems.
So what I ended up doing is creating a thin, C-style wrapper around the functions I needed from WebRTC.  I built this wrapper into a shared library (.so), by statically linking to a long list of WebRTC .a files, and also making sure to link with libc++_static to be consistent with the WebRTC compilation.
Then I used this .so with the rest of my boost-dependent project by compiling with crystax instead of the stock NDK and linking with gnustl.
I saw "hopefully solved" because it does produce some warning related to the fact that my code mixes two types of runtimes, but so far it seems to work okay despite these warnings...

glad to hear you overcame the issue

I caught this problem too.
So I have to build all third party lib to c++_static which cost me a lot of time.

Thanks for the solution ,that was a great help.

hi, eguendelman, I meet the issue, can you show you compile command? thanks a lot


question application rosaenlgs

Hello ,
I have a question about a rosaenlg application.
I have structured data about a social network( number of persons, number of messages, ...) in an excel file divised into coloumns.
For instance all what i can do is to generate a text that describes what happens in one line of data.
What i want to do is to compare the data between the lines.( For example, the number of persons has increased or the number of messages has decreased compared to the last line)
Is it possible to do so with rosaenlg and if yes how ?
Thanks

Hello Houssem,
A real world NLG app works in 2 steps:

based on your data, define what you want to you, what is the story
transform it into text

The first step is generally implemented using some simple stats, data crunching etc. Use JavaScript, Python or whatever.
When you mention comparing lines, this must typically be done in the first step.
The output of this first step is still data (not text). It is the technical representation of your story.
The second step consists of transforming that story into text (data-to-text). This is done using RosaeNLG templates.
The output is the final text.
It is important to distinguish these two steps, otherwise your second step (RosaeNLG templates) will be messy.
An implementation option is to implement step 1 using JavaScript, in RosaeNLG.
Your RosaeNLG template will:

get the raw data
run step 1 using plain JavaScript
run step 2 using templates

See https://rosaenlg.org/rosaenlg/2.1.9/mixins_ref/otherAndHelpers.html#_include

@houssem3107 please tell me if it is clear enough. If so, I'll close the issue.

Hello,
Thank you for the fast response, it was clear enough


Ability to read single terrain file with arbitrary regional extent?

Hi,
This interests me a lot.
Hope it's OK that I ask some questions.

I was wondering if is it possible to read a single terrain file with arbitraty regional extent? How hardwired are the grid arrangements in the code?
The GMT software serves a lot of tiles with different resolution covering the whole planet. See e.g. here for the tiles for a 2 degree topoography grid covering the Earth. Would it be much effort to support this? This goes back to the question above; how hardwired are the grid schemes to the program(s).

Pardon my lack of knowledge of C++, and the programs. Ideally I should be able to find this out on my own.
Best,
Andreas

The algorithms don't care about physical extent, but of course the data needs to be interpreted correctly to produce latitudes and longitudes at the end.  You can see how supported tile formats are implemented here:
https://github.com/akirmse/mountains/blob/master/code/file_format.h
https://github.com/akirmse/mountains/blob/master/code/file_format.cpp
Handling 2 degree tiles instead of 1 degree does not seem very hard.  Note that the filenames need to be predictable given a lat/lng (or X/Y in the case of UTM coordinates).  And exotic formats like JP2 aren't natively supported; you'd want to use a tool like gdal_translate to first convert it to FLT files (see the README).

Thanks. The tiles are also available as 1 degree tiles. Will look at the code.

I see now that it is the resolution (2 and 1 degree) I’m referring to - not tile extent. Sorry.

I converted a grid to flt, renamed it to GLO30-filename style and specified -f "GLO30".
Complained that Couldn't read tile file: tile/Copernicus_DSM_COG_10_N59_00_E005_00_DEM.flt, got 1266436 samples expecting 8640000. I assume this is because GLO30 format is 2400*3600 cells and prominence is 'hardwired' to expect this amount of cellls/samples per tile (for GLO30).
Wish thinking: converting a grid to flt is easy. Making it the 'right' dimension is more cumbersome. Imagine if prominence could eat any *.flt without caring if it was SRTM, GLO30, etc.
This program is super interesting; I have to find a way to use if on data. Think about all the mountains below thee sea surface.

GLO30 has strange latitude-dependent resolutions and requires special handling: https://copernicus-dem-30m.s3.amazonaws.com/readme.html
Perhaps you could add a generic tile format that does what you want?  I'm on vacation at the moment and can't take a look for a few weeks.  Can you send a pointer to the data you're trying to use?  Note that FLT has no metadata such as width, height, or number of overlap pixels, which is why the code has to make assumptions.

First, sorry for disturbing your vacation.
I'm kind of using this issue as thinking loud as well.
I'm usually looking at data not being part of a worldwide, tiled datasets (SRTM, GLO30 etc.). It's more like geotiffs of 10-100's of km2, covering arbitrary geographic extent. Again, file formats are easily abstracted away with great tools like gdal_translate, as you've pointed out. I'll look more at it. My dream situation would again be to just give prominence a single file, and don't have to worry about 'tile size', samples, etc.
Thanks for answering and enjoy your vacation!


Ranking System

Fork count is usually proportional to star count, but some repo shows higher proportion between fork count and star count than others.
To compare with Facebook post, starring a repo is similar with liking a post and forking a repo is similar with saving a post for later use. Therefore, I think fork count is more valuable number to judge how popular each repo is than star count.

Thanks for your input but we don't have any plan to take forks into account at the moment.
I'm closing this issue.


https://localhost:5000 should be http://localhost:500

This is a documentation error

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

ID: 73a43800-f76a-f114-f4a2-ed18785b7c76
Version Independent ID: 172adee6-e47b-b68d-0687-2c9009052559
Content: Install and run containers - Text Analytics - Azure Cognitive Services
Content Source: articles/cognitive-services/text-analytics/how-tos/text-analytics-how-to-install-containers.md
Service: cognitive-services
Sub-service: text-analytics
GitHub Login: @IEvangelist
Microsoft Alias: dapine

@ericzhao0821 Thanks for the feedback. We are investigating into the issue and will update you shortly.


Game of Life - 'lifeless boundary'

Hi,
The implementation of the Game of Life sets all the boundary cells (i.e. rows and columns indexed 0 and -1) to 0, independent of the statuses of the adjacent cells.
E.g. if the top-right corner is:
[[0,1,...],
[1,1,...],
then the cell [0,0] should be recognized as 'birth' and become '1'. Instead it is set to 0, as all cells on the boundaries.
Is it an intended behavior or should be corrected? I can add a version/correction allowing for life cells also on the boundaries.

It is intentional actually.

Is it a convention for the game of life on finite boards to have this 'dead zone' on the margins? I found it strange for life cells to be allowed there at the start of the game but forbidden in next generations.


Copy and paste

How do I copy something from my machine to the FF container and from FF to my machine?
Is it possible to do something like VirtualBox does, let the host and client communicate, copying something to each other as if it were native?

The control menu has a clipboard that can be used for this purpose.

What is greyed out ?  Once you type something under Clipboard, you should be able to past it (ctrl+v) into Firefox.

I can't find this menu. Can someone explain how to open it?

@0xMH, this menu is automatically displayed when you load the page.  It then automatically closes after a few seconds.  You can re-open it by clicking the small handle.

I have the same proplem, I cannot copy from firefox container to my local computer

I have the same proplem, I cannot copy from firefox container to my local computer

Are you using the clipboard from the control menu?

Unable to coopy from the firefox container to local computer.

Please provide more details. Are you using the clipboard box from the side panel?

Yes, clipboard works when copying from local computer to firefox container but not vice versa? Is there a feature where we can natively copy ? between the container and the client machine ?

I restarted the container and the clipboard copy paste worked both ways.  Can we request a native clipboard feature so that we can copy directly from/to the container?

Note that currently, only Chrome offer the required APIs to perform "seamless" copy/paste functionality. Other browsers, like Firefox and Safari, require explicit user action.

how can i copy paste file ?

To exchange files between the host and the container, you can use the folder you mapped to /config.


Re-enable Docker Image run and AD tests in CI workfow

Currently OS 2.0  docker image is unavailable.So for the CI to succeed,CI.yml  AD tests run dependent on the docker image has been commented out.
Ref: https://github.com/opensearch-project/anomaly-detection/pull/464
Opening this issue as placeholder to follow up and uncomment the tests once docker is available .

Do we still want this for 2.0?

yes..this is a necessary infra issue and 2.0 specific..so we can remove the label but will keep the issue open as placesholder


Adding tslint rule to enforce consecutive function overloads

Fixes #

Hi @rakatyal, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Raghav Katyal). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

This became palantir/tslint#1426, so closing here.


Suggestion: Lantern/streetlight on T1 pole

(Have been asked to open it here instead of ELN1)
Hello! I thought it would be nice to have a streetlight/floodlight on a pole (I don't think I need to attach a picture of it, it is still relatively common).
The lantern should have a photocell (so it will burn only at night or rainy day in Minecraft) and a transformer so it could be powered directly from the grid. In my opinion it suits villages and small towns really well, and can ease on creating street lighting

Street lights don't need a transformer on every pole, in real life they have their own dedicated line on the pole that is set to the proper voltage they run at.

Street lights don't have their own transformer on every pole, in real life they have their own dedicated 120v to 277v or even 480v line on the pole or underground that they run on.

This really depends on the jurisdiction; often around where I live they are run directly from the same 240v lines as they run to houses for metered stuff. Don't ask if/how they meter it, because I don't know nor care for Eln2. Players can figure that out for themselves if they want it.

Also we should have a gui in which we can place a photocell / shorting cap / non shorting cap into if we want the light to run from dusk to dawn (photocell) or be on all the time (shorting cap), or be off all the time (non shorting cap).

 If you want something like this, you're building a circuit to control it on the pole in some kind of circuit box. I'd much rather people build their own contraptions than give them canned inflexible garbage content. I was actually just talking with the other developers about this, and we're pretty sure we're actually just going to make poles literally just a "pole" and that you attach your own wires and stuff to it as you wish.

"Street lights don't have their own transformer on every pole": yes I know, the reason I suggested it because I am not sure, if it is possible to have multiple power lines on the same pole in ELN2. It would be great of course, but I have no idea if it's hard to implement (and if it gets implemented first of all!)
"If you want something like this, you're building a circuit to control it on the pole in some kind of circuit box": sounds interesting, thanks!


MDE Advanced Hunting WDAC events parsing

I am not sure if this is a bug or I misunderstood ISG.
WDAC cannot parse the ISG action type: AppControlCodeIntegrityOriginAudited (3091). We use self-developed software which is distributed only in our company. It may be useful to allow such programs by a parsed MDE Rule.
It would certainly make sense to allow such 3rd party apps based on the MDE Adv. Hunting logs. The analysis via Advanced Hunting is much easier than to parse local log files.

3091 events indicate that the file that was audited did not have reputation from ISG or Managed Installer. There will, however, still be 3076 events indicating that this same file was audited by WDAC.
3091 events contain the following:

Filename
NTStatus
ManagedInstallerEnabled bool
PassesManagedInstaller bool
SmartlockerEnabled bool
PassesSmartlocker bool
DefenderTrust bool
AuditEnabled bool
PolicyName
PolicyID

None of these can be used in a WDAC policy rule. You can however use the 3076/3077 event fields to create a rule, which the Wizard supports.

Closing as by design


Example results in 'invalid TICKscript:...'

URL for relevant page?
https://docs.influxdata.com/kapacitor/v1.3/nodes/http_out_node/
What products and version are you using?
Kapacitor 1.3.1 (git: master 3b5512f7276483326577907803167e4bb213c613)
Where did you look before opening the issue?
At the Kapacitor documentation.
I'm trying to get a simple TICKscript working using the HTTPOutNode.  I copied the example provided on the documentation page into a file on my machine, then ran the kapacitor define command to create the Task, but got

invalid TICKscript: line 2 char 10: no method or property "window" on *pipeline.StreamNode

The script in the example is:

stream
        |window()
            .period(10s)
            .every(5s)
        |top('value', 10)
        //Publish the top 10 results over the last 10s updated every 5s.
        |httpOut('top10')

Seems like the example should work.

This will be published overnight -- 9/11/2017.


It isn't possible to access the filtered items within the view

Attempting to use the same method as ng-repeat to access the filtered list within the scope of the view fails i.e.
dir-paginate="item in filteredList = (list | filter1 | filter 2 | orderBy | itemsPerPage)
{{item}} fails to find the item in the scope.

Try putting the itemsPerPage filter outside the parentheses. Let me know if that helps.

That worked, thank you! Should this be added to the documentation?

Good. There is actually already a section addressing this issue in the FAQ: https://github.com/michaelbromley/angularUtils/tree/master/src/directives/pagination#why-does-my-sort--filter-only-affect-the-current-page


Make new releases on github

I found myself moving away from using django-configurations over 2020, because every time I looked at the front page of the repo, I saw:

I tend towards avoidance of libraries that don't get much maintenance, and this kept tripping me up!

Just for reference: there's a newer tag/release (for 2.2), which is not created as a proper GitHub release: https://github.com/jazzband/django-configurations/releases.

2.2 was added to the GitHub releases: https://github.com/jazzband/django-configurations/releases/tag/2.2


Settings manager

To turn the dropCasingsAsItems constant into a setting
Perhaps work with DFHack to pioneer a settings manager format

Settings for which flags should be transferred between fired and sub projectiles


KafkaImporter with error: Broker transport failure

How to pass Kafka topic authentication details with KafkaImporter?
When I use KafkaImporter utility, I didn't find options about security properties.
When I execute the utility, the KafkaImporter returned error, KafkaImporter.cpp:261 ERROR(Local: Broker transport failure): xxx : Disconnected ( after 1ms in state UP). I doubt that it may caused by there is no kafka security properties.

Hi @heiseon,
At the time of writing, the actual version of Kafka importer hasn't any security option enabled because it is compiled with an old version of the library that doesn't support any authentication.
I suggested a workaround in the community forum, but I'm unsure if that solution fits your needs.
Anyway, you can read to this link.
https://community.omnisci.com/t/kafka-importer-with-topic-security/2552


Trim a few seconds off of the install procedure

Yes, this is somewhat obvious, and it can easily be included so that some users save a small chunk of time than they might otherwise lose during installation.

👍


Update filters to include (No values detected)

Adds support for filtering (No values detected) slices from graphs in UI
Closes #296
Signed-off-by: Avishrant Sharma<EMAIL_ADDRESS>

Fixed in https://github.com/nexB/scancode.io/pull/487


Can't paste or insert into empty notebook

Have notebook with one cell
Cut that cell
Can't paste, or insert a cell

I am experiencing both this problem and the double-paste issue noted elsewhere, where copying something and pasting it into a notebook block results in a double-paste of the contents

You are actually seeing https://github.com/microsoft/vscode/issues/101946

I was able to repro this: https://memes.peet.io/img/20-08-cbceb676-831a-4077-9422-5440ac9fd181.webm


A Data Integration Framework for Microbiome Research | Giulio Benedetti | JuliaCon 2022

Hi!
Here below is the same content as in the md file inside the videos dir. Thanks again!
References:
Speaker: Giulio Benedetti
Video title: A Data Integration Framework for Microbiome Research | Giulio Benedetti | JuliaCon 2022
Link: https://www.youtube.com/watch?v=Oxi0Pfmskus&list=PLP8iPy9hna6QuDTt11Xxonnfal91JhqjO&index=11
Contents:
0:00 Welcome!
0:06 Opening
0:26
Self-introduction
0:55 Background
1:41 SummarizedExperiments.jl
3:37 MicrobiomeAnalysis.jl
5:55 Next steps
7:18 Acknowledgements

Hey @RiboRings the video link here is wrong


DG update v1.3

Coverage remained the same at 89.444% when pulling 6dc18a604b2eff0075c531983e02c5a6ada28d39 on justinpoh:DG-v1.3 into dc3d8e503f0cc6a452e49514c9247ffaf94973ff on CS2103AUG2017-W14-B1:master.


SOMA POC enables users to extract targeted selections of cells from the cellxgene data corpus using R or Python

This epic will outline the work towards a SOMA POC.

This work is in progress and the epic is outdated for current progress see the following doc
https://docs.google.com/document/d/19MfNp3E2S4wpzNzr-Q_S8SCVvxFZwYRc9XYzEUjBrVI/edit#

Closing - all child issues were addressed.


Format the money on the UI

I added a function called formatToMoney() that adds a dollar sign and formats the number to 2 decimal places

Before we move too much with this repo, we should meet and discuss the goals for this next semester.
I think that sort of code you wrote will be reusable, but there will be some things that we will not be able to reuse in the next semester due to a small change in the direction of the game.
See this pull request ;) I should email this out to everyone on the team as well.


Escape strings in generated types

Closes https://github.com/eclipse-langium/langium/issues/1536
Correctly escapes all quotes inside of string values in the generated ast.ts file.
Also removes a few quotes in case they weren't needed (like for type references inside the ast reflection). This should improve bundle size.

cc @AlexandreLachanceGit I've seen that you've been encountering this issue in this parser rule. Note that you can work around it by giving the rule a return type:
interface Syntax {
    syntax: string;
}

Syntax returns Syntax:
    'syntax' '=' syntax=('"proto3"' | "'proto3'") ';';


Multiple fixes for iPhone X and Interstitials

I had originally fixed the banner location issues on iPhone X for bottom banners only.  This new PR fixes banner locations on the iPhone X for top banners.  These changes make banner placement obey safe areas in iOS11.
I also included a change to adjust the webview after closing an interstitial ad so that banners are positioned correctly.

This PR resolves the following issues:
issue #261
issue #260
and comments made near the end of issue #232

@tennist @altick 👍