## The PostgreSQL database cannot start after modifying the IP

The following is the operation process:

``[root@freelab ~]# su - postgres Last login: Sat Jul  4 10:16:58 EDT 2020 on pts/1 -bash-4.2\$   /usr/pgsql-12/bin/pg_ctl -D /postgres -l logfile start waiting for server to start.... stopped waiting pg_ctl: could not start server Examine the log output. -bash-4.2\$   -bash-4.2\$   date Sat Jul  4 10:35:13 EDT 2020 ``

But the log does not seem to be updated accordingly

``[root@freelab log]# tail -f postgresql-Sat.log 2020-07-04 09:23:14.930 EDT [1832] LOG:  background worker "logical replication launcher" (PID 1840) exited with exit code 1 2020-07-04 09:23:14.930 EDT [1835] LOG:  shutting down 2020-07-04 09:23:14.943 EDT [1832] LOG:  received SIGHUP, reloading configuration files 2020-07-04 09:23:14.943 EDT [1832] LOG:  parameter "data_directory" cannot be changed without restarting the server 2020-07-04 09:23:14.944 EDT [1832] LOG:  configuration file "/postgres/postgresql.conf" contains errors; unaffected changes were applied 2020-07-04 09:23:15.052 EDT [1832] LOG:  database system is shut down ``

## Cannot understand the relevance of \$\binom{n-1}{2}\$ subarrays in The Maximum Sub-array Problem

I recently came across the sentence in the Book Introduction to Algorithms section 4.1 The maximum sub-array problem:

We still need to check $$\binom{n-1}{2} = \Theta(n^2)$$ subarrays for a period of $$n$$ days.

Here $$n$$ is the number of days taken as an example to show the changes in price of stock.

We can consider this is the size of an array A.

Where we are provided with an Array A and we need to find the net change is maximum from the first day to the last day.

To explain more specifically it means for an array $$A$$ of size $$n$$ we need to check $$\binom{n-1}{2}$$ subarrays.

But, I cannot understand how we need $$\binom{n-1}{2}$$ sub-arrays?

If we take an array of size 5 could someone please explain to me why we need only 6 sub-arrays. Won’t the sub-arrays be:

``[1...5] [1...4] [1...3] [1...2]  [2...4] [2...5]   [3...5] [4...5] ``

Please correct me if I am wrong. References: Maximum Subarray Problem

Thank you.

## Why does the Amulet of the Black Skull specify that you cannot use it to teleport to another plane of existence?

The Amulet of the Black Skull from Tomb of Annihilation says:

You can use an action to expend 1 of its charges to transport yourself and anything you are wearing or carrying to a location within 100 feet of you. The destination you choose doesn’t need to be in your line of sight, but it must be familiar to you (in other words, a place you have seen or visited), and it must be on the same plane of existence as you.

Why does the description specifically prohibit intraplanar travel when it already specified that the location must be within 100 feet of you?

Are there any situations when this is definitively not a redundancy?

I’ve never played Tomb of Annihilation, is there an adventure specific circumstance I’m not aware of that makes both restrictions necessary in the descriptions?

## John the Ripper: Cannot extract hash from PDF because Python keeps opening?

I’m having a really strange issue. I’m attempting to extract a hash from a user-password encrypted .pdf with John the Ripper’s pdf2john tool, but every time I run the command:

``c:\...\run\pdf2john.pl mypdf.pdf ``

My Python IDE (Visual Studio Code) opens up the pdf2john.pl file and the following appears in the command line:

``[main 2020-06-18T10:02:06.775Z] update#setState idle (node:15044) Electron: Loading non context-aware native modules in the renderer process is deprecated and will stop working at some point in the future, please see https://github.com/electron/electron/issues/18397 for more information [main 2020-06-18T10:02:36.776Z] update#setState checking for updates [main 2020-06-18T10:02:36.934Z] update#setState downloading ``

Any ideas on how to stop my IDE from opening up and having the command actually work as expected? The latest version of Perl is installed on my machine.

## Google Search Console cannot read my XML: Sitemap appears to be an HTML page

I’m working on a web application written with AngularJS (v8) and deployed on an apache2 using proxy to forward requests (frontend, api, backoffice).

