Categories
Ask Engineering Software Engineering

Does default settings should be considered as business rules from the view point of “Clean Architecture”?

The examples of default settings: Default port for server applications Default resources directory for Java Applications Default Webpack config file ("webpack.config.js") My particular case I have the utility for web application projects building, based on gulp and webpack. When user did not specified some settings in config file of his project (similar to pom.xml, webpack.config.js, […]

Categories
Mastering Development

Connection test and loop in case of lost connection to prevent end of script

I have this script that runs continuously on a raspbery Zero to capture the temperatures and send them to grafana the problem is that when the grafana server is stopped for backup or something, the script falls in error and does not automatically resume so I’m looking for a way to create a connection test […]

Categories
Database Development

Unable to add data to table

I am working on a script to get latest backups for AlwaysOn Availability Groups. I used the command Get-DbaAgBackupHistory from dbatools module, passed it a couple of listener names, and wrote the output to a table. I want to add the listener name in the output but have not been able to do this. My […]

Categories
User Help

How to deploy a configured domain lab environment automatically?

I am looking for a quick way to spin up an entire domain environment (AD, Exchange, Web services, WSUS, DNS, Database, clients, etc.) in vSphere for a pen testing lab. I would like to test various security products so I am looking for a way to spin these up quickly and already configured. I’ve seen […]

Categories
User Help

How can I spin up a whole domain lab environment automatically? [closed]

I am looking for a quick way to spin up an entire domain environment (AD, Exchange, Web services, WSUS, DNS, Database, clients, etc.) in vSphere for a pen testing lab. I would like to test various security products so I am looking for a script to spin these up quickly and already configured. I’ve seen […]

Categories
Database Development

Passing in multiple instances into the dbatools command GET-DBADBFILE

I am attempting to gather all of the dbfile information on all of our sql instances in one of our environments. It is a fairly large environment and would be tedious to perform one instance at a time. I thought there would be an easy way to do this with Powershell but I seem to […]

Categories
Mastering Development

Koin DI crashes with release signed apk

I have an application that uses Koin DI framework. I have set all the modules for Retrofit, Database, Repository etc and works fine in the debug mode. Lately i uploaded it on Play Store but i see that it crashes when i try to launch the app. The problem is that it cannot create an […]

Categories
Mastering Development

Can not create ‘BigQuery Connection Service Agent’

I have Owner role, and use create bq connection command. bq mk –connection –connection_type=’CLOUD_SQL’ \ –properties='{"instanceId":"***","database":"***","type":"MYSQL"}’ \ –connection_credential='{"username":"***", "password":"***"}’ \ –project_id=*** –location=asia-northeast1 *** then BigQuery error in mk operation: Access Denied: URI: services/bigqueryconnection.googleapis.com/projects/***: APPLICATION_ERROR;google.api.serviceconsumermanagement.v1beta1/ServiceConsumerManagerV1Beta1.GenerateServiceIdentity;Permission denied to generate service identity for service [bigqueryconnection.googleapis.com] Details: [{ IAM{policy: ‘serviceconsumermanagement_consumers-/***/bigqueryconnection.googleapis.com/***’ resource: ‘services/bigqueryconnection.googleapis.com/consumers/***’ permission: ‘serviceconsumermanagement.consumers.generateServiceAccount’} allowed: false auditlog: false cloudaudit: […]

Categories
Mastering Development Software

What is the correct way to unit test methods that mix dependencies and business logic?

I’m struggling to come to a consensus on the right approach that can be used somewhat consistently to balance integration and unit testing. Take the following method, that is extremely common to find in a C# .NET Core application. public interface IBusinessLogicService { CalculationResult CalculateBusinessRuleResult(string businessRuleName, int input); } public class BusinessLogicService: IBusinessLogicService { private […]

Categories
User Help

Change the Desktop Wallpaper of all computers in my Workplace in Windows (7,8,8.1,10) [closed]

tl;dr; how can I change the wallpaper of all the computers in my workplace without using group policy? In my workplace they make us change all desktop wallpapers every now and then. Since the computers are not in a domain, we have to change this manually (no group policy). I’m looking for a program that […]