Categories
Ask Electrical Engineering Engineering

Ebike 24v relay board – switch?

Hi I’m building an Ebike and using a reclaimed relay board from an old electric moped. My question is the relay board has 3 small wires presumably for the switch, but this confuses me as I only need 2 for a switch. See picture: Also why use 8 relays. Extra info, 1500w hub motor, 2x12v […]

Categories
Cryptocurrency Ethereum Mastering Development

payable and unpayable functions in solidity

I’m making a board game using solidity. I start the game with some fee, play the game, and give the hosting fee to the winner. So I made a contract like this: contract BoardGame { Player p1; Player p2; uint256[] board; uint fee = 1 ether; function startGame(Player _p1, Player _p2, unit256[] _board) external payable […]

Categories
Mastering Development

white box testing branch coverage

is it possible to have a method such that there is every possible test suite that covers 100% branch coverage and does not reveal a division by zero fault and in addition it is possible to create a test suite for the same method that covers less than 100% branch coverage and reveals the fault? […]

Categories
Mastering Development

Warnings in build.gradle

I created a Gradle project (for Jenkins Shared Library Development) in IntelliJ Idea 2020.2: I followed the tutorial on http://tdongsi.github.io/blog/2018/02/09/intellij-setup-for-jenkins-shared-library-development/. Here is the my build.gradle file (It comes from the tutorial, but I adpated to a recent version of Gradle): plugins { id ‘groovy’ id ‘java’ id ‘idea’ } group ‘org.jenkins.devopssec’ version ‘1.0-SNAPSHOT’ idea { […]

Categories
Mastering Development

Clicking button does not update innerHTML of div

I cannot for some reason figure out what is wrong with this simple code. I am trying to change the innerHTML of answer with the click of the button, but nothing happens. Even if I insert the innerHTML change straight into the JS code without any functions, it does not change the innerHTML. What could […]

Categories
Mastering Development

How to get Google Profile Pictures?

In my school, all of our accounts are using our faces as our profile picture. I think it’ll be cool to download all of them for reasons. Doing some digging, I can find the profiles and their pictures in Google Contacts. I can open the Network Log and get the Profile Pictures just by searching […]

Categories
User Help

i would like to add data from one document into other cell on a daily basis, is this possible?

i want to import data from this sheet into another. where i can add the number of time ‘cardboard’ appears in the column ‘stillage reference’ in column D based on the date in column G on a daily basis. Is this possible? =IMPORTRANGE("https://docs.google.com/spreadsheets/d/1RO31w9R6GVWsxLm8nOPJUJ0T444hHfWH6pyIL7wvT2o/edit#gid=1649976768", (‘Stillage Reference’! COUNTIFD:D,"Cardboard")

Categories
User Help

Is there a way to add an external transparent PNG overlay to a PDF without modifying the PDF?

I’m trying to find an application that will let you create an overlay to a PDF but doesn’t actually modify the PDF, e.g. saves a transparent .png that (in the program) is linked to the PDF or creates a file that you can select to add as the overlay (that is editable). That way I […]

Categories
User Help

Apply local group policy objects to custom user group

Background The scenario I am struggling with is the following: I have a standalone Windows 10 Enterprise system (not connected to any network / AD) which I want to configure with local group policies. The group policies should be different for different user groups. (User Groups: custom_admin, custom_user1, custom_user2) Issue What I have done so […]

Categories
Mastering Development System & Network

How can I point my Documents folder to my One Drive?

I have a new computer and my old one had the Documents folder pointed at my One Drive\Documents folder. I am trying to point it on my new computer, but when I try I get the following: Any idea how to set it when this happens?