Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)/dists/trusty/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  W: Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)/dists/trusty/restricted/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs  W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Connection failed  E: Some index files failed to download. They have been ignored, or old ones used instead.


Could the Sorting Hat Have Told Dumbledore That Harry Was a Horcrux?

The Sorting Hat is a sentient magical artifact that has the ability to initiate communication and have conversations with the person wearing it. There's two things that make me wonder if it would have been possible for the Sorting Hat to have told Dumbledore which student was a Horcrux:  First, the nature of the Sorting Hat itself:     There's nothing hidden in your head,   The Sorting Hat can't see.   So try me on and I will tell you   Where you ought to be . . .      Sorcerer's Stone - Page 117 - US Hardcover   Second, we know Harry is definitely a Horcrux:     "You were the seventh Horcrux, Harry, the Horcrux he never meant to make."       Albus Dumbledore - Deathly Hallows - Page 709 - US Hardcover   If Dumbledore had put on the Sorting Hat and had a conversation with it about Harry Potter, would the hat have been able to tell Dumbledore that Harry was a Horcrux?


Hackintosh want to delete and install Ubuntu via USB

Hi want to delete the snow leopard I have installed on my Hackintosh and replace with Ubuntu via USB as don't have access to cd drives. Please help!


What are the shortcuts for vert, edge and face selection in edit mode?

Can you help me? I dont know the shortcuts for these buttons.


Prove, that for any A, B, C sets, $A\times (B\setminus C) = (A\times B)\setminus (A\times C)$ is true.

I have to prove the equation  $$A\times (B\setminus C) = (A\times B)\setminus (A\times C)$$ knowing that $$A\times B = \{<a,b> |\: a\in A \wedge b\in B\}$$ which I attempted to do the following way: Let's take any x. Then $x\in A\times (B\setminus C)$ iff  $$(\exists a\in A)\: (\exists b\in (B\setminus C))\: (x=<a,b>)$$ $$\equiv \exists a\exists b \:(a\in A) \wedge (b \in B \:\wedge b \notin C) \:\wedge x=<a,b>$$ $$\equiv \exists a\exists b \: (a \in A\: \wedge b \in B\: \wedge x=<a,b>) \: \wedge (a\in A\: \wedge b\notin C\: \wedge x=<a,b>)$$ Further transformations lead me to $(A\times B) \times(A\setminus C)$, which is not the thing I was meant to prove. I need an advice how should I do it the right way, because I cannot find any solution.


php rookie here. as grids are popular right now, I wonder if this is even possible. I have three posts and have no idea how to get this working; this is my basic loop                      // WP_Query arguments                     $args = array ( 'posts_per_page' => 3, 'category__in' => array(4,5)                     );                      // The Query                     $querytest = new WP_Query( $args );                      // The Loop                     if ( $querytest->have_posts() ) {                         while ( $querytest->have_posts() ) {                         $querytest->the_post();                          // do something                         get_template_part( 'content', 'front', get_post_format());                          }                      } else {                     // no posts found                     }   html output should be something like this:

   is there any chance this might work somehow?? I tried counting posts, but all I get was errors or totally wrong html output.  thank you, A.


Why is the double possessive grammatically correct in the sentence, "Joe is a friend of Jim's"?

I've read a bit about the reason for using the double possessive but there are still a few aspects that don't work for me:  If the difference between "Joe is a friend of Jim's" and "Joe is a friend of Jim" is the active person (with Jim being active in the first sentence and Joe in the second) then the sentence "Joe is a friend of Jim's" should have the same meaning as "Joe is Jim's friend," and the sentence "Joe is a friend of Jim" should have the same meaning as "Jim is Joe's friend."  Using the same logic, the sentence "Joe is my friend" should have the same meaning as "Joe is a friend of mine" and the sentence "I am Joe's friend" should have  the same meaning as "Joe is a friend of me," which we would never say.  Furthermore, one would never say "Jesus is the son of the Lord's" when they mean "Jesus is the Lord's son;"  rather one would say, "Jesus is the son of the Lord."  If the difference between the two is that "Joe is a friend of Jim's" implies that Jim has multiple friends while "Joe is a friend of Jim" does not, then the same issue arises when I try to say "Joe is a friend of mine" without implying that I have multiple friends I say "Joe is a friend of me" which, again, one would never say.  Also, you wouldn't say "Jim is an owner of the club's" when you mean "Jim is one of the club's owners."  If two conditions must apply, that is the double possessive can be used only if the word after of refers to an animate object and the word before of involves only a portion of the animate object's possessions, I still can't say "Joe is a friend of me" if Joe is my only friend or "Jim is a friend of him" if Jim is his only friend.  Also, can't one say "Joe is the only friend of Jim's?"  Also, I don't want to hear that the second apostrophe is the only way to distinguish between "a picture of the king" and "a picture of the king's."  In the sentence "a picture of the king" the of is not a possessive; you can't say "the picture of the king's."


Weird citation error for a specific entry

I am pretty new to Latex but I thought it would be better to write my bachelors thesis in latex than in word... its pretty easy to look up the main parts for latex but I'm at my wit's end:  A specific entry in my .bib file results in some problem in in-text citation. Following is my pre amble for the bibliography (I copied it from a friend's template. It should (and does nearly every time except this one) cite and build references in APA-Style   \usepackage[babel=true]{csquotes} \usepackage[style=apa,backend=biber, %minbibnames=5, maxbibnames=5, %mincitenames=1,  %maxcitenames=6,  doi=false, url=false, sortcites=true, natbib]{biblatex}   %\usepackage{apacite} \bibliography{literatur.bib} \DeclareLanguageMapping{ngerman}{ngerman-apa} \DefineBibliographyStrings{ngerman}{andothers={et\ \addabbrvspace al\adddot}} \AtBeginBibliography{%   \renewcommand\finalandcomma{\addcomma}%   \renewcommand*{\finalnamedelim}{%     \ifthenelse{\value{listcount}>\maxprtauth}       {}       {\finalandcomma\addspace\&\space}}} \newcommand*\mcite[1]{\citeauthor{#1} (\citeyear{#1})} %\newcommand*\asdcite[1,2]{(\citeyear{#1};\citeauthor{#2},\citeyear{#2})} %\newcommand*\xcite[1]{\citeauthor{#1} (\citeyear{#1}} %\newcommand*\ycite[1]{\citeauthor{#1}, \citeyear{#1})} \AtEveryBibitem{%       \clearfield{day}%       \clearfield{month}%       \clearfield{endday}%       \clearfield{endmonth}%     }    \renewcommand\maxprtauth{12} \DeclareNameFormat{apaauthor}{%   \ifthenelse{\value{listcount}=\maxprtauth \AND\value{listcount}<\value{listtotal}}     {,~et~al.\addspace\setcounter{listcount}{\thelisttotal}}     {\ifthenelse{\value{listcount}>\maxprtauth\AND\value{listcount}<\value{listtotal}}       {}%       {\ifthenelse{\iffieldequalstr{usere}{unkauth}\OR\iffieldequalstr{usere}{unkauthdate}}%         {\iffirstinits           {\mkbibbrackets{\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}?}}%           {\mkbibbrackets{\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}?}}}%         {\iffirstinits           {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}%           {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}}}}%   \ifmorenames{\andothersdelim\bibstring{andothers}}{}} \renewcommand\finalandcomma{\addcomma}   Now...I came across a weird error. I use the \citep and \citet options to cite my references in APA-Style either name and year in parentheses or only year in parentheses respectively. The error results when I want to cite a paper from Cohen, XY. First I thought there was something wrong with my bibliography but that wasn't the case.  The error looks like this: when I cite a reference the code generates a citation in APA style that does not contain any first names. But when I want to cite a paper written by an author called Cohen the \citep and \citet options result in compiling the first names into the citations.  As an Example  It was shown by \citep{cohen} that cows don't fly.   would result in  It was shown by M. M. Cohen & Massaro (1993) that cows don't fly.   and not in   It was shown by Cohen & Massaro (1993) that cows don't fly.   with the bibliography entry being:  @incollection{cohen, title={Cows don't fly}, author={Cohen, Michael M and Massaro, Dominic W}, booktitle={Pigs fly}, pages={139--156}, year={1993}, publisher={Springer}, location={Tokyo} }   This only happens if the first name after author={ is Cohen. I tried mixing the order of the names and stumbled upon that fact.   The best solution would be to mix the names up...but that is not the point of the references if this is the first named author.  I hope that someone will be able to help me =)


How do you restore previously tracked footage?

I've recently reformatted my PC, and once I reinstalled and loaded my Blender file back up, the trackers were still there, but the footage wasn't. I tried to reload the sequence back up, but now that the footage is there, the trackers aren't. Though they do appear in the camera's view in Object Mode. How do I go about reasigning those trackers to the footage?  Thanks


Splitting a Python list into a list of overlapping chunks

This question is similar to , but in my case I want to include the last element of the each previous sub-list, as the first element in the next sub-list. And have to take into account that the last element have always to have at least two elements.  For example:  list_ = ['a','b','c','d','e','f','g','h']   The result for a size 3 sub-list:  resultant_list = [['a','b','c'],['c','d','e'],['e','f','g'],['g','h']]


Need rtl8814au driver for kernel 5.3 on Ubuntu 19.10

On Ubuntu 19.04 I had current rtl8812au (AC1200) and rtl8814au (AC1750) dkms drivers for my USB wireless dongles installed and running fine. They both broke after I upgraded to Ubuntu 19.10. I've been able to find a replacement/newer rtl8812au driver that works with kernel 5.3 on Ubuntu 19.10. I haven't been able to find a replacement/newer rtl8814au driver that works with kernel 5.3 on Ubuntu 19.10. Github.com has a number of rtl8814au drivers available, even some that proport to compile with kernel 5.2. I believe that I've tried about 6 different rtl8814au drivers from github, but none of them work, even though some of them do compile with kernel 5.3. Does anybody know of a working rtl8814au driver that works with kernel 5.3 on Ubuntu 19.10?


How to completely destroy Windows 10 Updater?

So I've tried the following:   Disabled the Windows Update Service Enabled No auto-restart with logged o users for scheduled automatic update Set Windows Update to Notify to Schedule Restart and Defer Upgrade In Power Options, disabled Wake Timers under Sleep In Task Scheduler > Microsoft > Windows > UpdateOrchestrator disabled Reboot task   Yet it never fails to wake up at 6 AM sharp, starting up the computer and running all the fans at full power... waking ME up because it's in the same room.  Is there a way to completely remove this stupid automatic update? I don't know why something so simple requires so much effort to do.


Can you tell me what this is in the area marked red?  If I want to change /media/files/tb-prod/files to some other path, how would I do that?


Using a secured credit card to build a credit score for a new permanent resident

I am a new permanent resident in the US (originally from the Netherlands) and married to an American citizen. I am not used to the credit score system as they use it in the US, so this is all new to me.  Since not having a credit score in the US has about the same effect as being a ghost I would like to start building one. In some instances it has already proved to be a pita - i.e. trying to put our internet connection on my name at our new address was not possible because of having no credit score/history.  At first I tried the piggyback technique by adding me to my wife's credit card as she has a good credit score, only to find out later that Chase does not report this to the credit score agencies... great.  So now I recently signed up for a secured credit card at Capital One, deposited $200 and got a credit line of $351. I thought it would be good to actually utilize the card and pay off the balance every few days. Then I found out that credit utilization actually has a large impact on credit score. The general idea is to keep the utilization below 20% which in my case would be around $70.  Since Capital One has a pretty extensive online environment I am able to pay off the balance any time I want. Would it be beneficial for my credit score to pay it off anytime there is a small balance on it? Also how is the utilization ratio being determined? Is it just being reported once a month and based on the utilization ratio of that specific date? Or is it being averaged out over the whole month?