My problem is that I’m trying to submit the sitemap ({website}/sitemap.xml) on Google, but Google Search Console keep saying that it’s not valid: Google can read the link but it seem to be in HTML

My sitemap:

I tried to validate that XML on many website and I didn’t find any error.

I mentioned apache2 because maybe when Google try to fetch the URL, before finding the XML, apache give another page but I cannot prove that. I tried in many ways and the first page that I see when opening the URL is the sitemap and nothing else.

In my angular.json I added the file in the assets as follow:

`"assets": ["src/favicon.ico", "src/assets", "src/sitemap.xml"],`

What it can be?

Thank you

## How does the FBI seize websites if they cannot use the law?

After doing some research about websites that have been taken down like Silk Road I have been extremely curious about the procedure that the FBI does to take down a website from the Internet.

How do they do it if the website is hosted in another country for example? Do they just contact the hosting company and blackmail them? Does the FBI “hack” the websites they cannot seize?

My question applies for both Dark Web and Clear Web websites. I understand that is much easier for a government entity to just use the law for their purposes but that’s not always possible…

## Cannot find DReplay.exe for SQL Server 2019

I have been working on SQL Server 2019 version and trying to setup a load test environment using SQL Server Distributed Reply Controller – Client, however I cannot find the DReplay.exe. I thought the it will be installed as part of the installation of Distributed Reply Controller, but it didnt. Some articles suggest that it will be installed as part Management Tools from the installation media for SQL Server but the Management Tools option has been removed from the installation option.

There is also no link online to suggest an alternative way to get the DReplay.exe installed. Running out of options now.

As a desperate measure, I did try to copy the the “C:\Program Files (x86)\Microsoft SQL Server0\Tools\Binn” folder content from an older server where it was installed to the new SQL Server 2019 which did not work, throwing error “Failed to load assembly….”

Any ideas any suggestions please?? Thank you.

Error:

Notice: Undefined index: link_type in /home/golchind/public_html/wp-content/themes/golchindl/functions.php on line 40

Notice: Trying to get property of non-object in /home/golchind/public_html/wp-content/themes/golchindl/functions.php on line 58

help :

line 40

line 58

``function oscar_meta_box_js(){     wp_enqueue_style( 'oscar_box_style',get_bloginfo('template_url')."/css/admin_meta_box.css");     wp_enqueue_script( 'oscar_box', get_bloginfo('template_url'). '/js/meta_boxes.js', array('jquery'),'1.0',true); } add_action( 'admin_enqueue_scripts', 'oscar_meta_box_js');   function oscar_meta_save(){     global \$  post,\$  meta_args,\$  meta_dls;     \$  type = \$  _POST['link_type'];     \$  episodes = array();     \$  links = array();     if(\$  type == "serial"){         for(\$  i=0;\$  i<count(\$  _POST['ep_name']);\$  i++){             \$  episodes[] = array("name"=>\$  _POST['ep_name'][\$  i],"quality"=>\$  _POST['ep_quality'][\$  i],"medium_size"=>\$  _POST['ep_med'][\$  i]);         }         for(\$  i=0;\$  i<count(\$  _POST['link']);\$  i++){             \$  links[] = array("name"=>\$  _POST['name'][\$  i],"link"=>\$  _POST['link'][\$  i],"subtitle"=>\$  _POST['subtitle'][\$  i],"screenshot"=>\$  _POST['screenshot'][\$  i],"episode"=>\$  _POST['episode'][\$  i]);         }     } else if(\$  type == "movie") {         for(\$  i=0;\$  i<count(\$  _POST['movie_title']);\$  i++){             \$  episodes[] = array("name"=>\$  _POST['movie_title'][\$  i]);         }         for(\$  i=0;\$  i<count(\$  _POST['mlink']);\$  i++){             \$  links[] = array("name"=>\$  _POST['mname'][\$  i],"link"=>\$  _POST['mlink'][\$  i],"subtitle"=>\$  _POST['msubtitle'][\$  i],"screenshot"=>\$  _POST['mscreenshot'][\$  i],"episode"=>\$  _POST['mtitle'][\$  i]);         }     }     update_post_meta(\$  post->ID,"_oscar_data",json_encode(array("episodes"=>\$  episodes,"links"=>\$  links,"type"=>\$  type), JSON_UNESCAPED_UNICODE)); }        function oscar_download(){     global \$  post;     ?> <script> var \$   = jQuery; \$  (function(){     var data = '<?=get_post_meta(\$  post->ID,"_oscar_data",true);?>';     if(data != ""){         data = JSON.parse(data);         var type = data['type'];         data['episodes'].forEach(function(e){             if(type == "serial")                 add_ep(e['name'],e['quality'],e['medium_size'])             else                 add_title(e['name']);         });         data['links'].forEach(function(e){             if(type == "serial")                 add_link(e['name'],e['link'],e['subtitle'],e['screenshot'],e['episode'])             else                 add_mlink(e['name'],e['link'],e['subtitle'],e['screenshot'],e['episode'])         });         if(data['type']){           \$  ("#link_type").val(data['type']);     }     }     normalize_links()     normalize_mlinks() }); </script> <?php if ('series' == get_post_type()) { ?> <div id="serial" class="content">     <div class="side_inp_keeper">         <input id="title_serial" type="text" placeholder="عنوان فصل">         <input id="quality_serial" type="text" placeholder="کیفیت">         <input id="med_serial" type="text" placeholder="میانگین حجم هم قسمت">         <button id="add_ep" class="button">افزودن</button>     </div>     <div id="episodes">      </div>     <hr>     <div class="links" style="display:none;">             <div class="side_inp_keeper">                 <select id="ep"></select>                 <input type="text" id="name" placeholder="عنوان لینک">                 <input type="text" id="link" placeholder="لینک دانلود">                 <input type="text" id="subtitle" placeholder="زیر نویس">                 <input type="text" id="screenshot" placeholder="نمونه کیفیت">                 <button id="add_link" class="button">افزودن</button>             </div>             <div id="links">              </div>         </div> </div> <?php } else if ('movies' == get_post_type()) { ?> <div id="movie" class="content">     <div class="side_inp_keeper">         <input type="text" name="movie_title" id="movie_title" placeholder="عنوان (مثال : زبان اصلی)"><button id="add_link_title" class="button">افزودن</button>     </div>     <div id="titles">      </div>     <hr>     <div class="mlinks">         <div class="side_inp_keeper">                     <select id="titl"></select>                     <input type="text" id="mname" placeholder="عنوان لینک">                     <input type="text" id="mlink" placeholder="لینک دانلود">                     <input type="text" id="msubtitle" placeholder="زیر نویس">                     <input type="text" id="mscreenshot" placeholder="نمونه کیفیت">                     <button id="add_mlink" class="button">افزودن</button>         </div>         <div id="mlinks">          </div>     </div> </div> <?php } ?> <input type="hidden" name="link_type" id="link_type" value="serial">     <?php }    function oscar_meta_boxes() {     add_meta_box( 'oscar_download',"باکس دانلود", 'oscar_download', array('movies', 'series'), 'normal', 'high' ); } add_action("save_post","oscar_meta_save"); add_action( 'add_meta_boxes', 'oscar_meta_boxes' ); ``

## Pinterest: you cannot put a Pinterest link in a pin??

Hi all,

I created a board with product pins inside, and I'd like to post cover pins in group boards that link back to that board I created, not to content outside Pinterest. However the system doesn't let me put a Pinterest link in a pin:
"!To save an idea you find on Pinterest, use the Save button you find on each Pin".

Why could a pin only link to content outside Pinterest, and not to a board?

## Does this imply Hamiltonian path cannot be decided in nondeterministic logspace?

Suppose I nondeterministically walk around in a graph with n vertices.

When looking for a Hamiltonian path, at some point I’ve walked n/2 vertices.

There are (n choose n/2) different combinations of vertices I could have walked (meaning the unordered set, not the ordered walk).

Each of those states must be distinct from one another.

If not, then, depending on the remaining n/2 vertices, I would decide the wrong answer.

Therefore, midway through my processing, at n/2, I need (n choose n/2) different states. That is too big for logspace.

Therefore you cannot decide a Hamiltonian path by nondeterministically walking around.

Does this imply Hamiltonian path cannot be decided in nondeterministic logspace – at least by “walking around”?