I live a couple of states away from a good offer on my car. I've already seen , but the distance makes our meeting at a bank to transact not practical.   Any thoughts on my offering a promissory note to deliver car, title, and keys in exchange for a cleared personal check ($10k) + money order ($50) to cover any potential bounced check?  I'd be fine with waiting for the check to clear and am just looking for a means to accept better offers outside the immediate area.

I plan on selling a used car via Craigslist, and I hope to get between $4-5K for it.  I don't want to take a check from a stranger, but I'm concerned that no one will be willing to show up at my house with $4,000 in cash.  What is the best way to handle this?  Money order?  Cashier's check?  Or do you think that potential buyers would be perfectly fine with cash (and I'm worrying for no reason)?  EDIT: If the best way is a cashier's check or money order, how do I know it's not fake?


I read, many years ago, a novel that I'd quite like to find again. I only recall fragments - the main one being that the protagonists were humans, possibly space travellers, who had somehow acquired divine powers, modeled over what I perceived as Hindu deities; the one name I remember was Agni. They were not divine all the time, but could take on the 'aspect' of their god.  This is all I remember with any certainty - there is one other bit that may be from the same story (but then again, possibly not): the Buddha is a person, who has been 'uploaded' into some sort of 'cloud' that represents Nirvana, and is downloaded at some point.

Setting: The remnants of Earth (they called it something that started with a "U") Opening: I recall the book opening with someone with a long name who preferred to only keep the middle part of his name: "Sam." Important Plot Points: There is a spaceship which includes the word "India" (I can't remember the name). The crew of this spaceship manages to transfer souls into automatons, Percy Jackson-Daedalus style. Doing this creates an immortal race which recreates the caste system and puts them at the very top. I also remember that there are instances of Hindu gods and goddesses present in this book (I think people that sacrilegiously take their names). Potential Authors: I don't think it's by one of the giants (Bradbury, Asimov, Orwell), but it's by someone less well-known. I feel like I would have remembered the author had it been one of those three. Approximate Publication Date: Probably early 1970s. Read Date: Probably around 2008.


Suppose $\pi :G \rightarrow SL_2(\mathbb{R})$ is a faithful representation of a finite group $G$, then I want to prove that $G$ must be cyclic.  I knew that every finite subgroup of $GL_2(\mathbb{R})$ is conjugate to a subgroup of the orthogonal group $O_2(\mathbb{R})$ and that $G \cong \pi (G) \leq SL_2(\mathbb{R})$ but I don't know how to proceed.

Suppose there is a faithful representation $\rho:G\to SL_2(\mathbb{R})$. Prove that $G$ is cyclic.   I know there has to be something special about its representation being special (no pun intended) because e.g. the Klein 4 group has a non-special representation. Also it has to be important that it's in two dimensions, because $SO(3)$ contains non-cyclic groups.  Apart from that, I haven't really made any progress. Any hints?


Is compact $U(1)$ and non-compact $U(1)$ just two different representations for the same group or the same gauge theory? If not, what the difference of them? Or are there any properties that are special for compact $U(1)$?   These probably are naive questions, but I don't know a reference explain me these. Any hits or reference are warmly welcome.

In John Preskill's  of monopoles he states on p. 471     Nowadays, we have another way of understanding why electric charge is quantized. Charge is quantized if the electromagnetic $U(l)_{\rm em}$ gauge group is compact. But $U(l)_{\rm em}$ is automatically compact in a unified gauge theory in which $U(l)_{\rm em}$ is embedded in a nonabelian semisimple   group. [Note that the standard Weinberg-Salam-Glashow (35) model is   not "unified" according to this criterion.]   The implication of the third sentence is that, in some circumstances, the $U(1)_{\rm em}$ gauge group may not be compact.  How could this be?  Since $U(1)$ as a differentiable manifold is diffeomorphic to $S^1$ isn't it automatically always compact?  The following paragraph:     In other words, in a unified gauge theory, the electric charge operator obeys nontrivial commutation relations with other operators in the theory. Just as the angular momentum algebra requires the eigenvalues of $J_z$ to be integer multiples of $\frac{\hbar}{2}$, the commutation relations satisfied by the electric charge operator require its   eigenvalues to be integer multiples of a fundamental unit. This   conclusion holds even if the symmetries generated by the charges that   fail to commute with electric charge are spontaneously broken.   is OK, but I don't follow what that has to do with the compactness of $U(1)$.


Are these examples interchangeable or it's better to use the second one if we say "he was living in Seattle", because there is emphasis of temporary action?  Tom worked in a hotel when he was living in Seattle. Tom was working in a hotel when he was living in Seattle.

Tom, who was working for my father in the 1990s, is now living in Ohio.   Is it correct or should it be in Past Simple? I think it is correct because it is an action which was in progress in the past and also we have the "1990s" expression which refers to a duration.


I like to use  instead of the default command line for Windows. Out of habbit i'm still writing "cmd" into Total Commander's command line sometimes to open a DOS console into the current directory. And it doesn't open Console2 of course and it makes me angry. :) I wonder if it's possible to redirect the "cmd" command to run Console2 instead of cmd.exe?  I've already tried adding Console2's folder to the PATH and creating a cmd.lnk file pointing to console2.exe but it's not working. I don't think it's a good idea to rename cmd.exe to something else and simply copy console2.exe as cmd.exe into SYSTEM32.

How can I replace the default program providing console windows under Windows XP?  I know of , and I have a shortcut to start cmd.exe in . But now I want console applications to start in Console2 rather than the default console program, even when I have no control over the program that starts the console application. (I.e. a non-console program starts consoleapp.exe, and I can't change it to start Console2 instead, but I still want the application to be started inside a new instance of Console2.)  (Note that I want to replace the console itself, that is, the window in which console (i.e. text mode) applications run. And I must be able to run arbitrary, unmodified console applications: a substitute for a specific console program such as Cmd won't do me any good.)  EDIT: So what I'm after is a , which           OT: I want to know when Microsoft is going to make a decent CSRSS replacement. Not being able to adjust the width of a "terminal" by resizing the window is a complete joke.         Go download the ISE already. (It's included in Win7/2008R2.)   But as far as I understand this ISE is an , not a general console emulator.


How to find sum of the following series  $$\frac{1}{6}+\frac{5}{6\cdot12}+\frac{5\cdot8}{6\cdot12\cdot18}+\frac{5\cdot8\cdot11}{6\cdot12\cdot18\cdot24}+\cdots={1\over 6} + \sum_{n=1}^\infty{\Pi_{i=1}^n{3i+2}\over (n+1)!6^{n+1}}$$  Please give me some hints. Thanks in advance.

A series is given as follows   $$\frac{1}{6} + \frac{5}{6\cdot 12} + \frac{5\cdot 8}{6\cdot 12\cdot 18} + \frac{5\cdot 8\cdot 11}{6\cdot 12\cdot 18\cdot 24}+\ldots$$  Can you give me hints to get started finding its value? Thanks.


I have a simply connected compact set in $\mathbb{R}^2$. I want to know if the boundary of this set is a connected set. I think the answer is yes, but I'm having trouble finding a reference.

I was thinking about Julia sets when I asked myself whether is it true that Is it true that a boundary of a simply connected and bounded set is connected  $\mathbb{C}$? Is it a well known fact? I found a proof here:  but it's not convincing since it relies on facts that are not even proved nor mentioned... Such that a path must cross the boundary in order to exit a set, the rather intuitive definition of "lying around" and the behavior of homotopy.


I'm trying to unbrick my Buffalo WZR-HP-G300NH that had OpenWRT on it (it bricked when I tried to go back to stock.) Windows fixes didn't work so I am trying an Ubuntu 17.10 Live USB, but I am running into problems and don't know much about Linux so I'm stuck  These are the instructions I am following:  sudo apt-get update sudo apt-get install tftp-hpa sudo /etc/init.d/networking stop sudo ifconfig eth0 192.168.11.2 sudo ifconfig eth0 netmask 255.255.255.0 sudo arp -s 192.168.11.1 00:1D:12:34:56:78 #change to the folder where you put the firmware image, if it's on desktop then it's #"/home/ubuntu/Desktop". cd /home/ubuntu/Desktop tftp 192.168.11.1 *from this point, you're under tftp command prompt, the "tftp>" is the prompt tftp gives you, you just need to type the command AFTER that. tftp> verbose tftp> binary tftp> trace tftp> rexmt 1 tftp> timeout 60 tftp> put wzrg300nh-firmware.tftp   and I'm getting stuck at sudo ifconfig eth0 192.168.11.2 because it says  eth0: error fetching interface information: Device not found   I tried the same step with eth1, eth2, etc but it can't find it. I do have internet connection so I know the Ethernet card works  edit: apparently this got flagged because it wasn't specific enough. I guess my question was how to find what my version of eth0 was and chilli555's answer was what worked for me, it turned out to be enp1s0 and I managed to unbrick my router as a result, so thanks!

I had opened a terminal to install macchanger via sudo apt-get install -y macchanger, and then entered my password. It stated that macchanger was already the newest version, so I typed clear and then ran:  sudo ifconfig eth0 down   which is when this error message appeared:  eth0 ERROR while getting interface flags: no such device   This is a laptop and I am connected via ethernet cable.  How can I resolve this, so that I can run macchanger?    So I used ifconfig -a and I'm looking but seeing no mention of  eth0  The interfaces that are showing top to bottom are:  enp58s0f1 lo tun0 UNSPEC wlp59s0   The only reference to ethernet is the MAC and also txqueuelen   Does this help in figuring what I need to do to get this sorted?


I need to create an automated install of an snmpv3 package. I have been able to install it manually, but how do i add it in a script, and automate the "Y" response when prompted in a script during the installation?

I'm writing a bash script to install php5.4 and I'd like to automate this for a test VM. The rpm command I have is:  rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm yum install php54w   Now, in the middle of this running, there is a user prompt to enter [Y/N] whether or not to download the dependencies. So I either need to:   Simulate the user input of [Y]; or pass in a command for yum not to ask and assume [Y]   What is the best method for a bash script and how do I accomplish both of the above?


