3 days im working on regular expressions and something got stuck in my head here is the thing; i want my regex to accept like this one  0 123 456 78 90  0355 369 5878  01234567890  last one is easy to do, like   "(0[0-9]);   but i dont know the rest on java
I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?
Travelling to Italy without my spouse who is a UK citizen I am India citizen married to a UK national who has been issued a Schengen Visa from the Italian consulate as a spouse of a UK national. My husband was supposed to travel with me but now can’t. We have decided that I should still pursue the trip without him as I will be joining our friends there. Please can someone let me know if I will still be allowed to travel to the Schengen region with a valid Schengen Visa issued as a spouse of a EEA national but without my husband joining me there in person ? Run cmd.exe in Administrator mode without explorer.exe I've recently had trouble with explorer.exe not working.  I found a possible solution , using .  The problem is that I cannot "right-click Command Prompt, and then click Run as administrator", since explorer.exe does not work for even a second without crashing.  I tried to use the  to open cmd as administrator, but I get an error 1327 because I have a blank password.    My question is, is there any other way to run cmd.exe with admin privileges?  If not, is there any way to run sfc.exe without admin privileges?  If not, does anyone have solution to my original problem of explorer.exe stopping and restarting ad nauseam? 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? How to run two Thread Group in a loop - JMeter I'm facing problem here, There are 2 Thread Groups  and both are correlated ( run thread group consecutively is ticked in test plan ).  1st is user thread group and 2nd is Driver thread group. So thread group running concurrently but it is not happening in twice. I've put loop count for 2 they will run each independently after completion of first cycle. I want run this flow such a way that after completion of driver group request next do second iteration (start from user) thread group. So how to do this stuff ?  Loop will be :   User thread group Driver Thread group   After completing this once again start with :   User thread group Driver thread group   like this it should(loop) happen for multiple times Splitting .tif image into several tiles? I have an image of size 1GB (.tif), with the width and height 94000x71680. I would like to chunk this image into 20000X20000 tiles so that I can process them.   How can I do this? How would one go about proving that the rationals are not the countable intersection of open sets? I'm trying to prove that the rationals are not the countable intersection of open sets, but I still can't understand why   $$\bigcap_{n \in \mathbf{N}} \left\{\left(q - \frac 1n, q + \frac 1n\right) : q \in \mathbf{Q}\right\}$$   isn't a counter-example. Any ideas? Thanks! I have a typical scientific manuscript in a LaTeX .tex file, and I need to convert it to MS Word .doc file.  The reason for having to convert to MS Word is I'm submitting the manuscript to an academic journal and they only accept MS Word (I know...)  The manuscript includes title page, figures, tables, equations (inline and in their own align environment), footnotes, bibliography, and an annex.  The tables are in their own separate tables.tex file, which I include using the \include{tables} command.  Most tables take up a whole landscape page, and were generated sing the package pdflscape.  I am using Windows 7 Professional.    My plan is to use pandoc to go from .tex to .odt, open the latter in Libre Office, and convert to .doc.  I have read a related  but it is too general.  Similarly the examples in the Pandoc  are too simple.  I have played around but I am unable to accomplish what I want.  This is surprising since converting a scientific manuscript is probably the most common use case for Pandoc. Here are some sample failures:  Example 1  I open a command line in the project folder, and execute the following:  pandoc -s document.tex -o document.odt   I get this error message:  pandoc: figure1: openFile: does not exist &lt;no such file or directory&gt;   where figure1 is the name of a figure file (e.g. figure1.png) in the project folder referenced in a line as \includegraphics[width=5.8in]{figure1}.  I suspect pandoc expects a .png extension but not sure how to provide it.  Example 2  Next I try .html, and excute the following:  pandoc -s document.tex -o document.html   The program executes fine.  I open HTML file.  Footnotes are there but figures are missing, tables are displayed as LaTeX, bibliography is missing, in-line math displays well, but math in align environment does not, section labels are displayed, and some other minor issues.  So given that mine is probably a typical use case scenario, my question is this: What commands should I use to get the .odt file I want?  I could not find a fully worked out example on the web.    Here is a specific list of errors.  I'll update how I corrected them based on community suggestions:   Figures not rendering.  Solved by adding .png extension to .tex file in \includegraphics command.  Now figures are included but they are huge, with half of each figure outside the page. No bibliography.  Solved. First, I have one huge consolidated Latex .bib file where I keep all my citations.  I manage it using .  This was giving me problems as I do not keep the cleanest .bib file in town.  So I reduced the problem by using a neat trick in JabRef that allows you to subset your master .bib file using the .aux file generated by Latex when compiling your manuscript.  In JabRef click on Tools > New Subdatabase based on AUX file.  This way I generated a much smaller biblio.bib file with only the articles referenced in my manuscript.  Running pandoc -s document.tex -o document.odt --bibliography=biblio.bib did the trick. Display math. Math in \begin{align} environment displayed in verbatim \latex;  (A partial solution is to use the  Libre Office extension.  Copy and paste the latex math code in the .odt file created by Pandoc into the equation editor, and so on.  Surely this could be built into a macro that can post-process all remaining math.)  UPDATE: Display math works very well using --mathjax extension. Inline math. Inline equation do not always render properly.  Bold math is a problem.  E.g. $\Sigma=\sigma^2\bm{I}$ displays as $\Sigma=\sigma^2\bm{I}$; Labels are displayed (e.g. section labels show as [sec:empirical] blah blah]; All tables display as raw latex. Hook into the loop via a plugin, and output something after every X post? I have a plugin where I want to output ads after X number of posts on the home page. The home page is step 1, but things like archives should be possible too once I get the code for the home page.  How do I hook in to post loops and say something like "after every loop, increment a counter, and then if the counter = my number, output an ad". I can write all the logic for this code myself, but where to hook/implement my code is confusing. Propane gas fireplace pilot won't light I've asked this question before. Now I've posted some pictures as I can't figure out where I should clean. I don't smell propane. I tired lighting manually with a lighter and nothing. I know to turn the valve on,  rotate the wheel to pilot. Push in and try igniter. It worked fine 6 months ago.   Any suggestions? What is dependency injection? I'm planning to use USB port for an application(from a device to a PC) but the distance between the device and the PC will be around 15m. The recommended maximum USB cable length is 5m.  How can I buffer the data without loosing any information, safely? Would a USB hub work? How can I get a copy of a Canadian visa refusal letter? When we want to open an application or file from the terminal, we type, say,  okular file.dvi   This opens the application, but also shows the status of the application. We cannot close the terminal, because it kills the process. Unfortunately, if you're trying to, for example, create a LaTeX file, you will need one tab for the text editor, one for the dvi file, and so on. And if you're trying to open all windows from the terminal, you can forget it. I'm trying use the terminal as much as possible, and while I have Yakuake, it is still a bother having so many tabs and seeing which of those have an application I've killed and so on.  So, is there a way to open an application/file from the terminal so that the status doesn't show and immediately gives the prompt so that we can use it to open more applications? Change the location of .bashrc Is it possible to change the location of .bashrc from /home/orhanc/.bashrc to some other directory? When searching for the desired SE site, the down arrow key (down) should work in order to choose the site one is looking for and hit enter to visit it, instead of using the mouse point to choose it. Would be pretty convenient. $\sum \cos$ when angles are in arithmetic progression 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}} $$ Does new Star Wars continuity only affect post-Jedi EU? I have read  a couple of times.     In order to give maximum creative freedom to the filmmakers and also preserve an element of surprise and discovery for the audience, Star Wars Episodes VII-IX will not tell the same story told in the post-Return of the Jedi Expanded Universe.   Does this describe material set after Jedi, or published after?  Is it also saying that only things published as "Legends" are now non-continuity?  I have read that it is only films + Clone Wars + Rebels that are now in the main continuity but can't see this sourced by Lucas Film Story Group. Does anyone have a reference for this? Recently I began studying machine learning, however I failed to grasp the intuition behind .   The following are the facts about logistic regression that I understand.   As the basis for hypothesis we use . I do understand why it's a correct choice, however why it's the only choice I don't understand. Hypothesis represents the probability that the appropriate output is $1$, therefore the domain of our function should be $[0,1]$, this is the only property of sigmoid function I found useful and appropriate here, however many functions satisfy this property. In addition, sigmoid function has a derivative in this form $f(x)(1-f(x))$, but I don't see the utility of this special form in logistic regression.   Question: what so special about sigmoid function, and why we cannot use any other function with domain $[0,1]$? The cost function consists of two parameters ${\rm Cost}(h_{\theta}(x),y)=-\log(h_{\theta}(x))$ if $y=1, {\rm Cost}(h_{\theta}(x),y)=-\log(1-h_{\theta}(x))$ if $y=0$. In the same was as above, I do understand why it's correct, however why is it the only form? For example, why couldn't $|h_{\theta(x)}-y|$ be a good choice for the cost function?  Question: what is so special about the above form of cost function; why cannot we use another form?   I would appreciate if you could share your understanding of logistic regression. Why does my apple not weigh 500 tons? Related to this question:   $E=mc^2$ - energy equals mass. So, if an object has gravitational potential energy relative to another object, it should have additional mass to represent that extra energy.  So, if I have an apple in my hand, it should have quite a large amount of gravitational potential energy relative to a black hole at the edge of the observable universe. I did a quick calculation of how much this gravitational potential energy would be (using Newton's Law of Gravitation) and it came out to be the equivalent of around 500 tons (and that's just for one black hole!).  So, why does my apple not weigh a lot more than it appears to?  EDIT: Here's my calculation of the GPE:  Assumptions:   The apple has mass $m_a=0.3 kg$ The black hole has a mass equal to 1000 solar masses, $m_b=2\times10^{33} kg$ Distance between the apple and black hole is 60 billion light years   Obviously $GPE=mgh$ can't be used, because the gravitational acceleration is not constant and varies with distance, so it has to be integrated.  I used Newton's Law of Gravitation to provide the acceleration:  $$ F=\frac{G{m_1}{m_2}}{h^2} $$  A small change in height produces a small change in energy, which can be used to integrate:  $$ \begin{eqnarray*} \delta E&amp;=&amp;F \delta h\\ \int_0^EdE&amp;=&amp;G{m_a}{m_b}\int_1^R\frac{1}{h^2}dh \end{eqnarray*} $$  I'm integrating the force starting at 1m from the center of the black hole, as the force goes to infinity at $h=0$. It's a little crude, but it should provide a conservative estimate.  $$ \begin{eqnarray*} E&amp;=&amp;G{m_a}{m_b}(1-\frac{1}{R})\\ E&amp;\approx&amp; G{m_a}{m_b}\;\;\;\;\;\;(R&gt;&gt;1)\\ G&amp;=&amp;6.673\times 10^{-11}\;\;N(\frac{m}{kg})^2\\ G{m_a}{m_b}&amp;=&amp;4\times 10^{22}\;\;Nm\\ E&amp;=&amp;mc^2\\ \Delta m&amp;=&amp;\frac{4\times 10^{22}}{(3\times 10^8)^2}\\ &amp;\approx&amp;444,000\;\;kg \end{eqnarray*} $$  So, a little short of 500 tons, but still pretty big! My machine is continously making udp dns traffic request. what i need to know is the PID of the process generating this traffic.  The normal way in TCP connection is to use netstat/lsof and get the process associated at the pid.  Is UDP the connection is stateles, so, when i call netastat/lsof I can see it only if the UDP socket is opened and it's sending traffic.  I have tried with lsof -i UDP and with nestat -anpue, but I can't find wich process is doing that request because i need to call lsof/netstat exactly when the udp traffic is sended, if i call lsof/netstat before/after the udp datagram is sended is impossible to view the opened UDP socket.  Call netstat/lsof exactly when 3/4 udp packet is sended is IMPOSSIBLE.  How I can identify the infamous process? I have already inspected the traffic to try to identify the sended PID from the content of the packet, but is not possible to identify it from the contect of the traffic.  Anyone can help me ?  I'm root on this machine FEDORA 12 Linux noise.company.lan 2.6.32.16-141.fc12.x86_64 #1 SMP Wed Jul 7 04:49:59 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux