Safe gaming, banking and development on the same machine

I’m looking for a way to keep a gaming pc and a work pc. Currently i have a quite powerful machine: i7, 32gb ram, 2x420gb ssd internal (and some other external ssd)

Basically the gaming pc will be only used for gaming and i normally install dodgy software so it might get infected.

But i still want to do some work and banking login. So i can’t use this OS.

Requirements:

  • Windows 10
  • don’t get infected from the gaming pc
  • safe os where i can have confidential information
  • a way to access banking websites
  • a way to develop software

I was thinking of the following options:

Option 1: OS on external ssd

I’ll have an OS for work and banking only installed on an external SSD, so i can use on my laptop as well.

I’d like to encrypt this SSD somehow, i think the default Windows 10 encryption should be enough. The issue is I’m not sure i can encrypt the os partition so it might not work.

Another problem is that i need to block access to the internal ssd otherwise my work osmight get infected. I might try to encrypt them, but not sure is safe.

Here I’m also a bit worried that my development environment might get compromised while i install some random package (npm node modules).

Option 2

Same as option 1 but create a vm for Banking and a vm for development. The main Windows installation will not do anything.

Any other suggestions? Thank you

Multiple Field , same ajax callback

I created a custom field. The hook_field_widget_form has an submit element with an ajax callback:

  //Add more   $  element['add_zone'] = array(     '#type' => 'submit',     '#name' => $  field_name . '-add_more-' .'name',     '#value' => t('+'),     '#limit_validation_errors' => array(),     '#submit' => array('dms_polygone_add_more_add_one'),     '#ajax' => array(       'callback' => 'dms_polygone_add_more_callback',       'wrapper' => 'zones-fieldset-wrapper-'. $  field_name,     ),   ); 

I add 2 fields of my custom field type to a node. Ex: field_polygone (field type: polygone) and field_polygone_2 (field type: polygone). When i press the ‘add_more’ button of my first field_polygone, my callback function ‘dms_polygone_add_more_add_one’ thinks the trigger element is field_polygone_2.

Callback function:

function dms_polygone_add_more_callback($  form, $  form_state) {   //@todo: $  i gebruiken voor veld als er meerdere waardes zijn toegestaan.   $  parents = $  form_state['triggering_element']['#parents'];   return $  form[$  parents[0]][$  parents[1]][$  parents[2]]['zones']; } 

$ parents[0] is het field_name => When the i press ‘add_more’ , the $ parents[0] variable in the callback function should be ‘field_polygone’, but its field ‘field_polygone_2’.

How can is solve this problem? Why does the callback function think the trigger element is field_polygone_2 instead of field_polygone.

Multiple Database Records with Same Primary Key

I need to store relationships where a single attribute_id may be visible in multiple store_id and I was trying to use attribute_id as the primary key. It would be something like this:

+--------------+----------+ | attribute_id | store_id | +--------------+----------+ | 147          | 1        | | 147          | 2        | +--------------+----------+ 

But Magento doesn’t see that with good eyes as it returns the exception Item (foo) with the same ID "x" already exists.

What is the best solution for that problem?

Variable and slow internet speed on my Mac compared to other devices connected on the same network

Background.: I have a 40 Mbps Ethernet connection hooked directly to my iMac running on Mojave.

I use the Mac as a router to share the internet connection from Ethernet to other devices using WiFi.

Problem.: Now the problem is, the ‘other’ devices are easily hitting 15-20 Mbps download speeds, on the contrary my Mac being directly connected to the Ethernet can only reach download speeds up to 4 Mbps!

I don’t know what’s the reason behind this.

USB D+ D- same as TX RX?

So I am designing my first pcb and using an AT32ucb ┬Ác. It says in the data sheet it supports usb interface but on the pin-out listings and functions I can only find usb-id and usb-VBOF. So what am meant to use for the data in and out? I’m thinking like the tx and rx of the usart perhaps but would like clarification on the issue and to know if I am totally off.datasheet below pinout starts around page 7.

http://ww1.microchip.com/downloads/en/devicedoc/doc32059.pdf