How to read Unicode text file in PHP. i have used HTML tag <meta http-equiv="content-type" content="text/html; charset=utf-8">.  i have some content in 15.txt like.     جوڈیشنل کمیشن کا کاروائی کھلی عدالت میں جاری رکھنے کا فیصلہ ; پانچ مئی کو شہادتوں پر جرح کا آغاز کیا جائیگا   but this code print this type (ÿþEÌ1' F'E 9E1'F ÁÒ)  i want to print Urdu contents, plase tell me where i am wrong   $row = 1; $myFile = 15.txt; // Unicode Formate.  if (($handle = fopen($myFile, "r")) !== FALSE){     while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) {      $num = count($data);      $row++;     $row1 = $data[0];     $row2 = $data[1];         echo '<h1>'.$row1.'</h1>';     }       fclose($handle);   } else {     echo "Error deleting record: " . $conn->error; }   when i show

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


How do I install Half-Life 1 and 2 on Ubuntu 12.04 if I already have the game on a Windows installer CD and on Steam. I tried it with Steam, but the game didn't launch. I also tried it on wine with the Windows installer, but it didn't work either.

I am looking for a step by step instruction to guide me in the ways of installing, configuring and debugging many of the issues new users have when dealing with Wine in Ubuntu.  What is the recommended way of installing Wine, some of the key issues that it has and how to solve them?  If I have a specific problem with an App in Wine, how do I go about solving it? What are the recommended steps to ensure that I can fix a problem related to an app I wish to use?


I was updating my Ubuntu LTS and we had a power outage. Now, when I try to "sign in", I get a "failed to start session" message in bold red under my main and guest accounts. I'm not sure how to fix this.   I'm also unable to connect to the Internet. I have tried (Ethernet, WiFi, and Hotspot)  When I try signing in with the wrong password on the main log-in screen, it says "invalid password", but when I use the correct password it says failed to start the session when I try to sign in using Ctrl+Alt+F2 it says login incorrect.

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


Is there any way (command/option) to power-off the device using adb command?

How do I halt an android phone using adb command? I can reboot, but I don't know how to halt.  I tried shutdown -k wait command, but it did not work.


Recently I came across this summation: $$\sum_{k=0}^n\cos\Bigl(k\frac{2\pi}{n}\Bigr)$$ when I was trying to evaluate the following summation $$\sum_{k=0}^{n} z^k+z^{-k}$$ where $z \in \mathbb{C}, z=\operatorname{cis}(\frac{2\pi}{n})$ But I got stuck... Could anyone give me a tip ? Thanks in advance!

Possible Duplicate:          Prove $$\cos(\alpha) + \cos(\alpha + \beta) + \cos(\alpha + 2\beta) + \dots + \cos[\alpha + (n-1)\beta] = \frac{\cos(\alpha + \frac{n-1}{2}\beta) \cdot \sin\frac{n\beta}{2}}{\sin\frac{\beta}{2}} $$


I am trying to recreate a penne pasta. I am creating a cylinder removing the two end faces and then I solidify the mesh.  However I do not know how to extrude (or cut away) the two ends to make them pointy like in the picture of the penne below. I have tried to use bisect and mirror, but without successful results.  Any idea?

I have a cylinder here.    And I want to rotate its end vertices along Y to create something like a Bamboo with a slanted end like in this image:     But trying to rotate them, the cylinder's diameter gets shortened at the end and the face turns into an oval from a circle. I want the entire cylinder to be of same diameter until the very end face, which should be slanted and yet circular.    Can this be done by using rotation at all?


I am using MS SQL Server 2014, When I restart my Pc the SQL Server Service does not start automatically, however, it does after Windows Shutdown and run again, how can I make it restart automatically ? Without using batch file

Is there a "best" way to automatically restart SQL Server on a regular basis? I read that I could create a batch file to net start, net stop the agent and service in a batch file and schedule that, but I was curious if there was a better way of doing this.  Please nevermind how this is indicative of a larger problem of operation, I've been arguing this for a month and we've ended up here.  Thanks :).


In his answer to , our friend @egreg explains:     It happens that certain combination of letters have “bad” spacing.   I have noticed this too. As I understand it, LaTeX is supposed to make producing beautiful documents easy, by taking care of the formatting for you, so that you can focus on the content.  Now, obviously, "good" and "bad" kerning is quite subjective - witness @egreg's scare quotes. And yet, in the linked example, I'd say the case is pretty clear cut.  So, I'm wondering if anybody knows of any references which explain the rationale behind LaTeX's kerning decisions.  Are there any plans to modify LaTeX's kerning behaviour, or is this behaviour desired?  Also, is there any package which allows you to systematically alter the kerning across the document - so that you don't have to fiddle around yourself on a case by case basis?

Once in a while, you may want to (1) adjust or create a kerning pair (or, better yet, kerning class) in a font, or (2) adjust a particular glyph's sidebearings.  examples of scenario (1) would include a font that's lacking a certain kerning pair/class, such as when more ›exotic‹ variants of a glyph were overlooked by the designer: W + a is kerned, but W + á isn't. Or: adjusting punctuation spacing for a certain linguistic context, such as the famously loose puncutation spacing common in French. Scenario (2) would apply, for example, when a particular glyph is too close to (or two far away from) all its possible neighbors, whatever these may be. Such as the slash in an otherwise well-made  I recently licensed.  Obviously, you may edit the font file itself, but this may not be desirable for several reasons, and it may not be permitted by the font's EULA either. I'd like to arrive at a little survey that addresses questions like: * what »non-invasive« methods are available for these purposes? * what engines are they compatible with? * what are pros and cons?    The two options that I can think of I've already posted as answers. Feel free to edit, as there might be more to be said about them.


I am hoping for verification of this proof. My concern is if the contradiction really refutes that k does not divide n. PROOF Let $a\in G$ where $G$ is a group.  Let $k$ be the smallest positive integer such that $a^k=1$.  Let $n\in\mathbb{Z^+}$, such that $a^n=1$. This implies that $k\le n$.  If $k=n$ and $p=1$, then $n=kp$.  Thus $k$ divides $n$. Now consider $k<n$. If $k=1$, then $a^k=a^1=1$.  Choose $m=n$.  Then $n=m=1m=km$ and $k$ divides $n$. Now assume $k>1$ and assume $\forall q\in\mathbb{Z}$, $n\ne kq$. Since  $1<k<n$ we can exclude the cases on $q\le 0$ and we consider only $q>0$. Choose a $q$ such that $kq<n$ and $k(q+1)>n$.  This $q$ exists in view of the division algorithm, $n=kq+r$, where $r\in\mathbb{Z}$ and $0\le r < \vert k\vert = k$.  This implies that $kq=n-r<n$ and $n< kq+k = k(q+1)$. Subtracting $kq$ from both sides of the latter inequality gives $0<n-kq<k$. Thus, we have $a^n=1=1^q=(a^k)^q=a^{kq}$.  This implies that $a^{n-qk}=1$.  Since $n-kq<k$, this implies that k is not the smallest positive integer such that $a^k=1$, a contradiction. Hence, there exists a $q\in\mathbb{Z}$ such that $n=kq$.  Therefore $k$ divides $n$.

Let $a \in \mathbb {Z}$, $n > 1$ a natural number with $\gcd(a, n) = 1$, and let $r$ be the smallest positive integer such that $a^r \equiv 1 \bmod{n}$. Prove that $r \mid \phi(n)$.  Euler's generalization of Fermat's Little Theorem: If $n \in \mathbb {N}$ and $m \in \mathbb{Z}$ such that $\gcd(m, n) = 1$, then $m^{\phi(n)} \equiv 1\bmod(n)$.  By Euler's generalization I would have $a^{\phi(n)} \equiv 1\bmod{n}$.  Then I could say $a^r \equiv a^{\phi(n)} \equiv 1 \bmod{n}$. At this point I can see that $r$ clearly must be some multiple of $\phi(n)$.  If I want to show that $r \mid \phi(n)$, then I can show that $\phi(n) = rk$, for some $k \in \mathbb {Z}$.  However, I am a bit stuck about how to make this last step showing that  $\phi(n) = rk$, where $k \in \mathbb {Z}$.


Could anyone show me how to evaluate this limit?  $$ \lim_{n\to\infty}n\left(\left(1+\frac1n\right)^n-e\right) $$  Thanks!

I am stuck on how to calculate the following limit: $$\lim_{x\to\infty}x\left(\left(1 + \frac{1}{x}\right)^x - e\right).$$  Definitely, it has to be through l'Hôpital's rule. We know that $\lim_{x\to\infty} (1+(1/x))^x = e$. So, I wrote the above expression as $$\lim_{x\to\infty}\frac{\left(1 + \frac{1}{x}\right)^x - e}{1/x}.$$Both numerator and denominator tend to zero as x tends to infinity. I applied l'Hôpital's rule twice, but I got the limit equal to infinity which is clearly wrong. In the book, it says that the limit should be $-e/2$.  Any help please? Also, in case someone managed to solve it, please tell me which numerator and denominator did you apply your l'Hôpital's rule to in both cases? Thanks a lot  Also, guys can you tell me how to write equations in this forum? Thanks.


I have seen that there are a lot of threads about this problem.  I had Windows 8 installed on my series 3 samsung i5 computer and I tried to install ubuntu 13.04.  This is what I did:  Because of the secure boot I can't install ubuntu from the dvd. So I went in the bios and disabled secure boot and enabled ''CSM''. I went out of the bios and windows 8 couldn't boot more. So I follow a guide on  and on ubuntu I tried to repair the boot by inserting this code in the terminal:  sudo add-apt-repository ppa:yannubuntu/boot-repair  sudo apt-get update sudo apt-get install boot-repair   Then I ran boot-repair and I follow all the steps. Then I reboot the sistem and saw the black screen that says:  error: file '/boot/grub/i386-pc/normal mod' not found grub rescure>   Now I saw a lot of guides about this problem but I can't understand how to reistall ubuntu trough the live dvd that I used to install it the first time... I put it in the computer but nothing appears.. so what should I do now? I'm a noob on ubuntu and I have read all the things about this grub 2 install and know where the problem comes from but how to start the dvd??

error: file '/grub/i386-pc/normal.mod' not found. grub rescue>   What can I do? I just sit and stare at it.   I found my old netbook (Dell Inspiron 1010) which I have not used for about four years. I replaced Windows XP with Ubuntu 12.10. I used my bootable USB drive. I installed and rebooted. I got the message that normal.mod is not found.   What should I do? Type exit, reboot, or quit? Should I re-install?


In EDA we actually get insights about the data. That is completely fine but what i cannot understand is on which dataset should we do the EDA? Should we do the EDA on train dataset or train + valid dataset or on the complete dataset. I have seen many other questions similar to this and they have controversial answers.    More precisely can anyone given an better explanation why i should/shouldn't use the validation dataset in the EDA than the above questions?.

I know that EDA should be performed on the training set but not on the test set.   But my question is: we usually split the training set into training and validation datasets. Should we perform EDA on both of them?


