Possessive-S/apostrophe in a list, including the first and second person

When adding possessive-S/apostrophe to a list, the rule is only the last person has the apostrophe if the item is shared, or everyone has one if they have the items each, e.g.  John and Mary's houses = the houses that belong jointly to John and Mary.  John's and Mary's houses = the houses that belong to John and Mary as individuals, at least one each.  However, I am curious if the rules are slightly different when possessive pronouns are used for a single item.  You and Mary's house OR your and Mary's house?  I'm even more unclear when the first person is involved.  Mary and my house OR Mary's and my house?  Finally, when there are at least three people, including the first person, does the last named person have the possessive-S/apostrophe, or all/none of them?   John, Mary and my house John, Mary's and my house John's, Mary's and my house   I'd be very grateful to anyone able to clarify this, ideally with a some form of reference, as I can't find it anywhere.    There have been several suggestions to use "our", yet if the text refers to a group of people, all of whom own co-own houses with some others within the group*, then the above style wording would be necessary, so my question stands.  * eg I own a house with John and Mary, I co-own another with Peter and yet another with Philip and Sarah.


18.04: color emoji not showing up at all in Chrome, only partially in Firefox

I've upgraded from 17.10 to 18.04 and was hoping to have better emoji support. The results are that Chrome (66) is still using the old black and white emoji font, and Firefox (59) is managing to show some color emoji but not others. I took some advice to install the font EmojiOne but that didn't seem to help 😓  Screenshots from the emoji demo page at  :  Chrome:   Firefox:


When do Deathclaws start attacking your vault?

I've been playing the Android version for a few days now, and have 33 Dwellers (slow growth FTW?) and I've noticed that I've never been attacked by the Deathclaws that I've heard about.  Do the Deathclaws and other stronger enemies like Raiders with more guns or molerats only show up after a certain number of hours of Vault existence, or perhaps after your Vault reaches a certain number of Dwellers?


I'm very new to blender and are using it to edit videos. I slapped 2 osu clips and a end card together but for some reason it only wants to save as a .blend file.


How is MCMC relevant for Bayesian inference?

I understand how MCMC can be useful for approximating the shape of a density function if you're able to generate random samples from that density function. However, I don't understand how this is applied towards Bayesian inference because any specific selection of model parameters using MCMC would yield a number, not a distribution.  For example, if I have a binomial likelihood function and a beta prior, I might use Metropolis-Hastings to select a random starting parameter, $\theta=.3$. When that starting parameter and some data are input into my likelihood function and prior, I get a deterministic number as the output. No randomness involved.  Framing this issue another way: Why does the MH algorithm generate the posterior distribution from the count of visits to a parameter value rather than using the posterior values generated directly?


