What are the technical differences between using a DSLR viewfinder and live view?

The earlier question  asks for practical advantages of optical viewfinders. But what's the technical difference, and why does a camera behave differently in each mode?  For example, on my Nikon D5100:   Slower auto-focus — I saw this explained in the related issue, but just partially: "The other major drawback of live view is that because it requires the mirror to be locked up, it means that the auto focusing mechanism is unavailable."  option not available. No . The manual says that it's dangerous to shoot direct light, when it's on live-view. There's no range finder available.   Why are all these things different?  Live view also has some advantages, like:   automatic scene selection grid lines on the screen other smaller things, like possibly easier operation on a tripod where the viewfinder might be inconvenient to look through   Some of these things, like the tripod operation, are natural. But are there technical reasons the others can't be done with an optical finder? Are there other advantages enabled by live view for technical reasons?


How to avoid deformations in Make Human imports?

I am importing and posing characters (started with Blender 2.76b a week ago) from Make Human (V1.0.2). However frequently I get some awful deformations mainly at the shoulder and wrist - see screen shot. It is almost impossible to pose them with their hands behind the head.  Any ideas or hints? Please!


What was Galactus feeding on in planets?

Often Galactus fed on planets with lifeforms, but the lifeforms could leave and he would still feed. Also not every planet he eats needs to have life.  So what is he looking for in a planet?


Another word for a troll not on the internet

The definition of an internet troll:     In Internet slang, a troll (/ˈtroʊl/, /ˈtrɒl/) is a person who sows   discord on the Internet by starting arguments or upsetting people,   by posting inflammatory,[2] extraneous, or off-topic messages in an   online community (such as a forum, chat room, or blog), either   accidentally[3][4] or with the deliberate intent of provoking readers   into an emotional response[5] or of otherwise disrupting normal   on-topic discussion.[6]      This sense of the word troll and its associated verb trolling are   associated with Internet discourse, but have been used more widely.   Media attention in recent years has equated trolling with online   harassment. For example, mass media has used troll to describe "a   person who defaces Internet tribute sites with the aim of causing   grief to families."[7][8]     What is the equivalent for a person who does this type of thing in real life (non-cyber) troll?


Integrable function $f$ on $\mathbb R$ does not imply that limit $f(x)$ is zero

1) Construct a continuous function $f$ on $\mathbb{R}$ that is integrable on $\mathbb{R}$ but $\displaystyle\limsup_{x \to \infty} f(x)  = \infty$.  I took the function that is equal to $n$ on $[n, n + 1/n^{3})$ and made it continuous by saying that $f$ is the line segment joining $n$ and $n+1$ on $[n + 1/n^{3}, n+1)$. But I am failing to prove this integrable. For this, $\lim f(x) = \infty$ but how do you prove in general, if limit does not exist that $\limsup$ is infinity?  2) Prove that if $f$ is uniformly continuous and integrable on $\mathbb{R}$ we have $\displaystyle\lim_{|x| \to \infty} f(x) = 0$.  Any help is appreciated.  Thanks


A subgroup of a cyclic group is cyclic - Understanding Proof

I'm having some trouble understanding the proof of the following theorem  A subgroup of a cyclic group is cyclic  I will list each step of the proof in my textbook and indicate the places that I'm confused and hopefully somewhere out there can clear some things up for me.  Proof Let  G be a cyclic group generated by "$a$" and let H be a subgroup of G. If $H = {\{e\}}$, then $H \text{ = <e>}$ is cyclic. If $H \neq \space {\{e\}}$, then $a^n \in H$ for some $n \in \mathbb{Z}^{+}$. Let $m$ be the smallest integer in $\mathbb{Z}^{+}$ such that $a^m \in H$. We claim that $c = a^m$ generates H; that is, $$H \space = \space <a^m> \space = \space <c>.$$ We must show that every $b \in H$ is a power of c. Since $b \in H$ and $H \leq G$, we have $b = a^n$ for some $n$. Find $q$ and $r$ such that $$ n = mq + r \space \space \space \space for \space \space \space 0 \leq r < m,$$  Alright this is the first part in the proof where I start to get confused. Where does the division algorithm come from and why are we using it? The proof continues as follows:  $$a^n = a^{mq + r} = (a^m)^q \cdot a^r,$$ so $$ a^r = (a^m)^{-q} \cdot a^n.$$ Now since $a^n \in H$, $a^m \in H$, and $H$ is a group, both $(a^m)^{-q}$ and $a^n$ are in $H$. Thus $$(a^m)^{-q} \cdot a^n \in H; \space \space \space \text{that is,} \space \space a^r \in H.$$  This is another point at which I’m a little confused. What exactly about $a^n$ and $a^m$ being elements of $H$ allows us to accept that $(a^m)^{-q}$ and $a^{n}$ are in $H$? The proof continues:  Since $m$ was the smallest positive integer such that $a^m \in H$ and $0$ $\leq r$ $< m$, we must have $r = 0$. Thus $n = qm$ and $$b \space = \space a^n \space = \space (a^m)^q \space = \space c^q,$$ so b is a power of c.  This final step is confusing as well, but I think its just because of the previous parts I was confused about. Any help in understanding this proof would be greatly appreciated


Question about sanitize and sql injection in php

I am trying to build an application that detect if user's input(first 20 byte) exist on  my database.  But I am stuck at sanitizing and making placeholder to it. Especially, this part $stmt->execute(), any advise and recommendation will be appreciated!  <?php     echo <<<_END             <form method='post' action='test.php' enctype='multipart/form-data' >                 Tester: <input type='file' name='uploadfile'>                 <input type='submit'>             </form>     _END;      if($_FILES){         require_once 'login.php';         if (!$conn) {             die(mysql_fatal_error());           }         $type = $_FILES['uploadfile']['type'];         if($type == "text/plain"){             $name = $_FILES['uploadfile']['name'];             $fh = fopen($name, 'r') or die("File Does not exist");             $content = file_get_contents($name, FALSE, NULL, 0, 20);             $content = sanitizeMySQL($conn, $content);             fclose($fh);             $stmt = $conn->prepare("SELECT * FROM storage WHERE mydata like ?");             $stmt->bind_param("s", $content);             $stmt->execute();             //$stmt->bind_result($content);             if (!$stmt) {                 echo "Not Exist";             } else {                     echo "Exist";             }         } else {             echo  "txt only <br>";         } }


What's this function argument notation called?

When you have a function $f(x)$ and you're interested in its value at $x=0$, you usually write $$f(0)$$ But I'm looking for the notation with $f(x)$ followed by a vertical line and a sunken x assigned to it's value, somewhat like this: $$f(x)|_{x=0}$$ What do you call this notation? (Also, how would one officially write it in a latex document?)


Does Auto White-Balance Really Work? How?

I don't understand how the camera can work out the white-balance to use in a given scene.    I could see it working if there is an obvious colour-cast (for example: under fluorescent lights).  Does it compare the histograms from the different colour channels and try to make them match up to some degree? Even then I can only imagine it working reliably in very well-defined circumstances.    Can someone explain how it is implemented in today's cameras, and how well it typically works?


Some people speculate that the mysterious dark matter in the universe could be tiny black holes. But on the other side, could dark matter particles attract each other by gravity and finally form a black hole? Since dark matter is even more abundant than normal matter, the dark matter black hole should not be rare.


If a black hole is made by a hypothetical particle above Planck mass and it has angular momentum will it be a ring Kerr black hole?

If a single subatomic hypothetical fundamental particle incapable of decay (such as an electron) with a mass exceeding Planck mass possessed angular momentum and it collapsed into a black hole, would it be a Kerr ring black hole?


Transferring via Origin: 'Star Wars Battlefront'. Can I resell?

I'm a mac user and tried to install the new star wars battlefront, which is Windows only. I purchased the for PC 'download only' disc from EA, which includes only a  code for installation.   I downloaded origin, setup an account, and added the code that I got from EA. Then I just got a screen telling me 'Game only available on Windows' and thought, 'oh, balls'. So now I want to sell the game code on ebay.     The question is, will another user have a problem installing and playing this game using this code? Is there a way to remove it from my account to allow for it to be used on another user's origin account?


Can stolen iPhone still be tracked using Find My iPhone after restoring?

My iPhone has just been stolen. The chances of the thief resetting is high but will still be locked to my iCloud.  If they reset it and connects to a Wi-Fi in hope it's not locked to iCloud will Find My iPhone tracking still work?


How can I Forward a subDomain to a specific port?

My apologies if this has been asked before. I haven't found an adequate solution so... yeah.  When a specific domain, "example.com" is accessed, I want it to act normally. In other words, it should go to port 80 as expected and interact with Apache.  When a different sub-domain, "mc.example.com" is accessed, I don't want it to access the Apache web server. I want it to go interact with a different program, listening on, say, port 4096. Thus, going to "mc.example.com" would have the same/similar function as "example.com:4096". The service is Minecraft  When a third sub-domain, "vpn.example.com" is accessed, I want it to go interact with a different service, listening on, say, port 687. The service is openVPN  Is there a simple way to do this? If so, what is it? Does it involve configuring a VirtualBox in Apache (a method I tried and failed miserably. xD)? Or can it be done using ipTables? If it means anything, I am running 32-bit Centos 5.5(I believe. Its a recent version of Centos)


How do I get brightness controls working on a Sony VAIO Fit 15E?

I have a problem with my brightness setting. When I decrease brightness to 1 and I reboot the computer, it reset to maximum brightness value. I tired to adjust it and decrease it again to 1. Why the setting doesn't save the last brightness setting for me? How can I save the current value and restore it after reboot via programming?  I also tried to add echo 0 > /sys/class/backlight/intel_backlight/brightness in /etc/rc.local file, but after rebooting, it reset to the maximum again.   My laptop model is Vaio SVF1521DCXW.


If I have two physical cores and hyperthreading enabled, is the CPU load computed against two cores or fours?  In other words, is complete load indicated by 2.0 or 4.0?


Why I can write into a file which I don't have permission to?

user1@server1:/locdisk/data/a$ touch test user1@server1:/locdisk/data/a$ ll  rwxrwxrwx 1 user1 user1 1 AUG 30 11:11 ./ rwx------ 1 user1 user1 1 AUG 30 11:11 test  user2@server2:~$ ssh server1 user2@server1:~$ vi /locdisk/data/a/test   And then modify test by 'w!'  user2@server1:~$ ll /locdisk/data/a/  rwxrwxrwx 1 user1 user1 1 AUG 30 11:11 ./   rwx------ 1 user2 user2 3 AUG 30 11:11 test   How could it be??  My Ubuntu has a bug? How should I fix it?


Modification of the law of large numbers for Binomial random variables.

Let $(p_n)_{n \geq 1}$ be a sequence of numbers in $[0,1]$ such that $p_n \to p$. Let $(X_n)_{n \geq 1}$ be a sequence of independent random variables where $X_n \sim Bin(n,p_n)$. Is it true that $X_n/n \to p$ almost surely as $n \to \infty$? In such case, how can it be proved?