Show that $\lim_{(x,y) \to (0,0)} f(x,y) = \frac{x^3(y^3 + \pi)}{x^2+y^2}$ is equal to zero.  My progress: I have two ideas related to this problem. Initially, I thought about using polar coordinates, but quite uncertain whether it is right approach for this problem or not. Alternatively, I am thinking about squeeze theorem: by AM-GM and triangle inequality, I managed to find a function larger than given $f$ with variables $x,y$ only. Does that imply limit of $f$ will be zero?

I have some trouble with this: Show that if $a, b \ge 0$, $c, d > 0$ and $\frac{a}{c} + \frac{b}{d} > 1$ then   $$\lim_{(x,y)\rightarrow (0,0)}\frac{\left|x\right|^a\left|y\right|^b}{\left|x\right|^c + \left|y\right|^d} = 0$$  we were not really shown how to evaluate multivariable limits other than trying different paths, which wouldn't work when the limit exists, or by applying the squeeze theorem which is my initial plan. Unfortunately I cannot find a proper bound for the denominator and so I am quite lost right now. Any help would be appreciated.


I need to write this equation  See that below argmin there is a w, I am not getting how to write like that. Any help will be appreciated. Thank you.

How can you get the argmin or argmax in Latex? Two solutions I found are:  \underset{x}{\operatorname{argmax}}   \DeclareMathOperator*{\argmin}{arg\,min}   Any other ideas?  [1]   [2]


It seems that planetary or galaxy-scale destruction is a common trope in science-fiction. I'm thinking of things like the halos in Halo or the Dakara weapon in Stargate, able to wipe out all lifeforms in the Galaxy in mere moments. Are there any prior works showing similar technology? I'm mainly interested in litteratures but also welcome works in other media. If so, what is the first notable work showing this concept, and what are the most influent ones?

Currently, I have two examples in my mind:   Halo (Halo video game series; 2001): Can destroy all sentient life within three galactic radii The Moment/ Eye of Discord/ Galaxy Eater (Doctor Who (2005) TV series; 2013): Can destroy entire galaxy within a moment   What sci-fi work first showed a weapon of galactic-scale mass destruction?


How do I take multiple photos of an open area that has moving people in it and eliminate them through a photo stacking process?  Thanks

I'm very excited about the new  for Android/iPhone. Let's say you're taking a picture of your friend in front of a landmark with several people walking by. The app allows you to remove the people from the photo, leaving only the background and your friend. The app isn't just doing a clone of the surrounding image to paint over unwanted subjects. It's actually taking multiple images, detecting which objects are moving, and letting you select them for removal. This sounds awesome! But I don't want to be limited to taking pictures with a smart phone.  I would like to take multiple photos of the same scene. (Maybe with a tripod, but it would be better if I didn't have to use a tripod.) Then I would somehow blend them together to remove unwanted elements. How do I do that? I know there are tons of photoshop tutorials out there, but all the ones I find just tell you how to use the clone tool.


i'm using the following regex regex=re.compile("""(?P<responce_time>\s\d+\.\d+\s)""", re.M) to get all response times in my nginx log file  line = 192.168.1.1 - - [08/Sep/2014:15:15:15 +0100]  "GET / HTTP/1.0" 200 612 "-" "-" 4.038 - .  The variable  line` is always rotating with new log entries   print(Regex.match(line).groups())  this returns  AttributeError: NoneType Object has no attribute group  Any ideas ?  The regular expression is vaild ,

What is the difference between the search() and match() functions in the ?  I've read the  (), but I never seem to remember it.  I keep having to look it up and re-learn it.  I'm hoping that someone will answer it clearly with examples so that (perhaps) it will stick in my head.  Or at least I'll have a better place to return with my question and it will take less time to re-learn it.


Which book can i  refer to gain a great deal of  aspects on Schwarzchild metric without any tensor calculus

What are some good books for learning general relativity?


Consider $u$ and $v$ are integers. The $\cdot$ is the usual multiplcation.  It seems that  $$((u \mod N) \cdot (v \mod N) )\overset{?}{=}(u \cdot v) \mod N,$$ is not always true. For example, on the LHS, $$((2 \mod 6) \cdot (3 \mod 6) )=6 $$ on the RHS $$(2 \cdot 3) \mod 6=0,$$ so they are no equal.     Can we prove that   $$((u \mod N) \cdot (v \mod N) ) \mod N=(u \cdot v) \mod N?$$

If we multiply 2 number and take the mod with prime this is equivalent to first taking mod with the prime of individual number and then multiplying the result and again taking mod.  $$ ab\bmod p = ((a\bmod p)(b\bmod p))\bmod p$$  does there exist any proof for this?  Does it work for composite moduli too? Then I can use the Chinese remainder Theorem to calculate the result does there any other way apart from Chinese remainder Theorem to solve the problem?


I have installed ubuntu on my computer, I have almost fixed all the problems it presented and now it works very well, although there are still things to be adjusted, but I would like to take an iso of my system to be able to install on other computers of the same trademarl and model  How can I create my own ISO on a DVD and include the hash?  Thank you

I would like to customize Ubuntu live CD by installing some additional packages. I have followed   but it doesn't seems to work. Can anyone provide clear instructions?   Note: I do not prefer Remastersys, manual way will be appreciated.  Customization  Packages that I want to install:   Thunderbird    Samba    SSH       Changes that I need:   Remove Games menu from the Application menu Firefox shortcut on Desktop Radiance as the default Theme Different default Ubuntu Wallpaper   Configuration file changes   I want the panel to be placed at the bottom I want to paste my Samba configuration file instead of default Samba configuration I have few Firefox shortcuts and folders I would like to show that in Desktop Also it will be nice if you say me how to change the icon sets   Recent Updates   I have customized Ubuntu 10.10 with Firefox shortcuts and few folders on desktops. Everything went smooth. But the installer gets crashes after choosing the timezone. How do i fix this issue? Also setting wallpaper affects the login screen. The wallpaper which i set is displayed on the login screen also. I just want the default one for the login screen.


I am working on a website that uses a previously developed image slider plugin. I had it all working in my local environment but once I took it live it kicked the following error anywhere the image slider is located...  Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/r/o/b/robertrhuspeak/html/desarch/wp content/plugins/portfolio/fields.php on line 48 and defined in /home/content/r/o/b/robertrhuspeak/html/desarch/wp-includes/wp-db.php on line 1246   The line of code it is referencing looks like this...  $fields = $wpdb->get_results($wpdb->prepare("SELECT meta_key, meta_value, meta_order IS NULL AS isnull FROM $wpdb->postmeta WHERE post_id=$postID ORDER BY isnull ASC, ABS(meta_order) ASC, meta_id"));   My understanding is that wp-db.php is expecting two arguments and the above code is not written with two arguments.  BUT, I frankly have no idea how it should be written. And I have dug hard on the Internet to find something that will explain it to me clearly.  Any guidance would be greatly appreciated.  Thanks!

I'm having to update a WP installation for a community organisations from version 2.9.1 to the current 3.9.1.   The installation has a couple of custom built plugins that aren't documented.  I've just performed the WP version update and now I see a warning (Missing argument 2 for wpdb::prepare()) on every page that relates to the following line in the code of one of these custom built plugin:  $rows = $wpdb->get_results($wpdb->prepare("SELECT id, name FROM ".$table_name));   From what I've read online, this is due to a change in the coding, that requires 2 values to be sent to wpdb::prepare(), but I've no idea how the line of code given above, needs to be changed.  If someone could help me out, I'd really appreciate it.


I have a rooted Galaxy S7.  I'd like to give permission to an app that does not request it to write to the external SD card storage.  How can I do this?

I would like to grant the  app write access to external storage in Marshmallow.  The app does not request it explicitly (unlike other apps that seem to use the Storage Access Framework to do so).    In the app permissions screen, there is no permission listed for external storage, only for 'storage' (which seems to mean internal storage).  So there does not seem to be any direct way to grant this permission.   My phone is rooted and I could just run Syncthing as root - but this option creates many problems and sometimes results in the app hanging indefinitely.    Is there any other way around this problem?


I would like to evaluate $\lim\limits_{n \to \infty} \Big(n^2 \Big[ \big(1+\frac{1}{n+1}\big)^{n+1}-\big(1+\frac{1}{n}\big)^{n}\Big]\Big)$.

A problem I saw recently is to compute $$\lim_{n\to\infty} n^2 \left(\left(1+\dfrac{1}{n+1}\right)^{n+1}-\left(1+\dfrac{1}{n}\right)^n\right)$$   I thought it would be fun to give this a go but it completely stumped me. I am not aware of any of the standard techniques used to compute $\infty\times (e-e)$ - type limits, bar possibly L'Hôpital's Rule. But I doubt that would be a good idea here, at best it would be ugly. I would appreciate solutions using any methods, the more elegant the better of course. Though I welcome any relevant hints as well if full solutions are discouraged.


Given $p$ is prime and $y$ is a constant. What's the fastest possible way to find $x$ where $x^2\equiv y\bmod p$? Example: $x^2\equiv97\bmod101$ would give us $x=81$ as one of the solutions. What's the fastest way to compute any one of the solutions of $x$? Constraints:  $0\le p\le10^9$ $0\le y\le p$ $0\le x<p$

I have the following equation: $$ n \equiv M^k\mod(b) $$ where n, a, b are integers, and M is unknown. How do I solve this equation to find the M value? Those a and b are public keys of the RSA algorithm and n is the result of encryption. I need to find the encrypted message.


Is there any reason why an interface reference would be included before a method name on an implementing class? For example, let's say you have a ReportService : IReportService and a GetReport(int reportId) method. I was reviewing some code and another developer implemented the method like this in ReportService:  Report IReportService.GetReport(int reportId) {   //implementation }   I've never seen a service implementation like this before. Does it serve any purpose?

What are the differences in implementing interfaces implicitly and explicitly in C#?  When should you use implicit and when should you use explicit?  Are there any pros and/or cons to one or the other?    Microsoft's official guidelines (from first edition ) states that using explicit implementations are not recommended, since it gives the code unexpected behaviour.  I think this guideline is very valid in a pre-IoC-time, when you don't pass things around as interfaces.  Could anyone touch on that aspect as well?


I was recently issued with a U.K. Standard visitor's visa. It's valid for 6 months and multi-entry. When I applied, my intended travel dates were in December. However with new family developments I am unable to travel in December. My purpose for traveling to the U.K. hasn't changed, nor has the duration, the only thing that has changed is the date. Would I have problems entering the U.K on a changed date that is still within my visa validity?

If I apply in December to travel in March, and I am granted the visa, what happens if something comes up (emergency, work etc.) and I have to postpone the trip?  Will I still be allowed to enter the UK, even if I arrive after my intended travel dates?


I am searching for this topic and I found a similar question asked  check here:    however I have specific questions where I don't know where to ask.  So I'll make an nba-quiz mini game and I need to know if there might cause some trouble using player profile images, names, team names and logos.  I found about a dozen suck mobile apps which use real names also some use photos as well.  In case I need a permission or check the customs, where to contact? where can I find such regulations?   Lets say I am allowed to use profile images, can I use the official images found on nba.com or yahoo or any sports website?  If not, where to get all player photos? sure can't capture them one by one :)   As for team logos, there are logo-quiz apps which mentions hundreds of logos of different international famous companies, I don't think the app owner contacted each company.  Any related information would help.  Thanks

I'm writing a sports management simulation game. Like most sport management games, it makes heavy use of statistics. I would like to use real players, teams and league names.  i) Am I running the risk of getting into legal battles if I should use the real names? ii) Also what about team colours and emblems etc?    Update Much thanks for all the input!


I found the electrical line with only with one receptacle for a garbage disposal. I am wondering can I add a new electrical connection for a gas range to this line?

I am remodeling my kitchen right now.   Can I use the existing 10ga line which already been built and used in my house for an electrical range to hook up 14ga or 12ga wire for my new gas range?


The logical opposite of having an irrational fear (or phobia) is not having that fear. But what is the opposite condition, the condition of having an irrational lack of fear for something that should frighten, such as, let's say, being burned? It's not philia since there's no particular affinity for it either, and it's not courage as stated in  since courage is something mustered for a particular situation.

If a phobia is to have an irrational fear of something, what is the word for having an irrational affinity for something?  For example a numerologist may fear the number 13, but be attracted to (or even have a love for) the number 8. (Some would say this is irrational.)


Got a weird one here.  I've got an IP address in my subnet that is alive and responds to ping requests, but I can't figure out what device actually live at that address. I've tried a couple of IP scanners that usually list hostnames and open ports / services, I've tried connecting to that address via http, https, telnet, SSH, but nothing responds and I don't have anything in DNS at that address.  We have no records or documentation of any device existing at this address and I'm at a bit of a loss because I need to expand my DHCP range, and this address is in the way.  Anyone know of a better way to interrogate that address to figure out what it is?  Thanks!  EDIT: I don't really see how this is a duplicate since that other question is from a completely different case [He has data from Advanced IP Scanner and I don't, he's using VMs, and I'm not] and that thread also has no answer. But it doesn't really matter because I found the offending device due to some great advice and good utilities in this thread. Thanks everyone!

