Do i have to pay customs on a year old desktop computer while travelling to india from usa [duplicate]

This question already has an answer here:

  • How much electronics and other valuables can I bring duty-free when going to India? 4 answers

I built a gaming pc in usa and want to take it back to india will i be charged in customs? If yes how much?(the cost of the pc is around 2000 to 2200 usd) also if i bring a monitor (24 inch) how much will be the customs?

How can I trust a computer browser I untrusted for iCloud.com?

I clicked “Do not trust” when signing into iCloud in Safari in my Mac. How can I trust the browser now? so I won’t be prompted for the two-factor code any more.

Note: I guess If I click “Sign out of all browsers” would offer me to trust again, but that would reset this setting on other browsers too, which is not what I want.

Any help much welcome.

Why my computer restarted without notice?

Why my computer restarted ?

Yesterday left my computer unattended for a couple of hours, as I come back, computer was restarted losing some of the things I didn’t save (some temporal notes, some incognito windows), nothing valuable, but uncomfortable. Restarting neither reopen my explorer windows (neither really important, but it is nice to have your working folders opened.)

Looking trough logs, I can NOT find a reason for that, and this is what brothers me.

Control Panel\System and Security\Action Center\Archived Messages return no message at all

while Control Panel\System and Security\Action Center >> Maintenace sais that “one or more devices connected to your PC needs additional software to work properly”, when I had not change any physical thing on my PC

On Event viewer. Summary, I had the following message: The previous system shutdown at 17:25:26 was unexpected. at 18:06 !!!!

  • that means the computer was 41 minutes since shutdown to be back again ??

From this period of time (around 17:25 to 18:06) I had the following message:

Warning     17:27:21     Security-SPP     The rules engine reported a failed VL activation attempt.     Reason:0x80004001     AppId = 0ff1ce15-a989-479d-af46-f275c6370663, SkuId = b322da9c-a2e2-4058-9e4e-f59a6970bd69     Trigger=TimerEvent 

after this event, also Security-SSP, 30 seconds later, two informational messages:

    Successfully scheduled Software Protection service for re-start at 2019-06-17T17:26:51Z. Reason: RulesEngine.      The Software Protection service has stopped.      ..then silence... 

until sysems seems to be back again

Critical    18:06:02     Kernel-Power     The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly. 

and really nothing more, I can’t see any other information or log that gives me a clue about it.

and second thing that brothers me, as I try to make a custom View on EventViewer, It fails with the next message:

FX:{b05566ad-fe9c-4363-be05-7a4cbb7cb510} The process cannot access the file 'C:\ProgramData\Microsoft\Event Viewer\Views\View_0.xml' because it is being used by another process. 

I check the file, it has been created (with about 100kb, an XML with the filter defnition), and with ProcessExplorer I see no handler pointing to this file.

May somebody give me a bit of light ?

My system: Windows 8.1 running in a Laptop Lenovo with 8gb and SSD

Web server to run a file on another computer

I have been hosting a minecraft game server for me and my friends and I start it using a simple run.bat file. I was hoping to host a web server on my raspberry pi and have it be able to run the file from the click of a button and also close the terminal from again, the click of a button. I don’t really know how thesable this is yet hosting companies do it all the time. Would I need to host the web server from the same computer the game server is on or is there a way I could host the web server from my pi and link the two. Thank you for any suggestions as they will all be very helpful.

nmap gives different results in two shells on the same computer

I’m running kali and metasploitable2 in Virtualbox, and have them connected via the host-only networking mode. I can ping and ssh from kali to metasploitable, and have assigned the following IP addresses: 192.168.56.1 (kali) and 192.168.56.13 (metasploitable). For some reason, I was unable to see most open ports when running a simple scan:

kali$   nmap -sV 192.168.56.13 Starting Nmap 7.70 ( https://nmap.org ) at 2019-06-16 09:04 CEST Nmap scan report for 198.168.56.13 Host is up (0.011s latency). Not shown: 997 filtered ports PORT     STATE SERVICE     VERSION 80/tcp   open  http? 443/tcp  open  https? 8080/tcp open  http-proxy? 

But if I open another shell and run the same command I get a very different result:

kali$   nmap -sV 192.168.56.13 Starting Nmap 7.70 ( https://nmap.org ) at 2019-06-16 09:05 CEST Nmap scan report for 192.168.56.13 Host is up (0.00029s latency). Not shown: 977 closed ports PORT     STATE SERVICE     VERSION 21/tcp   open  ftp         vsftpd 2.3.4 22/tcp   open  ssh         OpenSSH 4.7p1 Debian 8ubuntu1 (protocol 2.0) 23/tcp   open  telnet      Linux telnetd 25/tcp   open  smtp        Postfix smtpd 53/tcp   open  domain      ISC BIND 9.4.2 80/tcp   open  http        Apache httpd 2.2.8 ((Ubuntu) DAV/2) 111/tcp  open  rpcbind     2 (RPC #100000) 139/tcp  open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP) 445/tcp  open  netbios-ssn Samba smbd 3.X - 4.X (workgroup: WORKGROUP) 512/tcp  open  exec        netkit-rsh rexecd --- snip ---- 

This is a potentially very much a beginner question but what could be giving these differences between the shells? The env variables were identical in both.

Improved computer AI in TicTacToe

I was just passing by and I wanted to know how to improve my TicTacToe game by adding “intelligence” to the computer AI so it can block my movements and so on.

#include <iostream> #include <string>     #include <stdlib.h> rand(); #define dim_m 3 using namespace std;  class Tic_Tac_Toe{  private:  char matrix[dim_m][dim_m]; public:  void checking_for_wins(){     const char* wins_possibilities[8] = {"123","456","789","159","753","147","258","369"};      for (int i =0;i<8;i++){         bool win = true;         char prev_op = '0';         const char* win_possibility = wins_possibilities[i]; //funciona como puntero en caso de que se cumpla uno de las wins_possibilities[]          for (int rcl = 0;rcl<dim_m;rcl++){                 char alphaChar = win_possibility[rcl];                  int intr_number = alphaChar - '0';                 int op_sp = intr_number - 1;                  int row = op_sp / dim_m;    //busca la posición de la fila                 int column = op_sp % dim_m; //busca la posición de la columna                  char current_op = matrix[row][column];                      if (prev_op == '0'){                         prev_op = current_op;                     }else if (prev_op == current_op){                         continue;                     }else{                         win = false;                         break;                     }         }                 if (win){                     cout << "Felicidades, ganaste!! \n";                     cout << "El jugador "<<prev_op<<" gana, felicidades! \n";                     exit(0);                     break;                 }     } } void player_turn(){     string input;     while(true){         cout << "\nEscoja la posicion donde quiere jugar: ";         cin >> input;     if (input != ""){         char intr = input.c_str()[0]; //cambia el valor de char por un int para poder operarlo          if (intr >= '1' && intr <= '9' ){             int intr_number = intr - '0';             int op = intr_number - 1;             int row = op/3; //revisa y ejecuta la posición de la fila             int column = op%3; //revisa y ejecuta la posicion de la columna             char matrix_pos = matrix[row][column];                 if (matrix_pos == 'X' || matrix_pos == 'O'){                     cout << "Esa posicion ya esta tomada!\n";                 }else{                     matrix[row][column] = 'X';                     break;                 }         }else{             cout << "La opcion elegida debe estar entre el rango de 1 a 9!"<<endl;         }     }else{         cout << "Debe elegir alguna opción! "<<endl;     }     } } void ia_turn(){     while (true){         int ia_tu = (rand() % 9) +1;         int ia_op = ia_tu - 1;          int row = ia_op / 3;         int column = ia_op % 3;      char matrix_pos = matrix[row][column];             if (matrix_pos == 'X' || matrix_pos == 'O'){ //si se cumple la condicion, se eligirá otro numero aleatorio                 continue;             }else{                 cout << "El IA eligio la posicion "<<ia_tu<<endl;                 matrix[row][column] = 'O';                 break;             }     } } void genGrid(){     int digit = 1;     for (int i=0;i<dim_m;i++){     for (int j=0;j<dim_m;j++){     matrix[i][j] = to_string(digit).c_str()[0];     digit += 1;     }     } } void showGrid(){         printf(" -------------\n");     for (int i=0;i<dim_m;i++){         printf(" |");     for (int j=0;j<dim_m;j++){         printf(" %c |" , matrix[i][j]);         }         printf("\n -------------\n");         }     } Tic_Tac_Toe(){          genGrid();         showGrid();         checking_for_wins();     while (true){     player_turn();         showGrid();         checking_for_wins();     ia_turn();         checking_for_wins();         showGrid();     }  } };  int main(int argc, char *argv[] ) { Tic_Tac_Toe play;  return 0; } 

CORE?? language, or some computer science concept

i heard from some friend or family friend about how ‘core’ is helpful in computer science and is one of the fastest or recently developing areas of computer science. however she is no expert and hence she couldn’t really tell me anything else… does anyone have any idea what this ‘core’ maybe? i think it could be a language, but have no idea. please help.