How do I disable microphone volume auto-adjusting?

My coworkers started yelling at me today because apparently I started screaming in their ears during a Google hangout. And sure enough, when I go to the Microphone settings dialog, I can see the level being auto-adjusted constantly; sometimes way too high.  I don't think this has happened previously; at least nobody ever complained. Can I find out who is doing that auto-adjusting, and more importantly, can I turn it off? I couldn't find any related setting in the recording device settings.  I'm using Windows 7 64bit, and (I'm mentioning this because the theory has come up that it may be related) I don't have Skype running.


leaving oil on a frying pan for use later

I live alone, so I cook for myself. And often times I cook steaks/burgers on a pan, and later in the same day would return to use the same pan/oil without washing/using new oil.  Is this safe, or should one wash and use a new pan before cooking every steak/burger patties? I've actually done this for more than a day once (cooked burgers in the morning, steaks later that afternoon, and then burgers for the next morning).


What is the equivalent for this in VB.net  int? x;  int s;  s = x ?? 5;


Firstly, I saw topics such as 'How to install manually a software...' but it did not solve my problem. I've downloaded Scilab 5.4.1 from the official website and I extracted the .tar.gz file into:  /home/scilab-5.4.1  I then tried the commands below, but they gave several errors:  $ cd scalib-5.4.1 $ configure        @1 $ make             @2 $ make install     @3   these gave the following messages in the terminal:  @1: configure: command not found @2: make: *** No targets specified and no makefile found.  Stop. @3: make: *** No rule to make target `install'.  Stop.   I tried following commands:  $ cd scilab-5.4.1 $ cd bin $ scilab   which gave the message:  The program 'scilab' is currently not installed.  You can install it by typing: sudo apt-get install scilab


Why is the phase of reflected wave during formation of standing waves 180 degrees?

Every time I read an article/text about standing waves they seem to specifically mention that whenever a wave pulse hits a hard boundary it gets reflected back with it's phase changed through 180 degrees. My question is why and how does this happen? Suppose two wave pulses are traveling on a string towards each other. They have the same amplitude except one of the waves are inverted so that when the two superimpose completely the net displacement of the string at that instance becomes zero. Where does the wave energy 'vanish'? And how do the waves continue their motion hence as if nothing out of the ordinary happened?


Regex: question about ?= and any characters

I have a target string like:     "addr: line1           line2        tel:12345678"   note: between line2 and tel, there might be 1 or multiple new lines:\r\n or \r\n\r\n or more. The result I want to get is as below:     "addr: line1           line2"   no \r\n under line2.  My questions are:  1)If I use      /addr[\s\S]+(?=(\r\n)+tel)/   , i will get the addr without tel, but I can't get rid of "\r\n"s under "line2", how could I do that?  2)I know [\s\S] represents any characters including \r,\n, and (.|\n|\r) can do that too.   But why [.\n] can't? It's just like the syntax of[\s\S] isn't it?  Thank you very much!


How to use Transmission BitTorrent Client with proxy?

I use Transmission BitTorrent Client v. 2.84 (14307). Could you please help me to find it's proxy settings? That's what I see on it's preferences/network tab:


I want to align the elements of an eqnarrray between 2 columns. \usepackage{multicol} \usepackage{color,amsmath} \begin{document}      \begin{multicols}{2}         \begin{eqnarray*}         f'(x)&=&\frac{d}{dx}\left[\frac{5x^2}{x}\right]\\         f'(x)&=&\frac{\dfrac{d}{dx}8x}{\dfrac{d}{dx}8x}\\         f'(x)&=&\frac{\dfrac{d}{dx}9x^2}{\dfrac{d}{dx}x^2}\\         f'(x)&=&\frac{d}{dx}\left[\frac{x-5}{x^2-25}\right]         \end{eqnarray*}                  \color{red}\begin{eqnarray*}         f'(x)&=&5\\         f'(x)&=&1\\                  f'(x)&=&9\\         f'(x)&=&-\frac{1}{(x+5)^2}         \end{eqnarray*}     \end{multicols}  In context, the elements of the first column are examples and the elements of the second one are the answers of those examples. But they´re not vertically aligned


Why is there no space between the \x number and the text in my tikz nodes? There is a space in the final one in which I manually inputted a number instead of using a forloop. That's what I'd like the rest of them to look like.  \documentclass{article} \usepackage{tikz}  \begin{document}  \tikz { \draw[gray, very thin, opacity=0.2] (0,0) grid (6,13); \foreach \x in {0,...,5}  \node[right, rotate=90] at (\x,2) {\x I want a space between this text and the number before it!}; \node[right, rotate=90] at (6,2) {6 The space should look like this one!}; }  \end{document}    EDIT: Regarding the duplicate things, I assumed that the problem had something to do with being inside of a tikz or node environment, so I thought it was different from the other threads that mentioned spacing.


I have been using LaTeX forever, but strangely just realized I've never had to plot a graph in it. The graph is seen here:  and the equations are here  I want to use \usepackage{pgfplots}  However I am open to using other packages if you recommend any? Thanks


Walking a number of kilometers in one direction in digital map

Is there a recommended way to calculate the new position of a point in a map when "moving" the point for example 10 kilometers to south ?  Example:  Point = {     lat : 'LATITUDE VALUE',     lng : 'LONGITUDE VALUE' }   Now we want to get the new Position of the Point when the Point is moving like this:  Point_2 = movePoint(Point, 10, 'kilometers', 'south'); // returns lat,lng   Now I am looking for a recommended way to calculate something like this or maybe with a framework like turfjs (I think turfjs is not providing this ?)


When does the Community ♦ moderator vote to close a question?

Occasionally, there are questions for which one of the close voters is the Community ♦ user. When does this happen, and why? What is the difference between this and a deleted user?  For instance, one of the close-voters  is .     was closed by "Mik" but his profile wasn't linked, which implies the user was deleted.    From  it is clear that Mik's profile is now deleted and hence his name is not linked to his profile.


Does wearing a topper change your hitbox?

I was just wondering if I put on a topper if it changes my hit box at all? Or if different toppers have more of a benefit over others?


When someone uses the phrase "percent increase" what does that mean?   For example, if something took 4 seconds before and now it takes 1 second, would that be a 400% increase?


Which path $A$ or $B$? (Gateway to Heaven Puzzle)

How can I solve this question mathematically?  There are two paths $A$ and $B$, in each path there is a person, one of them is a liar and the other is a truth teller. I want to know the right path, so what is the question that I should ask only one of them. and be sure about the right path?


Is it possible to wipe an entire iCloud Photo Library?

I've been using the beta iCloud Photo Library for a week and a bunch of photos got duplicated and I'd like to wipe all the photos out and start over.  I have backups of all the photos and have turned off iPhoto Cloud Library on all iOS devices. When I log into the web app - it still shows dozens of albums and I can delete all the photos, then go to deleted items and then purge them, but the ghost albums are still there messing things up.  I've turned off the library entirely and you can see there is a 30 day waiting period.     If I click on albums, there are pages of them and no delete button anywhere. If I turn on the library on an iOS device, data starts flooding back as if I wanted to recover the photos.  I don't want to recover anything, I want a clean wipe and clean slate.  Currently, there are 7807 photos in the deleted album and no way to mass delete them. I have 31 albums that show up in iCloud and no way to delete them.  Is there some way to accelerate this or must people wait a month for a corrupt library to eventually be purged to start over?  (I have tickets open with AppleCare after  and it's escalated to engineering, but I was informed that it might be a week or two before it gets seen :-( Perhaps someone has a better idea to clear things out or noticed something I've missed.)


In my visa application I stated that I planned to arrive in the UK on 1st September, but me and my family now want to enter the UK on 13th September. Will that be a problem?


What happens if LEDs do not get enough current?

I'm building a lighting fixture using big led panels.   The LED panel says it requires 7 amps @ 12 volts, but the power supply I have is only rated to 4 amps @12 volts.   What will happen? Will it damage the power supply, or just not light up all the way?


How to make Filtered Subscriptions work for empAPI and Push Topics?

I have a very simple component:  PushTopicTest.cmp <aura:component implements="flexipage:availableForAllPageTypes" access="global">     <lightning:empApi aura:id="empApi"/>     <aura:handler name="init" value="{!this}" action="{!c.onInit}"/> </aura:component>    PushTopicTestController.js ({     onInit: function(component, event, helper) {         var empApi = component.find("empApi");         empApi.setDebugFlag(true);         empApi.subscribe("/topic/AccountChanges?Id=0011t0000033C9QAAU", -1, function(message) {             console.log("Event Received : " + JSON.stringify(message));         });     } })   I also have PushTopic created like this:   What I am trying to do, is to only receive events for specific record Id. Based on documentation this should work: "/topic/AccountChanges?Id=0011t0000033C9QAAU", but it doesn't.   "/topic/AccountChanges" works though.  I've tried Id='0011t0000033C9QAAU' aswell, but no luck.  Do you know if it is possible at all?


Get "wp_get_nav_menu_items" to sort alphabetically

I am trying to return a menu in alphabetical order and not the order set by the user in the backend. I have this code but it is not alphabetical:  $args = array(     'order'                  => 'ASC',     'orderby'                => 'title',); $menu= wp_get_nav_menu_items($menu->term_id, $args);


Prove that $3^{500} + 5$ is divisible by $14$ using theory of congruences.

Number theory question, based on the theory of congruences.


I am filling out a Schengen visa form for Iceland but as I will be travelling to multiple countries, I have booked multiple hotels.  The area in the form to fill out hotel details is quite small, so I am wondering which hotel details to add there. Will it be my first stay only or all hotels? Or will it be my first stay in Iceland, which is not my first destination?


AT-ATs managed to get to the surface of Hoth - during the Battle of Hoth.   Why didn't the Empire send other forces in alongside the AT-ATs?     Two reasons to land the other troops:   Pretty much all modern Earth militaries learned early on that armored vehicles themselves are less effective than combined assaults (support by artillery, infantey and air).  As it was, rebel air force (groundspeeders) very effectively opposed the AT-ATs, without being hindered by Imperial air support.  And Luke took down AT-AT because there were no Imperial stormtroopers to cover his approach on foot. If you land all your troops - some of them could take the shield down during the course of AT-AT attack.  As such, sending in only AT-ATs first gives rebel forces more time to escape.


How difficult is it to collect the full set of toys from McDonald's Happy Meal?

Say there are 12 different kinds of toys available and you don't know which one you'll get as a free gift when you buy a Happy Meal.  How many Happy Meals do you have to order before you can collect the whole set? Assuming the toys are allocated randomly and the number produced is the same for each toy.


How to tell where a particular software is coming from