I have a network containing 20 clients. I assigned IP range 10.0.0.1 to 10.0.0.20 to them. When I do an IP scanning I see someone using 10.0.0.131 in VMware. How can I find out which IP is this IP bridged with? i.e How can I find out which system has 2 IP? (i.e the other IP of this system)  Update:  My system IP in the network is 10.0.0.81:    Output of the IP scanner show someone using 10.0.0.131 in VMware:    And the result of tracert command show nothing between us:  C:\Users>tracert -j 10.0.0.131 10.0.0.81  Tracing route to ghasemi3.it.com [10.0.0.81] over a maximum of 30 hops:    1    <1 ms    <1 ms    <1 ms  ghasemi3.it.com [10.0.0.81]  Trace complete. C:\Users>


However i need hint on how to disprove that $f(c)$ cannot be less than zero.  Thanks

My final for my introductory analysis course is tomorrow and my teacher gave us a list of possible theorems to prove. If anyone could please show me a proof for The Intermediate Value Theorem that is short and easy to follow, so even if I still cannot understand it I can at least memorize it. Also, I have looked through numerous texts and the internet, but they all seem to confuse me. I know that itis an insult to all you math experts to memorize proofs, but I am desperate at this point. Thank you


I installed Ubuntu 14.04.1 from a DVD I burned. Ubuntu runs perfectly, but when I select Windows 7 from GRUB, the screen goes blank (with some coloured lines at the very top of the screen). From here, the only way to get back to GRUB to force shut-down the machine from the power button.  I have updated grub2.  I have also tried boot repair, but all it did was create two Windows options from GRUB menu:   Windows 7 (loader) (on /dev/sda1) Windows 7 (loader) (on /dev/sda2)   Both of them have the same result as earlier. Blank screen with some colourful pixels at the top of my monitor (top 2 or 3 pixels). Here's my boot repair .  P.S. This is not a duplicate of  as I am able to select Windows from the grub menu but it crashes afterwards.

I installed Ubuntu yesterday alongside Windows 7 and whenever I start my computer I don't have the option to boot Windows. When the computer starts it goes straight to Ubuntu without giving me an OS selection menu. When it goes to Ubuntu it gives me Ubuntu repair options and Ubuntu normal start option. I still have all of the Windows 7 files on my hard drive, but Windows 7 has no way to boot.


Help! I forgot to write down a very useful word, all I've got are a few possible definitions from memory, "fashionable thinking of the day" "trendy idea / way of thinking" The word is short, maybe 4 or 5 letters. The word looks and sounds like "ersatz", using the "tz" sound I believe. I've tried different anagram generators with no luck! Same for Google, which thinks I want to read articles? You're my only hope, what's the word?

Example sentence: Racism was a ____ in the Elizabethan Era.  I'm looking for a word/phrase that works with "breaking". I was considering "social norms" but it doesn't really mean what I want it to convey.   Even if it doesn't work with "breaking", I'd be happy to hear your suggestions anyway!


I'd like to repackage an install of Ubuntu into an ISO to install it on other systems as OEM with the packages I have installed?

I am new to linux, but had a question. I am getting in the business of buying old computers, putting Linux on them, then donating them to students who don't have their own computer at home. I have gone through and installed Xubuntu on my system, installed/uninstalled all the software that I want/need, and now want to know if there is a way that I could make an ISO of my system, and put it onto ANOTHER computer, and still have all of my tweaks, and programs ready to go after the ISO has installed. That way I don't need to go through and spend an hour or two on every computer.   What programs would you recommend for creating an ISO like this?   Thanks, Tobin


Today a brand new user to the SE community, asked a question about graph theory. This is the full text of their question  Let G be a bipartite graph with 2n vertices exactly one perfect matching. Show that |E(G)| ≤(n+1). 2 Show that this bound is best possible for all n ∈ N≥1.  Moments later, an established Math SE user responded with the following:  It appears that you are pasting your homework questions exactly, hoping to get someone here to provide you with the solution. If that is what you're doing, it is probably a violation of your school's academic integrity rules. If it's not what you are doing, you should explain in more detail what is actually going on and what kind of help you are looking for.  To recap: this was the new user's second post on the SE community, and because they clearly asked it without fully understanding the norms and cultural conventions of SE, they are being accused of violating academic integrity rules, downvoted into oblivion, and found their post summarily closed. In the ensuing discussion, the new user wrote:  I'm not an University student just want to have knowledge  In other words, they were self-studying, got stuck, and then tried asking for help on  a Q&A site. So, what does it mean exactly to "be nice" to new contributors? I ask this because I see brand new users on the Math SE site who fail to properly dot all their i's and cross their t's encounter accusations, downvotes into oblivion, and (what I read as) hostility pretty much any time I passively browse the site. I know that it's common for people to dump homework questions here with the expectation that others will do their work for them. But at the same time, it's probably more common that brand new users don't actually know the cultural norms of SE, don't know the ins and outs of the site, and find themselves genuinely confused to be met with accusations of academic integrity violations for asking a question in a Q&A community! It's no wonder that the vast majority of people I know don't consider Math SE to be a very inviting place to ask questions. Anyway, it would seem that "be nice" should imply "assume good faith". What am I missing here? With regard to the thread that some have suggested this is a duplicate of, I don't find them to be similar at all. This thread is specifically about new users, and in particular about assumptions of bad faith on the part of new users. The suggested thread does address some points about hostility to new users, but not really the point about bad faith. Further, it doesn't ask wheter assuming good faith should be part & parcel with "be nice".

In , the following graph is being shown:    The blog post states the following as explanation for what it defines as "unwelcoming":        Unwelcoming community (10.6% of responses): A perception of an unwelcoming community was the top thing that people found most frustrating or unappealing about Stack Overflow. We categorized responses that mentioned condescending or rude replies, and general comments about toxicity and lack of friendliness issues into this theme.      “The toxic nature of the community… Scares people from even signing up let alone asking questions”      “Some people are often condescending or rude”      Those two statements seem to be generalized to the point of meaning nothing at all. "The toxic nature of the community" implies that it's in the nature of the Stack Exchange community to be toxic, which is a statement I do not agree with from personal experience. It also does not explain exactly what "toxicity" is, only that it supposedly exists. Also the fact that people are supposedly scared to sign up or ask questions is in stark contrast to :     In 2019, Stack Overflow added over 2.8 million answers and 2.6 million new questions, with over 1.7 million new users joining the community. There are now over 18 million questions and 27 million answers on Stack Overflow, and over 150,000 people sign up for a Stack Overflow account each month, 12 years after we started.   I also wonder how exactly one would measure how many people are too scared to sign up for Stack Exchange, given that I doubt they would answer a survey about Stack Exchange.    The second example being used claims "Some people are often condescending or rude", which has no information that is in any way usable. "Some things sometimes happen" is just as informative.  Furthermore, it is also very subjective. The phrase     This answer does not answer the question at all.   could be interpreted as being neutral in tone (as it states a fact), or as being rude and condescending.    As such, my question is simply put: What exactly about the community is so toxic and unwelcoming?


I would like to log session with byobu. I wen through the configuration files but I could not see anything like log session etc.  I want byobu to log my session as soon as launch it with date. :)

I've had an interesting terminal session in , and I'd like to save the terminal output (commands and all) to a file - how can I do that?  According to the :     Ctrl-a ~ - Save the current window's scrollback buffer   This may indeed be doing something, but I've found no indication of where and under what name it might be saved.


I have encountered a strange question  that I immediately marked as "off-topic" as it really isn't about programming. The person asking, though, have informed me that it was supposed to be asked this way:     This is the way I was told to contact them, I have already tried their support.   IMHO she is making it up, but I could be gravely mistaken - so I am reaching out for answer here - is it a standard "procedure" to ask questions regarding support?

I recently saw a question about a problem (or possible bug) with some product on Stack Overflow. At first, I wanted to suggest that the asker post his question to that product's support forum.  When searching for the URL of that forum, I noticed that the product developer closed its support forums and now advises users to post all their questions on Stack Overflow instead.  Is this within the intended use cases of Stack Overflow, or is this abuse?


