When is the latest I can complete the Wild Card quests?

Let's say I'm working the various quests in New Vegas, and am currently in the early stages of both  and the  quests.  What is the latest point in The House Always Wins that I can safely complete the Wild Card series, assuming I want to take control New Vegas?  (Note: I do plan on finishing off as many side quests as possible before going this route, so time is not exactly a factor here -- I just want to be sure I don't go so far down The House Always Wins that I'm unable to do the Wild Cards.)


Sci-fi story about a TV that works across time

I read a story a long time ago, I think in a short story collection.  The main idea was that a TV had been invented that could be set to any place and time in the past, and you could see what happened there and then.  Anybody know what it was?


Why don't the results of testing $H_0 : \beta = 0$ and $H_0 : {\rm cor}(X,Y)=0$ agree?

I have 4 IVs in my model that directly effect the DV. The  of the correlation & regression analyses showed that:  IV1&DV:   Pearson Correlation Coefficient: insignificant  Regression Beta&t values: significant  IV2&DV:  Pearson Correlation Coefficient: significant  Regression Beta&t values: insignificant  IV3&DV:   Pearson Correlation Coefficient: significant  Regression Beta&t values: significant  IV4&DV:   Pearson Correlation Coefficient: significant  Regression Beta&t values: significant  No multicollinearity problem was detected and also all the regression assumptions have been perfectly met!  Why the results of the regression analysis turned out to be completely opposite of correlation analysis for IV1 and IV2?!! Why they're being contradictory?! Does it make any sense? Is it acceptable? TQ.


How can I force a program to open in a specific desktop?

I've created an environment where I use 3 different desktop configurations, but every time I reboot, I have to manually open each program in that target desktop to make it look like it did before.   So, I'd like to write a .bat file that can get all my programs running in their appropriate desktops. I'm wondering if something like this is possible:  "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -desktop:2 "C:\Program Files\My\Other\Software.exe" -desktop:3 ...etc.   Obviously, this example is not real, but I hope there's something similar. I don't care if it's hacky :)


python installation error. python:i386 unmet dependency

$ sudo apt-get install python2.7 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these:  The following packages have unmet dependencies: python:i386 : Depends: python2.7:i386 (>= 2.7.5-1~) but it is not going to be installed               Depends: python-minimal:i386 (= 2.7.5-5ubuntu3) but it is not going to be installed               Depends: libpython-stdlib:i386 (= 2.7.5-5ubuntu3) but it is not going to be installed python2.7 :   Depends: python2.7-minimal (= 2.7.12-1~trusty1) but it is not going to be installed               Depends: libpython2.7-stdlib (= 2.7.12-1~trusty1) but it is not going to be installed  E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   Earlier I had used sudo apt-get autoremove 'python.*' command and now I am getting installation and dependencies issues while downloading Python 2.7.  I need to download Python 2.7.


UK visa refused under 3.6 a of Appendix V (deception)

I got a refusal under 3.6 a of Appendix V due to failure of checking the previous denial that I had 8 years ago. I changed the passport 2 times since then and have travelled to many countries and while the application form had so many things to check, I just did not pay proper attention to the boxes I checked. Please check the below refusal letter.   Now, I want to appeal for this ban to be cancelled, what can I do? I am of Asian national based in Spain with long term residence permit for the European Union.  Here is the copy of refusal letter, thank you so much for your comments!


Why are there multiple Chrome instances running even though I only have one window (only one tab) open?

Possible Duplicate:          In Windows Task Manager it seems that I have multiple Chrome processes running, even though I only have one Chrome window open.   How is this possible? I always thought each open program represented one process.


How to write an if else statement in Aura

I tried to write out the aura if statement but I am getting stuck if someone can explain it to me in detail. thank you  <aura:if isTrue="{!lessthan(v.Tl.time, v.Tl.End_Date_Time1__c)}">                            </aura:if>


How to get an "overall" p-value and effect size for a categorical factor in a mixed model (lme4)?

I would like to get a p-value and an effect size of an independent categorical variable (with several levels) -- that is "overall" and not for each level separately, as is the normal output from lme4 in R. It is just like the thing people report when running an ANOVA.  How can I get this?


Way to get elementaryOS's picture-in-picture on Ubuntu

With version 5, elementaryOS introduced a picture-in-picture feature, allowing one to select any screen area and confine it to a floating rectangle above other windows. (Demoed )  Is it possible to get this feature in Ubuntu?  EDIT: Just to further specify: I'm not looking for a full-screen window or a separate workspace in a picture-in-picture. What I'm looking for is elementaryOS's implementation of picture-in-picture, which allows picking any area within a window.


cannot subscribe to close event of window in IE

