Does Mathematica have a ‘nice’ way to evaluate this double integral over a line segment: $\int_{[3,3]}^{[2,5]}\int_{[3,3]}^{[2,5]} \log|x-y|dydx$?

I want to perform a double integration over a line segment in 2D and I am wondering if can it be done in Mathematica. An added difficulty is that the integral is singular.

$ $ I = \int_{[3,3]}^{[2,5]}\int_{[3,3]}^{[2,5]} \log|x-y|dydx.$ $

I am not that concerned with efficiency here, I would just like to have a nice way to integrate these types of integrals compared to how I have to do it in Python which involves analytically regularizing them first to deal with the singular integrands and then transformation to reference intervals before finally coding the actual integration.

So can this be done ‘nicely’ in Mathematica?

PSQL: Unable to enter password in Command Line

I have installed postgreSQL version 11.1 on my windows-x64 laptop and I’m able to access the database through pgAdmin 4.

However I can’t access the database through command prompt. It ask’s password but doesn’t allows to enter. I have tried re-installing the software but it didn’t work.Also, I have added bin & lib folder path to Enviorment variables. Please advise.

Error message : Password authentication failed for user abc

enter image description here

enter image description here

PSQL: Unable to enter password in Command Line

I have installed postgreSQL version 11.1 on my windows-x64 laptop and I’m able to access the database through pgAdmin 4.

However I can’t access the database through command prompt. It ask’s password but doesn’t allows to enter. I have tried re-installing the software but it didn’t work.Also, I have added bin & lib folder path to Enviorment variables. Please advise.

Error message : Password authentication failed for user abc

enter image description here

enter image description here

Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\wamp64\www\updatemob.php on line 24

When I run the code, this error message is given. I did not fix the problem

Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\wamp64\www\updatemob.php on line 24

$ Code12=$ _POST[‘Code’];

$  Source12=$  _POST['Source'];  $  Destination12=$  _POST['Destination'];  $  StartDate12=$  _POST['StartDate'];  $  EndDate12=$  _POST['EndDate'];  $  RisingTime12=$  _POST['RisingTime'];  $  ClearedTime12=$  _POST['ClearedTime'];  $  Duration12=$  _POST['Duration'];  $  Description12=$  _POST['Description'];  $  Option112=$  _POST['Option1 '];  $  Option212=$  _POST['Option2']; 

$ update = mysqli_query(“UPDATE tablefail SET

code=’$ Code12′,Source=’$ Source12′,Destination=’$ Destination12′,

StartDate=’$ StartDate12′,EndDate=’$ EndDate12′,RisingTime=’$ RisingTime12′,

ClearedTime=’$ ClearedTime12′ WHERE code=’$ Code12′”)

or die(mysql_error());

Using longer one line statements according to good practice

Lately I have learned how to use list comprehensions. I’ve started to use them often, but I am not sure how complex one line statements should I write. What is good practice? Could you give me some remarks about code below? It checks if list has only two elements and each of them is int.

a = [3,4] b = ['a',2]  def check_number(number):     return type(number) is int and number >= 0  def check_list(my_list, length):     return type(my_list) is list and len(my_list) == length  def check_segment(segment):     return not bool([True for number in segment if not check_number(number)]) if check_list(segment,2) else False  print(check_segment(a)) print(check_segment(b)) 

1) It seems for me that adding True and False to return could increase readability, but it makes code longer and adds condition check. Is it bad idea?

def check_number(number):     return True if type(number) is int and number >0 else False 

2) Is it too much for one line in return of function check_segment? Should I write it in more traditional way, like:

def check_segment(segment):     if check_list(segment):         result = True         for number in segment:             result = result + check_number(number)         return result     else:         return False 

3) In example up – should I use else when I’m just returning False?

4) Is check_number right name for function which returns boolean according to standards? Should I use is_number_right instead?

5) Is there anything else that should I improve in this code?

Help! upgrade 2.x to 2.3 get error magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 152

php bin/magento setup:upgrade Cache cleared successfully File system cleanup: /home/wwwroot/veaul/domain/veaul/web/generated/code/Composer /home/wwwroot/veaul/domain/veaul/web/generated/code/MSP /home/wwwroot/veaul/domain/veaul/web/generated/code/Magento /home/wwwroot/veaul/domain/veaul/web/generated/code/Mirasvit /home/wwwroot/veaul/domain/veaul/web/generated/code/Symfony /home/wwwroot/veaul/domain/veaul/web/generated/code/Veaul The directory '/home/wwwroot/veaul/domain/veaul/web/generated/metadata/' doesn't exist - skipping cleanup Updating modules: Schema creation/updates: Notice: Undefined index: checkout_agreement in /home/wwwroot/veaul/domain/veaul/web/vendor/magento/framework/Setup/Declaration/Schema/Db/SchemaBuilder.php on line 152 

Error “Notice: Trying to get property ‘fetch_row’ of non-object in C:\xampp\htdocs\conexion\conexion3.php on line 28”

buenas noches. Estudio diseño y me dejaron de tarea programar en php una base de datos, el problema es que me sale “Notice: Trying to get property ‘fetch_row’ of non-object in C:\xampp\htdocs\conexion\conexion3.php on line 28” cuando lo abro en el navegador. Se refiere a la línea que tiene “$ filas=$ resultado->fetch_row;” No sé cómo solucionarlo pues según el formato así tiene que ser, yo sólo cambié la información de la base de datos. El código completo es éste:

connect_error) { die(“Error en la conexión”. $ myconexion->connect_error); } else{ echo ” Se ha establecido la conexión con éxito…”. $ myconexion->host_info .”

” ; } ?>

Ejemplo 2 de conexión

NombreNúmero de empleado

query(“select nombre,nempleado from auto_veloz”); $ filas=$ resultado->fetch_row; if ($ filas >=1){ while ($ fila = $ resultado->fetch_assoc()) { ?>

<tr bgcolor="#FFFFFF" onmouseover="this.style.background='#FFFFFF';" onmouseout="this.style.background='#FFFFFF';">    <td> <?php echo $  fila['nombre']; ?> </td>    <td> <?php echo $  fila['nempleado']; ?></td>     </tr> 
</table> 

close(); ?>

PHP Fatal error: Cannot redeclare __() (previously declared in /vendor/magento/framework/Phrase/__.php:15) in /app/functions.php on line 23

Hello I am facing the issue after upgrade from 2.2.6 to 2.3.0 Can you suggest what is needed to be modified?

  1. file __.php :

<?php  declare(strict_types=1);  function __() {   $  argc = func_get_args();    $  text = array_shift($  argc); if (!empty($  argc) && is_array($  argc[0])) {     $  argc = $  argc[0]; }  return new \Magento\Framework\Phrase($  text, $  argc); } 

2.file – functions.php:

$  text = array_shift($  argc); if (!empty($  argc) && is_array($  argc[0])) {     $  argc = $  argc[0]; }  return new \Magento\Framework\Phrase($  text, $  argc); }