Makefile – creating target from searched directories

I want to create separate executables for each directory named “test” in my project. Test directory has structure like this: test.mk test (dir) |__test.mk |__testRun.c |__testRun.h test.mk contains dependencies for specific test, testRun.c is the test itself. So hierarchy looks like this: ROOT |__Makefile |__Module1 (dir) |__some files |__test (dir) |__Module2 (dir) |__some files |__test…

Details

Cannot fetch my data from firebase realtimedatabase in an iOS application using SwiftUI

I’m developing an iOS application with SwiftUI, and I’m having trouble fetching my data from a firebase realtimedatabase. Please show me a sample-code.swift in which a label puts Integer fetched from the database. import SwiftUI import Firebase import FirebaseDatabase struct CurrentDistance: View { var ref: DatabaseReference! init() { ref = Database.database().reference() } var body: some…

Details

EntityQuery does not return values

I am trying to get some entities using the “entity.query” service. What am I doing: in my module (file “mymodule.module”) I execute: function mymodule_preprocess_page(&$variables) { $query = \Drupal::entityQuery(‘node’); $query->condition(‘type’, ‘article’); $nids = $query->execute(); } What I get: when I browse a page under the name of an authorized user – the request returns the results…

Details