In the University repair shop I work for, we see a lot of the same viruses/spyware/adware/ransomware in a lot of cases.  Is there any way we can trace back to where a file or software package originated from in order to advise customers away from that location, whether that be on the Internet or a file share of some sort?


Any way to check the clock speed of my processor?

Is there any way to check at which clock speed my processor is running?  I have already tried cat /proc/cpuinfo but the clock speed I'm running isn't showing. I know Ubuntu 12.04 (Precise Pangolin) requires 700 MHz and VGA, but will an AMD Mobile Sempron work?


Why is there no current flow when I connect two opposite terminals of two separate batteries?

I don't understand this..maybe there is something wrong with my understanding of battery or electricity.  I am learning about electricity more deeply this time. So please bear with me.  So lets begin with what I know:   follow of current occurs when there is voltage drop. voltage drop happens when there is imbalance in charge. a battery is basically two separated chemicals. One side with electrons to spare and other side that needs electron to balance itself. which is imbalance in charge. When both sides are connected + side snatches electrons from - side. (And if there is a medium, conductor, then first electrons are taken from conductor that in turn snatches from - side, which not being able to keep electrons lose them and give up those electrons, we label it as excessive.)   The analogy i was taught with used marbles in pipe... When one side has excessive marbles And this pipe is connected to other side that has no marbles the marbles will instantaneously start falling out so even though marbles from container with excessive marbles haven't traveled there yet, they still start falling because filled side marbles are pushing marbles in pipe and which in turn push the last marbles in pipe out.   1st, Aren't electrons pulled by atoms that can use more electrons, and not move because one side is overfilled with electrons so they can't wait to push some out.  Questions:    if I connect a conductor to positive side of a battery, shouldn't it make all electrons/marbles fall into empty container as empty container will pull marbles as atoms need electrons? if I connect two batteries' only opposite sides to each other shouldn't they drain (balance the each other out, cancelling all - & + charges)?


Is it always true that $\det(A^2+B^2)\geq0$?

Let $A$ and $B$ be real square matrices of the same size. Is it true that $$\det(A^2+B^2)\geq0\,?$$  If $AB=BA$ then the answer is positive: $$\det(A^2+B^2)=\det(A+iB)\det(A-iB)=\det(A+iB)\overline{\det(A+iB)}\geq0.$$


Simple georeferenced 3D data format for building models

I am looking for a simple georeferenced 3D-data format to store very simple building models. Each building should be represented as a number of poylgons, semantics do not matter. It would be ideal if this format is readable via ArcGIS, but that is not an absolute requirement.  I know there is GML/CityGML but I am looking for something simpler that ideally has either a JSON or XML serialization.


Integral of the form $\int_0^\infty \exp{\left(-\frac{(a+bx)^2}{x}\right)}\frac{dx}{\sqrt{x^3}}$

I am currently working on the following improper integral:     Let $\sigma>0$ and $H>1$. I would like to show that   $$ \int_0^{\infty} \frac{\frac{\ln H}{\sigma}\exp \left( \frac{- \left( \large \frac{\ln H}{\sigma}+ \frac{t \sigma}{2} \right)^2}{2t} \right)}{\sqrt{2 \pi t^3}} \,dt = \frac{1}{H}.$$    This is the result indicated in my book and also on Wolfram Alpha, but I do not know the substitution required to evaluate this. Any ideas?


Might / May / Could / Would have been able to

Are they always interchangeable or subtle meaning differences occurred when we prefered one to another?  Here some sentences I came across. Can we rewrite these sentences with keeping their meanings?     General: We may have been able to save victims, we'll never know.(original sentence)   Possible variations:     General: We might have been able to save victims, we'll never know.      General: We could have been able to save victims, we'll never know.      General: We would have been able to save victims, we'll never know.     Another example sentence :     If he had worked harder, he may /might/could/would have been able to   get A at the exam.     Another example sentence :     I may/might/could/would have gone to university but I decided to get a   job.


Stop executables and built-ins from interpreting a string argument starting with - as a switch?

Let's say I want to search a file for a string that begins with a dash, say "-something":  grep "-something" filename.txt   This throws an error, however, because grep and other executables, as well as built-ins, all want to treat this as a command-line switch that they don't recognize. Is there a way to prevent this from happening?


Having trouble centering a border w/ txt inside of an image

As the title states i've tried searching but i cant get a border w/ text inside of it to center inside of a background image. As of right now it just centers but sticks to the top (if that makes sense).    .banner {   background-image: url("http://www.hdwallpapers.in/walls/early_snowfall-wide.jpg");   background-size: cover;   background-position: bottom center;   height: 400px;   width: 100%; }  #banner-content {   border: 1px solid #FFF;   margin: auto;   text-align: center;   width: 40%; }

Random misc text for the purpose of practicing

     Thanks for the help in advance!


Is there a relational database with GUI for Mac similar to Microsoft Access or the like?

I need a desktop database that will have a need for extensive 1-many, many-1, and many to many relationships.   I've built this kind of app with Microsoft Access, which I don't love, but does combine the database and a useful GUI.  Relational Database apps for Mac seem pretty thin. Filemaker's "relational" features are not much like anything I've used before.   Panorama is interesting, but also not really relational, no SQL, etc.   Is there a database system for Mac that functions similar to Microsoft Access?  UPDATE: While I am quite happy to use most of the tools suggested so far, I am looking for something which has an interface that non-technical types can use. It doesn't have to be as sophisticated as Access (which isn't all that sophisticated, I guess), but something more than a management tool. I should have been clearer; I thought the parallel to Access would speak for itself.  As far as I can tell, Filemaker is not an SQL database, though I guess it can speak to SQL databases in some way, so maybe I could kludge something together there. I'll try out the MySQL and SQLite tools as well, though they appear to be management tools...


How to install Printer Drivers with rpm extension

I have a Canon Pixma P200 and I have downloaded the Linux drivers from their site. I extracted them and I found 4 .rpm files. I decided to open terminal and type in  /home/rsbayani/Desktop/cnijfilter-p200series-4.00-1-rpm/packages/cnijfilter-p200series-4.00-1.x86_64.rpm -i   but it doesn't work, it just gives me permission denied. I also tried the code below  /home/rsbayani/Desktop/cnijfilter-p200series-4.00-1-rpm/packages/cnijfilter-p200series-4.00-1.x86_64.rpm --install   But like the one above it, it ssill gives me a permission denied. I am using Ubuntu 14.04 LTS. Any help would be gladly appreciated.


\documentclass[12pt,a4paper]{article} \usepackage{chemfig} \begin{document}     \schemestart     \chemfig{[:-210]N*6((-C(=[:-90]S(-[:-60,,,,->]Hg(-[:180]R)(-Cl)))(-NH(-[:-90]NH_2(-[:-120,.8,,<-]))))------)}     \schemestop \end{document}   I want to draw arrow between two chemfig structures as per below


What packages do people load by default in LaTeX?

I'm getting the impression from reading the answers written by some of the real experts here that there are quite a few little packages that just tweak LaTeX2e's default behaviour a little to make it more sensible here and there.  Rather than try to pick these up one by one as I read answers to questions (and thus risk missing them), I thought I'd ask up front what LaTeX2e packages people load by default in (almost) every document.  As this is a "big list" question, I'm making it CW.  I don't know if there are standard rules across all SE/SO sites for such questions, but on MathOverflow the rule is generally: one thing (in this case, package) per answer.  I guess that if a couple of packages really do go together then it would be fine to group them.  This is perhaps a little subjective and a little close to the line, so I'll not be offended if it gets closed or voted down!  (But please explain why in the comments.)  Also see our community poll question:


I'm working on a classification problem and I have a very high F1 baseline of 85%. I have trained three classification models and I want to know which one is the best. How I can do so?  I tried two ways:   To compare each model against the baseline using paired t-test. So I have tests like:  baseline vs. model 1 | baseline vs. model 2  | baseline vs. model 3   That tells me that only model 1 is significantly higher than the baseline and so I concluded that model 1 is the best. Is this a valid methodology given that usually classification models are compared against baselines? To compare all models in one fell swoop with one-way ANOVA. So entered the information of modals 1-3 AND the baseline with gave me a p-value of 0.02 indicating that there is a difference in means. Yet, with a post pairwise test, there is no significance between any of the pairs.   Which method is the correct one?


Change the tags from OP's question not displayed

If i change the tags a Question has, the old tags are displayed.  SO should reload the views/tags-container on the upper right.


Quiz:     Validate a line in quotes. Return one (and only one) backreference   with the text. ie: quoted text from "quoted text". Note: a \ escapes   any char, so \" is a valid escape.   I know it's a common question and already been answered lots of times, but the problem is that no answer fits the correct for this quiz.  I started from simple (empty quotes are valid, should return null value in the backreference):  (?<=\s|^)"(.*?[^\\])?"(?=\s|$)      It shouldn't match "text"with quote". Only escaped quotes are allowed   inside the main (opening and closing) quotes. You could use [^"].   Tried with backreferencing  ((?<![\\])['"])((?:.(?!(?<![\\])\1))*.?)\1      You're using more than 1 group. Please only allow your pattern to set   one backreference.


Possible to set window to full size in Yosemite when pressing green button?

In Yosemite when I press a window's green 'fullsize' button, it will be full size, but somehow differently from earlier way, I can not use change between windows shortcut, because window will claim the whole screen. Any idea how to use it earlier?


Can I publish my own books for use with D&D 5th edition?

I've had artistic skills since I was a kid and I love D&D, and I want to create some books. I would be trying to fund them with KickStarter — 100 new monsters, 100 NPCs, 100 map tiles, and stuff like that. I would be doing all the art.  Is this something I can do? Is copyright a problem, and if so is there any way to avoid those problems?


how can I clear complete package traces in ubuntu devices? I am trying to uninstall a package from golang binary. After uninstall when I do dpkg -l /apt-cache  still I am getting package name and configuration files information. Is it possible to remove those traces or uninstall the package using shell script by running script from package maintainer scripts?


Does a function being Lebesgue measurable imply it is integrable? ($f\colon [a,b]\to\Bbb C$)

If we have a function defined from $[a,b]$ to the complex numbers, does that function being Lebesgue measurable imply it is also integrable? (a member of $L^1$?)


It is evident from Fibonacci sequence mod(3) $$ 1,1,2,0,2,2,1,0,1,1,2,0,...$$ that every fourth term of the Fibonacci sequence is a multiple of $3$.  Similarly for mod(5)  $$1,1,2,3,0,3,3,1,4,0,4,4,3,2,0,2,2,4,1,0,1,1,2,....$$ suggests that every fifth term in the Fibonacci sequence is a multiple of $5$.  It has been shown that every positive integer n divides the terms of the Fibonacci sequence periodically. The period depends on n .  Question: Is it possible to express the period p as a function of n? For example we have to get p(3)=4 and p(5)=5.


