Table alignment of text left with tabularx

Currently, I am using tabularx what enables me to set columnwidth. The only thing that I would like to change is to align all text on the left side, instead of how it is now (centered in some cases). For example: "primary functional goals" is in a centered (?) way aligned, instead of on the left side, what I prefer. In the images you see my code and the result. Thank you!


I'm sending some polish names via $_GET, and when I'm trying to var dump it, I'm getting sth like:  A?a   which should be:  Ała   In url it looks like:  A%B3  I've set ehaders to utf-8, ant still it doesnt work. How can I solve this?  EDIT: it looks like problem starts from getting this text from database. It looks like it should in table, but when rying to SELECT it and echo - the problem starts


What kind of ID does the US accept when visiting bars or drinking age events?

For tourists visiting the states, what kind of ID do you need to carry with you to visit bars or drinking age events?  I understand the passport is the main piece of ID but do they accept any other forms of ID from other countries such as a driver's license with a photo?


Let $f: X \to Y$ a morphism of ringed spaces and $E$ a vector bundle over $Y$ for finite rank $r$.  My questions are:   Why $E$ can be interpreted as locally free sheaf of rank $r$, therefore for each $y \in Y$ there exist an open set $U$ that contains $y$ such that $E \vert _U \cong \mathcal{O}_Y ^{\otimes r}\vert _U$ Conversly, how can a locally free sheaf of rank $r$ turned to a vector bundle formally correct?   Background of my question: How to interpret $f^*E$? Problem:$f^*$ accepts as arguments only sheafs on $Y$...


Do we have function overloading in C? How the main() function works ?  If we use int main() or void main() or char main(), it works pretty much well. How this is managed in C?


Why do LED bulbs in my three-bulb fixture remain on unless one is incandescent?

I have a three bulb light fitting that worked fine with 40 watt golf ball bulbs. On removing the bulbs and inserting the first 5.5 watt led the bulb illuminated while the fitting was turned off. This only happened in the one bulb holder the other two worked fine. The fitting now has 2 leds and 1 40 watt bulb and is working fine, any ideas? Cheers


Extreme slow query for a simple indexed selection - Why?

i have a table in my database that is described as follows: -- Table: public.devicemeasurement_mqtt  -- DROP TABLE public.devicemeasurement_mqtt;  CREATE TABLE public.devicemeasurement_mqtt (     measurement_id integer NOT NULL DEFAULT nextval('devicemeasurement_mqtt_measurement_id_seq'::regclass),     insert_time timestamp with time zone NOT NULL,     data jsonb NOT NULL,     smart_device_id integer NOT NULL,     CONSTRAINT devicemeasur_smart_device_id_ee500e1e_fk_d FOREIGN KEY (smart_device_id)         REFERENCES public.device_mqtt (device_id) MATCH SIMPLE         ON UPDATE NO ACTION         ON DELETE NO ACTION         DEFERRABLE INITIALLY DEFERRED ) WITH (     OIDS = FALSE ) TABLESPACE pg_default;  ALTER TABLE public.devicemeasurement_mqtt     OWNER to postgres;  GRANT ALL ON TABLE public.devicemeasurement_mqtt TO postgres;  -- Index: dev_insert__2df020_idx  -- DROP INDEX public.dev_insert__2df020_idx;  CREATE INDEX dev_insert__2df020_idx     ON public.devicemeasurement_mqtt USING btree     (insert_time DESC NULLS FIRST)     TABLESPACE pg_default;   -- Index: devicemeasurement_mqtt_smart_device_id_ee500e1e  -- DROP INDEX public.devicemeasurement_mqtt_smart_device_id_ee500e1e;  CREATE INDEX devicemeasurement_mqtt_smart_device_id_ee500e1e     ON public.devicemeasurement_mqtt USING btree     (smart_device_id ASC NULLS LAST)     TABLESPACE pg_default;  This table, is continuously used from a service that inserts tons of data every minute (at this time it contains around 3 milions of rows), now, in the current situation, when i have to select one device that has continuous measurements the problem does not exist, but, suppose that i have to select the measurements for a specific device that was in use three months ago and now it's disabled (so, no more new measurements), the execution of a simple and effective query like below is really slow, taking up 40 seconds to complete: This is the reference query that generates this slow select: EXPLAIN (BUFFERS,ANALYZE)  SELECT    devicemeasurement_mqtt.measurement_id,    devicemeasurement_mqtt.insert_time,   devicemeasurement_mqtt.data,   devicemeasurement_mqtt.smart_device_id FROM    devicemeasurement_mqtt  WHERE    devicemeasurement_mqtt.smart_device_id = 4  ORDER BY    devicemeasurement_mqtt.insert_time DESC LIMIT 15  and here you can find:  and the  Limit  (cost=0.43..40.04 rows=15 width=264) (actual time=39133.474..39134.059 rows=15 loops=1)   Buffers: shared hit=22093 read=112101   ->  Index Scan using dev_insert__2df020_idx on devicemeasurement_mqtt  (cost=0.43..356203.28 rows=134878 width=264) (actual time=39133.471..39134.055 rows=15 loops=1)         Filter: (smart_device_id = 4)         Rows Removed by Filter: 1794148         Buffers: shared hit=22093 read=112101 Planning Time: 0.133 ms Execution Time: 39134.085 ms  I'll be glad if someone will help me to figure out!


Do two quantiles of a beta distribution determine its parameters?

If I give two quantiles $(q_1,q_2)$ and their corresponding locations $(l_1,l_2)$ (each) in the open interval $(0,1)$, can I always find parameters of a beta distribution that has those quantiles at the specified locations?


Why is python ordering my dictionary like so?

Here is the dictionary I have  propertyList = {     "id":           "int",     "name":         "char(40)",      "team":         "int",     "realOwner":    "int",      "x":            "int",     "y":            "int",      "description":  "char(255)",      "port":         "bool",     "secret":       "bool",     "dead":         "bool",     "nomadic":      "bool",      "population":   "int",     "slaves":       "int", }   But when I print it out with "\n".join(myDict) I get this  name nomadic dead port realOwner secret slaves team y x population id description   I know that a dictionary is unordered but it comes out the same every time and I've no idea why.


Something very strange happened, I was trying to install the Steam app and my LG device disappeared, a different device I never seen took it's place: Telstra Samsung SM-G900F. The first device is my tablet, but the second one is completely alien - Telstra is Australian and I'm in Brazil.  Has anyone seen something like this, how can I make my phone appear back in the list?


I have a google email address that is accepting emails.  But when I try to sign into my Google account and put in my username, it says I have no account.  If I try to create an account with my username, it says there’s already an an account with that username.


How to find the third latest date from a list of dates

There is a list of dates in the form of array list Example :  11/02/2012 21/04/2019 12/03/2061 11/09/1961 22/08/2014  We will have to return the third latest date from the above list  I feel we will have to first sort in descending order of year and take the third latest date from that  Could you please give me a suggestions on this?


Let $a, b \in \mathbb{Q}$ be two elements such that $a,b$ and $ab$ are not squares in $\mathbb{Q}$ Prove that $\mathbb{Q}(\sqrt{a}, \sqrt{b})= \mathbb{Q}( \sqrt{a}+\sqrt{b})$


How (and why) does TOP impact an execution plan?

For a moderately complex query I am trying to optimize, I noticed that removing the TOP n clause changes the execution plan.  I would have guessed that when a query includes TOP n the database engine would run the query ignoring the the TOP clause, and then at the end just shrink that result set down to the n number of rows that was requested.  The graphical execution plan seems to indicate this is the case -- TOP is the "last" step.  But it appears there is more going on.  My question is, how (and why) does a TOP n clause impact the execution plan of a query?  Here is a simplified version of what is going on in my case:  The query is matching rows from two tables, A and B.    Without the TOP clause, the optimizer estimates there will be 19k rows from table A and 46k rows from table B.  The actual number of rows returned is 16k for A and 13k for B.  A hash match is used to join these two results sets for a total of 69 rows (then a sort is applied).  This query happens very quickly.  When I add TOP 1001 the optimizer does not use a hash match; instead it first sorts the results from table A (same estimate/actual of 19k/16k) and does a nested loop against table B.  The estimated number of rows for table B is now 1, and the strange thing is that the TOP n directly affects the estimated number of executions (index seek) against B -- it appears to always be 2n+1, or in my case 2003.  This estimate changes accordingly if I change TOP n.  Of course, since this is a nested join the actual number of executions is 16k (the number of rows from table A) and this slows down the query.  The actual scenario is a bit more complex but this captures the basic idea/behavior.  Both tables are searched using index seeks.  This is SQL Server 2008 R2 Enterprise edition.


Transiting Doha Hamad International Airport

Can you walk from terminal 1C to terminal 2 at Doha's Hamad International Airport? How long will it take? I only have one hour between flights.


Foxit Reader doesn't take focus on opening a file in Ubuntu 18.04

I'm using Foxit Reader as my default pdf reader in Ubuntu 18.04. However, if I open a pdf from file explorer, the pdf will be opened in Foxit Reader in background. I need to manually switch to Foxit Reader. Is this a bug or is it a setting that can be changed?


Probability of finding a particular sequence of base pairs

Thinking about probability always makes me realize how bad I am at counting...  Consider a sequence of $n$ base letters $A,\; T, \; C, \text{ and } G$, each equally likely to appear. What is the probability that this sequence contains a particular sequence of base pairs of interest of length $r\leq n$?  There are $4^n$ different (equally likely) sequences possible. Start with the sequence of interest at the beginning of the full sequence; $4^{n-r}$ sequences like this are possible. We can start our sequence of interest in $n+1 -r$ different locations. Hence, my answer is $(n+1-r)/4^r$.  This probability is increasing in $n$, which makes sense to me. But this probability exceeds 1 when $n>4^r +r-1$. But that can't be. The probability should approach 1 in the limit (seems to me), but not exceed it.  I assume that I'm double counting something. What am I missing? Thanks.  (FYI, not homework, just a toy example in preparation for exams. A question posed by my molecular biologist friend.)


Let ($x_n$) be a monotone sequence and contain a convergent subsequence. Prove that ($x_n$) is convergent.  I know that by the Bolzano-Weierstrass Theorem, every bounded sequence has a convergent subsequence. But I need some hints as to how to prove the question above. Thanks for your help!


I was looking at the list of familiars you can obtain with the Improved Familiar feat when I noticed none of them had a stat bonus like the normal familiars did.(Example: The Cat familiar grants "Master gains a +3 bonus on Stealth checks")  Are you sacrificing a feat slot AND the bonuses familiars grant to you to have a better familiar? It isn't a huge blow but it seems that if you sacrifice a feat you shouldn't lose a bonus that is given as a base ability.


Do Americans remove the "t" in "wanted"?

When you pronounce the phrase "I got a message you wanted to see me", is the "t" usually deleted in the word "wanted"? Thank you.


Execute a program from the bash terminal without waiting for program to close

Executing a program in the terminal with a command such as ./theprogram runs the program, but waits until the program closes. This is useful if you want to see the output of the program, but what if you just want to execute the program and keep working in that terminal while the program is running?


We are finding difficulties in solving this claim:     Let's suppose that   $$ \int_a^\infty f(x)^2 dx < \infty \text{ and } \int_a^\infty f''(x)^2 dx < \infty. $$   Prove that $$\int_a^\infty f'(x)^2 dx < \infty.$$   Thank everyone who can solve this claim or give any suggestion.


How can I enable one-click open in the unity dash?

Searching in the unity dash and clicking an item gives me options such as sharing via e-mail or revealing the file in nautilus which I rarely use.  I'd rather restore the behavior of 12.04 where you could open a file with just one click.  How can I enable click open in unity dash?


How to enable projection transformation in QGIS

My QGIS project has two layers, one layer is retrieved by Google layer plugin which fetches the static Google map image whose CRS is +proj=merc +lon_0=0 +lat_ts=0 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +no_defs and another vector layer is a postgis layer whose CRS is +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs.  I digitalized some polygon features from Google Layers and added it to the vector layer. However, QGIS seems do not make the automatic CRS transformation. How can I change its projection?   Thanks


Under unix/linux, there is this extremely useful program screen: it's for bash, text-only, and I can detach a session, log out (the session is still running though), log in later (even from a different computer) and resume the session exactly as I left it.  My question is, is there an equivalent to screen for X?  So what I want to do is: work remotely with ssh -X in an X-session on a remote linux machine, log out, then later log in from a different computer again with ssh -X and then re-attach the X-session; practically resuming work from the moment when I logged out before. Is this possible?


Find all primes p such that $\frac{2^{p-1}-1}{p}$ is a perfect square.

Find all primes $p>2$ such that $\frac{2^{p-1}-1}{p}$ is a perfect square.   My try: Since $p>2$, we can write   $\frac{2^{p-1}-1}{p}=\frac{(2^{\frac{p-1}{2}}-1)(2^{\frac{p-1}{2}}+1)}{p}=n^2$ Now since p is a prime one of the $(2^{\frac{p-1}{2}}-1)$ and $(2^{\frac{p-1}{2}}+1)$  case-1  $p|(2^{\frac{p-1}{2}}-1)$      $(2^{\frac{p-1}{2}}-1)=pk$  hence $n^2=k(pk+2)$  writing   $k=m^2t$ where $t$ doesn't contain any perfect square divisor  $a^2=t(pm^2t+2)$  This indicates that t is either $1$ or $2$.  Putting $t=1$  $a^2=pm^2+2$  hence   $a^2=2^{\frac{p-1}{2}}+1$  $(a-1)(a+1)=2^{\frac{p-1}{2}}$  It can easily be shown that $a=3$ is the only solution to this equation hence $p=7$ is the only solution in case-1.(putting $t=2$ doesn't give any solution.)  Similar method gives $p=3$ in case-2  But someone told me there is an elegent and novel method to solve it. I tried but i didn't get it. Please help.


I'm going to name my new business, I got an idea from another company called "ZZZ Men Supply"  and come up with "XXX Gentlemen Supply" for my business. Since the word Gentlemen slightly longer I want to use the abbreviation for it, which one is better: "XXX Gent Supply", "XXX Gent's Supply" or "XXX Gents Supply"?  Thanks


Sequence of polynomials which converge uniformaly to 1/z

Does not there a sequence of polynomials which converges uniformly to $1/z$ on $\{z\in\Bbb C\;:\;|z|=1\}$? Explain.   Here is where I'm having problems with the question. I understand what a sequence is, however I don't know what a sequence of polynomials is. Does this mean that a you come up with a generic sequence that represents a polynomial and all these polynomials reduce down to $1/z$?  There is also uniform convergence in real analysis. Is this the same type of uniform converge?  My class mate that this the answer comes from some type of approximation of polynomials theorem.