Exericise 9.36: If each $a_n >0$ and $\sum a_n$ diverges, prove that $\sum a_n x^n \to +\infty$ as $x\to1^-$. (Assuming $\sum a_n x^n$ converges for $|x|<1$.   Here's what I tried:  Since $\sum a_n$ diverges, for $M>0$, $\exists N$ such that $\sum_{k=0}^N a_k >M.$ I want to show that for $M>0$, there exists $\delta$ such that, whenever $\delta<x<1$ implies that there exists $p$ such that $\sum_{k=0}^p a_k>M$.  I was reading  and I don't get how the "then by continuity" part implies (**) part. Could someone explain? Thanks!


Let $\mathbb{R^{ n×n}}$ be the space of n × n real matrices. Show that if $ A(t) \in \mathbb{R ^{n×n}}$ is a differentiable function of $t$ then $\frac{d(det A(t))}{dt}$ is the sum of the determinants of $n$ matrices, in which the $i$th matrix is $A(t)$ except that the $i$th row is differentiated. Use this result to prove that the directional derivative of the determinant function at the matrix $A \in \mathbb{R ^{n×n}}$ along the direction $B \in \mathbb{R^{ n×n}}$ is given by $$(det)^{'} (A; B) = tr(Adj(A)B) = \langle Adj(A)^{T} , B \rangle $$ where $Adj(A)$ is the adjoint of $A$, and where the inner product on $\mathbb{R^{n×n}}$ is the trace inner product given by $\langle X, Y \rangle = tr(X^{T} Y )$ Conclude that $$D(det)(A) = Adj(A) ^T $$.


What focal length and quality of lens do I need to read 15cm high text at 500m away?

I have to photograph 15cm high printed text from 500 meters away. The text has to be human readable in the result.   What kind of focal length do I need? Can i compromise, and get a camera with less optical and more digital zoom? Can you guys give me the process for working this out as well as the answer? What is the minimum price that I can do this for?


Should we use wheatstone bridges nowadays?

For measuring strain gauges, the Wheatstone bridge is the historical choice.  In a quarter Wheatstone brigde (\$350 \Omega \$ typically (?)), with a high input impedance amplifier, and some bridge power voltage \$V\$, the ratio between the bridge output voltage w.r.t. any resistor is 1/4, which is the same ratio in a voltage divider between the output voltage w.r.t. any resistor, compared with a stable voltage reference of \$V/2\$.    A voltage divider with a voltage reference would have a voltage noise of about 35.16 nV/rtHz (from a voltage reference of 35 nV/rtHz plus two resistors), and the Wheatstone bridge a voltage noise of 4.86 nV/rtHz (from four resistors), which should be enough (?) for most ADC systems (i.e. for 24 bit, 0-5V range: 300nV resolution).  And a voltage reference (\$0.02\%\$ initial error, \$2 \ ppm/C^\circ\$, ), would be more stable and precise (?) about \$4\ ppm/C^\circ\$, than a precision resistor (\$0.005\%\$ error, \$2 \ ppm/C^\circ \$, ), about \$8 \ ppm/C^\circ\$.  Hence, why bother using Wheatstone bridges?


Prove that $\forall x \in \mathbb{R}, f(x)=0$

Suppose $f\colon\mathbb{R}\to\mathbb{R}$ is differentiable function and satisfies $$\forall x \in \mathbb{R}, \vert f'(x)\vert \leq \vert f(x)\vert, \quad f(0)=0.$$  Prove or disprove $f(x)=0$  How can I approach this problem?


iPhone 4 water damage - how to recover data?

My sister dropped her iPhone into water and made the fatal mistake of turning it on just a few hours later, thinking it was already dry. I put it into a bag with rice for days. She had taken a lot pictures within the last few weeks but neither connected it to her PC nor is she using iCloud/Photostream, so we wanted to save the pictures somehow.  The problem is, the phone only turned on when connected to a power socket - and only in the inital setup mode ("connect to itunes"). And even then it would restart after about half a minute.  Assuming the battery got fried, I ordered a new one from iFixit (the phone's out of warranty since a long time) and replaced it; of course I also cleaned the logic board in the process. Though I couldn't see any corrosion despite the water indicators being pink. The only difference now is that when connected to a PC, the Apple logo appears, but the phone reboots infinitely after several seconds.   iTunes recognized it when entering DFU mode, but shows no additional data besides "iPhone" (capacity, iOS version, serial number).  Getting the phone to work again is secondary, we just want to save the pictures. Is there any way to get my data including all the pictures from iPhone?


Proof that the infimum of a given set $E$ is unique

Prove that a lower bound of a set might not be unique but the infimum of a given set is unique.  Attempt: Consider some $E \subset \mathbb{R} $ such that $E \neq \emptyset$.  $E$ is bounded below $\iff \exists  m \in \mathbb{R}\,\, \text{such that}\,\, a  \geq m\,\, \forall a \in E $.  Presumably the only case where  a lower bound need be unique is if the end interval of the set is infinity i.e some subset of the form $(-\infty, p)$, where $p \in \mathbb{R}$.  To prove the uniqueness of infimum: Suppose there exists two such infimum $t_1, t_2 \in \mathbb{R} $ such that $t_1 \leq a $ and $ t_2 \leq a\,\forall a \in E$.  So $t_1$ and $t_2$ are both lower bounds for the set $E$ and in particular, since $t_1$ and $t_2$ are both infimum, $t_1 \leq t_2$ and $t_2 \leq t_1$ by the definition of infimum.  Hence by the Trichotomy Principle, we conclude $t_1 = t_2$.  Is this okay? If so,  am I correct in what I said above that provided the subset does not extend to $-\infty$, lower bounds for the set need not be unique?  Many thanks.


Showing a isomorphism exists between a quotient group and another group

We have $G_1 = GL(2,\mathbb{R}) \times GL(2,\mathbb{R})$ and    $G_2 = \{(C,D) \in G_1 \mid \det(C) = \det(D)\}$. We want to show that    $G_1/G_2 \cong {(\mathbb{R^*},\times})$.    So my approach for this is that we know $G_1/G_2 = \{(A,B)G_2:(A,B) \in G_1\}$ and construct the map $f:G_1 \rightarrow \mathbb{R^*}$ given by $f(A,B) = \det(AB)$. But I am having trouble showing that this map is isomorphic, particularly showing that its one - one.


I have a variety of lenses in my camera kit. One that I do not have, and has me curious, is a fisheye lens. I mostly understand what it does: it captures an image with distortion similar to what you see through a door's peephole.  Given the distortion, are there any particular types of shots for which a fisheye lens is useful?


I am wondering how large the hand gestures have to be for spells with somatic components. I know in the question  the Player Basic Rules p.79 say,     Spellcasting gestures might include a forceful gesticulation or an intricate set of gestures.   so they don't have to be forceful or intricate.   Would it be fair to say that lower level spells have smaller, less noticeable, somatic components?    For an example, Mage Hand (cantrip) may just be a flick of the wrist and wave of fingers, Dispel Good and Evil (5th level) may be more akin to a secret hand shake, and Meteor Swarm (9th level) would require the caster to do the YMCA.     This question is less about being noticed casting a spell and more about having the ability to even attempt to cast it. I'll be honest, it might also be a cheeky way of asking if I (as an arcane trickster) can cast mage hand while I'm in chains and have it pick the lock (which I know is against the spirit of the rules but I'm curious to see if it's against the letter).  I'm also interested in my question "Do more powerful spells have more forceful gestures?" but I suppose that's more of a discussion and better suited for the chat.


Estimate Percentile of normal distribution from a sample

I need to estimate 90th percentile of a normal distribution. Assuming that I have a small sample(<30) of the population of this distribution how can I estimate the 90th percentile? what assumptions can I make regarding the distribution of the sample. I think CLT is not applicable here because I dont want any CI for the mean. Note that the standard deviation of the population is unknown.


How do I prove this limit does not exist: $\lim_{x\rightarrow 0} \frac{e^{1/x} - 1}{e^{1/x} + 1} $ i ve a doubt

How do I prove that this limit does not exist?   $$\lim_{x\rightarrow 0} \frac{e^{1/x} - 1}{e^{1/x} + 1} $$  My attempt:  When you approach from from left towards zero , say i take -0.00000000000001 . i substitute in expression i get (-1) . But if i take 0.000000000001 and substitue i get (=1) (by applying L'Hop) . But if i dont do this and apply L'Hop straighaway i get 1 .


How do I get a type argument from a Type variable?

I need to call a method defined as:  public static T Deserialize<T>(Stream source)   In my code below I have determined the type:  string serializedObj = objbyte;  var typeSeperatorIndex = serializedObj.IndexOf(TypeSeperator); var type = Type.GetType(serializedObj.Substring(0, typeSeperatorIndex)); var serialized = serializedObj.Substring(typeSeperatorIndex + 1);   byte[] byteAfter64 = Convert.FromBase64String(serialized); MemoryStream afterStream = new MemoryStream(byteAfter64);  var result = Serializer.Deserialize<xxxxx>(afterStream); return result;   I need to supply the xxxxx type argument to the Deserialize<> method. How do I get this from my type variable?


I have a WCF service and I want to expose it as both a RESTfull service and as a SOAP service.  Anyone has done something like this before?


How can I create a 10-megabyte binary file on linux?

I want to create the file to implement a I/O benchmark on linux.  Thanks in advance, Antonio


Is there a way to create an HDR map from a rendered scene in blender?  I'm asking because I'm working to optimize an indoor scene that will be used multiple times for rendering scenes in a comic, and it has open windows which look out to a cityscape.  I would like to cut the cityscape out and replace it with an HDR version of it, so that it doesn't have to calculate as many bounces and (by extension) renders faster.


How to distribute Application which has multiple class Libraries

I am new to JAVA (Actually migrated to JAVA from C#) and creating a Application on NetBeans IDE 8.0.2 which contains following   Server Application (Java Application) <-- This contain my MainClass Network Layer (Java Class Library) Data Access Layer (Java Class Library)   I have successfully reference the .jar in each above layers by adding jar files Project Library in NetBeans as shown in below image    When i click on build in NetBeans it creates 'dist' folder under Server Application folder which contain Server_Application.jar and a 'lib' folder which contain Network_Layer.jar  I want to ask that did I reference it correctly ?  How to distribute these file ? Should i distribute all the .jar file (Data_Access_Layer.jar, Network_Layer.jar and Server_Application.jar) ? OR just distribute the 'dist' folder of Server Application.  I also want ask that if i convert Network_Layer.jar and Data_Access_Layer.jar to '.dll' and Server_Application.jar to '.exe' file will it work correctly ?  In C# same things creates .dll files and if i want to distribute it I simply make setup of these dll and exe files. How to do same thing in JAVA using NetBeans  (I don't want to wrap all .jar files into one)


How can I find the limit of the series $\sum^{\infty}_{n=0} \frac {(-1)^n 2^{-n} x^{2n+1}} {n!}$?

How can I find the limit of the series $$\sum^{\infty}_{n=0} \frac {(-1)^n 2^{-n} x^{2n+1}} {n!}$$ where $x \in \mathbb R$ ?  I've tried telescoping and looking at $s_k$ (partial sum).


Ho to declare in header is overload operator in struct?

I have a structure in which the operator template type. Want to make the correct announcement of this structure in header. Write the following code  header file  struct add_positive {     template<typename T>     T operator()(T value, const T& now); };   .cpp file  template<typename T> add_positive add_positive::operator()(T value, const T& now) {     if (now >= 0) {         return value + now;     }      return value; }   But when compiling get the following error:  error: prototype for ‘add_positive add_positive::operator()(T, const T&)’ does not match any in class ‘add_positive’  add_positive add_positive::operator()(T value, const T& now) { error: candidate is: template<class T> T add_positive::operator()(T, const T&)   T operator()(T value, const T& now);  Can't understand what I did wrong?


Database design: Deciding primary key for country, state, city tables

I have designed 3 tables as below: Table: Country Columns:  country(name of country), iso2_code, iso3_code, phone_code  primary key: country Table: State Columns:  state(name of state), country(fk from country table)  primary key: state, country Table: City Columns:  city(name of city), state(fk), country(fk)  primary key: city, state, country I have used composite keys as primary key for state & city tables. Is it bad design? Should I create auto-increment key for state & city tables & use them as primary key?


Story about a stranded astronaut that needed 40-something identical parts to fix his engine

A stranded astronaut needs 40-something identical parts to fix his engine, but the machine that was able to produce these parts out of nothing was so intelligent that it saw no point in repeating itself 40 times. He ended up using all sorts of suitable materials, then spent time convincing it that repetition is good. Finally he asked the machine to make another machine that would produce one part and yet another machine until he got what he needed.


I have Ubuntu 11.10 installed and want to download and install additional wallpapers on my desktop.   How do I do this?


Conditional distribution of $Y/b$ = distribution of $Y$

Suppose that an r.v $Y$ has the property that, for any $b$ greater than one, conditional distribution of $Y/b$  given that $Y$ is greater than $b$ is the same as the distribution of $Y$. what are the possible distributions of $Y$ and their expected values? I am thinking of exponential and Gamma, since they have the memoryless properties. But I really have trouble writing down the conditional distribution of $Y/b$, I messed up with the transformation. Appreciate your help!


In zsh, running the command read -p 'erasing all directories (y/n) ?'  ans, throws the error,  read: -p: no coprocess   But in bash, it prints a prompt. How do I do this in zsh?


Unable to pre process a .skt file as before

When using the command > skt file.skt, I get the following error message: 'skt' is not recognized as an internal or external command, operable program or batch file.  Here is a minimal example:  \documentclass[12pt]{article} \usepackage{skt} \begin{document} {\skt o. nama.h "sivAya} \end{document}   I use MikTeX 2.9.


Moving VMware OS image as primary OS on a system

How can you take a VMware image and place it onto other hardware systems as the default OS? I want to do this with my Ubuntu VM's


I have cracked my phone on the top-right corner, which makes me unable to see my notifications. It is such a big issue, I would really like to make my screen smaller, just so I can see them again.  Is there a way (preferable non-root, but if it has to be rooted it's ok) to resize my screen? If you grant WRITE_SECURE_SETTINGS to an app you can do things like enable fullscreen in all apps, so is there maybe a way I can make an app that resizes my screen all the time?


Required to prove: $1-\frac1{(k+2)!}$  $$\begin{align*} \sum_{i=1}^{k+1}\frac{i}{(i+1)!}&=\sum_{i=1}^k\frac{i}{(i+1)!}+\frac{k+1}{(k+2)!}\\ &= 1-\frac1{(k+1)!}+\frac{k+1}{(k+2)!}\tag{induction hyp.}\\[1em] \end{align*}$$  At my inductive solution i got stuck at the above section where i add the $k+1$ value to the inductive solution. Please help.


How can i access the div property scrollTop with locker-service Active?

I need to access and modify the standard div property scrollTop but the securityDOM does not use this. The security Review doesn't allow jQuery to be used in a controller script, so I need another way to access the property.


Cyclotomic extension over Q special case of Kronecker Weber theorem.

For $d\in\mathbb{Q}$, how could one show that $Q(\sqrt{d})$ lies in a cyclotomic extension of $\mathbb{Q}$ without using the ?


Call/Cancel Popup in Google App on iOS [Clarified]

A few days ago I was using the Google iOS app (not Chrome, but the specific "Google" app that you can download in the App Store) to go to shady website in an attempt to stream a movie online. Stupid, I know. I didn't download anything, and I didn't think I clicked on anything, but I started getting a prompt to call a number. As far as I could tell, it wasn't any of the obviously fake ones that tell you to call a number because your phone is compromised or anything. It looked like the legit prompt that pops up when you click on a number in iOS where it has "Call 808-xxx-xxxx" on the top row and "Cancel" on the bottom row at the bottom of your screen. This is the prompt that comes up if you click on a number in any app. Anyways, it popped up a thousand times and stopped when I killed the app. How does that exploit work? Did the webpage just trick my phone into thinking I clicked on a number a few dozen times? Is there any chance I got a virus from the website? Things have seemed fine since. Is there any way to tell if you have a virus aside from just the normal weird symptoms?


How does Stack Overflow, Meta Stack Overflow, etc. make money?

How do Stack Overflow and the rest of Stack Exchange sites stay up?   Someone has got to pay for the infrastructure and people's wages. So how do these sites make money?  Is it purely through advertising?  (I'm not looking to copy it! :) I'm just amazed that such a great system works for free!)


PDO is not inserting symbols correctly in my database

I'm having trouble to insert specific symbols in the database. I think the problem is related to PDO.  I've been trying to insert using prepare() and execute(), and I discovered that something is changing the symbols(and sometimes, making the insertion fail). The symbols are ?¿!¡. I tried, also, using just exec(), but the problem persist. A friend told me that PDO is sanitizing my query because SQL injection so it takes away characters, sometimes it replaces them and sometimes not let the insertion. I didn't found any info about it. I dont know if that is what is happening. If that's the case: how may I establish some kind of rules?   <?php  /* Here I establish connection with the database, nothing wrong here */ $dsn = 'mysql:dbname=dbname;host=localhost;charset=utf8'; $usuario = 'user'; $contraseña = 'password';  try {     $conn = new PDO($dsn, $usuario, $contraseña); } catch (PDOException $e) {     echo 'Something went wrong, Mkway?'; }  /*Oh! I forgot! Another thing I tried is changing character set, but it didn't  work either(I think that this is the same that specifing the charset, frankly  idk)*/ $conn->exec("SET CHARACTER SET utf8");  $answer = '¿¡Alguien dijo comer!?'; //It's a literal string. In the real code  this is an input, but here I'll suppose this is the input so you understand  the issue(before the idea occurs to you: I tried specifing this input and  checking if the insertion was successful, but it didn't work too)  $sth = $conn->prepare("INSERT INTO Answer (text, next) VALUES (:answer, 1)");  //So here I prepare the statement, nothing wrong with the query, tried it in  the database with the answer variable and worked like a charm.  $args = [    ':answer' => $answer ]; //Here the arguments I'll will include in the execute.  $sth->execute($args); //So here is the execute. I tried an exec, but it didn't  work too.    So, what I'm trying to do is that when i try to insert ¿¡Alguien dijo comer!? it actually inserts it, right now it's not inserting that. I tried too inserting Alguien dijo comer!? and it inserted Alguien dijo comer!r so it replaced the ? for r. Do you know what's wrong here?


How does the following C ++ function pass parameters to the following arm assembly function？

When I was studying the Android source code, I encountered the following C ++ function:  int clone_result; clone_result = syscall(__NR_clone, flags, child_stack, parent_tid, new_tls, child_tid);   The above function calls to the following assembly function:  ENTRY(syscall)     mov     ip, sp     stmfd   sp!, {r4, r5, r6, r7}     mov     r7, r0     mov     r0, r1     mov     r1, r2     mov     r2, r3     ldmfd   ip, {r3, r4, r5, r6}     swi     #0     ldmfd   sp!, {r4, r5, r6, r7}     cmn     r0, #(MAX_ERRNO + 1)     bxls    lr     neg     r0, r0     b       __set_errno_internal END(syscall)   I only know a little knowledge of the assembly process callI know that this assembly function is a system call and will enter the syscall function of the kernel, but I don't know its details.  For example: How does the syscall function in c ++ pass 6 parameters to this assembly function?  I know that 'swi # 0' calls kernel functions, but how does it pass parameters to kernel functions?  What should be understood about ‘ldmfd ip, {r3, r4, r5, r6}’ and ‘ldmfd sp !, {r4, r5, r6, r7}’?


The "tank" in think tank - is it a fish tank or a battle tank?

This morning I read about a think tank somewhere having this or that opinion on some policy.   I suddenly had this image in my head of brains free-floating in some kind of big fish tank, exchanging thoughts and ideas to come up with something brilliant.  Then I remembered "tank" having other possible meanings in English. Like the battle tank, designed to overcome evil by brute force, armored to sustain heavy enemy fire.   And I wondered - is this what a think-tank is? Some massive brainy killing-machine, immune to outside agression, designed to come up with the one great idea that will win the war?  If anyone could point out what kind of tank was initially meant at creation of the first think-tanks I'd be very thankful.


I know that I can use apt-get remove <package> to remove a program.  But apt is a program itself. Could I use apt-get remove apt to remove it, or would it get confused part way through?


Adding up Currency Values in a JavaFX table using BigDecimal

I want to sum the ObjectProperty<BigDecimal> values of a JavaFX TableColumn. I've used  as a reference. The problem is my implementation of it as shown here:   private void doSalesTotals() { olSales.addListener(new ListChangeListener<Sales>() {   @Override   public void onChanged(Change<? extends Sales> change) {     while (change.next()){       if (change.wasAdded()){         for (Sales s : change.getAddedSubList()){           totalWithDiscount.set(totalWithoutDiscount.get().add(s.getAmount()));           System.out.print(totalWithDiscount);          }       } else if (change.wasRemoved()){        } else if (change.wasReplaced()){        } else if (change.wasUpdated()){        }     }   } });   keeps giving me a nullpointer exception and no currency addition takes place.  Some context: The table is part of a POS module I'm doing for my 4th year Undergraduate project.  What exactly am I doing wrong and how do I solve it?


Can't install/update/remove apps "trying to overwrite... which is also in..."

While installing updating or removing any app, I get this error:  $ sudo apt upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: winetricks : Depends: cabextract E: Unmet dependencies. Try using -f.   And when I run sudo apt -f install, I get this error:  $ sudo apt-get -f install Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   cabextract The following NEW packages will be installed:   cabextract 0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded. 1 not fully installed or removed. Need to get 0 B/21.4 kB of archives. After this operation, 112 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 282096 files and directories currently  installed.) Preparing to unpack .../cabextract_1.6-1_amd64.deb ... Unpacking cabextract (1.6-1) ... dpkg: error processing archive /var/cache/apt/archives/cabextract_1.6- 1_amd64.deb (--unpack):  trying to overwrite '/usr/share/icons/cab_extract.png', which is also  in package zorinos-icons 10.0~xenial~NoobsLab.com Errors were encountered while processing:  /var/cache/apt/archives/cabextract_1.6-1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


Finding reason for transaction log 'tempdb' full due to 'ACTIVE_TRANSACTION'

Our application stopped working suddenly due to The transaction log for database 'tempdb' is full due to 'ACTIVE_TRANSACTION'.. Now, it start working again. But how can I know the exact reason for this error came?


how do you randomly select a uniform value from a range of numbers?  i am trying to select a uniform value from a range of numbers like 1-10, randomly. please help me how to do it  what is the enum in C++ ? purpose of #define ?  thanks  regards  Cash


I'm new to python and was working on a simple password cracker for practice with lists and dictionaries.  Half way thru my test program I ran into this error.  PS E:\python_projects> python test.py   File "test.py", line 9     global counter += 1                     ^ SyntaxError: invalid syntax   Here is the code...  maxChar = 4 counter = 0 alph = ['A','B','C','D','E','F','G'] passCheck = [] password = 'f' password = str(password.lower())  def loopTest():     global counter += 1      if counter <= maxChar:         loopTest()  #Nests loops      else:         for letter in alph:     #scans letters             passCheck[0] = letter              if passCheck == password:   #checks password                 print 'found password: ' + passCheck              else:                 print passCheck  loopTest()  print 'Debug.' print counter   there may be other errors and that's fine but I don't understand why I'm getting hung up on a += that I thought I understood, anyway thanks for looking!


How to clear all of this Bloatware that is insidiously being put on my phone?

As is probably a very regular question here, I have a Samsung Galaxy S5 Neo and I'm having problems with the amount of memory being clogged up by what I will assume is garbage. I have installed on my phone ES File Explorer and it helps with cleaning things up, but I'm consistently low on internal storage and as a result my phone is slowed down. I barely have any  documents or downloads on my phone. The largest set of files is pictures which take up 194.38 MB. Here is where the issue is, there is 9.72 GB being categorized as "Other". So the percentages are as follows:   Picture: 194.38 MB Audio 103.99 KB  Video 124.23 MB Document 8.68 MB APPs 6.34 MB Others 9.72 GB   It drives me up a wall because I don't save anything to my internal storage and always use my SD card. So I'm of the feeling that it is my provider and Samsung that have put a bunch of bloatware on my phone. So the question is how to find it and get rid of it all? Suggestions on a set of instructions I could follow? I feel there i no reason my phone should be this restricted for storage considering how I use it.  Thanks in advance.


How do I install courier-authdaemon on Ubuntu 18.04?

I am using a VPS from Contabo.com, and when using Digitalocean, I didn't have any problems. Now, when trying to install courier-authdaemon, I get an error saying that the package could not be found. Does anybody knows how to solve this problem?


How do I get the date to show up on pictures with an iPhone 5?

How do I get the date to show on pictures? I have an iPhone 5?


How to change color for a block of texts?

I am editing a LaTeX paper with Emacs. Sometimes I want to make a block of texts less obvious (or less important to see). Instead of totally hiding them, they should still be there. Is there an easy way to embed them in something so that it changes color (to grey for instance)?  By the way, besides changing color, are there other ways to easily make a block of texts look less important?


Not able to update DATETIME type column in mySql with Hibernate by using session.createSQLQuery() method

I am trying to insert Date and time in a DATETIME type column through session.createSQLQuery() method and getting java.lang.NullPointerException.  Thanks in Advance.  Controller class Code:      package dao;  import java.text.SimpleDateFormat; import java.util.Date; import org.hibernate.Session; import org.hibernate.Query; import org.springframework.orm.hibernate3.HibernateTemplate;  public class AccountDAO {     private HibernateTemplate template;     Session session;     int returnValue=0;      public HibernateTemplate getTemplate() {         return template;     }     public void setTemplate(HibernateTemplate template) {         this.template = template;     }     public int insertLogoutTime(int srNum, String userName) {         System.out.println("------>Inside AccountDAO<------");         System.out.println("*************-- In insertLogoutTime() Method--************");         try{             SimpleDateFormat sdfDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");             Date now = new Date();             //System.out.println("update login_info set Logout_DateTime ='"+sdfDate.format(now)+"'" +" where SrNum= "+srNum+"");              Query query=session.createSQLQuery("update login_info set Logout_DateTime =:theDate where SrNum=:srNum");             query.setParameter("theDate", now);             query.setParameter("srNum", srNum);             returnValue= query.executeUpdate();              System.out.println(returnValue);         }         catch(Exception e)         {             e.printStackTrace();         }         return 0;     } }   Error:  17:50:21,167 ERROR [STDERR] java.lang.NullPointerException


Will my HEX file fit in my microcontroller?

I have a hex file with a size of 42 kB.  Does the size matter while loading it in a microcontroller?  Can I load 42 kB hex file in a ATMEGA32 chip which has a memory of 32 kB?


How does a DX-format sensor support FX lenses?

I have a Nikon D3200 camera. I want to buy a prime lens. I read some reviews online and understand that the "Nikon AF-S NIKKOR 50mm F/1.8G" would be a good lens to buy, but this is a FX lens.   Can someone please explain me how my camera, which has DX-format sensor, can support FX lenses?


My carry-on is 21.59 cm deep.    Will it fit the Ryanair sizer boxes? (which I am aware are just a little bigger than their specified size).


I'd like to use LaTeX to typeset a novel. Could you recommend me any template?  What I mean is a template (some .tex file) where I can include my chapterN.tex files (mainly plain text) and get a pretty good design with zero work :)


I have a machine running a couple of vagrant VM. The problem I have is that sometimes I forget to shutdown those VM before I shutdown or reboot my machine. Because of that my machine get stuck with this message: waiting for vboxnet0 to become free  I searched about solutions and I found this page :    I tried what they for shutdown, but it doesn't work.  I wrote an sh file for that command:  #!/bin/bash  cd ~/workspace/git/mediaservice vagrant halt   any suggestions?


What are the proper permissions for an upload folder with PHP/Apache?

Sorry for the basic question - I'm a .NET developer and don't have much experience with LAMP setups.  I have a PHP site that will allow uploads to a specific folder. I have been told that this folder needs to be owned by the webserver user for the upload process to work, so I created the folder and then set permissions as such:  chown apache:apache -R uploads/ chmod 755 -R uploads/   The only problem now is that the FTP user can not modify the uploaded files at all.  Is there a permission setting that will allow me to still upload files and then modify them later as a user other than the webserver user?


Customizing tex4ht to generate html to convert to epub with Calibre

I'm trying to prepare html for conversion to an epub and have encountered a couple of problems that I would appreciate help with. Hope mixing a couple of related questions in a single post is OK.  The easiest is the quotation environment doesn't indent both margins (and not enough on the left). I've written a .cfg file and think I have that one solved. Here's what I'm using:  \Preamble{html} \begin{document} \Css { .quotation { margin-bottom:0.25em; margin-top:0.25em; margin-left:4em; margin-right:4em } } \EndPreamble   The next is figures and tables. tex4ht inserts an hr tag before and after the table. This is not part of the css, it's a separate tag generated by tex4ht. I haven't found where one customizes this. I can delete these in emacs from the html, but that doesn't seem the right way to do this. Here's a fairly minimal example showing the rules (and the quotation indent as well).  \documentclass{book}  \begin{document}  \chapter{Simple Example}  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla.  \begin{quotation} Default book style icreases the left and right margins for quotations by a noticeable amount. The css generated by tex4ht only increases the left margin by one em. The attached .cfg increases this to 4 em.  \end{quotation}  Sed lectus. Integer euismod lacus luctus magna. Quisque cursus, metus vitae pharetra auctor, sem massa mattis sem, at interdum magna augue eget diam. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Morbi lacinia molestie dui. amet mauris.  \begin{table} \begin{center} \hbox{ \begin{tabular}{|l|c|c|}\hline entry1&entry2&entry3\\ entry4&entry5&entry6\\ \hline \end{tabular}} \end{center} \caption{a caption} \end{table}   Morbi in dui quis est pulvinar ullamcorper. Nulla facilisi. Integer lacinia sollicitudin massa. Cras metus. Sed aliquet risus a tortor.   \end{document}   [Edit 2] I'm pretty sure the hr tag is being generated for all floats. By trial and error I found my way to the html4.4ht file, which contains this code:  \Configure{float}    {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}    {\:xhtml{\IgnorePar\EndP}\HCode{

}}    {\ifvmode \IgnorePar \fi\EndP     \HCode{

}\csname par\endcsname\ShowPar}   On the assumption that the \HCode macro defines the html output, I removed the hr tag:  \Configure{float}    {\ifOption{refcaption}{}{\csname par\endcsname\ShowPar \leavevmode}}    {\:xhtml{\IgnorePar\EndP}\HCode{
}}    {\ifvmode \IgnorePar \fi\EndP     \HCode{
}\csname par\endcsname\ShowPar}   When I run htlatex with this config file, I get an error on a \begin{center} that is within a begin{table}. Without this change to the config file it runs fine, it has something to do with the edit, but since I don't really understand what's going on here, I'm utterly baffled as to how to fix it.  [End Edit 2]  [Edit 3]  The problem is not the change to the \Configure statement, but the presence of the \Configure statement in the .cfg file. Even if I copy the \Configure statement verbatim, I still get an error when \begin{center} is encountered. The error is "Missing $ inserted"  [End Edit 3]  The captions for figures and tables are not on the float page, but follow immediately on the next page after conversion to epub. Is this an html problem that can be fixed in tex4ht, or is it a problem in how Calibre is interpreting the html?  (updating to the current version of Calibre fixed this)  Should I be producing xhtml instead of html?  I'd be grateful for a pointer to good documentation about customizing tex4ht.


Top 10 priorities in performance optimization of a complex Drupal site

I read a lot about many ways to improve drupal site performance optimization, but I did not find a clear indication of the top 10 most relevant modifiations for optimizing the performance of a complex site.  I currently am working to optimize a very complex site that has completely grown out of hand and needs serious modification because current page load speed is about 4 to 6 seconds for authenticated users. The website is mostly being used by authenticated users. The only access restriction is present through the Organic Groups module.  Current state:   90 node types  140 select boxes checked on the admin/modules page  63 Vocabularies   240 views (excluding the additional views displays)  30 rules,    50 rules components   130 node panel variants   10,000 lines of css (excluding the omega base theme and modules style sheets)   What is the most important to start with, in general?


What exactly serves as the meta theory in the study of set theory (for example in Kunen's text). It seems to involve a certain amount of number theory and a certain concept of what it means to be finite.   Also: We usually use $\bigcup_{\alpha\in{ON}}R_{\alpha}$ as our set theortic universe $V$ (in the sense we believe that all sets we are interested in live there) where $R_{0}=\emptyset$, $R_{\alpha+1}= \mathcal{P}(R_{\alpha})$ and $R_{\alpha}=\bigcup_{\beta<\alpha}R_{\beta}$ when $\alpha$ is a limit ordinal. The study of independence results then seem to be based on relatavizing notions with this $V$ as our set theoretic universe. It seems that it is implicitly assumed that the $\omega$ in $V$ has no non-standard elemements (in the sense that there is no $n>a$ in $\omega$ where $a$ is obtained be repeatedly applying the successor operation to $0$.) Is this true and can it be formalized or is it something that is taken for granted?   e.g. If the above were true then $ZFC\vdash{\neg{Con(\ulcorner{ZFC}\urcorner)}}$ would imply that $ZFC$ is inconsistent since we may look at the $ZFC$ axioms $\phi_{1},...,\phi_{n}\vdash\neg{Con\ulcorner{ZFC}\urcorner}$, then look at a ctm these axioms (which exists by reflection and downward Lowenheim Skolem) and recover the proof of the contradiction.


What is a real word that means "disenthused"?

I want to get across the point that I was no longer enthusiastic about something:     When I walked in the room I was disenthused by what I saw.   , disenthused isn't a word.    Edit:  was right about my question being more vague than I intended.  Lots of great answers which can only be discriminated by criteria I failed to include in the original post.  I will not repeat the mistake for future postings.  Thank you all for the help.  I've marked the answer that best fits my situation as "accepted", but future Googlers should scroll through the list of answers for their needs.


Python package init file can have variable __all__ that lists the sub packages to be imported when using: from package import *  Is this same as writing import sub package name(s) in the init file (instead of __all__) ?  I have read article thay says if the init.py file in the package directory contains a list named all, it is taken to be a list of modules that should be imported when the statement from  import * is encountered.


Javascript access to spell checker on browsers

Is it possible to get access to the spell checker that is incorporated in browsers for text areas from Javascript? I would like to be able to control spell checking from withing my code. Most browsers (apart from IE) seem to have some kind of a spell checker built in to them nowadays.


I read so many related questions and tried so many different things, but nothing seems to work. I am really new with Ubuntu/Linux, and I would be so grateful if someone could help me with that.   The DVD spins for a few seconds, then stops. I can not see it in the finder window, and I can not mount it. I installed a whole bunch of libdvd-things but this also does not seem to work.   Typing apt-cache policy ubuntu-restricted-extras gives me     ubuntu-restricted-extras:   Installed: (none)   Candidate: 60   Version table:      60 0         500 http://at.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages   Typing apt-cache policy ubuntu-restricted-addons gives me    ubuntu-restricted-addons:   Installed: 20   Candidate: 20   Version table:  *** 20 0         500 http://at.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages         100 /var/lib/dpkg/status   Maybe someone can be so kind and help me out.  Thank you!   Regards Olivia


Enable clickjack protection for non-setup Salesforce pages

i want to enable the iframe on visualforce pages.i am going to disable it from      Administration Setup" -> "Security Controls" -> "Session Settings   but it is disabled. how can i disable/uncheck it.   Update:   i want to uncheck:  clickjack protection for non-setup Salesforce pages  and    clickjack protection for non-setup customer Visualforce pages with headers


Attempt to invoke virtual method 'androidx.fragment.app.Fragment androidx.fra.app.FragmentManager.findFragmentById(int)' on a null object reference

Here is the error that I have been getting: java.lang.NullPointerException: Attempt to invoke virtual method 'androidx.fragment.app.Fragment androidx.fragment.app.FragmentManager.findFragmentById(int)' on a null object reference         at com.skyloromnisecurity.skylor.common.ContactEditTexts.findEditText(ContactEditTexts.java:44) Line 44 is 'Fragment fragment = fragmentManager.findFragmentById(fragmentId);'  `public class ContactEditTexts {     private List contacts = new ArrayList<>();     private Context context;  public ContactEditTexts(FragmentManager fragmentManager, final Button bActionButton,                         Context context) {     this.context = context;      TextWatcher phoneNumberTextWatcher = phoneNumberWatcher(bActionButton);     List<Integer> ids = Arrays.asList(first_contact, second_contact, third_contact);     for (Integer id : ids) {         EditText editText = findEditText(id, fragmentManager);         editText.addTextChangedListener(phoneNumberTextWatcher);         contacts.add(editText);     } }  private EditText findEditText(int fragmentId, FragmentManager fragmentManager) { Fragment fragment = fragmentManager.findFragmentById(fragmentId);     assert fragment != null;     return (EditText) fragment.requireView().findViewById(R.id.contact_edit_text); }`


Why do most metals (iron, tin, aluminum, lead, zinc, tungsten, nickel, etc.) appear silver or gray in color? (What atomic characteristics determine the color?)  What makes copper and gold have different colors?


How to halve the damage on a successful saving throw?

I'm new to DnD, though not new to rpgs in general.  I'm a bit confused on the damage of spells. For example, the Fireball deals 8d6 fire damage on a failed saving throw, and half as much on a successfull one.  What exactly is "half as much" in this case?  Is it 4d6 (half the number of dice)? Do I throw 8d6, add them up and halve the sum? Or do I throw 8d3 (half each die)?


apt update ubuntu 18.04 does not have a release file

When I try to query the command apt-get update, I get an error message: OK:1 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease OK:2 http://de.archive.ubuntu.com/ubuntu bionic InRelease                       OK:3 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease               OK:4 http://ppa.launchpad.net/seafile/seafile-client/ubuntu bionic InRelease    OK:5 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease             Ign:6 https://packages.sury.org/php bionic InRelease                            Fehl:7 https://packages.sury.org/php bionic Release                               404  Not Found [IP: 104.31.95.169 443] Holen:8 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB] Paketlisten werden gelesen... Fertig                  E: The archivbe "https://packages.sury.org/php bionic Release" does not have a release file. N: Updating from such a repository cannot be done in a secure way, so it is disabled by default. N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8).


Let $$ \frac{1}{1} +\frac{1}{2} +\frac{1}{3}+...+\frac{1}{p-1} =\frac{a}{b}$$ with $(a,b)=1$   and $p$ a prime number, (   $p>3$ ). Show that $ p^2 |a $.   I can't solve it.


How much more damage is caused after hitting a brick wall at 100mph over 50mph?

How much more damage is caused after hitting a wall at 100mph over 50mph? It is clear that there is just twice as much force generated after hitting a wall at 100mph, since the deacceleration is twice as large. But is the energy produced four times as much? This is unclear to me.


How do I prove $\int_{-\infty}^{\infty}{\cos(x+a)\over (x+b)^2+1}dx={\pi\over e}{\cos(a-b)}$?

How do I prove these?  $$\int_{-\infty}^{\infty}{\sin(x+a)\over (x+b)^2+1}dx={\pi\over e}\color{blue}{\sin(a-b)}\tag1$$  $$\int_{-\infty}^{\infty}{\cos(x+a)\over (x+b)^2+1}dx={\pi\over e}\color{blue}{\cos(a-b)}\tag2$$  I am trying to apply the residue theorem to $(2)$  $$f(x)={\cos(x+a)\over (x+b)^2+1}$$  $(x+b)^2+1$=$(x+b-i)(x+b+i)$  $$2\pi{i}Res(f(x),-b-i)=2\pi{i}\lim_{x\rightarrow -b-i}{\cos(a-b-i)\over -2i}=-\pi\cos(a-b-i)$$  $$2\pi{i}Res(f(x),-b+i)=2\pi{i}\lim_{x\rightarrow -b+i}{\cos(a-b+i)\over 2i}=\pi\cos(a-b+i)$$  How do I suppose to evaluate $\cos(a-b-i)$ and $\cos(a-b+i)$?


xfce4 window manager: increase the width of window borders for growing/shrinking windows

I use an ultra-wide monitor that has big but not super-huge resolution (2560x1080 I think). One long standing irritation I've had is that getting the mouse cursor over a window border (corner, really) to resize a window is really a pain in the neck. On the native laptop 1080 screen it's also kind-of tricky.  I run xfce4 as my desktop. Is there any way to tell the window manager to increase the "active" window border size to some larger number of pixels?


Changing Network Interfaces name Ubuntu 16.04

I tried to change network interfaces name on this new Ubuntu 16.04 LTS version but doesn't have the /etc/udev/rules.d/70-persistent-net.rules.  So, I tried to use /lib/udev/write_net_rules but it not exist.  Why do I need this modification? Because I'm using a tool to Simulate virtual platforms that use flex licensing and the authentication need to be in eth0 interface name.  Any suggestion?  The command ip link returns:  user@laptop:~$ ip link  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: enp6s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000 link/ether b8:2a:xx:yy:xx:yy brd ff:ff:ff:ff:ff:ff 3: wlp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000 link/ether 5c:e0:xx:yy:xx:yy brd ff:ff:ff:ff:ff:ff  user@laptop:~$ ifconfig  enp6s0    Link encap:Ethernet  HWaddr b8:2a:xx:yy:xx:yy   lo        Link encap:Local Loopback   wlp7s0    Link encap:Ethernet  HWaddr 5c:e0:xx:yy:xx:yy     (Some information were ignored and suppressed)  I already tried some links:


How to open Nautilus at current command line directory?

I was wondering if anybody knew a command that would allow me to open a Nautilus (if that's the right name for the Ubuntu graphic/window explorer) window from the command line at the current directory that the user is at.  So, if I open a command line, and type:  cd /home/myUser/some/long/path/to/a/directory   Then, I'd like to be able to issue some command:  nautilus open-sesame   And have a graphic window opened to /home/myUser/some/long/path/to/a/directory. Is this even possible?


Is there a word for when you/someone seeks help with a problem from someone else, but then the problem is resolved/gone when the helper arrives?

This is a situation I see my self first hand very often as someone who works in an IT related role. I also see it in other areas and experienced by seemingly everyone, but I don't know if there is a word for it. If not, I think we should make one!  For example: Your car is making a weird abnormal noise when you start it, and it predictably does this every single time you start it. However when you take it to a Mechanic and you start the car like any other time, and the noise is gone.   Maybe there's an idiom or proverb that describes this. I feel this is a common experience that should have more eloquent explaining what happened than saying "I swear I'm not crazy, it was just doing it before you came!"


Can anybody explain the UNABLE_TO_LOCK_ROW error?

Error Message:     Developer script exception from Nicomatic : quotepotential :   quotepotential: execution of AfterUpdate caused by:   System.DmlException: Update failed. First exception on row 0 with id   a0Q90000005PoxtEAC; first error: UNABLE_TO_LOCK_ROW, unable to obtain   exclusive access to this record: [] Trigger.quotepotential: line 14,   column 1      Apex script unhandled trigger exception by user/organization:   00590000001A6jh/00D90000000bovq      quotepotential: execution of AfterUpdate      caused by: System.DmlException: Update failed. First exception on row   0 with id a0Q90000005PoxtEAC; first error: UNABLE_TO_LOCK_ROW, unable   to obtain exclusive access to this record: []      Trigger.quotepotential: line 14, column 1   these mails are getting to my mail..........  trigger quotepotential on Quote_Line_Item__c (after insert,after update) {     Set<Id> quoteIds = new Set<Id>();     List<Quote__c> quotes = new List<Quote__c>();     for (Quote_Line_Item__c record: Trigger.new) {         if (record.Quote1__c != null){             quoteIds.add(record.Quote1__c);         }     }     for(AggregateResult ar:[                 SELECT                      Quote1__c,                      SUM(Max_Batch__c)sumMax                  FROM Quote_Line_Item__c                  WHERE Quote1__c=:quoteIds                  GROUP BY Quote1__c                 ]) {          quotes.add(new Quote__c(              Id=(Id) ar.get('Quote1__c'),              Potential__c = (Decimal) ar.get('sumMax')              ));     }     if (quotes.isempty() == false) {         update quotes;     } }


Okay so I have a slight problem.   I can't figure out how to get rid of the animation panels? Please help, I'm quite new to blender so sorry if this is quite simple.


Galilean covariance of the Schrodinger equation

Is the Schrodinger equation covariant under Galilean transformations? I am only asking this question so that I can write an answer myself with the content found here:  and here:  I learned about these pages in a comment to  by Ron Maimon. I think Ron Maimon is the original writer of this content. This is creative commons, so it's ok to copy it here. It is not on any textbook on non-relativistic quantum mechanics that I know of, and I thought it would be more accessible (if to no one else, at least for myself) and safe here. I hope this type of question is not in disagreement with site policy.


Should I retag a question with a tag that is based on the answer and not the question?

Here's a scenario:  Someone asked about "How to build a SQL query to get count and blah blah blah..."  His only tag is . I added the  and  tags to it.  Someone else answered with a nice SQL statement that has a "group by" statement which seems "logically inevitable".  I proceed to add a tag . I did that on the basis that someone who searches for  will be able to find this post useful, just as I did. My concern is, it wasn't described at all in the question, nor was it implied, unlike  and .  What is the community opinion?  The scenario above is a real one . And the one who answered it nicely is Jon Skeet.


Maximum size of the observable universe?

The size of our observable universe must have grown over time in the early universe.  Conversely with the accelerated expansion, I have heard that eventually our observable universe will shrink down to our local group of gravitationally bound galaxies.  So then the observable universe must go through a maximum at some point in time.  When is that and what is that maximum size?


Ubuntu 18.10 shows black screen with blinking cursor after I rebooted a Thinkpad with hybrid GPUs

To switch to Intel GPU from Nvidia 1050Ti, I entered "sudo prime-select intel". Something like: get Intel information showed up on the screen. I logged out and logged in. I went to About but it showed that Nvidia 1050 Ti was still being used. Next, I rebooted the machine. It showed a black screen with a blinking underline cursor on the top left. It stayed there foreover. I pressed the power button continuously. Then, the purple screen with Ubuntu in the middle showed up. After the few dots below Ubuntu turned on, the laptop shut down. I turned on the machine again. Blank purple screen showed up. Then a long list of sentences showed up on the screen quickly. So quick that I could not see what were written on it. Then, again the blinking cursor showed up on the top left. Could you please help to resolve the issue?


If $f$ is continuous $\exists t: f(t)=\frac{f(x_1) + ... + f(x_n)}{n}$

In an exercise I'm asked to prove the following:  Let $f: [a,b] \to \Bbb R$ be a continuous function and $\{x_1,...,x_n\} \subset [a,b]$. Prove that $\exists t \in [a,b]:$ $$f(t)=\frac{f(x_1) + ... + f(x_n)}{n}$$  What I did was the following: I first proved as a lemma that if $\{x_1,..,x_n\} \subset [a,b]$ then $\exists x \in [a,b]$: $$x=\frac{x_1 + ... + x_n}{n}$$ and then used this lemma with the intermediate value theorem to prove the result. Is there a more straightforward and direct way of proving this?


Why can't men produce milk, just like women?

This might seem a bit weird, but why can only women produce milk? Wouldn't it be more beneficial to our species if all humans could produce it? I can't think of any reason only one gender would need it, unless it would somehow be harmful to men.  I know that men can secrete milk in some cases, but why not in general?


Questioning the commutative property in complex powers

We have:$$e^{2\pi\cdot i(1+\frac{1}{x})}$$  Power properties state that: $a^{b\cdot c}=(a^{b})^{c}=(a^{c})^{b}$. Thus we could re-write the above power as: $$(e^{2\pi\cdot i})^{1+\frac{1}{x}}=1$$ Which should be equal to: $$(e^{1+\frac{1}{x}})^{2\pi\cdot i}\neq1$$ But this is not the case. Also the first result is a Real number while the second is a Complex one.  I'm not really questioning anything, I just couldn't find the right title. Can anyone explain me where the mistake is?


How can I redirect a subdomain to a different URL via Windows DNS?

Let's say I have a site called test.website.com that I'd like to forward to www.website.com/test.   How can I achieve this via Windows Server 2008 DNS?  I've configured this for external users via GoDaddy Subdomain Forwarding but I can't seem to figure out how to do this internally via Windows DNS.  I tried setting up a CName to do this and although it will redirect pings to the desired URL, it doesn't seem to work for the website itself.  This seems like something basic but I can't seem to figure it out. Thanks for any help in advance.


Is it common practice to insert images at the top of a page?

This is not a question about how to insert images at the top, but rather asking whether or not this is common practice.  The template I've received from my university automatically inserts figures at the top of a page if no other flags are given using \begin{figure}[t] as default.  Personally, I find it a bit awkward to be introduced to a certain image before reading about the respective explanation within the text. But I got a feeling that top-positioned images are the way one usually writes LaTeX documents.  At the end of the day, it's a question about preference, but I really want to know which of the two following is "the way to go": Left or right?


Is it possible to see the Milky Way galaxy through a gravitational lens?

I have been thinking about these amazing images of ancient galaxies we can see because of gravitational lensing. Some of them even have multiple images of the same galaxy in two different places around the lens. We know that with some traditional glass lenses we can reverse the image backwards out of the lens in the direction it came.   Is it possible to see our home galaxy the Milky Way as an image from a gravitational lens refracted back toward us? What would it take to be able to identify and confirm it was actually the Milky Way? I imagine the image would be of the Milky Way many millions of years in the past simply because of the distance such an image would have to travel.  Is there any ongoing research in this field?


Is there a word or phrase to describe unnecessary details?

Preferably in a more idiomatic kind of way.  I was thinking 'chaff', as in 'to separate the wheat from the chaff' (to separate the important details from the unnecessary ones), but am I right in thinking that that's used more in terms of people?


\begin{figure}[!ht]    \begin{subfigure}{0.31\textwidth}   \begin{tikzpicture} \begin{semilogyaxis}      [name=plot, ymin=0,ymax=10,xmin=0,xmax=2,     xlabel = $L(m)$,     ylabel = {$T(s)$},     legend pos=north west,   scatter/classes={%     a={mark=o,draw=black}}] \addplot[scatter,only marks,%     scatter src=explicit symbolic,  error bars/.cd,    x dir=both,  x explicit,   y dir=both,   y fixed=1.61] table[x=x,y=y,x error=xerror] { x      y     xerror 0      2.20  0.01 0.38   2.13  0.03 0.46   2.1   0.04 0.54   2     0.02 0.63   1.95  0.01 0.79   1.86  0.02 0.84   1.79  0.05 1      1.69  0.08 1.13   1.61  0.06 1.31   1.48  0.04 1.42   1.39  0.02 1.7    1.22  0.02  };\label{puntos}      ]  \addplot [     color=red,     domain=0:2     ] {-0.6354*x+2.325};\label{Func} \end{semilogyaxis}  \node[anchor=north east, draw=black, fill=white] (legend) at (plot.north east) {\begin{tabular}{l l}  Ajuste & \ref{Func}\\  Datos & \ref{puntos} \end{tabular}}; \end{tikzpicture}     \caption{Figura 2 --      \begin{equation}         y_1=a\cdot x_1^2+b\cdot x_1+c     \end{equation}      \textit{$r_2=0.99$, la correlación es positiva y casi es máxima por lo que se podría decir que el ajuste es casi perfecto.\\  \begin{equation*}   a=-6,2065   \end{equation*} \begin{equation*}  b=8,4139  \end{equation*} \begin{equation*}  c=-1,251 \end{equation*} \begin{equation*}  y_1=-6,2065\cdot x_1^2+8,4139\cdot x_1-1,251 \end{equation*} -\\}}  \end{subfigure} \end{figure}


Why is $\pi$ irrational if it is represented as $C/D$?

$\pi$ can be represented as $C/D$, and $C/D$ is a fraction, and the definition of an irrational number is that it cannot be represented as a fraction.   Then why is $\pi$ an irrational number?


phone plugged to computer, ring in computer sound system

I usually keep my phone plugged by usb to my computer.  But when someone call me, I'd like to have the ringtone going to the computer, and then to the computer sound system (like, the wireless headphone I'm wearing all day long).  I'm looking for a Windows or Linux solution


How do you change email address on trainer account

I am using the Pokimon Go trainer club and it won't let me go on the app as a message pops up saying 'please active your account in order to play'  ButI have forgotten the email address I used originally when signing up.  Can I change the email address on my account?  I know my user ID and password.  I'm hoping I don't lose or have to restart as I collected Pokimon already. Many thanks


How to get 'typeof' of the value of a variable

I am dynamically loading functions as needed in my web app. When I request these functions as I need them, I'd like to check if they already exist. So I pass in an array of the function names such as ['Result','Question']. I then loop through that array and would like to see if it's typeof is a function, if so, then I know I don't need to load it.  Here is a simplified version:  function Result(){} var functionName = 'Result'; if (typeof functionName == 'function'){     alert('function exists, don't load it'); else     alert('function does not exist, load it');   I know the above example doesn't work because I need the value of functionName, not functionName itself. Any ideas how to do this?


Minecraft LAN Multiplayer doesn't always work

I play multiplayer Minecraft (java edition) with my brother a lot, but it doesn't always work, which is frustrating. Sometimes it shows up, and sometimes it doesn't. I'm trying to find a solution for when the shared game doesn't show up on my brother's computer (and vice versa). We made sure to use different accounts, connect to the same wifi (we tried Ethernet as well), allowed Minecraft and Java through the firewall, and it still didn't show up. Then we tried direct connect, restarting the computers, restarting Minecraft, reconnecting to wifi, and turning off the firewall, and none of those worked either. I'm not sure what to try next, other than to wait for it to start working again. Any help or information about why it's doing this would be greatly appreciated!


Does optimiser differentiate between JOIN ON and WHERE causes?

My question is pretty straightforward and I would like to extend my knowledge about the matter of improving SQL queries perfomance-wise.  I am very often faced lately with bequithed scripts from my collegues who are a bit "messy" when writing scripts.  They write join clauses the old way by writing tables one after another delimited with commas.  I know that output wise those scripts are the same, but can there be a perfomance improvement by rewriting those scricts into the classic join clauses?  EDIT: So I have rewritten the poorly written code and I have together 3 examples, however only as pictures the formatting was really crazy, maybe I can later reformat it again - here is the album   So on the first picture is kind of a mixed approach between joins and cartezian products, it took 35 minutes to run the result.  The second picture is my rewritten code - it took a little over a minute to gain the same result.  The last one I have specifically rewritten the code to only cartezian products - it runs for an hour now and I dont know when it will stop.  So can anyone help me get some usefull information from the stats in the pictures? Which indicators are good to look at for performance? Because the approximated time of the last approach was the least, however it turns out it is the slowest one.  Thank you.


Frequentist approach to prior information

From the frequentist point of view, is it possible to incorporate prior information about a parameter into a probability model? Let me illustrate with an example: suppose you have a die with black and white faces but you do not know how many of each; you are then told that you can flip a coin for each face of the die and if it lands heads, then the face will be black, otherwise it will be white. Then, we are interested in finding out the number of times $X$ among $n$ die throws that the upper face will be black.   From the Bayesian point of view, it is clear that we can consider a binomial distribution for the prior for the probability of success $\theta$ (black face being upper). We then compute the likelihood of $\theta$ for some observed data $x$, then the posterior, and we are done. But from a frequentist point of view, how can we incorporate the information that we have about $\theta$? Do we just consider the fact that $\theta = 3/6$ is the most probable value and thus just use the probability model for $X$ evaluated at that given value of $\theta$; or is the incorporation of prior knowledge incompatible with frequentist assumptions? Does this mean that in cases like this, a frequentist is limited to using a point estimate for $\theta$? Do prior information/posterior distribution have a frequentist equivalent?  edit: I had already seen from the suggested duplicate post that you can incorporate prior information with Bayes rule, but it is still not entirely clear to me what this means: is this just a way of saying that you need to use a point estimate for the parameter according to what you learnt from the prior information?


What are the main differences between principal component analysis PCA and factor analysis

I have used PCA in my thesis and would like to argue (in best way) during viva the choice in addition to the fact that PCA analyses the variance of the observed items whereas FA analyses covariance.


SF novel, starts w/ actor & widow meet timetraveling husband, there was a party, bankruptcy then scene set on the moon

I havent finished this book. I forgot a lot about the specific details but I remembered how it started.   A popular actor (?) went to this lady's house in a car and she was described like a widow. It was because his husband was timetravelling and can only show up on a specific date and time.    They meet the time traveling husband and turns out it’s the last time he can show up. The husband told them something important.  I'm not sure what it was,  something weird like, the actor and his wife should end up together.   The actor person went home, was distraught, had a luxurious party and woke up bankrupt.    There was a bit about some not human partners disguised as a couple who wanted to catch/kidnap someone.   Then a scene on the moon.  A weird name and a punishment that amounts to forgetting something.


How do I remove all files except some listed in a .csv file

I want to remove all files in a directory while leaving just some specified files, that are listed in .csv file. Let's say I have some audio files in a home/wavs/ folder and a list of .wav files I want to keep in home/select_wavs.csv. How could I remove all .wav files except those that are listed in home/select_wavs.csv? home/select_wavs.csv contains a list of the .wav files as follows: LJ049-0052.wav LJ049-0082.wav LJ049-0104.wav LJ050-0084.wav LJ050-0245.wav ...  I have tried using ls wavs | grep -v select_wavs.csv to find a list of the .wav file I want to remove but that does not seem to work...


There exist any kind formula for the next sum? $$ \sum_{i = 0}^n \binom{n}{i}i^\alpha $$ with $\alpha$ an integer.


Unable to execute command in ubuntu 12.04

I have been assigned a Ubuntu 12.04 system.I have administrator privilages but when i try to execute command such as ifconfig,sudo etc the command does not executes.I have executed ifconfig command and i have got the following results      Command 'ifconfig' is available in '/sbin/ifconfig'   The command could not be located because '/sbin' is not included in the PATH environment variable.   This is most likely caused by the lack of administrative privileges associated with your user account.   ifconfig: command not found   but when i run the command as /sbin/ifconfig it executes but the problem is i have to use the entire path rather than just simply typing ifconfig.   Please suggest me what is the problem.And is there any solution for the above problem. Do help I am new to Ubuntu and i want to work with it any suggestion will be helpful


Finding numbers in an array above the average number

I am trying to figure out why my code won't allow me to correctly print any values in the array that are above the average value. I looked at a stackoverflow example of another user with a similar issue but it still didn't make sense. I don't even understand the current output for the values above the average.  How do I print the values in the array that are above the calculated average of all the array values?  I'd appreciate the help.  My code:  public class Inequality  {     public static void main(String[] args)      {         // list of incomes in thousands          int[] income = {2,10, 532, 4, 53, 28, 291, 38, 6, 17, 73, 21};          int sum = 0;          int average;          int aboveAverage = 0;           for (int i = 0;i< income.length;i++)          {              sum = sum + income[i];          }          average = sum/income.length;          System.out.println("Average of income array: " + average);           for (int i = 0; i < income.length; i++)          {              if (income[i]>average)              {                  aboveAverage++;              }          }          System.out.println("There are " + aboveAverage + " numbers above the average.");          System.out.println("Range of numbers above the average: " + income);     } }   My output:  Average of income array: 89 There are 2 numbers above the average. Range of numbers above the average: [I@15db9742


Mov file size very small compared to pngs

I just made a video in mov-formate containing 300pngs in 4k. Every single png ist roughly 6MB in filesize. The mov-file is just 8MB. Seems weird to me. Is there maybe a quality loss in the video? The video looks fine but the size just seems so small.


Can you help me understand why my answer got down-voted on SO?

I felt like I fully answered a question somebody had, but I still got down-voted.  I think it's because what they asked was not a recommended practice, but I don't understand why my answer was down-voted.  After one comment, I put a disclaimer saying it's not best practice, hoping to improve the answer, but am still getting down-voted. I'm trying to give back to SO for all the help it has given me, and want to do well. Please help me be a better answer-maker. :-)  The Question in question:


Can I create a new session in another tab or window in Google Chrome?

I have multiple accounts on many of the same services. I would like a better way to manage my sessions.   A personal Gmail account, and one for work A personal Amazon account, one for work A personal hosting account, one for work, one I manage for a freelance client Many other scenarios like this   As a developer, I'd like to avoid repetitive logins for   browse as a logged-in admin browse as a logged-in user browse as a guest, or any other role   I'd like to avoid having to logout, login, logout, login, over and over again.  I understand that some services like Gmail offer simultaneous logins, but I want a general purpose solution that works for all services.  Chrome Incognito Mode is not designed for this   Chrome Incognito Mode gives you a new cookie jar, but cookies are shared across other incognito windows. At best, this means you can have two sessions. Other browser extensions you may rely upon are not available in Incognito windows (nor should they be) This isn't Incognito's intended purpose


recent changes to the off-topic close reasons

EDIT: Why was this question marked as duplicate? Please do not vote for a duplicate if you did not take the time to read the posts. As I said in the comments, the difference between those two reasons is not mentioned on the alleged duplicate post.  This is a follow-up question on: .  I am honestly confused with the recent changes to the set of off-topic close reasons. Let me hasten to add that I welcome constructive changes and that I try to make an effort to flag a question with the correct close reason.  I have trouble to discern the following two close reasons:     This question appears to be off-topic because it lacks sufficient   information to diagnose the problem. Describe your problem in more   detail or include a minimal example in the question itself.   and     This question was caused by a problem that can no longer be reproduced   or a simple typographical error. While similar questions may be   on-topic here, this one was resolved in a manner unlikely to help   future readers. This can often be avoided by identifying and closely   inspecting the shortest program necessary to reproduce the problem   before posting.   For starters, they both link to the same SO help page: . But there's more:   What's the difference between "lacking sufficient information to diagnose the problem" and "a problem that can no longer be reproduced"? Both close reasons ask the OP to post or study a minimal code sample.   This is not about whether you like those close reasons, so please don't post your opinion. All I ask is:    the rationale behind the above close reasons straightforward examples that clearly show when to use which close reason     Besides, I don't think I can grasp the wording here: "this one was resolved in a manner unlikely to help future readers". Is this a close reason for problems that are already solved?


Why am I receiving a NullPointerException during compilation?

Hello I am currently working on a assignment for an exam in my Java programming course.  Right now I am trying to make this program run without errors. Can anyone please help me to understand what I am doing wrong? I have this code and I get stuck with an NullPointerException:     java.lang.NullPointerException    at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)   at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)   at   java.lang.reflect.Method.invoke(Unknown Source)   at   edu.rice.cs.drjava.model.compiler.JavacCompiler.runCommand(JavacCompiler.java:272)   import java.util.Random; import java.util.Scanner;  public class BattleShip {      // Board size     int boardxlength = 5;     int boardylength = 5      //ships      Ship submarine;     Ship destroyer;     Ship battleship;      // Random number function     Random random = new Random();      // Begin Main     public void main(String args[]) {          // create Ships         SetupShips();           System.out.println(submarine.length);      } // end Main function        // Create Ships function      public void SetupShips() {         submarine = new Ship("submarine", random.nextInt(boardxlength), random.nextInt(boardylength), 2);         destroyer = new Ship("destroyer", random.nextInt(boardxlength), random.nextInt(boardylength), 3);         battleship = new Ship("battleship", random.nextInt(boardxlength), random.nextInt(boardylength), 4);     }      /**      * **************************************      */        /*   CLASSES       /******************************************/     public class Ship {         String type;         int row;         int col;         int length;          //Constructor         public Ship(String strtype, int intx, int inty, int intlength) {             type = strtype;             row = intx - 1;             col = inty - 1;             length = intlength;         }     } // end Ship Class }// end main class


Continuous functions with $f^2(x)=g^2(x)\neq 0$

Let $f,g:[a,b]\subset \mathbb{R} \to \mathbb{R} $ be continuous functions with $f^2(x)=g^2(x)\neq 0$ for all $x\in[a,b]$. Show $f=g$ or $f=-g$ on $[a,b]$.


How can I include only part of a table caption in the content of tables when content of tables is so awkward?

For my dissertation I am writing long captions on all my tables. This makes my content of tables very awkward, as each entry covers multiple lines. How can I specify a part of the caption to be included in the content of tables?


Deriving Feynman rules from Renormalized Lagrangian

In the context of Renormalized Pertubation Theory Peskin Schröder says: The Lagrangian $$ \mathcal{L}=\frac{1}{2} (\partial_\mu\phi_r)^2-\frac{1}{2}m^2\phi_r^2-\frac{\lambda}{4!}\phi_r^4 + \frac{1}{2} \delta_Z(\partial_\mu\phi_r)^2 -\frac{1}{2}\delta_m^2\phi_r^2-\frac{\delta_\lambda}{4!}\phi_r^4 $$ gives the following set of Feynman rules: ------------>------------ = $\frac{i}{p^2-m^2+i\epsilon}$ ------------X------------ = $i(p^2\delta_Z-\delta_m)$ and the two 4-vertices. The question is: Why look the Feynman rules for the first and the fourth term of the Lagrangian look so different? I believe the answer is connected to the fact that one has to bring the kinetic term of the Lagrangian to its canonical form $\frac{1}{2} (\partial_\mu\phi_r)^2$ and has to interpret everything else as (possibly momentum dependent) vertices. How does this look in formulae?


Does a four-divergence extra term in a Lagrangian density matter to the field equations?

Greiner in his book "Field Quantization" page 173, eq.(7.11) did this calculation:     ${\mathcal L}^\prime=-\frac{1}{2}\partial_\mu A_\nu\partial^\mu A^\nu+\frac{1}{2}\partial_\mu A_\nu\partial^\nu A^\mu-\frac{1}{2}\partial_\mu A^\mu\partial_\nu A^\nu $   $\space\space\space\space=-\frac{1}{2}\partial_\mu A_\nu\partial^\mu A^\nu+\frac{1}{2}\partial_\mu[A_\nu(\partial^\nu A^\mu)-(\partial_\nu A^\nu) A^\mu]$        The last term is a four-divergence which has no influence on the field equations. Thus the dynamics of the electromagnetic field (in the Lorentz gauge) can be described by the simple Lagrangian        ${\mathcal L}^{\prime\prime}=-\frac{1}{2}\partial_\mu A_\nu\partial^\mu A^\nu$     Yes, if it is a four-divergence of a vector whose 0-component doesn't contain time derivatives of the field, indeed according to the variational principle this four-divergence will not influence the field equation.  And actually I calculated the time-derivative dependence of 0-component of $[A_\nu(\partial^\nu A^\mu)-(\partial_\nu A^\nu) A^\mu]$, in which only $[A_0(\partial^0 A^0)-(\partial_0 A^0) A^0]$ could possibly contain time-derivative, which vanishes fortunately, so whatever the general case it doesn't matter in this present case.  But how can he seem to claim that it holds for a general four-divergence term,The last term is a four-divergence which has no influence on the field equations?  EDIT: I only assumed the boundary condition to be $A^\mu=0$ at spatial infinity, not at time infinity. And the variation of the action $S = \int_{t_1}^{t_2}L \, dt$ is due to the variation of fields which vanish at time, $\delta A^\mu(\mathbf x,t_1)=\delta A^\mu(\mathbf x,t_2)=0$, not having the knowledge of $\delta \dot A^\mu(\mathbf x,t_1)$ and $\delta \dot A^\mu(\mathbf x,t_2)$, which don't vanish generally, so the four-divergence term will in general contribute to the action, $$\delta S_j=\delta \int_{t_1}^{t_2}dt\int d^3\mathbf x \partial_\mu j(A(x),\nabla A(x),\dot A(x))^\mu =\delta \int_{t_1}^{t_2}dt\int d^3\mathbf x \dot j^0 =\int d^3\mathbf x [\delta j(\mathbf x, t_2)^0-\delta j(\mathbf x, t_1)^0]$$ which does not vanish in general!


Fastest way to find out IP address on Windows 10

What is the quickest way (in terms of necessary klicks or keystrokes from the empty desktop) of retrieving your own IP address in windows 10, specifically?   In Windows 7 and in case of wifi, you could get there rather quickly with wifi symbol task bar -> right click network -> status, but this possibility seems gone in Windows 10.   I seem forced to either use ipconfig (which is tedious if you have many interfaces e.g. from virtual machines) or open the network and sharing center which adds one window to the equation.  Is there a better, simpler way?


What are words like "Hey Man", "Hey you", "Hey Dude" called

Is there a term for words that summon someone like "Man," "Dude," "Kid" in sentences such as "Hey, Dude," "Listen up, kid," etc?    I am sure there is, but I can't really remember what it is.


How to syntax check portable POSIX shell scripts?

The following shell script executes well when provided /bin/true for the first argument, but may otherwise fail with a syntax error during execution!  #!/bin/sh if $1 ; then exit; fi /tmp/asdf <<< ASDF # Something with syntax error in POSIX   Surely some syntax errors (if not all?) can be avoided by static checking? How do I statically check whether a given  script is syntactically valid?  EDIT: Checking for syntax errors in Bash scripts has been answered in .  EDIT #2: Note that  to properly check whether the syntax adheres to POSIX even when executed with the +B and --posix flags in addition to -n.


How can I plot disk io per process over time

I would like to analyze and visualize the disk through put of certain processes over time to see how much data is written to disk and to see at which times a process does not utilize the whole disk performance capability. For example because its doing a CPU intensive tasks or because it accesses a lot of small files and the disk needs to do a lot of head repositioning.  I already know about this question: . It shows how I can monitor disk IO per process. In particular iotop -aoP shows the cumulative IO per process. This is nice if I want to track for example how much data a process has already written since IO top was started. But it does a bad job in visualizing the data over time.   Part 1: Essentially I am looking for something similar to the network history in gnome-system-monitor but listed per process and not totally for the whole disk.  Secondly the process that writes to disk does not necessarily have to be the process that causes the IO. For example if I access an NTFS file-system, then the data is first written to mount.ntfs-3g which writes it to disk. So if I want to track the performance of a qemu process writing to an img file thats on an NTFS storage then I see all the IO happen on the mount.ntfs-3g process and non on the qemu process. I assume the data is piped from the qemu process to the mount.ntfs-3g processes before it is written do disk.  Part 2: So the second part of the question is if I can somehow visualize the IO only for the qemu process.


Citing an enumerated item in text with beamer bullet

I am using latex beamer and would like to refer to an item in an enumerated list. In the list, the item is numbered within a bullet but when I refer to it later in the text, it comes without a bullet, in the default style. Is there a way I can write the number within the bullet?  Thanks and sorry if this question is repeated.


What should I consider when shopping for a lens filter?    I see filters that range from $15 to $115 and more.  What are the differences between the $15 and the $115 filter?    I'm asking in the generic sense but if you need specifics, I'm looking to buy a UV filter and a polarizing filter for a Panasonic GF1 w/ 20mm pancake lens.  EDIT: I've read some of the other posts and some refer to multi-coating but doesn't explain what is this and why it matters.  What I've gathered from reading related posts is that price is generally the only indication of quality in the case of choosing a filter.  Is this right?


Homeomorphism between a cone in a compact space and this compactification

Let $X$ be a compact Hausdorff space. Show that the cone in $X$ is homeomorphic to the compactification of $X \times [0,1)$. If $A$ is closed in $X$, show that $X/A$ is homeomorphic to the compactification of $X\setminus A$.  I don't know even how to begin to solve this question, it's seems so hard, anyone could help me, please.


Overpayment of 2021 Economic Impact Payment (the third stimulus)

Odd situation. My son was a dependent on our 2019 return but not 2020. We both filed our 2020 returns a few days before the EIPs began -- my wife and I as joint filers (minus one dependent--our son) and our son as a non-dependent single filer. The following week my wife and I received the EIP with our son still counted as a dependent. Then our son received his own payment. Clearly the IRS based our payment on our 2019 return and our son's on 2020. So as a family we were paid twice for him. Of course, we shouldn't keep the extra $1400, but will the IRS expect reimbursement? And by what means? Just a weird deal all around, and I am not sure what to do. Any thoughts?


Can someone explain the  in layman's terms, I'm having some difficulty understanding it?


Allow bounty to be set with reputation from another site?

Here's one to get shot down: How about letting bounties to be set using the reputation gained through the use of another site? So, for instance, I'm a programmer with a high Stack Overflow rep who hates using computers. Wouldn't it be useful for me to be able to exchange some of my excess Stack Overflow credit to incentivise a question on Super User?   Or perhaps I'd like to highlight a question on Meta Stack Overflow, but I don't spend my time there.


Problem on Galois theory and irreducible polynomial

Let $p,q$ be primes, estimate the degree $[\Bbb Q(\sqrt[p]{2}\cdot\sqrt[q]{2}):\Bbb Q]$ and prove that the polynomial $X^q-2$ is irreducible in the ring $\Bbb Q(\sqrt[p]{2})[X]$  I found this problem on mathematical competition without any solution and it would be very interesting if we can find a proof for this.


Word for the person to which a question is addressed

If you ask a question, you'd be the asker and the other party would be the ____.  I thought of "askee", but this is not a word.


Is there a need to use hibernate Criteria?

I was going through some old code and noticed that if I wanted to retrieve object from database I just used:  Session session=mainApp.getSessionFactory().openSession(); session.beginTransaction(); State newState=(State) session.get(State.class, state); todoHistory.setState(newState); session.update(todoHistory); session.getTransaction().commit(); session.close();   Now I would use something like:  Session sess = mainApp.getSessionFactory().openSession(); System.out.println("Session opened!"); Transaction tx = null; try {     tx = session.beginTransaction();     CriteriaBuilder builder = session.getCriteriaBuilder();     CriteriaQuery<State> query = builder.createQuery(State.class);     Root<State> root = query.from(State.class);     query.select(root);     List allStates = session.createQuery(query).list();     tx.commit(); } catch (Exception e) {     if (tx!=null) tx.rollback();     System.out.println(e);     throw e; } finally {     sess.close();     System.out.println("Session closed!"); }   Please, don't pay attention that there are no try/catch block in first code block. I'm interested if building a Criteria is needed if you want to retrieve object from database, or example from 1st block is correct? Also, if I retrieved object from database and passed it to other function can I update it there, or should retrieving and update be made only in same session?


What causes a water heater's relief valve to discharge water?

I have a Gas Reliance Water Heater 1212. I found recently (in winter) there is a water dip through the relief valve into a 5 gallon bucket. Sometimes, it can fill the whole bucket. Sometimes, it has no water drip at all.   I can't find the reason why that happens. My two guesses are the usage of water or temperature in the basement. However, I have normal usage -- just laundry, or the dish washer. Nothing odd there. I checked the temperature, and it's sometimes hot, sometimes cold (I live in Pennsylvania). I can't find any pattern.   Can anyone help me on this?


What is d:c and what does it do in this program and is there any other method to do this?

public class ClassSET12 {     public static void main(String[] args) {         int a[] = { 1, 2, 3, 4, 5 };         int b[] = { 6, 7, 8, 9, 10 };         int c[] = alternativeIndicesElements(a, b);         for (int d : c)             System.out.println(d);     }      public static int[] alternativeIndicesElements(int[] a, int[] b) {         int c[] = new int[a.length];         if (a.length == b.length)             for (int i = 0; i < a.length; i++)                 if (i % 2 == 0)                     c[i] = b[i];                 else                     c[i] = a[i];         return c;     } }   What is for(d:c) and what does it do in this program and is there any other method to do this?


I know this question has been asked many times, but I could not find a good answer for my question, yet...  I wanted to develop my own thesis style i.e. \usepackage{harthesis}, which I did, but when I compile it, I got an error saying harthesis.sty is not found...  What is the easiest and best way to create your own thesis style? I am sure this question would be very helpful for many people.  These are part of my developed, but not limited to thesis styles:   \permanentaddress \examiners \convocation   and so on..  These were intended to be my title page and other university requirements before I even start writing my Intro..  Any suggestions?  Thanks.


I want to fetch second highest paid employee salary from each department using SQL. Example, I've 100 departments with more than 500 employees in each department. & all these data is in one table.  Table Columns: EmpNo,  EmpFirstName,   EmpLastName,    DepartmentNo,   DepartmentName, Salary  Output: EmpNo,  EmpFirstName,   EmpLastName,    DepartmentName, Salary


How do i specify a formula field in task to display mobile

I want to show a mobile on the tasks. So i thought of creating a formula field on tasks, But i am not sure on how do i set the formula as the task could be related to a contact or lead.  How do i set it based on the WhoId so if a lead is selected then the mob of the lead is displayed or if a contact is selected then the mobile of contact is displayed?


correction made, needed to implement a switch statement and prompt for user input on song selection

Im writing a program that informs the user that there is a grand piano and gives them the option to play it, however, once the user chooses y for yes it asks the question what song do they want to play however, prints the response to the first song, rather than allowing the user to choose in order to prompt the different responses based on user's choice.  Below is the code, which compiles, however does not work the way I'm intending:  import java.util.*; public class MyPiano {     private static final String m = null;     private static final String b = null;     private static final String c = null;     private static final String f = null;     private static final String r = null;     private static final String d = null;     //Initialize class variables.     private int numOfKeys;     private String pianoMake;     private String pianoModel;     private boolean tuned;      //A constructor that has specific variables assigned to it.     public MyPiano (int numOfKeys, String pianoMake, String pianoModel, boolean tuned) {         this.numOfKeys = numOfKeys;         this.pianoMake = pianoMake;         this.pianoModel = pianoModel;         this.tuned = tuned;         }         //Created the output that will be displayed to the user.      public String toString() {         return "There is a beautiful " + numOfKeys + " key " + pianoMake + ", " + pianoModel + " in the living room." +      "\nIs it tuned?: " + tuned;         }      public static void main(String args[]) {         //Create an instance of household item method.         MyPiano piano = new MyPiano (88, "Steinway & Sons", "Model M studio grand", true);          //Output the status of the household item.         System.out.println(piano.toString());         Scanner input = new Scanner(System.in);          char letsPlayASong;          System.out.println("Would you like to take a stab at playing a song on the piano? Press Y or y for yes and N or n for no.");         char a = input.next().trim().charAt(0);              if(a == 'Y' || a == 'y') {         //change speed using switch statement             System.out.print("Which song would you like to play?(Beethoven's Moonlight Sonata, Beethoven's Fur Elise, or Chopin's March Funebre): Type m for Moonlight Sonata, f for Fur Elise, or r for March Funebre.");             if(b == m) {                 System.out.println("This song is played in C# minor and the first three notes are: G#, C#, and E");                 char b = input.next().trim().charAt(0);                 } else if(c == f) {                 System.out.println("This song was written in A minor with the first two notes being E and D#");                 char c = input.next().trim().charAt(0);                 } else {                     if(d == r) {                         System.out.println("This classic, otherwise known as The Funeral March, is to be played in Bb minor, however it can be very tricky!");                         char d = input.next().trim().charAt(0);                         }                     }         } else {             if (a == 'N' || a == 'n'); {                 System.exit(0);                 }             }         }     }


I have the following code:
     <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown">         Serial No.     </button>

                                                                        <input type="text" class="form-control" placeholder="Query" ng-model="query" />

             {{'{{serial_no.id}}'}}

   style="text-align:center" is aligning (horizontally) the div element, but when the dropdown is selected, my list items are aligned at the left side of the page.   How can I get them positioned directly under the drop down button? How can I get everything positioned vertically (maybe 25% from the top) on the page?


Btrfs out of space, but OS reports lots of disk space free

I'm using Btrfs, for better or worse.  It is a plain btrfs partition with no compression or RAID, nor do I have any snapshots; it is a a simple btrfs partition that the OS is reporting with quite a bit of space free, but I am getting out of space errors when running various operations such as updates.  The operating system tools such as df report lots of space free:  $ df -h Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G   26M  1.6G   2% /run /dev/sda5       354G  313G   41G  89% / tmpfs           7.9G  172M  7.7G   3% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup /dev/sda5       354G  313G   41G  89% /home tmpfs           1.6G  4.0K  1.6G   1% /run/user/139 tmpfs           1.6G   20K  1.6G   1% /run/user/1000   I later found the btrfs tool to show information about the btrfs volumes:  $ btrfs fi show  Label: none  uuid: 76eb29fb-6909-4cc9-9848-f0b5723802b9     Total devices 1 FS bytes used 285.88GiB     devid    1 size 353.90GiB used 349.90GiB path /dev/sda5   Label: none  uuid: 229c7745-144f-4dd0-98c5-476248b308ad     Total devices 1 FS bytes used 384.00KiB     devid    1 size 348.77GiB used 1.02GiB path /dev/sda3   /dev/sda5 is 286GB used with as size of 354GB.  Then says 350GB used.   /dev/sda5 is mounted as /  How do I get access to the ~60GB that it says are free, but are not?


How to set multiple env variables from stdout pipe

I have a bunch of piped shell commands that give some env output. I want to set these as env variables for an additional command to add to the chain  Kevins-MBP:ops kevzettler$ eb printenv | tail -n +2 | sed "s/ //g" NODE_ENV=staging RDSPassword=changme RDSHost=sa1c7quehy7pes5.lolol.us-east-1.rds.amazonaws.com RDSUsername=derp


Unable to post - login problems with Area 51 ... again

I recently signed up for Area 51 with my stackexchange network account/ID, verified the account and logged in.  I see the main page  where I confirm that I am logged in.  I click on the discuss link on the black menubar at the top, which takes me to the discussion zone. From here I click on ask question, which asks me to add  a login even though I have already logged in with my stackexchange ID.  Here if I choose the stackexchange login option then it takes me back to the main page, from where the cycle begins again.


Why structure assign the size as per as the highest data type?

This is my structure and I want to know the allocated size of my struct object.  struct toCheckSize {     int a;     char b; };  struct toCheckSize v,w,z;   So what's the size of the allocated memory to v,w,z?  As per the compiler, it says the size of v,w,z is 8.


Can I thank websites that host illegal book downloads in the acknowledgements section of my thesis?

My stance is that these websites are a great boon to the research community and they were certainly extremely helpful for my research. I think they should be applauded rather than persecuted, and while they may be illegal now, I think a way to make them legal should be found (in the same way I can download articles legally through my university's subscription to all the major publishers and journals).  Can I thank them in the acknowledgements section of my thesis?