I have an issue with crashing reputation widget when it's added to the home screen. When I add it for the first time, it says "Please login before using this widget" (even though the app itself is logged in already). So I open the app, go back to the home screen, add the widget again and it crashes (and it's not added to the home screen). When I'll try to add it again, it says "Please login before using this widget" again. And then it just repeats - "Please login...", execute the app, crash, "Please login...", etc.  Restart of the device didn't make any change.  I have found .  My set up:  Stack Exchange app version: 1.0.89 Android version: 5.0.1 Device: Samsung Galaxy S4


How can I send an email using a template?

I have created a email template in ExactTarget API and I want to use it executing XML from SoapUI.  Is there any tutorial or examples of how can this be done?  I'm new at this and I'm not sure how ExactTarget really works.


I have been provided with a number of blank shapefile to use as a schema for Work As Executed data. I have a survey in DWG format, from which I export data as a CSV file.  Is it possible to import this directly into an existing shapefile layer?  I can only see that you can create a new layer, but would like to avoid this step if possible.  Ideally I would be able to map some of the attributes also, but even the geometry would be useful.


nginx suspicious symbols warning in my nginx config file

My nginx configuration file is given below.  server {   listen 80;   server_name http://hg.rawdatatech.com;    location / {     proxy_pass http://127.0.0.1:8000;     proxy_set_header Host $host;     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;   }    location /static/ {     alias /home/home-garden/staticfiles/;   } }   When I run my Django application using this configuration I saw "suspicious symbol error" and connection refusing error nginx error log. Is there any wrong in my configuration?


For example , in page   What does the (2) mean in bpf(2) ?


How to detect three pressed keys on keybord by jquery and javascript

I need to detect which keys are pressed in keyboard to do some action upon that so I wrote script like this    $(document).keyup(function(e){      var map = {18: false, 17: false, 65: false};    if (e.keyCode in map) {      map[e.keyCode] = true;      if (map[18] && map[17] && map[65]) {         alert("Pressed Alt+Ctrl+a");      }    } });     but this script doesn't work so can any on help me in this please


Is there any way for Windows 7 taskbar to show the index of each app?

As you might know, the taskbar supports shortcuts like ⊞ Win + 1, ⊞ Win + 2. However I need to count the applications listed in the taskbar to find out the correct shortcut combination.  Is there any way for the Windows 7 taskbar to show the index of the application icon?


How to install apk in 2nd user of android 5.0 without playstore

So, android 5.0.2 doesn't allow side loading of apks for 2nd user (irrespective of whether it is guest or standard user). "Unknown Sources" is disabled and is uncheckable. And I use a pure Cyanogen Mod 12 (android 5.0.2) without any Google apps. So, there is no Play Store app.  But I have root access.  As shown in the pics, Unknown Sources is Uncheckable and installation is blocked.  (Click image to enlarge)     With this situation, how can i install apks on to the 2nd user account??  EDIT:   It seems Google intentionally (in the name of security) blocked sideloading apks for 2nd user in android 5.0.2. There is a bug report . And sideloading was reenabled in android 5.1.   I will post how to sideload apks on lolipop 2nd user using adb. If this can be done without adb please post.


I have the following problem. Here's the code I use  \documentclass[11pt,reqno,oneside]{report}  % openright \usepackage{t1enc} \usepackage[latin1]{inputenc} \usepackage[italian]{babel} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{setspace} \usepackage{hyperref} \usepackage{amsmath,stmaryrd} \usepackage{verbatim} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{float} \usepackage{caption} \usepackage{amsmath,amsthm, amsfonts, amssymb, amscd, enumerate,mathrsfs, color} \usepackage[all]{xy} \usepackage{amsmath} \usepackage{filecontents} \usepackage{hyperref} \begin{document} bla bla bla (see \ref{fig1}) \begin{figure}[H] \includegraphics[scale=0.5]{example-image} \caption{Description.}\label{fig1} \end{figure} \end{document}   Before the beginning of the figure, I write "bla bla bla (see \ref{fig1})" but, once compiled, in \ref{fig1} appears "??" instead of the number of the figure (which is 0.0.1)..  Can someone help me to solve this issue?  Thank You


I installed Ubuntu trusty 14.04 on my laptop along side windows dual boot. i have a problem with software center. i am unable to install any tool using this and also no updates were taking place. So i removed this software center and tried to re install it.  i used these codes sudo apt-get remove software-center then it removed. while i am trying to reinstall it using sudo apt-get install software-center it is showing   E: Package 'software-center' has no installation candidate  please help me.I need to install meep on this.


My app based on Mapserver contains dynamic layers and using PHPMapscript I modify MAPFILE->LAYER->DATA value based on a parameter that comes via GET. Or I could even use RegEXP in the LAYER->DATA ()  I know GeoServer has good REST support and most probably after my analysis this will be one of the reasons why I'm going to change.  Is it possible to define a GeoServer layer dynamically? E.G. I will create datastores for specific topics Layers (shp or raster) are stored following the criteria:  /data/layers/topic1/2013/201305/Layer1.shp, /data/layers/topic1/2013/201305/Layer2.shp, /data/layers/topic2/2013/201305/Layer3.shp  /data/layers/raster/2013/201304/Raster1.{png,geotiff,}, /data/layers/raster/2013/201304/Raster2.{png,geotiff,}  The layers change each month and absolutely I don't want to recreate them via GeoServer admin. Using OpenLayers I can pass a parameter mergeNewParams=YYYYMM and get the specific OWS out of the layer (WMS or WFS), but how?  Something like this when I define the datastore URL  in the connection URL I would like to specify file:/data//YYYY/YYYYMM/YYYYMMDDUTC Is it possible?  Thanks!


Why do I not see evidence of discrete energy in the spectrum?

The electromagnet spectrum looks to be continuous, yet energy is discrete. Shouldn't one see evidence of the electron's "quantum leap"? What's going on?     Moderator, please size my photo. Thank you.


Yes, I know, in stars, fusion occurs up to Iron(-56); but, I want to know if fusion past this nucleus can happen at all.  If so, the daughter element would move to the right of the peak and its parents (away from the point of Iron-56), on the following graph (meaning additional energy is required, as opposed to energy being emitted), right?    Would fusion of heavy elements still be considered a reaction?  This is not a duplicate of . There are multiple questions, including the one about the graph, that are definitely not encountered in the other post. My main question is also different; the question and answers do not speak about fusion of heavy elements, but their rapid capture.  My question itself has nothing to do with stars, the first statements purpose was to dismiss comments telling me that stars only fuse up to Iron-56!


How can I use the max() function with the update statement?

Currently I'm working on a project for class that requires us to create a front end for a mysql database. For learning purposes we're only using a single patient table without auto-increment implemented for the unique identifier (patient_id). We have to add new patients and to handle this we planned to have the C# front end to create a patient_id value of 0 and then have another statement to update this to be the max patient_id + 1. I'm aware this is not a practical/safe solution since it could cause errors but since it's only for testing and isn't linking with other tables I'm not too concerned.   I've attempted using basic queries to tackle this by setting patient_id = max(patient_ID) + 1 but this doesn't seem to work.   UPDATE patient set patient_id = (select max(patient_id) + 1 from patient) where patient_id = 0;   The output of this query says that I can't specify the target table 'patient' for update in FROM clause so I'm a little bit confused as to why it can't.


Linux how to highlight every occurrance of a word.

how do I highlight every occurrence of a word, Linux? I have tried to show the contents of my file but I don't know how to highlight specific words! please help!!


I am lost with my career path. I am questioning my ability to be in research field, academia or otherwise. What to do?

I am 31 soon to be 32, I don't know what I am doing with my life. I have a PhD in computational chemistry from a top 50 world ranking university. But, it did not turn out well and took too long to complete(6years), mostly my fault. I published few papers in applied journals, but my knowledge is just mediocre. My grades in the graduate courses were abysmal and many were irrelevant, so had to do a lot of self study. I believe I am just not smart enough for academia or research. Everyone in my research group and my friend circle were always high achieving as students, they have in-depth knowledge about their subjects. They also struggle during their PhD and Postdoc, but they are smart and knowledgeable in their fields unlike me. I have been a mediocre student throughout. In undergrad my GPA was 3.4, 3.75 in master's and PhD degree. I even flunked three subjects in my undergrad. I had to repeat them. I shouldn't have gone beyond my undergrad degree. I just got lucky with my master's degree and PhD completion. I would have been thrown out for not being upto the mark in any other university. I think my advisor and my committee members took pity on me. I have no industrial experience or internship experience. I am not confident about my career path. I like doing research and working in my research field, but I am no good. I just don't have the knowledge and intelligence to do work of any significance. No, it's not imposter syndrome. I am just making myself unemployable as time passes. I am suffering mentally and current situation is not helping. I am going to be stuck alone and poor in this world. Currently I am a postdoc with my advisor as she probably took pity on me. I have a year contract to be expiring next year in April. Any advice?


I put two brand new cars that I just bought in my garage, and because it said that the garage was full, I had to remove these two cars. They were a fully upgraded Sultan RS and a Voodoo Custom, both costing a total of 5.8 million. They have both gone missing and obviously I am quite upset, can anyone please help me track them back?


Where to find my Favorites in Google Chrome?

Where can I find my Favorites in Google Chrome ?  Where to find the folder that contains them ?


If I have two files (with single columns), one like so (file1)  34 67 89 92 102 180 blue2 3454   And the second file (file2)  23 56 67 69 102 200   How do I find elements that are common in both files (intersection)? The expected output in this example is  67 102   Note that number of items (lines) in each file differs. Numbers and strings may be mixed. They may not be necessarily sorted. Each item only appears once.  UPDATE:  Time check based on some of the answers below.  # generate some data >shuf -n2000000 -i1-2352452 > file1 >shuf -n2000000 -i1-2352452 > file2  #@ilkkachu >time (join <(sort "file1") <(sort "file2") > out1) real    0m15.391s user    0m14.896s sys     0m0.205s  >head out1 1 10 100 1000 1000001  #@Hauke >time (grep -Fxf "file1" "file2" > out2) real    0m7.652s user    0m7.131s sys     0m0.316s  >head out2 1047867 872652 1370463 189072 1807745  #@Roman >time (comm -12 <(sort "file1") <(sort "file2") > out3) real    0m13.533s user    0m13.140s sys     0m0.195s  >head out3 1 10 100 1000 1000001  #@ilkkachu >time (awk 'NR==FNR { lines[$0]=1; next } $0 in lines' "file1" "file2" > out4) real    0m4.587s user    0m4.262s sys     0m0.195s  >head out4 1047867 872652 1370463 189072 1807745  #@Cyrus    >time (sort file1 file2 | uniq -d > out8) real    0m16.106s user    0m15.629s sys     0m0.225s  >head out8 1 10 100 1000 1000001   #@Sundeep >time (awk 'BEGIN{while( (getline k < "file1")>0 ){a[k]}} $0 in a' file2 > out5) real    0m4.213s user    0m3.936s sys     0m0.179s  >head out5 1047867 872652 1370463 189072 1807745  #@Sundeep >time (perl -ne 'BEGIN{ $h{$_}=1 while <STDIN> } print if $h{$_}' <file1 file2 > out6) real    0m3.467s user    0m3.180s sys     0m0.175s  >head out6 1047867 872652 1370463 189072 1807745   The perl version was the fastest followed by awk. All output files had the same number of rows.  For the sake of comparison, I have sorted the output numerically so that the output is identical.  #@ilkkachu >time (join <(sort "file1") <(sort "file2") | sort -k1n > out1) real    0m17.953s user    0m5.306s sys     0m0.138s  #@Hauke >time (grep -Fxf "file1" "file2" | sort -k1n > out2) real    0m12.477s user    0m11.725s sys     0m0.419s  #@Roman >time (comm -12 <(sort "file1") <(sort "file2") | sort -k1n > out3) real    0m16.273s user    0m3.572s sys     0m0.102s  #@ilkkachu >time (awk 'NR==FNR { lines[$0]=1; next } $0 in lines' "file1" "file2" | sort -k1n > out4) real    0m8.732s user    0m8.320s sys     0m0.261s  #@Cyrus    >time (sort file1 file2 | uniq -d > out8) real    0m19.382s user    0m18.726s sys     0m0.295s  #@Sundeep >time (awk 'BEGIN{while( (getline k < "file1")>0 ){a[k]}} $0 in a' file2 | sort -k1n > out5) real    0m8.758s user    0m8.315s sys     0m0.255s  #@Sundeep >time (perl -ne 'BEGIN{ $h{$_}=1 while <STDIN> } print if $h{$_}' <file1 file2 | sort -k1n > out6) real    0m7.732s user    0m7.300s sys     0m0.310s  >head out1 1 2 3 4 5   All outputs are now identical.


How to Find which column has value We want?

How to find which Column in Table (SQL) has the Value We're looking for ? e.g. I need to find "CAR" in My Table "Automobile".. when I know column name I'll write :    select * from Automobile where AutomobileName='CAR'   but consider I don't know which Column contains the Value, then ?


They are fetishising men paying the bill in heterosexual   couples.       I came across this sentence in a stand-up show. I wonder if it is grammatically correct?  I think this one is better since the first one might give the impression that "they" are fetishising "men" who pay the bill in heterosexual couples. I think what the comedian is talking about is the concept that is imposed on men that they should always pay the bill.         They are fetishising men's paying the bill in heterosexual   couples.


How to select a range of elements in jQuery

      ...      ...      ...      ...      ...      ...
   If you wanted to select the 2nd, 3rd and 4th a tags in the above example, how would you do that? The only thing I can think of is:  $("#myDiv a:eq(1), #myDiv a:eq(2), #myDiv a:eq(3)")   But that doesn't look to be very efficient or pretty. I guess you could also select ALL the as and then do run .each over them, but that could get very inefficient if there were a lot more as.


does a computer virus affect all accounts on the computer?

I am trying to test a game exploit software but are unsure if it has a virus,I want to try it on a seperate user account on my computer but I am unware if it will spread to other user accounts.


I have just installed ubuntu 12.04. And I am a beginner on Linux. So, how can I add the DNS suffix in this OS. Please help..


Given the following sentences:        I have even started using them in normal writing.   People can understand your writing better.      Are using and writing gerunds, verbs, or some other part of speech?  Context:  I am prefixing the words in some phrases with abbreviations. Some of the words are giving me trouble in classification. (The message is supposed to be an implicit proof of why adding prefixes to table names in a database is terrible. But I'd like to get it right.)  Here's the full set of sentences for your amusement. However, please restrict your comments to the stated question, for the most part.        com-Don't ver-Listen prep-To adj-Those adj-Other nou-People.    pro-You aux-Should adv-Always ver-Use nou-Prefixes prep-With pro-Your adj-Table nou-Names.    pro-I aux-Have adv-Even ver-Started ver-Using pro-Them prep-In adj-Normal nou-Writing.   com-See adv-How adj-Effective pr-It ver-Is?    nou-People aux-Can ver-Understand pro-Your nou-Writing adv-Better!      (where com means command verb)  This question is part of 3 related questions:     This question   It originally came from


Say you have a level 1 character (so a proficiency bonus of +2) and that character is proficient in ranged martial weapons and they have a dexterity of 16 (+3). If they attack using a longbow then they add 5 to their attack roll. But for damage do they add 5 or do damage rolls just include the ability modifier of +3?


Hi I am using site generating software. I have a post that sends to a script, which is to transfer a text string into a diary table (Dsc=) However a single ' anywhere in the post ie don't can't , and the operation fails can anyone tell me how I have to alter this code to stop this happening please  print ""; print "<a href=\"http://" . "adddddd.com/addb/xx.php" . "?" . ""."Dsc=" .  urlencode($row[29]) . " Lead from: " . $row[27] . " - Job: " . $row[0] . " -  " . $row[39] . "Notes: " . $row[18] . " - Obs: " . $row[26] . "" . "\"   target=\"_self\">" . $cellvalue . ""; print "	";


Why has the scalar product anything to do with angles?

As a maths student I use scalar products incredibly often and have gotten used to the fact that $<a,b>=0 $ is equivalent to $a\perp b$. The generalizations on function spaces, etc. are also quite useful (Orthonormal basis have really nice properties). But I realized that I couldn't explain why the scalar product has anything to do with orthogonality.  And looking the scalar product up, it seems it has even more information about angles. Since apparently $<x,y>=||x||\cdot||y|| \text{cos}(\alpha)$ with $\alpha$ being the angle between x and y.  Why does multiplying the individual scalars end up telling us so much about angles? I am mostly interested in an intuition. As I think we did a proof in linear algebra at some point but I only remember that I was disappointed by it in the sense that I still had no idea why this relation existed afterwards. But if you know about a very instructive proof that would be interesting as well   And lastly, is it even possible to get an intuition for scalar products on function spaces, or is that a generalization you can only get used to, but not really understand?


root@campaigns:/var/lib/dpkg/info# apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:     LANGUAGE = (unset),     LC_ALL = (unset),     LANG = "en_IN"     are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Setting up etcd (2.2.5+dfsg-1ubuntu1) ... Job for etcd.service failed because the control process exited with error code. See "systemctl status etcd.service" and "journalctl -xe" for details. invoke-rc.d: initscript etcd, action "start" failed. ● etcd.service - etcd - highly-available key value store    Loaded: loaded (/lib/systemd/system/etcd.service; enabled; vendor preset: enabled)    Active: failed (Result: exit-code) since Wed 2017-07-19 16:18:52 UTC; 9ms ago      Docs: https://github.com/coreos/etcd        man:etcd   Process: 13475 ExecStart=/usr/bin/etcd $DAEMON_ARGS (code=exited, status=1/FAILURE)  Main PID: 13475 (code=exited, status=1/FAILURE)  Jul 19 16:18:52 campaigns etcd[13475]: etcd Version: 2.2.5 Jul 19 16:18:52 campaigns etcd[13475]: Git SHA: Not provided (use ./build instead of go build) Jul 19 16:18:52 campaigns etcd[13475]: Go Version: go1.6.2 Jul 19 16:18:52 campaigns etcd[13475]: Go OS/Arch: linux/amd64 Jul 19 16:18:52 campaigns etcd[13475]: setting maximum number of CPUs to 2, total number of available CPUs is 2 Jul 19 16:18:52 campaigns etcd[13475]: error listing data dir: /var/lib/etcd/default Jul 19 16:18:52 campaigns systemd[1]: etcd.service: Main process exited, code=exited, status=1/FAILURE Jul 19 16:18:52 campaigns systemd[1]: Failed to start etcd - highly-available key value store. Jul 19 16:18:52 campaigns systemd[1]: etcd.service: Unit entered failed state. Jul 19 16:18:52 campaigns systemd[1]: etcd.service: Failed with result 'exit-code'. dpkg: error processing package etcd (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  etcd E: Sub-process /usr/bin/dpkg returned an error code (1) root@campaigns:/var/lib/dpkg/info#    I get the above error when I try installing anything. My Ubuntu version is 16.04.


Which is the badge awarded to the least amount of people?

Which is the rarest badge awarded/the least popular one/the one hardest to get?


Null Pointer Exception when trying to return array list

private ArrayList<Record> readFromFile(String fileName) {     int lineNumber = 0;     Scanner fileReader;     ArrayList<Record> recs = new ArrayList<>();     try {         fileReader = new Scanner(new File(fileName));         while(fileReader.hasNextLine()) {             lineNumber++;             String line = fileReader.nextLine();             String stateCode = line.substring(0,2).trim();             String distCode = line.substring(3,8).trim();             String distName = line.substring(9,81).trim();             int population = Integer.parseInt(line.substring(82,90).trim());             int childPopulation = Integer.parseInt(line.substring(91,99).trim());             int childPovertyPopulation = Integer.parseInt(line.substring(100,108).trim());             String miscStats = line.substring(109).trim();             String[] data = new String[6];             data[0] = stateCode;             data[1] = distCode;             data[2] = distName;             data[3] = String.valueOf(population);             data[4] = String.valueOf(childPopulation);             data[5] = String.valueOf(childPovertyPopulation);             data[6] = miscStats;             recs.add(new Record(stateCode, distCode, distName, population, childPopulation, childPovertyPopulation, miscStats));         }         fileReader.close();     } catch(FileNotFoundException fnfe) {         System.out.println("Cannot locate file: " + fileName);         System.exit(0);     }     return recs; }  the error occurs at the end of the method when I try to return "recs" with a NullPointerException thrown. Why is this happening?


I can say:     I love to read. I hate to read.   But it must be:     I enjoy to read. I enjoy reading.   What is enjoy so different?


$\lim_{x \to 0} f(x)=\frac{\tan 3x}{\tan 2x}$ without L'Hospital

I am having trouble finding the limit for the following function:     $\lim_{x \to 0} f(x)=\frac{\tan 3x}{\tan 2x}$   I do not want to use L'Hospital's rule.  I know that $\frac{\tan 3x}{\tan 2x} = \frac{\sin 3x \cos 2x}{\sin 2x \cos 3x}$, but that does not help me.  Can you maybe give me a hint? Thanks.


My job is to do something or doing something?

My job is to teach English. My job is teaching English.  Which one is correct and why?


I have a query with a hard coded value which is also hard coded into my application (which has a comment saying that the value should be the same as the value hard coded into the query).  What would be considered the best way to make that value discoverable outside of the single query it is being used in?  A UDF immediately jumps to mind, but prior to 2019 it kills performance (don’t have 2019 so I can’t verify it, but it seems inlined UDFs should fix the performance problem).    A view or TFV might be a good alternative, but both seem overly complex and a misleading.  I don’t have a table/view of constants/lookup values.  Is there a good solution for this situation or just stick with comments in the relevant code?


How can I debug a regular expression in Python?

Is there a way to debug a regular expression in Python? And I'm not referring to the process of trying and trying till they work :)  Here is how regexes can be debugged in Perl:   use re 'debug';  my $str = "GET http://some-site.com HTTP/1.1"; if($str =~/get\s+(\S+)/i) {     print "MATCH:$1\n"; }   The code above produces the following output on my computer when ran:   Compiling REx "get\s+(\S+)" Final program:    1: EXACTF  (3)    3: PLUS (5)    4:   SPACE (0)    5: OPEN1 (7)    7:   PLUS (9)    8:     NSPACE (0)    9: CLOSE1 (11)   11: END (0) stclass EXACTF  minlen 5 Matching REx "get\s+(\S+)" against "GET http://some-site.com HTTP/1.1" Matching stclass EXACTF  against "GET http://some-site.com HTTP/1.1" (33 chars)    0           |  1:EXACTF (3)    3        |  3:PLUS(5)                                   SPACE can match 1 times out of 2147483647...    4       |  5:  OPEN1(7)    4       |  7:  PLUS(9)                                     NSPACE can match 20 times out of 2147483647...   24       |  9:    CLOSE1(11)   24       | 11:    END(0) Match successful! MATCH:http://some-site.com Freeing REx: "get\s+(\S+)"


I remember a relation like $(a+b)^n \equiv a^n+b^n$, but I don't remember mod which numbers this is true.  Where can I learn more about this?


How can one avoid the 40 min compulsory break in between two questions?

If someone has an account on Stack Overflow and also on Mathematics Stack Exchange and Physics Stack Exchange and if that person asks a question on Stack Overflow at 11am, they will have to wait until 11:40 am before posting a new question even while being able to posting on other Stack Exchange sites  Please guide me about this compulsory 40 min break? And how one can avoid it? Or there is no legal way of avoiding it all?


I had the hardest time figuring out how to get to the revision history by links over the past few days ... it would be really nice if there was just a link named "history" next to "link", "flag", etc. to get to it. This would also make it easy to find on questions/answers that had had no edits yet.  (Oh, for anyone else trying to figure out where the links are: look at the edit date, to the left of the asking date, on questions/answers that show up as edited. For other questions/answers, use the URL template http://<site>/posts/<PostId>/revisions.)


Given a single-particle system with Hamiltonian $H$, what constraints can be put on the wave function at a particular point in time $\psi(x)$? Of course $\psi(x)$ must obey boundary conditions given by $H$. However, in situations where $H$ does not yield strict boundary conditions (e.g. the harmonic oscillator) can $\psi(x)$ be any normalised function? My intuition says no for the following reason: QM textbooks say that any valid wave function can be represented as a linear combination of the eigenstates of $H$. In the case of the harmonic oscillator, the eigenstates of $H$ are a countably infinite set. However the set of all normalised functions is uncountably infinite. It seems to me that one cannot change between one complete set of basis functions to another and reduce the "dimensionality" somehow. This makes me think that the eigenstates of $H$ are not complete, that they imply some constraints on $\psi(x)$. This is not an area of mathematics that I understand well. Can somebody help me out?


How to gain admission to a math PhD program when as an undergrad, I didn't do research, take pure math classes, or form relationships with professors?

I just graduated college in May, and I spent my entire college career convinced that I would never study again. I had a plan for my future, and it involved working- no more school. I had considered grad school, but never very seriously.   Now, however, I am very much considering a grad or PhD program. Unfortunately, because of my intentions before, I hadn't done much research in college, opting instead for leadership and work experience. I also didn't foster any significant relationships with my professors. I talked to them enough to learn the material and pass the class, but, in my opinion, not enough for a glowing recommendation.  Now, I feel like I wasted something. How can I get into grad school when I am unable to procure stellar recommendation or show that I took classes in pure, theoretical mathematics? (I took more classes that concerned mathematics applied, like statistics and practical life models and such)  Would it be necessary for me to take more classes? Go back to school? That seems unnecessary, since I already have a bachelor's degree in Math, but I don't know what I can do.


Regex not matching file using `find` despite being valid

I am attempting to run this find command to match files with a camelcased name, with the goal being to put a space between adjacent lower and upper case letters, but it's not matching anything:  find -E . -regex "([a-z])([A-Z])"   An example of a file I'm trying to match is  ./250 - ErosPhiliaAgape.mp3   I've tested this regex on this file  and it matches successfully.  What is it I'm doing wrong with my find command?


I have a problem with install mysql_install_db.  When I call mysql_install_db I get this error:  [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize 2016-10-10 16:06:57 [ERROR]   The data directory needs to be specified. root@furniture-ecommerce:~# mysqld --initialize 2016-10-10T16:13:24.343724Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2016-10-10T16:13:24.350429Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting. 2016-10-10T16:13:24.350786Z 0 [ERROR] Aborting   I deleted the directory /var/lib/mysql as here recommend -  but when I call mysqld --initialize then this error occurs:  mysqld: Can't create directory '/var/lib/mysql/' (Errcode: 13 -     Permission denied) 2016-10-10T16:23:29.515470Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2016-10-10T16:23:29.519420Z 0 [ERROR] Aborting   Can you help me with it?


how to get date format like yyyy-mm-dd am in java

I need to get date format like:  "yyyy-mm-dd am"   or  "yyyy-mm-dd pm"   In Java for Android  I do not need current time, only yyyy-mm-dd plus am/pm  how to make it directly ?  i use the method below to get current date:      private static String getDate(){         Calendar c = Calendar.getInstance();         SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd");         return sdf.format(c.getTime());     }


Autocompletion in Texmaker for \citeA command

Texmaker suggest a list of all bibtex-keys when typing the beginning of \citep{•}. I use APACite and therefore often need \citeA{•} though.  First: Is it possible to make texmaker suggests for \citeA{•}?  Second: How can the suggestions for  \citep{•} be turned off (have to scroll through all of them to get the suggestions of \cite{•})?


$\lim\limits_{n\to\infty}\left(\dfrac{n}{n^2+1}+\dfrac{n}{n^2+2}+\dfrac{n}{n^2+3}\cdots\cdots+\dfrac{n}{n^2+n}\right)$  Can we write it as following  $E=\lim\limits_{n\to\infty}\left(\dfrac{n}{n^2+1}\right)+\lim\limits_{n\to\infty}\left(\dfrac{n}{n^2+2}\right)+\lim\limits_{n\to\infty}\left(\dfrac{n}{n^2+3}\right)\cdots\cdots+\lim\limits_{n\to\infty}\left(\dfrac{n}{n^2+n}\right)\tag{1}$  Let's see what happens:-  $$\lim\limits_{n\to\infty}\left(\dfrac{n}{n^2+1}\right)$$ $$\lim\limits_{n\to\infty}\dfrac{\dfrac{1}{n}}{1+\dfrac{1}{n^2}}=0$$  In the same way for further terms, we will get $0$  Let's also confirm for general term  $$\lim\limits_{n\to\infty}\left(\dfrac{n}{n^2+n}\right)$$ $$\lim\limits_{n\to\infty}\left(\dfrac{\dfrac{1}{n}}{1+\dfrac{1}{n}}\right)=0$$  So the whole expression $E$ will be zero  But actual answer is $1$  Let's see what happens if we evaluate the original expression $OE=\lim\limits_{n\to\infty}\left(\dfrac{n}{n^2+1}+\dfrac{n}{n^2+2}+\dfrac{n}{n^2+3}\cdots\cdots+\dfrac{n}{n^2+n}\right)$  $OE=\lim\limits_{n\to\infty}\left(\dfrac{\dfrac{1}{n}}{1+\dfrac{1}{n^2}}+\dfrac{\dfrac{1}{n}}{1+\dfrac{2}{n^2}}+\dfrac{\dfrac{1}{n}}{1+\dfrac{3}{n^2}}\cdots\cdots+\dfrac{\dfrac{1}{n}}{1+\dfrac{1}{n}}\right)$  Now we can easily see that each term inside the bracket is tending to $0$, so can we say that sum of all terms upto infinity as well tends to zero?  I think we cannot because the quantity is not exactly zero, it is tending to zero, so when we add the values tending to zero upto infinity, we may not get zero.  But I got the following counter thought:-  $\lim\limits_{x\to0}\dfrac{(1+x)^\frac{1}{3}-1}{x}$  As we know $(1+x)^n=1+nx+\dfrac{n(n-1)}{2}x^2+\dfrac{n(n-1)(n-2)}{6}x^3\cdots\cdots\infty$ where $|x|<1$  $\lim\limits_{x\to0}\dfrac{\left(1+\dfrac{1}{3}x-\dfrac{1}{3}\cdot\dfrac{2}{3}\cdot\dfrac{1}{2}x^2+\dfrac{1}{3}\cdot\dfrac{2}{3}\cdot\dfrac{5}{3}\cdot\dfrac{1}{6}x^3\cdots\cdots\right)-1}{x}$  $\lim\limits_{x\to0}\dfrac{1}{3}-\dfrac{1}{3}\cdot\dfrac{2}{3}\cdot\dfrac{1}{2}x+\dfrac{1}{3}\cdot\dfrac{2}{3}\cdot\dfrac{5}{3}\cdot\dfrac{1}{6}x^2\cdots\cdots$  Now here also all the terms except $\dfrac{1}{3}$ are tending to $0$. So here also we can say that the whole quantity may not turn out to be zero as we are adding all terms upto infinity.   But surprisingly $\dfrac{1}{3}$ is the correct answer.  I am feeling very confused in these two things. Please help me.


Display-math after one tab distance from margin

By default, latex beautifully places all display-math at the center of a line in the pdf file. I am preparing a document where I should start all display-math after one tab distance from the margin. The page will contain some nonmathematical text also. How can I do so?  The following example may clarify this question. Consider the following pdf-latex code:  \documenclass{article}  \usepackage{amsmath}  \begin{document}  There was a text like : aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa  $$(a + b)^2 = a^2 + 2ab + b^2$$  There is another text : bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb  \end{document}   Now in the pdf file we get $$(a + b)^2 = a^2 + 2ab + b^2$$ in the middle of a line. But I need it in the after one tab distance from the margin.


Current situation   Tags should not into titles. In an opened question, tags are shown at the very bottom of the question.   Problem   If a question was opened via a websearch site (which does not show tags): One has to scroll down all the way until the end of the question, to see if the question really affects oneself   Suggestion   Move the list of tags right below the title. Maybe like this:


Impractical jokers ever gotten into serious trouble?

Have the guys from the show Impractical Jokers gotten into any major trouble because of the nature of their show?   Eg: have they been physically assaulted or has anyone thrown a law suit on them?


Dimensional analysis for a qdf/quantile function corresponing to the pdf/CDF (size distribution of income example)

I am going to frame this question in terms of a pdf and quantile functions for the size distribution of income, because that is where I have currently encountered it, but similar questions in quite different contexts have puzzled me on several occasions in the past.  Suppose I have a pdf f(x) or a CDF F(x) that represents the size distribution of income. Income is a flow of money (dollars or some unit of currency), per some unit of time, to particular individuals. I therefor think the proper unit of measurement is dollars per person-year.   In order for the probability to come out in dimensionless units, f(x) must be measured in person-years per dollar. Integrating this over x also yields a dimensionless share for the CDF because the units of an integral are the product of the units of the integrand f(x), here measured in person-years/dollar, and of the differential dx, here measured in dollars/person-year.  Integrating xf(x) therefore puts the units on the mean income in $/person-year; this seems reasonable.  From this I have drawn conclusions on the units and interpretation of the quantile density function q(y), quantile function Q(y), and the integral of yq(y)dy (i.e. the the inverse function analoge of the partial moment function of order 1) which if correct would be very helpful to me, but in which I have limited confidence. I’d be grateful if someone could confirm or deny these conclusions, perhaps in the context of some discussion/explanation of interpretation of dimensional analysis in the the context of distribution functions.  I believe the units of the y axis and of q(y) are necessarily the same as those in the previous analysis, i.e. the y values are still measured in person-years per dollar and x = q(y) is still measured in $/person-year. This implies that integrals of q(y) over some interval in general, and Q(y) (which is equal to the integral of q(y) from 0 to y) in particular, are both measured in unitless shares. I am somewhat dubious of this and my earlier conclusion, however, because I believe that F(x) is in unitless shares of total income, while Q(y) is in unitless shares of the population for a year. This seems odd to me, however, as I wonder if the fact that these two shares are shares of different things should not be reflected in the units.  Finally, this would have the integral of yq(y)dy in units of person-years per dollar. But I am having trouble interpreting this. The corresponding x quantity is the mean (or for a bounded x, the partial mean) of income per person-year. So this would be the mean number of person-years--for what? for a single dollar? for the mean income?   Consider the truncated version of this function, where the integral of yq(y)dyfrom zero to q* is divided by F(q*). The corresponding truncated function of x yields the mean for those with incomes of x* or less, and $/person-year seems like reasonable units for a mean income. But I want the the y version to come out in number of people, or number of person-years, corresponding to the share of person-years over the same interval, and the "per dollar" in the denominator does not have an interpretation which is obvious to me.


How does the drain current flow in a MOSFET when the channel is pinched off?

Here is what I have understood. Please correct me if I'm wrong.  The depth of induced channel depends on the voltage V. Since the voltage across the gate and  the path along the channel decreases from Vgs at the source to drain end to drain end, the channel is not uniform an is tapered. If the applied voltage Vds is increased to some value which causes the voltage between gate and drain end to be lesser than the threshold voltage, the channel is said to be pinched off.  If the channel is pinched off, how does the drain current flow? It's given in the book that the MOSFET enters saturation region and will have a constant value of drain current. But I don't understand how does the current flow when the channel no longer exists at the drain end.


I have a question, if there anyone which wirelles card rt3290 working? I have information that this card is blacklisted and does not work for anyone.  I tried probably everything available on the internet and it still does not work. The laptop service has not dealt with it either


Looking for a scifi book about simulating colonizing another world

The book I am looking for was set in the future, overpopulation and poverty were everywhere. A group of homeless/poor kids (maybe young adults) went to a special building where they were placed into simulators several times (i.e., they went back home between each session) where they explored another planet.  At the end of the book, they went there again but soon find out that this time it was the real planet, not just a simulation, and they start rebuilding society.


linux + how to calculate float numbers with bash

how to calculate float numbers: with bash  example        DRIVER_MEMORY=$(( 5 * 0.6 * 0.9 )) -bash: 5 * 0.6 * 0.9 : syntax error: invalid arithmetic operator (error token is ".6 * 0.9 ")   remark - results must be integer number  - so we can round the number to down


I would like to include part of the contents of a .tex file into a different .tex file. I don't have the option of modifying the file to include. The file to include may change so simply copying and pasting the part I need is not ideal.  Essentially, I'm wondering if there is something that would work like  \input[start-end]{file.tex}   where start and end are the first and last lines to include from the file?


Is Kant's "noumenal self" argument on freedom flawed?

This is what is supposedly his claim:     My noumenal self is an uncaused cause outside of time, which therefore   is not subject to the deterministic laws of nature in accordance with   which our understanding constructs experience.   How can he say that if a noumenal self has to exist in nature and be bound to body that exists in nature? Also, if his noumenal self is free then so does 7 billion other people's, which is not the case because they all live in a societal structure where everyone has freedom that comes with a bunch conditions as to what is forbidden.


What should we do when highly-voted/accepted answers are outdated/incorrect and won't be updated?

Consider this situation:   Answer 1 is highly voted and/or accepted, but wrong.   Problem: Votes are conflated with correctness, especially for visitors who don't know how SE works.  The accepted answer checkmark is worse, since the convention on many other sites is "THE answer" rather than "the answer the OP liked best".  Answer 2 is correct, but not accepted and with a low score.   Problem: Low-voted answers at the bottom of the page are often ignored by visitors.  Comments on answer 1 pointing out the errors aren't being responded to by answerer 1.  If answer 1 is accepted, comments on the question aren't being responded to by the OP.   Problem: Comments are not highly visible (by design) and will likely be missed by visitors.  Answer 1 is not Community Wiki.   Problem: We don't want to steal answer 2 and give credit/reputation for it to answerer 1 instead.  The question is highly viewed, ranks well on Google, and is linked to by popular external resources dealing with the subject.   Problem: Lots of people are getting incorrect information, potentially leading them to go elsewhere or avoid joining SE and participating.    This mostly does not apply to Stack Overflow since most (?) tools have versioning.  It's definitely been a problem I've seen on Gaming (particularly MMOs and evolving games like Minecraft) and Android (new OS versions), and I could see it applying to many other sites like Web Apps (Facebook changing its layout or privacy settings again, etc.).  In these cases, what do you do to make sure that visitors get the correct information?  I've tried flagging for CW to avoid one of the problems mentioned above, but this is almost always declined even in cases of clear wiki-type answers that would benefit from more collaborative editing.


How do I get the element that the cursor is over during a keypress?

I'm writing a WPF application, and I've come to a point where I need to get the UI Element that the mouse cursor is over at the time of a keypress. Basically, we have lists on the screen, and if the user enters Ctrl+Shift+F, they will be able to filter the objects just in the list that their mouse is over. I've done some research on this, and the only related questions I've found have to do with moving the cursor to a certain element on a keypress, not finding the element that the cursor is already over. I don't have any code to show for this since it is more of a conceptual question, but if you need any more detail from me, please let me know. Thanks!


I am a bit of a noob and trying to get ubuntu to run on an usb-stick, but it is painfully slow. If I make a live-usb with no persistence it works great. But if I add persistence it is very slow. Also tried installing on an usb-stick but this is also very slow. This is on my Asus NJ550JK. I have managed to get a live usb with persistence running fine on anonter weaker machine. Does this make sense? Any advice?


Show $f$ is analytic if $f^8$ is analytic

This is from Gamelin's book on Complex Analysis.  Problem: Show that if $f(z)$ is continuous on a domain $D$, and if $f(z)^8$ is analytic on $D$, then $f(z)$ is analytic on $D$. (I assume the intention is that $D$ is nice, i.e. open and connected)  I'm not exactly sure how to approach this. I'm guessing it has something to do with zeroes of $f$. For example, around non-zeroes, $f$ is analytic since $z^{1/8}$ is nonzero in a neighborhood. Or something along those lines. The details are eluding me.  Any help would be appreciated!


Very old Groundhog Day time travel short story where a man travels back in time killing his parents

I think it must have been in Analog or Asimov in the early 1980s (81, 82, 83). It's a short story with only TWO characters: The prisoner and the psychiatrist.  A man is seeing the prison psychiatrist. During the session, he identifies the cruel treatment by his father as the root of all his problems. When back in his cell he time travels (this seems to be an innate ability he has - no explanation is given, as I remember) and kills his father.  The following day he is back with the psychiatrist and identifies his being brought up by a neglectful single-parent mother as the root of all his problems. Once again, back in his cell he travels back in time and kills her.  The following day he identifies a cruel carer at the orphanage he grew up in...   The story goes through a number of, Groundhog Day style loops and finishes with a clever dark twist.  After a number of loops - all the possible people who may have influenced him in a bad way killed it ends with him in the psychiatrist office thinking,      'maybe seeing this psychiatrist has caused me to be the way I am?!' - Leading the reader to believe he will travel back in time and kill the psychiatrist before their first meeting).


Copy a list of files contained inside a txt file into another folder

Do you know a freeware (for Windows 7 64) which can copy a list of files (contained in a txt file) into another folder (folder structure preserved or not) ?  Filelist.txt contents: M:\DVD1\00\09.pdf M:\DVD1\00\gethu4.pdf M:\DVD1\00\djdd85.pdf M:\DVD1\00\sdffjhgj.pdf ...etc..    Edit: GUI Required. Please please no .bat file script as I had problems with space or special characters with batch solutions I have tried.


How to find the beta value from linear regression model?

For the linear regression model,    y_i = beta_0 + summation(x_i,j * beta_j )+ e_j        from the above equation, How I will find the value of beta(beta_0,beta_1...beta_j)?


I'm thinking of buying a Lenovo Ideapad S510P, and I want to install Ubuntu on this. I wonder if anyone has any experience with this particular laptop, and running Ubuntu on it.


PHP : preg_replace() with foreign characters not working correctly

I have an array of strings in Korean similar to 사람 [saram] where they all consist of the Hangeul(Korean alphabet) and then the English pronunciation in brackets.  The preg_replace I have is:  preg_replace("/\[.*\]/u","","사람 [saram]");   But the output is always:  ì‚¬ëžŒ   or some similar gibberish.  I'm 90% sure it's the Korean characters because when I try:  preg_replace("/\[.*\]/u","","Person [saram]");   Only Person is outputted.  Any help would be greatly appreciated!


What is this N-shaped icon on my HTC One?

I have an HTC One with Sprint, and I believe this icon appeared after the 4.3 update.  I have gone through the list of apps (both running and total) but nothing appears to match up.  Other friends with Android phones don't appear to have this icon, but they all root and customize 7893 ways.  Can anybody identify this icon?


Is there a way to prevent NVIDIA driver from binding to secondary or tertiary gpus?

On Linux, I am using three NVIDIA GPUs. When I install and load the NVIDIA driver into the kernel, the driver is automatically binding to all three GPUs.  I am trying to prevent the NVIDIA driver from automatically binding to two of my NVIDIA GPUs when the driver is loaded into the Linux kernel.  Is there a way to either allow the driver to bind only to the specified GPU or block the driver from automatically binding to the specified GPUs?  I do not want two of my three GPUs not bound to any drivers at all.


Can I eat an eclair which has been at room temperature for almost 2 hours

I have recently bought an eclair and I'm not sure if I should eat it as it has been sat on the side for a good hour and a half/two hours. Please HELP!!


Drush hangs when trying to bootstrap Drupal

Running Ubuntu 12.04 with the 14.04 backports for Drush (meaning we are running Drush 5.10.0)  After importing the database (with drush sqlc < dump.sql), Drupal is no longer able to be bootstrapped by Drush.  drupal-site@uat-previewweb1:/var/www/drupal/uat-preview/current$ drush st -v -d Bootstrap to phase 0. [0.01 sec, 3.81 MB]                            [bootstrap] Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 4.04 MB] [bootstrap] Loading drushrc "/etc/drush/drushrc.php" into "system" scope. [0.01 sec, 4.04 MB]                                                                            [bootstrap] Cache HIT cid: 5.10.0-commandfiles-0-42f7d1cb79623ad6de6c23932c9a4e2b [0.02 sec, 4.07 MB]                                                                        [debug] Bootstrap to phase 0. [0.06 sec, 9.04 MB]                                                                                [bootstrap] Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.08 sec, 9.04 MB]                                                                                [bootstrap] Initialized Drupal 7.31 root directory at /var/www/drupal/uat-preview/releases/20140911-4 [0.09 sec, 10.69 MB]                                          [notice] Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.09 sec, 10.7 MB]                                                                                [bootstrap] Initialized Drupal site uat-preview at sites/default [0.09 sec, 10.7 MB]                                                                                [notice] Cache HIT cid: 5.10.0-commandfiles-2-c32acd775c18a90c5b41d0fc9accf5ab [0.09 sec, 10.71 MB]                                                                       [debug] Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.1 sec, 10.75 MB]                                                                          [bootstrap] Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.1 sec, 10.81 MB]                                                                               [bootstrap] Successfully connected to the Drupal database. [0.1 sec, 10.81 MB]                                                                                [bootstrap] Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.12 sec, 11.92 MB]                                                                                [bootstrap]   The command hangs here and does not return.  Does anyone have any ideas on what could be causing this? Is it worth it to stray from debian packages and run Drush 6.4.0 here?


