Multiple levels of navigation

Hey guys,
I'm trying to do something rather simple using SwiftUI and TCA which is to have multiple levels of navigation. Basically, I have 3 screens :

First screen has a navigation link to the second screen
Second screen has a navigation link to the third screen
Third screen can only go back

The code for each screen is very similar so I'll post only the second one but here's the full project.
import ComposableArchitecture
import SwiftUI

struct SecondState {
    var third: ThirdState?
}

enum SecondAction {
//    case tappedBackButton
    case tappedNextButton
    case dismissedThird
    case third(ThirdAction)
}

struct SecondEnvironment {}

let secondReducer = Reducer.combine(
    Reducer<SecondState, SecondAction, SecondEnvironment> { state, action, environment in
        switch action {
//        case .tappedBackButton:
//            return .none
        case .tappedNextButton:
            state.third = ThirdState()
            return .none
//        case .dismissedThird,
//             .third(.tappedBackButton):
        case .dismissedThird:
            state.third = nil
            return .none
        }
    },
    thirdReducer.optional.pullback(
        state: \.third,
        action: /SecondAction.third,
        environment: { _ in ThirdEnvironment() }
    )
)

struct SecondView: View {
    struct ViewState: Equatable {
        let isThirdActive: Bool
    }

    enum ViewAction {
//        case tappedBackButton
        case tappedNextButton
        case dismissedThird
    }

    let store: Store<SecondState, SecondAction>

    var body: some View {
        WithViewStore(store.scope(
            state: \.view,
            action: SecondAction.view
        )) { viewStore in
            VStack {
                NavigationLink(
                    destination: IfLetStore(
                        self.store.scope(
                            state: \.third,
                            action: SecondAction.third
                        ),
                        then: ThirdView.init(store:)
                    ),
                    isActive: viewStore.binding(
                        get: \.isThirdActive,
                        send: { $0 ? .tappedNextButton : .dismissedThird }
                    )
                ) {
                    Text("Go to next screen")
                }
            }
            .navigationBarTitle(
                "Second",
                displayMode: .large
            )
//            .navigationBarBackButtonHidden(true)
//            .navigationBarItems(leading: Button("Back") {
//                viewStore.send(.tappedBackButton)
//            })
        }
    }
}

extension SecondState {
    var view: SecondView.ViewState {
        SecondView.ViewState(isThirdActive: third != nil)
    }
}

extension SecondAction {
    static func view(_ viewAction: SecondView.ViewAction) -> Self {
        switch viewAction {
//        case .tappedBackButton:
//            return .tappedBackButton
        case .tappedNextButton:
            return .tappedNextButton
        case .dismissedThird:
            return .dismissedThird
        }
    }
}

