WPF MVVM Apporach: managing DetailView inside another DetailView is this not anti-pattern?

Besides MainViewModel have three DetailViewModels. In MainViewModel I create SemesterDetailView(controlled programatically by SemesterDetailViewModel). When i insert properly Name etc. i click on CreateCommand and SemesterDetailView is created, and props sent to database (controls are in SemesterDetailView). Now my question is can something like this (I want to be sure its not an anti pattern for…

Details

Performance considerations for NodePort vs. ClusterIP vs. Headless Service on Kubernetes

We have two types of services that we run on AWS EKS: external-facing services which we expose through an application-level load balancer using aws-alb-ingress-controller internal-facing services which we use both directly through the service name (for EKS applications) and through an internal application-level loadbalancer also using aws-alb-ingress-controller (for non-EKS applications) I would like to understand…

Details

Gson I can’t deserialize an array which contains latitude and longitude

I’m deserializing Json from an air quality site that has an array with latitude and longitude. The Json looks like this: { “status”:”ok”, “data”:{“aqi”:73, “idx”:3273, “attributions”:[{“url”:”https://www.environment.nsw.gov.au/”, “name”:”Office of Environment and Heritage – NSW”, “logo”:”Australia-NSW.png”}, {“url”:”https://waqi.info/”, “name”:”World Air Quality Index Project”}], “city”:{“geo”:[-36.05035,146.942], “name”:”Albury South-west Slopes, Australia”, “url”:”https://aqicn.org/city/australia/nsw/albury/south-west-slopes”}, “dominentpol”:”pm25″, “iaqi”:{ “pm10”:{ “v”:41 }, “pm25”:{ “v”:73 }, “t”:{…

Details

place UIView behind UILabel programmatically

I want to ask. I want to make a UIView behind uilabel, I`m creating segmented Controll from collectionview right now. how can I make uiview behind uilabel? this is my code nameLabel.translatesAutoresizingMaskIntoConstraints = false addSubview(nameLabel) NSLayoutConstraint.activate([ nameLabel.topAnchor.constraint(equalTo: topAnchor), nameLabel.leadingAnchor.constraint(equalTo: leadingAnchor), nameLabel.bottomAnchor.constraint(equalTo: bottomAnchor), nameLabel.trailingAnchor.constraint(equalTo: trailingAnchor) ]) let backgroundView = UIView() backgroundView.backgroundColor = .white backgroundView.translatesAutoresizingMaskIntoConstraints = false…

Details

DateTimeFormatter can format a date but can’t read its own format

I’m trying to parse an ISO-8601 date with a literal ‘Z’ on the end. This will format the date correctly: String pattern = “yyyy-MM-dd’T’HH:mm:ss.SSS’Z'”; DateTimeFormatter formatter = DateTimeFormatter.ofPattern(pattern); String string = formatter.format(OffsetDateTime.now()); System.out.println(string); Prints: 2020-01-19T03:06:58.090Z But then, trying to immediately read it back in: TemporalAccessor acc = formatter.parse(string); OffsetDateTime time = OffsetDateTime.from(acc); System.out.println(time); Fails with:…

Details