Editor preview shows links clickable, final rendered post doesn't, when surrounded by []

[https://example.com/] appears as a clickable link in the preview, but not in the final render when saved. This applies to at least the inline editor (tested on Stack Overflow) and question-ask page here.  Probably related bug:  also from after the change to CommonMark. (Discovered on Stack Overflow; presumably the URLs in  were clickable before the CommonMark changeover, but they aren't now. A recent suggested-edit changed a URL, but left them non-clickable, which I found surprising.  For the current version I simply removed the [] around the URLs.)


Using multiband images in ArcGIS Raster Calculator?

I have 5-band composite orthomosaics that I wish to apply multiple vegetation indices towards. In the raster calculator, it only displays the raster, but not the individual bands. Can someone give me an example of how I would write out a calculation for something like NDVI? (NIR-Red)/(NIR+Red)   I imagine it is something like (Rastername Layer4 - Rastername Layer3) and so on. Just cannot seem to find anything online after much searching.   Naturally, I am aware that I could subset the bands of the images, but that seems counter-productive!


It is given in question that $x+a=(a.x)b$ and it is stated that a,b and x are vectors.It is also stated that $a.b$ not equal to $1$.The question ask to express $x$ in term $a$ and $b$,how do you this?


Redirection: what does this redirection chain do--logic and purpose?

recently came across several chained redirections to file descriptors as shown is the snippet below: name=$(dialog --inputbox "Please enter your phone number." 10 30 3>&1 1>&2 2>&3 3>&1) || exit ... while I understand this script is  Creating a new file-descriptor 3 which is is then redirecting to STDOUT, Redirecting STDOUT to STDERR STDERR to the file-descriptor 3 Finally, redirecting file-descriptor 3 again to STDOUT  My question is why is this being done? It looks kind of circular to me, so it would be great if someone could explain the logic or possible purpose/use-case for wanting to chain the redirections this way. TIA!


Prove $F(x)=1-e^{- \lambda x}, 0 \lt x.$

Let $F$ be the distribution function of the continuous-type random variable $X$, and assume that $F(x)=0$ for $x \le 0$ and $0 \lt F(x) \lt1$ for $0 \lt x$. Prove that if $P(X \gt x+y |X \gt x)=P(X \gt y),$ then $F(x)=1-e^{- \lambda x}, 0 \lt x.$   My attempt:   Let $F(x)=P(X \le x)$. Then   $ \frac {P(X \gt x+y)}{P(X \gt x)}=P(X \gt y)$  $\Rightarrow \frac {1-P(X\le x+y)}{1-P(X \le x)}=1-p(X \le y)$  $ \Rightarrow \frac {1-F(x+y)}{1-F(x)}=1-F(y)$  Then I have no idea where to go from here. Any help is appreciated.


i am trying to install claws-mail on ubuntu 19.04. while running this command i get the below error. could anyone suggest on why am i getting this? what should be done to resolve this?  $ sudo add-apt-repository ppa:ubuntuhandbook1/claws-mail [sudo] password for <user>:    More info: https://launchpad.net/~ubuntuhandbook1/+archive/ubuntu/claws-mail Press [ENTER] to continue or Ctrl-c to cancel adding it.  Hit:1 http://us.archive.ubuntu.com/ubuntu disco InRelease Hit:2 http://packages.microsoft.com/repos/vscode stable InRelease                                                                  Hit:3 http://us.archive.ubuntu.com/ubuntu disco-updates InRelease                                                                  Hit:4 http://us.archive.ubuntu.com/ubuntu disco-backports InRelease                                                               Hit:5 http://us.archive.ubuntu.com/ubuntu disco-security InRelease                                          Hit:6 https://packagecloud.io/AtomEditor/atom/any any InRelease                                                                                Ign:8 http://ppa.launchpad.net/ubuntuhandbook1/claws-mail/ubuntu disco InRelease Hit:7 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease Hit:9 http://ppa.launchpad.net/webupd8team/terminix/ubuntu disco InRelease Err:10 http://ppa.launchpad.net/ubuntuhandbook1/claws-mail/ubuntu disco Release   404  Not Found [IP: 91.189.95.83 80] Reading package lists... Done E: The repository 'http://ppa.launchpad.net/ubuntuhandbook1/claws-mail/ubuntu disco Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   trying to follow these commands to install.  sudo add-apt-repository ppa:ubuntuhandbook1/claws-mail sudo apt update sudo apt install claws-mail


conversion of laplacian from cartesian to spherical coordinates

In cartesian coordinates, the Laplacian is  $$\nabla^2 = \frac{\partial^2}{\partial x^2}+\frac{\partial^2}{\partial y^2}+\frac{\partial^2}{\partial z^2}\qquad(1)$$    If it's converted to spherical coordinates, we get $$\nabla^2=\frac{1}{r^2}\frac{\partial}{\partial r}\left( r^2 \frac{\partial}{\partial r}\right)+\frac{1}{r^2 sin\theta}\frac{\partial}{\partial \theta}\left(sin \theta \frac{\partial}{\partial \theta}\right)+\frac{1}{r^2 sin^2 \theta}\frac{\partial^2}{\partial \phi^2}\qquad(2)$$  I am following the derivation (i.e. the method of conversion from cartesian to spherical) in "Quantum physics of atoms, molecules, solids, nuclei and particles" by Eisberg and Resnick (it's in Appendix M). Their method is to first consider a function of only $r$, $\psi(r)$, then calculate $\frac{\partial^2 \psi}{\partial x^2}$, $\frac{\partial^2 \psi}{\partial y^2}$, $\frac{\partial^2 \psi}{\partial z^2}$. After plugging into (1) and simplifying we end up with $\nabla^2=\frac{1}{r^2}\frac{\partial}{\partial r}\left( r^2 \frac{\partial}{\partial r}\right)$ which is, indeed the first term in (2).  For the second (and third) term they don't show the derivation, they just say "the second and third terms can be obtained by taking $\psi = \psi(\theta)$ and $\psi = \psi(\phi)$.  I am trying to complete the derivation for the other terms, but I don't know how to proceed. Here is what I have so far: $$\frac{\partial \psi}{\partial x} = \frac{\partial \psi}{\partial \theta} \frac{\partial \theta}{\partial x}\qquad (3)$$  $$\frac{\partial\theta}{\partial x} = \frac{xz}{(x^2 + y^2 +z^2)^{3/2}\sqrt{1-\frac{z^2}{x^2+y^2+z^2}}}\qquad (4)$$  putting (4) into (3) and substituting for $r$:  $$\frac{\partial\psi}{\partial x} =\frac{\partial \psi}{\partial\theta} \frac{xz}{r^{3}\sqrt{1-\frac{z^2}{r^2}}}$$  Now, making the conversions $x=rsin\theta cos\phi$ and $z=r cos\theta$ and simplifying I get  $$\frac{\partial\psi}{\partial x}= \frac{\partial\psi}{\partial\theta} \frac{cos \theta cos \phi}{r} $$  My question is how do I proceed?