How to change envelope from address using PHP mail?

I am using PHP with Apache on Linux, with Sendmail. I use the PHP  function. The email is sent, but the envelope has the Apache_user@localhostname in MAIL FROM (example nobody@conniptin.internal) and some remote mail servers reject this because the domain doesn't exist (obviously). Using mail, can I force it to change the envelope MAIL FROM?  EDIT: If I add a header in the fourth field of the mail() function, that changes the From field in the headers of the body of the message, and DOES NOT change the envelope MAIL FROM.  I can force it by spawning sendmail with sendmail -t -odb -oi -frealname@realhost and piping the email contents to it. Is this a better approach?  Is there a better, simpler, more PHP appropriate way of doing this?  EDIT: The bottom line is I should have RTM. Thanks for the answers folks, the fifth parameter works and all is well.


DNN output: why not use sigmoid instead of linear, for linear [0-1] outputs?

Sigmoid activation is used with the binary_cross_entropy loss where the output is a binary classification (yes/no). I often have outputs which are bounded between [0-1], but aren't classification outputs. Eg, maybe it's a real number which I've normalized to that range; or maybe it's a confidence score. I always see recommended to use linear activation for this (and mse/rmse/mae loss). But a benefit I see in using sigmoid is it bounds the output, so that the DNN isn't trying all sorts of values outside the acceptable range. Seems like it would train faster this way, and ensure the outputs are [0-1] on inference. So my intuition is: faster, safer. But with the sigmoid activation not being linear in nature, will that cause strangeness in the way the output distribution is fitted? Ie, is sigmoid indeed a bad idea re: the output distribution, and I should stick with linear?


When is the graph of the divisor relation on $[n]$ planar?

A recently-deleted question asked to show that if $G(n)$ is the graph on $[n]=\{1,\dots,n\}$ where $x$ and $y$ are adjacent if $x|y$ or $y|x$, then $G(n)$ is planar.  This is false if $n\geq150$, for the subgraph induced by $\{2,3,5,90,120,150\}$ is isomorphic to $K_{3,3}$.  My question is, what is the largest value of $n$ such that $G(n)$ is planar?  Of course, various software packages would make short work of this, but I'd be interested in a verbal argument, if someone can give one.


How do I install Ubuntu from my flash drive?

I got a copy of Ubuntu on my flash drive, but how do I install it on my laptop? It's a Dell Latitude D420. It has an Intel core duo. I took it to have some repairs made and the technician installed Windows 7 on it, only he didn't put in the key so Microsoft wants me to purchase Windows 7. I can't seem to reinstall the Windows XP that came on the machine. I'm stuck. Thanks.


What is the difference between sudo -i and sudo -s?

I am a new Ubuntu user and find some people tell me to use sudo -i to get root and others tell me to use sudo -s. What is the difference? Which one do I use and when?


Why does the Hadamard act as $H^{\otimes n}|x\rangle = \frac{1}{\sqrt{2^n}}\sum_{y\ \in\{0,1\}^n}(-1)^{x_1y_1+···+x_ny_n}|y\rangle $?

In quantum-information, we have been told that the Hadamard gate over $n$-qubits can be defined as: $$H^{\otimes n}|x\rangle = \frac{1}{\sqrt{2^n}}\sum_{y\ \in\{0,1\}^n}(-1)^{x_1y_1+···+x_ny_n}|y\rangle   \\= \mathbb C^2 \otimes ... \otimes \ \mathbb C^2 = \mathbb C^{2^n}, \text{ where  }|x\rangle = |x_1,x_2,...,x_n\rangle $$ However, I do not have any intuition about how this is constructed from the single qubit Hadamard: $$\frac{1}{\sqrt{2}}\begin{bmatrix}\begin{array}{rrrrrrrr} 1 & 1 \\ 1 & -1  \end{array}\end{bmatrix}.$$ I am trying to figure out, and it thought of an induction over $n$, but do not know how to do it. Could anyone provide any help of proof?


The stars returned from traceroute commands


Ignore a command as process itself while using grep on processes

