Related to , last week my portable installation of MikTex starting throwing errors. When I try to update packages, I receive the following error message...     The operation could not be completed for the following reason: The MiKTeX package management utility could not be found.   Also, when I try to run the miktex-portable.bat file, I receive the "Windows API error 2" error.  My portable distribution hasn't had these troubles the last three years. I have tried on three different computers. I even returned my laptop to Windows 8 to no avail. I just downloaded a new portable copy of MiKTeX and still the errors occur.  Might anyone have any suggestions?  Update: I don't have all the answers as to the source of the errors, but  provided the right idea.  Download a fresh copy of portable MiKTeX. Navigate to the \miktex\bin folder and run the MiKTeX Package Manager (admin) program mpm_mfc_admin.exe. Synchronize the repository. Next run the Update MiKTeX (admin) program miktex-update_admin.exe twice.  With this method everything seems to behave.  I appreciate all the comments.   Update 2: My question is not a duplicate. I had tried the suggestion on the linked question, going as far as installing the C++ redistributable, but it didn't work. My update works.

I recently installed MiKTeX 2.9 on Windows 7 (64-bit; single-user installation), but shortly after I installed it, the Package Manager stopped opening.  When I try to open it, I get the following error message:  The program can't start because MSVCP120.dll is missing from your computer.  Try reinstalling the program to fix this problem.  (When I try to open "Settings", I get the same message.  The updater opens correctly.)  When I look at the MiKTeX binaries folder, I find msvcp100.dll and msvcr100.dll, but not msvcp120.dll.  Where can I find the correct version of this file?


I have heard sometimes people say:     We have lived in Canada for 5 years.   It tells me they are still living in Canada.     We have been living in Canada for 5 years.   But I have rarely heard people say the above in present perfect continuous.  Does it mean the same thing?

Is it correct to say:     1) I've lived in London for five years.   Or      2) I've been living in London for five years.   I think second one is correct because we use present perfect continuous for actions started in past and is continuing in present.


If I have a program named foo, why do I need to say ./foo and not simply foo? Doesn't ./ just mean within the current directory?

Why do we use ./filename to execute a file in linux?  Why not just enter it like other commands gcc, ls etc...


Stackoverflow used to be a good place for me to find a library for my specific requirements. Example:   Apparently, that is now considered "off topic". But these questions still exist, and people still want answers to them. The StackExchange format is also much better suited to this than, say, wikipedia. Yes, you will sometimes get opinions, but even opinions can be useful.  So, is there a different StackExchange sites where we can ask and look for these questions instead?

"What library can I use to do X?" type of questions are not welcome on Stack Overflow, right?  Even if they are not welcome on SO proper, is there any other SE board where I could ask such questions?


I am trying to understand Supplier interface. I understand that it can return an object if we invoke its get() method. However, in the following example:  public class SupplierExample {      public static void main(String[] args) {         Supplier<String> s = new Supplier<String>() {             public String get() {                 return "test";             }         };          System.out.println(s.get());     } }   I am not able to understand how we can instantiate an object (s in above exaple) from an interface. Please advise.

What is the use of anonymous classes in Java? Can we say that usage of anonymous class is one of the advantages of Java?


Why there are temporary table and table variable concepts in SQL server, when both of them provide the same functionality.  As table variable and temporary table uses the temp DB and have almost identical features.

In SQL Server 2005, we can create temp tables one of two ways:  declare @tmp table (Col1 int, Col2 int);   or  create table #tmp (Col1 int, Col2 int);   What are the differences between these two?  I have read conflicting opinions on whether @tmp still uses tempdb, or if everything happens in memory.    In which scenarios does one out-perform the other?


I have completed watching all the currently released Naruto Shippuden episodes. I have completed the Naruto original series, and am on episode 436 of the subbed Naruto Shippuden series. My question is, when should I watch The Last: Naruto the Movie and Boruto: Naruto the Movie? Should I wait until I am completely done with the Shippuden series, or do I watch them now?   I have seen other answers, but none have been definitive for me. I have not read any of the Manga, nor do I plan to at this point. However, I do not want these movies to spoil any of the plot lines from the Shippuden series for me. How many episodes are left in the Shippuden series? Can someone please give me some guidance and/or information on these topics? Thank you so much!

I've recently binge watched all of the original Naruto series and have started on Naruto Shippuden (around episode 20 as of now). Recently, I heard that the movie The Last: Naruto the Movie came out. From what I have heard, the movie has spoilers about the end of the manga (like chapter 700), but I'm currently not reading the manga (though I plan on starting).  If I were to watch the movie, when does the movie take place within Naruto Shippuden, if at all? I saw somewhere saying that it took place at around episode 399-400, but I also heard that a series following Shippuden is coming, so I don't know if I should watch Shippuden, then the upcoming series, and then the movie.


I flagged a post since it contained bare links. And I used this option    And then it was rejected with this    I have been flagging posts using that option for a long time now. Has anything changed?   On another scenario, I got a different declined reason for the same  Flag?    The two links in questions are    and    If yes, then please let me know what am I doing wrong so I don't make the mistake again...  UPDATE ONE (based on comments below):  I don't care if my flag is approved or declined. Its not that if it is declined then I should get discouraged and stop flagging as mentioned in one of the comments below.  Also whether the mods are in sync or not is again not my concern. That not the issue here.  My point is the bare link cannot be answers and have to be posted as comments and hence flagged under "Not an Answer" because the description of that flag says such (See the red box in the screenshot above).   These are the options that are available to me. I don't see another option which fits what I am trying to do here...    Possible Solution:  We can change the description of that flag and add it under another relevant flag so that there is no confusion?

Typically when I see a , I have to use a custom flag and explain in the text box that it is, usually simply in the form of typing just "link-only answer."  I think that there should be a "link-only answer" option in the flag reason dialog box. This would make it a lot easier to flag these types of answers.  Also,  Why not make it easier to flag?  Furthermore, mods and/or 10k-ers don't even seem to know what to flag them as at all:   (one of my flags)  (a different user's flag from )


For me, the  has disappeared. Is there an easy way to select the first answer using the keyboard now? Is it possible to have those arrows back?

Up until last week, Google used to place a blue arrow on the first search result. Using the arrow keys, one could select different results. Finally, pressing enter would enter into the selected result. For the past few days, these keyboard shortcuts are no longer there. How do I re-enable them? I search on Google every 10 minutes and can't afford to waste 2 seconds each time pointing my mouse at the desired link.


Is there any possible way to use the existing home, etc and var partition when installing Ubuntu?

Recently I installed Ubuntu 12.10 x64 Server Edition on my PC. Unfortunately, I attempted to install a lightweight desktop but due to the fact that I have an old graphics card, the PC does not perform so well. I am thinking of re-installing an Ubuntu version but I do not want to lose the contents in my home folder. Is there any way to do that with a Live CD?