How to skip the Windows 8 lock screen image?

Every time I start up the pc or lock it manually and I want to log in again, I have to press random button or mouse click to remove the "Start-screen background". After that I can enter my password/pin to unlock the pc.   What I want is to just start enter the password/pin right away and be done with it. Why show a start-screen that's made for removing anyway?  So how do I skip the lock-screen image? Or make it automatically move away? Or move the password/pin box to the lock-screen? Anything will do, I just want to instantly enter my credentials and be done with it.


ArrayList Iteration not working as intended

I am making a side project in Java where a Mobile will store a list (ArrayList) of apps and separate UI class to handle all input/ output and business related logic. The problem is in following block of Mobile class:  public App searchApp(String name) {     System.out.println(list);     for(App app: list) {         String appName = app.getName();          if(appName == name)         {             return app;         }    }     throw new IllegalStateException(); }   This function let person search for the app in the list. And here's how the search input is being taken from user:  public String inputSearch() {     System.out.println("Enter app name to search: ");     return sc.nextLine().trim(); }   And here's how the UI class is displaying result:  public void choices(int choice) {        switch(choice)     {         case 1:             String[] input = inputDetails();             mobile.addApp(input[0], input[1]);             break;          case 2:             String s = inputSearch();             App found = mobile.searchApp(s);             System.out.println("App found in search:");             System.out.println(found.toString());             break;              and so on...   The problem is in searchApp.   I am unable to figure out why if condition is not working even though both appName and name can be seen as equal upon printing (also have used trim() on both string types but still no success).


I have a 32bit window server running 2003 that I need to update to linux.  I run a website on it.  Will the newest server version run on a 32 bit machine?