Obtaining index from the Joptionpane
How to select an index value from a String Array in a JOptionPane
Where can I find web design projects? I am a recently graduated graphic designer. I would like to know if there are any worthwhile websites that I could present my portfolio and receive or look for job offers.  I have came across the following freelancewebsites by searching the web that seem to meet my criteria:       (the most famous website for people seeking for employers and employees)   I've also found two articles providing reviews on these types of sites:       I am new to the online freelance market. As a result, I don't have any clue which websites are mainstream for graphic designers and illustrators (which are my specialties). It's not immediately discernible to me which sites are the ones that are not a scam and are also good place for establishing myself.  I'm mainly looking for the resources that experienced designers are familiar with. I'm looking to narrow it down to the ones that have been used by those established in the industry. As a result I decided to consult the matter here and ask for input. Does the universe have an edge/boundary/barrier? If yes, what is at the edge? My question related kind of to asking what the shape of the universe is. Say a hypothetical alien civilization built an faster-than-light spaceship. If they keep flying would they end up where they began? ie space itself is curved...or would they hit some invisible barrier? Pluralization of names If I were to use the sentence "There are lots of John Smiths" in the world, would that be the correct use for saying that there are a lot of people named John Smith in the world?  I don't think there should be an apostrophe as that would imply ownership of something.  If my first example is correct, then what would you do if the name referenced already ended with an 's'? Was Yoda fully sane on Dagobah? Our (and Luke's) original impression of Yoda is by no means flattering. He looks like a crazy hungry green thing that unfortunately has the ability to speak. Yoda digs through Luke's stuff, eats Luke's food, and, obsessed with that awesome little flashlight, ends up stealing it. (He even goes so far as to fight with Artoo over it.)  So was Yoda slowly losing it during all those years as a hermit?  Perhaps going from fighting battles and conversing with others on a daily basis to living in total isolation with no one to speak with would play a part in that? Or could Yoda have been faking his apparent insanity for some reason? (If so, what is mentioned reason?) Can't execute a MySQL stored procedure from Java Retrieving Maxwell's equations from the minimum action principle I'm currently working at the start of Alexei Tsvelik's book Quantum Field Theory in Condensed Matter Physics. I'm kinda stumped on a few essential steps.  Starting with the action:  $$S = \int dt \int d^3 x \mathcal{L}_{\mathrm{EM}} = \int dt \int d^3 x \left( -\frac{1}{4} F_{\mu \nu} F^{\mu \nu} + j_\mu A^{\mu}\right).$$  In the absence of any sources $j_\mu = 0$ and $c=1$, which after pulling in the negative sign implies  $$S = \frac{1}{2}\int dt \int d^3 x  \,\,\left(E^2 - B^2\right)$$ The next step is to take $\vec{E} = -\vec{\nabla} \phi + \partial_t \vec{A}$ and $\vec{B} = \vec{\nabla} \times \vec{A}$. Letting $\phi = 0$ and directly inserting these into the above yields:  $$S = \frac{1}{2} \int dt \int d^3 x  \,\left( (\partial_t \vec{A})^2 - (\vec{\nabla} \times \vec{A})^2 \right) $$  Now considering $\vec{A} = \vec{A}_0 + \delta \vec{A}$ as some minimal change in our vector potential, with $\vec{A}_0$ gives a minimum for the action and putting this into the above expression we have: $$\delta S = \int dt \int d^3 x \left(\partial_0 \vec{A}_0 \partial_0 \delta \vec{A} + \left(\vec{\nabla} \times \vec{A}_0\right)\cdot\left(\vec{\nabla} \times \delta \vec{A} \right) \right)+ \mathcal{O}(A^2)\,\,\,\,\,\,\, (1)$$ where I have the term  $$\mathcal{O}(A^2) = \int dt \int d^3 x \left( (\partial_0 \vec{A}_0)^2 + (\partial_0 \delta \vec{A})^2 - (\vec{\nabla}\times\vec{A}_0)^2-(\vec{\nabla}\times \delta\vec{A})^2\right)$$  The next step is where I lose our author and go from "Oh ok I get this" to "completely clueless". He rewrites $\delta S$ as:  $$\delta S =  \int dt \int d^3 (\delta x) \vec{A} \mathcal{F(\vec{A}_0)}+ \mathcal{O}(A^2)$$  where $\mathcal{F} = \frac{\delta S}{\delta A}$. What is the purpose of $x\to \delta x$ in the above expression? Is the functional derivative $\mathcal{F}$ a vector quantity? He has it bolded with a bolded $\vec{A}$ in the above expression. One last question takes the above expression further. We assume $\delta \vec{A}$ vanishes at infinity, as it should, and integration by parts yields:  $$\delta S =  -\int dt \int d^3 x \left( \partial^2_0 \vec{A}_0 - (\vec{\nabla} \times \vec{\nabla})\times \vec{A}_0  \right)\delta \vec{A}\,\,\,\,\,\,\,\, (2)$$ How exactly did we go from (1) to (2)? Thanks I appreciate your time! Right identity and Right inverse implies a group queries with db_select don't respect integers When I check "SHOW PROCESSLIST" in phpMyAdmin I can see lots of queries where argument-integers are being inserted as strings (with single quotation marks).  I'm wondering if this is due to the way phpmyadmin reports the queries (if it puts every argument between quotation marks) of if it is db_select that puts every argument between quotation marks.  An example of my code where integers are being used as arguments:  $select-&gt;join('taxonomy_index', 't_'.$key, 't_'.$key.'.nid = n.nid AND t_'.$key.'.tid = :tid_' . $key, array(':tid_'.$key =&gt; (int)$tid)); $select-&gt;condition('t_'.$key.'.tid', (int)$tid);   As you can see I explicitly write (int)$tid but in my query log I can see the following:  ... WHERE (t_0.tid = '10') ...   The big question is: How can I be sure that integers are being treated as integers in my queries? I don't want MySQL having to transform strings to integers. Construction of uncountably many non-isomorphic linear (total) orderings of natural numbers I would like to find a way to construct uncountably many non-isomorphic linear (total) orderings of natural numbers (as stated in the title).  I've already constructed two non-isomorphic total orderings. They are $$ 1 &lt; 2 &lt; 3 &lt;\ldots\\ 1 &gt; 2 &gt; 3 &gt;\ldots $$ where "$&lt;$" and "$&gt;$" are  strict total ordering relations.  Thanks in advance for your help. My objective here is really simple -- I'm trying to set an NSString to some test data, then return the class, which should be NSString. Here's my code:  NSString* stringer = [NSString stringWithFormat: @"Test"]; NSLog(@"%@", [stringer class]);   The log says that the class is NSCFString, not NSString. What's going on here? Stealing and reattaching a running process It's sunday and I left an instance of R running in the office. The script finished running, and I would like to save my workspace without going to the office. I can ssh to the computer, but I have not run the program into screen.  Is there a way, over ssh, to disown the process (I don't have access to jobsid of the terminal the program is running on!) and reattach it with say, reptyr? Reptyr and reptyr -T don't work without previously disowning the process  28845 3diag       20   0  139.3m  10.4m   0.0  0.1   0:12.06 S  `- urxvtd                                                                                        5327 3diag       20   0   16.4m   4.6m   0.0  0.1   0:00.02 S      `- bash                                                                                      5335 3diag       20   0 3499.3m 3.244g   0.0 43.3 171:57.89 S          `- R    The unique part of my question is that I explicitly require to detach a program without having access to the terminal in which it was created. Order of some quotient ring of Gaussian integers Axis with trigonometric labels in PGFPlots How do I make the axis labels use multiples of \pi in PGFPlots? Joining elements of a list in GNU Make Formula for expected value of continuous random variable without using density How can I find unused functions in a PHP project How to monitor who is pinging me? Is there a way to know who is pinging my PC on my network? Is it possible to monitor all ICMP packets? How can I do that? Which one is the best option to get the identity value I just generated via an insert? What is the impact of these statements in terms of performance?   SCOPE_IDENTITY()  Aggregate function MAX() SELECT TOP 1 IdentityColumn FROM TableName ORDER BY IdentityColumn DESC Shouldn't it be "he was the most famous fighter to have ever lived"? How to load JAR files dynamically at Runtime?