I want to subscribe to the close / beforeunloadevent of a window:   public OpenParameters() {              if (this.openProcessStrategyWindowHandle) {                 this.openProcessStrategyWindowHandle.focus();             }              if (this.openParametersWindowHandle) {                 this.openParametersWindowHandle.focus();                 return;             }              this.generateUrlParametersWindow();             this.openParametersWindowHandle = this.$window.open(this.openParametersUrl + "?"                 + this.eveUtilsService.createGuid(),                 "parametersWindow", "width=1280,height=750,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,copyhistory=yes,resizable=yes");             // event for closing window/tab             this.openParametersWindowHandle.onbeforeunload = () => {                 this.CloseParametersInfo();             };         }   This works fine with Chrome but not with IE11 I also tried subscribing via  this.openParametersWindowHandle.addEventListener("beforeunload", () => {                 this.CloseParametersInfo();             });   which results on IE in following message: "Das Object untersützt die Funktion oder Eigenschaft "addEventListener" nicht"  I found a might related topic   but none of the suggested fixes helped. any ideas?  Update: what confuses: after setting and hitting a breakpoint in the code above, the code seems to work.


The aim of the regression line is to find the line which error is minimum. This error can be calculated by suming all the squares of the difference between the value predicted by the line and the real one. However, some say the average point must belong to line, is this true? Because, if it were that way, that line may not minimize the error.


Strange rules lawyering question: Do you need to hold a weapon to attack with it?

Do you need to hold a weapon to attack with it? Now obviously the answer is yes, but there's more to it. In an argument with a player about the action economy of switching weapons, I was looking for a ruling in the PHB and came upon a strange realization: I don't think the book ever explicitly states you need to have a weapon in your hand to make an attack with it. This is, potentially, a most bizarre exploitation of RAW, but I want to be sure: Can you find an excerpt in the rules that says you need to hold a weapon to attack with? I'm ruling out versatile and two-handed since all they prove is that some weapons need hands to be used. I don't know what result I hope for more XD


naturalearth sqlite db not loading into qgis 2.2

I downloaded the naturalearthdatabase in sqlite-format (, the downloadlink goes to ), but qgis 2.2 (running under win 7 64bit) does not load it ("unexpected error"), but I can open the db in sqlitequi. Any ideas whats wrong?


Find all complex matrices $A$ such that $n\operatorname{Tr}(AB) = \operatorname{Tr}(A)\operatorname{Tr}(B)$ for all $B$.

Consider a bilinear form $f(A,B) = n\operatorname{Tr}(AB) - \operatorname{Tr}(A)\operatorname{Tr}(B)$ defined on $M_n(\mathbb{C})$.  I need to find the set $U^\perp$ of all matrices $A$ such that $f(A,B) = 0$ for every $B \in M_n(\mathbb{C})$, or, more specifically, find $\dim(U^\perp)$.  Other than the zero matrix I can't find any other general matrix. So $\dim (U^\perp) = 0$ I'd assume?


What font is this website using? (graphicdesign.stackexchange.com/questions/ask)

I was wondering if you could tell me what font you are using on this site? I am currently looking for a new font for my company's brochures and I love this one - it's nice and clean, professional and yet has personality. Thank you for your help!


Convert Amount (currency ) field into words

Example:  1345  One thousand three hundred and forty five.


how to delete temp files which is created by google chrome in linux?

I want clean up cache file or row data which is created by the Google chrome during playing video's form youtube as well as other site task. During cleanup I want to protect my history and cookies.  Where does Google chrome store cache data in Linux?  Is it possible that we manually delete cache files of Google chrome? But during delete that files we at least save our browsers history.   Note:- I am using standard account privilege.


Why doesn't $\int_C \mathbf{F}\cdot d\mathbf{r}$ always vanish?

Stokes Theorem tells us that when $S$ is a piecewise-smooth surface that is bounded by a simple, closed, piecewise-smooth boundary curve $C$ with positive orientation and $\mathbf{F}$ is a vector field whose components have continuous partial derivatives on an open region in $\mathbb{R}^3$ containing $S$, then we have $$\int_C\mathbf{F }\cdot d\mathbf{r}=\iint_S \mathrm{curl }\ \mathbf{F}\cdot d\mathbf{S}.$$  The Divergence Theorem states that when $E$ is a simple solid region, $S$ is the boundary of $E$ with positive (outward) orientation, and $\mathbf{F}$ is a vector field whose component functions have continuous partial derivatives on an open region that contains $E$, then we have  $$\iint_S\mathbf{F}\cdot d\mathbf{S}=\iiint_V\mathrm{div }\ \mathbf{F}dV .$$  Since $$\mathrm{div}\ \mathrm{curl}\ \mathbf{F}=0,$$ then why doesn't $\int_C\mathbf{F }\cdot d\mathbf{r}=\iint_S \mathrm{curl }\ \mathbf{F}\cdot d\mathbf{S}$ always vanish?  For by the divergence theorem we have $$\int_C\mathbf{F }\cdot d\mathbf{r}=\iint_S \mathrm{curl }\ \mathbf{F}\cdot d\mathbf{S}=\iiint_V\mathrm{div }\ \mathrm{curl}\ \mathbf{F}dV =0.$$  But clearly this is not always true.   Where am I going wrong here?     Is this true only when $S$ encloses another region $V$? Does $V$ need to be bounded to apply the divergence theorem?  For some reason I feel like this is not the case, but I am not sure. Is there an obvious physical interpretation to the above result?   Many thanks for your consideration.  This has stumped me for quite some time and I would be very grateful to anyone who could shed some insight.


Prove that:  The family of $S$ of univalent functions on the unit disc with f(0)=0, f'(0)=1 is a normal family.  I'm pretty sure i have to do it with Zalcmans Lemma:  a family of analytic functions on the unit disc with f(0)=0 are not normal if and only if there exists: (1) a sequence $(z_n)$ converging to $z_\infty$ (2)a sequence of positive reals $(p_n)$ convering to zero (3) a sequence of functions in the family such that $f_n(z_n+p_nx)-f_n(z_n)$ converge on compact subsets to the entire identity function.  I know there are more complicated ways to treat the problem, but it is not supposed to be solved with advanced theory like the growth theorem/distortion theorem.  Please be so kind not to post a solution right away, but instead hint me how to solve the problem. Thank you very much for your time.


There should be possibly infinite ordered triplets for the following question.

If L.C.M of three natural numbers $a, b, c$ is $p^2q^2r^2$(where $p, q, r$ are different prime numbers) such that sum of all possible triplets (a,b,c) are given by $m^n$ (where $m$ and $n$ are prime), then find the value of ($m-4n$)  This is how solved. As the L.C.M of the given numbers is $p^2q^2r^2$, this means that none of the numbers a,b,c can have $p^0 orp^1,q^0orq^1,r^0 or r^1$ as their factors. But they can have $p,q,r$ as their factors in powers of two or higher. For example if $a=p^2q^5r^7$,$b=p^7q^2r^3$ and $c=p^9q^8r^2$ then the L.C.M of a,b,c is $p^2q^2r^2$. Hence there should be infinite solution i.e. infinite ordered triplets. But the author has provided with the following solution: L.C.M. $p^2$ can be obtained from the numbers a, b, c in the following combinations. $$p^2 p^2 p^2    ⇒    1 arrangement$$ $$p^2 p^1 p^2    ⇒    3 arrangement$$ $$p^2 p^1 p^1    ⇒    1 arrangement$$ $$p^2 p^2 p^0    ⇒    3 arrangement$$ $$p^2 p^1 p^0    ⇒    6 arrangement$$ $$p^2 p^0 p^0    ⇒    3 arrangement$$ $$———————————––—                       19 arrangement$$ So if L.C.M. is $p^2q^2r^2$ total combinations are = $19^3$ = $m^n$ ⇒  m – 4n = 7. This is where I am confused and unable to comprehend as why the solution is provided  in such a way, because in the above arrangements L.C.M will not be $p^2q^2r^2$.


Why is the square root of a sum not equal to the square root of each its addends?

Example: Let's presume one was attempting to isolate m below:  A common mistake would be: $k^2 = m^2 + n^2 \to k = m +n$  Even though: $k^2 = m^2 + n^2 \to k \neq m +n$  If you apply a square root to both sides of the equation, you will have an inequality.  Why is this true?


I have noticed many bikes for sale that are made of mostly one material, such as aluminum, except for the fork which is carbon. I know carbon is very expensive so the manufacturer must be trying to use a little bit in the best possible place. So, if for a certain price point they can choose only one part to be carbon, why the fork? What are the advantages of carbon forks?


I have a lovely little boy that just passed the 1 year mark. I am blessed with such a child and am enjoying being a dad everyday. Now my second child is underway and while I am happy that they are very little years apart. I am also worried with the attention this new child will need.   Every child is different and I cannot predict how my second born child will be, it will (by experience) need alot of attention and dedication.   What is the best way to handle this situation, where my attention towards my firstborn child is not neglected and that he will accept his new sibling in the best manner possible. I don't want him to feel left out.  Is it bad parenting also that I am worried about this 4 months before this situation will even arise?


What is the difference between \empty and \@empty?

I want to elaborate a command that would print differently simple differential dx and multidimensional differential d^3x. For this purpose I invented the command \dif with one optional argument. It is defined as follows:  \newcommand{\dif}[1][]{%     \def\@tmp@a{#1}%     \ifx\@tmp@a\@empty         [b1]\mathrm{d}     \else         [b2]\mathrm{d}^{#1}{} \!     \fi }   Here [b1] and [b2] are added for debugging. Branch [b1] is intended for the case when the command is called without any argument, e.g. \dif{x}. Second branch [b2] should be taken in case where, e.g., the command \dif[3]{x} is used to print d^3x. The definition, shown above, seems to work fine. However, if \@empty is substituted with \empty first branch is always ignored.   The command \empty is explained in The TeXBook, so that initially I tried it for this code and only occasionally reverted to \@empty having remembered a post at this site where it was said that the  \end command of Plain TeX is redefined to \@@end in LaTeX.     Can somebody explain what is the difference between \empty and   \@empty in LaTeX and, perhaps, suggest a better solution for my   problem?


If a series converges absolutely, then any sub-series also converges absolutely?

If a series converges absolutely, then any sub-series also converges absolutely.   1) is it true? 2) is there a simple "one line" argument to prove it?


How do I solve this problem on maximizing sum modulo a given number?

I am stuck in solving this math problem. I need to maximize  $$ (a_1\cdot x_1 + a_2\cdot x_2 + a_3\cdot x_3 + \dots + a_n\cdot x_n) \mathbin{\mathrm \%} b. $$ Here $a_i$ and $b$ are given and $x_i$ can be any nonnegative integer.


How to get the program to read a set of integers from an input file. The goal is to store them in an array and then display greater values than input. Also, Also, create a method called greater_than_n() that accepts an integer array and an integer n. The purpose of this method is to display numbers greater than n  import java.util.Scanner; import java.io.*; public class Lab5 // File Name{ public static void main(String[] args) throws IOException {     Scanner userInput = new Scanner(System.in);     File Integers = new File("Integers.txt");      Scanner inputReader = new Scanner(Integers);       String line = inputReader.nextLine();      System.out.print(line);      inputReader.close();       System.out.print("Enter an Integer: ");      int userAction = userInput.nextInt();        System.out.println("The numbers in the input file that are greater than " + userAction + " are: ");      for (int index = 0; index < Integers.length; index++)      {         if(Integers[index] > userAction)         {             System.out.print(Integers + " ");         }     } }   }


Can the Dispel Magic spell be Readied to counter an opponent's spell?

When playing as a spellcaster, is it valid the use of the Ready action to prepare Dispel Magic to counter a spell cast by an opponent? In the same vein, when declaring said action, do I have to specify which spell slot I will use when Readying the Dispel Magic spell? If that is the case, does this tactic nullify an opponent's spell? I get the impression that this is basically turning Dispel Magic into a spell with a casting time of "1 reaction". Is my reading of the rules accurate?


So this is my controller which create new event and save event.  in this i have hardcoded page redirect link  '/a3I/o'. i dnt want this to hardcoded. I want to do something like it will redirect to that tab without harcoded code or this will redirect to new record page which i am creating in this code(t1).   public class ERFormController {     public Event_Request__c t1{get;set;}      public ERFormController(ApexPages.StandardController controller)     {         t1 = new Event_Request__c();     }      public PageReference save()     {         insert t1;          ApexPages.AddMessage(new ApexPages.Message(ApexPages.Severity.CONFIRM,'Record Created Successfully.Thank you!'));         PageReference pg = new PageReference('/a3I/o');         pg.setRedirect(true);         return pg;       }


I'm shooting with a Nikon 810, and my night shots often have a strong moire when I export them from Lightroom at 640x640 (optimized for Instagram).   This photo was shot at f2.8, ISO 4000, 15 seconds with a Nikkor 17-35mm. Does anyone know why this is happening??


What happens to a person taken over by an Agent once the agent voluntarily leaves?

What happens to a person (both their consciousness in the Matrix, and their body) once they are take over by an Agent program and then the Agent leaves, if nothing traumatic happened to the Agent while "wearing" them?   The only examples I remember canonically can not shed any light on this since the person was damaged/killed while being taken over (helicopter pilot and truck driver in The Matrix).  I'm only looking for canonical examples.


When should I create a service or a utility function?

I had this question in mind along all the last week: When I should create a service or an utility function?  In the Drupal Core we have both Services and Utility functions, but I can't find the distinction between them (when I need to create a service or when I need to create an utility function).  I will take as example the  module where I have the  class.  <?php  namespace Drupal\modules_weight\Utility;  class InternalFunctions {    public static function prepareDelta($weight) {     $delta = 100;      $weight = (int) $weight;      if ($weight > $delta) {       return $weight;     }      if ($weight < -100) {       return $weight * -1;     }      return $delta;   }     public static function modulesList($force = FALSE) {     $modules = [];     $installed_modules = system_get_info('module');      $config_factory = \Drupal::service('config.factory');      if ($force) {       $show_system_modules = TRUE;     }     else { modules.       $show_system_modules = $config_factory->get('modules_weight.settings')->get('show_system_modules');     }      $modules_weight = $config_factory->get('core.extension')->get('module');      foreach ($installed_modules as $filename => $module_info) {       if (!isset($module_info['hidden']) && ($show_system_modules || $module_info['package'] != 'Core')) {         $modules[$filename]['name'] = $module_info['name'];         $modules[$filename]['description'] = $module_info['description'];         $modules[$filename]['weight'] = $modules_weight[$filename];         $modules[$filename]['package'] = $module_info['package'];       }     }     uasort($modules, ['Drupal\Component\Utility\SortArray', 'sortByWeightElement']);      return $modules;   }  }   In this class I have two static functions but they are both utility functions or prepareDelta() is an utility function and modulesList() should be in another class and have a service?  The only difference that I found at this time is that inside the namespace Drupal\Component\Utility (where you will see a lot of utility fucntions) none of them use inside a service and usually a service use another services inside (I don't have review all the services to validate this).  So, when I should create a service or an utility function?


Is there a Max function in SQL Server that takes two values like Math.Max in .NET?

I want to write a query like this:  SELECT o.OrderId, MAX(o.NegotiatedPrice, o.SuggestedPrice) FROM Order o   But this isn't how the MAX function works, right?  It is an aggregate function so it expects a single parameter and then returns the MAX of all rows.     Does anyone know how to do it my way?


Which one is correct: "bachelor's and master's degrees", or without apostrophes?

I understand that I have to use apostrophes with bachelor's degree and *master's degree. Here is a good reference   However, after talking with native English speaker, I'm not sure what happens when I have both degrees in the same sentence:  I know this is correct: "He earned his bachelor's degree and master's degree from ...". However, can I have a shorter form as "He earned his bachelor's and master's degrees from ..."? Note the apostrophes 's and plural for degree.  Is it the same thing if the other degree is doctoral, for example "He earned his bachelor's and doctoral degrees from ..."


Is 128 the only multi-digit power of 2 such that each of its digits is also a power of 2?

The number $128$ can be written as $2^n$ with integer $n$, and so can its every individual digit. Is this the only number with this property, apart from the one-digit numbers  $1$, $2$, $4$ and $8$?   I have checked a lot, but I don't know how to prove or disprove it.


Updating github repository to match local

I have deleted several unnecessary files in my local and also changed the location of some files. I want my github repository to match what I have locally.   I have previously use command:  git rm   To remove specific files, but I wonder if there is a more efficient way to do it.


GCD( LCM(a,b) , LCM(a,c) ) = LCM(b, GCD(b,c)) , why?

I was doing this problem on , and as I was trying to simplify the formula, I arrived at the above conclusion. But now that I think of it, I actually arrived at that conclusion by mistake. Here are my workings. $$ GCD\bigl(( LCM(a,b) , LCM(a,c)\bigr)  \\\\=> a \times GCD\left( \frac{b}{GCD(a,b)} , \frac{c}{GCD(a,c)} \right) \\\\=> \frac{a \times GCD(b,c)}{GCD\bigl( GCD(a,b) , GCD(a,c)\bigr)} \\\\=> \frac{a \times GCD(b,c)}{GCD(a,b,c)} \\\\=> \frac{a \times GCD(b,c)}{GCD\bigl(a, GCD(b,c)\bigr)} \\\\=> LCM\bigl(a , GCD(b,c)\bigr) $$ I suspect that the third line is wrong since $GCD(hi,jk) != GCD(hj) \times GCD(ik)$. I know the final formula is correct since my submission was accepted. So what is the correct way to arrive at the conclusion?


I have created two LXC containers on my host Ubuntu 16.0.4 one is Ubuntu and the other is Centos7 .I am trying to copy file from Centos7  using scp command to Ubuntu as root user it is asking for root password while I entered correct password it’s showing permission denied.May I know the possible reason why I am getting denied?


add space 5 times at the beginning of each line in a text file

I am looking for a command line or bash script that would add space 5 times before the beginning of each line in a file.  for example:  abc   after adding spaces 5 times        abc


Trigonometry Minimum value using A.M. and G.M.

If $f(x)=(\sin x + \csc x)^2+(\cos x + \sec x)^2$, then what is the minimum value of $f(x)$?  My Try : Now upon using Arithmetic Mean is greater than or equal to Geometric Mean I got minimum values for the following expressions as :-  $\sin^2x+\csc^2x=2$ and also, $\cos^2x+\sec^2x=2$   But surprisingly, the answer I get after opening the square and using this is $8$ while my book shows its $9$. Someone please tell me what I'm doing wrong.


Are there any secrets or tricks to flying for free (or almost free)?

I've heard unverified stories of people who wait around at airports until there is a vacant spot on a flight where they want to go, and then get on for insanely cheap. I would also imagine that it is theoretically possible to hitch a flight with a non-commercial plane where you want to go. I'm thinking international fares in the double digit range.  Of course, the kind of travel I'm imagining would not be comfortable or convenient. I'm thinking things that might be borderline "stowaway", but legal and ethical. I don't mean flight search websites, promotional deals, or other obvious ways of flying cheap.  Does anyone have any experience or ideas on how I could travel like this?


Google Search Console "Fetch and Render" renders modal popups. What's the impact on SEO?

Google's Search console allows you to "Fetch and Render" your web pages.  As you can see in the image below it's (unfortunately) clever enough to render the popup modal.    Is this likely to impact SEO negatively, since most of the viewport that Googlebot sees is blocked?  Should I add a check for the Bot's user agent to avoid showing the popup modal?


a client is requesting what are the bandwith requirements for remote desktop

I have about 10 users from this particular customer. He's a cheapo so he's trying to get by with the least he can. What is the minimum a Windows 2008 remoteapp should be per user? Is there any guidelines to go by?  There is no file copying going on, just a remoteapp.  Any ideas?


How to find signup date for Gmail account?

I would like to find out the month and year I signed up for my current Gmail account.


A rock connected to one end of string in circular motion gets released.. and what happens?

I know this is a basic question, but question:  A rock is connected to one end of string and is in circular motion with the center being the other end of the string. Now the string gets released at some point. How do we know the direction in which the rock is going to fly?


Why don't single row circuits work on a breadboard?

I am fairly new to electronics, and whilst messing around with a simple LED circuit on my breadboard I noticed that when connect my resistor and LED on two separate rows, the LED lights up as it expected. However when I connect them on the same row, the LED doesn't light up. I tired this other rows and checked all the connections to see if there was a problem. Can someone please explain to me why the LED doesn't light up when I try to connect everything up on the same row?


Windows 7 Search Parameters For Searching File Contents

Is it possible to search the contents of files from the Windows 8/7 explorer search? Without the search timing out? There are no parameters when you click "file contents" at "Search again in" at the bottom of the results.  There are other clickable parameters that show when you start typing, such as datemodified: and size:(large, small, huge, etc...).  Bring back the Windows 2000 search box (still available on XP via registry hack :-))


Is there a word that describes someone with a light footprint?

I need a word to describe someone who lives a happy, purposeful life without needing a lot of resources. The words "light footprint" and "low maintenance" come to mind, but I'd like a word/adjectival phrase that doesn't sound so modern.


I have an HTML file with a <canvas> element and I am trying to get the mouse coordinates in the click event. I am using this code:  secondCanvas.addEventListener('click', function(e) {     console.log(e.pageX) }, false);   When I click on the top left point I get in console 500~ number, not zero... what do I need to do to get the coordinates of the mouse on the canvas?


Is shuffling data really necessary for training?

I don't mean if we had a dataset where if sequentially sampled, the labels would be [1111122223333]. In this case, the network learns to predict everything as 1, then 2, and so on and it's impossible to learn.  I mean: Assume you have Imagenet 2012 dataset. You shuffle it once. So now the labels and the images are shuffled. Since the dataset is huge, can the network really remember the previous epoch's predictions and overfit?  OR, I shuffle data 5 times and use each ordering in epochs 1,2,..5, and then at epoch 6 I use the Shuffled data#1 again.  Everybody talks about the importance of shuffling but I never read anything that addresses these problems.  BTW, this question was prompted by me using a database where accessing data sequentially is a lot faster than random access. If I knew that even a pseudo-shuffling helps, it would save me 6-7 hours per training epoch.


Tomcat HTTP Status 500 - java.lang.NullPointerException with SQL JDBC errors

I have an NPE on a Windows 2008 R2 vm guest that seems to be rather annoying and preventing people from using the vm. What's odd is that this wasn't occurring before until I migrated it from Hyper-V to VMware vSphere. It's supposed to load a webapp called 'license' from an MSSQL database called 'license' and apparently didn't function at first because Java was no longer present (had v1.6 and now v1.8). Nevertheless, I installed JRE 1.8.0.66 for use with Tomcat, set the environment variables in a command prompt and then manually started one of the many Apache versions on this host (I just took over this network). This seemed to resolve the issue for the staff and I never heard anything until after a maintenance window did a restart of the host and obviously I didn't make the environment variables persistent.  Now I get an NPE when accessing the host locally, with the following (I can also provide the SQL logs too - which BTW are telling me that a login failed for user 'sa' when I can log in either in mixed or SQL mode with sa just fine. What do you guys suggest I try here? (NPE below and I did look at line 43 of the offending java file listed which just has 'ResultSet rs =null;'  Thx, Brian  type Exception report  message java.lang.NullPointerException  description The server encountered an internal error that prevented it from fulfilling this request.  exception  org.apache.jasper.JasperException: java.lang.NullPointerException     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)     javax.servlet.http.HttpServlet.service(HttpServlet.java:727)     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)   root cause  java.lang.NullPointerException     org.apache.jsp.licenseAdmin_jsp.displayLicenses(licenseAdmin_jsp.java:43)     org.apache.jsp.licenseAdmin_jsp._jspService(licenseAdmin_jsp.java:325)     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)     javax.servlet.http.HttpServlet.service(HttpServlet.java:727)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)     javax.servlet.http.HttpServlet.service(HttpServlet.java:727)     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)


Title Subtitle order on Single Page Applications with no regard for SEO

Though similar to  this is for a web application.  That is not SEO oriented and it is a Single Page Application  Should I use  <title>[app name] - [app page]</title>   Or   <title>[app page] - [app name]</title>   Personally I like to put the page first because I don't have to look too far into the title bar to see the title, it's much like most of the Windows apps from Microsoft where they put the title of the application at the end.  I don't care much about SEO for this question and the document.title would be dynamically set via JavaScript anyway.  For SEO if it mattered, I would put the   <title>[app name]</title>   Since it is a single page application.  Only problem I can think of is bookmarking.  When people bookmark and they just scan through the list, it is usually with the title of the application they look for.  However, I haven't seen any responses to  so that would be a slight concern.  I guess one can expect the user to change the title or move to a folder as they see fit.


Old iPad not charging after no use for a year

I have an old iPad and want to give it to a friend.  I plugged it in with a new lead that charges another 1st gen iPad I have, but it's not coming on.  It's not been used for about a year. It's been plugged in now for 20 minutes.  Any ideas?


I just have a simple c main program and have a class, VoronoiDiagramGenerator.cpp and VoronoiDiagramGenerator.h is the class definition, in main function call the class method.  Why I use the gcc and g++ giving different output. Using gcc have some error, but it's OK using g++.  jack@ubuntu:~/dev/practice$ gcc main.cpp VoronoiDiagramGenerator.cpp -o main /tmp/ccbaXM5L.o:(.eh_frame+0x6b): undefined reference to `__gxx_personality_v0' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::VoronoiDiagramGenerator()': VoronoiDiagramGenerator.cpp:(.text+0x22): undefined reference to `operator new(unsigned int)' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::reset()': VoronoiDiagramGenerator.cpp:(.text+0x168): undefined reference to `operator delete(void*)' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::geominit()': VoronoiDiagramGenerator.cpp:(.text+0xc3d): undefined reference to `sqrt' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::dist(Site*, Site*)': VoronoiDiagramGenerator.cpp:(.text+0x1318): undefined reference to `sqrt' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::getfree(Freelist*)': VoronoiDiagramGenerator.cpp:(.text+0x17aa): undefined reference to `operator new(unsigned int)' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::cleanup()': VoronoiDiagramGenerator.cpp:(.text+0x18cd): undefined reference to `operator delete(void*)' VoronoiDiagramGenerator.cpp:(.text+0x1917): undefined reference to `operator delete(void*)' VoronoiDiagramGenerator.cpp:(.text+0x1923): undefined reference to `operator new(unsigned int)' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::cleanupEdges()': VoronoiDiagramGenerator.cpp:(.text+0x19e4): undefined reference to `operator delete(void*)' VoronoiDiagramGenerator.cpp:(.text+0x1a3f): undefined reference to `operator delete(void*)' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::pushGraphEdge(float, float, float, float)': VoronoiDiagramGenerator.cpp:(.text+0x1a8b): undefined reference to `operator new(unsigned int)' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::pushDelaunayGraphEdge(float, float, float, float)': VoronoiDiagramGenerator.cpp:(.text+0x1afa): undefined reference to `sqrt' VoronoiDiagramGenerator.cpp:(.text+0x1b1a): undefined reference to `operator new(unsigned int)' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::clip_line(Edge*)': VoronoiDiagramGenerator.cpp:(.text+0x1e50): undefined reference to `sqrt' /tmp/ccCeOqcL.o: In function `VoronoiDiagramGenerator::generateVertexLinks()': VoronoiDiagramGenerator.cpp:(.text+0x33f4): undefined reference to `operator delete[](void*)' VoronoiDiagramGenerator.cpp:(.text+0x3413): undefined reference to `operator delete[](void*)' collect2: ld 返回 1   but using g++, all is OK  jack@ubuntu:~/dev/practice$ g++ main.cpp VoronoiDiagramGenerator.cpp -o main jack@ubuntu:~/dev/practice$


Why do C# and Java bother with the "new" operator?

Why does the  exist in modern languages such as C# and Java? Is it purely a self documenting code feature, or does it serve any actual purpose?  For instance the following example:  Class1 obj = new Class1();  Class1 foo() {     return new Class1(); }   Is as easy to read as the more Pythonesque way of writing it:  Class1 obj = Class1();  Class1 foo() {     return Class1(); }   EDIT:  hit the nail on the head with the clarification of the question: Why did they choose this syntax?


My website keywords are not indexing. What should i do?

My website keywords are not indexing. I have changed all pages meta and updated new content but still my keywords are not showing in Google serp. What should i do please tell me some suggestion. I am doing all the off page activities of the website last 2 months.


I have a Mac book pro (13 inch late 2013) and I have an old iMac (27 inch mid 2010).  I checked on apple website and it says that the 27 inch Mid 2010 model does support target display mode    It says that target display mode is supported but I need a "mini display to mini display cable"  but when I look at my MBP, it does have any mini display port. it has only 2 thunderbolt ports.  So will I be able to use the old iMac as a external display?


Adding 0.1 in a loop results in weird fraction

I have something weird going on while adding 0.1 to another number in a loop.  function updateLoop() {   for (var key in resources) {     if (resources.hasOwnProperty(key)) { // Key is "Population" here.       // Add income to stock.       resources[key][1] += resources[key][0];       document.getElementById(key).innerHTML = resources[key][1];     }   }   setTimeout(updateLoop, 3000); }   Now for some reason instead of adding 0.1 it sometimes adds 0.1000000000000001  Inside the resources object:  Population: Array[2] 0: 0.1 1: 1.2000000000000002   Anyone knows why this happens? Can I fix it?


I am trying to do the passwordless authentication for many number of servers from some of the main servers, so I wrote a script for that. But for copying keys to each the server I need to enter my password for the first time. But I am able to do this in the case of less servers but I want to do this for almost 1000 servers, so I am not ready to do this like entering the password for 1000 times.  The bad point in my case was I can't use sshpass command and expect utility for this where I don't have approval for this to install. So is there any other option to provide the password along with the ssh, also I will provide my script for automate the passwordless authentication.  adding  I want to copy the keys to many servers from my master server without entering the password manually instead of providing the password with the ssh or in script. But I cannot use the sshpass or expect commands here.  #!/bin/bash echo | ssh-keygen -P '' -t rsa  for i in `cat lists` do     cat ~/.ssh/id_rsa.pub | ssh userid@$i "mkdir -p ~/.ssh;chmod 700 ~/.ssh;cat >> ~/.ssh/authorized_keys;chmod 640 ~/.ssh/authorized_keys" done


What determines the sharpness of a shadow?

What are the factors that affect the sharpness of a shadow?   I would think that the distance between the light source and the object, the distance between the object and the shadow, and the size of the light source would all have an effect.   How do they affect the shadow exactly? What is the full explanation?


Is it possible to mark or modify a player with a specific item in their inventory

I'm building a CTF map of sorts, using command blocks in vanilla 1.8. I've discovered two commands for detecting if an item is in a players inventory:  /clear @a[team=Red] banner 4 0  /testfor @a[team=Red] {Inventory:[{id:"minecraft:banner"}]}  Those work fine, unless you want to perform a command ON the player carrying that item. For example: I want to cause the player who picks up a banner of the opposite team, to automatically equip that banner in their head slot with a command similar to this:  /replaceitem entity @a[???????] slot.armor.head banner 1 4  Can this be done? If not, is there a way to mark a specific player carrying an item using scoreboards?


Is there a simple way to generate a unique identifier like random uuids in XeLaTeX with a package or a simple LaTeX script which does not need any external commands to execute?


I'm trying to compare a value from a cell in a JTable and a value returned from an SQL ResultSet, but it always return FALSE even if I know they are equal.  Their content equals "1" I also checked for the length of each string which is 1.      boolean test = (myJTable.getValueAt(0, 0).toString() == rs.getString("ID"))     //test equals to false.   What makes them different??  Thank you in advance for your help.


I am performing an interrupted time series analysis. I plotted the data and then checked for autocorrelation using ACF and PACF.    par(mfrow=c(1,2))  acf(residuals(model_ols), main="ACF")  acf(residuals(model_ols), type = "partial", main="PACF")   How do make sense of this plot now? Can someone tell me what should be the next step?


Let $\Omega$ be a domain in $\mathbb{C}$ and let $\{f_n\}_{n \in \mathbb{N}}$ be a sequence of injective functions that converge in $O(\Omega)$ to $f$ . Show that $f$ is either injective or a constant function.   How does the conclusion change if, instead of a domain, we allow $\Omega$ to be an arbitrary open set ?  I know that $f$ is holomorphic as an almost uniform limit. But I dont know how to proceed.


SQL IN statement to extract for 100k records

I have a file SRQ which is having 10000 SRQ_ID which are unique. I have one table(TABLE1) which is having 2 columns namely SRQ_ID,WORK_ID . I needs to write a query which will search the table(TABLE1) for all the SRQ_ID's in the file SRQ and will display the output with corresponding WORK_ID.  I tried the below code. But IN clause is only applicable for 1000 records. How to run the same if I have 100k records?  select WO_ID  from TABLE1  where SRQ_ID in ('B6512DF0','5838FABC','EC5D804C','074DD65C')


I have a standard text file, two columns, space separated, containing x and y data to be plotted. I want to plot x vs -y, i.e. plot(x,-y).   In general, how do you read your data and plot a function of them in pgfplots, e.g. (x,-y), (log x, y), (x, y^2), etc?  The following code returns error  \pgfplotstableread{inputdata.txt}\mydata; \addplot table [ color=red, only marks, mark=*, mark size=0.5pt, x expr=\thisrowno{1}, y expr=\thisrowno{2}*-1 ] {\mydata};


If one semiconductor is transparent and another is not (in the visible spectrum), what causes that difference? Is it related to their band gap, because that influences which wavelengths they can emit? As an example gallium arsenide is opaque, zinc sulphide isn't.


tar and its key letters: is it a bug or feature?

I am wondering to ask the difference of these two commands (i.e. only the order of their options are different):   tar -zxvf foo.tar.gz tar -zfxv foo.tar.gz   The first one ran perfectly but the second one said:  tar: You must specify one of the `-Acdtrux' or `--test-label'  options Try `tar --help' or `tar --usage' for more information.   And tar with --test-label and -zfxv said :  tar (child): xv: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now   Then I looked at tar manual and realised that all the example there are using switch -f in the end!!  AFAICT there is no need for this restriction, or is there?! because in my view switches should be order free.


How do I monitor clipboard changes in C#?

Is there a clipboard changed or updated event that i can access through C#?


Suppose $G$ is a finer filter than $F$ in a topological space $X$.  Is the net base in $G$ a subnet of the net base in $F$?  I am using the definitions of General Topology of Willard:     Definition 12.15. If $(x_\lambda)$ is a net in $X$, the filter generated by the filter base $\mathscr C$ consisting of the sets $B_{\lambda_0}=\{x_\lambda; \lambda\ge\lambda_0\}$, $\lambda_0\in\Lambda$, is called the filter generated by $(x_\lambda)$.      Definition 12.16. If $\mathscr F$ is a filter on $X$, let $\Lambda_{\mathscr F}=\{(x,F); x\in F\in\mathscr F\}$.   Then $\Lambda_{\mathscr F}$ is directed by the relation $(x_1,F_1)\le(x_2,F_2)$ iff $F_2\subset F_1$, so the map   $P\colon \Lambda_{\mathscr F} \to X$ defined by $P(x,F)=x$ is a net in $X$. It is called the net based on $\mathscr F$.   The definition of subnet used in Willard is the second one from this post:   Thank you


For a prime q and positive integers x, y, z, w , q divides yz, q divides xy and q doesn't divide yw implies that q^2 divides xz

I'm attempting to prove that the above statement is true, but am having a bit of trouble.  So far I have  $qk = yz$  $qj = xy$  I'm not really sure to go from here, but I tried the following  I can then rearrange for $z,x$  $x = \frac {qk}{y}$  $z = \frac {qj}{y}$  And then combine such that  $xz = \frac {q^2(kj)}{y}$  If it wasn't for the y on the denominator, the proof would be finished, but I can't really see a way to get rid of it, which of course makes me think I've gone around doing this the wrong way.  What would be a better way to prove this statement?


Finding limit of function $\lim_{x\to 0}\left(\frac{(1+x)^\frac1x}{e}\right)^\frac1x$

Find the limit of function  $$\lim_{x\to 0}\left(\frac{(1+x)^\frac1x}{e}\right)^\frac1x$$


I know there is no "forward delete" on iPhone keyboards I also know the various ways of moving the cursor around so that you can use the delete key instead.  But this procedure is maddeningly time-consuming for someone who wants to forward delete all the time. My question is: Is there a workaround for this problem? For example, there are several places where long-pressing does nothing, any one of which could become a useful forward delete key. Here's a short list (illustrated in the image below): the shift key, the 123 key, the autotype area above the keyboard, the space below the spacebar, letters like "p" which have no long-press action.  Is there no way to program this, come up with an app, or a customized keyboard? It's hard for me to believe that with all the brilliant minds out there no one can come up with a better way. By the way I've wanted to have a forward delete key about five times while writing this post! Please don't respond if you have a negative answer (which can never be proved). Let's wait for someone brilliant out there to share with us.


Is it possible to install Psiphon on Ubuntu 18.04.4 LTS.   Thoughts are much appreciated.


Is Ubuntu spyware (referring to article by Richard Stallmann)?

I received a link to the article  by  which advises the reader not to use or recommend Ubuntu for several reasons:  It does not meet all . Canonical encourages the use of non-free software Ubuntu is spyware as e.g. the dash search queries are also sent to Canonical and Amazon to include further online results and ads!  They say that since 12.04 the local dash search automatically also performs an online search at Amazon. The feature might be turned off in the System Settings and all queries are anonymized by Canonical and routed through their servers, but that means that at least they know what we search. () Additional to these accusations, I've also heard that e.g. the automatic bug reports may include more personal data than needed. My question: May please someone with deep knowledge of the mentioned parts of Ubuntu, it's security and privacy options and/or Canonical's policy on this comment on those statements and verify them? How much is true, what is wrong or exaggerated, how can the normal user avoid being spied on by either Canonical or any third-party companies like Amazon? Do the latest versions of Ubuntu still have the automatic network search and other critical features enabled by default or did/will they improve this recently/soon? Thank you for confirming my trust in Ubuntu or opening my eyes about it - whatever is necessary. Note: Please don't just write something you've read anywhere if you're not sure. An answer based on prejudices or what's believed by "normal"/non-expert users are not very helpful in this case.


Harry was bitten by a Basilisk - how is he still a Horcrux?

It is revealed in "The Deathly Hallows" that, when Voldemort tried to kill the baby Harry Potter, he unwittingly created in him a horcrux.  Basilisk blood destroys horcruxes.  In "The Chamber Of Secrets", Harry is bitten by a Basilisk.  Therefore, surely he is no longer a horcrux as of this point in time (i.e. the horcrux within him is destroyed).  How is it, then that at the end of the saga Harry is still a horcrux?  Or, is it that, as long as he still lives, then he is still a horcrux? (In the same way that Nagini, the horcrux snake, is a horcrux only as long as he lives). Do "living" horcruxes (Harry, Nagini, etc) need to be utterly destroyed with basilisk blood, rather than just "pierced" with it (such as seems to work for inanimate horcruxes - the locket, ring, diary, diadem, etc)? If so, why this difference?  And, if this were the case, why is it that, in their final duel, the horcrux in Harry is destroyed and Voldemort is finally able to die?


If $n$ is an odd integer, then $4\mid n^2 − 1$.

How do I prove using direct proof:  if $n$ is an odd integer, then $4$ divides $n^2 − 1$.


A gambler enters casino with $k$ dollars and he starts betting $1$ dollar each time, with probability $1/2$ he wins $1$ dollar, and with probability $1/2$ he loses his bet (1 dollar), and to win he needs to reach $n$ dollars before getting ruined.  So if he reaches $n>k$ amount, then he wins and leaves, or he loses all his money and leaves.     Find a formula to calculate the probability of the gambler’s winning using $n$ and $k=1$, and $p= 1/2$.


I can't find the second and fifth gnome locations Any suggestions? I've tried everything but I can't find them.


I want to install lubuntu on my current (pre-existing) Ubuntu Install because of it's light-weight footprint.   Can I preserve currently installed apps after installation?


No exception still not coming out of while loop

Following is my java code block i am not able to come out of while block, the same code run's perfect in other module. kindly help me  public void current_ER(View v){         try{                  String[] parameters= {uid};                 Caller c=new Caller();                  c.url="current_ER.php";                 c.parameters=parameters;                 c.join(); c.start();                  String result=MainActivity.result;                 System.out.print("before while");                 while(result=="START") {                     try {                           Thread.sleep(10);                            System.out.print(result);                      }                     catch(Exception ex) {                            ex.getLocalizedMessage();                     System.out.print("in catch");                      }                 }                 System.out.print("after while");                     Toast.makeText(this, "ER Details->"+result , Toast.LENGTH_LONG).show();                 {                                        System.out.print("before start indent block");                     /////////to next screen////                     Intent Manage_Expense=new Intent(this,Manage_Expense.class);                     Manage_Expense.putExtra("er_details", result);                     //MainActivity.result="START";                     Toast.makeText(this, "ER Details->"+result , Toast.LENGTH_LONG).show();                     //startActivity(Manage_Expense);                 }  }catch(Exception e){                 System.out.println(e.getMessage());  }      };


Phase in time evolution operator for time-dependent Hamiltonian

In Quantum Mechanics, a state vector $|\psi\rangle$ will evolve in time according to $$|\psi(t)\rangle=e^{-\frac{i}{\hbar}\hat H t}|\psi(0)\rangle$$ Imagine we have a system such that, for a short period of time $T$, the Hamiltonian increases by a constant and then returns to normal, such that $$\hat H=\hat H_0+ \begin{cases} 0 & \text{($t\lt0,\,  t\gt T$)}\\ A & \text{($0\leq t\leq T$)}\\ \end{cases} $$ At $t=T$  we will have $$|\psi(T)\rangle=e^{-\frac{i}{\hbar}AT}e^{-\frac{i}{\hbar}\hat H_0T}|\psi(0)\rangle$$ Now, following the first equation, since after $t=T$ there is no $A$, it should just become $$|\psi(t)\rangle=e^{-\frac{i}{\hbar}\hat H_0 t}|\psi(0)\rangle$$ But this seems strange, it's as if that period of interaction with whatever caused the extra energy had no effect on the particle whatsoever. I think it makes more sense to apply the time evolution operator separately and obtain $$|\psi(t)\rangle=\hat U(t-T)|\psi(T)\rangle=e^{-\frac{i}{\hbar}\hat H_0(t-T)}e^{-\frac{i}{\hbar}AT}e^{-\frac{i}{\hbar}\hat H_0T}|\psi(0)\rangle=e^{-\frac{i}{\hbar}\hat H_0t}e^{-\frac{i}{\hbar}AT}|\psi(0)\rangle$$ Is my idea wrong or is the time evolutikon operator different in this case? If so, the what would be the case for a time-dependent Hamiltonian?


I am trying to get right answer to question: Can you make bijection between set ℝ\{-3} and set ℝ?  I know those two sets are not same size but I think I can still make bijection, but I need mathematical proof.  Can someone tell me what is right answer + proof? +Is there way how to for example ask Wolfram for those questions?


Why is $\left(e^{2\pi i}\right)^i \neq e^{-2 \pi}$?

Here's my (obviously flawed) proof that $1=e^{-2 \pi}$: $$ 1^i=1\\ e^{2 \pi i} = 1\\ \left(e^{2\pi i}\right)^i = 1^i\\ e^{-2 \pi} = 1 $$  What's the issue? I understand that exponentiation is not injective (and thus $-1 \neq 1$ even though $(-1)^2 = 1^2$), but I don't think that's an issue here: I'm only raising things to the power of $i$, which I don't think is multi-valued.


I need a kext from OS X 10.9.5 (13F1911)

I really need  /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext  It is necessary from OS X 10.9.5 (13F1911), that is, with all the latest changes, from just 10.9.5 is not needed.  My request how I can get this Apple software? Re-installing the OS from Recovery is very undesirable, since many valuable files are lost.  In addition, it will be restored from 10.9.5, but not from OS X 10.9.5 (13F1911)   can not solve the problem with the latest Apple updates. Specifically, my system has quite a few modifications I fear I’ll lose.   My English is likely bad here but I'm trying to say that I've spoiled the kext and all recovery methods are not suitable for one simple reason: in the version that I can download from App Store and in versions in /Volumes/Recovery HD/ com.apple.recovery.boot/BaseSystem.dmg updates of the latest releases are not implemented!  (It all happened because I'm trying to implement a patch has not attended to the preservation of the original version, that is that's such bad luck!).  UPD1: I found the required kext inside the "secupd2016-004mavericks.dmg" at the URL: , and solved the problem!  UPD2: no simple copying will produce the proper result, you need to implement kext:  sudo kextcache -system-prelinked-kernel sudo kextcache -system-caches sudo touch /System/Library/Extensions/ reboot   Thank you in advance for your help, and sorry for the bad english as I’m not a native writer or speaker.   Another question for the moderator: what does "duplicate" mean? What duplicates my simple request to help me get the the file which I need?


I am given a paper with Kaplan-Meier curve. I'd like "reverse-engineer" the chart to get the original data (without the censoring events, as they are difficult to discern in my low quality copy).  I've seen the tool for this task on the Net, but it was long time ago and  forgot its name.   Can someone please remind me, how to find it?  Thanks.


VI editor changes and does not change inodes of files when editing files under /tmp

I noticed that my vi editor changes inodes when editing files, except when that file is under /tmp. Why is this?


Exception: Could not retrieve the required installation files   That happens everytime Wubi is finished installing Lubuntu. I know there are questions like this, except I can't use a USB big enough for Lubuntu, and my PC will not work with CD/DVD drives.  The full log is too big to paste, but here's the last few lines.  01-20 18:07 DEBUG  TaskList: ### Finished get_metalink 01-20 18:07 DEBUG  TaskList: New task download 01-20 18:07 DEBUG  TaskList: ### Running download... 01-20 18:07 DEBUG  btdownloader: downloading http://cdimage.ubuntu.com/lubuntu/releases/12.04/release/lubuntu-12.04-desktop-i386.iso.torrent > C:\ubuntu\install\lubuntu-12.04-desktop-i386.iso 01-20 18:28 DEBUG  TaskList: ### Finished download 01-20 18:28 DEBUG  TaskList: New task check_iso 01-20 18:28 DEBUG  TaskList: ### Running check_iso... 01-20 18:28 DEBUG  CommonBackend: Checking C:\ubuntu\install\lubuntu-12.04-desktop-i386.iso 01-20 18:28 DEBUG  Distro:   checking Lubuntu ISO C:\ubuntu\install\lubuntu-12.04-desktop-i386.iso 01-20 18:28 DEBUG  WindowsBackend:   extracting .disk\info from C:\ubuntu\install\lubuntu-12.04-desktop-i386.iso 01-20 18:28 DEBUG  Distro:   parsing info from str=Lubuntu 12.04 "Precise Pangolin" - Release i386 (20120423) 01-20 18:28 DEBUG  Distro:   parsed info={'name': 'Lubuntu', 'subversion': 'Release', 'version': '12.04', 'build': '20120423', 'codename': 'Precise Pangolin', 'arch': 'i386'} 01-20 18:28 DEBUG  Distro: wrong version: 12.04 != 12.04.3 01-20 18:28 DEBUG  TaskList: ### Finished check_iso 01-20 18:28 DEBUG  TaskList: New task download 01-20 18:28 DEBUG  TaskList: ### Running download... 01-20 18:28 DEBUG  downloader: downloading http://cdimage.ubuntu.com/lubuntu/releases/12.04/release/lubuntu-12.04-desktop-i386.iso > C:\ubuntu\install\lubuntu-12.04-desktop-i386.iso 01-20 18:29 DEBUG  downloader: Download start filename=C:\ubuntu\install\lubuntu-12.04-desktop-i386.iso, url=http://cdimage.ubuntu.com/lubuntu/releases/12.04/release/lubuntu-12.04-desktop-i386.iso, basename=lubuntu-12.04-desktop-i386.iso, length=721727488, text=None 01-20 20:05 DEBUG  TaskList: ### Finished download 01-20 20:05 DEBUG  downloader: download finished (read 721727488 bytes) 01-20 20:05 DEBUG  TaskList: New task check_iso 01-20 20:05 DEBUG  TaskList: ### Running check_iso... 01-20 20:05 DEBUG  CommonBackend: Checking C:\ubuntu\install\lubuntu-12.04-desktop-i386.iso 01-20 20:05 DEBUG  Distro:   checking Lubuntu ISO C:\ubuntu\install\lubuntu-12.04-desktop-i386.iso 01-20 20:05 DEBUG  Distro: wrong version: 12.04 != 12.04.3 01-20 20:05 DEBUG  TaskList: ### Finished check_iso 01-20 20:05 ERROR  TaskList: Could not retrieve the required installation files Traceback (most recent call last):   File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__   File "\lib\wubi\backends\common\backend.py", line 600, in get_iso Exception: Could not retrieve the required installation files 01-20 20:05 DEBUG  TaskList: # Cancelling tasklist 01-20 20:05 ERROR  root: Could not retrieve the required installation files Traceback (most recent call last):   File "\lib\wubi\application.py", line 58, in run   File "\lib\wubi\application.py", line 132, in select_task   File "\lib\wubi\application.py", line 158, in run_installer   File "\lib\wubi\backends\common\tasklist.py", line 197, in __call__   File "\lib\wubi\backends\common\backend.py", line 600, in get_iso Exception: Could not retrieve the required installation files 01-20 20:05 DEBUG  TaskList: # Finished tasklist


Forbidden Legend Quest: Gauldur is immobile

Having bit of a trouble completing "Forbidden Legend" quest. I'm at the forging of amulet part. After having fought the ghost of three brothers, Gauldur's ghost shows up. However, it doesn't do anything, just stands there.  If I understand correctly, Gauldur is supposed to forge the amulet for me. But he doesn't. I've done the sequence 3 times, however, everytime, the ghost just stands there.   Has anyone run into this? What was the fix?  I'm playing on a PC.


I'm having a problem when writing C++ templates, let's check the code:  abc.h  class ABC { public:         template <class T>         T getSomething(const std::string& name, ABC* owner = 0);         ABC* getSomething(const std::string& name); };  abc.cpp   #include "abc.h"  template <class T> T ABC::getSomething(const std::string& name, ABC* owner) {         return dynamic_cast<T>(owner ? owner->getSomething(name) : getSomething(name)); }   ABC* ABC::getSomething(const std::string& name) {         return NULL; }   and my main function will be like :  int main() {         ABC abc;         ABC* test = abc.getSomething<ABC*>("hello", NULL); }   when I put my main inside this abc.cpp and compile it, there is no problem everything works normal  but the problem comes when I use this abc.cpp (later I compiled it into abc.o) and then put my main function in different file (say, def.cpp).  I got really weird error, the error says :  /tmp/ccn1H4Bg.o: In function `main': def.cpp:(.text+0x4a): undefined reference to `ABC* ABC::getSomething<ABC*>(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ABC*)' collect2: ld returned 1 exit status   could you all help me what I do wrong here?  Thanks Guys!


How to access all list elements from last to first in python list

I have a list of 1000 elements. How do I access all of them starting from last element to the first one in a loop.  list = [4,3,2,1] for item in list:     print(from last to first)   output = [1,2,3,4]


Execute Script when Android Phone is connected to specified/selected USB Port

I´m having some trouble with my udev rule. At the moment, I had my udev rule setup to execute a script whenever a Android phone is connected to any USB port on the computer. But I don´t want the script to be executed from every USB port. I just want that the script to be execute in example when the phone is connected to the 4th USB port and nothing should happen when it is connected to 1st, 2nd or 3rd USB port.  How can I achieve that and how can I determine the for example 4th USB Port?  I would highly appreciate your help.  My current udev rule:  KERNELS="1-2:1.1", ACTION=="add", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}!="1d6b", ATTRS{idVendor}!="203a", ATTRS{idVendor}=="****", ATTRS{idProduct}=="****", RUN+="/usr/local/bin/tmp.sh $attr{serial}"


When creating an array of linkedlist objects why dont we mention the datatype inside linkedlist when creating the object?

I am creating an array of LinkedList objects in java. I wrote the syntax as below and got an error.  LinkedList<Integer>[] arr = new LinkedList<Integer>[n];   I changed it to   LinkedList<Integer>[] arr = new LinkedList[n];   and it worked fine.  My question why did the first syntax not work?


How to check digital licenses linked to my Microsoft Account?

My harddrive just crashed and HP is asking me to pay them to get a recovery media in order to re-install Windows on the new hard drive. Now, Windows 10 uses digital licenses tied to out Microsoft Account. So, I guess I should be able to grab a iso of the same edition of Windows online, install it, and then activate it by signing in to my MS Account. Only thing I can't seem to figure out is how do I check if I have a digital license linked to my account.  does show my connected devices but there isn't any option to check my license. Also,found a answer elsewhere stating that this page only shows the devices linked, not the one which have license. What I want to know is , How do I check whether the digital license is there in my MS Account or not ?


Python: Is there a better way to combine the values of a list

I'm doing a little project for some class at my university. In one of my functions I have a list, like:   x = ["q0", "q1", "q2", "q3", "q4"]   What I want from that list is to create a dictionary, that I'll use to store values and then get the values like i was searching in a matrix, that combine the values of the list, like this:   dic = {("q0", "q1"): "", ("q0", "q2"): "", ... ("q3", "q4"): ""}   I did it this way:   part1 = x[1:] part2 = x[:-1] dic = {} for v in part1:     for r in part2:         if v != r and (r, v) not in dic.keys():             dic[(v, r)] = ""   I used a if because i don't want repeated values, like:   ("q1", "q1")   And I also don't want opposed values, like:   ("q2", "q3"), ("q3", "q2")   My question is if there is a better way of doing this. Better than using a for inside a for. (When I say better I mean faster) And if there isn't a better way, I wonder if there is a more clean way to write this code. Maybe using list comprehension.


I'm wondering how to compute an 'odd' determinant:  ${D_n} = \det \left[ {\begin{array}{*{20}{c}}   {{a_n}}&x&x& \cdots &x \\    y&{{a_{n - 1}}}&x& \cdots &x \\    y&y&{{a_{n - 2}}}&x& \vdots  \\     \vdots & \vdots &y& \ddots &x \\    y&y& \cdots &y&{{a_1}}  \end{array}} \right]$  I tried Laplace expansion but still couldn't get a clue...  Also I wonder if there is a 'neat' expression for the result...  Any help will be appreciated:)


root@ubuntu:/home/user8# df -h  Filesystem                   Size  Used Avail Use% Mounted on udev                          16G     0   16G   0% /dev tmpfs                        3.2G  218M  3.0G   7% /run /dev/mapper/ubuntu--vg-root  3.6T  186G  3.2T   6% / tmpfs                         16G     0   16G   0% /dev/shm tmpfs                        5.0M     0  5.0M   0% /run/lock tmpfs                         16G     0   16G   0% /sys/fs/cgroup /dev/sda2                    473M  248M  202M  56% /boot /dev/sda1                    511M  3.4M  508M   1% /boot/efi tmpfs                        3.2G     0  3.2G   0% /run/user/1001   I see 186G used on my Ubuntu machine, but when I try to find where these are, I get:  root@ubuntu:/# ncdu     3.2 GiB [##########] /home     1.7 GiB [#####     ] /usr     1.3 GiB [###       ] /var     1.1 GiB [###       ] /lib   248.2 MiB [          ] /boot   217.0 MiB [          ] /run    35.3 MiB [          ] /tmp    21.1 MiB [          ] /opt    16.2 MiB [          ] /bin    13.3 MiB [          ] /sbin     7.4 MiB [          ] /root     7.2 MiB [          ] /etc e  16.0 KiB [          ] /lost+found     8.0 KiB [          ] /media     8.0 KiB [          ] /snap     4.0 KiB [          ] /lib64 e   4.0 KiB [          ] /srv e   4.0 KiB [          ] /mnt .   0.0   B [          ] /proc     0.0   B [          ] /sys     0.0   B [          ] /dev @   0.0   B [          ]  initrd.img.old @   0.0   B [          ]  initrd.img @   0.0   B [          ]  vmlinuz.old @   0.0   B [          ]  vmlinuz   And:  root@ubuntu:/# du -sh /* 17M     /bin 249M    /boot 0       /dev 7.3M    /etc 3.3G    /home 0       /initrd.img 0       /initrd.img.old 1.2G    /lib 4.0K    /lib64 16K     /lost+found 8.0K    /media 4.0K    /mnt 22M     /opt du: cannot access '/proc/15646/task/15646/fd/4': No such file or directory du: cannot access '/proc/15646/task/15646/fdinfo/4': No such file or directory du: cannot access '/proc/15646/fd/4': No such file or directory du: cannot access '/proc/15646/fdinfo/4': No such file or directory 0       /proc 7.4M    /root 218M    /run 14M     /sbin 8.0K    /snap 4.0K    /srv 0       /sys 36M     /tmp 1.8G    /usr 1.4G    /var 0       /vmlinuz 0       /vmlinuz.old   Any ideas ?


Subjectively Slowed Explorers Fight a Living Jungle

This short story (possibly published in Asimovs or Fantasy and Science Fiction, but not certain) involves explorers encountering a tribe that worships the local jungle as a god. They do so by taking a drug that slows them down so much they move and perceive at the same subjective rate as the growing plant life. This creates a situation where the jungle can attack them by growing vines towards them. So the jungle is not moving faster, the people are moving far slower than normal.   Publication time frame is before 1990, but it could easily be from much earlier.   Language: English


How do I change a close vote to a duplicate?

Voted to close a question based on "lack of minimal understanding".  Later realized the question was a duplicate.  How to I change vote to mark as duplicate instead?


Do I need to have played Mass Effect to enjoy Mass Effect 2?

I have never played Mass Effect, but I hear that Mass Effect 2 is great.  Do I need to play the first to understand the second?  Will I be lost?


I wonder if anybody can help me solve the following problem:  Three numbers are chosen from the first $n$ natural numbers. What is the  probability that they can be sides of a triangle?   NOTE: The sides can be equal.


Scaling so that the distances from the center are the same?

when I scale a face, it is scaled propotionally. But how can I scale it, so that the two distances that I marked here:    are the same?  thx


How do I make a program auto-start everytime I log in in Ubuntu 14.04?

I read the previous answers to this question, and tried to follow, but it does not work. I wanted to add Chromium and Skype to the Startup Applications, but I can't find out what command I should write in there.  I tried the other suggested method: right-clicked on the icon in the Launcher, but there is no item called "Add to the Startup" in the pop-up menu. I am new to Linux and Ubuntu, sorry if there is an obvious answer, please help. Thanks Peter


Are all integral domains in which all irreducible elements are prime G.C.D domains?

I know that in G.C.D domains all irreducible elements are prime.  Does the converse of this statement hold?  If not, is there a weaker condition than being a G.C.D. domain that is both sufficient and necessary for all irreducibles being prime?


Adding diacritics to Tibetan mantras with LaTeX

Thank you very much for your quick and skilled answers to my first question! Unfortunately they didn't solve my problem exactly, so I become more precise in my question: I'm working on an German translation of a commentary of a Tibetan meditation practise and want to add some expressions and mantras in Tibetan writing and tried the well elaborated ctib package. The great thing about this ctib package is the ability to write in well-known WYLIE transcription system. But for certain Mantras I need to put either the \tibSnaldan sign (part of ctib)  (actually this one mainly over the Tibetan letter Hung)  or just the small circle (...there is also a Sign defined in ctib, but don't know it at the moment, \tibRangjasso or something like this, but any small circle is fine...) over certain Tibetan letters like ba, ma, su, bu, ha and some more. It would be so great if someone could show me a solution!


Graph theory - The clients can still communicate with all the remaining servers

I have the following graph problem that I have no idea how to solve. Could you help me please? I need a proof. In a computer network there are two types of nodes: client and server. Each client is directly connected (using network cables) to at least one server and there are no direct connections between clients. Suppose that each server can route messages to other servers with which it is directly connected and the entire network is connected. In order to make the network more reliable, a scenario is considered: Every client is directly connected to at least 2 servers and every pair of servers having the distance between them 2 are connected using a direct cable. Prove that, in this new network, if a server becomes unavailable the clients can still communicate with all the remaining servers.


maximum likelihood : why log of function gives maximum value

I always found that in mathematical statistics books etc, they would state that to find the maximum we take the logarithm of the function and then differentiate, set to zero and get the Maximum value? I have not seen a proof as to why it would give a Maximum, why not Minimum?  Here is from a tutorial on mathematical stats online : "maximum value of the log of the probability occurs at the same point as the original probability function"  People state this without proof. Hope some one can show me proof of this assertion.  Note, my question is not a duplicate, because in the other link, it still does not give proof. And as Dave below says " We assume maximum without proof via second derivative". And that is my question, that is not answered in any of the other links, There is still NO proof, just assertions that it is true WITHOUT PROOF!


The Add Menu or the Shift-a Menu Is Stuck at Meshes

I'm new to blender so this question may have an easy answer but, when I press Shift+A on my keyboard, instead of showing all the menus, it only shows the mesh menu or the add menu where all of the primitive objects are stored. I use the latest version of blender and I am hoping to get help from you guys.


As written in the Title: How do I group layers in QGIS? I have tried dragging them on top of each other and looked in the layers setting but could not find anything.


Which one is correct - "Good morning both of you" or "Good morning to both of you"?

I'm quite confused whether good morning everybody, good morning all of you, etc. are correct or good morning to everybody, good morning to all of you, etc. are correct. Please let me know the correct phrase and point out the incorrect ones. If these are correct, what's the difference? My question is different from the existing question "Good morning, Brian" vs "Good morning to you, Brian". I want to know which of these are incorrect: 🌟 Good morning everybody!  🌟 Good morning to everybody!  🌟 Good morning all of you!  🌟 Good morning to all of you!  🌟 Good morning both of you!  🌟 Good morning to both of you!  🌟 Good morning, everybody!  🌟Good morning, both of you!


How To Diagnose Faulty (onboard) Network Adapter

I'm looking for advice on diagnosing ethernet connectivity issues under Linux. I suspect it's a hardware issue, though I am not entirely sure. It's an nVidia chipset and ethernet adapter.  The device shows up when I run lspci and the forcedeth driver has been loaded.  I have assigned a static IP address and specified the gateway (router) IP address. However, -when I ping the router, I get no response. Using the same setup but with a USB->ethernet adapter, everything works as it should. This is why I think it's a problem with the port.  Do I just have to assume it's a hardware problem or are there some more diagnostics I can perform? I am particularly interested in tools which give more detailed information about the state of the hardware, if such things exist.


How to extract default ringtones from Android device?

I just bought a new phone and I do not like the default ringtones/notification sounds, but I like the ones on my old phone. When I plug my old phone into my computer and go to This PC\KYOCERA\Internal storage\media\audio\ringtones like I have been told to go to for the default ringtones, the only ones that show up are a couple of custom ringtones I had put on previously. I want to extract the default ringtones like AT&T Play On and notification sounds like Syrma, so that I can put them on my new phone. I would prefer not to install drivers/programs onto my computer, but it would be okay with installing an app on my phone if necessary. I have the default Windows 10 programs on my computer, as well as and file commander and the rest of the default Android 5 apps on my old phone. Any help would be much appreciated.


I've been building my own Linux distro, and I've stripped the binaries, etc. The system won't use GCC or development tools, as it will be a Chrome kiosk, so it would greatly help if I could strip down the system...  I was wondering, is there a way that I can delete all of the unused system files (like binaries, etc.) by watching what files/libraries are used during runtime? Maybe another method is preferred, but is there a way to accomplish something like this?


What's the difference between will and going to?

I have no idea what the difference between these are. I have heard that they have the same meaning, but how do they?


I'm trying to write a blog post which includes a code segment inside a <pre> tag. The code segment includes a generic type and uses <> to define that type. This is what the segment looks like:  <pre>     PrimeCalc calc = new PrimeCalc();     Func<int, int> del = calc.GetNextPrime; </pre>   The resulting HTML removes the <> and ends up like this:  PrimeCalc calc = new PrimeCalc(); Func del = calc.GetNextPrime;   How do I escape the <> so they show up in the HTML?


How to write the path to the *. Bib at the natbib package?

I'm working on a paper and need to cite the literature that is in a different folder to the one used at work. How to write the correct path to the *.bib at the natbib package?. Thanks  \documentclass[a4paper,12pt, titlepage]{article} \usepackage[spanish, english]{babel}  \usepackage[T1]{fontenc} \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage{anysize} \marginsize {3,5cm}{3,5cm}{2cm}{2cm}  \usepackage{amsmath,mathtools} \usepackage{amssymb} \usepackage{multirow} \usepackage{array} \usepackage{graphicx} \pretolerance=2000 \tolerance=3000 \usepackage[numbers]{natbib} \title{TÍTULO} \date{} \begin{document} \maketitle \begin{abstract} \begin{flushleft} {\footnotesize \normalsize \textbf{Palabras Clave:}}  \\ {\footnotesize \normalsize \textbf{Mathematics Subjet Classification:}} \end{flushleft}  \end{abstract} \section{Antecedentes existentes para la Tesis} \label{Antecedentes existentes para la Tesis} \cite{raey,Zopounidis00b}   \section{Plan de Trabajo} \label{Plan de Trabajo} \subsection{Objetivos} \label{Objetivos} \subsubsection{Objetivos generales} \label{Objetivos generales} \subsubsection{Objetivos particulares} \label{Objetivos particulares}  \subsection{Metodología a seguir} \label{Metodología a seguir}  \section{Fundamentación de la originalidad} \label{Fundamentación de la originalidad} \bibliographystyle{plain} \bibliography{C:/Users/Referencias/Referencias Tesis.bib} \end{document}


How can I comment out lines inisde json file?

Some date is stored in a json file, how can I comment out some lines like below?  [     {         "id":"aaaa",     //  "path": "xxxx",         "path": "yyyy"     },    {        "id":"bbbb",        "path": "cccc"     } ]   My IDE is Visual Studio.


Difference between sound and high temperature

Though vibration is a common concept in sound and “high temperature”, the essential difference between the two is mentioned to be the way the vibration takes place. The former has vibrations that follow certain characteristics (has got an amplitude, frequency, wavelength, speed, etc.) while the latter is random.   The definition is crystal clear in differentiating sound and “high temperature”.  But what is the physical reason of our ears not perceiving random vibration as “sound” when the ears are not aware of the difference in the definitions?


I have a Google Spreadsheet, which is accessible (only view) by anyone who has the link. I want to have an overview of every timestamp the document was opened by an not-logged-in (= anonymous) user. How can I do this?


Regix in ruby on rails for adding "\n\n" " 2 new line" when i found "\n"

I am new in regix and working in ruby on rails please help me out.  My scenario is :  alleyway\n behind the venue\n. The young agent never\n\n.   I have a paragraph. And i want to add \n only when i find \n.  ex. in above sentence i want "venue\n\n".


Ajax post action does not work when the html was replaced by the result of previous ajax post action

So i have an admin page to handle status of items in the inventory. It is running on Node, using ejs template and mongoDb.  I was having a post action, and it is running fine when using a redirect link to reload the whole page.  Now i am changing to use ajax to handle a partial view update instead of reloading.  This is my url post action using res.json() to send the updated result to client side:  router.post("/change-status/:id/:status", (req, res, next) => {   let currentStatus = ParamsHelpers.getParam(req.params, "status", "active");   let id = ParamsHelpers.getParam(req.params, "id", "");    console.log("This is being called");    ArticleModel.changeStatus(id, currentStatus, { task: "update-one" }).then(     result => {       //res.redirect(linkIndex); // this is how it works with redirect which reload the whole page       res.json(result);     }   ); });   The result above is sent to client and handle after an ajax called. It is inside an action click on a tag.  $("a[href*='change-status']").on("click", function(e) {     e.preventDefault();     e.stopPropagation();      console.log("ajax is called");      var thisElement = $(this);     var parent = $(this).parent();         $.ajax({       url: this.href, // current href of a tag       type: "POST",       dataType: "json",       success: function(data) {         $(thisElement).remove();         $(parent).append(           statusHelper("admin123/article/", data.status, data._id)         );       },       error: function(jqXHR, textStatus, err) {         alert("text status " + textStatus + ", err " + err);       }     });   });   On successful, it replaces current a tag with another one, with a different link (the two links are below).  On the first click, the action is posted correctly, the data is sent correctly and the html is replaced / updated correctly by statusHelper method.  I double checked and the link before the first clicked and after the first clicked is similar.  a href 1st click:   http://localhost:6969/admin123/article/change-status/5e7cafc29d6d971b00cb5459/inactive   a href 2nd click:  http://localhost:6969/admin123/article/change-status/5e7cafc29d6d971b00cb5459/active   But when i clicked again to update the status the 2nd time, it routes me to that route instead of doing an ajax post.  May I know where i did thing wrong?  If more codes needed pls let me know.


Why is an untranslated string not showing up?

In my module I have some custom strings. I use these in the t() function. When I go to admin/config/regional/translate/translate and filter the untranslated strings my custom strings do not show here.  What could be going wrong?


Jquery code doesn't work on html created items

check this   I am create a div on the fly but click function doesn't work.  Any idea?  Also my code is:  $("#helloDiv").click(function(){     alert("The paragraph was clicked."); });  $(document.body).append('
Edit me
');


When is a global symmetry a gauge symmetry?

From what I understand, a global symmetry is a symmetry that holds at every point in space-time. On the other hand, a gauge symmetry is a redundancy in the description of a physical state.  Now, when localizing a global symmetry, we usually impose $\partial_\mu \rightarrow D_\mu = \partial_\mu + A_\mu$. For example, for scalar field theory we might have  $$\mathcal{L} = |\partial_\mu \phi|^2 \rightarrow |D_\mu \phi|^2$$  Now, this Lagrangian still enjoys the global symmetry $\phi \rightarrow e^{i\theta}\phi$ for constant $\theta$ after localizing the global symmetry as the global symmetry is a subset of the local symmetry. However, in performing this localization my understanding is that you end up gauging the symmetry.   How can I see that the global symmetry was originally not a gauge symmetry, but after localization is a gauge symmetry? Naively I expected $\phi \rightarrow e^{i\theta} \phi$ to correspond to physically equivalent states similar to how quantum states are only defined up to an overall phase factor. Are there general principles in which one can easily see that some symmetry is in fact a gauge symmetry?


How to change the default terminal directory?

When I press CtrlAltt, the terminal is open in $HOME dir. I want to open it in /tmp instead. Thus:  CtrlAltt Terminal is open at /tmp  Is it possible? How can I configure it?


How can I make my title page in beamer look like    with an vertically full width image and the blue bar in the bottom?  I don't know which functions to use to change this  \documentclass{beamer}  \title{Women Matter: \\ Making the Breakthrough} \subtitle{Presentation for Highways Agency/WTS} \author{} \date{18th of September 2012}  \titlegraphic{\includegraphics[width=2cm]{vertical_image.jpg}}  \begin{document}  \begin{frame} \maketitle \end{frame}  \end{document}


Wrong password after using registry backup

So before dealing with some software to repair my registry, I created a backup to it (simply by exporting the existing one), as I should have, and couple of days later, I decided to use my registry backup file, and that for some reason changed my password and even removed my PIN code...  I've also created a restore point in case I'll need one, but I guess it's not possible to access it without a password with windows 10.  I also have no windows CD because I received my laptop with an installed one so I can't use that method.  Is there any way to make a system restore/system reset without a password on windows 10? Even access to CMD would help.  Edit:  So I've decided to install new windows 10 since I wasn't able to gain access...neither using system restore worked.  Is there any way I can access the old windows using this 1?


ubuntu compatible avec en CPU AMD A8-4500M APU with tm HD graphics 1.90 GHZ

je cherche a Installer Ubuntu (n importe quel version ) mais compatible avec un CPU AMD A8-4500M APU with tm HD graphics 1.90 GHZ  Translation:  I’m looking for a Ubuntu installer (doesn't matter which version) that is compatible with a CPU AMD A8-4500M APU with tm HD graphics 1.90 GHZ


How do I get the directory that a program is running from?

Is there a platform-agnostic and filesystem-agnostic method to obtain the full path of the directory from where a program is running using C/C++? Not to be confused with the current working directory. (Please don't suggest libraries unless they're standard ones like clib or STL.)  (If there's no platform/filesystem-agnostic method, suggestions that work in Windows and Linux for specific filesystems are welcome too.)


How to get the last argument to a /bin/sh function

What's a better way to implement print_last_arg?  #!/bin/sh  print_last_arg () {     eval "echo \${$#}"  # this hurts }  print_last_arg foo bar baz # baz   (If this were, say, #!/usr/bin/zsh instead of #!/bin/sh I'd know what to do.  My problem is finding a reasonable way to implement this for #!/bin/sh.)  EDIT: The above is only a silly example.  My goal is not to print the last argument, but rather to have a way to refer to the last argument within a shell function.    EDIT2: I apologize for such an unclearly worded question.  I hope to get it right this time.  If this were /bin/zsh instead of /bin/sh, I could write something like this  #!/bin/zsh  print_last_arg () {     local last_arg=$argv[$#]     echo $last_arg }   The expression $argv[$#] is an example of what I described in my first EDIT as a way to refer to the last argument within a shell function.  Therefore, I really should have written my original example like this:  print_last_arg () {     local last_arg=$(eval "echo \${$#}")   # but this hurts even more     echo $last_arg }   ...to make it clear that what I'm after is a less awful thing to put to the right of the assignment.  Note, however, that in all the examples, the last argument is accessed non-destructively.  IOW, the accessing of the last argument leaves the positional arguments as a whole unaffected.


Getting correct section numbering for Appendix in a large document

I'm writing a thesis which is an aggregate of separate articles. I have the source code for the articles and I'm using \include to include them in the main document of the thesis. So in my main.tex (thesis document), I have  \include{article1} some pages in between the two articles \include{article2}   The problem that I'm getting is with the Appendix sections. In article 1, I have at the end:  \appendix \numberwithin{equation}{section} \section{Coefficients}\label{sec:Coeffic} \subsection{Good coefficients} then comes the first line of appendix   This gives in article 1 (when  compiled separately with the article class):     A. Coefficients      A.1. Good coefficients   and equation numbers in the Appendix A as (A.1), (A.2)  which is ok and what is expected.  When I put article 1 within main.tex, I use \include command. Also, I removed the document class for article 1 and put \chapter instead.  But when I compile main.tex (the thesis document), I get the appendix sections as:     .1 Coefficients      .1.1 Good coefficients   and the equation numbers in the appendix A as (.1.1), (.1.2) etc  My article 1 is treated as a chapter in the main thesis document (main.tex) and the title and section numbers, equation numbers are preceded by A in main.tex. This is what I want.  Maybe it would be ok to get the appendix in my main.tex as     A.A. Coefficients      A.A.1 Good coefficients   and the equation numbers in the Appendix as (A.A.1), (A.A.2) etc  to denote that it refers to appendix A of paper A. First A is for the first article and second A is for first appendix. How to get this?


Clustering on a data set with mixed variables

I have a data set consisting of $n$ elements with $d$ features for each element ($x_{i,f}$ means the value for the f-th feature of the i-th element). I would like to cluster this data set into $k$ clusters.  One problem I have is that one feature is a nominal one and another is a discrete ordinal one. As an example consider elements which have the following features:   $x_{i,1}$ : the height of a person $x_{i,2}$ : the weight of a person $x_{i,3}$ : country where the person lives $x_{i,4}$ : nr. of friends the person has   Is it ok to use a simple k-means algorithm with an euclidian distance measure?  I would introduce a indicator variable $\delta$ with the following meaning for feature $x_{i,3}$: $$\delta(i,j) = \begin{cases}   0,  & \text{if }x_{i,3} = y_{j,3}\text{,}\\    1, & \text{else.}\end{cases}$$ So two objects $i$ and $j$ have no distance for their third feature if this feature is the same (same country) and 1 otherwise.  Or do you know a better way to do a cluster analysis in this case?


Why does a blurred out background make this photo look like a miniature?

I have this photo before and after being blurred (From Macphun software ad):    I dont know about you but for some reason the blurred version almost makes the island look like it is an intricately created miniature. I am not sure why.  I have seen this effect used in the Game of Thrones intro as well as some games but I cant explain how it works. Why does our brain perceive size differently in these scenarios?


How to iterate over SObject list returned in Lightning Component Dynamically?

How to iterate over SObject list returned from server side controller in Lightning Component using <aura:iteration> to show the field values in table using dot notation.I am asking for passing field names dynamically with dot notation.  Some are marking it as duplicate, which is not. It may be possible that these guys are not getting it correctly or don't have solution to it. So please read it again to understand the problem,  what I am asking. It is totally different.  Attributes I have used  <aura:attribute name="records" type="Object[]"/> **This contains sObject records** <aura:attribute name="fieldsAPI" type="String[]"/> **Selected fields API names** <aura:attribute name="fieldsName" type="String[]"/> **Selected fields label Names**   Here is what I have tried and done so far : My Record Area

                         <aura:iteration items="{!v.fieldsName}" var="fieldName">
{!fieldName}
                             	                         </aura:iteration>

                     <aura:iteration items="{!v.records}" var="record">
                             <aura:iteration items="{!v.fieldsAPI}" var="fieldAPI">
{!record.fieldAPI}
                                 	                             </aura:iteration>
                     </aura:iteration>

   If I replace {!record.fieldAPI} with literal like {!record.Name} it gives what I required, but I want it dynamically here, without javascript way to create it there and append where I want.


Is there a way to identify what executable made a network connection?

I can identify open connections by   netstat -a  But I wonder if there is a simple way to identify what running exe is making the connection.


Breaking up 50mb KML file to under 10mb files?

I have a large 50mb KML file and we would like the file to be broken into smaller KML files so they can be placed on ArcMap.   How do I do that?


Where do I place my nether portals so they don't collide?

I am having trouble placing my nether-side portals so they connect to the correct overworld-side portals.  Note, when I started I wasn't aware that the Y-coordinate mattered; I figured the proximity thing was only based on x and z coordinates.  Anyways, first I built an overworld portal at -16, 196, 163. It's three wide so the actual portal blocks are -15/-16/-17, 196, 163. I then went into the nether via another portal and built one at -2, 51, 20. When they're both lit, they connect properly and no other portals collide. Praise the miners!  (The overworld portal would take me to the spawn chunks, you see.) Next I set out to build an Iron Foundry (Ethos' design, .) It requires a small nether portal, which wound up needing to be placed at -14, 184, 210/209. I figured, build another portal at -2, 51, and 26 to make them line up nicely.  No digs. Now the nether side of the spawn chunks portal takes me to the over side of the iron foundry portal, and the overworld side of the spawn chunks portal takes me to the nether side of the iron foundry. Both iron foundry portals link to each other.  summary of portal locations:  overworld:   spawn chunks: -16, 196, 163 iron foundry: -14, 184, 210   nether:   spawn chunks: -2, 51, 20 iron foundry: -2, 51, 26   My actual question: where can I move my nether portals so they work properly? I can move the spawn chunks portals if need be, but the iron foundry overworld portal needs to be there (otherwise I might as well scrap the whole project.)  Thanks for any help!


How to set the spacing (vertical) between two lines of the document? What is the standard spacing?


If I have German travel document for refugees do I need visa to Visit  Australia? And what is the best visa to travel to Australia to attend my daughters wedding?


Is it normal to get a badge for reviewing edits when I'm not allowed to review edits?

I saw that I received the 'Custodian' badge for reviewing suggested edits, but my rep doesn't allow me to review suggested edits.    I don't remember the action that lead to the attribution of this badge, but I never got to review a suggested edit.


In what cases is it appropriate to refer to unknown gender as she?


PhD student who should be the correpsonding author

I am a PhD student, should I put my supervisor as the corresponding author, will this increase my chance of publication?


Does text in brackets invoke the "an" vs. "a" rule?

I saw the following sentence today:     It has a (admittedly poor) government.   I agree that without the text in brackets, this sentence is correct:     It has a government.   But when I read the original sentence, I want to change it to:     It has an (admittedly poor) government.   My question is, when deciding "an" vs. "a", do I consider text insight brackets or not?


Is it possible to call a function which is declared below in bash?  Example  if [ "$input" = "yes" ]; then     YES_FUNCTION elif [ "$input" = "no" ]; then     NO_FUNCTION else     exit 0; fi  YES_FUNCTION() {   .....   ..... }  NO_FUNCTION() {   .....   ..... }


Connecting body parts or clothes problem

I need help guys, I kind of need this for a project or something. First picture is when I haven't connect everything but when I press " Ctr + J " the result is the next picture. I'm really a noob in blender so what seems to be the problem or are there other ways to connect all the body parts / the clothes? The problem is the eyes and the goggles.


biblatex: separating publications of a specific author in the bibliography

The question I want to ask is related to the answer of this question:  .   My aim is to separate my bibliography into two parts : one part for a personnal bibliography, and a second one for the regular bibliography.  To do that, I use the technique of the post I cited :  \documentclass{article} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage[style=alphabetic,maxnames=6,natbib=true]{biblatex} \bibliography{biblatex-examples}  % Variants of each could be added \newcommand{\firstname}{Donald~E.} \newcommand{\lastname}{Knuth}  \DeclareBibliographyCategory{byname}  \DeclareIndexNameFormat{byname}{% Test could be refined   \ifboolexpr{ test {\ifdefstring{\lastname}{#1}}            and test {\ifdefstring{\firstname}{#3}}               } {\addtocategory{byname}{\thefield{entrykey}}} {}}  \AtDataInput{%   \indexnames[byname]{author}}  \begin{document}  \section{Knuth's books}  \begin{refsection}  \nocite{*}  \printbibliography[category=byname,heading=none]  \end{refsection}  \section{Not Knuth's books}  \printbibliography[notcategory=byname,heading=none] \end{document}   The problem is that only the second bibliography appears, and when I remove the refsection, then all the bibtex entries of my input files are printed, separated as they should.  EDIT: the aim is to have all publications (even the ones not cited) by author knuth in the first section and all the other cited publications in the second one.