I am writing a bash script to check if certain application is running or not. If its dead i will simply restart it.  My initial though was, check if there is one pid for that process(which in this case would be a Java Thread).  ps aux | grep org.apache.flume.node.Application root     15881  5.1  1.1 3286884 93996 pts/3   Sl   00:25   0:26 /usr/lib/jvm/java-1.8.0-ibm-1.8.0.3.20-1jpp.1.el7_2.x86_64/jre/bin/java -Xms100m -Xmx500m -Dcom.sun.management.jmxremote? -Dflume.monitoring.type=http -Dflume.monitoring.port=34545 -cp /prayagupd/opt/flume/conf:/prayagupd/opt/flume/lib/*:/lib/* -Djava.library.path= org.apache.flume.node.Application -f /prayagupd/opt/flume/conf/flume.conf -n client root     18716  0.0  0.0 112780   976 pts/3    R+   00:34   0:00 grep --color=auto org.apache.flume.node.Application   Based on my logic, I would check if there's one process id for given name but ps aux also counts the command that I run to grep the processes.  ps aux | grep org.apache.flume.node.Application | awk '{print $2}' 15881 22878   I can do a check   if(I find 2 processIds) then        count it as running process(as shown in below command) otherwise        re-start it again.   eg.  ps aux | grep org.apache.flume.node.Application | awk '{print '$2'}' | wc -l 2   But, I feel there's a better way to check to if some process is running.


Hidden files on Windows machine generated by OS X

When I transfer a folder FROM my Mac To a Windows machine by a flash memory, on the Windows system there are hidden files with the same names as the original files inside the folder. If I choose that Windows not to show the hidden files then they become invisible. When the folder contains a huge number of files then the scene is awkward and confusing and sometimes people think that there are malwares on my flash memory.  How can I get rid of these hidden files when I transfer folders from Mac to Windows?


How can I edit the content in index.php?

I want the start page to be editable from a template. At the moment I can only edit the content by directly editing the HTML.  Setup:   Settings » Read » "Front page displays Your latest posts" The template that shows in the startpage is index.php   I want to be able to create a page edited from the Pages list that will show as the start page.   I've tried to create a new page called MyStartPage. Set its template to Startpage (index.php).   I've tried setting Settings » Read » Front Page displays Static page MyStartPage  I've made sure the index.php has The Loop that makes the calls to get Title and Content as is working in other templates.


just installed ubuntu, and my hp100 Bluetooth printer is recognized, but it will not allow me to turn the connection on and print. any solutions would be very appreciated


Hello i've tried to sync my ipod shuffle (latest gen) for 2 hours now...  I've tried banshee (I can put music on my device but not listening to it, "use itunes blablabla"), I've tried gtkpod (not launching), Floola (no ipod connected).  How can I proceed ?


I'm having some difficulty with the following problem.      Let $p$ be a prime integer, and if $a\in\mathbb{Z}$, write $\overline{a}$ for the coset of $a$ in $\mathbb{Z}_{p}$. Show that there is an isomorphism of rings $$\frac{\mathbb{Z}[X]}{\left\langle p, X^{2}+1\right\rangle}\cong \frac{\mathbb{Z}_{p}[X]}{\left\langle X^{2}+\overline{1}\right\rangle}\cong \frac{\mathbb{Z}[i]}{\left\langle p\right\rangle}.$$   Seeing any isomorphism of rings in which we mod out by ideals immediately makes me think that I should be using the First Isomorphism Theorem for rings. However, I'm not sure exactly what maps I should be using between the rings. I think that we could take an evaluation morphism between the first and second rings, but I'm not positive. I'm also confused slightly as to what the ideal $\left\langle p, X^{2}+1\right\rangle$ looks like (that is, the form of a typical element in the ideal is). Thanks in advance for any help!


Several people have told me that $\sin(x)^2 = \sin(x^2)$. However, on several computing platforms, such as the TI-84 and Wolfram|Alpha, $\sin(x)^2 = \sin^2(x)$. Can I safely conclude that the notation $\sin(x)^2$ is ambiguous and should always be avoided in favor of $\sin^2(x)$ or $\sin^2 x$? I am having trouble finding any reference through Google or in textbooks (which, I presume, avoid notation like this).


What is the purpose of OEM unlock? What would happen to my device if I enable that option? Will it mean that my bootloader is unlocked?


Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be a continuous function with $f(1) = 5$ and $f(3) = 11$. If $g(x) = \int_1^3 f(x+t)dt$ then find $g'(0).$   Please explain your answer.


How to reconfigure keyboard (W and P not functioning correctly)

I was reluctant in asking this question but everything I've researched has led me to a dead end. Shift + w and Shift + p aren't working correctly. So I'm unable to use W and P unless I use the caps lock.  Right now my keyboard was somehow configured as:      Shift + w == Xterm     Shift + p == NOTHING   but I want my keyboard to be configured like so:      Shift + w == W     Shift + p == P     Ctrl + w == Xterm   I'm not even sure how to use Xmodmap to accomplish this, or if theres a different way to do this. Any help or advice would be much appreciated!  Solution  The correct solution was to uninstall everything that was associated with xbindkeys


Is Morgoth "working as intended" by Illuvatar's will?

If all beings, regardless of their good-evil alignment, can find the cause and origin of all things to lie ultimately in Illuvatar, then can it be said that Morgoth - and other Ainur who went rogue - are ultimately acting by Illuvatar's will, and therefore will have a place in the Second Music and in Arda Reborn?


Increasing each subplot's size and adjusting their width, matplotlib

I have a dataset from sci-kit learn, fetch_lfw_people.  import matplotlib.pyplot as plt # plotting faces fig, ax = plt.subplots(3,5) # fig.subplots_adjust(wspace=2)  for enumerate_counter, axi in enumerate(ax.flat):     axi.imshow(faces.images[enumerate_counter], cmap='bone')     axi.set(xticks=[], yticks=[],xlabel=faces.target_names[faces.target[enumerate_counter]])   while trying to show images using subplots and labeling each image with proper name, I want to increase the size of each images and also separate them wide enough so that names do not overlap.  I've tried  fig.subplots_adjust(wspace=2)   however this separates images so that names do not overlap however images gets smaller in size.  Anyway I could resolve this issue?


I understand that IP addresses are hierarchical, so that routers throughout the internet know which direction to forward a packet. With MAC addresses, there is no hierarchy, and thus packet forwarding would not be possible. So, MAC addresses are not used for packet transfer.  I don't think it sits there for no reason. So my question is, where exactly does a MAC address come into play during a packet transfer?


What is the meaning of "[command] &" in Ubuntu?

I am learning different types of Ubuntu command and there is a command that is     [command] & – run <command> and send task   to background   I can't understand this command. Please tell me about the command in details with an example.


If $X^\ast $ is separable $\Longrightarrow$ $S_{X^\ast}$ is also separable

Let $X$ be a Banach space such that $X$* (Dual space of $X$) is separable   How can we prove that $S_{X^\ast}$ (Unit sphere of $X$*) is also separable  Any hints would be appreciated.


Is It Possible For A Computer To Have A Desire?

I suppose another way to ask it is, is it possible for a computer to feel?


Automatically reboot Windows if no internet connectivity

I have a media server (Windows 8) located in a very inconvenient part of my house. Occasionally I will have to reset my router or it will reset itself. The issue is the PC loses connectivity for some reason, and I am forced to walk outside, around the house, into the basement, over a bunch of toys and weights and boxes, to push a button to reboot it.  I would love to have it check itself every 5-10 minutes and auto reboot if it is unable to ping a given address/IP.  Any ideas how to accomplish this?


I've always assumed/been told that Newton's 2nd law is an empirical law — it must be discovered by experiment. If this is the case, what experiments did Newton do to discover this? Is it related to his studies of the motion of the moon and earth? Was he able to analyze this data to see that the masses were inversely related to the acceleration, if we assume that the force the moon on the earth is equal to the force the earth exerts on the moon?   According to , the  reads:     Lex II: Mutationem motus proportionalem esse vi motrici impressae, et fieri secundum lineam rectam qua vis illa imprimitur.   Translated as:      Law II: The alteration of motion is ever proportional to the motive force impress'd; and is made in the direction of the right line in which that force is impress'd.   My question is how did Newton come to this conclusion? I get that he knew from  the idea of inertia, but this doesn't instantly tell us that the change in momentum must be proportional to the net force. Did Newton just assume this, or was there some experiment he performed to tell him this?


Let $G = D_{2n}$ and $p$ an odd prime dividing $2n$, i.e. $2n = 2m\cdot p^{\alpha}$ with $p \nmid 2m$. I need to show that $P \in \operatorname{Syl}_p(G)$ is normal in $G$ and cyclic.   As far as normal goes, I know that to show $P$ is normal, I should show that $n_p = 1$. So as such, I know $n_p \equiv_p 1$ and thus $n_p = 1+kp$ for some $k \in \mathbb{Z}^{\ge 0}$. Further, I know $n_p \mid 2m$, and so $a\cdot n_p = 2m$, and substitution gives $a\cdot (1+kp) = 2m \Rightarrow a + akp = 2m$. I'm not sure how to continue with this identity however.  I'm looking for a gentle hint in the right direction. Should I try more divisibility tricks with $n_p$ or is there a nicer way to go about the whole deal?  For the record, this problem is Dummit and Foote, 6.5.5.


assigning value to variable creates extra values ghosting around

In my script I use  winccoaID=$(ps -aux | grep -v 'color=auto' | grep -i 'WCCOAui -console' | tr -s ' ' | cut -d ' ' -f 2) winccLogID=$(ps -aux | grep -v 'color=auto' | grep -i 'WCCOAtoolLogView'  | tr -s ' ' | cut -d ' ' -f 2)   each line looks for a certain process and assigns the pid to the value.  On cli the command works as expected. BUT in the script the commands grab another random value and adds it with a space between the 2 values. I have checked the numbers against the process list. The numbers do not relate to other process. So there is no bogus grep spoiling my fun.  Can someone tell me what is going on?


Matrix which has every vector in the space as an eigenvector is square, diagonal.

I've been trying to solve this linear algebra problem for some time and have gotten stuck.  I've been asked to either prove or disprove the following statement: For $V$ an $\mathbb{ R } $ vector space, if $A$ is a matrix with the property that $Ax \in \langle x \rangle = \{ax \mid a \in \mathbb{ R } \} $ for every vector $x \in V$, then $A$ is square and diagonal.  I suspect the statement to be true due to lack of counterexamples.  I can pretty easily show that $A$ must be square, otherwise the dimensionality doesn't work out right.  I haven't really got much of an idea where to go on the diagonal part though.  My great apologies if this is a duplicate question-I searched somewhat thoroughly and didn't find it anywhere, however.  Thanks in advance! From the linear transformation view point, for every $x \in V$ there is an $a \in \mathbb{ R } $ such that $T(x) = ax$.  We have the expression $$x = c_1 e_1 + \ldots +c_n e_n$$  where $e_i$ is the ith standard basis vector for $V$.  Therefore, $$ ax = T (c_1 e_1 + \ldots +c_n e_n)  $$ whereby $$ a\left( \sum_{i=1} ^n c_i e_i \right) = \sum_{i=1} ^n c_i T (e_i)  $$ Therefore,  $$  \begin{pmatrix}     a c_1 \\     \vdots\\     0   \end{pmatrix} + \ldots +    \begin{pmatrix}   0 \\    \vdots \\    a c_n   \end{pmatrix} = c_1 \begin{pmatrix} a_{1,1} \\ \vdots \\ a_{1,n} \end{pmatrix} + \ldots + c_n \begin{pmatrix} a_{n,1} \\ \vdots \\ a_{n,n} \end{pmatrix}   $$   where the matrix representation of $T$ is the matrix $A = \left[ a_{i,j} \right]$, $1 \le i, j \le n$.  From here I'm having some difficulty once more.  Does this in fact give that $a_{i,j} = 0$ for $i \ne j$?  I'm having difficulty seeing how.


I generate a the table of contents with latex, but at one position it looks like on this image:    The "point" and the text are overlapping. Can this somehow be avoided?  Thank you


A second isomorphism theorem for action on cosets

Let $G$ be a finite group, and $K$, $L$ subgroups of $G$ such that $G = KL=LK$. Let $\Omega = G/K$ and $\pi: G \to S_{\Omega}$ the canonical action on cosets.       Question: Is it true that $\forall g \in G$ $\exists l \in L $ such that $\pi(g)=\pi(l)$ ?      If yes, then $\forall k \in K$ $\exists s \in K \cap L $ such that $\pi(k)=\pi(s)$, because $ker(\pi) \subset K$.


How can make my application open just once in c#?

after I made a setup with my project and made it .exe in c#,i want to make my application(.exe) to open just once.Is there anyone who can help me with my problem ?thanks in advance.  I want to prevent my application from opening it again.


How should I enforce my players to play the alignment they get?

So I started a new campaign, where my players may go to other planes, which are described in the DMG. There are several planes, which has a nice side effect, which will change the PCs alignment. My question is: how to enforce a player to act like that alignment, which he/she become from that plane?


Let a,b,c be positive real number, proof.

Let a,b,c be positive real number, such that  $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}=a+b+c$. Prove that :  $\frac{1}{(2a+b+c)^2}+\frac{1}{(2b+c+a)^2}+\frac{1}{(2c+a+b)^2} \leq \frac{3}{16}$  Can anyone help me how to deal with it?


Why is OpenJDK 10 packaged as openjdk-11-*?

While looking to compile OpenJDK from source, the newest General Availability version () insists on OpenJDK 9 or 10.  JDK 11, however, is not due to be released until .    However, to my surprise, when I do apt search openjdk the result is:  ... openjdk-11-jdk - OpenJDK Development Kit (JDK) ... openjdk-8-jdk - OpenJDK Development Kit (JDK) ...   No OpenJDK 9 or 10!  And wait, is that OpenJDK 11?  Maybe a Beta release?  Nooo....  So I looked at apt show openjdk-11-jdk:  Package: openjdk-11-jdk Version: 10.0.1+10-3ubuntu1 ...   Why has OpenJDK 10 been packaged as openjdk-11-*??


isomorphism between group and product of kernel by image

If $\phi$ is a morphism between groups $G$ and $H$, is $G$ isomorphic to  $$ker(\phi)\times im(\phi)$$ ? Why ? Thanks.


I have recently come across a picture that is a theory of Malfoy attempting to warn the trio of the Basilisk in the second film. It has a few exceptionally good points that seem genuine, and I couldn't helping thinking it to be possible.  Malfoy could just being his old self, and granted wished Hermione dead, however, how would she have gotten the page on basilisks from?     It looks typed as if from a Library book (but as explained from the theory, Hermione has an ever ending love for books), but was it? I understand that certain circumstances permit different actions of a human, but this was a hunch from Hermione, no?   The following picture contains mild, vulgar language.     I am looking for the authenticity of this theory, via J.K Rowling herself, or hard, canonical evidence.  Could this theory be linked with the page that Hermione had?   Not my photo - .


What are the integer solutions to $a^{b^2} = b^a$ with $a, b \ge 2$

I saw this in quora.  What are all the integer solutions to $a^{b^2} = b^a$ with $a, b \ge 2$?  Solutions I have found so far:  $a = 2^4 = 16, b = 2, a^{b^2}  = 2^{4\cdot 4} =2^{16}, b^a = 2^{16} $.  $a = 3^3, b = 3, a^{b^2} = 3^{3\cdot 9} =3^{27}, b^a = 3^{3^3} =3^{27} $.  In the general case, $a$ and $b$ have the same set of prime divisors, so let $a =\prod_P p_i^{a_i}$, $b =\prod_P p_i^{b_i} $ with each $a_i \ge 1, b_i \ge 1$.  $b^a =b^{\prod p_i^{a_i}} =(\prod p_j^{b_j})^{\prod p_i^{a_i}} =\prod p_j^{b_j\prod p_i^{a_i}} $  $a^{b^2} =a^{\prod p_i^{2b_i}} =(\prod p_j^{a_j})^{\prod p_i^{2b_i}} =\prod p_j^{a_j\prod p_i^{2b_i}} $  Therefore, for each $p_j$, $b_j\prod p_i^{a_i} =a_j\prod p_i^{2b_i} $.  I haven't gotten any further than this.  I conjecture that there are no other solutions.


Running parallel JUnit tests in same JVM process without Maven/Apache SureFire?

Note: This question is NOT a duplicate of the above  I'm looking for a plugin or some TestRunner that will allow me to run JUnit suites in parallel in the same JVM process, without using Maven. (I'm unfortunately not able to use Maven for this project.) And, I need to re-use connections to the server and so am using a Singleton pattern. (I can't have that many simultaneous connections to the server.)  I've pretty much scoured the whole Internet, but no solution has worked. (I'm also using JUnit @Categories and @Parameterized, so it would be great if I could get those to work too, but at this point I'm kind of desperate.) Each solution I've tried makes a new JVM process for each test or suite.  Can anyone provide a library, some sample code, or point me in the right direction as to how I could go about this? I can use ant, but based on , I don't think it would work. Also, even if I have to switch to TestNG, I'll do it.  Also, I know that  question is related, but I really need to re-use those connections and use a Singleton pattern.  Any help would be appreciated, SO! Thanks.


whats the difference between tasksel and normal methods

Recently I have gone through tasksel command usage because of LAMP server setup. Why can't I use apt-get or aptitude there?  Why does the Ubuntu wiki page suggest to do it with tasksel only. Is there any specific reason?  Where should tasksel be used? whats going to happen if I use aptitude or apt-get instead of tasksel while installing the server.


I made the eyelashes for my mesh and though it will be fine as it looks in the picture     Particle Edit Object mode but after I render the eyelashes look very messy like this  What I am doing wrong? Here my Hair settings  Thanks in advance


Two-sided permutation test vs. two one-sided

I am working with a set of genes for which I have both methylation values $\beta$ (continuous on unit interval) and gene expression $E$ (non-negative continuous) that I want to test for correlation $\hat\rho(log_2E,\beta)=R$. To filter out only the significant correlations I perform a permutation test where for each site I randomly permute $E$ a large number of times and calculate $R$. This gives me a distribution under the null hypothesis $p(R|H_0)$, i.e. when there is no dependence between $\beta$ and $E$, that I can compare $R$ against.  Now to my question,  I want to test both for positive and negative correlation. Do I make two tests per gene and use double multiple testing correction, where  $p_- = \int\limits_{-\inf}^Rp(x|H_0)dx$  $p_+ = \int\limits_{R}^\inf(x|H_0)dx$  or can and should I calculate a two-tailed p-value directly based on $|R|$ or such, and use normal multiple testing correction? I can only think of the following, but it feels wrong and has lousy power.  $p_2 = \int\limits_{-\inf}^{-|R|}p(x|H_0)dx + \int\limits_{|R|}^\inf(x|H_0)dx$    Edit: Updated the figure and added the missing x-axis label. The y-axis is the same for all panels.


R: Greenhouse-Geisser in Anova from car package

i have a question concerning the output from {car} Anova. I want to run a simple 2x2 repeated measures ANOVA using the multivariate approach. I can run the (modified) example from the Anova {car} help page:  phase <- factor(rep(c("pretest", "posttest", "followup"), c(5, 5, 5)),                 levels=c("pretest", "posttest", "followup")) hour <- ordered(rep(1:5, 3)) idata <- data.frame(phase, hour) idata  mod.ok <- lm(cbind(pre.1, pre.2, pre.3, pre.4, pre.5,                  post.1, post.2, post.3, post.4, post.5,                  fup.1, fup.2, fup.3, fup.4, fup.5) ~  1,              data=OBrienKaiser)  (av.ok <- Anova(mod.ok, idata=idata, idesign=~phase*hour) ) b<-summary(av.ok)   Which gives the following (shortened) output  Univariate Type III Repeated-Measures ANOVA Assuming Sphericity                  SS num Df Error SS den Df        F    Pr(>F)     (Intercept) 7260.0      1   603.33     15 180.4972 9.100e-10 *** phase        167.5      2   169.17     30  14.8522 3.286e-05 *** hour         106.3      4    73.71     60  21.6309 4.360e-11 *** phase:hour    11.1      8   122.92    120   1.3525    0.2245     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1    Mauchly Tests for Sphericity          Test statistic  p-value phase             0.70470 0.086304 hour              0.11516 0.000718 phase:hour        0.01139 0.027376   Greenhouse-Geisser and Huynh-Feldt Corrections for Departure from Sphericity              GG eps Pr(>F[GG])     phase      0.77202  0.0001891 *** hour       0.49842  1.578e-06 *** phase:hour 0.51297  0.2602357     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1               HF eps Pr(>F[HF])     phase      0.84367  0.0001089 *** hour       0.57470  3.161e-07 *** phase:hour 0.73031  0.2439922     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1    However, with my data (see below) the Greenhouse-Geisser output is missing:       h2 <- structure(list(A1neg = c(-8.427556992, 1.20452559, -14.331842422,  -10.428559303, 1.750265002, 9.388166428, 0.790130436, -1.592002392,  0.539065838, -3.758603573, 8.391399384), B1neg = c(-12.188085556,  -1.964554906, -12.247328758, -7.326891422, -0.961694896, -1.048453212,  -4.225459576, 0.173920691, 1.876976371, -9.11947155, -1.706287026 ), A1pos = c(-0.660317183, 3.498036146, 22.003242493, 19.905063629,  -3.124288321, 11.968006134, 5.838645935, 5.140467644, 5.154311657,  2.298083067, 1.164232969), B1pos = c(-12.805168152, -1.550003886,  45.990013123, 15.915545464, -1.67797184, 7.565258026, 10.635170937,  12.769438744, 11.738276482, 4.544145107, 0.230011433)), .Names = c("A1neg",  "B1neg", "A1pos", "B1pos"), class = "data.frame", row.names = c("1",  "11", "21", "31", "41", "51", "61", "71", "81", "91", "101"))   condition <- ordered(rep(c("A", "B"), c(2)),                  levels=c("A", "B")) reg <- factor(rep(c("neg", "pos"), c(2,2)),             levels=c("neg", "pos")) idata<-data.frame(condition, reg) idata  mod.ok<-lm(cbind( A1neg,B1neg,A1pos,B1pos) ~ 1, data=h2) (av.ok<-Anova(mod.ok, idata=idata, idesign=~condition*reg)) summary(av.ok)   This gives:  Univariate Type III Repeated-Measures ANOVA Assuming Sphericity                  SS num Df Error SS den Df      F  Pr(>F)   (Intercept)    233.35      1   995.14     10 2.3449 0.15669   condition        3.32      1   373.00     10 0.0891 0.77143   reg           1220.66      1  2135.77     10 5.7153 0.03791 * condition:reg   62.48      1   176.90     10 3.5318 0.08963 . --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  >    Do you have any ideas, what went wrong?


the order of an element of power k in a group G

if g is an element of a group G and g has finite order, let's say n. then prove that the order of g^k is equal to (n/gcd(n,k)) i.e |g^k|= n/gcd(n,k) my attempt: if n divides k then g^k=e. then the order of g^k is 1 and 1 = n/gcd(n,k) = n/n if n doesn't divide k then k= nr+s, where s<n and r,s are integers then g^k= g^nr g^s = g^s then I do not know what to do I am stuck here


The real or purely imaginary solutions of the equation, $z^3+iz-1=0$ are?

The number of real or purely imaginary solutions of the equation, $z^3+iz-1=0$   is?   I substituted $x+iy=z$ and am getting two equations which seem impossible to solved.What would be the correct approach ?


Finding the Jordan basis of a $4 \times 4$ matrix

I have to find the Jordan basis of the following matrix:  $$A=\begin{pmatrix} 2&0&-1&1\\ 1&1&-1&1\\ 1&-3&2&-1\\ 0&-3&2&-1\\  \end{pmatrix} $$  I computed the characteristic polinomial $P_A(t)=(t-1)^4$  I'll just skip the calculations and state what I found, I got (${\lambda_1=1}$): $$\dim(V_{\lambda_1})=\dim(\ker(A-\lambda_1I))=2$$$$V_{\lambda_1}^2=\ker((A-\lambda_1I)^2)=Span\left(\begin{pmatrix} 0\\ 1\\ 0\\ 0\\  \end{pmatrix}\begin{pmatrix} 1\\ 0\\ 1\\ 0\\  \end{pmatrix}\begin{pmatrix} -1\\ 0\\ 0\\ 1\\  \end{pmatrix}\right)$$$$V_{\lambda_1}^3=\mathbb{R^4}$$ Therefore for my Jordan basis: $$v_3\in V_{\lambda_1}^3/V_{\lambda_1}^2$$ So I choose $v_3=\begin{pmatrix} 0\\ 0\\ 0\\ 1\\  \end{pmatrix} $  Then I calculated $v_2$ as $v_2=(A-\lambda_1I)v_3$ and $v_1$ as $v_1=(A-\lambda_1I)^2v_3$.  I got $$v_2=\begin{pmatrix} 1\\ 1\\ -1\\ -2\\  \end{pmatrix},\;\;v_1=\begin{pmatrix} 0\\ 0\\ -1\\ -1\\  \end{pmatrix}$$ Indeed these 3 vectors are fine. (I checked by computing) When I have to choose the last vector $v_4$ (i.e. the one associated with the Jordan block of order 1) I'm not sure how to procede, I read on some notes that I should choose $v_4 \in V_{\lambda_1}^3/span(v_1,v_2,v_3)$ but that doesn't really seam to work...  The method presented in my textbook is somewhat unclear and I couldn't find anywhere a good explaination on a canonical method to follow when looking for the Jordan Basis of a matrix...


I am getting NPE for UUID, and I don't know why

public Crash getCrash() {     String uuidString = getString(getColumnIndex(CrashTable.Cols.UUID));     String name = getString(getColumnIndex(CrashTable.Cols.DRIVER1));     String insCo = getString(getColumnIndex(CrashTable.Cols.INSCO));     String policy = getString(getColumnIndex(CrashTable.Cols.POLICY));     String telephone = getString(getColumnIndex(CrashTable.Cols.PHONE));     String email = getString(getColumnIndex(CrashTable.Cols.EMAIL));      **Crash crash = new Crash(UUID.fromString(uuidString));**     crash.setYourName(name);     crash.setInsCo(insCo);     crash.setPolicy(policy);     crash.setTelephone(telephone);     crash.setEmail(email);      return crash; }   The line I marked is causing a NPE (uuid == null).  It seems to have problem with the fromString.  Here's the pertinent portion of the "Crash" class it's referencing.  public class Crash  {  private UUID mId; private String mYourName; private String mInsCo; private String mPolicy; private String mTelephone; private String mEmail; private Date mDate;  public Crash() {     this(UUID.randomUUID()); }  public Crash(UUID id) {     mId = id;     mDate = new Date(); }  public UUID getId() {     return mId; }   Is there something I'm missing?  I'm pretty new to this, so if there's some more information you're needing, please let me know.  Thanks in advance.


Wifi does not detect all available Wifi in Ubuntu 16.04

SOLUTION:  As the user Chili555 noted in the comments, I did what was said in :  sudo -i echo "options rtl8723be ant_sel=2"  >  /etc/modprobe.d/rtl8723be.conf exit   and it worked when rebooting    Original post:  First of all, I am very new to Ubuntu, so please ask for more data if it is needed.  I recently installed Ubuntu 16.04 on a dual boot with Windows 10.  I tried connecting to Wifi, but only some appear. For example, I can perfectly connect to my mobile hotspot, but my home wifi is not even listed with the available ones.  I tried many methods found online, but none seemed to work, si I write this question.  Firtly, after making sure drivers were installed, I tried restarting the nerwork-manager by typing:  sudo service network-manager restart   But this did not work at all, so I tried the fix to stop the mac address changes, changing   wifi.scan-rand-mac-address=no   in the file /etc/NetworkManager/NetworkManager.conf  However, this also did not work.  I ran lspci and it returned the following:  00:00.0 Host bridge: Intel Corporation Device 5904 (rev 02) 00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02) 00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 02) 00:08.0 System peripheral: Intel Corporation Sky Lake Gaussian Mixture Model 00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) 00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21) 00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI (rev 21) 00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) 00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1) 00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1) 00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port (rev f1) 00:1f.0 ISA bridge: Intel Corporation Device 9d58 (rev 21) 00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21) 00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21) 00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21) 01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265] (rev 83) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 07) 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter   so I knew my network controller was RTL8723BE. I the added   SUSPEND_MODULES="RTL8723BE"   to the file /etc/pm/config.d/config (I found this solution online, as well.)  The last step I've tried is to type  iw reg get   It returned:  country ES: DFS-ETSI     (2400 - 2483 @ 40), (N/A, 20), (N/A)     (5150 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR     (5250 - 5350 @ 80), (N/A, 20), (0 ms), NO-OUTDOOR, DFS     (5470 - 5725 @ 160), (N/A, 26), (0 ms), DFS     (57000 - 66000 @ 2160), (N/A, 40), (N/A)   and then I typed  sudo nano /etc/default/crda   it returned  # Set REGDOMAIN to a ISO/IEC 3166-1 alpha2 country code so that iw(8) may set # the initial regulatory domain setting for IEEE 802.11 devices which operate # on this system. # # Governments assert the right to regulate usage of radio spectrum within # their respective territories so make sure you select a ISO/IEC 3166-1 alpha2 # country code suitable for your location or you may infringe on local # legislature. See `/usr/share/zoneinfo/zone.tab' for a table of timezone # descriptions containing ISO/IEC 3166-1 alpha2 country codes.  REGDOMAIN=   As the last line seemed incompleted, I edited at the end  REGDOMAIN=ES   I rebooted, but it still does not work. At this point I am pretty desperate, because I can't seem to find any solution, and because I know my hardware is working (I can connect to other Wifis) and the network works (I can connect using Windows in the same PC)  Note: if any further information is needed, please let me know so I can add it


The NOAD reports the following notes about should and would:     The traditional rule is that should is used with first person pronouns (I and we), as in I said I should be late, and would is used with second and third persons (you, he, she, it, they), as in you didn't say you would be late. In practice, however, would is normally used instead of should in reported speech and conditional clauses: I said I would be late; if we had known, we would have invited her.   I thought that should and would really had a slightly different meaning. Am I wrong?


iPad Air - deleted photo appears over and over again and copies itself

The picture I've  received via Viber deleted already 40 times appears over and over again in camera roll and photo stream !  How do i delete?


There are $50$ apple trees in an orchard. Each tree produces $800$ apples. For each additional tree planter in the orchard, the output per tree drops by $10$ apples. I'm not sure if what my function in terms of the number of trees that models the total production of apples would be. I'm pretty sure it's $a(x)=(50+x)(800-10x)$. Also, what is the implied domain and range of the function used?


LDF file size is very huge even after doing Transaction log backup

I work on a SQL Server 2016 Database and in our production environment we have primary SQL server and a fail over SQL server. All the transactions are occurring on the primary SQL server. In primary , i have Full Backup running every day at night and Transaction log backup running every one hour. Transaction replication is enabled in Primary to fail-over server.  In fail over server there i didn't set up full backup and transaction log backup.Recently i got alert that the drive in which LDF file is stored in fail over server is full.  That is when it clicked to me,that in fail-over i am not running regular Full back and Transaction log backup.(Recovery Model is Full Recovery) which is causing LDF file to grow and not truncate.  So i did a full backup of the database and then a transaction log backup ,but the LDF file size is stil the same.So i did a database shrink operation(i know that shrinking is not recommended) but still the LDF file size is same.  How can i reduce the LDF file size? Please help.


search all stack exchange sites for key words

Just curious, is it possible to search all stack exchange sites via one form?   Thanks!  Christian


how to open files in your project folder?

In my script I can select a midifile that's in the same directory as the script by typing the name of the file: 'moonlight.mid'. I chose to organize the midifiles and move them to the folder testmidifiles. I would expect that I could use 'testmidifiles/moonlight.mid' but this gives the error 'No such file in directory'. Is there a way to make this work? As an example: projectfolder/test.py print(open('testfolder/test.txt'))  projectfolder/testfolder/test.txt The reason is that testing on different systems, you have to change the path to the file every time and I'm a bit lazy :) I would love to know the trick!


I make a glossaries with the following snippet of code,  \documentclass{article}  \usepackage[toc,nonumberlist]{glossaries}  \makeglossaries \newacronym{NGI}{NGI}{Next-Generation Internet} \newcommand{\NGI}{\gls{NGI}} \newacronym{LEO}{LEO}{Low Earth Orbit} \newcommand{\LEO}{\gls{LEO}} \newacronym{MEO}{MEO}{Medium Earth Orbit} \newcommand{\MEO}{\gls{MEO}}  \begin{document}  Just for test.  \printglossaries  \end{document}   But the output document only contains Just for test, not glossaries. I checked with  and can't see any problem with my code.  Here is a part of compilation info.  $ latex main.tex  This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)  restricted \write18 enabled. entering extended mode  ....  (/usr/share/texlive/texmf-dist/tex/latex/glossaries/base/glossaries-compatible- 307.sty) (/usr/share/texlive/texmf-dist/tex/latex/glossaries/styles/glossary-hypernav.st y) (/usr/share/texlive/texmf-dist/tex/latex/glossaries/styles/glossary-list.sty ) (/usr/share/texlive/texmf-dist/tex/latex/glossaries/styles/glossary-long.sty (/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty)) (/usr/share/texlive/texmf-dist/tex/latex/glossaries/styles/glossary-super.sty (/usr/share/texlive/texmf-dist/tex/latex/supertabular/supertabular.sty)) (/usr/share/texlive/texmf-dist/tex/latex/glossaries/styles/glossary-tree.sty)) (./main.aux) (./main.glsdefs) No file main.gls. [1] (./main.aux) ) Output written on main.dvi (1 page, 232 bytes). Transcript written on main.log.     As pointed by @NicolaTalbot, there is still nothing after running makeglossaries main.  $ makeglossaries main makeglossaries version 2.12 (2014-01-20) added glossary type 'main' (glg,gls,glo) Warning: File 'main.glo' is empty. Have you used any entries defined in glossary 'main'? Remember to use package option 'nomain' if you don't want to use the main glossary.   PS: my platform is Ubuntu + Texmaker.


Is there a way to hide & unhide a Trello list?    Or is there another kind of work around?


1980s fantasy film with bat-like creatures that wrapped their prey in their wings?

Does anyone know the title of a 1980s fantasy film which had creepy black creatures with bat like wings which they wrapped wound their victims and then digested them, and all that was left was a pile of bones and goo.   I thought it might be Dragonslayer but seems a bit unusual for Disney.


Do you lose your +2 edit rep if the edited post is subsequently deleted?

Do you lose the +2 edit rep if the edited post is subsequently deleted?  It seems a little unfair if this is true, but reputation can evaporate in this way in similar circumstances.


Remote monitor directory via FileSystemWatcher

I need to track changes in network drive (Z:) using FileSystemWatcher in C#.   When I try to set the Path property of FileSystemWatcher in Wndows form application everything OK.   But when I try to do the same action in my Windows Service application I recieve an Error message in journal   "Unable to start the service. System.ArgumentException: The folder Z:\ is not allowed in System.IO.FileSystemWatcher.set_Path(String value)".    How can I fix this?


How to, select a list of ids from another table and have it as a column in select in SQL

Okay so I have two tables, with many columns, but for illustration purposes I have a and b:   a:           b:    +---+-----+  +---+------+-----+ |id |name |  |id | a_id |size | +---+-----+  +---+------+-----+   What I want is to SELECT * FROM a and then for each a' in a I want to SELECT id FROM b WHERE a_id = a'.id. But can I create a single curery such that the results becomes:   ab: +---+-----+--------------------------------+  |id |name | b_idx_1, b_idx_2, ... b_idx_n  | +---+-----+--------------------------------+    I tried:  SELECT id, name, (SELECT id FROM b WHERE b.a_id = a.id) FROM a WHERE a.name LIKE 'Random Name' But then I get an error, with the sub-query returning more than one row.


Can I put a folder in the top of the main drive (is that the root?) so that the two users of the machine can use it freely. For example, I'd like to put music in it so that both users can import to Rhythmbox. We also need to keep other various files and docs there and we need to edit files created by eachother.  I'm not magnificently knowledgeable of term commands, so if someone could give me reasonably detailed instructions, I'd be very grateful.  If there's a better way to do what I want; I'm listening...  Many thanks.  Using Ubuntu 18 (if you want to help with my Ubuntu<>MacOS filesharing problem, please look for my other post).


The Question is:-     Given that $a,b,c \geq 4$   where $a,b,c$ belongs to integers   $$4abc=(a+3)(b+3)(c+3)$$   Find the value of $(a+b+c).$   This  question is from an olympiad-PRMO ,the question though have solutions but none is so satisfying they simply make some assumptions here and there just to get the right answer (so I would not be revealing the answer).  I also tried the question by simply just simplifying the equation but i failed to narrow down to a result   I would like to see a nice,elegant and simple solution without any assumptions...


help solve $133| 11^{n+1} + 12^{2n-1}$ by induction


On both of my active sites the 'Earned Bounties' section header layout is broken:    It affects the header and the sorter.  (Tested on Chrome and IE, confirmed by others on Safari, FireFox)


Installing QGIS Statist plugin in Mac OS X?

I'm trying to install the Statist plugin.  I'm running MacOSX 10.7.5. with Python 2.7.3. and Numpy 1.5.1.  I have also installed matplotlib 1.1.0 (for python 2.7).  When I try to install the Statist 1.0.0 plugin, I get an error message saying that I need matplotlib installed. Somehow QGIS is not finding it.


I don't know how it got uninstalled since I had it before, but when I try to install it again I get the following error:  oierlauzi@akerbeltz:~$ sudo apt-get install unity-control-center Reading package lists... Done Building dependency tree        Reading state information... Done    Some packages could not be installed. This may mean that you have requested an     impossible situation or if you are using the unstable distribution that some       required packages have not yet been created or been moved out of Incoming.  The following information may help to resolve the situation: The following packages have unmet dependencies:   unity-control-center : Depends: libcheese-gtk23 (>= 3.4.0) but it is not going to be installed                         Depends: libcheese7 (>= 3.0.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   I have read several answers but none have solved my issue. I also could not solve it by using aptitude.


Encouraging users to create an account (and keep it)

I know SO's policy is "you don't have to register to ask questions," but there are so many new members and so many hit-and-runs... The majority of the questions I see now are coming from new users (i.e., it's their first question). Although unregistered users should still be able to ask questions, I think we should encourage users to create an account. Here is a couple of ways we could do that:  Explicitly encourage people to get an account: there's currently nothing telling people to do that. Maybe tell people something like "Get an account, it's easy!" and maybe show some of the perks of having an account (and having rep).  Maybe give a few bonus points for registering; and have that enable a basic privilege. It could be taken from one of the , for example.   Of course getting people to register is just half of the battle. I don't know what the stats are on this, but I think there's a number of users who create multiple accounts anyways. We could curb that by:  Having smart(er)? duplicate account detection systems, alerting someone who is about to create a new account and possibly has an account already. Give them a message like "Hey, it looks like you already have  account, are you sure you want to create a new one?"  Create a new privilege (10k? 20k?) that gives users tools to detect possible duplicate accounts, eg: "List users with the same e-mail," "List users with the same IP addresses,"  etc. (without revealing said emails and IPs). Then the 10k/20k can look at other stuff (e.g.: posts) and refer the new user to a moderator for a possible merge.


Is it possible to search for files including it's content for the desired keywords using Terminal, Nautilus or Dolphin?


I need to find $|GL_2(F_p)|$, I am very very uncomfortable in counting, so please help here I proceed,  $\begin{pmatrix}a&b\\c&d\end{pmatrix}$ be such an invertible matrix, so we need and sufficient that $ad\neq bc$, so if i chose all non zero $a,b,c$ arbitrarily and chose $d\neq a^{-1}bc$ and form matrices then the cardinality   will be $(q-1)^3\times (q-2)$, well now if one of $a,b,c,d$ be zero then other three can be anything nonzero so in this case cardinality will be $4(q-1)^3$, so finally if two entries are $0$ then they must be opposite to each other i.e diagonally, but other two must be nonzero, so cardinality in that case $2(q-1)^2$, so total number is just sum of three cases.


Background color of element should only cover the text inside it

I am new to web dev, I was building a test site and I wanted a h1 tag with the background color only covering the text content of the tag and not extend to the whole width of the tag.  Visually, the h1 tag text should be center aligned with the browser's width and the background color should only encompass the text.  I have tried using the width attribute of the tag but it actually nullifies the alignment of the text to the browser's width.  Can I do it with CSS alone?


How to detect when laptop power cable has been disconnected?

For the umpteenth time my laptop just shut down in the middle of my game because my power cable had disconnected without me noticing it.  Now I want to write a little C# program that detects when my power cable disconnects and then emits a nice long System beep. What API could I use for that?


I looked up guides to install ubuntu, but they all say that you can choose the option: "install along windows". But The option is long gone, so i read... . Now i shrinked my windows partition, and get a new extra partition. When i install ubuntu using a usb device, everything goes well, but when i need to choose a partition to install ubuntu on, i can't use the partition i created because it's not usable... . So i think i have to format the partition but i don't know how.  Can someone help me?  P.S. :  The main goal is to run a dualboot system. I'm using windows7


Why was it a mistake to come out of hyperspace close to Hoth?

From the :  Alarms sound throughout the hidden Rebel base.  In the control room, a  controller urgently gestures for General Rieekan to check a computer  scan.              CONTROLLER     General, there's a fleet of Star      Destroyers coming out of hyperspace      in sector four.              RIEEKAN     Reroute all power to the energy      shield.  We've got to hold them till      all transports are away.  Prepare      for ground assault.  Rieekan exits hurriedly.   [...]               VADER     What is it, General?              VEERS     My lord, the fleet has moves out      of light-speed.  Com-Scan has      detected an energy field protecting      an area around the sixth planet of      the Hoth system.  The field is      strong enough to deflect any      bombardment.              VADER         (angrily)     The Rebels are alerted to our      presence.  Admiral Ozzel came out      of light-speed too close to the      system.              VEERS     He felt surprise was wiser...              VADER     He is as clumsy as he is stupid.     General, prepare your troops for a      surface attack.              VEERS     Yes, my lord.   Why exactly was this a bad idea, and what was Vader's preferred strategy? The Rebels can apparently raise their shield instantly, so it seems like they would do that anyway, surprised or no. In fact, since being surprised gives them less time to prepare, it seems like this is a good strategy on the Empire's part.  Is the issue that the Imperial forces didn't have enough time to prepare, and it would have been better to come in farther out and spread out, as  says? If so, why wouldn't forming up while already in the system also give the Rebels warning, and give them even more time to escape? All I can really think of is that they would have somehow known the range of the Rebel sensors, dropped out of hyperspace just past them, formed up, then quickly flown into range, but that seems hard to infer from the exchange between Vader and Veers.


How can I change the location of the .minecraft directory in the 2.1 Launcher?

I don't want to have the .minecraft folder in the %APPDATA% folder. How can I move it somewhere else?  I'm using Launcher version 2.1, that looks like this:


I read many informations from many webs, all never give an answer with easy understand.


Why does $\;\lim_{n\to \infty }\frac{n}{n!^{1/n}}=e$?

I have tried to show that this limit : $$\lim\limits_{n\to \infty }\frac{n}{n!^{\frac 1 n}}=e$$  using  $ \lim  (1+\frac 1 n)^{\frac 1 n} , n \to \infty $ , I don't find any equivalence , however wolfram alpha says that is $e$ as shown , then how do I evaluate it ?


How to add a resolution in display settings?

I have a computer using Ubuntu 14.04 LTS with the ASUS Nvidia gt440 graphics card and a vga monitor that is supported with the resolution of 1280 X 800.   However, in the display options I could not find 1280 X 800 and all the other options are either causing screen to flicker or just lower resolution.  Is there a way to add a custom resolution in the display settings?


Navigation in Desktop Lightning Experience not Destroying Components

I have a couple custom lightning pages and apps, both overriding default record views and standalone pages (just straight nav to from the sidebar). It seems that every time we go from 'tab' to 'tab' it just hides the content rather than destroying it. When you navigate back to the tab, it does recreate the components, so you end up with 2 of everything sitting out there.  I noticed this b/c we have a component that registers to an app event. And every time you navigate away from and back to the page, the handler is registered +1. So going back and forth a few times you pretty quickly have 10s of the same handlers firing for each app event.  Anyone seen this? Thoughts?  If you create a Lightning App, add this component, and assign it to lightning menu you can see what I mean. Just go the app click home and then click back:  Comp:  <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes">     <aura:handler event="c:BoringAppEvent" action="{!c.test}"/>     hi     <ui:button press="{!c.onClick}" >App Event</ui:button> </aura:component>   controller:  ({     test : function(component, event, helper) {         console.log('Clicked');     },     onClick : function(cmp, evt){          var notEvt = $A.get('e.c:BoringAppEvent');          notEvt.fire();     } })   Renderer  ({     unrender: function(){         this.superUnrender();         console.log('unrender');         debugger;     } })   BoringAppEvent.evt  <aura:event type="APPLICATION" description="Event template" />


I read  in which the following assertion was made:     The sun, in fact, emits light in all colors, but since yellow is the   brightest wavelength from the sun, that is the color we see with our   naked eye   Now, as a photographer, I was always taught that the light from the sun was brightest in GREEN and that is why green is the color to which our eyes are most sensitive. In fact, if we look at the spectrum of the sun:    As we can see from this graph, the most intense light from the sun is not yellow, it is green. So, is NASA just wrong or what? Why does the sun appear yellow?


Was it justified what happened to Mr. Park?

When Ki Taek kills Mr. Park in Parasite, I was surprised and confused. Why did he do that? And after all that, does he deserve redemption?  Yes, I agree that Park had been a little insensitive to the poor people’s problem, but that doesn’t mean he can just murder him. It’s very natural for Park to want to help his own son rather than some tutor in his house. It is even mentioned that they only have 15 minutes to get him to the hospital before it’s too late. Park was generally nice, though a little ignorant, but I don’t think Mr. Kim deserves to be pardoned for what is an actual crime.


What short story from the 1960s is about future where there are no printed books

A friend recently reminded me of a story where two children hear/learn /read in a book  about a time long ago when all books were in print, and it's very strange to them as they are totally electronic in their future time.  the story was most probably written by an English-writing author, dated before 1990 and probably in the 1960s or so.  Any ideas?


Why structs took more space than it needs?

I saw that when I checked the size of struct it took 36 bytes, but the same variables (without the struct) took 33 bytes. Why?


How do I show that this inequality holds for all $x \in (0, 1)$ and $n \in \Bbb N$?     $$ (1-x)^n<\frac{1}{1+nx}.$$


Understanding Royer oscillator (for wireless power transfer), (specially mosfet gate driver circuit)

I need to understand how exactly this circuit works, there is not much references and books on those circuits, they're used as "power" oscillator for DC AC conversion for wireless. i finally found their name after being so downvoted here when i asked if oscillators can be used to generate power.    here is something i found on how it works (i'm not sure you need that to answer my question)   i also know that the mos control voltage is arranged in such a way to perform switching at ZERO BIAS VOLTAGE. what i really need to understand first is what are the  capacitors C4 and C5 on the gate drive and how are they calculated, also what are the zener diodes for exactly? and i think the shottky is for have a fast turn off right?  here are different other circuits of the royer i found, if this may help, it seems like there are two types,       thank you very much.


As I don't have access to a usb or CD, I have tried to frugal install ubuntu onto my HDD, using Unetbootin. Once turning on I find the dual boot menu to select the OS, and attempt to boot Ubuntu, with no avail. An error appears saying     Windows failed to start.A recent hardware or software problem might be   the case.   It then says File:      ubnldr.mbr status: 0xc00007B.   Does anyone know a solution?


Can I travel with a Geneva convention 1951 travel document to Australia without visa?

I have a German Geneva convention 1951 travel document and I will visit Australia, do I need to apply for a visa?


What if a light clock travels perpendicular to mirrors that make up the clock?

I'm guessing you're all familiar with the classic intuitive way of explaining time dilation: with a light clock traveling at velocity v directed at a parallel direction to the mirrors that make up the light clock.   Now, what happens if we have a light clock that goes upwards at v? That is to say, what if its velocity is in a direction perpendicular to the mirrors' orientations? As far as I can tell, this situation wouldn't present any time dilation. Thoughts?


Math contest integer triplet problem: $x + y + z + xy + yz + xz = xyz − 1$

Can any one help me with this?  Determine all integer triples $(x,y,z)$ such that $1 ≤ x ≤ y ≤ z$ and $x + y + z + xy + yz + xz = xyz − 1$.  I thought of Vieta's formula but don't let me lead you into a dead end.


$\hom_R(A,B)$ is finitely generated if $R$ is noetherian

This is part of an exercise I'm doing, from Rotman Introduction to homological algebra.  Let $R$ be a commutative ring, and let $A$ and $B$ be finitely generated $R$-modules.   Then if $R$ is noetherian, prove that $\hom_R(A, B)$ is a finitely generated $R$-module.  I'm stuck on it, any hint ?


I had a problem with disappearing marker as the data sum up to more than 100 while xmax was set to 100. See .  As written in the answer to the cited question I tried to avoid the problem by normalizing the value to 100. But this lead to (much smaller) rounding errors in previously correct rows and now the marker disappear there. See the following example. Before the normalisation the column F ist affected, after the column B.   How can I in a reliable way avoid this rounding problem? Or at least get a clear error message. I have quite a number of this plots and I don't want to have to check them all the time for missing markers.    \documentclass{scrreprt} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \usepackage{pgfplotstable} \pgfplotsset{  my stackbar plot/.style={              xbar stacked,              xmin=0,xmax=100,              symbolic y coords={A,B,C,D,E,F,G},              ytick=data,              nodes near coords={xxx},}}  \begin{document}  \pgfplotstableread[col sep=space]{  text   --  -    +       ++  A      0.0 1.7 13.8    84.5  B      0.0 0.6 20.1    79.3  C      0.0 1.9 13.2    84.9  D      0.0 1.6 27.9    70.5  E      1.3 3.9 19.5    75.3  F      0.0 1.4 15.0    83.7  G      0.3 1.7 24.8    73.2  }\data   \pgfplotstablecreatecol[create col/expr={\thisrow{--}+\thisrow{-}+\thisrow{+}+\thisrow{++}}]{sum}\data %  \pgfplotstablecreatecol[create col/copy=--]{--o}\data  \pgfplotstablecreatecol[create col/copy=-]{-o}\data  \pgfplotstablecreatecol[create col/copy=+]{+o}\data  \pgfplotstablecreatecol[create col/copy=++]{++o}\data  \pgfplotstablecreatecol[create col/expr={100/\thisrow{sum}*\thisrow{--o}}]{--}\data  \pgfplotstablecreatecol[create col/expr={100/\thisrow{sum}*\thisrow{-o}}]{-}\data  \pgfplotstablecreatecol[create col/expr={100/\thisrow{sum}*\thisrow{+o}}]{+}\data  \pgfplotstablecreatecol[create col/expr={100/\thisrow{sum}*\thisrow{++o}}]{++}\data  \pgfplotstablecreatecol[create col/expr={\thisrow{--}+\thisrow{-}+\thisrow{+}+\thisrow{++}}]{sumnew}\data  \pgfplotstabletypeset[columns={text,sum}   ,precision=10,columns/text/.style={string type}]\data \quad \pgfplotstabletypeset[columns={text,sumnew},precision=10,columns/text/.style={string type}]\data   %\pgfplotstablesave{\data}{pgfplotstempout.dat} \begin{tikzpicture} \begin{axis}[my stackbar plot]  \addplot table [x expr = \thisrow{--o},y=text] {\data};  \addplot table [x expr = \thisrow{-o}, y=text] {\data};  \addplot table [x expr = \thisrow{+o}, y=text] {\data};  \addplot table [x expr = \thisrow{++o}, y=text] {\data}; \end{axis} \end{tikzpicture} \quad \begin{tikzpicture} \begin{axis}[my stackbar plot]  \addplot table [x expr = \thisrow{--},y=text] {\data};  \addplot table [x expr = \thisrow{-}, y=text] {\data};  \addplot table [x expr = \thisrow{+}, y=text] {\data};  \addplot table [x expr = \thisrow{++}, y=text] {\data}; \end{axis} \end{tikzpicture}  \end{document}


What is actually a 'Field' in Physics? How can something affect something at a distance?

Every text just describe fields mathematically and as a 'vector field' in which it is said a particle gives rise to a field because each point in space around it becomes associated with with a force vector. But it never explains how does a particle generate a field at the first instance, or what a field really is or how does a field work - how is a particle able to affect another one at a distance?


How were the AES key and block length subsets of Rijndael selected?

My intuition tells me it's a trade off between speed and security, but how did the standardisation process select these three seemingly arbitrary key lengths (namely, AES-128, AES-192, AES-256).


Compilation of nested template code results in error either in MSVC or GCC

The following code does not compile both in MSVC and GCC. It produces exactly opposite compiler behavior regarding the presence of the 'typename' keyword. MSVC requires that 'typename' is included before A::B<E>, otherwise an error is displayed, while GCC requires that the typename' keyword is removed. Is there a way to workaround this problem without using #ifdef/#endif blocks?  template <class C> class A {    template <class D>    class B    {    };     template <class E>    void get(typename A::B<E>& value)    {    } };  int main(int argc, char *argv[]) {     return 0; }   MSVC output when 'typename' keyword is not present:  warning C4346: 'A<C>::?$B@$RCAAB@': dependent name is not a type note: prefix with 'typename' to indicate a type error C2061: syntax error: identifier 'B'   GCC output when 'typename' keyword is present:  error: 'typename A<C>::B' names 'template<class C> template<class D> class A<C>::B', which is not a type


I am working through an example Python script from the book "Doing Math with Python" and I keep running up against a NameError which tells me my variable isn't defined, when, it looks to me like it is defined.  I'm using Python 3.4 and the code is   '''     Gravitational Calculations     '''      import matplotlib.pyplot as plt      #Draw the graph      def draw_graph(x,y):         plt.plot(x,y,marker='o')         plt.xlabel('Distance (m)')         plt.ylabel('Force (N)')         plt.title("Gravitational force as a function of distance")      def generate_F_r():         #Generate values for r         r=range(100,1001,50)          #Empty list to store F values         F=[]      #G Constant     G=6.674*(10**-11)     #Two masses     m1=0.5     m2=1.5      #Calculate F and append it into the F-list     for dist in r:         force=G*m1*m2/(dist**2)         F.append(force)      #Call the Draw Plot Function     draw_graph(r,F)      if __name__=='__main__':         generate_F_r()   The error it gives me is: NameError name 'r' is not defined  Isn't it defined in the line that states r=range(100,1001,50)?  Why isn't it taking this as a definition?  I'm sure there is something glaringly simple and incredibly stupid I'm doing but I am at my wits end as to how such a simple thing could be so hard.  Thanks!


Go through every possible combination of an array python

Say you got an array of 4 numbers. What is the best way to go through all the possible combinations? A start of the combinations would be:  1,2,3,4  1,2,4,3  1,3,2,4  1,3,4,2  1,4,2,3  2,1,3,4  etc.


Which is faster/best? SELECT * or SELECT column1, colum2, column3, etc

I've heard that SELECT * is generally bad practice to use when writing SQL commands because it is more efficient to SELECT columns you specifically need.  If I need to SELECT every column in a table, should I use   SELECT * FROM TABLE   or   SELECT column1, colum2, column3, etc. FROM TABLE   Does the efficiency really matter in this case? I'd think SELECT * would be more optimal internally if you really need all of the data, but I'm saying this with no real understanding of database.  I'm curious to know what the best practice is in this case.  UPDATE: I probably should specify that the only situation where I would really want to do a SELECT * is when I'm selecting data from one table where I know all columns will always need to be retrieved, even when new columns are added.   Given the responses I've seen however, this still seems like a bad idea and SELECT * should never be used for a lot more technical reasons that I ever though about.


How to publish a GML file as a Web Feature Service (WFS)?

I am interested in publishing a GML file as a WFS. I don't want to use a database like PostgreSQL. What would be the rough steps I need to do for that? I like to use open source software (geoserver). I don't have much experience. I am just looking for a rough guide what kind of software I should look into and which step follows which step..


Sum values from column 1 if column 2 rows have a value match

I have data in a .txt like this:  2   40 1   50 1   50 1   50 1   50 2   70 2   70 5   80 5   80 6   100   And I want to sum first column if the second column's rows match so I can get an output like this:  2   40 4   50 4   70 10  80 6   100   Thanks in advance!


Can't locate a directory using "locate"?

I want to locate a directory in my system using "locate" command. I know there is a directory named "bench-repo". when I'm giving the following command it shows me the following error :  locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory   Why is this happening? How can I find the directory?


Do I need a powerful discrete video card for Photoshop?

I have my computer and it doesn't have a separate video card. Do i need a video card to install Photoshop? Or is there any version of Photoshop that doesn't require to a separate video card?


How to Access data returned from Apex class in JS controller using Lightning web component

Below is the code tried,  @wire(getObjectDetails)     wiredResult(data,error) {          if(data){             console.log('DateOfRun-->',data);             this.lstRecs=data;             console.log('values len-->',this.lstRecs);             console.log('values -->',this.lstRecs.values);         } else if(error){             console.log('error -->'+error);            }     }    I am getting data as [object Object],But would like to fetch the values of a record.  i tried below:   @wire(getObjectDetails)     wiredResult(data,error) {          if(data){             console.log('DateOfRun-->',data);//[object object]             this.lstRecs=data;             console.log('values len-->',JSON.stringify(data));//Getting json value             this.strtest=JSON.stringify(data);             console.log('data=='+this.strtest.data);//undefined          } else if(error){             console.log('error -->'+error);            }     }


Quotient Distribution of Positive Independent Random Variables

Suppose $X$ and $Y$ are independent positive random variables with probability density functions $f_X$ and $f_Y$ respectively. Show that $Z=X/Y$ is absolutely continuous and find its probability density function.   $\textbf{My Thought:}$ In order to show that $Z$ is absolutely continuous, I need to show that it has a commulative distribution function. Then I can also differentiate the latter to obtain the probability density function of $Z$. I have the following calculation \begin{align*} P(X/Y\leq z)&=P(X\ge zY,Y<0)+P(X\le zY,Y>0)\\ &=\int_{-\infty}^{0}\left(\int_{yz}^{\infty}f_{X}(x)dx\right)f_{Y}(y)dy+\int_{0}^{\infty}\left(\int_{-\infty}^{yz}f_{X}(x)dx\right)f_{Y}(y)dy\\ &=\int_{0}^{\infty}\left(\int_{0}^{yz}f_{X}(x)dx\right)f_{Y}(y)dy. \end{align*} Also, if $z<0$, then we have that $F_Z(z)=0,$ since $X,Y$ are positive random variables. Therefore the random variable $Z$ is continuous, and we can differentiate it to obtain the probability distribution function of $Z$. We have that $f_Z(z)=0$ if $z\leq 0,$ and otherwise we have $$f_Z(z)=\int_{0}^{\infty}yf_{X}(yz)f_Y(y)dy.$$    Is my reasoning above correct?  Any feedback is much appreciated.  Thank you for your time.


I have a Dell Inspiron 3521 laptop, it's 1 year old. How can I tell if it's 32-bit or 64-bit? On Dell's website, it is listed as 64-bit, but in the System Information dialog box it displays the system type as x86 which indicates that it's 32-bit.


When is the ergodic hypothesis reasonable?

Consider an Hamiltonian system. In which circumstances is it possible to assume that all the states belonging to the hypersurface $H=E_0$ are equally visited?  Is it necessary to have a very high number of degrees of freedom?  On the other hand, if the system is non linear but has a limited number of effective degrees of freedom, say $D=3,4,5$, is the ergodic hypothesis justified?   What about the presence of regular islands where the chaotic sea cannot penetrate? Do they shrink as $D$ increases? Are they always present?


Triggering 12v Relay with HC-SR501 PIR sensor

I have a SRD-12VDC-SL-C relay with this configuration:  And I want to trigger it with PIR Motion Sensor Detector Module HC-SR501  The problem with direct connection to PIR is, when I connect PIR with 12v DC the Relay remains always ON, i.e. trigger from PIR does not switch it off. And when I connect it via 5V supply the Relay remains always OFF. The trigger output of PIR is 3.3V how can I rectify this problem? by adding some resistor/FETs, or something else. Edit: The voltage at Relay-In(Green) is 10.5V and the relay is OFF it need to go below 9V in order to switch the Relay ON. When I connect it to PIR trigger it goes down to 2.7V (Thus Switching ON the relay, below 9V). And when the PIR trigger of 3.3V comes it goes up to 7.2V but because it is still below 9V) Relay does not switch.


Sequence of $X_i$ are greater than their Expectation

Let $X_1$,$X_2$ be an i.i.d. sequence of RV's with CDF $F(x)$. Let $Y(x)=\min(i:X_i > x)$. Find $P(Y(x)> E[Y(x)])$. (F<1 everywhere) What is the limit as $x$ goes to infinity?  Here's the work I have so far:  $P(Y(x)=i) = P(X_1<x)P(X_2<x)\dots P(X_{i+1}>x) = F(x)^i(1-F(x))$  $E[Y(x)] = \sum_{i=1}^{\infty}iF(x)^i(1-F(x))$  The sum is almost geometric, but I'm having trouble dealing with it. If I do the sum one way I get: $\frac{f(x)}{1-F(x)}$ but if I do it another I get $\frac{1}{1-F(x)}$. Thoughts on how to complete?


Limit of this sequence: $\lim_{n \to \infty}\left(\sqrt{n^2+2n+5}-n\right)$

So guys I need to find the limit of:     $\displaystyle\lim_{n \to \infty}\left(\sqrt{n^2+2n+5}-n\right)$   The quadratic equation is hard to factorise and I really struggle to answer these questions.  Do I need to use the limit comparison test after I simplify this?


I created a new gdb by  arcpy.CreateFileGDB_management('e:/Rstack', 'new.gdb') arcpy.env.workspace = 'e:/Rstack/new.gdb'   But how to set this new gdb as my default gdb by arcpy, without opening ArcGIS desktop? Setting env workspace does not seem to work here.


What to do with many good incomplete answers?

There are many good answers to my question, but none of them is complete. So I can't accept any. The perfect answer would be created by merging many answers that are already written. What should I do? Create a community wiki answer containing parts of each of the answers and then accept it? Leave the question without any accepted answer?


Pointers and Arrays in c, what is the difference?

I am learning about pointers. I don't understand what the difference between the char variables is.  #include <stdio.h>  int main() {     char *cards = "JQK";     char cards2[] = "JQK";      printf("%c\n", cards[2]);     printf("%c\n", cards2[2]); }   I experimented with them in the printf() and they seem to be working the same way except that cards2[] can't be resigned while cards can. Why is this the case?


so i have a question on hashcode() and equals() method  Let's say I just write a very basic program overridng both the methodes  import java.util.*;  class Employee {    private String name;    private int empid;      public Employee(String name,int empid)    {        this.name=name;        this.empid=empid;    }      public int getEmpid()    {        return empid;    }      public String getName()    {        return name;    }      public boolean equals(Object obj)    {        System.out.println("equals has just been called...");        Employee e1=(Employee)obj;        return ((name.equals(e1.name)) && (empid==e1.empid));    }      public int hashCode()    {        System.out.println("hashcode called...");        return empid;    }  }   Then, let's say I write another class to add and iterate the elements in HashSet  class Five {    public static void main(String args[])    {        HashSet hs1=new HashSet();        hs1.add(new Employee("Alex",25));        hs1.add(new Employee("Peter",25));        hs1.add(new Employee("Martin",25));        hs1.add(new Employee("Alex",25));          Iterator itr=hs1.iterator();         while(itr.hasNext())        {            Employee e=(Employee)itr.next();            System.out.println(e.getEmpid()+"\t"+e.getName());        }       }  }   now the question is  when i try to add Alex again with the same empid the equals() always called thee times  as there is no index n hashmap so in case if it first be checked with previously added Alex it will return true and should not be called for the other two elements (peter and martin) but equals always called 3 times  why..??  is objects within same bucket do also have the index..??


What's wrong about $\sqrt{10} = \sqrt{9 + 1} = \sqrt{9} + \sqrt{1} = 3 + 1 = 4$?  I know that it's logically wrong because $4 \times 4 = 16$, but the syntax to me seems to be healthy as long as I can see, well, of course, because I'm novice and I can't see much, but I think this silly question could have a very detailed and deep answer about what's wrong and what's right in math and how to reason while solving. Thank you.


A ring $R$ is a field $\iff R$ has exactly two ideals.

Let $R$ a ring (with $1\in R$). I want to show that $R$ is a field $\iff$ it has exactly two ideals.    For $\implies $ it's obvious. Indeed, if $R$ is a field and $I\neq \{0\}$ an ideal, then, $I=A$ since $$x\in I\implies xx^{-1}\in I$$ and thus $1\in I$. In particular, if $x\in A$, then $x\cdot 1\in I$ and thus $x\in I$.   For the converse I don't really know how to do. My idea was the following one:  I show that if $R$ is not a field then it has more that two ideals. Indeed, let $R$ be not a field. Then, there is $x\in R$ that has no inverse. In particular, $(x)\notin \{R,\{0\}\}$. Indeed, if $(x)=(0)$ then $x=0$ which is a contradiction. If $(x)=R$, then $1\in (x)$ and thus there is $n$ s.t. $x^n=1$ what prove that $x$ is invertible and is also a contradiction.   Is it correct ? Is there a more direct proof ? i.e. like this:  Let $A$ and $\{0\}$ the two ideal of $R$. How can I show that all element of $A\backslash \{0\}$ are invertible ? By contradiction, if not, the $$xy\neq 1$$ for all $y\in R$. Therefore, $(x)$ doesn't contain $1$, and thus, $R$ has at least three ideal, which is a contradiction.  Is it correct ?


What are the pros and cons of a mirrorless camera compared to a DSLR?

What are the pros and cons of a mirrorless camera? I want to know from users who used traditional  DSLR before.


The bash command last (needs sudo) prints out logs, which contain information on when different users log in/out of the shell.  I have been looking for the file that stores this information, that last would access. I have checked /var/log/system.log and other files within /var/log.  I have looked everywhere on the internet as well, and cannot find the location.  I have, however, confirmed that the file is within /var/log, because when I did rm -rf /var/log/, sudo last showed empty output until the next time I logged in.  Which file is it? Thanks.  (I am using OS X Mavericks if it makes a difference.)


Drive shape key based on relative camera orientation?

Let's say (for the sake of simplicity) that this cube with two blue sides is my character...   and the shape key in question raises a few vertices on top.   Whenever the camera views either Blue side, I'd like the shape key to activate regardless of world orientation through the use of a driver. The problem is, I have no idea how to get values I need (or which values I need to begin with) in order to automate this.   TL;DR - I'd like the mesh of a character I have to deform when viewed from the side much like what was done in Land of the Lustrous     *Note: While I do have some experience with coding, I've never used python. Layman's terms would be greatly appreciated. Thank you for your time!    UPDATE: In response to @Leander's post  Would it be possible to have this script work with multiple characters on the same camera? Let's say I have character "Cube2" with shape key "Key 2", would simply adding variables like below accomplish this?  import bpy import mathutils  cam = bpy.context.scene.objects['Camera'] obj = bpy.context.scene.objects['Cube']  # ----------------------------- # Adding Cube2  obj2 = bpy.context.scene.objects['Cube2']  # -----------------------------   def drive_shapekey(scene):     obj_mat = cam.matrix_world.inverted() * obj.matrix_world      obj_eul = obj_mat.to_euler('XYZ')     cam_vec = obj_mat.to_translation().normalized()     obj_vec = mathutils.Vector((0.0, 1.0, 0.0))     obj_vec.rotate(obj_eul)     difference = cam_vec.dot(obj_vec)      key1 = obj.data.shape_keys.key_blocks["Key 1"]     key1.value = difference    # ----------------------------- # Adding Cube2 properties and shapekey 2  def drive_shapekey2(scene):     obj2_mat = cam.matrix_world.inverted() * obj2.matrix_world      obj2_eul = obj2_mat.to_euler('XYZ')     cam_vec2 = obj2_mat.to_translation().normalized()     obj2_vec = mathutils.Vector((0.0, 1.0, 0.0))     obj2_vec.rotate(obj2_eul)     difference2 = cam_vec2.dot(obj2_vec)      key2 = obj2.data.shape_keys.key_blocks["Key 2"]     key2.value = difference2  # -----------------------------   pre_handlers = bpy.app.handlers.scene_update_pre [pre_handlers.remove(h) for h in pre_handlers if h.__name__ == "drive_shapekey"] pre_handlers.append(drive_shapekey)   # ----------------------------- # Not sure if this'll work, but we'll see  [pre_handlers.remove(h) for h in pre_handlers if h.__name__ == "drive_shapekey2"] pre_handlers.append(drive_shapekey2)  # -----------------------------


why giveing extra element when use for...in javascript

I am totally confused about for...in loop in javascript. I iterate an nodeList. but it giving me some extra element why  In HTML
     klsjdfljsdf

     klsjdfljsdf
   In JS  var mm = document.querySelectorAll(".mm"); for(var i in mm){     alert(i); }   see this link :


How to test and mock 2 private methods in the same class in Java?

My java class has 2 private methods, method1 and method2. method1 invokes method2. How can I test method1 at the same time mocking method2 using any of the java testing frameworks?  Edited question: I am using this syntax to invoke a private method: Whitebox.invokeMethod(myClass, "myPrivateMethod","myParameter");  "myPrivateMethod" invokes another private method: "anotherPrivateMethod". I would like to mock "anotherPrivateMethod". I usually do this using syntax: PowerMockito.doReturn("mockedResponse").when(myClass, "anotherPrivateMethod", "anyParameter");  The combination above does not seem to work. Basically, when I first use PowerMockito to mock "anotherPrivateMethod" and use Whitebox to invoke the "myPrivateMethod", the mock is not working. I am not getting "mockedResponse" but instead the actual "anotherPrivateMethod" is getting invoked. What am I doing wrong?


How to turn old iPad on after not being used for years

So I had bought an iPad about 5 years ago (iPad 1), and I found it lying on a shelf, and I thought: why not use it? But it doesn't turn on. I let it charge for 16 hours and it still does not turn on. Also, when it is plugged in, the screen turns on (it's just black but you can see its on) for less than a second and then turns back off. Can someone help me turn it on and get it working?


Why are these reversed downvotes recorded as undownvotes?

Yesterday, a sudden loss of 6 rep led me to discover that my top 3 meta questions were downvoted:        Now, a sudden gain of 6 rep leads me to believe that the downvotes were reversed... but it looks like they were undone manually, rather than reversed by the vote fraud script:    How were yesterday's downvotes undone today? I haven't edited my questions since receiving the downvotes. Shouldn't they have been locked in after only 5 minutes?


I am reading a math book. It states the following rule:      For an integer $n$ greater than 1, let the prime factorization of $n$ be $$n=p^a_1p^b_2p^c_3...p^m_k$$    Here $a, b, c,..., m$ are nonnegative integers, and $p_1,p_1,...,p_k$ are prime numbers. Then the number of divisors of $n$ is: $$d(n)=(a+1)(b+1)(c+1)...(m+1)$$   I can use the rule to solve problems correctly, but I don't understand the rule. How to prove it?


why cant we put a decimal in the for range in python

For example, I put this:  for i in range (2,n**0.5+1,2):        print(i)   And it doesn't work. I tried putting 1/2 instead but it didn't work  I have python 3.6


How to jump to a hyperlink and back to original section in pdf or html documents

Consider the example below. Using \hyperref[hello]{go to hello} I can jump to last page but I cant find the way to hyperlink back to where I was (before i clicked) unless I scrolled back manually. My question is: Is there a way to jump to a hyperlink and jump back to the text in latex? Footnote seems to have that functionality by creating a little blue arrow next to the footnote. Is there anything similar for hyperlinks?  \documentclass{article} \usepackage(hyperref) \begin{document}   \SweaveOpts{concordance=TRUE}  \hyperref[hello]{go to hello} \newpage  bla bla  \newpage  bla again  \newpage  hi  \label{hello}   \end{document}


How can I access EXT3 partitions on Windows 7?

Is there any way I can use  partitions on Windows 7?  I have tried to install , but it doesn't seems to run on Windows 7.


I am in high school (18 years old) and I'd like to buy a calculus book. I'm interested in Spivak's calculus book. I love mathematics so I am motivated, but I don't want to read something too advanced neither a simple and basic textbook.


Backup and restore Transparent Data Encrypted database

Doing my first backup and restore of someone else's sql server database. I have already done a successful backup and restore of one of the databases, but the other two are locked behind Transparent Data Encryption.   Is there a simple way of finding the certificates' files and just copy/pasting them to the new server's filepath and then restore? What's the proper direction for restoration from backup here?  If I do:  select * FROM [master].[sys].[certificates]   I get a bunch of rows that have ## before them. Are these significant? There's only one cert from that output that doesnt have ## and I'm not sure if that applied to a db that I'm not interested in...


Can I plug a generator into a dryer outlet

I have an electric dryer with a 30 amp circuit running to it. If I had a male-male plug to run from a portable generator to this outlet, would it be safe to run essential appliances (water pump, refridgerator, sump pump, etc) during a power outage as long as I tuned off the main breaker and the total draw was less than 30 amps?


PrintScreen doesn't work when I'm in a context menu

I usually take screenshots printscreen which calls into gnome-screenshots. Today I noticed that it doesn't work when the context menu is open. The simplest case is when I right click on desktop and press printscreen nothing happens. Is this some sort of bug? Any knows how  to fix this?


Untapping with a spell or ability remove summoning sickness?

Basically the title. If I summon a creature, use an ability to "untap" it before my combat step. May I attack with the creature?