I know this will either use a left join or left outer join or something like that, but these types of queries always throw me off.  I have two tables:  categories  ID    CatName          CatSlug 1     Big Shirts       big-shirts   items  ID    ItemName         Category    Price    ... 1     Big Red Shirt    1           20.00   So I am trying to return all items in a given category, queried by the category slug. I also need to return the category name. So now, my two queries are like:  $return = array();  $query = "SELECT * FROM categories WHERE CatSlug = :CatSlug LIMIT 1";   $param = array(     'CatSlug' => $slug );  $result = $this->Db->selectOne($query, $param);  if ($result) { // If result exists      $return['Category'] = $result['CatName']; // Need to return cat name      $query = "SELECT * FROM items WHERE Category = :Category";       $param = array(         'Category' => $result['ID']     );      $result = $this->Db->selectAll($query, $param);      if ($result) { // If result exists          $return['Items'] = $result;      } else { // If result does not exist          $return['Items'] = array();      } // End if result does not exist  }  return $return;   So, I am returning an array with two keys: Category contains the CatName value in the categories table, and Items contains an array of all items inside that category, or a blank array if there are none.  How can I combine these two queries?

Also how do LEFT JOIN, RIGHT JOIN and FULL JOIN fit in?


I have always been confused about when to use past simple and when to use past perfect  These examples:     Aren't they the ones who had come over for lunch?      Aren't they the ones who came over for lunch   What is the difference between these two?  What is the difference between past perfect and past simple

I have never had this problem before. But after seeing some questions posted on ELU, I started to doubt. I have been through links1, pages of grammar books2, a lot of questions3 posted here and ELU. I now still can't seem to understand how the past perfect is exactly used. The references sometimes even contradict each other.  What I had understood so far was      The past perfect is not necessary if we are not 'going back' to the earlier past, and simply moving from one event to another.   but I then saw a lot of other 'rules' including      If the sequence is clear, the past perfect is not needed.   which is slightly different, less 'narrow' and can be applied in more situations than the first ruleA, and      The past perfect is optional only when talking about an action at a specific time.   This is confusing. Can anyone here clarify things out please?    A For example, for  Doing the survey [completed] -> Showing the result      We showed the result of the survey we did.      If the second rule is applied, the sentence above is fine (the sequence is clear), but not if the first rule since we are not moving from any event to the next and possibly even going back.    1  and   2 Practical English Usage (2005) by Michael Swan, Collins Cobuild Student's Grammar (1991). Upper-Intermediate Cutting Edge.  3 including , , ,  etc.


I use TeXmaker and I try to insert an image with the command \includegraphics. The problem is that when I compile it, i have a border around my image and I don't want that. I tried everything that I looked up on Google, but still nothing works for me. Can anyone here help me? The problem occurs with .png screenshots and .eps files that I use. Below you can see what I mean.    EDIT:  I compile my text with LuaLaTeX, if that matters.  \begin{figure} \centering \includegraphics[scale=0.5]{example-image} \caption{Μετατροπή από την κλίμακα mel στη συχνότητα} \label{fig:mel2freq} \end{figure}

I'm inserting an image with a simple:  \includegraphics[height=5cm]{filename.png}   This results in an image that maintains the aspect ratio, and so gives me something like 6cm width. I only really want the left side of the image though, and would like to crop it to 50% width. Is it possible to do this?  If possible, I'd like to do this in a portable way (i.e. something that other authors of this document won't have to install packages for, and something that works with a reasonably old version of pdflatex - our computers at work are in sore need of an upgrade).


I have these codes at the moment:  >  <?PHP >                                    >                                   if(isset($_POST['update'])) {  >                                   $ts=$_POST['ts']; >                                   $user=$_POST['user']; >                                    >                                   mysql_query("UPDATE users SET block_newfriends='$ts' WHERE username='$user'") or die(mysql_error()); >                                   echo '
'; >                                   echo '
'; >                                   echo 'text here
'; >                                   echo '
'; >                                   echo '
'; >                                   } >                                   ?>   and:  <?php                                             $query = "SELECT * FROM users WHERE id = '".$_SESSION['user']['id']."'";                                             $result = mysql_query($query);                                             $row = mysql_fetch_array($result);                                             $x1 = $row['block_newfriends'];                                             $ch1[$x1] = "checked";                                             echo "text here                                             ";                                             ?>   As you can see, it includes PHP. But i'm not sure if it's safe against any hacks like SQL injection or XSS. Do I need to put a mysql_real_escape_string and if yes, where exactly?

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I am having trouble passing a string in python (python variable) as input to a sequence alignment program (muscle) on the command line (bash). muscle can take stdin from the command line, e.g.;  ~# echo -e ">1\nATTTCTCT\n>2\nATTTCTCC" | muscle  MUSCLE v3.8.31 by Robert C. Edgar  http://www.drive5.com/muscle This software is donated to the public domain. Please cite: Edgar, R.C. Nucleic Acids Res 32(5), 1792-97.  - 2 seqs, max length 8, avg  length 8 00:00:00     22 MB(2%)  Iter   1  100.00%  K-mer dist pass 1 00:00:00     22 MB(2%)  Iter   1  100.00%  K-mer dist pass 2 00:00:00     23 MB(2%)  Iter   1  100.00%  Align node        00:00:00     23 MB(2%)  Iter   1  100.00%  Root alignment >1 ATTTCTCT >2 ATTTCTCC   It is this fasta alignment (the last 4 lines) that I am after - you can redirect the output of muscle (echo -e ">1\nATTTCTCT\n>2\nATTTCTCC" | muscle > out.file to get just the fasta alignment, which I need for downstream processing. BUt to get there, I have to pass 'muscle' the FASTA sequence string, which I think is best done via echo as above in bash.   So, the script takes two multiFASTA files and and pairs each FASTA sequence based on a list of ids for each file - this is working (though I realize it is perhaps not the most efficient way to go about it - I am new python user). Then I need to align each set in muscle before calculating distances/difference.   Here is what I have so far :   #! /env/python from pairwise_distances import K2Pdistance import pairwise_distances import subprocess from subprocess import call import os       fasta1=[''] for line in open('test1.fasta'):     if not line.startswith('>'):          fasta1.append(line.strip())  fasta2=[''] for line in open('test2.fasta'):     if not line.startswith('>'):          fasta2.append(line.strip())  for l1, l2 in zip(open('test1.list'), open ('test2.list')):  try:    a=fasta1[int(l1)]  except IndexError,e:      a="GGG"   try:    b=fasta2[int(l2)]  except (IndexError):    b="CCC"   temp_align=str(">1"+'\n'+a+'\n'+">2"+'\n'+b)    first=subprocess.check_output(['echo','-e',temp_align])  print first  subprocess.call(['bash','muscle'], stdin=first.stdout)  print second   #new=K2Pdistance(outfast1,outfast2)   #subprocess.Popen(['bash','muscle'], stdin=subprocess.check_output(['echo','-e',temp_align], stdout=subprocess.PIPE).std.out)`   The 'temp_align' variable is what I want to pass to muscle - it is the result of combining the appropriate fasta sequence from each multiFASTA file, for each loop over the ids/list, and is formatted like a FASTA file.   This issue is that I can echo the FASTA string, but I cant seem to "pipe" that via stdin to muscle... The main error I get is: AttributeError: 'str' object has no attribute 'stdout'.   ~#python Beta3.py  >1 ATCGACTACT >2 ATCGCGCTACT  Traceback (most recent call last):   File "Beta3.py", line 38, in <module>     subprocess.call(['bash','muscle'], stdin=first.stdout) AttributeError: 'str' object has no attribute 'stdout'   Can subprocess or other commandline modules take strings as stdin? IF not, I am not sure how I can echo and then pipe into muscle... Any other ideas would be much appreciated. I tried a few options from this thread   but no luck yet.  EDIT: Here are some example files:   ~# cat test1.fasta  >1 ATCGACTACT >2 ACTCAGTCA >3 TTCACAGGG ~# cat test2.fasta  >1 ATCGCGCTACT >2 GGCGTCAGTCA >3 TTCAACCCCAGGG ~# cat test1.list  1 2 3 ~# cat test2.list  1 3 2   EDIT 2: That previous post is related, but my question is about linking two bash commands starting with a python variable that is a string...and then, ideally, capturing the stdout of the second command back into a python variable... I dont quite see how to translate the answers on that post into a solution for my specific question...I guess I don;t fully understand what the poster was trying to do.

If I do the following:  import subprocess from cStringIO import StringIO subprocess.Popen(['grep','f'],stdout=subprocess.PIPE,stdin=StringIO('one\ntwo\nthree\nfour\nfive\nsix\n')).communicate()[0]   I get:  Traceback (most recent call last):   File "<stdin>", line 1, in ?   File "/build/toolchain/mac32/python-2.4.3/lib/python2.4/subprocess.py", line 533, in __init__     (p2cread, p2cwrite,   File "/build/toolchain/mac32/python-2.4.3/lib/python2.4/subprocess.py", line 830, in _get_handles     p2cread = stdin.fileno() AttributeError: 'cStringIO.StringI' object has no attribute 'fileno'   Apparently a cStringIO.StringIO object doesn't quack close enough to a file duck to suit subprocess.Popen.  How do I work around this?


I have been working on some open source tools on github and there are quite a few number of people using it at the moment.  The problem is that everytime they want to ask something or don't understand something, they end up creating an issue on github.  I wanted to create a tag on Stack Overflow for this purpose, but I don't have enough privileges at the moment to create a new tag. What should be the right procedure to use Stack Overflow for a new software product?  Update: Tag name : wintersmith  Website:   Question which needs wintersmith tag:


Finn witnesses the destruction of Hosnian Prime and 4 other planets while standing on Takodana.  If Takodana is not in the Hosnian system () how can they see the planets so distinctly?  Is this just a case of "Star Wars is fantasy, not science" or is there a different explanations?  Are the "Western Reaches" just really jam packed with close together systems?

On Takodana,      the main characters and various bar patrons can see the planet Hosnian Prime being destroyed by Starkiller Base with their (respective) naked eyes. How did they see this? Is the Hosnian system close enough to see? If it's not very close and they could just see the explosion, how did the light from it reach them so quickly?


I have been pulling my hair out with snap permissions issues. The apps that are specifically giving me the most trouble are Spotify (Premium Account) and bcompare (Beyond Compare). I'm runnning Ubuntu 18.04.1 LTS.  The problem is that snap can't seem to access directories that I need it to.  Spotify, I would like it to access the audio files on an external hard drive that is mounted on /media for all users. The problem it gives me a "Could nor read the contents of "FOLDER" Error opening directory "FOLDER":Permission Denied for folders outside of its snap folder or my home directory.  It also won't follow a symlink to the drive. I presume it must be operating as a different user since my user has access to all drives and directories.  bcompare (Beyond Compare) has the same issue. The whole purpose of bcompare is to compare one directory to another to see if you have missing or duplicate files, but now that it's a snap, the only way I can get it to compare directories on external drives is to change the fstabs of the drives to mount inside the bcompare snap folder, and reboot the computer.  This caused tremendous problems since it changes the directory location, which then messes up syncing to Dropbox and Google Drive-which then start deleting files in the cloud since the directory no longer exists and it takes about a month to resync when I revert the fstab back to the original.  Is there a way to give snap access to the external drives, or run snaps as my user, or add snap to my group, or some way to have snaps access directories outside of their snap folder?

I have Ubuntu 18.04 LTS installed. I inserted USB-flash to my laptop. It was automounted to /media/username/DISKLABEL and opened in Nautilus. I can read and write objects to it. How can I access it from the application, which is installed as Snap? I tried snaps of the following applications such as gedit, arduino-mhall119, organize-my-files. All them show me errors if I navigate to /media folder:    Could not read the contents of Media Error opening the directory of '/media': permission denied  Output of active Snap  is below: $ snap interfaces  | grep -v ".*-$" Slot                             Plug :browser-support                 organize-my-files :core-support                    core:core-support-plug :cups-control                    gedit :desktop                         gedit,organize-my-files :desktop-legacy                  gedit,organize-my-files :gsettings                       gedit,organize-my-files :home                            arduino-mhall119,gedit,organize-my-files :network                         arduino-mhall119,gedit,organize-my-files,pulsemixer :opengl                          organize-my-files :pulseaudio                      organize-my-files,pulsemixer :unity7                          arduino-mhall119,gedit,organize-my-files :wayland                         gedit :x11                             arduino-mhall119,organize-my-files,pulsemixer gnome-3-26-1604:gnome-3-26-1604  gedit gtk-common-themes:gtk3-themes    gedit gtk-common-themes:icon-themes    gedit gtk-common-themes:sound-themes   gedit -                                arduino-mhall119:serial-port -                                gedit:avahi-observe -                                gedit:mount-observe  Updates:  connecting mount-observe to Gedit with snap connect gedit:mount-observe does not help. it seems that we need special Snap with support of  interface.


I am writing my phd thesis in a monograph format.  The monograph consists of several chapters, some of which have been published with co-authors, however, the thesis as a whole is a stand alone piece with each chapter connecting to the previous one and is on the same topic.  If I indicate that "part of this chapter are published in ..." but write the thesis a coherent whole, can it be considered as a monograph?

I'm aware that some institutions offer something that is called 'Thesis by Publication' (sandwich thesis) but that's not available to me. I'm trying to work out what pitfalls there may be to simply copying from papers that I have previously published in order to form large sections of my thesis.  The papers that I've published were largely designed to solve major problems encountered within the larger frame of research, so altogether they should follow a single coherent line of thought.  Must one's own work be cited in a thesis? This would be standard when submitting a paper for publication, but there is a stipulation when publishing papers that that work has not been already published elsewhere, and the same sort of thing does not really crop up with a thesis, does it?  Are there any other potentially pitfalls in this course of action?


public static void quadraticEquation(double a, double b, double c) {         // Fill your code here         double sol2=0.00d;         double sol1=0.00d;         double d=(b*b) - (4*a*c);         if (d>=0){             sol1=(-b+Math.sqrt(d))/(2*a);             sol2=(-b-Math.sqrt(d))/(2*a);             return sol1,sol2;         }else{             System.out.println("There are no real values for solving the equation");         }      }// quadraticEquation  this is my code but where it says (return sol1,sol2;) it shows me this message: The primitive type double of sol1 does not have a field sol2 Also I think another thing that i got wrong is the  "," but i dont know how i'm supposed to separate those in java. I'm just starting with java so I could really use any help. Thank you :) Edit: I didnt mention that i cant create a new class for that because it is an assignment that doesnt let me do that

I want to return two objects from a Java method and was wondering what could be a good way of doing so?  The possible ways I can think of are: return a HashMap (since the two Objects are related) or return an ArrayList of Object objects.  To be more precise, the two objects I want to return are (a) List of objects and (b) comma separated names of the same.  I want to return these two Objects from one method because I dont want to iterate through the list of objects to get the comma separated names (which I can do in the same loop in this method).  Somehow, returning a HashMap does not look a very elegant way of doing so.


Consider the following MWE:  \documentclass[11pt,a4paper]{book} \usepackage[Conny]{fncychap}  %% I used Conny, but any style gives the same result \usepackage{lipsum} \begin{document} \chapter{Analytical form for ${}^3K_{rs}$ and its trace} \lipsum \end{document}   In the headers the subscripts are automatically changed to capital letters: how do I avoid it?

Is there a way to prevent \MakeUppercase from affecting in-text equations? In this example, abc should change to ABC, but n should be left as it is.   \documentclass{article} \begin{document} \MakeUppercase{abc $n$} \end{document}   The following works for individual characters, but I would like something more general.  \documentclass{article} \begin{document} \newcount\mycount \mycount\mathcode`n \MakeUppercase{abc $\mathchar\mycount$} \end{document}


I need to access a file on an NFS fileserver where root squash is turned on. I'm using bash on Arch Linux. I am using this type of command:  # sudo -u authduser ls /mounted/filesystem/path/aa.user.js   This succeeds and the output is:     /mounted/filesystem/path/aa.user.js   However, there are multiple files, such as bb.user.js. When I try the following command it fails:  # sudo -u authduser ls /mounted/filesystem/path/*.user.js   The output is:     ls: cannot access '/mounted/filesystem/path/*.user.js': No such file or directory   I have tried quoting, escaping and various other things without success. What is the correct way?

I think there must be simple answer to this, but I can't figure out why this isn't working!  I have a folder in my home directory (well, a few levels down) called installed-plugins. I want to transfer all the contents of that folder (about 15 .jar files) to a different folders, also called installed-plugins.  This is what I am trying:  $ sudo mv /home/jira-plugins/installed-plugins/* /var/atlassian/application-data/jira/plugins/installed-plugins/                                                                                mv: cannot stat `/home/jira-plugins/installed-plugins/*': No such file or directory   What is my error?  The folder is definitely not empty. Here is the ls output:  $ sudo ls /home/jira-plugins/installed-plugins analytics-client-3.15.jar                                  plugin.2223138796603023855.jira-importers-plugin-6.0.30.jar atlassian-chaperone-2.0.3.jar                              plugin.330169947367430109.jira-fisheye-plugin-6.2.8.jar atlassian-client-resource-1.0.jar                          plugin.4363048306537053933.jeditor-2.1.7.2.jar atlassian-pocketknife-api-commons-plugin-0.19.jar          plugin.4438307615842123002.jira-ical-feed-1.0.4.jar atlassian-pretty-urls-plugin-1.8.jar                       plugin.461510159947098121.jira-issue-collector-plugin-1.2.5.jar base-hipchat-integration-plugin-7.8.24.jar                 plugin.5630909028354276764.atlassian-universal-plugin-manager-plugin-2.7.8.jar base-hipchat-integration-plugin-api-7.8.24.jar             plugin.6920509095052318016.atlassian-bonfire-plugin-2.9.13.jar hipchat-core-plugin-0.8.3.jar                              plugin.6952408596192442765.atlassian-bonfire-plugin-2.8.2.jar hipchat-for-jira-plugin-1.2.11.jar                         plugin.7079751365359230322.jira-importers-bitbucket-plugin-1.0.8.jar jira-email-processor-plugin-1.0.29.jar                     plugin.7451827330686083284.atlassian-universal-plugin-manager-plugin-2.21.4.jar jira-fisheye-plugin-7.1.1.jar                              plugin.7498175247667964103.jira-importers-redmine-plugin-2.0.7.jar jira-ical-feed-1.1.jar                                     plugin.7803627457720701011.jira-importers-plugin-3.5.3.jar jira-issue-nav-components-6.2.23.jar                       plugin.7977988994984147602.jira-bamboo-plugin-5.1.6.jar jira-servicedesk-2.3.6.jar                                 plugin.8372419067824134899.jira-importers-plugin-5.0.2.jar jira-workinghours-plugin-1.5.5.jar                         plugin.9081077311844509190.jira-fisheye-plugin-5.0.13.jar plugin.1260160651631713368.stp-3.0.11.jar                  plugin.9128973321151732551.jira-fisheye-plugin-6.3.10.jar plugin.2076016305412409108.jira-fisheye-plugin-3.4.10.jar  plugin-license-storage-plugin-2.8.jar plugin.218965759549051904.jira-importers-plugin-6.1.5.jar  querydsl-4.0.7-provider-plugin-1.1.jar plugin.2211202876682184330.jira-ical-feed-1.0.12.jar       stp-3.5.10.jar


In R, usually one performs a generalized additive model like so:  library(mgcv) x <- gam(depvar ~ s(indvar1) + s(indvar2) + parametricvar)   Say I want to explore the non-parametric interaction of indvar1 and indvar2.  Is the following kosher? Are there issues of statistical validity with implementing such a model?  x <- gam(depvar ~ s(indvar,indvar2) + parametricvar)

In R, usually one performs a generalized additive model like so:  library(mgcv) x <- gam(depvar ~ s(indvar1) + s(indvar2) + parametricvar)   Say I want to explore the non-parametric interaction of indvar1 and indvar2.  Is the following kosher?  x <- gam(depvar ~ s(indvar,indvar2) + parametricvar)


I tried to translate rather complicated nouns from my native language into English, then I wrote the following sentence:  I referred to some online dictionaries regarding the translations. If anyone thinks any translation can be expressed more accurately, I am more than happy to be corrected.  Is using I am more than happy correct here or should I say: I will be more than happy? Both make sense to me in the sentence, this why I am a little confused as to which one I should use. I was also wondering if don't hesitate to correct me can be used here. As far I know, when we say don't we are usually addressing a specific person or people but I am not sure if I have encountered a case in which don't is used to address anyone. Thank you for any guidance on this.

If I am able to do something in the future should I use "I am able to do it in the future" or "I will be able to do it in the future"? Is there a difference?


There is a HashMap instance. The only thing I will do with the instance is to call values() method described in the Map interface HashMap implements. So I won't use any other possibilities interfaces provide. Should I than declare the variable type of HashMap according to YAGNI and KISS or should I code to the interface and declare the type as Map? Example of coding to the interface: Map<Integer, String> langMap = new HashMap<>();  Example of class variable: HashMap<Integer, String> langMap = new HashMap<>();

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


I have some code: template<typename Container = std::vector> // there is error class SomeClass {     struct SomeDataStructure {         int a;         float b;     };      Container<SomeDataStructure> container; // and there };  I want to pass template class type in template arguments of other template class. In this example, I want to pass std::vector to SomeClass and define Container(std::vector) of private structure SomeDataStructure. But I'm getting errors(MSVC compiler) C2059 and C2238. How can I solve it? Thanks in advance!

I've seen some examples of C++ using template template parameters (that is templates which take templates as parameters) to do policy-based class design. What other uses does this technique have?


I want to send my request to servlet program from my test classes( using TESTING tool). how to achieve this.

I would like to know what would be the best way to do unit testing of a servlet.   Testing internal methods is not a problem as long as they don't refer to the servlet context, but what about testing the doGet/doPost methods as well as the internal method that refer to the context or make use of session parameters?  Is there a way to do this simply using classical tools such as JUnit, or preferrably TestNG? Did I need to embed a tomcat server or something like that?


Of course we are familiar with the notion that if $n=p_{1}^{k_{1}}\cdots p_{r}^{k_{r}}$ ($p_{i}$ distinct primes; $k_{i}>0$), then $$\varphi\left(n\right)=n\left(1-1/p_{1}\right)\left(1-1/p_{2}\right)\cdots\left(1-1/p_{r}\right),$$ where $\varphi$ is the Euler totient function.  The goal is to prove this using the fact that $\varphi$ is multiplicative, that is, $$\varphi\left(mn\right)=\varphi\left(m\right)\varphi\left(n\right),$$ given that $m$ and $n$ are coprime.  Proving the former notion from the multiplicative property. But how do we prove the multiplicative property of $\varphi$ without using that notion?

That is,     why is $\varphi(AB)=\varphi(A)\varphi(B)$, if $A$ and $B$ are two coprime positive integers?   It's not just a technical trouble—I can't see why this should be, intuitively: I bellyfeel that its multiplicativity should be an approximation at most. And why the minimum value for $\varphi (n)$ should be $ \frac{4n}{15} $ completely passes me by.


I know the , but that definition is at face value useless.  I want to know how to adjust my beliefs given the evidence presented.  Does p-value relate to any of the terms in Bayesian inference?   $P(H|E) = \frac{P(E|H)P(H)}{P(E)}$  I had previously thought that p-value could corresponded to the P(E|H) term, but not sure if that's true.  EDIT:  H is hypothesis, E is evidence

I always believed that the p value was $P(H_0|Data)$ -- which to my rude shock I recently learned was not the case -- Note: I studied traditional frequentist probability.  How can one express the p-value in terms of Bayesian concepts -- assuming one can?


Sometimes, the unity panel just stops working, meaning I can't access any menus for the programs I'm running. I know I can probably log in/out but that really puts an uncomfortable hickup in my work flow.  How can I restart unity-panel when it stops working?

I'm being hit (quite often) by that bug where you can't click on some indicators. It's easy to fix by restarting unity, but that usually also means running to the risk of upsetting some window on re-parenting (rare, but I'd rather avoid any such problems).  So, I know there is `unity-panel-service', and I'm guessing this might have something to do with the solution?  Is it possible to restart the unity panel (or the entire unity plugin) without restarting compiz itself?


I have a lot of citations to published conference proceedings in my document but apacite formats the booktitle field in sentence case rather than title case (as is specified in the APA publication manual (6th Edition). Is there a way to correct this behaviour?  For example, it will print:  Jones, J. (2005). SuperSense: An interactive instrument. In A. Anderson (Ed.), Proceedings of the australasian computer music conference (pp. 123–127). Fitzroy, Australia: ACMA. doi: 10.1073/234784975234  Rather than:  Jones, J. (2005). SuperSense: An interactive instrument. In A. Anderson (Ed.), Proceedings of the Australasian Computer Music Conference (pp. 123–127). Fitzroy, Australia: ACMA. doi: 10.1073/234784975234  Here's an MWE:  \documentclass{article} \usepackage[natbibapa]{apacite} \bibliographystyle{apacite} \usepackage{filecontents}  \begin{filecontents}{mylib.bib} @inproceedings{Jones:2005uo,   Address = {Fitzroy, Australia},   Editor = {A. Anderson},   Author = {J. Jones},   Booktitle = {Proceedings of the Australasian Computer Music Conference},   Pages = {123--127},   Publisher = {ACMA},   Title = {{S}uper{S}ense: An Interactive Instrument},   Year = {2005},   Doi = {10.1073/234784975234} } \end{filecontents}  \begin{document} \citet{Jones:2005uo} demonstrated some very interesting musical interactions that stole the show. \bibliography{mylib} \end{document}   This question is not a duplicate as it relates specifically to using the apacite bibliography style and compliance with the APA publication manual. There are other questions that deal more generally with capitalisation in BibTeX, however, I think it's reasonable to have separate discussions related to specific bibstyles as they can have complex and different configurations.

Titles of articles I'm about to cite contain upper case letters and when using BibTeX it converts them to lower case ones. This happens only in the title and only the first letter conserves its case. For example, when I cite an article about HF, the reader won't know if it is about Hafnium (Hf) or fluorine acid (HF).  I know that I can fix it manually in the .bbl file but I would like to avoid it, or fix it automatically.


Let's say I want to create a document class. Is there a way to make LaTex choose between packages (or package options) depending on the OS I'm working on?  More precisely, I want LaTeX to switch automatically between \RequirePackage[utf8]{inputenc} on Linux derivatives and \RequirePackage[latin1]{inputenc} on Windows.

I got some LaTeX documents that I have to compile them under different TeX Live, such as MacTeX or TeX Live. But in different OS, the font seems different too, for example, while in Windows, I prefer to use Cambria, but in Mac, I like Lucida Grande more.  Is there was a macro to differentiate between OS?    Answer Update  As the accepted answer, We need to add more comments on this question, As I read the , we need more settings to use these macros:  % packages we need \usepackage{pdftexcmds} \usepackage{catchfile} \usepackage{ifluatex} \usepackage{ifplatform}   Then we use these macros like that  \ifwindows % add settings \fi \iflinux % add settings \fi \ifmacosx % add settings \fi % This needs to be \fi, not \if   now, it works well, the point is you need more packages not only ifplatform.  one more thing, compile your tex file with option -shell-escape is required:  xelatex -shell-escape file.tex


Let $P \in M (n \times n, \mathbb{R})$ be a primitive matrix. $1$ is a eigenvalue of $P$ and $(1,\dots,1)$ is the associated right eigenvector.   How can show that the spectral radius $\rho(P):=$max$\{|\lambda| : \lambda$ is a eigenvalue of $P\}$ of $P$ is 1?  Hint: Use Gelfand's formula.

The largest eigenvalue of a  (i.e. a matrix whose entries are positive and whose rows add up to $1$) is $1$.  Wikipedia marks this as a special case of the , but I wonder if there is a simpler (more direct) way to demonstrate this result.


Do business do interview on hangout, and then they want to send you money for software but needs all your online banking information? They sent me money through my cash app. They want me send it to there vendor for software. Is that a scam

I found a job posting on LinkedIn. The post stated that they were looking to hire a virtual assistant. As a University College Student, I of course, thought this would be the perfect job for me during this stage in my life. The employer stated that all that you needed to do was to send your resume to them in an email and they would establish the best person best fit for the position from there. I submitted my resume to the email address as instructed. Two days later I received an email with a job offer letter. Stating that all I needed to do was reply in kind with a letter of acceptance. I did that as well. The next email received stated that to perform my job successfully I would need to get a printer, a licensed booking software and that they were going to send me a check for $2,950 in order to get the printer, printer paper, licensed software and to pay my first weeks weekly pay of $400. All that was asked for is my Correctly spelled name and my home address to send the check to. Is this some type of scam or do I have a legit job here?


This is my first post here so tell me if I'm doing something wrong  My character When I move the central bone

I tried adding weight, removing weight and removing doubles. The mesh popping out won't go away. Any ideas?    Blend File:


This has happened to me a lot of times and it drives me crazy, after writing a very detailed question, taking snapshots of my app behavior, pasting code and such I click submit and I get the message "You have exceed the 3 question limit per day" or something similar.  I never have any idea how many questions I've asked or how near I am the daily (or monthly) limit so it drives me crazy to spend time writing the question and only after finishing being told I cannot ask it. Would it be possible to show a message on top of the question form so I don't type the question?

It's a shame to type out an entire question, press post and then:     Sorry, you are only allowed to ask 50 questions in a 30 day period   Could you put some sort of notice on the page itself before submitting it to let you know the question won't be going through?  Or perhaps tell me how many questions I've asked in the last 30 days if it's >0?  Edit  This is not a complaint or statement about the limit, just a request that the error handling be done in a slightly better way to save people a lot of time.


I am trying to break from a while and for loop as below whenever retry and last_submitted_tag_retryare equal but it doesn't, how do I break from this loop?  import re retry = 0 last_submitted_tag_retry = 0  train = 'train1'  output = '''Thu Jan 24 18:08:18 2019 firstname lastname <first_last@company.com> submitted project-394 to train1 Thu Jan 24 18:08:18 2019 firstname lastname <first_last@company.com> forwarded project-394 to train2, train2SideFive, train4, train3, train3SideFive, train1SideFive, bridgeOSJazz, and bridgeOSJazzSideTwo Thu Jan 24 19:18:47 2019 firstname lastname <first_last@company.com> submitted project-395 to train1 Thu Jan 24 19:18:47 2019 firstname lastname <first_last@company.com> forwarded project-395 to train2, train2SideFive, train4, train3, train3SideFive, train1SideFive, bridgeOSJazz, and bridgeOSJazzSideTwo Fri Jan 25 14:52:00 2019 username System <username@company.com> submitted project-397 to train1 Fri Jan 25 14:52:00 2019 username System <username@company.com> forwarded project-397 to train2, train2SideFive, train4, train3, train3SideFive, train1SideFive, bridgeOSJazz, and bridgeOSJazzSideTwo Wed Jan 30 14:40:43 2019 username System <username@company.com> submitted project-398 to train1 Wed Jan 30 14:40:43 2019 username System <username@company.com> forwarded project-398 to train2, train2SideFive, train4, train3, train3SideFive, train1SideFive, bridgeOSJazz, and bridgeOSJazzSideTwo Sat Feb  2 17:28:10 2019 username System <username@company.com> submitted project-401 to train1 Sat Feb  2 17:28:10 2019 username System <username@company.com> forwarded project-401 to train2, train2SideFive, train4, train3, train3SideFive, train1SideFive, bridgeOSJazz, and bridgeOSJazzSideTwo Sat Feb  2 17:31:11 2019 username System <username@company.com> submitted project-401 to train1 Sat Feb  2 17:31:11 2019 username System <username@company.com> forwarded project-401 to train2, train2SideFive, train4, train3, train3SideFive, train1SideFive, bridgeOSJazz, and bridgeOSJazzSideTwo''' last_submitted_tag_retry = 0 retry = 0 while True:     print 'retry %s last_submitted_tag_retry %s'%(retry,last_submitted_tag_retry)     for line in reversed(output.splitlines()) :         line = line.strip()         #logger.info('line2')         print 'submissionInfo line%s'%line         #match = re.fullmatch(r"(?ms).*(?:submitted|forwarded)\s+(.*?)\s+to.*release2(?!.*project.*release2).*",output)         match = re.match(r'.*(submitted|forwarded)(.*) to .*\b%s\b.*'%train,line)         print'retry %s last_submitted_tag_retry %s'%(retry,last_submitted_tag_retry)          if retry != last_submitted_tag_retry:             print 'not equal'             retry +=1         elif retry == last_submitted_tag_retry:             print 'matches,breaking...'             break

Given the following code (that doesn't work):  while True:     #snip: print out current state     while True:         ok = get_input("Is this ok? (y/n)")         if ok.lower() == "y": break 2 #this doesn't work :(         if ok.lower() == "n": break     #do more processing with menus and stuff   Is there a way to make this work? Or do I have do one check to break out of the input loop, then another, more limited, check in the outside loop to break out all together if the user is satisfied?


I have a Google spreadsheet. There is a colour column. Every row has a colour, Red, Yellow, Green etc. I want to be able to filter out say all rows that are Red, all rows that are yellow, all rows that any colour except Green, Green rows only etc.  Any tips on how to do this? I want to do this so the user viewing the spreadsheet can do it dynamically.

I'm familiar with vertical filters, but wondered if it can be done so I would only show the the columns that matched my query.  Is it possible to filter horizontally in Google Spreadsheets?


First of all, I should say that I understand if this is put on hold for being unclear... but I'll try my best to make it as clear as it can get.  For all the time I spent learning Newtonian Gravity (school etc), I've associated it with the fact that the gravitational field "dissipates" with the area it covers based on the distance it is from a given point. This seemed reasonable to me, if we think of gravity as a field generated by a particle. And this seems consonant with the fact that it depends on the inverse of the square of distance:  $$\displaystyle |F|=G \frac{Mm}{||\textbf{x}-\textbf{x}_0||^2}. $$  I don't know if this is a standard interpretation, my first question is therefore:    Is it?   Okay, going on with the reasoning:  We then have that:  $$\displaystyle F=-G \frac{Mm}{||\textbf{x}-\textbf{x}_0||^3}(\textbf{x}-\textbf{x}_0)$$  By following my reasoning, imagining if we were in a two dimensional space (euclidean space, as in Newton's POV), we would get:  $$\displaystyle F=-G \frac{Mm}{||\textbf{x}-\textbf{x}_0||^2}(\textbf{x}-\textbf{x}_0)$$  and, in one spatial dimension:  $$\displaystyle F=-G \frac{Mm}{||\textbf{x}-\textbf{x}_0||}(\textbf{x}-\textbf{x}_0)$$  Therefore, the force of gravity would be "constant". My second question, then, is:    Does this make physical sense?   Now, I don't know Einstein's General Relativity Theory, but I know differential geometry, and I know that gravity is associated to the curvature tensor. So, if we understand gravity this way, then we can simply give a $1$-manifold some metric, and gravity will be the result of this metric. But I don't know if the metric must be given by something specific, or if it can be arbitrary. If it is arbitrary, this creates much more freedom to gravity: It wouldn't be so restricted as to necessarily imply that the "field" should be constant.   Therefore, my last questions are:   What would be gravity according to Einstein's General Relativity Theory in a $1$-manifold? Would it be VERY different from the Newtonian's perception? If not, is there any support for any (or none) of those interpretations to be physically valid?

I don't have any idea of general relativity but intend to learn. Is it a good idea to study general relativity in two dimensions (time and single spatial dimension) in the begining to get good idea on the subject? If it is, then please give some references for such a treatment.


I'm looking for specific versions of Google Chrome but I cannot find them. I don't want a random site that offers me to download these. It must be safe, preferably of Google itself.  I could find one for Firefox:   I imagine there must be something like that offered by Google for Google Chrome?

I have a specific requirement (probably silly!) for testing a browser of Chrome. I realize this requirement isn't the most logical, but politics being what they may I'd like to know the technical workaround.  I need to test a site in version, let's say, 28 of Google Chrome. Obviously Google runs a silent updater which can be disabled, but at this point they don't (to my knowledge) release old archives of the MSI installers (which I can easily use to reinstall and force a no-update option for testing). If we can get this working on a single instance then there's a possibility that a virtual machine or some other workaround will give us an easy restore point to meet this test.  If anyone has a good idea of where to start here that would be amazing.  I've already floated the "why are we doing this question?" and the answer is that it is part of the requirements so we need to make a best effort.  UPDATE:   FileHippo appears to only archive the online installer (automatic update)  OldApps doesn't archive Chrome anymore  OldVersion doesn't appear to have any Chrome Archives   UPDATE 2:  - The accepted answer's server is the correct solution here at this point in time. Basically speaking you're looking for the full install (30 or so MB). If you have an 800K file it is the online installer which automatically updates.


While installing the most recent version of the kernel, I ran out of disk space. How do I go back and delete all of the old versions of the kernel that are occupying my disk

Every time I install a new Linux kernel, it gets left in the grub_config, making the boot menu longer each time.    I know I can manually search through the installed packages and remove them.  Does Ubuntu provide any easier way to clean them up or keep them from showing in the boot list?


I am a student and I have been assigned to read a research papaer in the robotics field, understand it, elaborate it and write an essay about it. I have never done something similar, so I am a little bit lost.   How should I read a research paper in order to do this? Is there a particular way of reading a paper or I just start from the top and follow the order of the pages? And is there an effective way to elaborate it?  Thanks in advance.

I am a physics Master's student.  I have good grades, with CGPA above 9(/10)(However, all courses in my university are graded on a curve so the actual marks are significantly lower than 90%). This has been my marks throughout my undergraduate and graduate courses and I was happy because this was above average. Also, my summer projects in UG were usually computational and any difficulty I had in theoretical aspects I attributed it to my inexperience in advanced Physics.   However, recently I have started to work on pure theoretical project and while reading for the project I realized that I consistently miss some details from each topic. I understand the general idea, can re-derive most of the equations(with some effort) however when I discuss things with my professor or when I read further topics I realize that I have missed certain key-details. This is exactly similar to the case of me missing a few key questions in my exams and getting that 9 grade point instead of 10(or at-least I think so). I was not worried about this before but now I realize that there is some flaw in the way I study (but I do not know what).   Since I want to apply for Physics PhD I realized that I will need to have solid concepts and it would be best to correct my mistakes but I do not know how or even what could be the reason for my imperfect understanding.  Any direct suggestion would help or even certain general guidelines on what I can do.    Things I've tried recently -   1) I've started to written down almost everything I read. This is slightly laborious but is certainly helping. It also helps me to gloss over the things I read previously when I come back the next day.  2) I completely avoid smartphone when I'm library/study room so that I won't get distracted. Not sure if it helps me solve the above problem but certainly helps me study better in general.  3) I've tried to read the topics from several sources. The books I am reading is somewhat like a collection of research papers and hence does not have a exercises. So I though reading from various sources might help get better ideas but it's not really helping because most other sources are too high level as an introductory text. But this will probably help me in cases where it's practical to do this.  4) Somewhat similar to point (1)- I am trying reread, whenever I can, what I've done until that point. But not sure how much this will help me in filling the gaps.


I need to update incremental code in a custom field on accounts. So that, If user changes the Type from Prospect to customer then no. should be incremented by 1.  For example:   For account1, it will be C1 For account2, it will be C2 For account3, it will be C3   Whenever user changes the type from Prospect to Customer, It will pick the last no. of previous record and then it will increment. Code will be unique for each account as we need to use the same code for integration purpose.

We are creating custom IDs for Accounts by incrementing an integer field in a custom class. The issue is that if two or more new Accounts are created in close sequence/simultaneously the following code will assign duplicated numbers rather than an incremented number for each:  public static void SetCustomId(Account account) {            CustomObj__c customObj = CustomObj__c.getOrgDefaults();      account.CustomAccountId__c = String.valueOf(Integer.valueOf(customObj.CustomCounter__c));     customObj.CustomCounter__c = customObj.CustomCounter__c + 1;      update customObj; }   Is there a way in Apex to lock a process so that a shared resource is used sequentially? In Java, C#, C++ etc. this is pretty easily done via a critical section if it's a single process or a Mutex if multiple processes access the same resource. Is there anything like this supported in Salesforce? Solutions beside Apex code/triggers would be fine as long as they meet the spec.   EDIT:  It is important that the object creates be sequential and not generate errors due to lockouts.


I want to close a program through the command line (say Firefox or Thunderbird). The program is working just fine and in theory I could just go FILE > CLOSE. However, I want to do this through the command line so that is not an option. I could kill the process (e.g. pkill firefox), but from the sound of it, that is quite a brutal way to close a program. In fact, I am used to using this as a last resort, especially when a program hangs. In all honesty, I don't know if this is a proper way of quitting a program. Is it? Or are there better ways of closing a program?

I am always very hesitant to run kill -9, but I see other admins do it almost routinely.  I figure there is probably a sensible middle ground, so:   When and why should kill -9 be used? When and why not? What should be tried before doing it? What kind of debugging a "hung" process could cause further problems?


I have several systems. Some are 16.04 mini-servers and I cannot update the OS yet. The others have been updated to Ubuntu 18.04. (The 18.04 version I used has Python 3.6.5 on it).

I've tried the normal way, sudo apt-get install python3.6, but... well... that didn't work.   So, how would I go about it? (I'd preferably not build it on my own)  I'm using Ubuntu 16.04.


Is this sentence grammatically correct? "If I were a flower I would bloom" Or should it be "if I was"?

If I was... If I were...   When is it correct to use "If I was" vs. "If I were" in standard English?