When I try to find a specific byte with grep not using pipe I get some output:  $ grep -aboP "\\x55" bigfile 510:U 1049086:U 1049598:U   But when a pattern is supplied via pipe then there is a memory exhausted error:  $ echo "\\\\x55" | grep -aboPf - bigfile grep: memory exhausted   Why does it happen and how to make it work?
I was doing a very simple search:  grep -R Milledgeville ~/Documents   And after some time this error appeared:  grep: memory exhausted   How can I avoid this?  I have 10GB of RAM on my system and few applications running, so I am really surprised a simple grep runs out of memory. ~/Documents is about 100GB and contains all kinds of files.  grep -RI might not have this problem, but I want to search in binary files too.
Create line graph with ggplot2, using time periods as x-variable At what age does a toddler stop being a toddler? According to preliminary estimates, the project should be completed by 2020 at a cost of about RUB 40 bn.    or      According to preliminary estimates, the project should be completed by 2020 at the cost of about RUB 40 bn.    Are both options okay, or is the first better?   We are introducing the sum to the reader, so logically it should be the first option. But there's a lot of google-hits for "at the cost of" too. Projectile/orbital motion over very long distance We know the optimum angle for greatest horizontal displacement when launching an object with projectile motion is 45 degrees.  How to solve the angle when it is real long distance around the earth where we cannot assume that gravity is constant but is given by $F=\frac {-GMm}{r^2}$. I use differetial equation to solve it and obtain 45 degrees.   First, for the vertical distance $y$, change $v=u-gt$ to $y'=u-y''t$. Then solve it to obtain a function $y(t)$. When $y'(t)=0$ we have the time for maximum vertical distance. Then insert the value to horizontal equation.   Can anyone guide me through this problem because I am not confident with my working "Failed to create user" due to regular expression error I'm running Ubuntu 12.10 desktop 32 bit. Currently I have only a user, type administrator. I'd like to create another administrator user but I keep getting the following error:  Failed to create user GDBus.Error:org.freedesktop.Accounts.Error.Failed: running '/usr/sbin/adduser' failed: /usr/sbin/adduser returned an error (1): adduser: Please enter a username matching the regular expression configured via the NAME_REGEX[_SYSTEM] configuration variable.  Use the `--force-badname' option to relax this check or reconfigure NAME_REGEX.  Any suggestion is appreciated. Spoilers for The Last Jedi:      Just before Snoke is slain,   he narrates Kylo Ren's thoughts/feelings (saying things like "he turns the lightsaber towards his enemy" and so on) we see the Skywalker lightsaber being manipulated through the Force to point towards and then slay Snoke. My question is, do we know for sure who was using to Force to use the Skywalker lightsaber in this scene?   It could have been   A) Kylo Ren was turning igniting the Skywalker lightsaber with the Force. Snoke assumed the thoughts/feelings he was sensing were directed at Rey but they weren't.   Or... B) Snoke was so preoccupied with Kylo's thoughts that he wasn't paying any attention to Rey's thoughts. Rey takes advantage of this and uses the Force to turn and ignite the Skywalker lightsaber to slay Snoke. This option is reinforced by the fact that  1) the Skywalker lightsaber then zooms into Rey's hand, not Kylo's.  2) after the ensuing scuffle, Kylo Ren reveals that he hasn't switched sides; he is still a believer in the First Order.  3) Kylo Ren even tells Hux that Rey slew Snoke. Visas to travel the world I understand that you have to have visas to enter some countries, but I was wondering whether you have to pay for each visa separately or you can get a visa to go everywhere. You see videos and lists on what you should pack to travel the world, but no lists on the documentation needed. A friend has been kind enough to lend me a DSLR for a few months.  It's my first foray into DSLR photography, or indeed any kind of photography beyond simply aiming my Canon IXUS at something and clicking the button.    Over the last few weeks, I've been busy studying, practising and trying to learn as much as possible ahead of a planned trip to Norway where I hope to see, and get some photos of, the Aurora Borealis.  I currently have:   Canon Rebel Xsi (450D) Canon 50mm f/1.4 L  Canon 18-55m kit lens Aluminium full height tripod with ball head Cable release Spare battery &amp; memory cards   I'm prepared to spend the night wrapped up outdoors, in the hope that they will make an appearance. I'd like some advice on how to get the most out of this kit for the trip:   How should I go about setting up to get pics of the Aurora?  How might I achieve optimum focus? From what I've read, I'll need to use the tripod and cable release, with IS turned off, on continuous shooting mode with long exposure times. But I'd like some more specific tips in terms of which aperture and ISO settings might work best? Should I use one of the lenses above, or would it be worthwhile renting a better, wide angle lens; if so, which would you recommend? Let $x,y,z>0$ and $x+y+z=1$, then find the least value of ${{x}\over {2-x}}+{{y}\over {2-y}}+{{z}\over {2-z}}$ Let $x,y,z&gt;0$ and $x+y+z=1$, then find the least value of  $${{x}\over {2-x}}+{{y}\over {2-y}}+{{z}\over {2-z}}$$  I tried various ways of rearranging and using AM > GM inequality. But I couldn't get it. I am not good at inequalities. Please help me.  I wrote $x$ as $1-(y+z)$ and I took $x+y$ as $a$ and the others as $b$ and $c$. And I am trying. What conditions are necessary for a Wither Skeleton to spawn naturally, and can I manipulate those conditions to increase the chance of them spawning?  I want to make a Wither Skeleton spawning pad in the Nether but I'm having trouble finding Wither Skeletons. I've only heard that they spawn in Nether Fortresses. Hide text using css I have a tag in my html like this:  &lt;h1&gt;My Website Title Here&lt;/h1&gt;   Using css I want to replace the text with my actual logo. I've got the logo there no problem via resizing the tag and putting a background image in via css. However, I can't figure out how to get rid of the text. I've seen it done before basically by pushing the text off the screen. The problem is I can't remember where I saw it. He has  yet to receive an appointment.   He is yet to receive an appointment.      Is there any difference in meaning? Is one more correct than the other? Finding a conformal map from the intersection of two disks to the unit disk. During U-substitution, is the $du$ that we use as the infinitesimal in $\int f(u) \ du$ changing size? I am familiar and comfortable with the following definition of an integral (defined as the the Riemann Sum where n approaches infinity).    I have circled in red two terms to emphasize a concept that I was taught: the $\frac{b-a}{n}$ term effectively becomes the $dx$ term. This intuitively makes sense to me.   Additionally, I am familiar with the following statement (as expressed here: )    However, I have boxed in red something that I find rather confusing when trying to interpret it through the understanding that $\frac{b-a}{n}$ sorta kinda equals $dx$...  Specifically, the $du$ value appears to be changing throughout the interval $[ g(a), g(b)]$. To reframe this in the "Riemann Sum" version,we would have something like: $\text{ "value that varies depending on where you are"} * \frac{g(b)-g(a)}{n}$  This is very confusing to me...because, if this is the correct interpretation, I'm not quite certain I understand why this is allowed. Opposite of "straight talk" What is the opposite for the straight talk idiom? How do I best call the activity when someone makes a very long preamble before he says what he wants? Say I have two points. One at $A = (0, 0)$ and another at $B = (0, 10)$. I wish to derive an equation for a line that, for any point $P$ on the line, would equal a set ratio for the distance $P$ to $A$ and $P$ to $B$.  This is easy if the predetermined ratio for $A:B$ is $1:1$. I would create a line from $A$ to $B$, find its midpoint, then create an orthogonal line at the midpoint. Then at any $P$ on the line I know that the ratio distances from $P$ to $A$ and $B$ will be $1:1$.  But what if the ratio for $A:B$ is something like $11:18$?  This is for a positioning algorithm I am implementing - not for homework :)  EDIT: Note - If an exact formula is not possible, an approximation of the line out to $\pm 200$ from $A$ or $B$ is acceptable as values further from $A$ and $B$ will not be utilized anyway. A linear equation for the final result/approximation is ideal for speed in running multiple computations. More than one private key for RSA In an RSA-encryption scenario, Bob's public key pair $(n, e)$ is $(143, 43)$. An attacker Mallory tries brute-force and comes to $d = 7$ as the private key. The value of $φ(143) = 120$ is not known to Mallory. However from $43 \cdot d \equiv 1 \bmod 120)$, one can calculate the first positive element $d = 67$ from multiplicative group $d = 120 + 67n$ and $n \in \mathbb{Z}$ $d = 7$ clearly doesn't fit in that multiplicative group, so how come it can successfully decrypt the encryption? Divisibility by 7 rule, and Congruence Arithmetic Laws I have seen other criteria for divisibility by 7. Criterion described below present in the book Handbook of Mathematics for IN Bronshtein (p. 323) is interesting, but could not prove it. Let $n = (a_ka_{k-1}\ldots a_2a_1a_0)_{10} = \displaystyle{\sum_{j=0}^{k}}a_{k-j}10^{k-j}$. The expression $$ Q_{3}^{\prime}(n) = (a_2a_1a_0)_{10} - (a_5a_4a_3)_{10} + (a_8a_7a_6)_{10} -\ldots  $$ are called alternating sum of the digits of third order of $n$. For example,  $$ Q_{3}^{\prime}(123456789) = 789-456+123=456 $$ Proposition: $7 | n \ \Leftrightarrow \ 7 | Q_{3}^{\prime}(n)$.  proof. ??  Thanks for any help. How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE? How to set a different input method for each app window How can I have a different input method for each app window on windows 8. When I change input language to ENG all app window also uses this method and I don't want that. Like windows 7 that has a different input method for this purpose. thanks