Categories
Mastering Development Software

How do I really write tests without mocking/stubbing?

I have been using TDD when developing some of my side projects and have been loving it. The issue, however, is that stubbing classes for unit tests are a pain and makes you afraid of refactoring. I started researching and I see that there are a group of people that advocates for TDD without mocking–the […]

Categories
CMS Mastering Development Wordpress

WP Donation Form with custom payment API

I want to know if there’s a plug-in out there which gives you the possibility to create a donation form and to use a custom payment gateway(not only Stripe,PayPal, etc). Thank you!

Categories
Mastering Development System & Network

Firewall on small network (Debian 9)

I have written following iptables-based firewall for a small network with one server behind it exposing things like webserver and email. It is meant to be rather restrictive at the outset and new rules to be added as needed. #!/bin/bash modprobe ip_nat_ftp modprobe ip_conntrack_ftp modprobe ipt_iprange echo -n ‘1’ > /proc/sys/net/ipv4/ip_forward echo -n ‘0’ > […]

Categories
Mastering Development Software

Is there a term for a data model that has a type and several data fields where all fields but one (determined by type) are null?

I’m working on a project that uses an API. The have “Catalog” objects. Each Catalog object has a type and several data fields, such as “imageData”, “taxData”, or “modifierData”. All data fields are null except for one, as determined by the Catalog object’s type. I’m designing a database schema and I’d like to read about […]

Categories
Linux Mastering Development Ubuntu

DNS and systemd-resolve: Dig and skype work but not firefox ping wget apt-get

Have Xubuntu — Ubuntu 18.04.4 LTS.. I installed dnscrypt-proxy and resolvconf — then purged them both.. This has messed up networking.. Skype and dig work — but NO other internet application works.. I use systemd-resolve with the command “systemctl restart systemd-resolved”.. After this, /etc/resolv.conf looks like this: # Generated by NetworkManager search internetCompany.com nameserver 127.0.0.53 […]

Categories
User Help

Easy software to apply patches, search+replace, file overwrites, etc. against a target folder [closed]

I am looking for software that is as easy to use for end-users as extracting ZIP files and that, when “extracted”, has a Swiss Army knife suite of methods which an author can use to add/change/delete files (and their contents), in the folder run against. Scenario: Mods for games tend to be ZIP files that […]

Categories
Development

Formula for creating sequential auto-gen IDs in Google Sheets

I’m currently working on an inventory management project for my company and I want the spreadsheet to create a new, unique ID when new data is input. I have it working to where it will import data from a Google Form, but I have having trouble with the ID gen. =ArrayFormula(if(ISBLANK(B2:B), “”, CONCATENATE(“TMB”,ROW(J6:J7)))) This is […]

Categories
Development

Get marginal effect and predicted probability for glmer model in R

I’m trying to calculate both the predicted probability values and marginal effects values (with p-values) for a categorical variable over time in a logistic regression model in R. Basically, I want to know 1) the predicted probability of the response variable (an event occurring) in each year for sample sites in one of 2 categories […]

Categories
Development

“Golden” implementation for MVVM Light

The question can be summarized in: which is the best way to develop a clear app on UWP with MVVM Light? Maybe I missed it but I’ve not found a sample or similar… I’ve seen a lot of discussion and variation: Model – do I put only data here or I should create e DAL […]