(I commented some code about a custom back button with an action attached to it but that didn't solve the issue either.)
Here's what it looks like when I try to navigate between the screens :

Here's the output of the console when tapping on both navigation links :
received action:
  AppAction.first(
    FirstAction.tappedNextButton
  )
  AppState(
    first: FirstState(
−     second: nil
+     second: SecondState(
+       third: nil
+     )
    )
  )

received action:
  AppAction.first(
    FirstAction.second(
      SecondAction.tappedNextButton
    )
  )
  AppState(
    first: FirstState(
      second: SecondState(
−       third: nil
+       third: ThirdState()
      )
    )
  )

received action:
  AppAction.first(
    FirstAction.dismissedSecond
  )
  AppState(
    first: FirstState(
−     second: SecondState(
−       third: ThirdState()
−     )
+     second: nil
    )
  )

received action:
  AppAction.first(
    FirstAction.second(
      SecondAction.dismissedThird
    )
  )
  AppState(
    first: FirstState(
      second: nil
    )
  )

As you can see, the second screen is dismissed when I try to navigate to the third one which is also dismissed because the second property is nil. I tried to follow the examples of the repo but couldn't find a similar example with multiple levels of navigation. Why is the dismissedSecond action sent when pushing another screen on top of the second screen ? Is it a SwiftUI bug ?
I'd love to hear your thoughts on the matter and if you already implemented something similar.

@boudavid Thanks for the detailed report! You're hitting what appears to be a bug in SwiftUI. At this time it is very difficult to programmatically drive more than a single level in a navigation stack with state.
One workaround for iPhones is to add the stack navigation view style to the navigation view:
.navigationViewStyle(StackNavigationViewStyle())

This will break the column view style for iPads, so if you want universal support you'll need to account for this somehow.
Another issue you may come across is that deep linking more than a single level of navigation at once is currently not possible. You must wait a UI tick after programmatically navigating one level before navigating deeper.
I believe these issues have been filed as feedback with Apple but if you have the time it wouldn't hurt to dupe them with another example!

Awesome, I’ll try the workaround. Thanks @stephencelis.

Cool to close this @boudavid?

Hi,
Sorry for using a closed issue. Is it ok?
Did you find a way to overcome this issue @boudavid? I was able to create a small, working and non-working demo project, attempting to replicate this, that goes 3 levels deep:
ContentView > 1st Level > 2nd Level > 3th Level

What seems to break the project, is when a reducer of the third level is combined at from second level.
Here's the non-working version (and then the change to the "working version" at the end):
Partly ignore the Tabbed navigation please, I was attempting to replicate a larger project.
ContentView.swift
import SwiftUI
import ComposableArchitecture

enum Tab {
    case dummy1
    case dummy2
    case content
}

struct ContentState: Equatable {
    var firstLevelState: FirstLevelState? = nil
    var isNavigationActive: Bool = false
    var selectedView: Tab = .dummy1
}

indirect enum ContentAction: Equatable {
    case setNavigation(isActive: Bool)
    case someView(FirstLevelAction)
    case tabSelected(Tab)
}

struct ContentEnvironment {}

let contentReducer: Reducer<ContentState, ContentAction, ContentEnvironment> = Reducer.combine(
    Reducer { state, action, _ in
        switch action {
        case .setNavigation(isActive: true):
            state.isNavigationActive = true
            state.firstLevelState = FirstLevelState()
            return .none
        case .setNavigation(isActive: false):
            state.isNavigationActive = false
            state.firstLevelState = nil
            return .none
        case let .tabSelected(tab):
            state.selectedView = tab
            return .none
        case .someView(_):
            return .none
        }
    },
    firstLevelReducer.optional.pullback(
        state: \ContentState.firstLevelState,
        action: /ContentAction.someView,
        environment: { _ in
            FirstLevelEnvironment()
        }
    )
)

struct ContentView: View {
    let store: Store<ContentState, ContentAction>

    var body: some View {
        WithViewStore(self.store) { viewStore in

            TabView(
                selection: viewStore.binding(
                    get: { $0.selectedView }, send: ContentAction.tabSelected)
            ) {

                NavigationView {
                    Text("Dummy1")
                }.tabItem {
                    Text("Dummy1")
                }.tag(Tab.dummy1)

                NavigationView {
                    Text("Dummy2")
                }.tabItem {
                    Text("Dummy2")
                }.tag(Tab.dummy2)

                NavigationView {
                    List {
                        NavigationLink(
                            destination: IfLetStore(
                                self.store.scope(
                                    state: { $0.firstLevelState },
                                    action: ContentAction.someView),
                                then: FirstLevelView.init(store:)
                            ),
                            isActive: viewStore.binding(
                                get: { $0.isNavigationActive },
                                send: ContentAction.setNavigation(isActive:)
                            ))
                        {
                            Text("Go to First ->")
                        }
                    }
                }
                .tabItem {
                    Text("Content")
                }.tag(Tab.content)

            }
        }
    }
}

FirstLevelView.swift
import SwiftUI
import ComposableArchitecture

struct FirstLevelState: Equatable {
    var secondLevelState: SecondLevelState? = nil
    var isNavigationActive = false
}

enum FirstLevelAction: Equatable {
    case setNavigation(isActive: Bool)
    case secondLevel(SecondLevelAction)
}

struct FirstLevelEnvironment {}

let firstLevelReducer: Reducer<FirstLevelState, FirstLevelAction, FirstLevelEnvironment> = Reducer.combine(
    Reducer { state, action, _ in
        switch action {
        case .setNavigation(isActive: true):
            state.isNavigationActive = true
            state.secondLevelState = SecondLevelState()
            return .none
        case .setNavigation(isActive: false):
            state.isNavigationActive = false
            state.secondLevelState = nil
            return .none
        case .secondLevel(_):
            return .none
        }
    },
    secondLevelReducer.optional.pullback(
        state: \FirstLevelState.secondLevelState,
        action: /FirstLevelAction.secondLevel,
        environment: { _ in
            SecondLevelEnvironment()
        }
    )
)

struct FirstLevelView: View {
    let store: Store<FirstLevelState, FirstLevelAction>

    var body: some View {
        WithViewStore(store) { viewStore in
            List {
                NavigationLink(
                    destination: IfLetStore(
                        self.store.scope(
                            state: { $0.secondLevelState },
                            action: FirstLevelAction.secondLevel),
                        then: SecondLevelView.init(store:)
                    ),
                    isActive: viewStore.binding(
                        get: { $0.isNavigationActive },
                        send: FirstLevelAction.setNavigation(isActive:)
                    ))
                {
                    Text("Go to Second ->")
                }
            }
        }
    }
}

SecondLevelView.swift
import SwiftUI
import ComposableArchitecture

struct SecondLevelState: Equatable {
    var thirdLevelState: ThirdLevelState? = nil
    var isNavigationActive = false
}

enum SecondLevelAction: Equatable {
    case setNavigation(isActive: Bool)
    case thirdLevel(ThirdLevelAction)
}

struct SecondLevelEnvironment {}

let secondLevelReducer: Reducer<SecondLevelState, SecondLevelAction, SecondLevelEnvironment> = Reducer.combine(
    Reducer { state, action, _ in
        switch action {
        case .setNavigation(isActive: true):
            state.isNavigationActive = true
            state.thirdLevelState = ThirdLevelState()
            return .none
        case .setNavigation(isActive: false):
            state.isNavigationActive = false
            state.thirdLevelState = nil
            return .none
        case .thirdLevel(_):
            return .none
        }
    },
    thirdLevelReducer.optional.pullback(
        state: \SecondLevelState.thirdLevelState,
        action: /SecondLevelAction.thirdLevel,
        environment: { _ in
            ThirdLevelEnvironment()
        }
    )
)

struct SecondLevelView: View {
    let store: Store<SecondLevelState, SecondLevelAction>

    var body: some View {
        WithViewStore(store) { viewStore in
            List {
                NavigationLink(
                    destination: IfLetStore(
                        self.store.scope(
                            state: { $0.thirdLevelState },
                            action: SecondLevelAction.thirdLevel),
                        then: ThirdLevelView.init(store:)
                    ),
                    isActive: viewStore.binding(
                        get: { $0.isNavigationActive },
                        send: SecondLevelAction.setNavigation(isActive:)
                    ))
                {
                    Text("Go to Third ->")
                }
            }
        }
    }
}

ThirdLevelView.swift
import SwiftUI
import ComposableArchitecture

struct ThirdLevelState: Equatable {}
enum ThirdLevelAction: Equatable {}
struct ThirdLevelEnvironment {}

let thirdLevelReducer = Reducer<ThirdLevelState, ThirdLevelAction, ThirdLevelEnvironment> { state, action, _ in
    .none
}

struct ThirdLevelView: View {
    let store: Store<ThirdLevelState, ThirdLevelAction>
    var body: some View {
        List {
            Text("Third Level!")
        }
    }
}

So, the code above, shows the issue happening.
Now get this, if in the SecondLevelView.swift, instead of:
WithViewStore(store) { viewStore in
    List {
        NavigationLink(
            destination: IfLetStore(
                self.store.scope(
                    state: { $0.thirdLevelState },
                    action: SecondLevelAction.thirdLevel),
                then: ThirdLevelView.init(store:)
            ),
            isActive: viewStore.binding(
                get: { $0.isNavigationActive },
                send: SecondLevelAction.setNavigation(isActive:)
            ))
        {
            Text("Go to Third ->")
        }
    }
}

We just navigate to a WorkingLevelView:
NavigationLink(destination: WorkingThirdLevelView()) {
    Text("Go to Third ->")
}

That is simply defined as:
struct WorkingThirdLevelView: View {
    var body: some View {
        List {
            Text("Working Third Level!")
        }
    }
}

Things start working!
I'm not sure if this validates the issue, or the fact that I have a demo working correctly indicates that it might not be a bug and we're missing something 🤔
Is it weird that the issue is gone when I don't navigate to a View with a Store and a combined Reducer from the Previous View?
Sorry for the huge code paste. It's pretty vanilla CA at this point, should be understandable I hope 😸
Thanks

I ended up using @stephencelis workaround.
So you’re saying that might not be a SwiftUI bug ? I wanted to try multiple levels of navigation pushed programatically without using TCA at all to see if it was working but I don’t have much time right now.

Nyes.. 😕  First, I thought so, because I'm mostly on an iPad and the issue stopped happening when I removed the Store from the View. I created this whole demo replicating a working and non-working version, but then when I tested in an iPhone, it started happening again.
But get this,
import SwiftUI

struct ContentView: View {
    var body: some View {
        NavigationView {
            List {
                NavigationLink(destination: DetailView()) {
                    Text("Go")
                }
            }
        }
    }
}

struct DetailView: View {
    var body: some View {
        List {
            NavigationLink(destination: DetailView()) {
                Text("Go")
            }
        }
    }
}

The code above, will navigate to as many levels as needed on an iPhone Sim aparently.
It's probably an Apple bug.. But because it's so hard to pin point, sometimes it feels that it's not.
Anyways, feel free to just ignore everything above. This at least helped me put my thoughts in order. Hopefully WWDC will bring with it lot's of fixes and improvements to all things SwiftUI 🙏
Thanks again and sorry for the huge code spam

@tarjamorgado Yeah, programmatic navigation into multiple layers of a navigation stack is unfortunately impossible right now without some pretty gross workarounds. We're hoping Apple has some good fixes coming next month, though!


Make Field 25 compatible with specification

The implementation for field 25 was assuming a Bank dependent format,
not directly compatible with the MT940 specification. It does additional
parsing by splitting the field into bank_code, account_number and
account_currency.
This patch introduces a new, specification compatible Class for field
25. It only provides the account_identifier field.
Backward compatibility on the API level is provided by falling back to
the original class when requested. It prints a deprecation warning in
this case.
The change is not compatible when dumping the objects as class names
and directly available fields have changed.

This is the first commit in a series to tackle one part of #11.
@tordans @averell23 could you review these changes so I can tackle the issues and then progress with the other classes?
Thanks

Hi @huerlisi sorry for the late response. We plan to look into this next week. Thanks for your contribution!
Tobias

Looks good. Test failures were due to bugs in travis... betterplace tests also pass.

@huerlisi - merged and released version 1.5.0


Can't disconnect Azure DevOps organization from AD

I am getting the following error when I try to disconnect the AD: "AAD Tenant disconnection failed due to the error : Account entitlement not found in the dictionary for source identity '**************************'

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

ID: 7244b36c-6f57-1673-7ce4-27006923fec8
Version Independent ID: c8a5b13d-b62e-8f20-f8bd-9e41946f71b4
Content: Disconnect organization from Azure Active Directory - Azure DevOps Services
Content Source: docs/organizations/accounts/disconnect-organization-from-azure-ad.md
Product: devops
GitHub Login: @chcomley
Microsoft Alias: chcomley

Hi @bogdanbanciu, I'm sorry you're experiencing issues. I've followed up with my PM and will get back to you shortly.

@bogdanbanciu - Please create a ticket with our support team at https://azure.microsoft.com/en-us/support/create-ticket/ (choosing Basic or Premium depends on whether your organization has a Premier contract with Microsoft), and we will be able to unblock you from there.


[FEA] add ability to use a "subgraph" of an NVT workflow

🚀 Feature request
We should have a way to fit a NVT workflow to a dataset, and then export a portion of the resulting workflow for use in a serving context. The "subgraph" capability was added to core and we need to extend it to NVTabular.
Motivation
A motivating example for this is the training/serving of a two-tower retrieval model. At training time, we will need a workflow that gets applied to both user and item features. At serving time, for the query tower, we only need to fetch/transform user features.
Training process is:
(parquet files) -> transform user + item features -> fit model -> export query_tower artifact

And at serving time:
[user_id] -> fetch user features -> transform user features -> predict -> [item_ids]

We want to be able to fit one workflow to the training data, and then use a subset of that workflow (eg just the nodes with user features) at serving time.

Superseded by https://github.com/NVIDIA-Merlin/Merlin/issues/1019


Add In-App feedback implementation for ios

Coverage decreased (-57.6%) to 25.57% when pulling 7ddcfbbd07e99e41d6f805e914dae97a4ce6aacd on mohlogan_inapp_sszip into 549a2e674aa59379dd4363848da2d5a1638ab47f on development.


Unable to use form components with Formik in 1.1.0 and above

The withFormik enhancer is not exported with the react component library so users are unable to use the fields in a formik form.
Can we either export withFormik or possibly already enhance them and have them as Formik.TextInput.

Good idea - lets export enhanced versions in addition to the enhancer itself.
It appears I exported the enhancer in the wrong index file.

https://github.com/Royal-Navy/standards-toolkit/pull/245


⚠ ClamAV has degraded performance

In f864d85, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 75 ms

Resolved: ClamAV performance has improved in 6088f95 after 19 minutes.


opencv path error in mxnet scala tutorial

Note: Providing complete information in the most concise form is the best way to get help. This issue template serves as the checklist for essential information to most of the technical issues and bug reports. For non-technical issues and feature requests, feel free to present the information in what you believe is the best form.
For Q & A and discussion, please start a discussion thread at https://discuss.mxnet.io
Description
The mxnet scala in intellij instructions at http://mxnet.incubator.apache.org/tutorials/scala/mxnet_scala_on_intellij.html do not work because of an opencv library path error.
Package used (Python/R/Scala/Julia):
mxnet-scala

For Scala user, please provide:
1. Java version: 1.8.0_171
2. Maven version:  3.3.9
3. Scala runtime if applicable: 2.11.8

Error Message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/var/folders/nz/57cdgtr11pdg01rgzyzhjxvmqwmxjn/T/mxnet4117240061172168094/mxnet-scala: dlopen(/private/var/folders/nz/57cdgtr11pdg01rgzyzhjxvmqwmxjn/T/mxnet4117240061172168094/mxnet-scala, 1): Library not loaded: /usr/local/opt/opencv/lib/libopencv_stitching.3.4.dylib
  Referenced from: /private/var/folders/nz/57cdgtr11pdg01rgzyzhjxvmqwmxjn/T/mxnet4117240061172168094/mxnet-scala
  Reason: image not found
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
    at java.lang.Runtime.load0(Runtime.java:809)
    at java.lang.System.load(System.java:1086)
    at org.apache.mxnet.util.NativeLibraryLoader$.loadLibraryFromStream(NativeLibraryLoader.scala:140)
    at org.apache.mxnet.util.NativeLibraryLoader$.loadLibrary(NativeLibraryLoader.scala:93)
    at org.apache.mxnet.Base$.<init>(Base.scala:70)
    at org.apache.mxnet.Base$.<clinit>(Base.scala)
    at org.apache.mxnet.NDArray$.initNDArrayModule(NDArray.scala:151)
    at org.apache.mxnet.NDArray$.<init>(NDArray.scala:38)
    at org.apache.mxnet.NDArray$.<clinit>(NDArray.scala)
    at mxnet.App$.delayedEndpoint$mxnet$App$1(App.scala:9)
    at mxnet.App$delayedInit$body.apply(App.scala:6)
    at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
    at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
    at scala.App$$anonfun$main$1.apply(App.scala:76)
    at scala.App$$anonfun$main$1.apply(App.scala:76)
    at scala.collection.immutable.List.foreach(List.scala:381)
    at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
    at scala.App$class.main(App.scala:76)
    at mxnet.App$.main(App.scala:6)
    at mxnet.App.main(App.scala)

Steps to reproduce

Follow tutorial to "Step 7. Run Sample MXNet Code in the App" and run the app
App fails with stack trace shown above.

What have you tried to solve it?

Replacing the brew install opencv@2 command in the mac prequisite setup section with brew install opencv fixes the problem and lets the example app run successfully. So either the example doc needs to be revised to use the other opencv version, or mxnet scala needs to look for different lib path.

@aaronmarkham  @lanking520

@mxnet-label-bot [Scala, Example]

@jesterhazy in 1.2.0 we used opencv@2, 1.2.1 we used opencv (version 3)

Hi @jesterhazy did this solve your problem?

@lanking520 i figured out the workaround before i opened the ticket (as noted in the ticket). the problem is that the instructions are wrong.

@jesterhazy thank you. @aaronmarkham can you pick up from here and update the installation instruction for Scala user?

This issue can be closed as it was resolved in https://github.com/apache/incubator-mxnet/pull/12654

@lanking520 We can close this issue because the fix was applied in #12654


merge from arlac77/npm-package-template-esm-only

.travis.yml

chore(travis): remove node versions 12.8.0
chore(travis): add node versions -10,-11,-12,12.8.1

Coverage remained the same at 76.225% when pulling 0be4fe763768634be5d78db69959d04415786b07 on npm-template-sync/1 into 3469d9e6a006a6e08740c14b02cdb831f4b1612d on master.

Codecov Report

Merging #565 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #565   +/-   ##
=======================================
  Coverage   75.94%   75.94%
=======================================
  Files           2        2
  Lines         474      474
=======================================
  Hits          360      360
  Misses        114      114

Continue to review full report at Codecov.

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

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add sentiment analysis task

Description

Add sentiment analysis task. Todos:

Implement scoring
Wait until https://github.com/explosion/spacy-llm/pull/163 has been merged before merging this.

Types of change

New feature.
Checklist

[x] I confirm that I have the right to submit this contribution under the project's MIT license.
[x] I ran all tests in tests and usage_examples/tests, and all new and existing tests passed. This includes

all external tests (i. e. pytest ran with --external)
all tests requiring a GPU

[x] My changes don't require a change to the documentation, or if they do, I've added all required information.

The pre-commit fail is expected, as this depends on https://github.com/explosion/spacy-llm/pull/163 to validate correctly.


fix: use react style event names

Issue #, if available:
N/A
Description of changes:
Use React style event names. change -> onChange
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

Merging #445 (8c8ccac) into main (a6c63cb) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #445   +/-   ##
=======================================
  Coverage   93.52%   93.52%
=======================================
  Files          48       48
  Lines        1808     1808
  Branches      394      394
=======================================
  Hits         1691     1691
  Misses        113      113
  Partials        4        4

Impacted Files
Coverage Δ

...s/codegen-ui-react/lib/react-component-renderer.ts
86.00% <ø> (ø)

...eact/lib/react-component-with-children-renderer.ts
94.44% <ø> (ø)

packages/codegen-ui-react/lib/workflow/events.ts
92.85% <ø> (ø)

packages/codegen-ui-react/lib/workflow/mutation.ts
96.93% <ø> (ø)

packages/codegen-ui/lib/types/events.ts
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


codeSaver.md

Hackathon Submission: Code Saver
Name of Team Lead
Krishna Gopal Lodhi

GitHub handles of Team Members
ghostfreak10

Are all of your team members registered on our Hackathon Signup page?
This is a mandatory step for all participants to be considered eligible for judging

[x] Yes
[ ] No

Rules and Code of Conduct
By submitting this PR, you agree to follow our Rules and Code of Conduct.

[x] Yes

Anything Else?
Any other feedback, queries or information you would like to share with us?

Closing as this is a duplicate of #68


cant install via pip

execute
pip install -U macimg
result
Collecting macimg
  Downloading macimg-0.0.3-py3-none-any.whl (18 kB)
Collecting pyobjc-core~=9.0 (from macimg)
  Downloading pyobjc-core-9.2.tar.gz (923 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 923.8/923.8 kB 7.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

best regards

Hi, which version of Python are you using, and are you using an M-series chip or intel?

env
google colab
execute
!python -V
result
Python 3.10.12
seems it's intel chip,
because it run on ubuntu os
execute
!uname -a
result
Linux 056c3f7b9e23 6.1.58+ #1 SMP PREEMPT_DYNAMIC Sat Nov 18 15:31:17 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
best regards

Ah, this package only works for macOS as it requires the Objective-C runtime. I'll update the description to better reflect this.


Certbot

Initial attempt at automating the creation and renewal of SSL/TLS certificates using Certbot based on this image.
Observations

The user will need to provide EMAIL and DOMAIN in certbot.env;
For now, this only contemplates 1 domain. Adjustments will be necessary to accommodate multiple domains/sub-domains.
Since the container is lightweight, it can continuously run in background attempting to renew the certificate daily.

@pslobo Please add a description in the README of how the container works, and how it's being integraded on this project

This PR addresses https://github.com/psychok7/django-project-template-yadpt/issues/7

@pslobo merged.. going to try to add my features by the beginning of the week before an official release. keep testing ;)

This latest PR should address the needed configurations for https traffic.


Undefined variable: slot

Laravel Version: 5.6.26
PHP Version: 7.1.14
Database Driver & Version:

Description:
I'm getting Undefined variable: slot when sending an email. It happened once. Tried sending an email after the error and it works. I just want to know what causes this error.

<div class="table">
{{ Illuminate\Mail\Markdown::parse($slot) }}
</div>

Hey, this repository is only for reporting bugs or issues within the Framework itself. If you need support, please use the forums:

https://laracasts.com/discuss
https://laravel.io/forum

Alternatively, you may use Slack (https://larachat.co/), Discord (https://discordapp.com/invite/mPZNm7A), or Stack Overflow (http://stackoverflow.com/questions/tagged/laravel).
Thanks!


I created a level, add some gameplay and the game crashed

Geode Issue

[X] I confirm that this crash is NOT related to a mod but directly to Geode Loader itself.

Platform
MacOS
Geode Version
v1.3.5
Mods Installed
Anticheat bypass, betterinfo, crystal client, demonlist button, fps shower, gd utils, gmd api, gd share, globed, intergrated loquibot, nongd, startpos switcher, texture loader, volume scroll wheel
Steps to Reproduce

I open the editor
Open the level that i'm working on
add some gameplay, decor
I saved the level by press the save and quit button
And it crashed.

Crash Report
2023-10-19_13-41-51.log
Additional Information
No response

Does this crash happen every time you save and exit? If it does, try disabling globed or crystal client and see if the crash persists.

Yeah I'll do that
thanks!

I disable crystal client and it worked.
I think crystal client has a bug or sth

@ninXout you should take a look at this

This is obviously a mod issue though

I confirm that this crash is NOT related to a mod but directly to Geode Loader itself.
You should check out what you check

I confirm that this crash is NOT related to a mod but directly to Geode Loader itself.

You should check out what you check

Yeah I'm sorry but when I check the check box, it says required

I confirm that this crash is NOT related to a mod but directly to Geode Loader itself.

You should check out what you check

Yeah I'm sorry but when I check the check box, it says required

This is the exact reason it does this.


Update README

I added the ember obvserver badge, linked to the demos, describe each of the included layouts and describe what is needed to create your own layout. I purposely only described the methods on the layout currently being called by ember-collection (contentSize(), indexAt(), count(), and formatItemStyle()).
I also removed maxScroll() as a property from the layouts as they aren't being called by ember-collection currently. Not sure if they were left over from a previous implementation.

:+1:


navbar links opening in new tab

🐛 Bug Report
Have you read the Contributing Guidelines on issues?
yes
To Reproduce

go to https://supabase.io/docs/about and click any of the links under Docs >
note that the same urls in the sidebar open in the same tab
source is available here

Expected behavior
Link would open in the same tab
Actual Behavior
Link opens in new tab
Your Environment

Docusaurus version used: 2.0.0-alpha.50
Environment name and version (Firefox latest):
Operating system and version (Mac OSX):

Reproducible Demo
https://supabase.io/docs/about
https://github.com/supabase/supabase/tree/master/web
We love this project ❤ thanks for all the hard work

@awalias please use to field instead of href for internal links. Then the link will open in the current tab.
https://github.com/supabase/supabase/blob/master/web/docusaurus.config.js#L49

@lex111 is it possible to open an external link in the current tab without opening a new one?

@sedghi you can provide a target to navbar links
{
          href: 'https://facebook.com',
          label: 'FB',
          target: '_self',
          position: 'left',
        },

@slorber thanks again for your help


rcx: Use ADS_MAX_CORNER

Instead of hard coding 5, 10 or 16, use the ADS_MAX_CORNER define which is used elsewhere in the rcx source.
Signed-off-by: Anton Blanchard<EMAIL_ADDRESS>

@maliberty should we merge?

@QuantamHD thanks for the ping


Update MCMC sampler wrappers in Turing.jl to use AbstractMCMC

We currently have lots of glue code bridging the gap between sampler packages like AdvancedMH and AdvancedHMC and Turing's implementation of sample. We should be able to remove the vast majority now using the AbstractMCMC interface.
This needs to be done after #2318, which will release us from using all the space Selector stuff, which makes up a lot of the glue code.
Related issues

https://github.com/TuringLang/Turing.jl/issues/2367

Is this not a duplicate of #2413 ?

Seems to be


fix template for helloworld to pass validate in sam-local

Thanks! This is a temporary change, because we will fix the validate command in SAM Local. I'll pull this anyway because it will prevent people from tripping over the validate command in meantime


docker build support new release/build requirments

This PR is for supporting new release/build requirments(daily build and new release strategy)

add new version number(tag) calculation
remove push steps but add a record_file to save all build information for post-pushing

related jenkins job:
http://<IP_ADDRESS>/job/Build-Release/job/docker-build/
built successfully
@panpan0000 @PengTian0

:+1:

@yyscamper @anhou This PR can be merged now! Thanks!


protobuf v3.0.0-alpha-3.1

I have protobuf v3.0.0-alpha-3.1 installed and when I run ./scripts/build.sh I get errors like:

This file was generated by an older version of protoc which is
incompatible with your Protocol Buffer headers. Please
regenerate this file with a newer version of protoc

How can I use protobuf "syntax 3"?

You should clone branches Compiler2.0-ProtoBuf3.0-Swift2.0 or  Compiler2.0-ProtoBuf3.0-Swift1.2. After that, run ./scripts/build.sh.

thanx


I want to use Pylonsrc in Python

I'm using 2 basler, and I'd like to use both in one Python script. I'm curious about the parameters that can operate both cameras.
If you connect both cameras and use the code below, you will get an error.
It only works when one camera is connected, but I'm curious about the parameters available on Python.
cap_pylon = cv2.VideoCapture("pylonsrc "
"cam::PixelFormat=YUV422_YUYV_Packed "
"cam::GainRaw=150 ! "
"video/x-raw,width=1920,height=1200,format=YUY2 ! "
"videoconvert ! "
"video/x-raw,format=BGR ! "
"appsink", cv2.CAP_GSTREAMER)

When using multiple cameras, you have to select the cameras. See about selecting here: https://github.com/basler/gst-plugin-pylon#camera-selection

When using multiple cameras, you have to select the cameras. See about selecting here: https://github.com/basler/gst-plugin-pylon#camera-selection

I looked at it and used it on Python as below, but I couldn't use it.
cap_pylon = cv2.VideoCapture("pylonsrc device-index = number or device-serial-number = 'number' "
"cam::PixelFormat=YUV422_YUYV_Packed "
"cam::GainRaw=150 ! "
"video/x-raw,width=1920,height=1200,format=YUY2 ! "
"videoconvert ! "
"video/x-raw,format=BGR ! "
"appsink", cv2.CAP_GSTREAMER)

Five lines later there are examples:
https://github.com/basler/gst-plugin-pylon#examples
E.g.
First camera
device-index=0
Second camera
device-index=1
...

There was an error a few days ago, but I'll try it again and ask.

requestion


Implement probabilistic reset gates

Probabilistic reset channel allows one to implement the combined amplitude and phase damping channel when $T_1=T_2$. For example
R(0.36788) 1

could be used to realize idle error for gate whose duration equals $T_1=T_2$.
The more general and practical case with $T_1\ge T_2$ can then be implemented by combining probabilistic reset R(...) and Z_ERROR.
More context

Unfortunately, this gate is incompatible with the efficient detection event sampling strategy that stim uses. Any kind of conditional or probabilistic non-Pauli operation breaks the ability to diff against a single reference sample, instead of a number of reference samples exponential in the number of conditional Cliffords.
I do agree this kind of thing would be useful, but it doesn't really fit in the current design. There would need to be huge sweeping changes to make it work, including changes to what annotations are required to be provided by the user in circuits.
Closing as WONTFIX.


Error during install phase

I am not sure how severe this error is or if it even makes any difference...

I am not sure I experienced this bug, yet. Does it appear in virtual box?

Yes I saw this in VBox.


Add common event format plugin

This plugin adds option to parse common event format logs. Currently it is not possible to parse the extensions without the addition of an operator. Supports syslog prefix with timestamp matching Jan 02 15:04:05  and a hostname.

Removed key_value parser. Extensions format allows to many variations to parse using the parser.

Lets promote device_vendor / device_version to resources

{
  "timestamp": "2021-09-11T08:26:10Z",
  "severity": 70,
  "severity_text": "10",
  "labels": {
    "device": "threatmanager",
    "file_name": "cef.log",
    "log_type": "cef",
    "plugin_id": "common_event_format",
    "version": "0"
  },
  "resource": {
    "device_vendor": "security",
    "device_version": "1.0",
    "hostname": "zurich"
  },
  "record": {
    "extensions": "src=<IP_ADDRESS> dst=<IP_ADDRESS> spt=1232 ",
    "message": "worm successfully stopped",
    "signature_id": "100"
  }
}


Fix log_switch dependency

This PR will fix issue #25. log_switch 1.0.0 is not compatible with rtsp. Adding log_switch ~> 0.4.0 dependency.

Thanks! I'll try to get a release out this week.


Selected time is always four hours ahead

Hi,
So I always get the wrong time after I click the Done button.
func WWCalendarTimeSelectorDone(selector: WWCalendarTimeSelector, date: NSDate) {
        print(date)
 }

Printed out time is always four hours ahead. I'm not sure what is going on here...
Thanks,
Yicheng

try to use DateFormatter for printing date string, sometimes console could print date in wrong timeZone or something like that

Thank you for your help. I think this can be closed.

Actually console always print date in UTC. may be thats why date is not printed as expected.

how to solve it ? i also got the same issue .. not correct time when selected ..


How do I use polygon wood iron router?

Hi How do I replace my old iron:router with this version?  Do I use a local package?
Thanks
Greg

And it required other polygonwood packages.  Where do I find those?  Thanks heaps, Greg

yes, see the packages in this post
https://forums.meteor.com/t/iron-router-works-with-meteor-3/62218?u=polygonwood
clone those locally and add them to your packages
regards
On Mon, Oct 28, 2024 at 12:17 PM Greg O @.***> wrote:

And it required other polygonwood packages. Where do I find those? Thanks
heaps, Greg
—
Reply to this email directly, view it on GitHub
https://github.com/polygonwood/ironrouter/issues/1#issuecomment-2441300327,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMTJC2575KMGMAKIVJONI5TZ5YMNRAVCNFSM6AAAAABQXFMCD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBRGMYDAMZSG4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Disable CRD loading for restricted kubeconfig

Describe the problem/challenge you have
Related to #141.
Currently the first landing overview page, requests full access to CRDs installed on the cluster.
However usually developers have limited access to CRDs.
It would be ideal if there is a flag to disable CRD loading or better is allowing users choose which CRDs to load or exclude
Describe the solution you'd like
It would be ideal if there is a flag to disable CRD loading or better is allowing users choose which CRDs to load or exclude
Environment:

Octant version (use octant version):  0.21.0
Kubernetes version (use kubectl version): 1.20.7
OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc): Ubuntu 18.04

I agree, allowing users to explicitly provide their namespaces and resource list is something we have thought about and will be doing, but I don't have a timeline for that yet.
The current idea is that in heavily restricted environments there could two options. First, if a user has access to SelfSubjectAccessReview, Octant would walk the API and collect a list of the resources that allowed the List/Watch set of verbs.
Second, a user could provide an explicit list of GVKs to Octant using some basic config file or format. This file could be used by Octant so know which resources and namespaces to watch and would be allowed to be updated while Octant was running so that tooling could easily populate it with added/removed access.

@mhoshi-vm are you using Octant in a cluster where users have access to only a single namespace? I'm getting this CRD problem as well, but Octant does not work at all in our environment when permissions are reduced.
Users with full access are able to use Octant without issue.

@wwitzel3 Hi, we have the same issues.
and tried the first option you told. but the same error with forbidden to other resource like "customeresourcedefinitions", "issuers" etc even if given role of "SelfSubjectAccessReview".
can you please elaborate more of the second option you told above? like the template or sample to test?
thank you.

@mhoshi-vm are you using Octant in a cluster where users have access to only a single namespace? I'm getting this CRD problem as well, but Octant does not work at all in our environment when permissions are reduced.
Users with full access are able to use Octant without issue.

@jpreese
Yes, so when only having a access to a single namespace my kubconfig does not work at all also
But I am guessing that is because of another issue #2687 .
This ticket is for CRD specifically.


2d screen for vr support

Description
looking into using hyprland with vr/ar glasses(headmounted display with 3dof) (xreal for example)
what i would like to have(if it doesnt require redesign pr from me is possible) is a regular 2d desktop, with a viewport for the visible part of UI that moves according to 3dof sensors(head position)
and optionally two overlapping viewports providing 3d effect for two eyes (side by side 3d)
Do you think its possible without significant changes to the current code base?
P.S An alternative that i can think of(without implementing the whole wm myself) would be to have a lightweight wayland compositor that displays a nested wayland compositor and provides only support for the "headmovement", would that be easier/slicker?

excuse me what?
This is definitely not something I will implement, but if I understand this correctly, you can make this a plugin.

Oh, I completely understand you won't do it yourself, it was more of a
question if it's technically feasible.
And I now realize that discord would probably be a better place for such a
question.
P.S. for anyone interested, if I ever get to implement it in any way, I
will post a link here


Added a custom snooze duration feature

a simple feature: customizable snooze duration:

i think i've got some errors
apologies


Add firewall rule for Ubuntu Provisioner

If the image used has a locked-down OS, docker's port
may not be accessible. This patch simply adds an ssh
command that uses Ubuntu's Uncomplicated Firewall (ufw) to
allow the docker port.
I verified that if the firewall rule already exists, an error
is not returned, and the rc is 0. This may not be the case with
all CLIs, but it is for ufw. This means that just running the
command every time won't be a problem
Also note that this should not interfere the existing
Google Compute Engine firewall capabilities because it is at
the OS-level, whereas the 'Firewalls' API handles traffic
at the network level.
Tested against Ubuntu 14.04 on Digital Ocean and Bluemix
(using the openstack driver).
Signed-off-by: Christy Perez<EMAIL_ADDRESS>

Very cool! Thanks for submitting this.
I'm guessing the reason this is Ubuntu-specific is due to the use of ufw? When #1090 and #1096 get merged, Ubuntu won't be the only show in town, so maybe it'd be a good idea to write this a little more generically.
Seems to me it wouldn't be too difficult to modify this to use iptables directly instead so that more distros are supported.
There are also bound to be questions about whether this is the sort of thing that docker-machine should be responsible for (want to avoid scope-creep). For my part I think it probably should, since it's not terribly useful if machine completes and ends up with an unreachable Docker engine.
/cc @nathanleclaire @ehazlett

Yes, very interesting and thanks for submitting -- Like @hairyhenderson mentioned, I think it digs up some deeper questions around how we want to handle this.

There are also bound to be questions about whether this is the sort of thing that docker-machine should be responsible for (want to avoid scope-creep).

Well, and where should the responsibility lie.  After all, the drivers have AuthorizePort etc. methods that seem to imply this is how you should do it if you need to use provider-specific methods such as security groups.
In general I really want to account for these sorts of things, but it has to be designed carefully.

Thanks for the submission and bringing up the topic.  As @nathanleclaire mentioned we have the AuthorizePort method just for this.  However, as he also mentioned, it brings up some other questions around how we want to handle this.  I agree with @hairyhenderson that we should probably use iptables as it is more prevalent especially now that we have multiple base OS provisioners.

Yah, all things I thought about. I wasn't too clear on why there's an AuthorizePort method in the driver itself. It makes sense in the case of a network within the provider -- but not as much when it comes to the OS. It seems like something that should be left to the provisioner.

Yah, all things I thought about. I wasn't too clear on why there's an AuthorizePort method in the driver itself. It makes sense in the case of a network within the provider -- but not as much when it comes to the OS. It seems like something that should be left to the provisioner.

In my experience, though, people using the OS itself will expect to use the neat little tools the distros are adding to manage their firewalls, though, and we could run into problems.

True, but Machine isn't really about provisioning a host intended for general purpose use, so IMO it's OK if it does things in a more low-level way.
Also, it'd be nice if this were an optional thing. Most of the time there's no need to add firewall rules, so it'd be good to expose this functionality with a flag I think...

I've been thinking more about this over the past few days, and now am wondering if this could be something we ask for from Docker instead. Docker already handles firewall rules for ports needed by containers (IIUC), and is now (thanks to @jpopelka) working together with firewalld (since there were issues with Docker's rules being unloaded). Since machine changes the docker config to run on a TCP socket, too, wouldn't it be simpler to have Docker deal with keeping itself accessible on that port?
Thinking about other other alternatives (us adding iptables rules, or us using whatever provider's firewall tool was) seemed to run into a lot of "what ifs" that are going to add more complexity to machine than it needs, IMO.

Thinking about other other alternatives (us adding iptables rules, or us using whatever provider's firewall tool was) seemed to run into a lot of "what ifs" that are going to add more complexity to machine than it needs, IMO.

Yeah, this is my main concern, too much magic / over-extended scope / possibly clashing with existing manipulation of firewall rules etc. from other sources.
cc @mavenugal @mrjana @dave-tucker what do you think about this?  Happy to catch you up on the background if you're confused about it as well.

I also should have probably said "implement" instead of "ask for," since I'm willing to add it myself.

@mrjana @dave-tucker @nathanleclaire Has anyone discussed this? I've kind of let it go stale, but would like to know you guys' opinions on getting it into docker itself vs. adding firewall bits to machine.

@crosbymichael do you have any thoughts on whether the logic to open up the firewall should be done by Docker or Machine?

FWIW, I would rather it were done by Machine than Docker itself. The way I think about it, Machine is a tool for provisioning a Docker host. Things in scope could be compared to what I might have done using a similar tool (e.g Chef/Puppet) - which includes things like firewall rules.
Daemons injecting rules in to iptables is already a practice that is frowned upon. It's better handled by a sysadmin or CM system that has a global view of things running on a server.

yep - that's the way I tend to look at it too.

+1 for not handling this in Docker.  We already have AuthorizePort in the driver interface.  We need to figure out how to handle it.  This is also a significant change as it's in the driver.  I think it will come in parts: 1) get each driver (assuming that it supports it) to implement AuthorizePort and then 2) allow the setting on provision.

Here's my take based on @ehazlett @dave-tucker's good points:

AuthorizePort / DeauthorizePort should take care of opening and closing ports at the "provider firewall" level.  For instance, it would be useful to be able to forward ports over NAT from a Virtualbox VM to localhost, or open ports using AWS security groups, although as you may note those two examples are completely different so we'd have to think carefully about what level of inconsistency we would be willing to tolerate.
Managing iptables (or another firewall) rules should be handled by another provisioning system which Machine has "hooks" to enable.  That is, we would allow you to do something like run a shell script before Docker provisioning starts, .  I'd like to start minimal on this at first and only expand outwards to first-class support for CM tools etc. if there is big demand for it.

Thanks @ehazlett, @nathanleclaire, @dave-tucker.
@nathanleclaire, can you expand a bit on what kind of provisioning system you mean (where it would live, which drivers would rely on it/them, etc.)? What kind of thing would be in this shell script?

@nathanleclaire, can you expand a bit on what kind of provisioning system you mean (where it would live, which drivers would rely on it/them, etc.)? What kind of thing would be in this shell script?

It's just a crude mental sketch right now, but the basic idea would be various configurable "stages" of provisioning that Machine would expose to the user.  One could be the running of a shell script before any of Machine's "official" provisioning begins, so that the user could do things like mount an external cloud volume instance, or, in this case, run things like sudo ufw enable, sudo ufw default deny incoming, sudo ufw allow ssh, etc.
To be clear, I'm not saying definitively that this is a feature we'll implement, but it's a model to consider.

Hm. So, in this particular case I, the user, had no idea this ubuntu image I picked had a firewall. machine provisioning just hung and eventually failed. I'm not convinced about user intervention. That would also require the user to know which port docker needs. I could see it for the other things you mentioned, but they wouldn't keep a machine from provisioning.

Hm. So, in this particular case I, the user, had no idea this ubuntu image I picked had a firewall. machine provisioning just hung and eventually failed. I'm not convinced about user intervention. That would also require the user to know which port docker needs. I could see it for the other things you mentioned, but they wouldn't keep a machine from provisioning.

Hm, I'm not sure I understand. Generally to me things like changing the base image start to get into "voiding the warranty" turf, where the user is assuming greater responsibility for the provisioning process.  If your chosen image has firewall rules already, ideally you should know about it and act accordingly.

Perhaps the best thing in the interim would be to run a set of tests after the image is provisioned before returning an exit code. That way you can catch any issues and send a useful error message to the user. E.g in the case of the base image blocking the Docker API port, you would get an error that says "Unable to reach Docker on tcp/2376. Please check your firewall rules"

@dave-tucker, check out PR #1348 and see if that will do.

As noted in https://github.com/docker/machine/pull/1446, let's please move to a discussion of scoping this in the issues.


Provide a length hint for aspell

When looking into aspell for #3593, I discovered that the header in an aspell word list  can optionally have a hint about the length of the list.  Giving aspell this hint allows it to perform very slightly (but measurably) faster.  This appears to improve the speed of our spelling test by ~2%.  The hint does not need to be perfectly accurate to be helpful, so it won't be a problem if the hint isn't updated as contributors add more words to the aspell word list.
See the relevant aspell docs.

This same header is used both in the single version of words, and the combined (dynamic) list - If this speeds things up, great - if it makes things faster to use the right # for both versions, we can do that separately later.

This same header is used both in the single version of words, and the combined (dynamic) list

Yeah, I noticed that.  I the number I added to words.pws header is actually the sum of the words in words.pws and code.pws – which results in aspell.pws having the correct header when it's dynamically generated.  I think that's the best outcome, anyway.


LSTM (work in progress)

This PR will add LSTM Module. Requirements :

[ ] Linear:noBias() to remove the bias computation for the output to output recurrent layers
[x] component factory methods for easy sub-classing:

[x] buildInputGate()
[x] buildForgetGate()
[x] buildHidden()
[x] buildCell()
[x] buildOutputGate()
[x] buildModel()

[ ] updateOutput()
[ ] updateGradInput()
[ ] accGradParameters()
[ ] backwardThroughTime()
[ ] unit tests

Cool, do you want me to merge now?

it's still a work in progress.


(PDB-5633) Handle nil producer timestamp and sql states during errors

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Update user-alertmanager to use OAuth instead of basic auth

Is your feature request related to a problem? Please describe.
Since alertmanager seems to support oauth authentication we should definitly change our current setup with basic auth to use this instead.
https://www.prometheus.io/docs/alerting/latest/configuration/#oauth2
An while we're at it, please move the chart from helmfile/charts/examples to helmfile/charts instead.
Describe the solution you'd like
Configure user-alertmanager to talk to dex and authenticate users the "regular" way.
Describe alternatives you've considered
Continue the basic auth way we have it right now
Additional context
Add any other context or screenshots about the feature request here.
Definition of done:
When could this feature be considered done.

Alertmanager it self does not support authentication. The current setup with basic auth is done through the ingress.
The configutation described in their documentation is about alertmanager htttp client and not about securing alertmanager endpoints.
To use dex for alertmanager a oauth2 proxy is maybe the way to go?

@Xartos close this issue?

I would like to know more about this. Why are we exposing alertmanager via Ingress, instead of asking the user to port-forward? It feels like we introduce yet another end-point and yet another access control mechanism, which is not great. User access to Compliant Kubernetes endpoints should either be authenticated via OAuth or be "forced" through port-forward, i.e., Kubernetes's OAuth.

I don't remember why we enabled ingress for alertmanager. But I also think that it would be better to only have it through port-forward if that is acceptable.

@cristiklein Is it decided that we should stop use ingress for alertmanager so we can close this?

@Xartos I'm drafting now user-facing documentation to explain how to use user-alertmanager. Once that is done, I plan to gather feedback and then "formally" decide on no longer using Ingress for user Alertmanager.


Syncing throughput of devnet API nodes

When a devnet API node gets stuck and restarted, it resumes syncing at a speed of approx. 1.5 i.e. twice as many blocks per seconds as the consensus is producing. However, before it can catch up, it's syncing throughput gradually degrades almost to the block production speed:

So if the number of blocks to catch up is high enough, it might take extremely long to fully sync:

This is particularly an issue in case of our GCP nodes that start syncing at low speed right at the beginning (I haven't tested yet whether it depends on the region or not), compared to the node on my laptop which is syncing an order of magnitude faster:

The issue seems to be resolved in the meantime, see the test documented here: https://zilliqa-team.slack.com/archives/C04D147S9QX/p1732796660246029


add BDD tests to satisfy acceptance criteria for Read Promotion in UI

This PR should satisfy the rest of story #43 -- part of the JS functionality for this story was implemented as part of work on story #42 already, but this adds BDD testing for reading promotions.

The issue #60  shouldn't be linked to this PR


I want a primitive reference validation

As an AaC user, I want a primitive validation for references, so that I can guarantee that references are valid.
References:
Example integer primitive validator: https://github.com/jondavid-black/AaC/blob/ebe8651472afa136a37994cdf728c2af53e9c34a/python/src/aac/plugins/first_party/primitive_type_check/validators/int_validator.py#L1-L49
AC:

[ ] There is a new primitive type validation for reference
[ ] The references primitive validation ensures that references are instances of definitions or primitive types.
[ ] If a user puts a non-valid value in a reference field, their validation fails with an appropriate error message.

Depending on how things shake out when looking at this and the impact of the reference type in some of JD's plugins, we may need to create an alternative reference type in the meantime until we can unify the two or give one of the references a more appropriate name.


Stretched photo

As the photo is stretched it looks odd.
I will Download the landscape mode photos from google and add them here.
I will corrrect all photos.
pls @QAZIMAAZARSHAD assign this task to me.

Hey @QAZIMAAZARSHAD i am interested to work on this project can you assign me this issue ?

hey @QAZIMAAZARSHAD pls assigned this to me

Hey @QAZIMAAZARSHAD I solved the issue and submitted the pull request. I hope you would accept it


Allow for a block 3

I'd love to see a third block for insertion.
So far my setup is:

block 1:

[[tweet]] from [{NAME}]([[@{Username}]]) on [[{Date}]]

block 2:

{TWEET} {{tweet {URL}}}

I'd like to have a block 3 and place the {{tweet {URL}} there so that I can collapse block 2 and hide the embed.

@sawhney17 any thoughts on this?


Add python 3.13.0

Only comment is about 3.13.7 being current, but fine with leaving it at 3.12.5 if trying to minimize changes. Just thought to sneak in support for latest 3.12 if possible.

I'll update that in a separate pr.


when pod install getting this error

I used to this package: salesiq_mobilisten: ^2.1.2
platform :ios, '12.0'
Xcode-14.2
[!] Error installing Mobilisten
[!] /usr/bin/curl -f -L -o /var/folders/zb/mdptnlvj3jv1w2chf02ytyym0000gn/T/d20230424-53645-5dot6x/file.zip https://raw.githubusercontent.com/zoho/SalesIQ-Mobilisten-iOS/v5.0.0/Mobilisten.zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.12.1 cocoapods-downloader/1.6.3'
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:--  0:01:15 --:--:--     0
curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 75260 ms: Operation timed out
Warning: Problem : timeout. Will retry in 1 seconds. 2 retries left.
0     0    0     0    0     0      0      0 --:--:--  0:01:15 --:--:--     0
curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 75235 ms: Operation timed out
Warning: Problem : timeout. Will retry in 2 seconds. 1 retries left.
0     0    0     0    0     0      0      0 --:--:--  0:01:15 --:--:--     0
curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 75323 ms: Operation timed out

Hello @vorachirag318
After analyzing this issue; we found a failure occurring when connecting with the server "raw.githubusercontent.com." This issue may arise due to network connectivity problems.
To fix this, it is recommended that you check your internet connection before attempting to install the pod.
Best regards,
Venkatesh
Zoho SalesIQ.

I am getting this error too. I have tried 3 different internet providers. But still getting this error

This issue is likely due to an internet connectivity problem with the "raw.githubusercontent.com" server. To resolve it, make sure your device has a stable internet connection.
If the issue persists, please contact us at<EMAIL_ADDRESS>for further debugging assistance. We'll be happy to help.
Regards,
Venkatesh,
Zoho SalesIQ

I am getting this error too. I have tried 3 different internet providers. But still getting this error

Try after sometime. Idk why but that worked for me.


[BUG] links in bio with markdown do not have any visual identification

Description
Links in the bio with markdown work but they don't have our app's link styles on it
Screenshots
No response
Additional information
No response

Can you provide some screenshots Eddie

#7139 #7043 these issues conversations are locked . Kindly look into this.

Hey folks,
I'm new to open source contributions, but I understand backend development well. Although my main expertise is in backend, I also have enough knowledge of front-end development to solve this problem. I see this as a valuable opportunity  to contribute as a front-end developer.
Could you please assign this issue to me? Thanks!

I believe in order to make this work, the <a> tag will need to be overridden in react-markdown

#7139 #7043 these issues conversations are locked . Kindly look into this.

I have unlocked these issues

Thank you Buddy @ChinmayMhatre

#7139 #7043 these issues conversations are locked . Kindly look into this.

I have unlocked these issues

@ChinmayMhatre thank you! I forgot to unlock when I changed the labels.

@SaraJaoude  kindly unlock #7142 this issue also

@SaraJaoude @eddiejaoude I am new to opensource and would like to contribute. Can you assign this issue to me and provide some more details of this issue?

Hey folks,
I'm new to open source contributions, but I understand backend development well. Although my main expertise is in backend, I also have enough knowledge of front-end development to solve this problem. I see this as a valuable opportunity to contribute as a front-end developer.
Could you please assign this issue to me? Thanks!

@harshpatel-r as you were the first to request this I have assigned it to you

I believe in order to make this work, the <a> tag will need to be overridden in react-markdown

thanks @dan-mba I will add it to the issue description

Hi @eddiejaoude  @SaraJaoude ,
I hope you're doing well. I've been working on the issue where the links in the bio with markdown work but they don't have our app's link styles on it.
I have made progress in resolving this issue, but I'm uncertain about the specific color to use for the links. To ensure consistency with our app's design, could you kindly provide me with the preferred color code to apply to the links style?
Thank you very much for your assistance. I appreciate your help!

I have made progress in resolving this issue, but I'm uncertain about the specific color to use for the links. To ensure consistency with our app's design, could you kindly provide me with the preferred color code to apply to the links style?

Great work @harshpatel-r !! Please can you use the Link component, then this will ensure consistency on the styles in the app now and in the future when we update the style https://github.com/EddieHubCommunity/LinkFree/blob/main/components/Link.js


Replace let with const in collections.md

We don't reassign the posts and extension variables, so it's better
to use const here.

Sorry! This is just a style thing, I use let for local vars and const for globals 🤷🏻


Query on automatically starting playbook

Hey, I was just wondering if it's possible to automatically run the playbook command ansible-playbook main.yml when the Raspberry Pi starts up?
I ask this as I don't want to SSH in each time a power cut happens and at this time don't want to get a UPS but may consider it later.

Hi @802compute thank you I'll give this a try.
For now I'll close this ticket under the assumption that the playbook runs automatically after reboot.


Web view not working properly

Source information
Aniwatch
Source language
English
Steps to reproduce
First open an anime through aniwatch,
Then open web view of that anime
Any approach to watch the episode on web view will reflect to home page
Expected behavior
It should let me watch the episode on the web view
Actual behavior
But it redirects to another page
Aniyomi version
r7473
Android version
11
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I have updated all installed extensions.
[X] I have tried the troubleshooting guide.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

Duplicate of #2690


High discriminator values at edges

Hey, I have been trying to make the improved wgan work on my dataset (using the toy examples) but I am getting the weird behaviour that the discriminator learns really high values at the edges of my data space, even though there are close to no samples there.
I don't know if you have any intuition as to what might cause this?
Practically it seems like the generator learns to spawn from the correct distribution but for some reason the discriminator assigns huge values to areas where it hasn't seen any real or fake samples.

In theory, the value of the critic at points which are never sampled can be anything at all -- there's no reason to expect those values to remain close to zero. This shouldn't be a problem for learning the generator though, since (as you mention) those points are never actually sampled, so the generator gets no signal from them.


[Backtracing] Add an indication that we're working on a backtrace.

When we crash, emit a message straight away that says we're working on a backtrace.  If starting the backtracer fails, report that also.
Finally, add a duration to the messages output by the backtracer, so that we can see how long it took.
rdar://118055527

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test


Update website-python-jupyter-notebook.mdx

fix typo (obejct -> object)

Thank you @encse! I've updated website on server.

Super!


Terminating app due to uncaught exception 'FABException', reason: '[Fabric] Value of Info.plist key "Fabric" must be a NSDictionary.'

I want to migrate existing project that uses Crashlytics with Fabric to Firebase (as it is going not be supported soon). After searching and following instructions I thought I managed to configure it, but it crashes when  I try to configure Firebase.
 [FIRApp configure];
 [Fabric with:@[[Crashlytics class]]];

My pod file looks like this:
use_frameworks!

platform :ios, '10.0'

workspace 'Fifi24'

project 'xoxo/xoxo.xcodeproj'
project 'fifi/fifi.xcodeproj'

def common_pods

    pod 'GoogleAnalytics'
    pod 'Google-Mobile-Ads-SDK'
    pod 'GoogleAds-IMA-iOS-SDK-For-AdMob', '~> 3.2.1'
    pod 'GoogleIDFASupport'
    pod 'Fabric', '~> 1.10.2'
    pod 'Crashlytics', '~> 3.14.0'

    pod 'Firebase/Core'
    pod 'Firebase/Messaging'
    pod 'Firebase/AppIndexing'
    pod 'Firebase/Analytics'

end

target :xoxoPresentation do

    pod 'Google-Mobile-Ads-SDK'
    pod 'GoogleAds-IMA-iOS-SDK-For-AdMob', '~> 3.2.1'
    pod 'GoogleIDFASupport'
    pod 'Crashlytics', '~> 3.14.0'
    pod 'Fabric', '~> 1.10.2'
    pod 'Firebase/Core'

    project 'xoxo/xoxo.xcodeproj'
end

target :xoxoCommon do
    pod 'GoogleAnalytics'
    pod 'Fabric', '~> 1.10.2'
    pod 'Crashlytics', '~> 3.14.0'
    pod 'Firebase/Analytics'

    project 'xoxo/xoxo.xcodeproj'
end

target :xoxoDomain do

    pod 'Crashlytics', '~> 3.14.0'

    project 'xoxo/xoxo.xcodeproj'
end

target :xoxoPersistence do

    pod 'Fabric', '~> 1.10.2'
    pod 'Crashlytics', '~> 3.14.0'
    project 'xoxo/xoxo.xcodeproj'
end

target :fifi do
    common_pods

    pod 'GoogleSignIn'
    pod 'TwitterKit'

    project 'fifi/fifi.xcodeproj'
end

target :fifiDev do
    common_pods

    pod 'GoogleSignIn'
    pod 'TwitterKit'

    project 'fifi/fifi.xcodeproj'
end

I added GoogleService-Info.plist to the project
What i did:
I had in Info.plist as it was needed previously
	<key>Fabric</key>
	<dict>
		<key>APIKey</key>
		<string>**key generated**</string>
		<key>Kits</key>
		<array>
			<dict>
				<key>KitInfo</key>
				<dict/>
				<key>KitName</key>
				<string>Crashlytics</string>
			</dict>
		</array>
	</dict>

Now:
I removed it
then in Build Phases Run script
"${PODS_ROOT}/Fabric/run"
I left "${PODS_ROOT}/Fabric/run", removed both keys
in Input files section, I added : $(BUILT_PRODUCTS_DIR)/GoogleService-Info.plist (I use Xcode 11.3)
So when I try to run the project it builds successfully but crashes at  [FIRApp configure];
this step.
I suppose I am missing smth

and I am still on this step inside Firebase console
Please help or give an advice whats wrong
Thanks in advance

Hm, you should be able to remove the GoogleService-Info.plist file from your run script's input files. Note that the GoogleService-Info.plist should still be added to your build target. You can also try updating your Crashlytics version, though this shouldn't be the cause of the crash.
Can you share the exception message printed to console when the app crashes?

2020-01-02 20:55:48.030008+0200 ProjectNameSwift[5913:9464199] *** Terminating app due to uncaught exception 'FABException', reason: '[Fabric] Value of Info.plist key "Fabric" must be a NSDictionary.'
*** First throw call stack:
(
0   CoreFoundation                      0x00007fff23c7127e __exceptionPreprocess + 350
1   libobjc.A.dylib                     0x00007fff513fbb20 objc_exception_throw + 48
2   CoreFoundation                      0x00007fff23c710bc +[NSException raise:format:] + 188
3   ProjectNameSwift                    0x000000010076cb13 -[Fabric validFabricConfigFromInfoPlist:] + 334
4   ProjectNameSwift                    0x000000010076c6f4 -[Fabric fabricConfig] + 127
5   ProjectNameSwift                    0x000000010076c841 -[Fabric APIKey] + 285
6   ProjectNameSwift                    0x000000010076b589 __15+[Fabric with:]_block_invoke + 89
7   libdispatch.dylib                   0x0000000103766d48 _dispatch_client_callout + 8
8   libdispatch.dylib                   0x0000000103768297 _dispatch_once_callout + 66
9   ProjectNameSwift                    0x000000010076b52a +[Fabric with:] + 233
10  ProjectNameSwift                    0x000000010061798d $s15ProjectNameSwift11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0k6LaunchJ3KeyaypGSgtF + 381
11  ProjectNameSwift                     0x0000000100618414 $s15ProjectNameSwift11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0k6LaunchJ3KeyaypGSgtFTo + 212
12  UIKitCore                           0x00007fff48089ad8 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 232
13  UIKitCore                           0x00007fff4808b460 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 3980
14  UIKitCore                           0x00007fff48090f05 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1226
15  UIKitCore                           0x00007fff477c576d -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 122
16  UIKitCore                           0x00007fff47cb44c1 _UIScenePerformActionsWithLifecycleActionMask + 83
17  UIKitCore                           0x00007fff477c627f __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 198
18  UIKitCore                           0x00007fff477c5c8e -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 296
19  UIKitCore                           0x00007fff477c60ac -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 818
20  UIKitCore                           0x00007fff477c5941 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 345
21  UIKitCore                           0x00007fff477c9f3f __186-[_UIWindowSceneSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 178
22  UIKitCore                           0x00007fff47bd8c83 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:] + 865
23  UIKitCore                           0x00007fff47cd2dff _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 240
24  UIKitCore                           0x00007fff477c9c5a __186-[_UIWindowSceneSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 153
25  UIKitCore                           0x00007fff47cd2d02 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 84
26  UIKitCore                           0x00007fff477c9ac8 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 381
27  UIKitCore                           0x00007fff476206e7 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 657
28  UIKitCore                           0x00007fff4761f26c -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 248
29  UIKitCore                           0x00007fff47620411 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 210
30  UIKitCore                           0x00007fff4808f599 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 535
31  UIKitCore                           0x00007fff47bfa7f5 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 361
32  FrontBoardServices                  0x00007fff365d6165 -[SSceneImpl _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 442
33  FrontBoardServices                  0x00007fff365fc4d8 __86-[SWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke.154 + 102
34  FrontBoardServices                  0x00007fff365e0c45 -[SWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 220
35  FrontBoardServices                  0x00007fff365fc169 __86-[SWorkspaceScenesClient sceneID:createWithParameters:transitionContext:completion:]_block_invoke + 355
36  libdispatch.dylib                   0x0000000103766d48 _dispatch_client_callout + 8
37  libdispatch.dylib                   0x0000000103769cb9 _dispatch_block_invoke_direct + 300
38  FrontBoardServices                  0x00007fff3662237e SSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 30
39  FrontBoardServices                  0x00007fff3662206c -[SSerialQueue _queue_performNextIfPossible] + 441
40  FrontBoardServices                  0x00007fff3662257b -[SSerialQueue _performNextFromRunLoopSource] + 22
41  CoreFoundation                      0x00007fff23bd4471 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
42  CoreFoundation                      0x00007fff23bd439c __CFRunLoopDoSource0 + 76
43  CoreFoundation                      0x00007fff23bd3b74 __CFRunLoopDoSources0 + 180
44  CoreFoundation                      0x00007fff23bce87f __CFRunLoopRun + 1263
45  CoreFoundation                      0x00007fff23bce066 CFRunLoopRunSpecific + 438
46  GraphicsServices                    0x00007fff384c0bb0 GSEventRunModal + 65
47  UIKitCore                           0x00007fff48092d4d UIApplicationMain + 1621
48  ProjectNameSwift                    0x000000010061aa7b main + 75
49  libdyld.dylib                       0x00007fff5227ec25 start + 1
50  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

So I have to remove GoogleService-Info.plist from the list of input files?

and yes GoogleService-Info.plist is added to my build targets

Hi there, I'm from the Crashlytics team. I believe this issue is coming from a misconfiguration of the Fabric API key while migrating.
In general, if you're migrating an app on Fabric Crashlytics to Firebase, the only thing you need to do is to follow the instructions at https://fabric.io/firebase_migration. This requires you only to click through a few screens in order to set up a Firebase app with Crashlytics already configured. Once this is done, you'll be linked to your Firebase console with all your existing Crashlytics crash reports there already.
Specifically, it looks like your issue happened when you "added GoogleService-Info.plist to the project," and also "removed the Info.plist." I'd recommend you roll back your changes to the last version of your app when it worked with Fabric Crashlytics only, and then follow the instructions on the migration webpage to get situated in Firebase.
So in general, if you are a Fabric user who is looking to migrate to Firebase, the steps are:

Make sure to keep all previous Fabric dependencies and configuration instructions you followed when first onboarding Fabric Crashlytics onto your app
Follow https://fabric.io/firebase_migration
Confirm that clicking on the Crashlytics tab for that app on the Firebase console shows Crashlytics configured with your previous crash data
Don't remove previous Fabric dependencies such as the API key
If you're planning to use other Firebase SDKs/products, only then will you have to add the GoogleServices-Info.plist file.


Fix sWBGT calculation

The sWBGT calculation was wrong, and I think this commit fixes it.

The main problem was that it was assuming that the vapour pressure was the saturation vapour pressure.
The vapour pressure was also incorrectly labelled as relative humidity.
The docstring said the units of the temperature was K, but the code was converting from Celsius to Kelvin.
The coefficients of the sWBGT formula didn't match with what I saw in Willet and Sherwood.
I've also applied a consistent spacing to the ** operator, but this isn't important.

Actually, I notice the docstring should say that the input temperature is in Kelvin.

This development was adopted into the version 2.0.0 of thermofeel in the function calculate_wbgt_simple but the PR was not merged directly as the code structure had changed.


chore: Modify code

Checklist:

[X] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[X] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[X] I've signed the CLA.
[ ] I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
[X] My builds are green. Try syncing with master if they are not.
[ ] My organization is added to USERS.md.

Codecov Report

Merging #20 into master will increase coverage by 7.14%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   42.85%   50.00%   +7.14%
==========================================
  Files           1        1
  Lines           7        2       -5
==========================================
- Hits            3        1       -2
+ Misses          4        1       -3

Impacted Files
Coverage Δ

main.go
50.00% <50.00%> (+7.14%)
:arrow_up:

Continue to review full report at Codecov.

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


Adjust clang's multilib flags test to cope with missing variant

The clang driver's print-multi-selection-flags.c test uses a
combination of command line options in one of its RUN lines for which we
don't have a valid library variant available.
Since the merging of PR #500, this combination of options now trigger an
error to inform the user of an unsupported setup, but this error also
causes the test to fail.
This adds a new patch file for llvm-project to adjust the test
accordingly.

Would it instead be possible to fix the test upstream to avoid using our multilib.yaml at all? There are other tests, e.g. baremetal-multilib.yaml, which do that by building a directory tree containing symlinks to the compiler and multilib.yaml under test, and some dummy library files. It might be cleaner for this test to add a driver option to use a different multilib.yaml, but I suppose the other tests need that whole tree including the libraries, so that might not be worth it.

The change to upstream is under review, but it's taking a while to progress. Should we go ahead with this change for now and revert it once the upstream PR gets merged?


Question: Kinematics Support

I think I've seen a brief mention of support for doing animation of assemblies. It seems like kinematics would be a natural fit too. Is there any intention/interest in supporting kinematics at some point?

I think introducing kinematics directly to cqparts would be out of scope.
However, exporting / importing an Assembly to an external format that does support kinematics is definitely within scope.
I would imagine supporting something like ROS and the Unified Robot Description Format (urdf) would be a good start!

ROS had crossed my mind. Thanks!

I passed the test 😊


typeahead:render event handler invoked wrongly

Hi,
The doc says that the typeahead:render event handler will be invoked with 4 arguments.
But there seems to be something wrong. All I get is an (1) array containing the event and 10 suggestions (limit is set to 10)
I'm using two datasets.

Yep, valid bug. Will fix for v0.11.2. Thanks for reporting.

Should be fixed with #1207.


customers: fix ofac search query

The column is called percentage_match, not "match".
Fixes: https://github.com/moov-io/customers/issues/172

Codecov Report

Merging #180 into master will decrease coverage by 2.88%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #180      +/-   ##
==========================================
- Coverage   62.38%   59.50%   -2.89%
==========================================
  Files          43       43
  Lines        2289     2289
==========================================
- Hits         1428     1362      -66
- Misses        592      667      +75
+ Partials      269      260       -9


Add new InternalAffairs/MethodNameEqual cop

This PR adds new InternalAffairs/MethodNameEqual cop.
# bad
node.method_name == :do_something

# good
node.method?(:do_something)

This cop is an internal cop and will not be added to a changelog entry.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Question: do we need to check for the inverse construct?

Yeah, thanks for the suggestion. I updated this PR.

Nicely done! 🙇


Pretrained model link broken

The link "http://data.csail.mit.edu/im2recipe/model_e500_v-8.950.pth.tar" leads to a 502 Bad Gateway.

Link is working.


FS-1291: Add lsblk version to JSON, in a compatible way

I add the tool to the JSON data of each disks, so that the output of lsblk is still a disks list

Output looks good in local testing.
"lsblk": {
"name": "/dev/sdd",
"serial": "PHYF046100ZW240AGN",
"model": "INTEL SSDSC2KB24",
"size":<PHONE_NUMBER>36,
"rev": "0132",
"rota": false,
"vendor": "ATA     ",
"tool": "lsblk from util-linux 2.37.2"
}

"size":<PHONE_NUMBER>36,
...
"rota": false,
...
"tool": "lsblk from util-linux 2.37.2"

For the record, typical use should output util-linux 2.27, with size and rota being strings and not number/boolean

This feels like it returns very weird output. Here's what I'm getting when I run this locally:
root@6b9e4815e9ec:/home/manny/projects/github.com/packethost/packet-hardware/packethardware# python -c 'import utils; import json; print(json.dumps(utils.lsblk()))'|jq -S
cmd="lsblk -b -J -p -o NAME,SERIAL,MODEL,SIZE,REV,ROTA,VENDOR", klass="utils", method="cmd_output"
cmd="lsblk -V", klass="utils", method="cmd_output"
[
  [
    {
      "model": null,
      "name": "/dev/loop0",
      "rev": null,
      "rota": false,
      "serial": null,
      "size":<PHONE_NUMBER>,
      "vendor": null
    },
    {
      "children": [
        {
          "model": null,
          "name": "/dev/sda1",
          "rev": null,
          "rota": false,
          "serial": null,
          "size":<PHONE_NUMBER>,
          "vendor": null
        },
        {
          "model": null,
          "name": "/dev/sda2",
          "rev": null,
          "rota": false,
          "serial": null,
          "size":<PHONE_NUMBER>12,
          "vendor": null
        }
      ],
      "model": "MZ7LH480HBHQ0D3 ",
      "name": "/dev/sda",
      "rev": "HG58",
      "rota": false,
      "serial": null,
      "size":<PHONE_NUMBER>56,
      "vendor": "ATA     "
    },
    {
      "children": [
        {
          "model": null,
          "name": "/dev/sdb1",
          "rev": null,
          "rota": false,
          "serial": null,
          "size":<PHONE_NUMBER>,
          "vendor": null
        },
        {
          "model": null,
          "name": "/dev/sdb2",
          "rev": null,
          "rota": false,
          "serial": null,
          "size":<PHONE_NUMBER>12,
          "vendor": null
        }
      ],
      "model": "MZ7LH480HBHQ0D3 ",
      "name": "/dev/sdb",
      "rev": "HG58",
      "rota": false,
      "serial": null,
      "size":<PHONE_NUMBER>56,
      "vendor": "ATA     "
    },
    {
      "model": "MTFDDAV240TDU   ",
      "name": "/dev/sdc",
      "rev": "J004",
      "rota": false,
      "serial": null,
      "size":<PHONE_NUMBER>36,
      "vendor": "ATA     "
    },
    {
      "model": "MTFDDAV240TDU   ",
      "name": "/dev/sdd",
      "rev": "J004",
      "rota": false,
      "serial": null,
      "size":<PHONE_NUMBER>36,
      "vendor": "ATA     "
    },
    {
      "model": null,
      "name": "/dev/zram0",
      "rev": null,
      "rota": false,
      "serial": null,
      "size":<PHONE_NUMBER>6,
      "vendor": null
    }
  ],
  "lsblk from util-linux 2.38.1"
]

It feels weird to just dump a string as the last member of the array, but I guess there's not really a better option. I thought of "string at the beginning" instead of end but thats not much of a win (except that it can sort of be used to change the parser in EMAPI land if necessary). The other thought is {"meta":{"tool version":"...", "schema":"v1",...}} as the first member in the array to be able to version the data.

lsblk() now outputs the disk data AND the tool version

Right, and this is an internal method that is called by the Disk class and transformed appropriately (though incomplete in this PR, fixed in https://github.com/packethost/packet-hardware/pull/70).


Add PowerBall

Tidbyt team welcome to another adventure of Amillion Air tries to learn how to do coding things. I have bought a second tidbyt for my parents and i know they love to play the Powerball so i figured id make this simple app for them to keep them up to date!
App shows
Current Prize Pool
Last numbers drawn
Last draw date and if there were any winners
next draw date

I haven't been able to find any docs on the Powerball API endpoint. Do you know what the rate limit is?
Might be best to add caching so that we don't end up making too many requests.

Hey Rohan,
You're correct the API doesn't seem to have documentation. All i did to find it was go the Powerball website and the just inspect elements to see where they were pulling from. Powerball only draws like once every few days so i would imagine setting the cache to update twice a day should be fine right? We can always adjust later.
This is my first time with caching so if anything looks off please let me know!!

Looks good but I would reduce the cache TTL to something like 600 seconds (10 minutes). If the cache interval is something like 12 hours, then we could potentially cache a value at 11:59 PM and then it wouldn't update until halfway through the next day.

Yes sir, you're the boss.


it it possible to cache?

Do you have any ideas for how to fragement cache the tags metamagic generates?

Hi @lassebunk, sorry for not responding to this!
What you propose indeed looks interesting.
Ideally we could go even further and "flatten" the output into the template's cache. But like I said, I think this would require re-implementing metamagic to not depend on content_for. But I haven't dove into the code to fully explore/confirm this.
Let me know what you think and how much your interest is, and maybe I'll look into it a bit more.

Hi,
Thanks for the nice gem ! It's been working perfectly until I started using caches_action. I can't find any rails way to do this. Neither any metatags gem to help.
Is this still under consideration ?
Or do you have any idea how to do this: have page specific meta tags with caches_action, layout:false enabled ? (posted on SO as well)
Thanks ! Best


Problems/Doubts attaching a sqlite3 db

Hi,
I am not clear on how to attach a sqlite3 db with alasql and sql.js.
I am getting a
Uncaught Error: Parse error on line 6:
...t current_timestamp)
----------------------^
Expecting 'LPAR', got 'RPAR'
trying to replicate your example using Chinook's db. The db is not in the same directory as the file calling it.
Could anyone provide another example please?
Thanks,

I prepared two examples (for browser and Node.js) where you can read SQL.js databases (unpack this file).
To run in browser you need put files somewhere in webserver (e.g. I use http-server.
To run example in node.js use the following command:
    node runme

First - include alalsq.js and sql.js files into you page (or require() them for node.js)
<script src="alasql.min.js"></script>
<script src="sql.js"></script>

Then open SQL.js database:
    alasql('ATTACH SQLITE DATABASE Chinook("Chinook_Sqlite.sqlite")',[],function(){ ... });

Here:
a) you need to use async version of alasql()
b) you can not save SQL.js
Please, let me know if there are problems with running these examples.

Hi agershun,
Thank you for the reply,

I tried to replicate your example using my db and I am getting the following error in console:

Uncaught Error: Parse error on line 6:
...t current_timestamp)
----------------------^
Expecting 'LPAR', got 'RPAR'.

In your example, the newly inserted data is not saved to the chinook db. Is that a limitation of alasql.js?

thanks again,

The problem, that Alasql parse SQL.js table definition, and it cannot parse it ... Could you post the table definition of your database, so I can check how to parse it in Alasql.

Yes, Alasql cannot save directly. But probably you can do it with SQL.js function:

https://github.com/kripken/sql.js/#write-a-database-to-the-disk
And you can find SQL.js database at alasql.database[youDatabaseId].sqldb.
This is should be something like:
    var fs = require("fs");
    var data = alasql.databases[databaseid].export();
    var buffer = new Buffer(data);
    fs.writeFileSync("filename.sqlite", buffer);

This is the table:
create table practice_quiz_results(
id integer primary key,
quiz_id integer not null,
user_id integer not null,
score integer not null,
created_ts timestamp default current_timestamp
)
I am using the browser and not node.js
Thank you for the guide and the support,

I think that the parser can not parse "current_timestamp" as a value.
I modify parser to accept this default value, But Alasql will not put anything into this field!
Can you try it?

Its a dangerous road to go - that alasql accepts / implements features that will work with one backend but with other / no backend.
Another way of solving could be to catch the keyword current_timestamp  and throw an error stating that this SQL is not fully supported by alaSQL and should therefore be executed directly on the backend
So instead of having
alasql(''CREATE TABLE t1 (a int, b current_timestamp)')
alasql(''INSERT INTO t1 (a) VALUES (1)')
alasql('SELECT * FROM t1')

We guide the users to write
alasql.database[youDatabaseId].sqldb.exec(''CREATE TABLE t1 (a int, b current_timestamp)')
alasql(''INSERT INTO t1 (a) VALUES (1)')
alasql('SELECT * FROM t1')

What do you think about that?

@agershun ,
Yes, Now I can see the contents of the DB.
Also, it is OK to not put anything on that field since it is directed in the DB to use current_timestamp as a default value when no value is entered. Same happens with the ID that it's "auto-incremented".
Now I need to save the new inserts into the DB file.
Thanks a lot for the help.

@mathiasrw  I think at some stage we need to review AlaSQL datatypes, including AUTOINCREMENT / IDENTITY, DATETIMESTAMP and ROWVERSION.  Some people use them frequently in "big" SQL projects.


wrong path for retrain.py

python /tensorflow/tensorflow/examples/image_retraining/retrain.py
--bottleneck_dir=bottlenecks
--model_dir=inception
--summaries_dir=training_summaries/long
--output_graph=retrained_graph.pb
--output_labels=retrained_labels.txt
--image_dir=flower_photos
The path is wrong for retrain.py with 4000 iterations (default)
Provided the reader is following the article, path should be
python retrain.py
--bottleneck_dir=bottlenecks
--model_dir=inception
--summaries_dir=training_summaries/long
--output_graph=retrained_graph.pb
--output_labels=retrained_labels.txt
--image_dir=flower_photos

What article are you referring to?

This issue is automatically closed due to lack of activity. Please re-open if this is still an issue for you. Thanks!


Calculation history: Add a sliding tab which showcases all the previous calculations

Completed here: https://github.com/Ayush-Kaushik/calculator/commit/091a641d4e3401e1cb9a06ad00d9dc001b70eb46


Interdependent request body properties on validation

Problem
Say I have this model with interdependent properties:
{
  "password": "blaa",
  "passwordConfirm": "blaa"
}

I want to validate password against passwordConfirm via openAPI specification.
I did not find a solution in the documents.
Is this feasible with openAPI 3?
Thanks for your help everyone!

This is not possible with the standard keywords.  Changing this for 3.1 or later would be done through JSON Schema (either the spec or an extension vocabulary such as @gregsdennis's data vocabulary).  I'm going to close this as out of scope for OAS proper.