I have to deal with like 10 binary files, each larger than 100MB. I have written a single thread program using BinaryReader, and it worked well. I want to make it parallel by using  Parallel.For(0,10, i=> {   -------------   BinaryReader BR = new BinaryReader(File.Open(Files[i], FileMode.Open));   While (BR.BaseStream.Position < BR.BaseStream.Length)   {        Uint64 a = BR.ReadUInt64();        ProgressBar[i].Value = Convert.ToInt32( 10* BR.BaseStream.Position / BR.BaseStream.Length); //error   }   ------------- } );    updating progressbar (owned by UI Thread) is the problem each thread has its own progressbar control instance, but they cannot touch it.

I have a scenario. (Windows Forms, C#, .NET)   There is a main form which hosts some user control. The user control does some heavy data operation, such that if I directly call the UserControl_Load method the UI become nonresponsive for the duration for load method execution. To overcome this I load data on different thread (trying to change existing code as little as I can)   I used a background worker thread which will be loading the data and when done will notify the application that it has done its work.   Now came a real problem. All the UI (main form and its child usercontrols) was created on the primary main thread. In the LOAD method of the usercontrol I'm fetching data based on the values of some control (like textbox) on userControl.    The pseudocode would look like this:  CODE 1  UserContrl1_LoadDataMethod() {     if (textbox1.text == "MyName") // This gives exception     {         //Load data corresponding to "MyName".         //Populate a globale variable List<string> which will be binded to grid at some later stage.     } }   The Exception it gave was     Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on.   To know more about this I did some googling and a suggestion came up like using the following code  CODE 2  UserContrl1_LoadDataMethod() {     if (InvokeRequired) // Line #1     {         this.Invoke(new MethodInvoker(UserContrl1_LoadDataMethod));         return;     }      if (textbox1.text == "MyName") // Now it wont give an exception     {     //Load data correspondin to "MyName"         //Populate a globale variable List<string> which will be binded to grid at some later stage     } }   BUT BUT BUT... it seems I'm back to square one. The Application again  become nonresponsive. It seems to be due to the execution of line #1 if condition. The loading task is again done by the parent thread and not the third that I spawned.  I don't know whether I perceived this right or wrong. I'm new to threading.  How do I resolve this and also what is the effect of execution of Line#1 if block?  The situation is this: I want to load data into a global variable based on the value of a control. I don't want to change the value of a control from the child thread. I'm not going to do it ever from a child thread.   So only accessing the value so that the corresponding data can be fetched from the database.


Could anyone tell me what equations can I obtain from the Lagrangian density  $${\cal L}(\phi,\,\,\phi_{,i},\,\,A_i, \dot A_i,\,\,A_{i,j})~=~\frac{1}{2}|\dot A+\nabla\phi|^2-\frac{1}{2}|\nabla \times A|^2-\rho\phi+J\cdot A$$ by the Euler-Lagrange equations?

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!


after setting up apache and everything working correctly i tried to go to localhost/phpmyadmin and now instead of showing me the login page it's showing me this weird stuff: here is one line of it. it's a huge pile of code.  addJSON( 'list', PMA_RecentFavoriteTable::getInstance('recent')->getHtmlList() ); exit; } if ($GLOBALS['PMA_Config']->isGitRevision()) { if (isset($_REQUEST['git_revision']) && $GLOBALS['is_ajax_request'] == true) { PMA_printGitRevision(); exit; } echo '   and then below that php myadmin demo server with more pile of code..

I am totally new to Linux, servers and websites. I recently set up Apache2, Python, PHP, and MySQL for setting up a LAMP server. I am using Xubuntu 16.04 and PHP 7.0.11. I followed a guide and placed a PHP file named testing.php in it with:  <?php phpinfo(); ?>    It doesn't show anything on localhost/testing.php All it shows is the code itself.


What occurs in atomic scale that cause the photon to be reflected? In other words, what is the reason for photons to change its direction and why material can reflect certain wavelengths and absorb the rest? What are the atomic properties that causes that behaviour?

The "equal angles" law of refection on a flat mirror is a macroscopic phenomenon. To put it in anthropomorphic terms, how do individual photons know the orientation of the mirror so as to bounce off in the correct direction?


Is it safe to use these chargers to replace my lost laptop charger?  Original charger: 19V, 4.74A   Replacement 1: 19V, 4.5A Replacement 2: 20V, 4.5A

I'm using a common charger for both of my laptops.  The charger is specified at 20 Volts and 3.25 Amperes. My other laptop has a specification of 19 V and 3.42 A.  Is it safe to charge my laptop with chargers whose specifications exceed or are not equal to the mentioned specifications?  I have read somewhere that it may cause some damage if the voltage or amperage is not matching the specs.


Can I book a ticket for my C-3PO human-size figure and let it have a seat instead of paying extra money to have it shipped?  I couldn't find a law which says the passenger has to have a soul, its all about his dimensions  I'll be flying with Ryanair from London to Glasgow

We're trying to get from Krakow to London in order to fly home on Virgin this summer. AFAIK all the intra-Europe flights share the same luggage policy: 20-25kg max luggage weight per passenger, with a overweight charge of 5-12 euros per kilo and no option for a second bag.  We'd like to bring an extra suitcase of personal effects.  Lacking any other reasonable options, I had the bright idea of flying EasyJet to London and just buying an extra $122 ticket so we could bring one more suitcase.  But I'm not sure if that's even possible, and not sure if EasyJet is still going to hold me to the 20 kilos per person.    Would this strategy work?  Update  What we ended up doing was flying first from Krakow to Frankfurt on Lufthansa, and then buying a completely separate ticket from Frankfurt to London (not even on the same itinerary). KraKow isn't big enough to have a lot of international options, and going to London leaves the Schengen zone.  Trying to get directly from Krakow to London had too few choices.  And Lufthansa has a reasonable baggage policy.


I need to enter:     your's faithfully   into the database but it does not insert into the database. I'm using php and mysql. **  I'm doesnt talking about sql injection. I want to insert '(single quote) into my mysql table field.  If anyone already face this problem , please share...

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 hoping for an English word. And if no such word exist in English, is there such any such word that means the same thing or near about the same thing in other languages?

This is not from real life, but from a movie on my local TV. A character in the movie is really bad, but when she talks with others, she pretends to be an innocent/ good woman. I want to know how to describe this kind of person.


No. I'm not talking about xenophilia.  In both these senses, xenophobia and xenophilia relate to foreigners or strangers.  I am looking for a fear of the same people who live in the same country as you, not foreigners but localers, so to speak.   Essentially I am looking for the opposite of xeno. Ive gone thru the , but I couldnt find any antonyms.  Is there already a term for fear of localers?  If not what appropriate greek/latin prefix would work with the phobe/phile suffixes?

Xenophobia refers to the irrational fear or hatred of foreigners. But recently I've seen people displaying (in newspaper articles and other places) an irrational fear or hatred of their own countrymen. Is there a word for that?


I know that the ping command is used to check if any remote machine is accessible from my machine.   But I do not know how  it determines that. My wild guess is that it sends some sample data to port 80 of the remote machine and if it gets delivered it says it's reachable/accessible.   Please correct me if I have mistaken it.

How does the ping command really work?  Specifically where does the ARP (Address Resolution Protocol) come into picture?   I was asked this question in an interview and I was not able to come up with a scenario when ARP could be used.


Are Canonical link functions and the link functions the same thing?   If not, can anyone tell the difference between them?   I know a link function is a function that links a linear predictor to the response variable.  Then isn't that a canonical link function too? I'm so confused, could anyone help?  Also if we're taking the distribution of the response variable, say $Y$ as a $lognormal$ distribution, i.e $Y \sim LogN(\mu,{\sigma}^2)$, then what should be the natural link function to be applied?   What I did was, first transform the distribution into $Normal$ distribution and hence use the link function $g(\mu) =\mu$, but in the solution it's given as $log(\mu)$, how is that?   Can anyone help?

What's the difference between terms 'link function' and 'canonical link function'? Also, are there any (theoretical) advantages of using one over the other?  For example, a binary response variable can be modeled using many link functions such as logit, probit, etc. But, logit here is considered the "canonical" link function.


On Terraia Android I accidentally deleted my world while trying to back it up. Is there any way I can recover it? I really need help because it was my main world. I had a slime staff and all my money, materials, and crafting items on it.

I was playing terraria today, and my friend came and deleted the my world.  Is there a way for me to recover my world?


Thanks to @LordSharkOfTheUnknown, I now realize that I wish to recognize if a graph is an interval graph. He had linked this  of the subject, but I have not understood the recognition algorithm described there   I was solving a question in Stack Overflow in Portuguese about a particular problem that could be modeled as graph-colouring. The problem was something like this:     I have n machines. Those machines needs to work at continuous intervals: I_1 for the first machine, I_2 for the second and so on. Each machine needs one operator to work properly, and each operator can only handle a single machine at a given time. What is the minimum number of operators needed?   So, I have modeled this as a graph:   each vertex k is a machine k/time interval I_k each edge connecting vertex j and k is a time overlap between intervals I_j and I_k; or equaly it is a non-empty intersection between I_j and I_k each vertex colour is an operator, so no operator can operate two similtaneous machines, thus one colour cannot be it's own neighbor   So far, everything is fine. But, given a graph, can it have the semantics above? This can also be asked as the title question:   Given n sets and a list of all pairs of sets that has non-empty intersections, can all of those sets be continuous intervals of real numbers?   So far, I know that this problem lies in NP, because if I have a list of intervals for each set, than I can test if all the intersections apply and validate if is a correct input.    For example, a valid input:  Given 4 sets (A,B,C,D) with the following intersections:   A,B B,C C,D A,D B,D   It is a valid graph. Because I can have this values:   A = [1,10] B = [8,15] D = [8,14] C = [12,18]   All the intersections above occurs, thus these intervals represents a valid input     For example, an invalid input:  Given 4 sets (A,B,C,D) with the following intersections:   A,B B,C C,D A,D   There are no such values for A, B, C and D so that they are continuous intervals ou real numbers and there exista only those 4 non-empty intersections     Original question that I was solving:  SOpt question of this same open question:

Suppose we have graph $G  =(V, E)$ that $V(G) = {a, b, c, d, e}$ and $E(G) = {ab, ad, bc, be, cd, de} $  How should I know if this is an interval graph or not?


When you get a comment on your question or answer, or when a comment @-mentions you, a red notification appears on the top bar inbox. When you get an answer to your question, a red notification appears as well. When someone edits your question or answer, you get a notification. When a question or answer earns a badge, you get a notification in the rep area. But when you get a close vote, or in fact your question is closed, nothing happens. (Re-opening, too.)  This is especially problematic when the close vote identifies a duplicate and adds a comment. There is no notification! This just happened to me on  and I have double checked my inbox to be completely sure there was no notification. I continually argue that marking a question a duplicate is a gift to the asker, who doesn't have to wait for answers, but now I discover the gift is not treated the way an answer or comment would be. That isn't right.  I propose inbox notifications (red) for the following occasions:   a close-as-duplicate vote is cast and an auto-comment is added any close vote is cast and you have close vote privileges your question is closed and you have reopen privileges   I propose edit notifications (green rep area) for the following occasions:   your question is closed your question is re-opened your question is deleted   This will improve the interactions users have with the closing system. I understand the philosophy of not notifying of negative events, but not all of these, not even all closes, are negative, and it is important for the asker to react to them.

I think it would really help if you get notified that a question of yours was closed.  Especially for the multi-site power user, usually (at least for me) a question is asked and then left alone for while. I rely on the network-wide inbox to tell me when someone has commented or answered, but if I don't receive any messages then I tend to assume that the question wasn't answered or even noticed. It's only when I check the question a day or two later to see what I can add do I find out it was closed.  This would be especially helpful for duplicates, where the answers you need are already there. A message to the effect of, "Closed as duplicate of question" is just like notifying me that a new answer has been added!  Unfortunately, question closures can remain unnoticed by their askers until months have passed. By then, the questions may either be too old to migrate to the correct site, or may , depending on the specific closing reason. We should notify users of these question closures so that they can improve them and learn from their mistakes.  Could closed questions get added to the inbox?


Is there a GUI-based program on Ubuntu that compares two files line by line and indicates where two lines do not match? If not, any console app that does the same thing?

I'm looking for something that will compare directories and files like Beyond Compare does for windows.  Its mainly for use of source control, but I need to use it for deployment as well.


Someone mentioned in  that the nomencl package can do almost what I want the glossaries package to do.   Has someone used this package recently?   I can't figure out how to make it work.  Compiling the following code with latexmk -pdf creates a file thest.nlo, but then complains about a missing test.nls file.  \documentclass[11pt]{report}    \usepackage{nomencl} \makenomenclature \begin{document}     \section{A test section} \label{lab.test.section}  \nomenclature{$\bigcap$}{Unary intersection operator. Section~\ref{lab.test.section}, page~\pageref{lab.test.section}.}  If $V$ is a set of subsets of $U$, then we define the unary $\bigcap$ operator as follows...  \appendix  \chapter{Test chapter}  \printnomenclature  \end{document}   And the documentation   doesn't seem to mention needing to run any external program.  I took a look at  But when I try to run  makeindex test.nlo -s test.ist -o test.nls   I get an error: Index style file test.ist not found.

I am quite new in LaTeX and I am using it to write my master thesis. Everything works quite fine until I wanted to make a list of abbreviations. I read most I could, including the nomencl package documentation and a lot of subjects here, but I still can't understand how to compile it.   I'm using TeXShop on Mac and I have the main page with the code and a smaller window of command, that displays any mistake when I typeset, for instance. My code is the following :      \documentclass{article}     %other packages     \usepackage[intoc]{nomencl}     \renewcommand{\nomname}{Abbreviations}     \makenomenclature       \begin{document}     %title and other stuffs      \newpage     \setcounter{tocdepth}{3}     \tableofcontents     \printnomenclature     %Then some example of my abbreviations :     \section{Experimental Part}    \textit{Synthesis of some compound \textbf{(aa)} \cite{FAP}}\\ %E13     To a solution of 2-bromo-5-methoxybenzoic acid in DMF \nomenclature{DMF}{Dimethylformamide} (33 mL) is added CuCN\nomenclature{CuCN}{Copper Cyanide}.       \end{document}   When I compile it, even twice as for other commands, nothing appears, not even a blank page. And I can't type in my command window, so impossible to type the command :   makeindex master thesis.nlo -s nomencl.ist -o master thesis.nls   recommanded by the nomencl package documentation.


I've been trying to login with my VeriSign OpenID on my mobile phone. The first two attempts were seen as suspicious, whereas the third said unknown OpenID provider. Does this not work on the mobile website, or am I just missing something?

As of late I can't login with pip.verisignlabs.com as my OpenID provider. I've replaced my actual username in the error message with username.     Unable to log in with your OpenID provider:     The OpenID Provider issued an assertion for an Identifier whose discovery information did not match.   Assertion endpoint info:  ClaimedIdentifier: http://username.pip.verisignlabs.com/ ProviderLocalIdentifier: http://username.pip.verisignlabs.com/ ProviderEndpoint: https://pip.verisignlabs.com/server OpenID version: 2.0 Service Type URIs:  Discovered endpoint info: [ {     ClaimedIdentifier: http://username.pip.verisignlabs.com/     ProviderLocalIdentifier: http://username.pip.verisignlabs.com/     ProviderEndpoint: http://pip.verisignlabs.com/server     OpenID version: 2.0     Service Type URIs:         http://specs.openid.net/auth/2.0/signon         http://openid.net/sreg/1.0 http://openid.net/extensions/sreg/1.1         http://schemas.openid.net/pape/policies/2007/06/phishing-resistant         http://schemas.openid.net/pape/policies/2007/06/multi-factor         http://schemas.openid.net/pape/policies/2007/06/multi-factor-physical }, {     ClaimedIdentifier: http://username.pip.verisignlabs.com/     ProviderLocalIdentifier: http://username.pip.verisignlabs.com/     ProviderEndpoint: http://pip.verisignlabs.com/server     OpenID version: 1.1     Service Type URIs:         http://openid.net/signon/1.1         http://openid.net/sreg/1.0         http://openid.net/extensions/sreg/1.1 } ,]


(Motivated by , now falsely dupe-closed question.) Mods can not cast non-decisive votes. . Sometimes they would like to talk with users so that the diamond does not alter their communication context. Sometimes they might like to feel the site as an ordinary mortal do. Shog (CM at the time) says :  If the second account allows you to do something on the site that your normal account would be prevented from doing, it is abuse.  On this definition, doing these as a mod, likely qualifies as an abuse: because the normal account of the mod is prevented to act as an ordinary user account. However, it is very likely, that this definition is about the increase of the privileges of the normal users, and not when mods want to decrease their privileges on some reason. Mods I've talked about it* categorically denied that they would use any socks, although he did not make clear that they would be allowed it, if they would want to. So what is the case? Are they allowed to use secondary accounts or not? *These are in long-deleted comment chats, I have no way to find/cite them.

This question is prompted by:  and .  Basically, some diamond moderators don't always want to diamond-hammer close questions.  A workaround is to create a new account, , then cast regular close votes from that account.  Question: May a diamond moderator utilize a second, non-diamond account e.g. to cast regular close votes?     It is not a problem to have multiple accounts, as long as they aren't voting for each other and doing other sockpuppet-y things.      I worry this might be considered "sockpuppet-y".  The diamond close hammer is sometimes excessive, particularly  where moderators are .


email: function( value, element ) {             // From https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address             // Retrieved 2014-01-14             // If you have a problem with this implementation, report a bug against the above spec             // Or use custom methods to implement your own email validation             return this.optional( element ) || /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test( value );         }   i found above code in jquery validation plugin for email validation here i replaced the regex with others but still it validates email as "example@example" but in my application i want it to validate emails of type "example@example.example" only ,is this regex expression only which needs to be changed or some other part of the code too because changing regex didn't worked for me

Is there a regular expression to validate an email address in JavaScript?


In a 2D game where the user moves with the keyboard arrows, should the user send all the time he moves his position (x, y)?. If the user has some speed, the user would send (x, y) like 50 times pixel by pixel in just a second.

The client can do several actions per frame, for instance, requesting a movement, shooting etc. Should i send a packet to the server for each action the client performed during the frame, or should i stack them in an unique packet and send it at the end of the frame?  EDIT: i'm using Jmonkeyengine and the provided network API SpiderMonkey.


It is a problem in sec. 2.2 of the book titled by Griffin Harriet, and although have no counter-example till now as below: $n(n-1)(n+1)(n^2+1) \implies$ if $n=4$, then $n-1=3, n+1=5, n^2+1=17$, and $4*3*5*17=30*2*17$.  Basically, the issue is how to show that : $(n-1)(n)(n+1)(n^2+1)$ for $n$ being odd or even, is a multiple of $30$.  Let us take two cases: (a)$n$ is odd, i.e. of the form $2k+1$, for a suitable integer $k$. So, $(2k)(2k+1)(2k+2)(2k+1)$, as $n^2+1$ will also be an odd number. This leads to a final expression of the form: $2k+2$. But, not able to prove its being a multiple of $30$.  (b) Need not take even case, as the final even form is proved by one term being even; & still not able to prove it being a multiple of $30$.  So, try by smaller values, and that would not serve the cause until use induction (strong case might be needed, as need consider all lower value for the case of $k=1$).  Am I correct, & should proceed by strong induction?

How can I prove that prove $n^5 - n$ is divisible by $30$? I took $n^5 - n$ and got $n(n-1)(n+1)(n^2+1)$ Now, $n(n-1)(n+1)$ is divisible by $6$. Next I need to show that $n(n-1)(n+1)(n^2+1)$ is divisible by $5$. My guess is using Fermat's little theorem but I don't know how.


In this question asked by , The rotation will depend upon:  upon impact, on:   Initial Speed of the ball hitting the surface (magnitude of ball velocity vector) Friction co-efficient of ball & surface (constants for simulation) Angle between ball impact velocity vector and the surface normal    Everything is fine except for second point. How the friction coefficient of ball and surface should be taken into account?    EDIT: The problem with my approach is i donot know the impact time of the collision. If say the time of impact is dt, Vn1 is the final velocity parallel to the surface then  mass*(Vn1-Vn0)/dt X r = torque   Then i can calculate the angular velocity produced by this torque if it acts for dt time.  also   Vn1= Vn0 + accelaration* dt   where   accelaration+angular_accelaration*r   Please correct me if i am wrong. Also how do i calculate dt?

Following on from : I have the ball quite realistically bouncing from surfaces it hits. Now I'd like to make it spin from the friction of the hit.  Showing this is simple enough: I rotate the ball by its angular velocity every tick and apply the same rotation when it's rendered.  When a ball hits a wall, I know that the speed of rotation is affected by...   the ball's initial speed when hitting the surface the friction coefficients of the ball and surface (physical constants) the angle of incidence (the angle between the ball's incoming velocity vector and the surface normal).   The angle of incidence is approximated by the dot product of the ball's impact and exit velocity vectors. (1 meaning high spin, -1 meaning no spin, and everything else relatively in between)  Multiplying all of the above together and making sure they were then transformed to the range 0 - 1, and multiplied by max rotation speed, the ball seemed to respond in rotation speed as expected. Except for one thing: It would always rotate clock-wise (because of positive values).    Is this a good method? Can you think of a simpler way?  If this method seems fine, what am I missing? How do I know when the ball should be rotating counter-clockwise?


I recently installed windows 8. We used to share internet via ad-hoc networks or connectify. Windows 7 was able to connect to these but windows 8 isn't. The weird thing is, when the ad-hoc connection is configured without any security (no password), then windows 8 can connect to it but not if the connection is secure. Why could that be happening?

I'm trying to connect to my ad hoc network through the command prompt with the the following command:  netsh wlan show network   ... I get the following output:  SSID 3 : Range  Network Type : Adhoc Authentication : WPA2-Personal Encryption : CCMP   I am trying to connect using this:  netsh wlan connect Range   But I'm getting this error message:  The network specified by Profile "Range" is not available to connect   How can I connect to my network using netsh wlan connect?


I am getting an list as shown below    List<String> tr = newdatamap.get("B1").getRef();  List<String> tr2 = newdatamap.get("B1").getMS();   now as you can see that we have two arraylists but I want to store it contents into single a list itself. Something like that:  List<String> tr = newdatamap.get("B1").getTradeRef() + newdatamap.get("B1").getTMS();   but it is showing an error. Please advise how we can combine them into a single linked list.

Conditions: do not modify the original lists; JDK only, no external libraries. Bonus points for a one-liner or a JDK 1.3 version. Is there a simpler way than: List<String> newList = new ArrayList<String>(); newList.addAll(listOne); newList.addAll(listTwo);


I'm wondering how to read the contents of a file, for instance, I have a text file containing the words hello world and I want to read this file without using a text editor. What can I do?

There is a file named RESULTS.txt and I want to open this file in my terminal. (I mean I want to see the file contents be displayed in the terminal and not in some text editor)   How do I do that ?


I read so much about types to prevent sql injections. I probably don't want to use prepared statements if there is another way to prevent them by 100% of the cases.  Currently I'm sticking to this:  $safe_var = mysql_real_escape_string ( $unsafe_var); mysql_set_charset("utf8"); $sql = "REPLACE `news` (`id`, `author`, `title`, `text`, `time`)" . "VALUES ('".$id."', '$author', '$title', '$text', UNIX_TIMESTAMP());"; mysql_query ( $sql );   For this example all the variables in the sql statement are constructed as the safe_var at the start. I see many opinions on what is save in sql and what not so I don't know what is right. My question is, is this 100% save and is it save to use this way in every possible sql statement, by using mysql_real_escape_string and putting the variables in single quotes as I did in the statement?  Thanks in advance for help!  PS: I know there are many question likes this but everyone keeps saying diffrent stuff and I still not found anyone that says that my way is safe from sql injections in every possible statement.

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 making a simple blackjack program in java, in which there is a Dealer class that extends the Player class. The problem in the code below is that when calling the Player.hit() method is called, I get an error saying this: Exception in thread "main" java.lang.NullPointerException: Cannot read the array length because "a" is null Here's the code for the player class: package Blackjack;  import java.util.ArrayList; import java.util.Scanner;  public class Player {     private ArrayList<Card> hand; //users hand     private int handvalue = 0;     private String name;     private Card[] aHand;     Player(ArrayList<Card> hand, String name){         this.hand = hand;         this.name = name;     }     public void addCard(Card card){         hand.add(card);     }     public boolean hasBlackjack(){         if (handvalue == 21){             return true;         }         else{             return false;         }     }     Scanner input = new Scanner(System.in);     public String hitOrStand(){         System.out.println("Would " + name + " like to hit or stand?\n");         String choice = input.nextLine();         return choice;     }     public int calcHandValue(ArrayList<Card> hand){         aHand = hand.toArray(aHand);         int handvalue=0;         for(int i=0; i<aHand.length; i++)         {             handvalue += aHand[i].getValue();             if(aHand[i].getValue()==11)             {                 System.out.println("You have drawn an ace. Would you like it to be worth 11 or 1?");                 int acevalue = input.nextInt();                 if(acevalue == 1){                     aHand[i].value = 1;                 }             }         }         return handvalue;     }     public boolean checkBust(){         if (handvalue > 21){             System.out.println(name + " has busted!");             return true;         }         return false;     }     public void hit(Deck deck)     {         hand.add(deck.drawCard());         aHand = hand.toArray(aHand);         handvalue = 0;         for(int i=0; i<aHand.length; i++)         {             handvalue += aHand[i].getValue();             if(aHand[i].getValue()==11)             {                 System.out.println("You have drawn an ace. Would you like it to be worth 11 or 1?");                 int acevalue = input.nextInt();                 if(acevalue == 1){                     aHand[i].value = 1;                 }             }         }     }      public String getName() {         return name;     }      public ArrayList<Card> getHand() {         return hand;     } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I need to detect Image format to save a image like image1.jpg, image2.gif, but i only have a stream, and i do not know the image format(gif, jpeg, png, etc)  Is there a way to detect imageformat from a stream?

I'm downloading some images from a service that doesn't always include a content-type and doesn't provide an extension for the file I'm downloading (ugh, don't ask).  What's the best way to determine the image format in .NET?  The application that is reading these downloaded images needs to have a proper file extension or all hell breaks loose.


For $1\over 3$, you get $0.\overline3$, which is $0.33333...$.  The threes go on forever.  You can't ask "What happens if it ends in an eight?" because it simply doesn't end.  For SSSSS..., what if it ends in a T?  Well, an infinite series of Ss followed by a T would never have a T because it never ends.  There can be infinite points in a point, even a very small one.  Are they true or false?  I think they're true, aren't they?  If not, why not?

Does $1.0000000000\cdots 1$ (with  an infinite number of  $0$ in it) exist?


I need a DOS .bat script that just transfers ALL arguments to a .exe program.  For example the DOS script main.bat that calls the .exe program.exe:  program.exe ????   The question is what ??? should be. The arguments must ALL be passed quoted: if there are filenames with spaces, these must be left intact. Under UNIX/POSIX this is called "quoted array", because the arguments form an array (ARGV[x]), and each argument must be quoted.

Does %* in batch file mean all command line arguments?


According to this video:     it should be possible to levitate humans because the water in our bodies is diamagnetic - but it is stated (at 1:14) "although the magnetic fields required would be enormous".  So I wonder: how strong of a magnetic field would you need to levitate a human (using only the diamagnetism of the water in our bodies)? And (maybe easier to do) - how strong was the field used to levitate the frog in the video?  There must be a way to compute the amount of magnetization that occurs, and how that results in a repulsive force; but I don't know where to begin. Any suggestions?

There is iron in our blood, which is magnetic. Roughly how strong would a magnet have to be to induce a noticeable attraction? It would be nice to know this for several distances. Also, do electromagnets that strong exist?


I'm using a Windows 10 OS, and I want to remap fn-F7 to emulate pressing Pause. Is there a way to do this?

One of my laptop's keys has fallen off. Is there any way I can remap another key to serve as that key?  I'll 'sacrifice' the other key because I never use it.


I want to define two different UV maps for one object.  One will have the nodes pushed around to match features in an image for dents and scratches, intended to affect the displacement of the material.  The other provides color, a pigmentation pattern, and mapped in a way unrelated to the scratches/dents.    I found how to create multiple UV maps by going into the mesh properties, UV Maps, and click the + button.  I have pushed nodes and am convinced I have two separate UV maps, named ScratchyUV and PigmUV, each arranged on its appropriate image in the UV/Image Editor as I like.  For the material, I have two Texture Coordinate nodes. One feeds an Image Texture for the scratch/dent image, which feeds the Material displacement input.  It actually works!  Yay.   The other Texture Coordinate node goes to a Diffuse Shader and that goes to Material surface.    Where I am stuck: How do I choose which UV map gets used for which Texture Coordinate?  What would make sense to me is the Texture Coordinate having a list or something to choose a UV map.  This is probably all wrong, but I have nothing better than guesses!   What is the trick to choose UV maps in this kind of setup?  I could show a screenshot my nodes setup, but there's a lot of extra stuff for tweaking the details, and it's not as I described.  What I described should be enough for the purpose of the question, though.

I'm trying to match Cycles to a Blender-Internal material setup and I didn't see a way for cycles to have an image reference more then one UV map.  Is it possible to have a node setup with 2 image textures, each using a different mesh UVLayer?


I was using the alternate way to get equipment in Chapter 5 of the PHB (D&D 5e)  as a Fighter and rolled 160 GP, which I spent on Studded Leather Armor, a Longsword, the Explorer's Pack, a Crossbow Bolt Case, a Light Crossbow, 20 Crossbow Bolts, and a Dagger, and still have 61 GP to spend on equipment. I have no idea what to do with the extra money as I've bought all the equipment I want. I don't think the PHB addressed this and don't know what the rules say. What do the rules say on what to do with the extra money?

If I use the starting wealth rolls of my class, do I keep any remaining money left over after I buy equipment?  In D&D 5e you can roll the 4d4 × 10 to determine starting gold, forgoing any equipment your class and background  gets.  This is not up for question.  What is up for question is whether or not the PC keeps any remaining gold that they don't spend on equipment.   As far as I have been able to tell, this is not explicitly stated in the PHB nor in the Basic Rules documents.


If $x \neq k\pi$ and $n \in \mathbb Z$ then prove $$\sin x + \sin 3x + \cdots + \sin(2n-1)x = \frac{\sin^2 nx}{\sin x}$$    So I stumbled into this problem in my textbook in the complex numbers chapter. It is an optional problem, so the teacher won't explain it to us. I have no idea on how to approach it in the first place. Could anyone please give me a clue on how to begin solving it?

Prove by induction:   $$\sin{x}+\sin{3x}+\dots+\sin{(2n-1)x}=\frac{\sin^2{nx}}{\sin{x}}$$   I tried the problem using the normal rule of induction(the first principle), but I failed.I failed to make the form $\sin^2{(m+1)x}$. Somebody help me.


Prove $(\cos x +i\sin x)^n= \cos nx+i\sin nx$ by mathematical induction.  Hence, express $1-i$ in the form of $r(\cos x+i\sin x )$.

The following is a rigorous proof of De Moivre's theorem by means of mathematical induction. The theorem put simply is that:  Any complex number, $z = a+bi$, on a cartesian plane can be expressed in polar form, where $a=r\cos\theta$ and $b=r\sin\theta$ and $r$ is the absolute distance from the origin to the point $z$. In light of this, the expression for the complex number $z$ in polar form is $z=r(\cos\theta+i\sin\theta)$ In order to find the $n^{th}$ power of $z$, the following rule applies: $$\displaystyle z^n=(r(\cos\theta+i\sin\theta))^n=r^n(\cos n\theta+i\sin n\theta)$$ where $n\in\mathbb N$ (I have confined $n$ to the natural numbers given that I intend on using mathematical induction to prove the theorem.  Base step: We must prove that what is stated is true for $n=1$, hence $$z^1=r^1(\cos 1\cdot\theta+i\sin1\cdot \theta)$$ $$=r(\cos\theta+i\sin\theta)$$ which is true. Next we assume it is true for $n=k$, and therefore proceed to the inductive step. Inductive step: When calculating $z^{n+1}$, it's the same as calculating $z^nz$, hence $$z^{n+1}=(r^n(\cos n\theta + i\sin n\theta))(r(\cos \theta+i\sin \theta))$$ $$=r^nr(\cos n\theta+i\sin n\theta)(\cos\theta +i\sin \theta)$$ $$=r^{n+1}(\cos n\theta\cdot\cos\theta+\cos n\theta \cdot i\sin\theta+i\sin n\theta\cdot\cos\theta+i^2\sin n\theta\cdot\sin\theta)$$ from here, $i^2=-1$, and therefore $+i^2\sin n\theta\cdot\sin\theta$ becomes $-\sin n\theta\cdot\sin\theta$. In addition to this, the following trigonometric identities will be used: $$\sin(n\theta + \theta) = \sin n\theta\cdot\cos\theta+\cos n\theta\cdot\sin\theta$$ $$or$$ $$k\sin(n \theta+\theta)=k\sin n \theta\cdot\cos \theta + \cos n\theta\cdot k\sin\theta$$ $$and$$ $$\cos(n \theta + \theta)=\cos n\theta\cdot\cos\theta-\sin n\theta\cdot\sin\theta$$ by using these, the original equation has now become $$=r^{n+1}(\cos(n \theta + \theta) + i\sin(n \theta + \theta))$$ then, after factoring out $\theta$, the theorem becomes $$=r^{n+1}(\cos((n+1)\theta)+i\sin((n+1)\theta))$$ which completes the proof. Question: is this proof correct all the way through? Or have I missed any conditions? If all is well in the case of this proof, could somebody aid me in proving it for $\{n|n\in\mathbb R,n\geq1\}$


I recently installed 12.04 LTS after not using any Linux distro for several years. My Canon MP280 worked perfectly as far as printing goes and I was even able to set it up on a Samba share and print from a Windows 7 machine.   However, when I open Simple Scan it does not detect a scanner. I did find some instructions online but the scanner is still not recognized in Simple Scan even after installing a couple .deb packages from the Canon site.   I also couldn't seem to find the ScanGear package after installing those .deb packages as well but I haven't had a chance to delve fully into it.

I tried to install the MP190 drivers, but appeared a message show me that requires to have libcupsys2. I understand that libcup2 is an update of libcupsys2.   How do I solve this? Are there proprietary drivers for my Canon printer or scanner?


I am talking about the menu shown in the screenshot provided:    When I click on "Select user...", a list of users is shown, but my user is missing, although I have sudoer permissions.

To designate a user as an administrator from the GUI, you can simply open-up that user's properties and select the Account type as the "Administrator" option.    If the user already exists, what effect does selecting this account type have at the system level?  (added to sudo group, modification to /etc/passwd or /etc/sudoers...etc)  And how would I accomplish this (designating a user as an "Administrator") from the command line?


How to rewrite my URL from http://www.mysite.com/listingsecond.php?ID=1 to http://www.mysite.com/listingsecond?  How can I rewrite to my .htaccess in PHP to do this?

I'd like to do some URL rewriting (Why? See .) so that instead of users seeing addresses like   labouseur.com/course-compilers.html    they can instead see and use simply   labouseur.com/course-compilers   (Even better, maybe I should restructure that so that it's courses/compilers.)  I'm using a Linux-based shared hosting service for my website, so I do not have administrative control of the server, but I do have control over .htaccess. The references I've read online seemed less than clear to me, so I'm looking for a little clarity and advice here.


If using FreeBSD as a file server for windows clients, it's useful to be able to run file searches server-side rather than client-side.  A typical example might be: find all files meeting some metadata criteria (name, path, size, date etc) with some literal or regex in their text-extracted content. The search is across a large recursive directory that contains mixed files, and content hits could be in any (or multiple) of: .txt notes, .docx/.xlsx documents, .pdf, .zip/.rar/.tgz/.iso compressed archives, or failing which maybe even strings in a binary file.  The first part is easy, just use find. Searching in one type of file isn't hard either. But FreeBSD doesn't have a notion of "well known" file filters or a specific single API for parsing file data to text that uses pluggable filters to a common format (although there are well-known text extraction filters for many individual filetypes such as pdf, doc/docx, xls/xlsx, archive formats, sqlite databases, binary files containing strings, etc) so you can't just throw grep, find -exec, pdftotext, or unzip | sed using Microsoft XML extraction code universally at the results. I guess you would have to generate a list or stream of filenames with find, then pass each through its appropriate filter based on extension or file, and gather up whatever passes through, as the output.  If I need to do this kind of content search quite often in a large file store, is there a specific tool that's designed and more efficient for it, or what's the most efficient approach out there?   Update - I'm only interested in direct file-by-file CLI search. I'm not interested even slightly, in indexing content and later searching an index. This question relates to file-by-file on-the-spot literal/regex search, as with find, but when the content is also searched and isn't plain text but is multiple file types with varied text-extract filters. So it's not a dup of the existing questions about indexed content searching. Sorry this wasn't clear before, I hadn't realised the ambiguity.

Is there such a thing as a full-text indexing engine, that can be queried from the command line and ideally wouldn't require using a gui at all ?  I'm especially interested in indexing my ebooks and papers, so that's a mixture of pdf, epub and a few djvu. (Open)Office docs would be nice, but much lower on my list.


I have a glass window (a plane object) on which I want to print a graphic.  However, the glass turns black. below is a screenshot of the shader set-up I used. What did I do wrong?

I'm designing this animal-type creature, and want to add a transparent .png image to its face with the face features (object has a subsurf). On the left is the image with the features, on the right is the part of the object where I want it to be.    I tried to import the image as a plane, but matching the shape of the plane with the face didn't work, and the lines of the face left shadows on the head, and could be seen as a different object from some angles (although it's the closest I've gotten yet). It looked like this:    So , I tried selecting the faces of the head that the features should go over, and create a new material for it. Unfortunately, since the .png is transparent, the result produced was this:    (where it's impossible to tell the transparency from a black background default color, and where I wouldn't know where to start to adjust size and position).  I also tried UV mapping, but then the whole object became black with the features repeated all over.   Is it something I have to go into Nodes for? I'm kind of stuck here. Creating a new material and applying it is simple, but applying a material that is an image is a bit more complex it seems... Ideally, I would reproduce the same technique for the adhesive bandage on its arm (seen on the right of image 1).


my PS4 Pro is not connecting to both my dualshocks. At first it started by not being able to turn on the console by just pressing the PS button, now I have to manually switch it "on" on the console itself. But when PS4 is in safe mode both my controllers(with usb cable) work and very responsive. I also rebuilt its database, reset the connection of both controllers and pair by PS button and share button. I also paired it before to my PC (bluetooth), both worked just fine. I feel the problem here is the console itself.

I was playing my PS4 two days ago and then packed it up with two controllers that were both connected to this PS4.   I got to where I was going, set everything up and now the controllers won't connect. They show pulsing orange when they plug in, but when I hit the PS Button to connect, it blinks white 1-2 times and goes back to orange.   I have tried resetting them both.  Can anyone help?


I want to have a database in my app that my ListView will pull "name" from then display more data elsewhere in the same activity. It is a static database that will not be modified by the user in any way.   How do I make the database and have it in my app when shipped?   Can it be as easy as pulling from a spreadsheet in res/...?

If your application requires a database and it comes with built in data, what is the best way to ship that application? Should I:   Precreate the SQLite database and include it in the .apk? Include the SQL commands with the application and have it create the database and insert the data on first use?   The drawbacks I see are:   Possible SQLite version mismatches might cause problems and I currently don't know where the database should go and how to access it. It may take a really long time to create and populate the database on the device.   Any suggestions? Pointers to the documentation regarding any issues would be greatly appreciated.


I'm planning to attend a beginners D&D session in a few days time. This is a casual session with stock random characters.   For (ahem) reasons I'd like to get killed quite early on in the game. The aim is to do something, preferably a single, plausible action, that's likely to result in my character's death but without it being too obvious as a suicide attempt.  I know very little about DND beginner sessions, but I strongly suspect that the bulk of it will be spent in dungeons. There may even be a dragon.  What is that action?    For the record, I'm looking for a technical/social solution within the rules of the game, not a social engineering solution in real life (faking a cramp, faking a call, speaking to the DM, etc).

I'm playing an 8th level Valor bard, and she's basically  (warning: TVTropes link) at this point- high-combat campaign, so not a lot of charisma stuff to do, and really doesn't have any casting function that the others can't do better. Her motivation is to find and defeat challenges, and has a tendency to think she can do more than she can, which is how she wound up as The Load in the first place, so getting killed off by something she couldn't handle would be a very in-character end.  However, my party is pretty heal-happy (8th level druid, ranger and paladin) and it would be in character to heal her. That, combined with the 3 death save mechanic, makes it pretty difficult to kill the character off. How do I get around this so I can roll up a character with some actual utility?


I'm looking for an application which allows me to see what is consuming the most disk space and also to delete the files from there.

I have only one disk in my computer, a 80 GB SSD. It is formatted as a single ext4 partition (no swap), and all the usual folders are installed on it (I keep lots of data on external media, but /home and all the rest is on the SSD).   Today I booted it and I got a message that the drive is full. I opened Disk Usage Analyzer to look at what takes up space. It insists that 67.8 GB of the disk are used, and that / is taking up 36.4 GB. Which leads to the question, where are the missing 30 GB, if not on the file system?!    Just to have a comparison, I added up all the sizes of all readable folders listed in Nautilus as subfolders of / (including the hidden ones). I got 20.9 GB. Trash was unreadable, but I know it has 16.2 GB, so the sum is 36.1 GB, around the same as what Disk Usage Analyzer is reporting. There were some system folders which were unreadable, like proc, but I doubt that they add up to 30 GB - else it wouldn't be possible to install Ubuntu on small disks, and I've seen it run on 2.5 GB. I think they must be the 0.3 GB difference between my calculation and the Disk Usage Analyzer's report.   So I'd like to know, what is eating up these 30 GB and how do I get it to free them?     Edit with answers to CYREX's questions   Booted from Ubuntu 10.10 64-bit live CD (same as my system).  fsck result:   root@ubuntu:~# fsck /dev/sda1 fsck from util-linux-ng 2.17.2 e2fsck 1.41.12 (17-May-2010) /dev/sda1: clean, 265956/4890624 files, 18073343/19537408 blocks  Booted from the SSD. Emptied the trash, and the 16 GB from there are now free. The 30 GB are still missing.    I'm not experienced enough to know what counts as weird in a log. Here are my messages log and my syslog since last boot. Maybe you can find something in them:       Here it got really strange. I plugged in an external 500 GB HDD. Disk Usage Analyzer overreported the available space, then showed space missing (76 GB used, but only 24 in folders).      Booted again from the LiveCD, started the Disk Usage Analyzer from it and got the same results as from the installed Ubuntu, within 1-2 GB.   Edit with answer to CodeMonk:  That would have been a nice solution, but the partition is really 80 GB - I mean 74 GB + marketing "error", anyway the whole disk is formatted. It also shows that over 50 GB are used, so where are the 30 GB if not in files and folders?    GParted also reports the correct size of the external HDD.


I would like to type something like this: \begin{equation}    \begin{split}      \left( ba ba ba \\      ba ba ba \right)    \end{split}  \end{equation}  But it contains error; I think it's because \left( and \right) should be in the same line. How can I type something like this, but in different lines? I think one of the solution is replaced \left( and \right) by \Big( and \Big). But I am not satisfied with it since \Big( is not "big" enough compared to \left(.

I have a very long equation that must be separated into two lines, and it has several pairs of nesting \left \right delimiters. Unfortunately, it seems that they need to be on the same line in order for them to work.  Also I'm using the align environment because I need the aligning functionality. Is there a way to have the size of delimiters automatically adjusted over multiple lines?


For vector Gauge fields we usually write the kinetic term:  $$ \mathcal{L} ~=~ - \frac{1}{4} F_{\mu \nu} F^{\mu \nu}$$  while for matter fields e.g. for a real scalar:  $$ \mathcal{L} ~=~ \frac{1}{2} D_\mu \phi D^\mu \phi $$  with Minkowski sign convention $(+,-,-,-)$.  Why is the sign different for the two and what physical difference does it make? Is it only the relative sign important or the absolute one?

I have seen numerous 'derivations' of the Maxwell Lagrangian,  $$\mathcal{L} ~=~ -\frac{1}{4}F_{\mu \nu}F^{\mu \nu},$$  but every one has sneakily inserted a factor of $-1/4$ without explaining why. The Euler-Lagrange equations are the same no matter what constant we put in front of the contraction of the field strength tensors, so why the factor of $-1/4$?


I use Ubuntu GRUB.  After installing some other Linux distribution Ubuntu GRUB disappears and the other distribution's GRUB appears.   How can I recover the Ubuntu GRUB?

Is there any way I can stop Ubuntu from overwriting bootloader?   It happens after updating (I suppose) system's kernel. I want to stay with my other linux distro bootloader without having to change it manually every time a certain update og ubuntu is changing it.   Thanks.


We have Windows Server 2008 installed. We need to take backup of folder from a desktop on LAN. The Folder is not shared. Is there any tool or software or   Schedule can be made which should automatically take the backup of that folder date-wise & make a copy on server?  Can we do it through the "Schedule Tasks option"? The desktops have Windows   Vista/Window 7.

We have a machine running Windows Server 2008, and we need to take backup of folder from a desktop on LAN. This folder is not shared.   Is there any tool or software to do this, or can a scheduled task be made which should automatically take the backup of that folder date-wise & make a copy on server? Ie can we do it through Schedule Tasks option ?  Desktop systems have Windows Vista/Windows 7.


I've seen an interesting effect in the Java tagged questions, which are the ones I browse more often - usually a good answer will get 5 upvotes, but I often see answer from user with high reputations getting much more than that, and a comparable good answer from someone that is starting now won't get as many upvotes.  This is just my unscientific impression. But was this noted by someone else? Do users with high reputations usually score high on their answers because these answers are always better, or because people tend to get those answers for granted because they come from users with high reputations?   If all of a sudden Jon Skeet created a fake profile to answer questions, would this profile get on average as many upvotes as he usually gets?

It's not that I feel bitter when somebody else's answer is upvoted above my own, but it's when a user with a high rep answers a question and their answer seems to attract an immediate barrage of upvotes.  Now I'm not saying that these votes are always unwarranted, but by simply observing this behavior, I think the system seems flawed.    The concept of reputation (or at least one of the concepts) is to give users a sense of trust in the reputed user's answers.  But this should be trust, not blind faith.  I know that this problem doesn't exist for every question asked on SO, but it's definitely present.  I'm sure this is a contentious question, as it might seem overly critical, but does anybody else agree with me and, if so, does anybody have any thoughts on how this problem could be alleviated? It's a great shame when a new or less active user's answer is stifled by the reputation-rich user's answer.


I am using a SQL 2008 database (not R2 sadly but have also tested this on an R2 database server) and have an ELT process running.  Data is extracted from source and loaded to staging tables in the destination DB, and then the transform processes are run.  On Tuesday (26 Nov) for no known reason, the procedure which 'shreds' the staging data for providers into the relational tables went from running approx 9 per second to one every 5½ minutes.  No parts of the database, ELT process (not a typo!), database server etc were changed.  With around 800 records every night (and up to several thousand) this single step of the process has gone from taking just over a minute to potentially taking just over 3 days (this doesn't happen in practise of course because we notice and stop the long running job).  This happens even if I manually run the code which is within the procedure rather than letting it run as part of SSIS, and the same happens if I run through the code for just one record rather than letting the loop go through.  By sheer chance I happened to discover that if I ran the following code against the provider staging table and the provider destination relational table, suddenly my ELT process runs as normal again and zips through everything:  update statistics tblProviderStaging with fullscan update statistics tblProvider with fullscan   My question (sorry for the journey to get here) is why would I have to run this manually every morning?  I can't even run it before the ELT as it makes no difference - only affects the process if I run it while the process is slowly churning through.  Presently I am running this at 7am every morning (SSIS kicks off at 6:30).  Auto Update Statistics and Auto Create Statistics are both set to 'True'.  I have never, in my limited experience, come across a scenario where I have to manually run this every morning?  And the fact that I can't just run it either but have to run it while the ELT is still running?  We have tried running the SSIS package from a different server, against a different destination database server (restored the DB to another DBS), have checked all indexes, I/O performance is running as normal, there is no undue server load happening while this runs (it was running about 18% capacity and nothing to speak of on any of the performance metrics).  The staging table in question has just over 12million rows and uses up just over 1.5GB of space (including index size).  The destination table in question has 430k rows and uses around 140 MB of space (including index size).  This has not changed significantly.  If there is any more information I need to provide please let me know but I'm shooting into the dark here so I don't know what is helpful and what is just in the way.  If anyone has any ideas of places and things to check to see why I am having to do this please shout!

I am using a SQL 2008 database (not R2 sadly but have also tested this on an R2 database server) and have an ELT process running. Data is extracted from source and loaded to staging tables in the destination DB, and then the transform processes are run. On Tuesday (26 Nov) for no known reason, the procedure which 'shreds' the staging data for providers into the relational tables went from running approx 9 per second to one every 5½ minutes. No parts of the database, ELT process (not a typo!), database server etc were changed.  With around 800 records every night (and up to several thousand) this single step of the process has gone from taking just over a minute to potentially taking just over 3 days (this doesn't happen in practise of course because we notice and stop the long running job). This happens even if I manually run the code which is within the procedure rather than letting it run as part of SSIS, and the same happens if I run through the code for just one record rather than letting the loop go through.  By sheer chance I happened to discover that if I ran the following code against the provider staging table and the provider destination relational table, suddenly my ELT process runs as normal again and zips through everything:  update statistics tblProviderStaging with fullscan update statistics tblProvider with fullscan   My question (sorry for the journey to get here) is why would I have to run this manually every morning? I can't even run it before the ELT as it makes no difference - only affects the process if I run it while the process is slowly churning through. Presently I am running this at 7am every morning (SSIS kicks off at 6:30). Auto Update Statistics and Auto Create Statistics are both set to 'True'.  I have never, in my limited experience, come across a scenario where I have to manually run this every morning? And the fact that I can't just run it either but have to run it while the ELT is still running? We have tried running the SSIS package from a different server, against a different destination database server (restored the DB to another DBS), have checked all indexes, I/O performance is running as normal, there is no undue server load happening while this runs (it was running about 18% capacity and nothing to speak of on any of the performance metrics).  The staging table in question has just over 1.2 million rows and uses up just over 1.5GB of space (including index size). The destination table in question has 430k rows and uses around 140 MB of space (including index size). This has not changed significantly.  If there is any more information I need to provide please let me know but I'm shooting into the dark here so I don't know what is helpful and what is just in the way. If anyone has any ideas of places and things to check to see why I am having to do this please shout!  Please note we have run checkDB which has not shown any issues in the DB.


I'm trying to make an app that when opened will play an audio file that is contained in the app, but i have no idea how to do it. I know this is really vague and I apologize but any help would be awesome.   This other question covers high level how to make an app, but I can't figure how to actually make the shell.      Is there a guide or sample code to show how to take an actual file and actually play it in AppleScript framework?

I've got an applescript that I use to open files such as test.txt in vim, using the terminal.  I usually open a file by right-clicking it an selecting the service open in vim (this service is created by me and basically runs the applescript).  How do I build an actual program, that can be set in the "open with" option for a file?  This way, when I double click test.txt, the applescript gets run and the file gets opened in my vim in terminal.app.  I would also like to create custom icons that will be applied to all files I open using this app (using the "Change All..." button).  Where would I begin? Is this easy, because I'm just a novice -although I love programming and would spend much to to get to know all that is needed to do this.  the code is:  on open this_item      tell application "System Events"         if (count (processes whose name is "Terminal")) is 0 then             tell application "Terminal"                 activate                 do script with command "vim " & (POSIX path of this_item) in front window             end tell         else             tell application "Terminal"                 activate                 tell application "System Events" to tell process "Terminal" to keystroke "t" using command down                 do script with command "vim " & (POSIX path of this_item) in selected tab of the front window             end tell         end if     end tell  end open


I downloaded an APK and when I try to install it, the "install" button is completely unresponsive.  I have gone into the settings and enabled "Unknown sources" in the security section.  Is there something else I need to do?  I'm using a Galaxy S5 with Kitkat 4.4.2, unrooted.

I'm trying to sideload an application, as seen in the picture below.    I have allowed the installation of applications from unknown applied actions in settings, but I can't seem to press the install button. The cancel button works correctly and installing applications via adb install works correctly. What's the problem?  EDIT: For those who have this problem, using ChainFire's  will correct it because the app uses hardware compositing, and Android doesn't notice a "layer" on top of the current screen.


I've been running ubuntu 16.04 LTS for some months after upgrading from the previous LTS version.  Recently I've run into problems with software updater failing with the message "failed to download repository information".  I've read through some similar questions and tried their suggestions, i.e.  sudo apt-get autoclean sudo apt-get clean sudo apt-get autoremove   I've also tried different download sources from Software & Updates -> Ubuntu Software panel including the one proposed by "Select Best Server".  None of these have worked in fixing the problem.  Here is what I get when I run sudo apt-get update:  $ sudo apt-get update Get:1 http://mirror.clarkson.edu/ubuntu xenial InRelease [247 kB] ... Fetched 571 kB in 0s (778 kB/s) Reading package lists... Done W: GPG error: ...: At least one invalid signature was encountered. W: The repository '...' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.   (same message occur with other servers)  Any suggestions on what next to try?  Thanks, Glenn

apt-get update after upgrade - I get following message  W: GPG error: http://archive.canonical.com/ubuntu xenial InRelease: At least one invalid signature was encountered. W: The repository 'http://archive.canonical.com/ubuntu xenial InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial InRelease: At least one invalid signature was encountered. W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-security InRelease: At least one invalid signature was encountered. W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-security InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-updates InRelease: At least one invalid signature was encountered. W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-updates InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-proposed InRelease: At least one invalid signature was encountered. W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-proposed InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://ua.archive.ubuntu.com/ubuntu xenial-backports InRelease: At least one invalid signature was encountered. W: The repository 'http://ua.archive.ubuntu.com/ubuntu xenial-backports InRelease' is not signed. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details.   Tried   sudo apt-get clean sudo mv /var/lib/apt/lists /tmp sudo mkdir -p /var/lib/apt/lists/partial sudo apt-get clean sudo apt-get update   It did not help.  My current source.list:   ###### Ubuntu Main Repos deb http://ua.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse   ###### Ubuntu Update Repos deb http://ua.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse  deb http://ua.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse  deb http://ua.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse  deb http://ua.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse   ###### Ubuntu Partner Repo deb http://archive.canonical.com/ubuntu xenial partner


As described in the title, how do I make sure there are no liability when I buy a share of a company listed in the NYC or London stock exchange? What is the process and the terms to look for that can help me assess the liability involved?

I know it's a silly question before I ask but let's ask it anyway:  Let's say that X buys 10 shares of a public company Y in the stock market.  Let's also assume that Y, at some point, goes bust while X still owns the 10 shares.  Can X, along with the other shareholders, be considered liable for the debts accumulated by Y?


When clicking a button my faktura.php script fires. What is supposed to happen is getting data from my database with SQL and echoing that data. But on the Execute function of PDO the error "An expression of non-boolean type specified in a context where a condition is expected, near 'AND'." occurs.  I have tried running my query in SQL and it works but inside the script it does not.  Also to specify I'm using database.php once before when logging in to the site with another script.  faktura.php <?php  session_start(); require("config/database.php"); $fakturaView = "myView";  if(isset($_POST['fakturaBtn'])){      $fakturaNr = 50163;     $userID = 144;      $stmt = $pdo->prepare('SELECT * FROM :fakturaView WHERE :fakturaNr AND :userID');     $stmt->execute(['fakturaView' => $fakturaView, 'fakturaNr' =>  $fakturaNr, 'userID' => $userID]); //Where the exception occurs     $faktura = $stmt->fetch();      echo $faktura['userID'];     echo $faktura['fakturaNr']; } ?>   database.php <?php $host = 'myhost'; $db   = 'mydb'; $user = 'myuser'; $pass = 'mypass';  $dsn = "sqlsrv:Server=$host;Database=$db"; //$dsn = "sqlserv:host=$host;dbname=$db;charset=$charset"; $options = [     PDO::ATTR_ERRMODE              => PDO::ERRMODE_EXCEPTION,     PDO::ATTR_DEFAULT_FETCH_MODE   => PDO::FETCH_ASSOC,     PDO::SQLSRV_ATTR_ENCODING      => PDO::SQLSRV_ENCODING_UTF8, ]; try {      $pdo = new PDO($dsn, $user, $pass, $options); } catch (\PDOException $e) {      throw new \PDOException($e->getMessage(), (int)$e->getCode()); } ?>

Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) {     var_dump($stmt->fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"


Let's suppose that a single battery is connected with a wire, which does not have resistance. Electrons will start to flow , in reality, with a wire with resistance, a potential difference would be generated across it. The current would build up until the potential difference is equal to the voltage of the battery. In the case in which potential difference is not created by the wire because there is no resistivity, the potential difference across will immediately become equal to that of the battery.

Why doesn't current pass through a resistance if there is another path without resistance? How does it know there is resistance on that path? Some clarification:  I understand that some current will flow through the resistance. A depiction of this phenomenon through Ohm's laws does not answer the 'why' part of the question as it does not illuminate the process behind this phenomenon. There seems to be disagreement among the answers on whether the charge repulsions are enough to cause this effect. Cited research would be appreciated to resolve this issue. To refine what I mean by this question, I think I should give an example of why I am curious as to the causal background of this phenomenon. If charge repulsions do in fact repel 'current' in the example of the short circuit, then why does the same phenomenon not happen in other parallel circuits. (Again, I know that not all circuits behave ideally) I believe the question is expressed in the most straightforward way possible. This should, however, not affect the scope of the answers. I do not wish to see or think on the level of an electron as circuit behavior always includes a cumulative effect due to the nature of electrostatic interactions.


I know this is a potentially silly question but thinking about how both can fly in the newer versions of their respective franchises (and  from the official Doctor Who tumblr), I just have to ask:  Was the R2 design inspired by Daleks?

Looking at R2-D2, I can't think of any robots I've seen in science fiction that vaguely resemble R2D2's design.  What was the inspiration for the design of R2-D2?


Similar to .  I was helping a user (through comments) with a question, and I believe a question was closed as a dupe for a wrong reason. Then, I read the message:    So, we already established there was a question, possibly even a very similar question, but we want to encourage the user to ask a new question? This seems backwards, and a great way to earn users the ability to either learn to ask, or to mess up and ask ANOTHER question that may get closed.  I propose that it changes to say to edit the question to include more details. For example, maybe it's a problem with Product A on Platform B, but the duplicate is for Product A ver 2 on Platform C? I believe it could help users make constructive edits to their content on their own, and hopefully reopen the questions not as a duplicate, if done correctly.

The new closed-as-duplicate banner says:     This question has been asked before and already has an answer. If those answers do not fully address your question, please .   I think it should instead say     This question has been asked before and already has an answer. If answers there do not fully address your question, please  or  to the pre-existing one.   — to discourage re-re-asking the same question. (I also changed "those answers", which has no plural , to "answers there", which doesn't need one.)    As of September 19, 2013, the original text quoted above has returned here.


I've been up and down the indexes but I can't seem to find this. There are monsters that are vulnerable to adamantine, silver, and I think cold forged iron, but I can only find rules for the creation of silvered weapons (add 100 gp to the cost).  What is the cost of an adamantine weapon?  What is the cost of a cold forged iron weapon (or did I just make that up)?  I have the DMG, the PHP, the MM, and Princes of the Apocalypse - are the rules for this in any of those books and I have just missed it?

In the Monster Manual, gargoyles, golems, helmed horrors, and xorns all enjoy either immunity or resistance to:     bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't adamantine   Is it actually possible to obtain a nonmagical adamantine weapon?   Although the Dungeon Master's Guide describes adamantine armor (p.150) and Daern's instant fortress (p.160) as being made of this metal, and provides an AC for destructible adamantine objects (p.246), there's no mention of adamantine weapons. The creation spell (PH p.229) can produce an adamantine weapon that lasts for a single minute. The true polymorph spell (PH p.283) can't turn a regular weapon into adamantine, but it might be able to  for an hour. The only way to obtain a (somewhat) permanent adamantine weapon in the game seems to be to loot one from drow elves (MM p.127). A PC (perhaps even a drow) with proficiency in smith's tools could presumably craft a nonmagical adamantine sword during downtime at 5gp per day (PH p.187), except that unlike silvered weapons, there's no pricing for adamantine.   It's seeming like mugging an NPC drow is the only by-the-book way to tool up against gargoyles.


I'm having a hard time getting regex matches to work in a bash case statement.   Example code:  #!/bin/bash                            str='    word1 word2'  echo "With grep:" echo "$str" |grep '^\s*\<word1\>'  echo "With case:" case "$str" in     '^\s*\<word1\>') echo "$str" ;; esac   The example works with grep, but not with case... I'm confused, because some simpler regexes work with case. Does case use a different syntax for regex? Am I just not escaping things properly?

I wrote a regular expression which works well in a certain program (grep, sed, awk, perl, python, ruby, ksh, bash, zsh, find, emacs, vi, vim, gedit, …). But when I use it in a different program (or on a different unix variant), it stops matching. Why?


I've been due a "Yearling" badge on Chemistry  for days and not received it.

I just noticed that I've been a member for 1 year and 2+ days. I hovered over the 1 year text to see the date. I have exactly 200 rep.  I found multiple questions about the Yearling badge not being awarded, but the users hadn't quite reached the 1 year mark yet.  I thought maybe I needed more than 200 rep, but the badge description says at least 200.  So perhaps the association bonus doesn't count? Or perhaps the description is incorrect and should read more than 200. Or perhaps the badges aren't awarded in real time and I have to wait for some scheduled calculation?   says that rep > 200 is required. However,  says rep >= 200 is required. And  says the association bonus does count, but rep > 200 is required. A comment on  says the calculation is done nightly.  Just curious. Why haven't I received my Yearling badge for meta? If I need more than 200, the description should be corrected. And does that mean I have to wait another whole year?  Updated  If we consider the comment by Sha Wiz Dow Ard and take the definition of earn literally, we didn't earn our first rep point. But that is misleading because what about rep that you earned and then gave away as a bounty (or lost by other means)? You still earned it.  For reference, this is the description at time of writing.     Active member for a year, earning at least 200 reputation    It seems that it is calculated on how much you have and not how much you earned. So you need to have rep > 200. And thus, it should be explained that way.  I think the description on the  and the description in  should be updated. I know I can edit the answer, but while I now have anecdotal evidence, I am still not exactly sure how the calculation is done behind the scenes.  For reference, the wiki answer has this description at time of writing.     Have a reputation ≥ (number of years as an active user) × 200


I have been told always that  $F$ is directly proportional to acceleration.  My question is that for finding such a relationship there should be source that produces desired force and in which the force can be adjusted i.e. Twice, thrice and more. But the problem is initially before the discovery of laws of motion how can one say that a force is twice the other, how can he even judge the relationship between two forces without knowing the quantitative definition of force?

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


Recently, for some reason I'm having trouble moving items in my inventory. Instead of just clicking to select, then clicking once again to deselect; I have to click and hold then move it to the appropriate inventory slot and let go of my mouse button. Shift-clicking things won't work either as well as right clicking to drop one item off a stack in the inventory or chest or crafting/furnaces. I'm running in Minecraft 1.8.1 and using a Windows Vista/ Windows 7. This has also slowed down my map making process and stopped my YouTube videos from being put up at all.   If anyone can help me that would be nice.  P.S. I've quit and restarted mc, as well as removed it from the computer and its memory and reinstalled but the problem persists. If anyone can help please do.

I have a laptop that has Windows 8 which I use for playing Minecraft. However when using the inventory, I have to hold my mouse to drag and pick the items and I don't like that.   I have tried switching mouses but that didn't work, is this possible to fix?


I need to ascertain if it's possible to complete a project in Blender exclusively (my preference) or if I need to use an OpenGL API to write an external application for my needs.    If the project can be completed in Blender, then I need to be able to color pixels on a 2D image using Python within Blender.  If that can be done by pixel coordinate, then my project can be completed in Blender.    Because the Blender API documentation is laid out by structure of API itself rather than by task (a good thing!) I'm having trouble locating the part of it that I'm interested in.  Because usually Blender isn't used for this, I can't find any discussions that point me in the right direction.  edit: I see that bpy.ops.paint.sample_color() can be used to sample a color on an image; I'm just having trouble finding a way to directly manipulate pixels.  edit2: I should mention that I also found  in old documentation, but searches for something similar in the current documentation come up empty.  last edit:  includes a script for pixel level access to images.  however, it is dependent upon classes that are not a part of the Blender API and do not appear to be part of the Python repository.  The colour class does not inherit as_tuple, which in turn only seems to be part of the decimal class.    So, I'm not listing it as an answer because there's no way to know with certainty just what the author meant when those classes are used.

I'm currently trying to extract textures from a binary file, and ideally I'd like to save each texture to a file or embed in the .blend file. However, before saving an image, I need to be able to create an image in memory from an array of pixel data.  The PIL library contains the kinds of functions I need to use, but it is not included with Blender. Is there anything similar to PIL in Blender? bpy.ops.image seems to be close to what I need, but lacks necessary pixel set/manipulation functions.