/*     mysql.sql - mqtt2sql MySQL database objects      Copyright (C) 2020 Norbert Richter <nr@prsolution.eu>      This program is free software: you can redistribute it and/or modify     it under the terms of the GNU General Public License as published by     the Free Software Foundation, either version 3 of the License, or     (at your option) any later version.      This program is distributed in the hope that it will be useful,     but WITHOUT ANY WARRANTY; without even the implied warranty of     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     GNU General Public License for more details.      You should have received a copy of the GNU General Public License     along with this program.  If not, see <http://www.gnu.org/licenses/>.  Usage:     See README.md for more details how to install and use     https://github.com/curzon01/mqtt2sql#mqtt2sql */   /* Comment out or adapt the following lines if you want to use another  * existing database and objects  */ CREATE schema IF NOT EXISTS mqtt; USE mqtt;  DROP TRIGGER IF EXISTS `mqtt_before_insert`; DROP TRIGGER IF EXISTS `mqtt_after_insert`; DROP TRIGGER IF EXISTS `mqtt_after_update`; DROP VIEW IF EXISTS `mqtt_history_view`; DROP TABLE IF EXISTS `mqtt_history`; DROP TABLE IF EXISTS `mqtt`; /* -------------------------------------------------------------------- */   /* Create database objects */  CREATE TABLE IF NOT EXISTS `mqtt` (     `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,     `ts` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,     `topic` TEXT NOT NULL,     `value` LONGTEXT NOT NULL,     `qos` TINYINT(3) UNSIGNED NOT NULL,     `retain` TINYINT(3) UNSIGNED NOT NULL,     `history_enable` TINYINT(4) NOT NULL DEFAULT 1,     `history_diffonly` TINYINT(4) NOT NULL DEFAULT 1,     PRIMARY KEY (`topic`(255)),     UNIQUE INDEX `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;  CREATE TABLE IF NOT EXISTS `mqtt_history` (     `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,     `ts` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,     `topicid` INT(10) UNSIGNED NOT NULL,     `value` LONGTEXT NULL DEFAULT NULL,     PRIMARY KEY (`id`),     INDEX `topicid` (`topicid`),     INDEX `ts` (`ts`),     CONSTRAINT `FK_mqtt_history_mqtt` FOREIGN KEY (`topicid`) REFERENCES `mqtt` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;  DELIMITER // CREATE TRIGGER IF NOT EXISTS `mqtt_before_insert` BEFORE INSERT ON `mqtt` FOR EACH ROW BEGIN     DECLARE new_id INTEGER;      SET new_id=(select max(id)+1 from mqtt);     IF NEW.id != new_id THEN         SET NEW.id = new_id;     END IF; END// DELIMITER ;  DELIMITER // CREATE TRIGGER IF NOT EXISTS `mqtt_after_insert` AFTER INSERT ON `mqtt` FOR EACH ROW BEGIN     IF NEW.history_enable = 1 THEN         INSERT INTO mqtt_history SET ts=NEW.ts, topicid=NEW.id, value=NEW.value;     END IF; END// DELIMITER ;  DELIMITER // CREATE TRIGGER IF NOT EXISTS `mqtt_after_update` AFTER UPDATE ON `mqtt` FOR EACH ROW BEGIN     IF NEW.history_enable = 1 AND (NEW.history_diffonly = 0 OR (NEW.history_diffonly = 1 AND OLD.value != NEW.value)) THEN         INSERT INTO mqtt_history SET ts=NEW.ts, topicid=NEW.id, value=NEW.value;     END IF; END// DELIMITER ;   CREATE VIEW IF NOT EXISTS `mqtt_history_view` AS SELECT     h.id,     h.ts AS 'ts',     m.ts AS 'ts_last',     m.topic,     h.value FROM mqtt_history h INNER JOIN mqtt m     ON m.id = h.topicid;  MySQL said: Documentation #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS mqtt_before_insert BEFORE INSERT ON mqtt FOR EACH ROW BEGIN ' at line 1 what is problem please help me


Radeon black screen on Ubuntu 16.10 Linux 4.8

I have upgraded from Ubuntu 16.04 to Ubuntu 16.10 (Linux 4.8). After the upgrade, my screen turns and stays black on booting.  I tried the advanced option to run Ubuntu 16.10 on Linux kernel 4.4 and it works.  I know that fglrx is no longer supported since Ubuntu 16.04, so Ubuntu has been using the open source version (xserver-xorg-video-radeon).  My question is that how can it work in Linux 4.4 but not 4.8 (both are Ubuntu 16.10)? and how to solve the issues to make it work on Linux 4.8?  Thank you  Edit 1:  This question is not duplicate as indicated by many. In my case, I can boot on Linux kernel 4.4, but not 4.8.


Why when we run a executable file we need to add ./ ahead?

Say I have a somecommands.sh and I use chmod 777 to make it executable. Why I have to type ./scommand.sh instead of typing just somecommand.sh to run it from its own directory?  Does this make any sense? If it's able to omit, what should I do?  Thanks


I have a few lighting:select fields on my component.  I populate the values of these fields by querying using apex.  I also add the value "All" to each list.  I then update the attribute with the values from my list.  How do I set the first value (which is 'All") as the value of the lightning:select.  Here is my current lightning:select field.  <lightning:layoutItem padding="around-small">         <!-- Create a dropdown menu with options for Section code-->         <lightning:select aura:id="selectGroupNum" label="GroupNum" name="sourceGroupNum" onchange="{!c.handleSelect}">                  <aura:iteration items="{!v.groupnumbers}" var="gs">                       <option value="{!gs}" text="{!gs}" />              </aura:iteration>         </lightning:select>  </lightning:layoutItem>   groupnumbers is an attribute (declared as )   The values in that attribute are, for example,   All,22222,77777,88888  thanks!!!


Why are unidentified people called John Doe?

I observed this many times while reading novels and watching movies. Unknown people are always referred to as a John Doe or Jane doe. I am really curious to know how these terms originated?why John doe and not shane lee or something?


Book about certain humans who gain telepathic powers after finding a meteorite, 3 groups evolve with three different powers

My book consists of a meteorite that gave certain people telepathy/telepathic powers. There are 3 different powers and one of the groups is the strongest. They have telepathic duels to not only hone their powers but determine the strength of their power. It’s set on Earth and only certain people get the power(s). I keep coming back in my mind to the names of each group which are the Kes, Prit and one other, but I may be confusing those names with a Star Trek TNG episode. So I believe one of the groups wants to be in control rather than the ones who are in control. Battles ensue, mostly Mind battles as one group is weaker in telepathy and stronger in telepathic powers. Interesting story, written by an attorney. This has been killing me since I lost the book over 20 years ago.


Prove n is a perfect square if and only if $n^7$ is a perfect square, n $\in$ natural numbers

Proving one way is very simple  If n is a perfect square then  n = $a^2$  $n^7$ = $a^{14}$  $n^7$ = $a^7$($a^7$) which is obviously a perfect square for some integer a.  It's the if $n^7$ is a perfect square then n is a perfect square part that is giving me trouble. I have already tried to get hints from others and the one hint I was given was to write $n^7$ as a product of primes, but I have no clue where to go from there. I believe it can be done using modulus but I honestly have no idea.  Any hints would help thanks.


Hacked site. Fixed. Nailing down the cause

One of the sites I manage was hacked, basically the hack consisted in redirecting users to other external webpage (sort of advertising spam malware).  I have moved the hacked site to a staging site and restored a clean copy of the site. Then I have uploaded Wordpress core to original state, updated to latest plugins.  So now I am focusing on the hacked staging copy, attempting to understand what and how it happened.    I use Wordfence as a defence tool, hence the plugin was already installed when the hack occurred.  Nevertheless I have performed a full scan on the staging copy and got an alert about a user (one of the legit administrators): "wordfence user account created outside of the domain". Maybe the user password was sniffed/stolen somehow, as no brute force attack were reported by Wordfence. I have deleted the user for safety reasons and continued investigation.  Then I have installed and run Sucuri, Exploit scanner and Antimalware plugins: No evidence of malware, apart from lists of possible false-postives in multiple .js files.  Followed instructions in these articles, helpful to restore and clean code         but none of those helped to find where hack is.(verified, headers, footers, wpconfig, htaccess, etc, etc)  Then I have switched to default WP theme and the hack stopped, so I have realised that (apparently) the hack was performed in my theme and child-theme code, therefore I have downloaded both folders copies (good one and hacked) and performed diff on sources (clean vs hacked). Basically minor differences where found in PHP code, but nothing suspicious.   Things to mention: about 30 copies of existing posts appeared in the posts list as drafts, with basically little text in the body (no malicious code in there). Looks like someone created those copies randomly.  The hosting provider performed site and account checks and no malware was found. BTW there was no trace of geo-located logins through my cPanel account nor with FTP accounts other than the town i live.  I have also attempted to debug the hacked staging site in Google Chrome , hoping to find a reference to the offending code, however this didn't work too. Maybe the redirect is not performed with Javascript.... but there are no META refresh tags in the source code of the generated page.  I am aware that latest techniques involve hiding code in images, making the task more difficult.  Conclusion: the site was hacked probably by someone that has stolen secondary administrator password, although I wonder if the hack may be performed by a editor-equivalent user.  What I currently miss: an in depth analysis of the database and sources code.  I wonder what else I could check to understand where did the hack got place and how!   Addenda 1  Any page on the hacked site will load but quickly redirected. to further test this I have opened two Chrome tabs with "view-source:" one from the hacked site and one from the clean site. These are identical.  As I wrote, I have followed the guides linked in this post, so I will explicitly add some other info on what I have done (but this relates to the cleaned site, so it's a bit out of scope here):   Changed WordPress admin user passwords Changed Hosting account user password  Change FTP passwords Change MySQL db user password Updated wp-config nonces/salt Blocked directory-browsing access, via .htaccess   This post differs from  as it focuses on where is the hack and not on what to do to esnure the hack was removed!


How does squaring both sides of an equation lead to extraneous solutions?

Let’s say I have $x = x + 1$, which is a false statment for real $x$; why can I solve for real $x$ when I square both sides of the equation, giving $x^2=(x+1)^2$?


I need to know how I can prove this question.  Prove that not every boolean function is equal to a boolean function constructed by only using And ($\wedge$) and Or ($\vee$)


I'm developing an interface with arcgis and python.  When I have only python, I can make my script interactive using:  S = float(raw_input( 'Please enter the value: '))   I can open and run my script at the python window of the ArcGIS, and the script run, but when I try become this interactive, asking the value, ArcGIS gives me an error:   Runtime error  Traceback (most recent call last):   File "<string>", line 769, in <module> EOFError: EOF when reading a line


I'm trying to check if a jquery object is null  to use it this way  var reminder_history_div = $(".history-container");         if(reminder_history_div)             reminder_history_div.scrollTop(reminder_history_div[0].scrollHeight);   but reminder_history_div is not null or empty its and object ,with some info ,what is the correct way to check if is empty?maybe:  if(reminder_history_div.length > 0)


How do I add fields to an existing custom entity?

I have a custom entity that fieldable. I need to add a field to it, and I want to do it through the UI. The entity was created in a custom module, which I can modify. How can I make the entity fieldable? /**  * Defines the Quiz entity.  *  * @ingroup qwizard  *  * @ContentEntityType(  *   id = "qwiz",  *   label = @Translation("Quiz"),  *   bundle_label = @Translation("Quiz type"),  *   handlers = {  *     "storage" = "Drupal\qwizard\QwizStorage",  *     "view_builder" = "Drupal\Core\Entity\EntityViewBuilder",  *     "list_builder" = "Drupal\qwizard\QwizListBuilder",  *     "views_data" = "Drupal\qwizard\Entity\QwizViewsData",  *  *     "form" = {  *       "default" = "Drupal\qwizard\Form\QwizForm",  *       "add" = "Drupal\qwizard\Form\QwizForm",  *       "edit" = "Drupal\qwizard\Form\QwizForm",  *       "delete" = "Drupal\qwizard\Form\QwizDeleteForm",  *     },  *     "access" = "Drupal\qwizard\QwizAccessControlHandler",  *     "route_provider" = {  *       "html" = "Drupal\qwizard\QwizHtmlRouteProvider",  *     },  *   },  *   base_table = "qwiz",  *   revision_table = "qwiz_revision",  *   revision_data_table = "qwiz_field_revision",  *   admin_permission = "administer quiz entities",  *   entity_keys = {  *     "id" = "id",  *     "revision" = "vid",  *     "bundle" = "type",  *     "label" = "name",  *     "uuid" = "uuid",  *     "uid" = "user_id",  *     "langcode" = "langcode",  *     "status" = "status",  *   },  *   links = {  *     "canonical" = "/admin/structure/qwizard/qwiz/{qwiz}",  *     "add-page" = "/admin/structure/qwizard/qwiz/add",  *     "add-form" = "/admin/structure/qwizard/qwiz/add/{qwiz_type}",  *     "edit-form" = "/admin/structure/qwizard/qwiz/{qwiz}/edit",  *     "delete-form" = "/admin/structure/qwizard/qwiz/{qwiz}/delete",  *     "version-history" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions",  *     "revision" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/view",  *     "revision_revert" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/revert",  *     "revision_delete" = "/admin/structure/qwizard/qwiz/{qwiz}/revisions/{qwiz_revision}/delete",  *     "collection" = "/admin/structure/qwizard/qwiz",  *   },  *   bundle_entity_type = "qwiz_type",  *   field_ui_base_route = "entity.qwiz_type.edit_form"  * )  */


Why does the Resistance not work with Wallace?

Okay, so in Blade Runner 2049 we know Wallace wants to be able to create new Replicants with the ability to reproduce. We also know that the Resistance wants freedom for the Replicants.  Then why is Freysa's movement not helping Wallace to create these new Replicants to develop Replicants' technology even further, and worse, is trying to stop Wallace by asking K to kill Deckard?  As we can see, even the Nexus-9 like K can eventually disobey human orders, so it cannot be because she feared the new Replicants would merely be slaves.


How to disable the Option-Space key combination for non-breaking spaces?

How to disable the annoying Option-Space key combination for non-breaking spaces?  This is very very annoying in Eclipse or the terminal as I often type the non-breaking space instead of a regular one.


How to set up a chinese made game controller in windows 8

I have a chinese made usb game controller with me that I bought in Delhi. In the shop it worked in windows 7. But when I tried it on my Sony Vaio laptop, it is not working.  In the devices section in control panel it shows up as USB Joystick. But when I try to setup the game controller using , it does not show up at all.  Fifa 13 settings also do not show the controller. I have no idea what to do about it.  The manufacturer of the  controller is unknown. It just says SC on it. It looks like a standard game controller like this:    I would appreciate any help in this matter.


How do I make a Blender render look glitchy?

I am trying to make my YouTube intro look glitchy for a tutorial because the tutorial is about how to make glitch art in Gimp. I am using the Blender VSE to do my editing by the way. I was wondering if I could make my intro look like it was corrupted with the video editor or maybe compositing.


Name of SE website names in SEDE don't always match actual SE website names

I see that the name of SE website names in  don't always match actual SE website names. Example:  while the actual SE website name is Cross Validated. Is that intended?


I try to upgrade my Ubuntu 12.04 to 13.04 (or upper why not). I read in release notes that I should first upgrade to 12.10 before 13.04.  But when I use the update-manager -d command, the program purposes to install only the release 14.04. How can I chose the target version ?  (I tried to upgrade to 14.04 but I had an error message:  W:Impossible de récupérer http://extras.ubuntu.com/ubuntu/dists/trusty/main/source/Sources  404  Not Found , W:Impossible de récupérer http://extras.ubuntu.com/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found , E:Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.)


How can one demonstrate that sponsor's fund will be available to the applicant?

I am applying for PLAB visa for UK to sit in PLAB 2 and I am being sponsored by my uncle entirely for the trip.   I was wondering how can I demonstrate that the funds will be available to me during the trip? I mean, shall I make a transfer of the sponsored amount from his bank account to my account  and show the bank document related to transfer  or I don't need to make any transfer but rather simply an affidavit stating that he will bear all costs of my trip will suffice?  Of course, I am going to provide the other documents like his bank statement of 6-7 months, income tax returns of 3 years, relationship proof etc etc.


The counts for questions and answers in the accounts tab all display 0

Last time I check overall counters, there was something strange: While  display:  138 Answers 27,469 Reputation 15 Questions  The overall page  display:  Meta Stack Overflow ♦ Q&A for meta-discussion of the Stack Exchange family of Q&A websites Joined 4 years ago, last seen 2 days ago 228,907 reputation 64 621 1052 badges 0 questions 0 answers Stack Overflow ♦ Q&A for professional and enthusiast programmers Joined 5 years ago, last seen 2 days ago 27,469 reputation 36 112 125 badges 0 questions 0 answers Super User ♦ Q&A for computer enthusiasts and power users Joined 4 years ago, last seen 2 days ago 11,742 reputation 19 64 98 badges 0 questions 0 answers Webmasters ♦ Q&A for pro webmasters Joined 3 years ago, last seen 9 days ago 7,916 reputation 12 45 71 badges 0 questions 0 answers  Notice, all Question and Answer counters display 0.


Why a new string I create in C has ╠ instead of blanks?

When I intialize a string:  char pol[100];  and printf it, I get this weird ╠ sign 100 times. My question is how to intialize a string, print it and get only blanks? Thanks!


Are there dedicated protocols to achieve a private set intersection where one of the set is of small constant size $c$ and the other one of size $n$?  What are the resource complexities of this kind of protocol, in terms of communication and computation?


Converting case of all values in all fields of table using ArcPy & Python?

Does anyone know how to use the .upper() in a stand alone python script so it can be used to change all characters in a table into UPPER case?  I don't want to use the field calculator since I have multiple tables, etc...  I currently am using a cursor to correct mistakes in my tables, but can't figure out the correct syntax to use it to convert all the strings to UPPER case!    The above question would apply equally well when the change of case desired is to lower or title.


Misunderstanding of Monte Carlo Pi Estimation

I am fairly sure that I understand the how Monte Carlo integration works but I am not understanding the formulation of how it is used to estimate Pi.  I am going by the procedure outlined in the 5th slide of this presentation   I understand the preliminary steps.  Pi is equal to 4 times the area of a quarter of the unit circle.  And the area of the top-right quarter of the unit circle centered at (0,0) is equivalent to the integral of the curve that is the top-right quarter of the unit circle in $0<x<1$ and $0<y<1$.    What I don't understand is how this integral is  $\iint I((x^2+y^2)<1)P(x,y)dxdy$  where $P(x,y)$ is uniformly distributed in the unit square around the quarter circle (i.e. it is always equal to 1 if $0<x<1$ and $0<y<1$ and 0 otherwise).  So this would mean that  $I((x^2+y^2)<1)P(x,y)$ is the function that is the top-right quadrant of the unit circle at $0<x<1$ and $0<y<1$ but I do not understand how this is true since the indicator function can only be 1 or 0.  I understand that it is probably written in this way to make Monte Carlo sampling easy (i.e. it is an expectation so just sample from $P(x,y)$ and get the average of the samples applied to $I((x^2+y^2)<1)$) but it just does not make intuitive sense to me why that integral represents the area under that curve.  Could someone provide an intuitive explanation of this.  Maybe show how that integral was derived in a step-by-step way?  EDIT:  I was able to gain a better understanding by relating the expectation to an area.  I will explain it here in case it helps anyone.  First start with relating Pi to the area of the top-right quadrant of the unit circle  $\pi=4\times A_{tr}$  Then we place the top-right quadrant into the unit square.  And under a uniform distribution over the unit square, the area of the circle quadrant is proportional to the probability of obtaining a sample from it.  It follows that the following equality holds  $P(x^2+y^2<1)=\frac{A_{tr}}{A_{square}}$  and $A_{square}=1$ so  $P(x^2+y^2<1)=A_{tr}$  And substituting into the original equation  $\pi=4\times P(x^2+y^2<1)$  and it is also true that $P(x^2+y^2<1)=E[I(x^2+y^2<1)]$ which is equal to the original double integral.  So I understood it by relating the area to a probability then relating that probability to an expectation that is equivalent to the integral.  Let me know if I have made any mistakes.


Cycles Normal Bake does'nt bake indents that are not tapered

I can bake high poly normal maps with a lot of success, however if I try to bake a very simple indentation on a cube with no tapering I get a flat baked normal map, please see the below image to clarify what I mean.   I dont know I am doing wrong because if I scale down the indented face slightly it will bake the normal map correctly, as seen in the image below.


Finding the limit of $x_n=\frac{1+2^2+\cdots+n^n}{n^n}$

I am given $x_n=\cfrac{1+2^2+\cdots+n^n}{n^n}$ and asked to find the limit.  I can see that it looks like  $$\frac{\displaystyle \sum_{k=1}^n k^k}{n^n}$$  I have been trying to use the squeeze theorem. So far, I have $1=\cfrac{n^n}{n^n}\leq x_n$.


I'm a bit newbie in DSP. I'm trying to modulate two signals and create DSB-SC am signal. I choose ring modulator for it. So can anyone show me any working ring modulator circuit?


Careers should allow me to add external (authored but not owned) GitHub projects under "other"

On Careers, when you try to add open source GitHub entries, it shows you repos which you own or are owned by an organization which you collaborate on.    This would be fine with me; that just means that there isn't any fancy fetching of the project details via the API.  However, it isn't possible to add any GitHub projects via the "other" button; it throws the error "Please use our GitHub page (/import/github/88888) to add Github projects.".  Which means that I can only link to a small subset of the projects available on GitHub, even though I can link to almost anything else on the Internet via the other option.  Could the restriction on GitHub links in the "other" form be removed? It could instead be replaced with a non-blocking "warning" sort of thing.  Alternatively, keep a textbox at the bottom of the GitHub repo list where I can enter my own repo.


Filter SharePoint Page based on a User's Logged with javascript

In my company's Sharepoint website, each user account includes Display Name (LastName, FirstName and Initial).  I need a selective View based on the User's name. I'm not using People Picker, so I can't use [Me] for filter by "Created by" or "Modified by". I will have a page where a user may have an approval section, so what I'm looking for is when ever the user appears on the form, display the item as part of the filter view. I'm currently using Sharepoint 2013 soon going to O365 SharePoint. Thank you for your inputs.  How can I do this using Javascript


Not rendering ` *` in comments or titles

It renders correctly in posts ( *), but not above or below.


Gravitational wave solutions to the Einstein field equations

It is well known that general relativity predicts gravitational waves, but I would like to know how. What solution(s) to the Einstein field equations yield something which can be interpreted as a wave(-like) phenomenon?


Fastest way to create String of length 'x' all composed of char 'c' in Java

I have an application that is creating a flat file for a legacy application. Something that is common when creating flat files is having to "pad" empty fields with either zeros or spaces. Today, the way that problem was solved is to have all classes create a string literal for this padded space which is ugly and hard to read and verify the length of a given field.  I want to replace this with a common function like the following:  public String pad(int len, char c) {     StringBuffer sb = new StringBuffer();     for (int i=0; i<len; i++) {         sb.append(c);     }     return sb.toString(); }   However I'm concerned about performance as this function would be used fairly prevalently within the codebase. My mind then gravitated towards wrapping this function in a cache (multi-key hashmap, aka hashtable) but I feel like there has to be a more standard way of doing something like this.  What is the least silly way to accomplish this goal?


Calling out via Named Credential - API vs Token endpoint

I created Named Credentials to authorize the api and got the token. Now i want to use the same end point to get the weatherdetail. when i tried to access same named credential then its showing error as invalid access token.  Token URL   WeatherDetailUrl    Any idea to reuse the named credential else i have to create another remote action and custom setting for this.   Code:  public string gettocken(){   HttpRequest request = new HttpRequest();             Http http = new Http();             request.setEndpoint('callout:WeatherAPI');             request.setMethod('GET');             request.setHeader('Content-length', '0');   HTTPResponse response = http.send(request); Map<String,Object> data = (Map<String,Object>)JSON.deserializeUntyped(response.getBody());         return (String)data.get('access_token'); }   public void weatheCall() {         string token = gettocken();           HttpRequest request = new HttpRequest();             Http http = new Http();             request.setEndpoint('callout:WeatherAPI'+'/TX');             request.setMethod('GET');             request.setHeader('Content-length', '0');             request.setHeader('Authorization', 'Bearer '+token);                  HTTPResponse response = http.send(request);  **///Error {"fault":{"faultstring":"Invalid access token","detail":{"errorcode":"oauth.v2.InvalidAccessToken"}}}**               system.debug(response.getbody());   }


how to close google chrome and have it save your tabs

When my computer shuts down due to automatic updates and I restart it all the tabs I had open are restored. But when I do Ctrl + Shift + Q all the tabs are lost.  Is there a way to have my tabs saved when I manually close Google Chrome? Or should I just kill every single instance of it in the Task Manager or something?


How to identify which variables are collinear in a singular regression matrix?

I have a matrix on which I am performing a zero inflated regression model but it return an error indicating collinearity between some of the variables zinf1 = zeroinfl(count ~ origin + variable + gene, data = count_FGT_free, dist = "negbin") Warning message: In value[[3L]](cond) :   Lapack routine dgesv: system is exactly singular: U[590,590] = 0FALSE  What is the best way to identify which variables are the cause of this?


If point is zero-dimensional, how can it form a finite one dimensional line?

I have extracted the below passage from the wikipedia webpage - Point (geometry):        In particular, the geometric points do not have any length, area, volume, or any other dimensional attribute.      I think the above passage imply\ies that the point is zero dimensional. If it is zero dimensional, how can it form a one dimensional line?     Physics texts sometimes talk of lines' being made up of points, planes' being made up of lines and so forth. Clearly a line segment, thought of as a connected interval of the real numbers, cannot be built as a countable union of points. What axiom systems define the building up of a line from points, or, how do we rigorously define the building of a line from points?       Links:   The section one () of part one of the book "Relativity: The Special and General Theory" seems to be giving Einsteins view on this matter.       Related: History of Euclidean and Non-Euclidean Geometry


I was using Ubuntu GNOME for years and I just tried new Ubuntu 17.10, and I absolutely hate it. Is there an easy way to get default GNOME?   Basically I want to:   Remove dock on the left Add top left hot corner Adwaita Theme


Why is homogeneity of variance so important?

I do not know why testing homogeneity of variance is so important. What are the examples that require homogeneity of variance?


Lagrangian of the Schrödinger equation: Ambiguity in legendre transformation?

The Lagrangian-density (as a function of the "independent fields" $\Psi$ and $\Psi^*$ which leads to the Schrödinger-equation is: $$ \frac{i \hbar}{2}(\Psi^* \dot{\Psi} - \Psi \dot{\Psi^*}) - \frac{\hbar^2}{2 m_0} \nabla\Psi \nabla\Psi^* $$ For this lagrangian density, the Euler-Lagrange-Equations will yield the correct formulas of $\Psi$ and $\Psi^*$. However, calculating the canonical momentum will yield: $$\pi = \frac{\partial L}{\partial \dot{\Psi}} = \frac{i \hbar}{2}\Psi^* $$  And the other way arround for $\pi^*$. This gives me a hard time to calculate the hamiltonian density as a function of $\Psi$, $\Psi^*$,$\pi$, $\pi^*$, $\nabla \Psi$ and $\nabla \Psi^*$. I mean, I want the hamiltonian density to satisfy: $$ H = \pi \dot{\Psi} + \pi^* \dot{\Psi^*} - L $$ But I can satisfy this condition with different choices, since the momentum $\pi$ doesn't differ from the the conjugate field $\Psi^*$. I could choose a hamiltonian that doesn't depend on $\pi$ at all, with every instance of $\pi$ being replaced by $\Psi^*$.   Where is my Mistake? Is there a mistake? If yes, where did the mistake start? Has it allready been wrong to assume $\Psi$ and $\Psi^*$ to be independent.   My maybe most important question here is: Is there an unambigous definition of the link between Lagrangian and Hamiltonian, which will lead to a) the right Euler Lagrange equations, and at the same time to b) the right canonical equations in the hamiltonian-fields formalism?


Recovering Data once a drive has been formated with windows re-installed

Here is the scenario.  A co-worker of mine was performing a migration to windows 7 pro from an xp box.  They made a backup of the general user folders, but managed to miss a few critical folders that are stored elsewere. These folders contained critical year end excel documents.  In their infinite wisdom they chose to format and re-install windows without making a backup image of the entire drive before hand.  I was now given the task of attempting to retrieve the lost documents using any methods known to me.  I've already tried most of the usual programs like get data back, ontrack easy recovery and a few others.  seeing the folder path and file names is not an issue but all of the excel documents I retrieve contain useless machine language.    Does anybody out there know of a program or method to pull some of these files successfully from the ether's of binary space?  Or am I up a creek without a paddle on this one?


Is it possible to use screen sharing without the remote screen being visible?

Let's say I have 2 MacPros:   MacPro at work MacPro at home   I wonder if there is any way I could access my MacPro at work from home using the screen sharing method, without anything being visible on the monitors of MacPro at work.  I am currently able to do the standard screen sharing using my work MacPro from home, and can also normally access its folders etc. My question relates to ensuring privacy of the work content in case someone walks by while I'm using that remote computer. Unplugging the work computer's monitors would not be a fully working solution, as it would only partially resolve this issue.


What is the order of NPCs in terms of acquiring them?

For example, if a player had all the necessary requirements for every NPC that needed requirements without finding them. (For example if you downloaded a custom map with lots of houses and no NPCs and a character with a gun explosives 50 silver has heart crystals etc) what would be the order that they come?  I believe it starts with Guide, Merchant, Nurse but then I'm not sure. If possible could I have the full list (Guide to Cyborg).  P.S If they don't have an order thats OK too but I think they do


Are there any experimental or statistical tests to check deterministicity or stochasticity of a dynamical system?

Are there any simple experimental or statistical tests to check whether a dynamical system is deterministic?


When do we have equality in the third axiom of valuations?

Let $R$ be a ring and $v: R \to \mathbb Z \cup \{+\infty\}$ a map that meets following axioms:   $v(a) = +\infty \iff a=0$ $v(ab) = v(a)+v(b)$ $v(a+b) \geq \min\{v(a),v(b)\}$   I have to show that $v(a) \neq v(b)$ implies $v(a+b) = \min\{v(a),v(b)\}$, but I have no idea where to begin, can anyone give me some hints?


Why did the Area 51 statistics on number of visits per day drop extremely down for Beta sites?

Recently, the number of visits per day on Beta sites dropped extremely down from thousands to units. Here are examples from  and . Is it a bug?  It seems like the values are missing the last three digits.


I'm wondering about instances when it makes sent to use #define and #if statements. I've known about it for a while, but never incorporated it into my way of coding. How exactly does this affect the compilation?     Is #define the only thing that determines if the code is included when compiled? If I have #define DEBUGme as a custom symbol, the only way to exclude it from compile is to remove this #define statement?


Given a random variable $X\sim\mathcal N(0,\sigma^2)$, how can we prove that $E[X^4]=3\sigma^4$? I am having trouble even starting with the proof.


Problem getting charset working when moving database

Short. I am moving a database and webpage. It is now an exact copy but on the webpage it doesnt display the swedish characters correctly. Example VÃƑÂ„RMARE should be VÄRMARE In the old database it is VÃ„RMARE in the new it is VÃƒÂ„RMARE It is an old webpage on an old php version that when i am moving will be a much later php version and a mariaDB. I think it has to do with the collation in the database for the tables but in phpmyadmin 2.11.8.1 i can't se collation for the columns. In the head i define <meta charset="utf-8">  I don't even know where to start troubleshooting. Any suggestions how to troubleshoot would be amazing for me.


I am getting this message (attached) that says:     An ActiveX control on this page is not safe.  Your current security   settings prohibit running unsafe controls on this page. As a result   this page might not display as intended.   I have ArcGIS version 10, and installed it on Windows 7, 32 bit.  What should I do?


I've got a scene where a sun is shining through a couple of windows:  I want to make it so that there is a light ray effect between the windows and where the light hits, like this:   Here's what my lighting setup is:


class Bar{         int barNum=28;     }      class Foo{         Bar myBar = new Bar();         void changeIt(Bar myBar){   //Here is object's reference is passed or the object is passed?             myBar.barNum = 99;             System.out.println("myBar.barNum in changeIt is " + myBar.barNum);             myBar = new Bar();  //Is the old myBar object destroyed now and new myBar is referring to something new now?             myBar.barNum = 420;             System.out.println("myBar.barNum in changeIt is now "+myBar.barNum);         }         public static void main(String args[]){             Foo f = new Foo();             System.out.println("f.myBar.barNum is "+f.myBar.barNum);    //Explain f.myBar.barNum!             f.changeIt(f.myBar);    //f.myBar refers to the object right? but we need to pass reference of the type Bar in changeIt!?             System.out.println("f.myBar.barNum after changeIt is "+ f.myBar.barNum);    //How do you decide f will call which myBar.barNum?         }     }   Explain the questions mentioned in the comments please     The output of the code is      f.myBar.barNum is 28     myBar.barNum in changeIt is 99     myBar.barNum in changeIt is now  420  f.myBar.barNum after changeIt is 99


Proving that $\sum\limits_{n=1}^∞\frac{a_n}{s_n^2}$ converges

Let $a_n>0\;$ ($n=1,2,...\,$) with $\sum\limits_{n=1}^\infty a_n$ divergent and $s_n =\sum\limits_{k=1}^na_k$. For all $n \ge 2$,  prove that $\sum\limits_{n=1}^∞\dfrac{a_n}{s_n^2}$ converges.    Proof:  For all $n \ge 2$, we have $\dfrac{a_n}{s_n^2} \le \dfrac1{s_{n-1}} -\dfrac1{s_n}$ and $\sum\limits_{n=2}^{\infty} \dfrac{a_n}{s_n^2} \le \sum\limits_{n=2}^{k} \left(\dfrac{1}{s_{n-1}} - \dfrac{1}{s_n} \right)$.  Now $\sum\limits_{n=2}^k \left (\dfrac{1}{s_{n-1}} - \dfrac{1}{s_n} \right) = \dfrac{1}{s_1} - \dfrac{1}{s_k}$ converges to $\dfrac{1}{s_1}$. This follows because $\sum\limits_{n=1}^\infty a_n$ diverges and $\dfrac{1}{s_n} \to 0$ as $ n \to \infty$. Thus, by the comparison test, $\sum\limits_{n=1}^{\infty} \dfrac{a_n}{s_n^2}$ converges.  Is this proof  correct?  $\dfrac{a_n}{s_n^2} \le \dfrac1{s_{n-1}} -\dfrac1{s_n}$  Proof: Let $n \le 2$  $ s_{n-1} \le s_{n}$ $\Leftrightarrow \frac{1}{s_{n}} \le \frac{1}{s_{n-1}} $          $ \Leftrightarrow \frac{1}{s_{n^2}} \le \frac{1}{s_{n}s_{n-1}}$          $ \Leftrightarrow   \frac{a_{n}}{s_{n^2}} \le  \frac{a_{n}}{s_{n}s_{n-1}} = \frac{s_{n} - s_{n-1}}{s_{n}s_{n-1}}$          $\Leftrightarrow  \frac{a_{n}}{s_{n^2}} \le \frac{1}{s_{n-1}} - \frac{1}{s_{n}} $


How would I import/copy a material from Unity into Blender?

I have a material in Unity that contains a normal map, height map, emmission, occlussion, and detail mask but when translating it over into blender it seems to use a completely different system. Would anyone know how to get it to work? Thanks so much!


Merge two numeric arrays in one using php

I have 2 arrays   array:2 [▼          0 => "folder1/first"          1 => "folder2/second" ]  array:2 [▼          0 => "scheme.pdf"          1 => "example.pdf" ]   I have to merge these arrays, so I get 1 array with such construction:  array:2 [▼          "folder1/first" => "scheme.pdf"          "folder2/second" => "example.pdf" ]   I assume, that I have to use these commands array_map, array_merge_recursive As I understood, second command is functional only with non-numeric keys. Then, all numeric keys in both arrays have to be converted to strings.  Can someone tell me or even show a part of code how can I merge these two arrays according to my needs.  The example is simple, but I never did this one before. I did search for the answer, but all of them were too complicated to understand.


How can I get a UK transit visa when my US student visa has expired?

I'm in US on a student visa, currently expired; my last entry was 3 years ago. I  do have an approved I-797 (H1-B). Can I travel through London without a transit visa? BTW, the layover is 3 hours and I don't need to change the terminal.   I tried applying for transit visa on  but, with my expired student visa on my passport, it doesn't let me go to next step.   Since I can't transit without visa and I need a visa for the UK connection, what should I do?


Why do we use squared deviations to compute the SD, given that it amplifies the effect of outliers?

Suppose I have the following hypothetical data:   One thousand times value 15 (i.e., 15 occurs 1000 times) and a single outlier value - 115 (i.e., 115 occurs just once - an outlier)   Thus the mean is: $$((15 \times 1000) + 115)/1001 \Rightarrow (15000 + 115) / 1001 \Rightarrow 15.1$$  The standard deviation is: $3.16$.  Whereas, $Σ|x - x̄| / N$ (i.e., using the absolute deviation instead of squaring) I get: $0.20$.  I think the later value is more appropriate, but I have read in many places that one of the reasons we take the square for calculating the SD is because we want to give more weight to outliers. But I have always thought that outliers are supposed to be ignored!  What is the benefit of using the standard deviation formula (with squared deviations) which amplifies the effect of outliers (as compared to using absolute deviations)?


Javascript, function changes variable value inside of it, but outside of it the variable remains unchanged?

All it is, is a simple function that takes two variables and "merges" (concats) them. Code below:  function merge(var1, var2) {      var1 += var2; }  var a = 'a';  var b = 'b';  merge(a, b);  console.log(a);   When I call a console log inside the function, it works as planned, and prints 'ab', however on the outside of the function if I console log a, the expected result is of course 'ab' but it prints 'a'. I understand this is because a function is an asynchronous event therefore it is run after the console log outside is run however I haven't the slightest clue how to go around this. All help is appreciated.


When a ball is tossed straight up, does it experience momentary equilibrium at top of its path?

This question has been asked many times all over the Internet and answers can be found on places such as yahoo and ask.com, but I'm not satisfied with those answers and I don't trust the validity of those places.  This seems like a more appropriate place to ask.  So, here's my train of thought and I would like to ask you if you think I'm right or wrong.  Even though most of the answers point to the fact that the ball does not achieve equilibrium because the force of gravity is constantly acting upon it, thus causing an acceleration, I still think there's a moment of equilibrium and here's why:  When the ball is traveling up, it's accelerating towards the ground and eventually reaches a point at which its speed reaches 0.  At this moment, isn't the reason the speed is 0 is due to the fact that net force is 0?  The force that made the ball travel in the upward direction was canceled out by the gravitational force.  So, the sum of forces at that brief moment is equal to 0, otherwise the ball would be moving.  I don't think gravity is the only force acting on the ball at that moment, since the throwing force was acting on it as well, until both canceled each other out for that brief moment.  Am I right or wrong?


Question mark characters on HTML if I use UTF-8 and weird characters on SQL data if I use ISO-8859-1

I'm making a page with latin accents like á, ã, ç, and others. This site pulls data from a SQL database. I'm using this on the <head>: <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"/> With this header the HTML accented characters are fine, but the SQL data is being displayed as Ã§Ã£instead of ão, and if I change the charset from ISO-8859-1 to UTF-8, all the HTML accented characters are displayed by a � (question mark) and the SQL data shows accents just fine. Is there any way to fix it besides escaping either all the HTML characters or the SQL ones?  PS: I've already tried mysql_set_charset('utf8'); and SET NAMES utf8, neither worked to me.


I need to build an app to analyze some raster layers in QGIS. I thought it was possible to just write code in python (2.7.6) (IDLE) and let it automatically open QGIS, load some layers, do a distance matrix, export that and load this file with python and use that information in the app. Is something like this possible? I have a mac running OSX10.9.1, using python 2.7.6 because I constantly got errors when using python 3.


How to clone the complete HDD except of one big Partition to a smaller hdd?

I have to replace a 250GB HDD with a 128GB HDD. There is a boot-loader partition witch loads several OS on other partitions. There is also a 140GB partition with important but not needed data on it. At least I am not able to temporarily backup this data elsewhere.  I tried several clone-tools like clonezilla. But I found none which would be able to clone a bigger HDD to a smaller HDD if I don't want to clone every partition.  Last but not least, I am not able to shut down the system for longer then 3 hours, hopefully this is enough for 110GB...


I'm trying to vertical align some element without destroying the responsivness in a row here is my code :    #navbar{     height: 80px;     border: 1px solid red; }  #logo{     width: 40px;     height: auto; } <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

         TEXT         TEXT         TEXT         TEXT

TEXT RIGHT

     Here is the expected output :    I'm using Bootstrap 3  I would also like to vertical align inside a navabar :     .navbar-header{     height: 80px; } <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
         <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">             Toggle navigation                                                </button>

TEXT

TEXT


In the graphs below, The only assumption which seems off pretty much clearly is the normal distribution. Although the top left residual plot shows that it is homoscedastic but the top right one has a funnel shaped with difference in standardised residual as 0.2. Can we still say the plot follows homoscedascity?


Documents written in TeX (no LaTeX, no Plain TeX)

LaTeX and Plain TeX are formats for TeX and they ease creating document. But can we create documents using only TeX? I couldn't find any pure TeX sample.


Is it okay to always use SELECT * when retrieving data from MySQL?

Is it okay to always use SELECT * even if you only need one column when retrieving data from MySQL? Does it affect the speed of the query or the speed of the system? Thanks.


The limits of the sum of functions whose limits do not exist

I have a homework problem that I'm not sure how to start. I tried Google for similar examples it didn't turn up anything. Could someone tell me the name of the concept to look into? The problem is as follows:  Show by example that $\lim_{x\to c}f(x) + g(x)$ can exist even if both $\lim_{x\to c}f(x)$ and $\lim_{x\to c}g(x)$ do not exist.


Is there an additional resistance given by a specific "protection" than a general one?

If I add Protection 4 to an armour piece,will it reduce the same amount of damage as an armour piece with a "specific" protection such as Fire Protection?


Change default console position in CodeBlocks

It's so annoying to drag it over and over again. How to change default position of a console?


I currently have Ubuntu 13.10 installed, with a separate partition for / and for /home. The question I have is can I resize the /home partition from the Ubuntu installation or is it better to boot live usb?


Why do we say there are four fundamental forces in the Standard Model (if gravity is included)?

In my physics textbook (and in ) it is stated that there are four fundamental forces: electromagnetism, strong, weak, and gravity.  But Wikipedia tells me that there is a unified description of electromagnetism and the weak force (), and that this model is generally accepted in a way that eludes e.g. Grand Unified Theories which would unify the three non-gravity forces.  So why don't we say that there are three fundamental forces instead?


How to change computer name so terminal displays it in Mac OS X Mountain Lion?

When I setup my computer I named it "Scott's MacBook Pro". And so when I go to System preferences->Sharing, it says Scott's MacBook Pro there as my computer name. However, opening up a terminal gives me this prompt:  Last login: Sun Oct  7 11:02:49 on ttys003 new-host-4:~ scott$    When I login to Backblaze, they list my computer as "new‑host‑4_2012_10_07". Did I not fully set my computer name? Should I use the traditional hostname command?


I am used to use the numeric keypad for navigation (e.g. : [KP7] -> Start, [KP1] -> End, [KP4] -> Left, etc... ). I am also used to use it for selection (e.g. : Shift+[KP7] -> Select from cursor position to beginning of line, Shift+[KP1] -> Select from cursor position to end of line, etc...)  With the keyboard configuration installed with Ubuntu, though, Shift+[KP7] prints the character "7", Shift+[KP1] prints "1", etc...  How can I change this so that Shift+[KP-key] is not mapped to [key], but to Shift+[KP-key] ?


This may be a stupid question but I just want clarification about the use of the name of this rule. Well, most of the time what I see is L'Hospital's Rule, like in Baby Rudin and many other places. Occasionally, though, I do see what seems to be the "more correct" form L'Hôpital's Rule (like in Wikipedia). I believe the latter is the correct version, because the rule was indeed named after Guillaume de l'Hôpital. (see the ).   But why is the former version so commonly used (much more than the latter I think)?  The only reason I can imagine is the popularity of the English language. However, though hôpital does mean hospital in English, isn't it totally ridiculous to translate Règle de L'Hôpital into L'Hospital's Rule (just because the corresponding English word hospital happens to make sense)? What's more, how are we supposed to pronounce L'Hospital? In an English way or in a French way? In the first place, I think it is confusing to combine a French article with an English word, and in the second, it is even more confusing to use l' in place of le/la since in English the h in hospital isn't even mute. Anyway L'Hospital makes little sense to me..


Showing that this function is infinitely differentiable

Show, that the function  $$ \mathcal E: \mathbb R \to \mathbb R:  x \mapsto \begin{cases}  \exp(-\frac{1}{x^2}), & \text{if x $\neq$ 0}, \\  0, & \text{otherwise},  \end{cases} $$  is infinitely differentiable and that $\frac{d^k\mathcal E}{dx}(0) = 0$ for all $k \in \mathbb N$.  We just introduced differentiation, so the solution should not contain very advanced techniques to solve this. We also got the tip it should be done by induction.  @fgp I found that it is $$f^{(n)}(x) = P_n \left(\frac1x\right)e^{-\frac1{x^2}}$$ where $P_n$ is a polynomial with integer coefficients.  I could also do the initial step for the induction:  For $n=1:$ $$f'(x) = \frac2{x^2}e^{-\frac1{x^2}} = P_1 \left(\frac1t\right) e^{-\frac1{x^2}}$$ where $P_1(x)=2x^2.$  I am stuck at the induction step: $f^{(n+1)}(x) = $.....


I started learning Python today, and I came up with the idea of creating a program that prints all the prime numbers from 0 to 10 000. I managed to make my program print out all primes until 251, at which point it stops printing out numbers. Why does it do this?  Here is the code:  for numberToCheck in range(2,10000):     divider = 2     while numberToCheck > divider:         if numberToCheck % divider is 0:             break         else:             divider += 1     if numberToCheck is divider:         print(numberToCheck, "is a prime number.")


Why does my scene preview look so different than the render?

In my 3d scene view, with display mode set to "textured", my texture looks fine. But when I render it the texture stretches all over the place. All my settings are at default, just a single sun object for lighting.


How could I show that if $a$ is an integer, then $a^3 \equiv 1, 0, 6 \mod 7$?

I've literally tried everything including proofs by cases. If I were to try a an odd integer, then I would get $8k^3 + 4k^2 + 8k^2 + 4k + 1$, which obviously couldn't convert to a $\mod 7$, and I'm honestly not sure what I can do! Does anyone here have any tips?  Note, this is a soft question.


Knowing that ${\bf Re}\,c>0$, demonstrate that $|c+\sqrt{c^2-1}|\geq 1$.

knowing that ${\bf Re}\,c>0$, demonstrate that $|c+\sqrt{c^2-1}|\geq 1$, with equality holding only when $c$ is a real number in the interval $(0,1]$.       Hint. First check that ${\bf Re}\,(\bar{c}\sqrt{c^2-1})\geq0 $ for every $c$ under consideration.   \begin{align} & |c+\sqrt{c^2-1}|\geq 1 \\[10pt] \Longleftrightarrow \quad & |c+\sqrt{c^2-1}|^2\geq 1^2=1 \\[10pt] \Longleftrightarrow \quad & (c+\sqrt{c^2-1})(\bar{c}+\sqrt{c^2-1}) \geq 1 \\[10pt] \Longleftrightarrow \quad & |c|^2+2\operatorname{Re}(c\sqrt{c^2-1})+c^2-1\geq1 \text{?} \end{align}  This is good, what did I do? How can I use the hint? Thank you very much...


How to make a .PNG that shows one image on a black background and a different image on a white background?

This image was put up by the NHL on Twitter. In the feed this is the image, when you click on it, a different one pops up. When you open it in Photoshop, the whites are very bold and the greys/blacks are pretty transparent. I was wondering how this is done.


I'm trying to shrink my btrfs 900Gib HDD down to 500Gib so that I can transfer it using clonezilla to my new 500 Gib SSD.  I thought that I could just shrink down the partition using gparted, but it fails with this error:  GParted 0.30.0 --enable-libparted-dmraid --enable-online-resize  Libparted 3.2 Shrink /dev/sda2 from 931.01 GiB to 406.71 GiB  01:20:34    ( ERROR )  calibrate /dev/sda2  00:00:01    ( SUCCESS )  path: /dev/sda2 (partition) start: 1050624 end: 1953519615 size: 1952468992 (931.01 GiB) shrink file system  01:20:33    ( ERROR )  btrfs filesystem resize 1:426467328K '/mnt'  01:20:33    ( ERROR )  Resize '/mnt' of '1:426467328K' ERROR: unable to resize '/mnt': No space left on device  ========================================   This also occurs when I try and resize from 470GiB -> 433GiB. I don't believe that it can run out of space on the disk as there is 497GiB.   This was performed on an unencrypted home folder from the kubuntu 18.04.01 live usb.  EDIT 0: Output of sudo filesystem show /mnt (Which is where I have   /dev/sda2 mounted) kubuntu@kubuntu:~$ sudo btrfs filesystem show /mnt Label: none  uuid: 029c3c88-8edb-4da0-a741-5d912950e2e1         Total devices 1 FS bytes used 406.61GiB         devid    1 size 473.68GiB used 461.10GiB path /dev/sda2


Does a MCMC fulfilling detailed balance yields a stationary distribution?

I guess I understand the equation of the detailed balance condition, which states that for transition probability $q$ and stationary distribution $\pi$, a Markov Chain satisfies detailed balance if $$q(x|y)\pi(y)=q(y|x)\pi(x),$$  this makes more sense to me if I restate it as:   $$\frac{q(x|y)}{q(y|x)}= \frac{\pi(x)}{\pi(y)}. $$  Basically, the probability of transition from state $x$ to state $y$ should be proportional to the ratio of their probability densities.


Finding a function which is distance $1$ from $x^2$ along its normals

So I recently thought of a problem, which I have tried to solve many ways but couldn't. It's very simple to describe... Find the function which is distance $1$ from parabola $y=x^2$ along its normals. .  This one of the things I've tried... This function would get the corresponding $x$ value on the function we want to find from an $x$ value on curve $y=x^2$. The inverse would give the corresponding $x $ value on $x^2$ for a given $x$ value which would make it trivial to determine the $y$ value. $$ f(x)=x+\sin(\arctan(2x)) $$ This can be resolved to this... $$ f(x)=x+\frac{2x\sqrt{1+4x^2}}{1+4x^2} $$ However I don't know how to get the inverse of this function.


Let $\mathcal{P}(S)$ denote the power set of $S$. Why is $\mathcal{P}(S) = 2^S$?  I know that the power set of $S = \{x,y,z\}$ is  $$\mathcal{P}(S) = \{\{\}, \{x\}, \{y\}, \{z\}, \{x, y\}, \{x, z\}, \{y, z\}, \{x, y, z\}\},$$  so how does this relate to $\mathcal{P}(S) = 2^S$? I cannot understand why  $$\mathcal{P}(S) = \mathcal{P}(\{x,y,z\}) = 2^{\{x,y,z\}} = \{\{\}, \{x\}, \{y\}, \{z\}, \{x, y\}, \{x, z\}, \{y, z\}, \{x, y, z\}\},$$  I assume it is somehow related tot he fact that the set $\{x,y,z\}$ has 3 elements, and $\mathcal{P}(\{x,y,z\})$ is a set of $2^3 = 8$ sets.


How to define alias only for some directory?

I want to define some alias iex="iex -S mix" only for one directory - this alias should work only when I cd'ed to this directory. Another requirement - this functionality should be placed inside this directory, hook file or something other, because I want to share this directory as a git repo.  How can I do that?


Show that the order of 5 mod $2^k$ is $2^{k-2}$

I have that $5^{2^{k-2}}\equiv 1 \mod 2^{k}$ but I am unsure how to show that $2^{k-2}$ is the least integer that has this property.  I thought perhaps I could show that $2^{k-2}|\operatorname{ord}_{2^k}(5)$ since I already have (from above) $\operatorname{ord}_{2^k}(5)|2^{k-2}$ but I have been stuck with this.  Any help appreciated :)


Is it possible to generate a leveled character in borderlands 2?

In borderlands 2 for steam,is it possible to generate a character at a specific level and story mission point for the standard multi-player campaign?   Reason: I played borderlands 2 some years ago fully by myself. Then I played it again with my brother. Now that I'm married I started playing it with my wife but we are proceeding slow. A friend then also got interested and wants to play with me and we work on catching up with my wife to play 3 of us. And now his girlfriend also wants to join and I'm really tired of playing the story from start. Is there a way for her to generate a character that is a good fit with ours? Means the levels and the story mission fit?   I noticed that the game files are all saved locally on the computer. So I guess it should be possible to manipulate them in a way that they think the character is a normal one?


Stream YouTube video in Full HD resolution on iOS Safari

I have an iPhone X and an iPad Pro, both running iOS 11. I notice, when streaming a YouTube video in iOS Safari, the video resolution is limited to a maximum of 720p.  For e.g., when watching  video on Safari on macOS, I am able to stream it in the maximum available resolution i.e. 1080p. But in Safari on iOS, the output is limited to a maximum of 720p.  Is this behaviour configurable in YouTube settings or Safari? I notice, the same video can be played back at full resolution in the Videos app in iOS, when downloading it on a Mac and transferring it on iOS device.  I do not wish to use the YouTube app for iOS.


How to modify a node in TikZ when using beamer's overlays

I have a matrix initialized with some colors and no values. With the help of beamer's overlays I wanted to modify the matrix in the next step, changing some of the colors and inserting some values. I attach a figure, so you can get a clear picture of what I want to achieve (on the top you have the empty matrix, and on the bottom the matrix after it has been filled in):    I have tried to overwrite the whole matrix with a new one, but that has several problems:   Text like "Some label" gets overwritten and looks thicker in the second slide. If I need to do N steps, instead of just 2, rewriting the whole matrix every time is really tedious.   I know I am not really aware of all the possibilities in TikZ and Beamer, so there might something there that I am missing, and that would allow me to do what I want. Does anyone know what can I do in order to update the matrix nodes between the overlay steps?


Why are constant terms irrelevant in Lagrangians in quantum field theory?

We all have been told when we were kids that constant terms in Lagrangians are irrelevant because when doing classical dynamics the Euler Lagrange equations involve derivatives of the Lagrangians so the constant terms just vanish.   This explanation is solid. I want the same in quantum field theory. For illustration I shall consider two real scalar fields with a mexican hat potential. Using dimensional regularization the action is  $$ I[\phi_1,\phi_2]=\int d^dx\bigg(\frac{1}{2}\partial_{\mu}\phi_1\partial^{\mu}\phi_1+\frac{1}{2}\partial_{\mu}\phi_2\partial^{\mu}\phi_2+\frac{1}{2}\mu^2(\phi_1^2+\phi_2^2)-\frac{1}{4}\lambda^2(\phi_1^2+\phi_2^2)^2\bigg) $$ where both $\mu$ and $\lambda$ are positive. The potential above is $$ V(|\phi|)=-\frac{1}{2}\mu^2|\phi|^2+\frac{1}{4}\lambda^2|\phi|^4 $$ has a minimum at $$ |\phi|=\frac{\mu}{\lambda} $$ I pick to expand around $$ \phi_1=\frac{\mu}{\lambda}\qquad\phi_2=0 $$ redefining the parameters $$ \eta=\phi_1-\frac{\mu}{\lambda}\qquad\xi=\phi_2 $$ and re-expanding the lagrangian $$ I[\phi_1=\frac{\mu}{\lambda}+\eta,\phi_2=\xi]\equiv I'[\eta,\xi]= \int d^dx\bigg(\frac{1}{2}\partial_{\mu}\eta\partial^{\mu}\eta-\mu^2\eta^2+\frac{1}{2}\partial_{\mu}\xi\partial^{\mu}\xi-\mu\lambda(\eta^3+\eta\xi^2)-\frac{\lambda^2}{4}(\eta^4+\xi^4+2\eta^2\xi^2)+\frac{\mu^4}{4\lambda^2}\bigg) $$ Now, this action goes in a generating functional. $$ \mathcal{Z}[J_{\eta},J_{\xi}]=\int[d\eta][d\xi]\exp(iI'[\eta,\xi]+i\int d^dx\,\bigg[J_{\eta}\eta+J_{\xi}\xi\bigg]) $$ I am concerned about the constant piece in the action $$ \Delta I=\int d^dx\,\frac{\mu^4}{4\lambda^2} $$ This integral above is infinite even in $d=4-2\epsilon$ dimensions! so, in  which sense can we ignore constant terms in the Lagrangian such as above in quantum field theory, and why?


I want to log my public ip to a file using cron. Something like this: 2021-05-17T01:11:46 99.99.99.99 2021-05-17T01:12:46 99.99.99.99 2021-05-17T01:13:46 99.99.99.99  Here's what I've cobbled together: * * * * * { date +%FT%T | tr "\n" " "; curl https://ipinfo.io/ip -s ; echo "" ; } >> /home/mario/logs/pubip.log  It works* in at sh prompt but once I put the asterisks in front and put it into crontab -e I get the following error: /bin/sh: 1: Syntax error: end of file unexpected (expecting "}")  OS: Ubuntu 20.04.2 LTS *There's gotta be a more elegant way to handle the formatting. What I frankensteind feels pretty awkward.


Is it possible to cite title with apacite?

How can one, if possible, cite the title of a bibtex item on Latex using the package apacite?


Very Basic Question I really Need Help With

Like I said, basic....  I have a series of simple illustrations and graphs on physical paper.  Now I need those graphs/ images made to look professional digitally for worksheets, books, online, etc.  Who do I take the physical sheets of paper to and how do I get a hold of such people?  I have some pressing deadlines.  Thanks!


Extracting paragraphs from a gobble of html

How can I extract relevant information from the gobble of words I got from these gobble of html:  >
Inspect, diagnose, maintain, and operate test setups and equipment to detect malfunctions.\n

Record and interpret test data on parts, assemblies, and mechanisms.\n

Confer with engineering personnel regarding details and implications of test procedures and results.\n

Adjust, repair or replace faulty components of test setups and equipment.\n

Identify required data, data acquisition plans and test parameters, setting up equipment to conform to these specifications.\n

Key Skills:

Critical Thinking - Using logic and reasoning to identify the strengths and weaknesses of alternative solutions, conclusions or approaches to problems.

Active Listening - Giving full attention to what other people are saying, taking time to understand the points being made, asking questions as appropriate, and not interrupting at inappropriate times.

Speaking - Talking to others to convey information effectively.

Operation Monitoring - Watching gauges, dials, or other indicators to make sure a machine is working properly.

Reading Comprehension - Understanding written sentences and paragraphs in work related documents.

Quality Control Analysis - Conducting tests and inspections of products, services, or processes to evaluate quality or performance.

Complex Problem Solving - Identifying complex problems and reviewing related information to develop and evaluate options and implement solutions.

Monitoring - Monitoring/Assessing performance of yourself, other individuals, or organizations to make improvements or take corrective action.

Judgment and Decision Making - Considering the relative costs and benefits of potential actions to choose the most appropriate one.

Time Management - Managing one\'s own time and the time of others.


I am trying to send some Latin Extended (ISO-8859-2) characters form a LandingPage registration Form, but from $mail->Body all the "ăîâşţ" ends in the E-mail Message as "ÄƒÃ®Ã¢ÅŸÅ£". Do I have to declare the Encoding on PHPMailer somewhere?  The awkward thing is, that all of Form data gets stored in the MySQL (INNODB-latin1_swedish_ci) with those  "ÄƒÃ®Ã¢ÅŸÅ£" character, and they parse ok "ăîâşţ", when called by the BackEnd WebPages.  What am I doing wrong?


I want to make a hole in the street using blender. I've tracked my footage and set up a scene. I could cut a hole in a plane and put a cylinder under that, but then the plane would be visible, and it would obscure part of the street. My question is: how do I make it so that the hole looks like it's in the street (without showing anything below the street) without having a plane obscure part of the street?


Importing schema to new or different tablespace

Is there a convenient way to import a schema into Oracle 11gR2 using a single new or different tablespace than where the data originated?  As an example, I have exported BLOG_DATA from OLDDB, where all user data is stored in the USERS tablespace.   On NEWDB, I would like to import the BLOG_DATA schema, but store the user objects in the BLOG_DATA tablespace, created specifically for this user.   I have created the BLOG_DATA user, created the BLOG_DATA tablespace and set it as the default tablespace for that user and added an appropriate unlimited quota.  CREATE TABLESPACE blog_data DATAFILE SIZE 1G;  CREATE USER blog_data IDENTIFIED BY secretpassword DEFAULT TABLESPACE blog_data QUOTA UNLIMITED ON blog_data;  GRANT connect,resource TO blog_data   The schema was exported from OLDDB with something like  exp blog_data/secretpassword@OLDDB file=blog_data.dmp    After reading Phil's excellent answer below, I found myself wondering:   Since data has no other place to go than the default tablespace - the only tablespace the user has a quota on - will this effectively force imp to put all user objects in that default tablespace?  imp blog_data/secretpassword@NEWDB file=blog_data.dmp   Would this then place the entire blog_data schema in the blog_data tablespace on NEWDB? Is there any reason why this wouldn't work or that I would run into problems with certain objects etc?  update:  I did a quick test and found this to be the case. Imp places objects in the default tablespace for that user, provided it can't place it in the original tablespace (eg. the tablespace does not exist). Full explanation:   Still, I suppose that using Data Pump like Phil suggests might be the preferred option.


How do you render background image through transparent object?

I tried rendering an object that has a mixed glass and diffuse shader and also a background image but after adding a holdout shader in image 2 to make the object transparent to see the background image the glass shader becomes darker.   Image 1:   Image 2 :   Without transparent shader:  Nodes for background image:  With transparent shader :


A malware in Mozilla, An URL opens automatically?

Some times when I open a site in Mozilla, a URL that starts with vadabzauefrpph4xraz8ewblhsbsbxkfq7sx8d9me4nuemgnx2yt5cnyfzzlxek.com will replace with the site's URL, What should I do to solve this problem?


Prove $x_n$ converges IFF $x_n$ is bounded and has at most one limit point

I'm not entirely sure how to go about proving this so hopefully someone can point me in the right direction. The definition I have for a limit point is "$a$ will be a limit point if for a sequence $x_n$ there exists a subsequence $(x_{n_k})$ such that $\lim_{k\to\infty} (x_{n_k})=a$".   In the forward direction if $x_n$ converges to a value $a$ then every convergent subsequence of $x_n$ must also converge to $a$. I'm not entirely sure where else to go from here. Intuitively I know that what I'm trying to prove must be true since if $x_n$ converges to $x$ then there exists an $N\in\mathbb{N}$ such that $\forall n\geq N$ we have infinitely many terms satisfying $\forall \varepsilon >0\Rightarrow x-\varepsilon<x_n$ which implies that $x$ is a limit point. I'm not entirely sure how to rule out a second limit point. Would it be sufficient to show that if $a$ and $b$ are limits of a convergent sequence $x_n$ then $a$ must equal $b$?  In the backwards direction if $x_n$ is bounded and has only one limit point then we know that there exists only one point $x$ such that we can find infinitely many terms satisfying $\forall \varepsilon >0$ $\left | x_n-x\right |<\varepsilon$ which implies that $x_n$ converges to $x$.   I'm quite concerned I am proving this incorrectly since I don't think I am using any facts about subsequences although they are mentioned directly in the definition for a limit point.


I'm writing an app that supposed to copy a bunch of files from one place to another. When I'm using TFileStream for the copy it is 3-4 times slower than copying the files with the OS.  I also tried to copy with a buffer, but that was too slow aswell.  I'm working under Win32, anyone got some insights on this matter?


Software which opens PSD files correctly on Ubuntu?

I am stuck in trying to find a software which can render PSD files properly under Ubuntu. I have tried GIMP and Krita but they both have problems with that - especially the clipping mask functionality.  Is there a working solution for Ubuntu?


'how we make a car' or 'how do we make a car'?

I don't know the difference between how we make a car and how do we make a car.   I searched on the internet; there are examples for both but I do not understand in which cases they would each be used.


Sci-fi short story about overpopulation, time travel and battle of the sexes

I recall a short story I read many years ago about a soldier or scientist being sent forward in time to see if man survives overpopulation and if we do, how we solved the overpopulation problem. The answer was a literal "war of the sexes". The protagonist even has to drop his pants at one point to prove he's a man so some guy guarding a library (?) won't shoot him.  I can't remember the title or the author's name but I believe it was in a short story collection about time travel.


How is HCF (c, d) = HCF (d, r), where c = dq +r (by Euclid's division lemma)?

I read this in a math textbook, stated as obvious fact. I cannot wrap my head around why this works. I understood the division lemma, and also got the algorithm to work: but the proof of why the algorithm works, just said "because of the equation" that I put in the question.  Could you please elaborate on why it works?


Mac OS X 10.6.4, MacBook Pro, Apple Magic Trackpad.  The trackpad is unresponsive. Right-clicking on the Bluetooth icon in the menu bar shows me gray text that says "Bluetooth not available".  I don't see a system preference item in which to fight with this, but I don't see anything relevant.


Does this seem to be an error or something else? - Upgrading Ubuntu 13.04 to 13.10

I did try the upgrade through Terminal using the below given command:  sudo do-release-upgrade   Then it started downloading the required files. In between I could see the below lines also (mostly):  Err http://archive.ubuntu.com raring-backports/multiverse Translation-en_US                                                            Err http://archive.ubuntu.com raring-backports/universe Translation-en_US                                                              Err http://archive.ubuntu.com saucy/main Translation-en_US                                                                             Err http://archive.ubuntu.com saucy/multiverse Translation-en_US                                                                       Err http://archive.ubuntu.com saucy/restricted Translation-en_US                                                                       Err http://archive.ubuntu.com saucy/universe Translation-en_US                                                                         Err http://archive.ubuntu.com saucy-updates/main Translation-en_US                                                                     Err http://archive.ubuntu.com saucy-updates/multiverse Translation-en_US                                                               Err http://archive.ubuntu.com saucy-updates/restricted Translation-en_US                                                               Err http://archive.ubuntu.com saucy-updates/universe Translation-en_US                                                                 Err http://archive.ubuntu.com saucy-backports/main Translation-en_US                                                                   Err http://archive.ubuntu.com saucy-backports/multiverse Translation-en_US                                                             Err http://archive.ubuntu.com saucy-backports/restricted Translation-en_US                                                             Err http://archive.ubuntu.com saucy-backports/universe Translation-en_US                                                               Err http://archive.ubuntu.com saucy-security/main Translation-en_US                                                                    Err http://archive.ubuntu.com saucy-security/multiverse Translation-en_US                                                              Err http://archive.ubuntu.com saucy-security/restricted Translation-en_US                                                              Err http://archive.ubuntu.com saucy-security/universe Translation-en_US   Can anyone tell me what could be the issue?


Please do not "lie" that the Community user "modified" the question

If the Community user bumps a question, It says It has modified it:    However, It did not really modify the question, It rather just visited it. The word "modified" is a bit unfortunate IMHO because it suggests that something changed in the question or its answers, which is not true. I therefore suggest that we look for another word which would be more descriptive and less confusing. Some come to my (and others') mind:   visited, poked, bumped, promoted, dredged up, brought up, ...   (Actually, "Bumped" is even officially used now:  and .)  I'm not a native speaker and maybe someone find a better word. To me, visited sounds the best, but that may be only me. It makes sense, too, since Community really just visits the questions, with the site-effect of them getting bumped. It shouldn't confuse anybody.  Actually, it can be harmful in some sense, since , and it is interesting to know that this has happened, so that more people can check that the edit makes sense. You therefore can't simply ignore all "edited by Community" messages. (Thanks to Monica Cellio for pointing it out.)  (Remark: I know this has been questioned before (    ) but I think it has never been requested to change the action title to something more descriptive. If I'm wrong, I apologize.) (The "lying" it the question title is meant as a sarcasm)


Google exact search when a search phrase contains minus (-)

The Google search engine explains that      When you put a word or phrase in quotes, the results will only include pages with the same words in the same order as what's inside the quotes.   Note: Only use this if you're looking for an exact word or phrase, otherwise you'll exclude many helpful results by mistake.   Example: "imagine all the people"   I want to find exact phrase containing "-include" meaning a usage of g++ compiler. It's strange, but all search engines ignore my minus sign despite I put the phrase in double quotes in my query "g++" "-include" option  Why? How to find what I actually want?


Redirecting 301 deleted files to a file or a web page?

I want to redirect using 301 status some selected "purged" files which could be jpg/pdf/zip etc files to keep backlink juice when linked from external sites.  For a web page I redirect them using 301 to another "page-deleted.htm" page.  But what about the files? Should I redirect using 301 to another image/file or the same "page-deleted.htm" page?


Object set as "visible" isn't actually visible in the viewport... (Blender 2.83.5)

For some reason, despite all the three icons are active, this circle mesh isn't showing up in the viewport under the "Layout" tab, but it shows up in render and in any other workspace, such as "Shading", I can't figure out why and this way I can't pose his eyes, how can I fix this?


TeX uses scaled point as its minimal unit. At least it's said so in the TeXbook:  TeX represents all dimensions internally as an integer multiple of the tiny units called sp. 65536 sp = 2^{16} sp = 1 pt.  And later on,  TeX actually does its calculations with integer multiples of 2^{-16}...  BUT, compile this and you will see, that 0.00000762939453125 starts to be distinguishable from zero, which means that it's TeX's minimal unit. (0.00000762939453125 is exactly 2^{-17}) \line{\hskip 0pt plus 16383.99999fil and now?\hskip 0pt plus 0.000007629394531249fill} \line{\hskip 0pt plus 16383.99999fil and now?\hskip 0pt plus 0.000007629394531250fill} \bye  So, what is the real minimal unit: 2^{-16} or 2^{-17} ?


What's involved in restoring a Linux system that's completely hosed?

I am very nearly sold on switching from macOS to Linux as my main operating system. But there's a very important thing I can do with macOS that I can't find how to do with Linux: one-click recoverable, full system backups.  With macOS, I just set up Time Machine, and I don't have to worry about anything. No matter what I change on my system, its all backed up. And when my system becomes totally unusable, all I have to do is have a recovery OS--could be a partition on my HDD, could be a USB stick--format my drive and put everything back. In less than 90 minutes, I'm back in business.  Linux doesn't seem to have any equivalent. The best I can find is Déjà Dup, the  has not been updated since 2013, and doesn't even describe how to set it up. There's also Cronopete, but it has no user documentation at all.  So what do Linux users do to solve this problem?


Two avocadoes may look the same size from the outside, but the one with a smaller seed will have more flesh and may thus be more desirable. So how do I tell which avocadoes have smaller seeds?  (Another fruit I can think of where the seed size can fluctuate significantly is the durian. Perhaps the trick for avocadoes and durians is similar.)


What applications would room temperature super conductors have?

I've heard that a room temperature super conducting material would be a major discovery. How likely is this within the next century and if discovered what would be possible?


Appending values in dictionary using for loop

dic={} l=[] for i in range(0,2):     c=input("Enter your name").strip()      for i in range(0,3):         d=int(input("Enter Your marks: "))         l.append(d)     dic[c]=l    print(dic) print(l)   Output:  {'alex': [36, 54, 78, 57, 78, 94], 'harry': [36, 54, 78, 57, 78, 94]}   Expected Output:  {'alex': [36, 54, 78], 'harry': [57, 78, 94]}   Where I am doing wrong?


Spells attacks on Wizard Spells and saving throws

Sorry for the noob question but i am still learning So far i have been a level 3 wizard in one of the campaigns. Every time i use a damaging spell the DM tells me to roll for attack spell (to see if hit or not). Now as i was reading about what my spells do, some say to roll for a spell attack and some do not, those who do not say to roll, do they hit?  Example: Fire bolt Vs Poison Spray, both are cantrip wizard spells


I need to move (shift) an ext4 partition on my disk in a headless Linux machine, like this:  Before: [######### Partition #########][- Free space -]  After: [- Free space -][######### Partition #########]   This task is straightforward when using GParted, however any advices I've found for headless hosts consist of installing a VNC server and Gparted with all of its dependencies. I can not believe that there is no unix-way console tool for moving partitions around or a manual for doing the same with dd or something similar. Any thoughts please?


What is the Stack Exchange site to ask questions regarding Microsoft Windows?

There is a site dedicated to Linux/Unix () and one for Ubuntu () as well. I have a question about Windows 7 command line regarding PostgreSQL. In which site shoud I post that?


number of ways to put N labelled balls in N labelled boxes so that labels don't match?

I have N distinct balls labelled 1 to N, and associated N boxes labelled 1 to N. How many different ways can I place all balls into the boxes (one ball per box) so that there is no ball-box label matching, i.e. ball $i$ is not in box $i$, for all $i=1,...,N$?  Thank you in advance.