I have the latest Mint installation on an Intel Atom D2550 CPU, which is a dual core processor. When Hyper Threading is enabled in BIOS lscpu reports 4 cores (0-3), which I can also see crunching away in System Monitor.  However, when I turn Hyper Threading off in BIOS lscpu reports:  CPU(s):                2 On-line CPU(s) list:   0,2   So the number of real cores is 2 (which is correct) but their numbering is 0,2 instead of the expected 0,1. The System Monitor also shows 2 cores but one being (always) inactive, like this:    When I list the processes by processor I get half of the processes on P0 and the rest on P2.  How can I report the correct Core/Processor numbers?

One may find a lot of info about how to inspect physical cores layout in a running linux system, but I'm wondering how the physical cores are assigned a cpu id in the first place.  After experiencing on a couple of machines, it appears to me that the assignment is deterministic (i.e. booting from the same hardware will result in the same cpu ids assignment to physical processing core). Also, it seems to me that the assignment works somehow "round-robin", such that two cores with nearby numbers are physically far away from each other. For example, in one server I'm working on (2 sockets x 8 cpus x 2 hyperthreading,  x86_64): cpu0 is on socket 0, cpu1 is on socket 1, then cpu2 is again on socket 0 but it's on a different physical core from cpu0; ... goes on like this until cpu15, then cpu16 is hyperthreaded on the same physical core as cpu0.    If this is deliberate as it seems, do you know of anywhere I can find this behaviour documented? What's the rationale behind it?  I'd expecially appreciate any reference to documentation or lkml post, but even a pointer to the right place in the sources could be helpful.


I need to match words of certain criteria, but only if they are within quotes*. I'd wish to do this via Regex.     I think there's a "jQuery plugin for that". Google for jQuery basic arithmetic plugin.   Let's say I have the above text as the subject of a Regex search, and I'd wish to find the word "plugin", if it is inside quotes. I do not need to match the second "plugin" word at the end of the sentence, since it's not within quotes, but (edit) I do need to match multiple occurrences of "plugin", were they enclosed by quotes (even if there are multiple occurrences inside a single quotation block).  With a working expression, the following words (highlighted with bold text) should be matched:     I think there's a "jQuery plugin for that". Google for jQuery basic arithmetic plugin.   I have a theoretical solution that would use a positive lookahead to determine if there is an even or odd number of quotes, and match the word if that number is odd.  What regular expression should I use to accomplish this?  *double quotes only    I use this expression to match words that are not surrounded with quotes, following a very similar logic:  \bplugin\b(?=[^"]*(?:"[^"]*"[^"]*)*$)

I have a value like this:  "Foo Bar" "Another Value" something else   What regex will return the values enclosed in the quotation marks (e.g. Foo Bar and Another Value)?


I've come across a lot of posts handling noises of batteries, computers, chargers,... but what I'm experiencing, I've never seen before.   I'm working on a LG Ultrawide monitor 29UM65 (ratio 21:9). Whenever I display anything with lines on a regular distance (f.e. excel, other table-based applications or webpages), my monitor starts making a high pitch noise. It's very noticable for me, but the majority of the people in the office don't notice this.  What I'm curious about is what could be the cause of this, technically? It's as if the refresh rate of the monitor could make a difference, although I haven't found how to change that for this one (probably not possible at all).  Any ideas what could be causing this behavior and if there's something that could be done to resolve it?

Under normal circumstances, the Dell E2310Hc LCD Monitor seems to work fine.  However, when I display an large array of hash characters ("#") a faint buzz can be heard from the monitor.  It appears to be correlated to the periodic pattern somehow:   Increasing the size of the pattern (i.e. changing the font size) changes the frequency of the noise. Adding more pattern enhances the sound. Increasing the contrast increases the intensity of the sound. Color does not seem to affect the sound. Increasing the contrast of the pattern w.r.t. the background increases the sound. Edit: Horizontally tiled patterns make little contribution, but vertically tiled patterns cause the majority of the noise.   What could be causing this?  I also noticed the same issue with another LCD monitor but it's a lot less perceptible.


I am using Overleaf to compile .tex files but sometimes it take too much time.  Is there a software that can compile .tex files instantly??

Usually I don't mind about LaTeX's compilation speed, because a paper of less than 20 pages is compiled rather fast.  However, I am working on a large document - A report with more than 80 pages.  Compilation times are starting to slow me down.  I saw the couple of answers here on this topic, but most of my graphics are external and I don't use Tikz.  As a matter of fact, I'm not sure what's slowing the compilation down, other than the amount of text and required layout.   What's your best speeding-tex-up trick, other than externalizing graphics and pre-compiling the preamble? How can I know what's slowing TeX down?


:  You'll remove most of the wax and residue by rinsing the apple under cool water  Is this true? Ideally, I'd like for some actual scientific research that compares various methods for washing/cleaning apples.

I love apples. I like to eat them with skin as it has plenty of fiber in the skin. But apples are famous for wax and pesticides on the skin which I don’t want to ingest. I have read many articles on the web and suggestions for removing the wax from the surface.   These suggestions include soaking in vinegar or hot water and other methods. They suggest that soaking apples in vinegar removes the wax that can be seen in the vinegar. I have done that, but never seen any residue of wax in the vinegar.   So I have set aside a new kitchen sink Scotch-Brite scrubber for this purpose and been scrubbing the apple skin under running water before eating. I think this method should remove most of the wax and pesticides. I would like to hear your input.


Appending to list can be possibly done in two ways:  1)  mat = [] for i in range(10):     mat.append(i)   or   2)  mat = [] for i in range(10):     mat += [i]   From the :     The method append() shown in the example is defined for list objects; it adds a new element at the end of the list. In this example it is equivalent to result = result + [a], but more efficient.   The documentation suggests that approach 1 is more efficient. Why is it so?

What is the difference between:  some_list1 = [] some_list1.append("something")   and  some_list2 = [] some_list2 += ["something"]


I encountered with these sentences :  No work tomorrow because holidays!  Of course evolution is true, because science.  "BECAUSE + NOUN" is a new usage to me. I think 'because' has been used here as a preposition. Could you please explain this usage?

I've noticed an interesting usage where "because [noun]." is used at the end of a sentence to mean "because [...everything that word implies. Nothing more needs to be said]". It often has a wry or sarcastic tone that implies the subject considers the word to be a blanket explanation for something.   An example might be "She couldn't drag herself away from the computer because internet.", the implication being that the Internet is seductive. Another example is  where "because sex" is used to imply that a group of people have a simplistic attitude to how sex affects people's lives.  The odd grammar causes a clang in my head when I read it, but of course that is the point; the author is showing how this word will stop the conversation dead in its tracks, so it is quite effective.   Is this a new or emerging usage, or have I just started noticing it?


I have different classes with same property names.  I get data and assign to those properties based on conditions, for example  if age<10   var ClassA = new ClassA(); ClassA.Percent =25;   ClassA.StandarValue=1000;  if age > 25   var ClassB = new ClassB(); ClassB.Percent =15;   ClassB.StandarValue=3000;   I can write a method  public T ReturnMyCustomClass(int age) { if age< 10       return (T)(object)ClassA;  if age> 25      return (T)(object)ClassB; throw new Exception(); }   I can assign that as  var result=ReturnMyCustomClass(26);  Question:  if (result is ClassA)      how can i assign  var myClass=new result(); --this is wrong, but how can I create an instance from returned object above?

One may not always know the Type of an object at compile-time, but may need to create an instance of the Type.    How do you get a new object instance from a Type?


Newtonian gravity and electrostatics have the same form; this analogy is extended when we look at full dynamic electromagnetism, and correspondingly "gravitomagnetism". We are quite capable of observing higher-order general relativistic effects, because mass (and energy) attracts more of itself and we get very large quantities of it. It would be difficult to isolate a net charge on planetary scales, though -- the whole Sun has a charge of 77 Coulombs. How plausible is it to consider that classical electromagnetism is just the low-charge limit of a larger theory, that curves spacetime (or something like that -- in some way that only affects charge) in a more complicated, dynamical way?  I'm aware that, as electromagnetic waves move through space, they would carry energy themselves, bending spacetime somewhat. I lack the GR background to understand how that behaves, though. My first thought is that - if a single photon moved through space, its energy is so small as to only bend spacetime a very small amount, with radii of curvature much less than its own wavelength. As the energy of the photon goes up, and the radius goes down, so does the wavelength. So to see nonlinear behavior would require enormous numbers of coherent photons.

I understand that electromagnetic fields carry energy, and this energy curves spacetime gravitationally.  That's not my question.  I'm asking if anyone has tried to formulate electromagnetism in such a way that EM charges impart an EM geometry onto spacetime that is only experienced by EM charges.  That is, the EM geometry of spacetime would be a function of charges such that charges themselves produce EM curvature and the motion of charges produces EM torsion, and that charged objects move according to how their charge (electrical or magnetic, positive (N) or negative (S)) experiences that geometry.  For example, a positive electric charge would appear as a "hill" to other pe charges, a "valley" to ne charges, and either a left or a right hand "whirpool" to either nm or sm charges (I'm not immediately sure which would match with which) if it had some velocity.  This formulation would be directly analogous to how energy creates gravitational curvature in spacetime (and if one accepts Einstein-Cartan, gravitational torsion comes from intrinsic angular momentum), and then this resulting geometry is experienced by the energy in that region.  If Einstein is correct about gravity, would it be too much of a stretch to suppose separate metric functions for each of the fundamental forces, considering that they were a single force moments after the big bang?  I'm not currently concerned with the quantum mechanical approach to electromagnetism.  I understand that to be truly fundamental, EM has to be formulated quantum mechanically, but right now I want to limit my question to macroscopic charged objects.


Now my query, SP  is breaking if i enter         ssds ' " '  sdsds   or  just       ' " '   this is for mainly search functionality.  Which will be the best way to avoid all possibilities.  eg: str_replace  or better ways.. write some function!

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 want to make a digital circuit that produces a pulse 1 clock period in duration whenever I see the input to the circuit go HIGH. I only have a flip-flop, an AND-gate, and an inverter. How do I achieve this?  I'm familiar with edge detector circuits like the ones seen , but such circuits don't necessarily produce an output that lasts for 1 clock period.  My first attempt at a solution was the Rising Edge Detector circuit found in the linked above document. Here's the picture:    However, this circuit will not produce a pulse of sufficient duration:    The stage after this circuit is a counter that should increment when it is enabled by the pulse generated in the circuit to be designed.  Edit: This problem cannot be solved by a traditional edge detector circuit since it doesn't produce a 1 clock cycle duration pulse.

The circuits I describe are entirely made of 7400 series logic gates (7402, 7404 and 7408 ic). I'm trying to build a rising (positive) edge pulse detector using logic gates.  The following circuit should work in theory:   (see )  I do not expect the short output to be seen through a LED so, to test it, I make it trigger an SR latch to its up state:    However, it doesn't have effect on the latch. So I added an inductor to delay the input to the NOT gates in the pulse detector circuit and it worked:   But now I can see the short flashing output through a LED which I should not because it would mean it is too long to work with a circuit like that:   Which intends to toggle the D Latch output on each clock rising edge (Note that this is a D Latch not a D Flip-flop)  And anyway there is no place for inductors in integrated circuits so there must be a way to do this only with logic gates. Can someone solve this mystery?  BTW It does not show in my schematics but I did put 10K pull-down resistors where there might be floating pins.


I'm currently trying to store results from a calculation in a four dimensional list. This list is an instance variable of my class. def __init__(self):         self.data = {}         # Create 5 x 8 x 2 x 4 matrix         self.data_list = [[[[0.0] * 4] * 2] * 8] * 5  I'm trying to update this list in a nested for loop    def calculate_kpis(self, counter):         # Loop over all velocity ranges         for distance in range(0, 5):             # Loop over all distances             for velocity in range(0, 8):                 # Loop over all relevances                 for ego_relevance in range (0, 2):                     if ego_relevance == 0:                         # ======================                         # Overall                         # ======================                                                 # Extract KPIs from JSON                         KPIs = [                             self.data['Velocity ranges'][velocity]['Tables'][distance]['Overall']['FN']['Hit']['value'],                             self.data['Velocity ranges'][velocity]['Tables'][distance]['Overall']['TP']['Hit']['value'],                             self.data['Velocity ranges'][velocity]['Tables'][0]['Overall']['FP']['Hit']['value']                             ]                                                 # Calculate KPIs                         KPIs = self.get_KPIs(KPIs)                         # Average the KPI results                         if counter != 0:                             for index in range(len(self.data_list[distance][velocity][ego_relevance])):                                 KPIs[index] = round(((self.data_list[distance][velocity][ego_relevance][index] + KPIs[index]) / 2.0), 2)                         # Store KPIs in matrix                         for index in range(0, 4):                             self.data_list[distance][velocity][ego_relevance][index] = KPIs[index]  Anyways, I'm having trouble to update only one specific element in the list. Trying to update a single element by the following statement leads to an update of every list element: self.data_list[distance][velocity][ego_relevance][index] = KPIs[index]  Would could be the reason for this?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


This must've been answered before somewhere but I couldn't find a duplicate. I just noticed that the  had deleted and locked  (which has since been undeleted and unlocked by a staff member). I realize that there's a process (i.e., Roomba) for auto-deleting questions based on some criteria but I'm not aware of a similar process for auto-deleting answers (except spam and the like). So, my question is: When/why exactly does that happen?

When flagging, there are two special case options: spam and rude or abusive.   What is spam, and when should I flag content as such? What is considered offensive, rude or abusive content? How does the spam flag differ from the rude or abusive flag? What is the effect of these special flags? When are these flags removed?


Using Mathematica I notice that  $\cot^2(\pi/2)=0$  $\cot^2(\pi/3)+\cot^2(2\pi/3) = 2/3 $  $\cot^2(\pi/4)+\cot^2(2\pi/4)+\cot^2(3\pi/4) = 2$  $\cot^2(\pi/5)+\cot^2(2\pi/5)+\cot^2(3\pi/5)+\cot^2(4\pi/5) = 4$  $\cot^2(\pi/6)+\cot^2(2\pi/6)+\cot^2(3\pi/6)+\cot^2(4\pi/6)+\cot^2(5\pi/6) = 20/3$  It seems that the summation of below series  $\cot^2(\pi/k)+\cot^2(2\pi/k)+\cdots+\cot^2((k-1)\pi/k)$  is an integer when $k$ and $3$ are comprime and $N/3$ when $k$ is multiple of $3$. Why is that?

$$f(n)=\cot^2\left(\frac\pi n\right)+\cot^2\left(\frac{2\pi}n\right)+\cdots+\cot^2\left(\frac{(n-1)\pi}n\right)$$ then how to find limit of $\dfrac{3f(n)}{(n+1)(n+2)}$ as $n\to\infty$? I don't know any series like that. Riemann sum is not working. what to do?


Let me start of this question by clarifying some things about the population of wizarding Britain. According to the answers to this , nobody asserts that the population of wizarding britain exceeds more than a few thousand. Yet there seem to be thousands of people who work in the Ministry of Magic based on this excerpt from The Goblet of Fire about the Stadium for the Quidditch World Cup.     Seats a hundred thousand... Ministry task force of five hundred have been working on it all year.   We assume of course the country would have come to a standstill if a significant portion of employees work had to stop work for a year to work on a stadium so the total number of employees for the ministry should at least be several thousand.  So how can an economy work if almost everyone is employed by the government, i.e the amount government employees get paid in tax is less than the amount they earn so the government will forever be running a deficit, and since there doesn't seem to be an international banking cabal in the wizarding world (since the goblins run the banks) won't the government just go bankrupt?  Another point is familys like the Malfoys and the Blacks are super rich, without seeming to do any work at all, based largely on inherited wealth. But the only way that works is if people have always been fiscally conservative for generations, which would have led to a lack of money in the economy and thus bankruptcy (since the concept of inheritance tax doesn't seem real in the wizarding world). One could assume you accumulate wealth by running significant amounts of businesses, but literally every wizarding business seems to be located on Diagon/Knockturn alley or Hogsmeade - and most if not all seem to be independently run Madame Malkins - Robes, Floreans Ice Cream, Pudifoots Teashop, Olivanders wands etc. and not run by some conglomerate owned by one of these rich familys, so how do they make there money?

The annual student intake of Hogwarts seems about 100. Since in book 7 Hogwarts is declared mandatory for all children, this means that the total magical population of Britain cannot be much more than 10,000.  How do these people make a living?  All jobs mentioned in the books are non-productive occupations (government, stores, sports &c) - not farmers or engineers. There are exceptions - makers of wands/robes/broomsticks - but where do they get the raw materials from?  Who and how "creates goods" in the wizarding world?  Note that if you say "wizards exchange their gold for Muggle money and buy stuff from Muggles (through intermediaries, if necessary)" then you would have to explain where they get their gold: they would either have to mine it, or produce something of value to the Muggles (in which case the separate financial system of galleons/sickles/knuts does not make sense).  PS. A simple issue of maintaining a steam locomotive for Hogwarts express is pretty much insurmountable for 10k people - without Magic, that is. So, I can imagine that the skilled tradesmen can transfigure dirt into raw materials for their trade - except for food, which "is the first of the five Principal Exceptions to Gamp's Law of Elemental Transfiguration".


System requirements for Ubuntu Desktop Edition   2 GHz dual core processor. 2 GiB RAM (system memory) 25 GB of hard-drive space (or USB stick, memory card or external drive but see LiveCD for an alternative approach) VGA capable of 1024x768 screen resolution. . . . ..    My Laptop config:   processor: 1.9GHz RAM: 4GB System Type: 64bit   Now the question is can I use Ubuntu on my laptop with this configuration?  Another question: which version of Ubuntu should I use? Ubuntu Deskop? or Ubuntu Core? If yes then which version?  (Currently I am using win10 pro. I am a web developer)

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


Suppose $S^2$ is the sample variance of a random sample of size $n>1$ from $N(\mu, \theta)$, Where $\mu$ is known, $ 0 < \theta < \infty $ and $E(S^2) = \theta$ I want to find the $Var(S^2)$, how would I go about this? Should I use the fact that $\frac{(n-1)S^2}{\theta}$ follows a chi-square with $n-1$ degrees of freedom or since we have the expectation of $S^2$ should I find the second moment to calculate $E(S^4)$ - $[E(S^2)]^2$

What is the variance of the sample variance? In other words I am looking for $\mathrm{Var}(S^2)$.  I have started by expanding out $\mathrm{Var}(S^2)$ into $E(S^4) - [E(S^2)]^2$  I know that $[E(S^2)]^2$ is $\sigma$ to the power of 4. And that is as far as I got.


I have a few things that I would like to do on Excel:   How do you highlight a row [A-U] if only the first cell A has had text entered in it?  When you enter text in cell A cells B-U have a yellow background? How do you make the highlighting disappear as you fill the cells?  When you enter text in any of the B-V cells, they return to the white background? How do you make certain cells not have a yellow background with a key word?  When you enter "Cats" in cell G, cell H returns to the white background as well as cell G. How do you apply this to the entire Excel sheet?

An Excel column contains a text value representing the category of that row.  Is there a way to format all cells having a distinct value a unique color without manually creating a conditional format for each value?  Example:  If I had the categories bedroom, bedroom, bathroom, kitchen, living room, I would want all cells containing bedroom to be a particular color, bathroom a different color, etc.


I'm trying to run an .mkv video, I even installed the codecs from this page:   But still keep getting this error on VLC player:  No suitable decoder module: VLC does not support the audio or video format "hevc". Unfortunately there is no way for you to fix this.  It plays only the audio.  Help please?

I have tried VLC and totem players but they are not working. I then searched and re-installed the VLC with latest version available, this time I am getting a green layer on the video. Any help?


I ran the following code in order to create a simple presentation.   \documentclass[11pt]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usetheme{default} \begin{document}     %\author{}     %\title{}     %\subtitle{}     %\logo{}     %\institute{}     %\date{}     %\subject{}     %\setbeamercovered{transparent}     %\setbeamertemplate{navigation symbols}{}     \begin{frame}[plain]     \maketitle \end{frame}  \begin{frame} \frametitle{} \end{frame} \end{document}   But, I got the following error.  Sorry, but pdflatex.exe did not succeed. The log file hopefully contains the information to get MiKTeX going again: C:/Users/AA/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log You may want to visit the MiKTeX project page, if you need help.  Error: Command crashed: pdflatex.exe -synctex=1 -interaction=nonstopmode "texstudio_TW8220".tex  Process exited with error(s)   I clicked the C:/Users/AA/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log and it includes the following writings.      2018-04-23 17:47:29,008+0300 INFO  pdflatex - mpm: extracting files from beamer.tar.lzma...     2018-04-23 17:47:32,549+0300 FATAL pdflatex - The installed file does not exist.     2018-04-23 17:47:32,549+0300 FATAL pdflatex - Info: fileName="C:\Program Files\MiKTeX 2.9\tex\latex\beamer\translator\translator.sty"     2018-04-23 17:47:32,549+0300 FATAL pdflatex - Source: Libraries\MiKTeX\Core\Session\findfile.cpp     2018-04-23 17:47:32,549+0300 FATAL pdflatex - Line: 55     2018-04-23 17:47:32,550+0300 INFO  pdflatex - finishing with exit code 1  How can I solve the problem?

I am trying to compile a presentation with beamer on Windows. However, even the most simple example presentation aborts. Instead, I am told:  starting package maintenance... installation directory: C:\Users\admin\AppData\Roaming\MiKTeX\2.9 package repository: http://mirror.physik-pool.tu-berlin.de/tex-archive/systems/win32/miktex/tm/packages/ lightweight database digest: 3a990fd9300abc5d0d8c99b2064abddb going to download 2628706 bytes going to install 346 file(s) (1 package(s)) downloading http://mirror.physik-pool.tu-berlin.de/tex-archive/systems/win32        /miktex/tm/packages/beamer.tar.lzma... 2628706 bytes, 282.04 KB/Sec extracting files from beamer.tar.lzma...  Unfortunately, the package beamer could not be installed.Please check the log file: C:/Users/admin/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log ======================================================================   The log file says:  2017-05-24 13:40:57,040+0200 FATAL pdflatex - Info: path="C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex/latex/beamer/beamer.cls" 2017-05-24 13:40:57,040+0200 FATAL pdflatex - Source: Libraries\MiKTeX\Core\File\win\winFile.cpp 2017-05-24 13:40:57,040+0200 FATAL pdflatex - Line: 286 2017-05-24 13:41:44,697+0200 INFO  pdflatex - installing package beamer triggered by tex\latex\beamer\translator\translator.sty 2017-05-24 13:41:48,400+0200 INFO  pdflatex - mpm: starting package maintenance... 2017-05-24 13:41:48,400+0200 INFO  pdflatex - mpm: installation directory: C:\Users\admin\AppData\Roaming\MiKTeX\2.9 2017-05-24 13:41:48,400+0200 INFO  pdflatex - mpm: package repository: ftp://ftp.tu-chemnitz.de/pub/tex/systems/win32/miktex/tm/packages/ 2017-05-24 13:41:48,633+0200 INFO  pdflatex - mpm: lightweight database digest: 3a990fd9300abc5d0d8c99b2064abddb 2017-05-24 13:41:48,649+0200 INFO  pdflatex - mpm: going to download 2628706 bytes 2017-05-24 13:41:48,649+0200 INFO  pdflatex - mpm: going to install 346 file(s) (1 package(s)) 2017-05-24 13:41:48,655+0200 INFO  pdflatex - mpm: downloading ftp://ftp.tu-chemnitz.de/pub/tex/systems/win32/miktex/tm/packages/beamer.tar.lzma... 2017-05-24 13:41:57,484+0200 INFO  pdflatex - mpm: 2628706 bytes, 290.95 KB/Sec 2017-05-24 13:41:57,504+0200 INFO  pdflatex - mpm: extracting files from beamer.tar.lzma... 2017-05-24 13:41:58,245+0200 FATAL pdflatex - Windows API error 32: The process cannot access the file because it is being used by another process.  2017-05-24 13:41:58,245+0200 FATAL pdflatex - Info: path="C:\Users\admin\AppData\Roaming\MiKTeX\2.9\tex/latex/beamer/beamer.cls" 2017-05-24 13:41:58,245+0200 FATAL pdflatex - Source: Libraries\MiKTeX\Core\File\win\winFile.cpp 2017-05-24 13:41:58,245+0200 FATAL pdflatex - Line: 286   What exactly is happening here and how can I use the beamer package on Windows?


I was wondering if there is any rule in English that forbids us to say A Happy New Year when we wish someone Happy New Year? I know that we just say it like that, but I was trying to find the rule which would explain this. Thank you for your help.

I always use google with double quotes to get the answer for similar questions by looking at results number (assuming that the majority are correct), well, it is not the case here. In these days, we intensively use the statement Wish you happy New Year and Wish you Merry Christmas, Well, I have noticed, even here, that some use (a) before happy and merry and some don't. Which one is correct ? Wish you Merry Christmas / Wish you a Merry Christmas for everybody here.


I have a form with a file input.  <input id="frm-documentForm-documentForm-files" class="required_1" type="file" data-nette-rules="[{"op":":filled","msg":"FILE\/S are mandatory!"}]" required="" multiple="" name="files[]">   And jquery code  $('#frm-documentForm-documentForm-files').change(function() {         $.ajax({             url: "?do=getProperties",             type: 'POST',             data: this,             processData: false,             contentType: "multipart/form-data",             success: function(data) {                 alert("success");             }         });   And when I dump post or files, both are empty. (array())  What do I need to do to fix it?  Thanks for you help.

I would like to upload a file asynchronously with jQuery.     $(document).ready(function () {     $("#uploadbutton").click(function () {         var filename = $("#file").val();          $.ajax({             type: "POST",             url: "addFile.do",             enctype: 'multipart/form-data',             data: {                 file: filename             },             success: function () {                 alert("Data Uploaded: ");             }         });     }); });  File <input type="file" id="file" name="file" size="10"/> <input id="uploadbutton" type="button" value="Upload"/>     Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?


I have this code:  1. bool MyClass::open() { 2.   int fd = ::open("file.txt",flags); 3. }   Does the "::" from the line 2 before calling open means something?

In C++, what is the purpose of the scope resolution operator when used without a scope? For instance:  ::foo();


I am going to apply to graduate programs in the US, so I contacted my professor who advised my master's thesis. He is the most important referee because I did research with him, so I think he understands me well. Moreover, he is a well-known scientist in a very prestigious university in France (top 20 of the world in my field).   At the time, I left France to my home country, he told me that he would help me further my academic career. He actually gave me two recommendation letters afterwards for 2 PhD positions. Sadly, I failed both of them.  Ten days ago, I emailed him if he could give me recommendation letters. He didn't reply for one week, so I wrote a follow-up email. However, I haven't got any responses from him until now. I am so confused because the deadline is December 15th.  Does it mean that my professor has declined my request? Should I wait for him or ask other professors?  NEWS: I just got his acceptance. He was traveling this week so he didn't got my email. Thank you all for your advices.

Last week I emailed a professor from my undergrad whom I was close with to say hi and inform her that my undergraduate thesis had been published. I am currently in a master's program and asked her if she would be willing to write me a letter of recommendation for upcoming PhD applications for next Fall (and it is worth noting that she wrote me a letter of recommendation for the program I am currently in). She has yet to reply and having a letter from her would really strengthen my application. Is it in poor taste to resend her an email, or should I move on? Like I said, I would really like to have her letter as part of my applications.


I just purchased a Windows 8 laptop, and use Speedfan to monitor temperatures. I would like to have Speedfan start with Windows, so I placed a shortcut to the application in the following folder:   C:\Users\Erik\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"  There are several other application shortcuts in there that all start with Windows, but for some reason, Speedfan doesn't want to. This is important to me because I have Rainmeter widgets that, in turn, use Speedfan to display temperatures, and having to manually start it up is a real pain.  How do I make Speedfan start up with Windows 8? Placing it in the startup folder obviously did nothing, so is there a better way?

I have a program that requires administrative privileges to run (i.e. the UAC prompts when it starts)  Can i have this program run at start-up?  its in the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run  but fails to start when i log in.  How do i fix this?


So this is a very minor problem, but it would be nice to fix.  I have a laptop with a 4k screen and a monitor with a 1080p screen which the laptop is sometimes connected too (so GRUB appears on the monitor). On the 1080p screen GRUB text size looks fine, but on the laptop it is very small and you really can't see anything.  Is there anyway to actually make grub scale based on current screen resolution or just have a pseudo if statement, I'm really not too familiar with exactly how grub works any help would be nice.  TLDR: Make GRUB dynamically change text size based on screen resolution.

How do I tell GRUB2 to set its resolution (and also the one passed to the kernel) to the maximum one it can detect at time of boot?


Lets say I created a new coin and mined 1 trillion of them. It isn't on any exchange to get its true value.   But someone on a forum pays me $100 for 100 coins. Now these coins value is at $1 and shows up on exchanges for $1 for each coin. Then I mine another 1 trillion. Am I liable to pay $1 trillion in taxes? How would that work?

Suppose that John Doe mines 100 bitcoin at $0.11 each ($11) and doesn't sell them, but keeps them in a wallet.  Does he pay taxes the year he mined them at the price he mined them for, or does he pay taxes on the value he sells them for — like paying taxes on the $10,000 he receives when he sells them for $100 each?  And how does the cost of electricity factor into this, since each bitcoin (especially now) costs a lot of money to earn based on the price of electricity?


I have seen and experienced reputation 1 at the beginning. But I have encountered a few people where they have already got 101 rep in their wallets without answering or asking even once.  As far as I know, sharing reputation among SE sites wasn't allowed. So, is it that the employees of SE are given 101 rep at the beginning for proper maintenance and such?

I was just awarded +100 reputation on all of my Stack Exchange accounts.  What is this bonus for? It simply says "Association Bonus" on my reputation overview.  Also:   What privileges does the association bonus grant users? Can I lose the association bonus? Does it make my reputation 101 everywhere? Can I earn the association bonus on sites I haven't joined yet? Does it matter which site I earn the 200 reputation on? Will I get an association bonus every time my reputation on a site crosses 200 points? Does the association bonus allow me to answer protected questions? Does the association bonus count towards the reputation cap? Can I get the association bonus if I only have a profile on one site? What else is there to know about the association bonus?


Sci-fi short story where bear-like aliens try to invade Earth but it comes out that excepting hyperdrive technology, (which the author suggests to be primitive near to the wheel concept and not being discovered by us just occasionally) their technology corresponds to what Earthlings had around 19th if not 18th century.  Some unique details:   the story is quite short as far as I remember, maybe 3-5 pages aliens look bear-like their weapons are very close to  as alien ships have only primitive sewerage facilities, the story points a couple of times to how much they stink. at the end of the story, two captured aliens are shocked by the knowledge how much powerful will Earthlings become with the hyperdrive technology they have now (because with exception of hyperdrive Earthlings seem to them the most advanced tech civilization compared to other civilizations they know)

I read a short story (I think, but it might have been a novel), where most races discover a very easy way to travel faster than light at a certain point in their technological development.   What I remember:   The guys in wooden ships bounced around subjugating the people without FTL travel. Earth had never figured out the FTL, and so had poured its effort in a different path, achieving present day technology. The aliens were freaking out about handing the humans FTL travel. The story was told from the point of view of the aliens. I read it in the last 10 years, but there is no telling how old it actually was, although I do remember them mentioning F-18s or F-14s.


I can not understand what s(xx) does in this code.  import numpy as np import matplotlib.pyplot as plt import scipy.signal as sps import scipy.interpolate as spi  # plot cubic cardinal B-spline (knots 0, 1, 2, 3, 4) p = 3 xx = np.linspace(0, p+1, 100) yy = sps.bspline(xx - (p+1)/2, p) plt.plot(xx, yy) plt.show()  # plot cubic non-uniform spline (m=5 DOFs) xi = [0, 1, 3, 4, 6, 7, 8, 10, 11] c = [2, -1, 1, 0, 1] s = spi.BSpline(xi, c, p) m = len(c) xx = np.linspace(xi[p], xi[m]) yy = s(xx) plt.plot(xx, yy) plt.show()   I tried to just run s(xx) part to see what s() does, but it is throwing error s() is not defined, but when I execute the whole code, it works.

Now that it's clear , there is an associated concept that I use all the time without knowing what it really means.   I suppose everybody made once a mistake with parenthesis, resulting  in an "object is not callable" exception. What's more, using __init__ and __new__ lead to wonder what this bloody __call__ can be used for.  Could you give me some explanations, including examples with the magic method ?


So this is going to be a long story. And I will try explain this complex story as simple as I can.  At the beginning I have a single hard disk where I have all my data (1TB).  I now make two new partitions of 100 gb. So all my data is on the 700 and something gb of partition(LET THIS BE MAINDRIVE PARTITION). Of these two new partitions from MAINDRIVE partition One is for my important data(let this be the important Data drive partition) and the other is for the Ubuntu installation(this is unallocated)(let this be ubuntu drive partition). Now I am trying to install and the tutorial asks me to make several partition along side it (swap area , efi(because Ubuntu says it needs EFI partition or something) etc.).NOTE these all partitions come from ubuntu drive partition . At this point I still have some unallocated space from ubuntu drive partition. I do every thing, the install is complete and the computer asks me reboot so I reboot it but it doesn't load anything not Ubuntu nor windows. Just a black screen and on top left a statement which says no boot device available. So I go into boot device options and select boot from efi file i select ubuntu, i select BOOT and then the second .efi file by mistake. And miraculously the os boots and i am using ubuntu. But the problem is that windows is not booting so I try to fix it.so I  formatted the main drive partition(thinking i have a backup of all of my imp. Data on imp. Data drive partition) and created a Windows bootable drive.i load the bootable USB of Windows 10. after loading into the part where it asks you to select which disk partition you want to install your windows on it shows me an error(I'll add a photo of that error if that helps). Then I took a break and thought I'll try to fix it after the break . During the break I remember that I forgot to take an important backup from the maindrive partition which is already formatted so after the panic attack I try to look it up on the internet on how to recover lost data.  And they tell me to STOP using my laptop so I shut it down and pray for an answer.  So now I can boot into ubuntu via efi file if that means anything and I have one drive partition with some imp. Files but not all, a formatted main drive partition(which I want to recover data from) and some unallocated space.  Also please try to make the explanations simple.i dont understand much computer.  As a side note this data loss has traumatised me so much that while writing this I was copying after writing each sentence lol.

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


Note: The issue is visible when not logged in on the site - and the welcome note is displayed before the title.  Please do not downvote becase you just cannot see it  Welcome note here is a bit displaced by the long question title, when not logged it

It appears that on Server Fault and Super User, the navigation bar and question title have suddenly become misplaced. The same does not occur on SO and mSO, nor on any of the other SE sites I spot-checked.  This is being seen in both Chrome and Firefox and just began occurring within the last few minutes.      What it should look like:      While this was fixed for a few hours, it has returned as of 22:05.


I am running 16.04 and my administrator account has programs I consider distracting when it comes to doing work.  I know how to add a second user account, but I want to know how to make it so I can still access Skype/Chrome/LibreOffice from a new user account but not Steam and similar apps.

I'm setting up a new user account, and I want to allow access to only certain programs for just that account. How would I go around doing that?


I have a string   var str3 = "[a,b,c] there [s,b,c] how are u";   What i want is [there, how are u] but I am getting ["", "how are u"], when splitting with str3.split(/\[.*\]/);  Any idea how i shud do it?

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I would like to see a detailed, step-by-step derivation of the following identity  $$\frac{\partial}{\partial A} \left( y^T A x \right) = y x^T$$  where $x, y \in \mathbb R^n$ and $A \in \mathbb R^{n \times n}$. I thought it would be easy to do using Einstein notation, but I am messing up with the reciprocal basis.

How can I find the gradient of the term $a^TXb$ where $X$ is a $n \times m$ matrix, and $a$ and $b$ are column vectors.  Since the gradient is with respect to a matrix, it should be a matrix.  But I do not have a clue on how to derive this gradient.   Any help ?


There are 9 types of Red Noses, for comic relief this year:    Each one is sold in an opaque packet, so it is lucky dip which one you will get.  Assuming there is the same amount of each type (${1\over9}$th). On average, how many bags would need to be bought for someone to get all 9 of them?

I have one white ball, one yellow ball, one red ball, one black ball. I put the four balls in a nontransparent box. I pick a ball from the box to see its color and put it back to the box.  Assuming picking is random, how many times on average do I need to pick in order to see all four colors?  If I'm lucky, I only need to pick four times. If I'm out of luck, I may get red, red, red, red, red, red,....  But what is it on average?


I have a Schedulable class which is scheduled to execute every night at 12:00 AM.  Here is my class:  public class appdevDailySnapShot implements Schedulable{     public List<App_Dev__c> ac {set;get;}         public void execute(SchedulableContext con){         List<App_Dev_Log__c> lstADL = new List<App_Dev_Log__c>();         try         {                           ac=[select Name,Assigned_To__c,Category__c,Completed_date__c,Effort_Hrs__c,Environment__c,Expected_QA_Date__c,In_Progress_Date__c,Old_Create_Date__c,Old_Request__c,On_Hold_date__c,Priority__c,Production_Release_Date__c,Project__c,Ready_for_Production_Release__c,Released_in_QA_Date__c,Released_in_UAT_date__c,Requested_QA_Release_Date__c,Status__c,SVN_update__c,Type__c,Unit_testing_DEV__c,Verified_in_Production__c,Verified_in_QA_Date__c,Verified_in_UAT_date__c from App_Dev__c];                         for(App_Dev__c adc : ac)             {                 App_Dev_Log__c AL = new App_Dev_Log__c();                 AL.AD_Request_No__c = adc.Name;                 AL.Assigned_To__c = adc.Assigned_To__c;                 AL.Category__c = adc.Category__c;                 AL.Completed_date__c = adc.Completed_date__c;                 AL.Effort_Hrs__c = adc.Effort_Hrs__c;                 AL.Environment__c = adc.Environment__c;                 AL.Expected_QA_Date__c = adc.Expected_QA_Date__c;                 AL.In_Progress_Date__c = adc.In_Progress_Date__c;                 AL.Old_Create_Date__c = adc.Old_Create_Date__c;                 AL.Old_Request__c = adc.Old_Request__c;                 AL.On_Hold_date__c = adc.On_Hold_date__c;                 AL.Priority__c = adc.Priority__c;                 AL.Production_Release_Date__c = adc.Production_Release_Date__c;                 AL.Project__c = adc.Project__c;                 AL.Ready_for_Production_Release__c = adc.Ready_for_Production_Release__c;                 AL.Released_in_QA_Date__c = adc.Released_in_QA_Date__c;                 AL.Released_in_UAT_date__c = adc.Released_in_UAT_date__c;                 AL.Requested_QA_Release_Date__c = adc.Requested_QA_Release_Date__c;                 AL.Status__c = adc.Status__c;                 AL.SVN_update__c = adc.SVN_update__c;                 AL.Type__c = adc.Type__c;                 AL.Unit_testing_DEV__c = adc.Unit_testing_DEV__c;                 AL.Verified_in_Production__c = adc.Verified_in_Production__c;                 AL.Verified_in_QA_Date__c = adc.Verified_in_QA_Date__c;                 AL.Verified_in_UAT_date__c = adc.Verified_in_UAT_date__c;                 AL.Snapshot_Date__c = date.today();                 AL.Snapshot_Time__c = datetime.now();                 lstADL.add(AL);             }                     insert(lstADL);         }         catch(Exception pEx){             System.debug('**** Exception Inserting in APP_DEV_Log ****');             System.debug(pEx.getMessage());         }         finally{             lstADL.clear();             lstADL = null;         }     }    }   Here is my test class:  @istest public class appdevDailySnapShot_Test {     static testMethod void testSample1(){         Test.startTest();         Datetime dt2 = Datetime.now().addMinutes(1);         String CRON_EXP2 = '0 '+ dt2.minute() + ' * ' + dt2.day() + ' ' + dt2.month() + ' ? ' + dt2.year();         Id jobId = System.schedule('AppDev Daily Snapshot - Test1', CRON_EXP2, new appdevDailySnapShot());         Test.stopTest();         System.assert(jobId != null);     }     static testMethod void testSample2() {         Test.startTest();         Datetime dt = Datetime.now().addMinutes(1);         appdevDailySnapShot aObj = new appdevDailySnapShot();         String CRON_EXP = '0 '+ dt.minute() + ' * ' + dt.day() + ' ' + dt.month() + ' ? ' + dt.year();         String jobId = System.schedule('AppDev Daily Snapshot - Test2', CRON_EXP, aObj);            Test.stopTest();     } }    My code coverage is 22%.

How do I write a unit-test / test class for a trigger?  What are my options?   Inline with the trigger?  New Class?


Write down all possible Jordan normal forms for matrices with characteristic polynomial$ (x − λ)^5$.   In each case, calculate the minimal polynomial and the geometric multiplicity of the eigenvalue λ.   For the only eigenvalue $\lambda$, the possible JNF is just assigned 1 to every column above the diagonal since the min polynomial can be any degree from 1 to 5?  I figured out the possible JNF using the possible minimal polynomial   $(x-\lambda)$and $(x-\lambda)^2$ and $(x-\lambda)^3$...$(x-\lambda)^5$ In total, it is 7 possibility (corresponding to each minimal polynomial and $\lambda$ has to appear 5 times.) But I don't understand that why the number of blocks gives the geometric multiplicity since each represent one eigenspace.  Thank you so much!

Write down all the possible Jordan normal forms for matrices with characteristic polynomial $(x-a)^5$. In each case, calculate the minimal polynomial and the geometric multiplicity of the eigenvalue $a$. Verify that this information determines the Jordan normal form.  I found this question in a textbook that I'm using for a test I have tomorrow. I think that I need to use the method for finding the Jordan normal form of a matrix but I can't see how to apply it and I don't have much intuition about the answer...  I'm guessing that there are 5 possibilities since the minimal polynomial can be any factor of the characteristic, but I don't know how to prove this.  Some help would be great for my test tomorrow! Thanks


What if I fly by the Earth in a relativistic spaceship (no acceleration involved), sync the clocks with my immortal twin who is staying home, and then take a rather long trip around the closed universe? When I circle all the way to the Earth and sync the clocks again (still no acceleration), whose clock will be more vintage, mine or my twin's?

Take the following gedankenexperiment in which two astronauts meet each other again and again in a perfectly symmetrical setting - a hyperspherical (3-manifold) universe in which the 3 dimensions are curved into the 4. dimension so that they can travel without acceleration in straight opposite directions and yet meet each other time after time.  On the one hand this situation is perfectly symmetrical - even in terms of homotopy and winding number. On the other hand the Lorentz invariance should break down according to , so that one frame is preferred - but which one?  So the question is: Who will be older? And why?  And even if there is one prefered inertial frame - the frame of the other astronaut should be identical with respect to all relevant parameters so that both get older at the same rate. Which again seems to be a violation of SRT in which the other twin seems to be getting older faster/slower...  How should one find out what the preferred frame is when everything is symmetrical - even in terms of GRT?  And if we are back to a situation with a preferred frame: what is the difference to the classical Galilean transform? Don't we get all the problems back that seemed to be solved by RT - e.g. the speed limit of light, because if there was a preferred frame you should be allowed to classically add velocities and therefore also get speeds bigger than c ?!? (I know  is only a local theory but I don't understand why the global preferred frame should not 'override' the local one).  Could anyone please enlighten me (please in a not too technical way because otherwise I wouldn't understand!)  EDIT Because there are still things that are unclear to me I posted a follow-up question:


I am currently in need of using apt-get on a chroot directory. The setup is the following.  I have a chroot setup with schroot. This chroot environment needs to be stripped down as much as possible. Therefore I am planning to remove apt-get and commin from the chroot environment.  I know that Gentoo has the possibility to use portage on a different root directory. Is this possible to set a different root directory for apt.get to install software into my chroot directory?  Thanks in advance

I'd like to install software packages, similar to apt-get install <foo> but:   Without sudo, and Into a local directory   The purpose of this exercise is to isolate independent builds in my  server.  I don't mind compiling from source, if that's what it takes, but obviously I'd prefer the simplest approach possible. I tried apt-get source --compile <foo> as mentioned  but I can't get it working for packages like autoconf. I get the following error:  dpkg-checkbuilddeps: Unmet build dependencies: help2man  I've got help2man compiled in a local directory, but I don't know how to inform apt-get of that. Any ideas?  UPDATE: I found an answer that almost works at . The problem with chroot is that it requires sudo. The problem with apt-get source is that I don't know how to resolve dependencies. I must say, chroot looks very appealing. Is there an equivalent command that doesn't require sudo?


If $A + B + C = \pi$, then find the minimum value of $\cot^2 A +\cot^2 B + \cot^2 C$.   I don't know how to solve it. And can you please mention the used formulas first.  What I can see is that if one of the angles $A$, $B$, $C$ is small, then the value $\cot^2A$ or $\cot^2B$ or $\cot^2C$ will be big. So I want to make angles big (more precisely, close to $\pi/2$, where cotangent is zero), but the condition $A+B+C=\pi$ prevents me from making all three of them very big .  I can see that if $A=B=C=\frac\pi3$, then I get $\cot A=\cot B=\cot C=\frac1{\sqrt3}$ and $\cot^2A+\cot^2B+\cot^2C=1$. But I do not know whether this is indeed minimum. (According to WolframAlpha . However, I would like to see some proof of this fact.)

In a $\triangle ABC,$ Evaluation of minimum value of $\cot^2 A+\cot^2 B+\cot^2 C$, Given $A+B+C = \pi$  $\bf{My\; Try::}$ Using $\bf{A.M\geq G.M}$ $$\frac{\cot^2 A+\cot^2 B}{2}\geq \cot A\cdot \cot B\Rightarrow \cot^2 A+\cot^2B \geq 2\cot A\cdot \cot B$$ Similarly $$\cot^2 B+\cot^2 C\geq 2\cot B\cdot \cot C$$ and $$\cot^2 C+\cot^2 A\geq 2\cot C\cdot \cot A$$ So $$\cot^2 A+\cot^2 B+\cot^2 C\geq \cot A\cdot \cot B+\cot B\cdot \cot C+\cot C\cdot \cot A=1$$ Using $$A+B+C = \pi\Rightarrow A+B=\pi-C$$ So $$\cot\left(A+B\right) = \cot\left(\pi-C\right)\Rightarrow \frac{\cot B\cdot \cot A-1}{\cot B+\cot A} = -\cot C$$ So we get $$\cot A\cdot \cot B+\cot B\cdot \cot C+\cot C\cdot \cot A=1$$ My question is Instead of using $\bf{A.M\geq G.M}$ Inequality, Can we use Jensen inequality directly $$\frac{\cot^2A+\cot^2 B+\cot^2 C}{3}\geq \cot^2\left(\frac{A+B+C}{3}\right)$$ So we can Write it as $$\cot^2A+\cot^2 B+\cot^2 C \geq 1$$ If no, then what wrong with it, Thanks


Suppose i am having a permutation of N items(from 1 to N) and M pairs,then what will be the no of different permutations under condition that any of M pairs should not come together? For ex - Suppose i have N = 5, So i have 1 2 3 4 5 Now for M = 2.and the 2 pairs are 1 2 and 4 5,the no of valid distinct permutations will be 48. Another example say we have N = 5 So we have 1 2 3 4 5 and M = 1 and the pair is 1 2 we will have 72 valid permutations. I am having problems when the pairs overlap, like 1 2 and 2 3.

Given $n$ objects with values $\{x_1,x_2,x_3,\dots,x_n\},$ and $m$ pairs $a_k = \{x_i,x_j\}$. Let $\{p_1,p_2,p_3,\dots,p_n\}$ be a permutation of objects. The question is to find number of permutations of objects such that none of the pairs $\{p_i,p_{i+1}\} \in a_k\ \forall i \in (1,n-1)$.  I tried to use inclusion-exclusion principle, first I took all the objects without any constraint. Then I picked number a pair $a_k$ and removed it from the total answer using inclusion-exclusion. But I was not able to solve it.  I don't assume the solution has a compact form, so I expect a procedure rather than an answer.


I have HP 32-bit laptop with ubuntu 16.04 lts OS. I want to install a software which comes with .sh (e.g. abcd.sh). Now I download this file in Download folder, and from terminal I go to this folder first  and ran:  $ cd Download $ ./abcd.sh bash: ./abcd.sh: Permission denied   Whats wrong with all those commands? How can I execute the file?

Whenever I open a .sh file, it opens it in gedit instead of the terminal. I can't find any option similar to Right Click → Open With → Other Application... → Terminal.  How do I open this file in the terminal?


Let $f:(a,b)\rightarrow \mathbb{R}$ be a real valued function. Prove or disprove:  $f$ is continuous if $f^2$ and $f^3$ are continuous. $f^2=(f(x))^2$.  I think $f$ would be continuous. But don't know how to prove it.

Suppose $\epsilon > 0$ and that $c \in \mathbb{R}$. Since $f^3$ is continuous, we can choose $\delta > 0$ such that whenever $\lvert x - c \rvert < \delta$ we have that $\rvert f^3(x) - f^3(c) \lvert < \epsilon$.   To show that $f$ is continuous, I know I need some number $\delta_1 > 0$ such that $\lvert x - c \rvert < \delta_1$ implies that $\lvert f(x) - f(c) \rvert < \epsilon$.   I've tried manipulating the expression $\lvert f(x) - f(c) \rvert < \epsilon$ by using the fact that $a^3 - b^3 = (a - b)(a^2 + ab + b^2)$. I get  $$   \lvert f(x) - f(c) \rvert < \frac{\lvert f^3(x) - f^3(c)\rvert}{\lvert f^2(x) + f(x)f(c) + f^2(c) \rvert} < \frac{\lvert f^3(x) - f^3(c)\rvert}{\lvert f^2(x) + f(x)f(c) \rvert}. $$ However, I am not sure how to continue and I am also not confident that this is a good way to approach the exercise.


The only example I can currently think of is from the Spawn comic book. The compound word “Hellspawn” may be split two different ways:   Hell spawn (creature born of Hell) Hell’s pawn (a minor figure manipulated by more powerful demons)   I am searching for other words similar to Hellspawn but not so, well, Hellish. I’d like to use a similar play on words. Knowing the term would improve my search.   Hellspawn above is a cheat, in that the apostrophe is implied. I’d like to find a word without such a cheat.

For example, therapist may be split into the + rapist, neither of which (arguably) has anything to do with the original words.  Another example would be conflagration: con + flag + ration. Or weather: we + at + her.  Note that words like threesome and purebred would not qualify, because the parts are intentional and contribute to the original word's meaning.  It seems to me there might be a word for this, which I would describe as "accidental lexical componentry" — but I'm not sure there is one. And if I do think of one I will be sure to add a supplemental (supple + mental) section (sect + ion) to this question (quest + ion).


If we place a typical coin on a table, it will almost immediately fall due to gravity. However, with a little push it will roll and not fall anymore until friction eventually slows it down enough to come to a halt. Since it is a round object (disk-like) it will roll and therefore gain a spin angular momentum. Since it has an angular momentum (thanks to the motion) it will precess and experience a gyroscopic effect which prevents it from falling, as we can see the wobbling effect as it slows down.  Though I know this is the underlying explanation for why the moving coin doesn't fall immediately, I fail to see the underlying force/torque diagram, namely, as soon as it is tilted, a torque rotates it back to the vertical position, but I fail to deduce the direction of the torque diagrammatically. Without the tilt, the angular momentum is perpendicular to the face of the coin (so in the horizontal direction), but when titled the angular momentum also tilts, but the gravity force remains along the vertical. So how do we get to the torque that goes against the tilt?

When we spin a coin on a table, we observe 2 things:   It slows down and stops after sometime. It does not stay at just one point on the table but its point of contact with table changes with time.   I was trying to explain quantitatively this but I am stuck at how to take frictional torques into account. Any help will be appreciated.


I'm installing meteor through curl, But getting this error:  curl: (56) GnuTLS recv error (-9): A TLS packet with unexpected length was received. gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now Installation failed.   Now I don't know how to resolve this issue. Any help will be appriciated  Thanks in advance.

I have downloaded eclipse-platform-3.7-linux-gtk-x86_64.tar.gz.  Using Ubuntu 10.10  64-bit on Intel 64-bit processor.  While trying to unpack the contents (either double-click or right-click & open-with-archive-manager) I get this error:  gzip: stdin: unexpected end of file
 tar: Unexpected EOF in archive
  tar: Error is not recoverable: exiting now   Is there any remedy to repair it? or is the downloaded file corrupt & needs to be re-downloaded?


Do you have any tips on how to solve the limit in the title? Whatever I think of doesn't lead to the solution. I tried using: $\sin{x}-\sin{y}=2\cos{\frac{x+y}{2}}\sin{\frac{x-y}{2}}$ and I got: $$\lim_{x\to+\infty}\bigg(2\cos{\frac{\sqrt{x+1}+\sqrt{x}}{2}}\sin{\frac{\sqrt{x+1}-\sqrt{x}}{2}}\bigg)=$$ $$\lim_{x\to+\infty}\bigg(2\cos{\frac{\sqrt{x+1}+\sqrt{x}}{2}\frac{\sqrt{x+1}-\sqrt{x}}{\sqrt{x+1}-\sqrt{x}}}\sin{\frac{\sqrt{x+1}-\sqrt{x}}{2}}\bigg)=$$ $$\lim_{x\to+\infty}\bigg(2\cos{\frac{1}{2(\sqrt{x+1}-\sqrt{x})}}\sin{\frac{\sqrt{x+1}-\sqrt{x}}{2}}\bigg)$$ but, as you can see, this leads me to $\infty-\infty$ in $\cos$ term. How can I get rid of that?

I want to compute $$\lim_{x \to \infty}{\sin{\sqrt{x+1}}-\sin{\sqrt{x}}}.$$  Is it OK how I want to do?    $$\sin{\sqrt{x+1}}-\sin{\sqrt{x}}=2\sin{\frac{\sqrt{x+1}-\sqrt{x}}{2}}\cos{\frac{\sqrt{x+1}+\sqrt{x}}{2}}=2\sin{\frac{1}{2(\sqrt{x+1}+\sqrt{x})}}\cos{\frac{\sqrt{x+1}+\sqrt{x}}{2}}$$  I'm not surem but I want to say that $$|\cos \frac{\sqrt{x+1}-\sqrt{x}}{2}| \leq 1$$ $$\sin{\frac{1}{2(\sqrt{x+1}+\sqrt{x})}} \to 0 \mbox{ when } x \to \infty$$ So the limit is $0$ ?  I thinks is not because  if I say that $ \displaystyle|\sin{\frac{1}{2(\sqrt{x+1}+\sqrt{x})}}| \leq 1$ I will obtain that another limit than $0$.   Thanks :)


I am using this formula:  0\leq y\leq 1\leq x\leq 2 = \left\{\begin{array}{ll} 0\leq y\leq 1 \\ 1\leq x\leq 2\end{array} \right.   which gives me this:    I would like to ask how I can rewrite it using right curly brace.  Thanks.

How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They are a set of steps in an algorithm which I want to consider as an item.)  The following puts the brace on the left. All I need to do is to flip it to the right.  \begin{align} \begin{cases} a&=bbb\\ c&=ddddddd\\ e&=ffffffffff \end{cases} \end{align}   Thanks for any help with this!


So basically I have a table with two fields, 'number' and 'title', and I need a query to select the row with the highest value in 'number', for this i used  SELECT MAX('number') FROM table   Now I need to get the value of 'title' that corresponds to the highest value of 'number'.  How can this be achieved?

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


Suppose, I have a double value.  double dble = 5.91742691   Now can I get that value with two digits after the point. I mean to say,can I get 5.91 from there programmatically?   One more, suppose,  I want to get an integer from a double value if the double value is X.9XXXXX. Here I mean to say, I want to compare the AFTER-POINT value. For your understanding here dble's AFTER-POINT value is 91742691. How can I do that?

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


] I wanted to try out to export some Blender chess Models, to create a little chess game with Unity. With 2 of the Models, everything worked out fine, but the third is behaving weirdly. It seems like the model is always tilting, so that you see it from the same side all the time. Problem is, i made the models a few months ago, so I don't know exactly what I might have done differently in the third one. But as far as I remember, I made all of them the same way. I hope the 2 Images clarify what I mean/what my problem is (I only used the Hand Tool to show the different perspectives.  I'm working with Blender version 2.79 and Unity 2017.3.0f3 (Personal). I exported all the models as .fbx file (only the mesh).

I'm importing a mesh i made into unity before exporting I always rotate it by -90 degrees in the X axis, then set the orientation to Y forward and Z up so when the object is imported to unity the object's orientation will fit into unity's native orientation, However whenever I do this after being importing to Unity the mesh is inside out or transparent but When I don't do the rotation of -90 on the X axis the mesh loads correctly aside from the orientation of the mesh being incorrect and it doesn't match unity's native orientation, i really can't figure it out this is the first time I'm having this problem My setup usually works in the meshes i import to unity but this time i got this problem.


Of course, one can include individual elements into a table of contents by inclusion of addcontentsline at the element to be included.  I'm seeking the opposite:  I want to prevent selected individual elements from appearing in the table of contents when they otherwise would be.    Note that changing the depth of element to be included will not work for my case.  I may want some subsections to appear in the table of contents and not others.  Changing the depth will permit or prevent all subsections from appearing in the table of contents.  Is there a command (e.g., deletecontentsline) that will allow me to selectively prevent individual items from otherwise appearing in the TOC?  For my case, there will be no problems with numbering.  In particular, I want subsections just in one section to not appear in the table of contents.  So, even though there is section 1, subsection 1.1, 1.2, etc., and section 2, subsection 2.1, 2.2, etc. I want my table of contents to have only 1, 1.1., 1.2, and 2.  (not 2.1, 2.2, etc.).

I'm writing a book using the amsbook class, and I've included a page for acknowledgements using \chapter*{}, thinking it wouldn't show up in the ToC.  However, it does (and for some reason it's supposed to do so, according to the amsbook manual); so the question is, how do I get rid of it from the ToC?


I'm an Indian national and hold an Indian passport with a UK dependent visa stamped. I'm travelling to the UK at the end of this month to visit my wife. I need to travel to Ireland for work in August. Is it possible for me to apply for an Ireland business visa in the UK?

Can anyone please guide me if I can travel to Dublin for a short trip with UK Tier 2 Visa and an Indian Passport? Additionally I have a valid Schengen Visa stamped on passport as well.


I'm from Saudi Arabia, I have question my flight to CMN from LHR transit LIS 4 hours but I don't have Portugal transit visa, can I travel or not?

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


Is $\{\sum_{k=1}^n\sin(k)\}_{n=1}^\infty$ bounded?  More precisely, do there exist $M_1,M_2 \in \mathbb{R}$ such that $M_1<\displaystyle\sum_{k=1}^n \sin(k)<M_2\ $ for every $\ n\in\mathbb{N}\ ?$  Would it be possible to use a variant of the  for convergence, but instead of making it about convergence, make it about boundedness? Maybe there is some more generalised theorem that can be used to also answer the naturally modified question of the above one: Given $\ a,b\in\mathbb{R},\ $ does there exist $\ M_1,M_2 \in \mathbb{R},\ $ such that $M_1<\displaystyle\sum_1^n \sin(a+bn)<M_2\ $ for every $\ n\in\mathbb{N}\ ?$ I know that the terms of the sequence $\ a_n=\sin(n)\ $ or $\ b_n=\sin(an+b)\ $ that we are summing, are dense in $\ [-1,1]\ $, but I don't see how this is helpful in answering the question(s). Does this has something to do with  or  (which I know nothing about, by the way)?

Let $A_n=\sum\limits_{k=1}^n \sin k $ , show that there exists $M>0$ , $|A_n|<M $  for every $n$ .


So, this equation we get when we find  that makes new hamiltonian=0. There are 4 main transformations: F1(q,Q,t), F2(q,P,t), F3(p,Q,t), F4(p,P,t). On practice and in every book I've seen, we use F2 and F1 to solve Hamilton Jacobi equation, but can we use F3 and F4?

In Arnold's Mathematical Methods of Classical Mechanics, he derives the Hamilton-Jacobi equation (HJE) using a generating function $S_1(Q, q)$ to get  $$ H\left(\frac{\partial S_1(Q, q)}{\partial q}, q, t \right) ~=~ K(Q, t). $$  However, this is different from what I've seen in other physics texts. For example, Goldstein uses the generating function $S_2(q, P, t)$ to get the equation  $$ H\left(\frac{\partial S_2(q, P, t)}{\partial q}, q, t\right) ~=~ - \frac{\partial S_2(q, P, t)}{\partial t}. $$  Why is there this difference? Are the two equations saying the same thing?


When looking on the sky its lower part looks lite blue instead blue like the rest of the sky. Why is it so?

I've read a lot of answers to the questions why the sky is blue. However all the answers I found contain mostly qualitative analysis: Rayleigh scattering is changing the direction of blue light, so there is more blue light coming to the eye along the line of sight than the red one. However these explanations raise additional questions. First of all, the scheme of only single scattering seems to be an oversimplification: the light direction should be changed more than once. Can we prove that this is negligible by calculation, or is it not negligible? Does this change the analysis? Further, the explanation says nothing about the exact amount of the blue light being scattered when looking into a particular direction. Assuming the sun is in zenith, it follows from symmetry that the color of the sky in the directions having the same zenith angle must be the same, but closer to the horizon the way of the scattered light differs a lot from the rays coming near zenith — so is it possible to derive theoretically a formula which would predict the color of sky given the azimuth angle and the position of the Sun (at least in a simple geometrical setup when the Sun is in zenith)? It's not clear why the color should not rapidly change from near blue at horizon to almost red near the Sun position: after all, the atmosphere is thicker along the lines going closer to horizon! The sky seems to be more uniformly blue than the typical explanation suggests. Further, it follows from the usual explanation that blue light is partially reflected back into the space. Due to this, about half of all scattered light should be lost, so the total amount of red light coming from sun should be greater than the amount of blue light, which seems to contradict the observable reality. Does it? I'm mainly interested in quantitative analysis, not the observations or qualitative considerations.  I've read the answers to  and know that the physiology of the eye comes additionally into play, but let's neglect this for the sake of simplicity.


I've got a PC and a Macbook Pro. I use a piece of software where I frequently need to press TAB, SPACE, TAB, SPACE. So instead of hitting 4 buttons, I have a gaming keyboard which I can program to press one button and it presses those keys for me.  So now I'm on my Mac, I'm using the software but of course, I haven't got my USB gamer keyboard with me.  Is there any 'virtual' software that can do this? It would be a huge help. I've googled it but with no luck.

I recently upgraded to Snow Leopard, from Leopard and I was using an awesome app called  that let you remap your keys, set scripts/macros and even had repeat functionality.   However, this app doesn't seem to be in active development anymore, and 10.6 broke the ability to bind certain modifier keys (Shift) with other keys.   I totally miss things like Shift+Insert for paste (Linux/Windows), setting Ctrl+Shift+Esc for Activity Monitor, and Ctrl+Alt+Del for the login window.   So, how can I achieve this instead?


An ordered field $K$ with the ordering $<$ is Archimedean if for any $x \in K$ there exists $n \in \mathbb{N}$ (where $\mathbb{N}$ is the copy of the natural numbers in $K$) such that $|x|<n$.  It is an easy task to show that for every Archimedean ordered field $K$ there is a non-Archimedean ordered field $L$ such that they are elementarily equivalent, i.e. they satisfy exactly the same first-order sentences in the language of ordered fields $(+,\cdot,0,1,<)$. (Namely, one can take the first-order theory of $K$ and extend it by all sentences of the form $c> 1+ \ldots + 1$, where $c$ is a new constant symbol. Let us call this theory $T$. Now any finite subset of $T$ has an Archimedean model. Thus, by the Compactness Theorem, $T$ has a model, which, by construction, is non-Archimedean.)  I was wondering: Is there a single first-order sentence $\sigma$ in the language of ordered fields such that any model of $\sigma$ is a non-Archimedean ordered field?  I would expect the answer to be 'No.' but cannot find where this result has been proved.

Let us suppose that the first-order language of ordered fields has symbols for addition, subtraction, multiplication and order, and constant symbols for 0 and 1.  An ordered field is said to be archimedian if for any positive elements $x<y$ there is a positive integer $n$ such that $nx>y$.  Question: Is the first-order theory of archimedian ordered fields identical to the first-order theory of ordered fields? The non-trivial part of this question is: Suppose a sentence holds in every archimedian ordered field. Does it hold in every ordered field?


I'm trying to understand why the number of the monomials of degree $d$ in $n+1$ variables is $C_{n+d,n}$. If someone could help me to remember how to solve this, I would be glad.  Thanks.

says that the number of different monomials of degree $M$ in $N$ variables is $$\frac{(M+N-1)!}{M!(N-1)!}\; .$$ Can anyone explain why this is true?


Can a Basilisk in the Harry Potter world can turn its killing gaze on and off at will?  Thus allowing it to look at someone it is taking orders from and not harm them or selectively target only non-purebloods.

Theoretically, could the basilisk 'turn off' its petrifying power? Or is it something the basilisk has no control over?


This is what I'm trying to do -   Thanks!

I need to put a point at the intersection of two edges. Below is a picture with red circles around where I need points to be placed.


i used this video on  , followed almost all steps, downloaded the deb pkg. Now running this last cmd: sudo apt install ./nomachine_6.9.2_1_amd64.deb  the error: root@another-try-ubuntu:~# sudo apt install ./nomachine_6.9.2_1_amd64.deb  Reading package lists... Error! E: Sub-process Popen returned an error code (2) E: Encountered a section with no Package: header E: Problem with MergeList /root/nomachine_6.9.2_1_amd64.deb E: The package lists or status file could not be parsed or opened. root@another-try-ubuntu:~#   what's the problem?

The computer gave me this output in a window:  E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_natty_main_binary-i386_Packages E: The package lists or status file could not be parsed or opened.   How can I fix this?


My system (Ubuntu 14.04) got stuck after I ran a Matlab script. So I powered off the machine and tried to restart. Initially, it showed some errors and once it came to the login page it redirected back to the login page.   I have tried all sort of things, yet failed to fix the problem. I tried updating, upgrading and reinstalling the Nvidia driver. Now, no errors pop up, but I still can't go beyond the login page. In safe mode, everything works, but in the regular process, it gets stuck at the login page.   Can you please help me to fix this?

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


Sorry I am new to ubuntu, just installed it.  The version Ubuntu 14.04.4 LTS.  I finally learned how to install a program called WebStorm and trying to create an alias for it.  I tried creating it under ~/.bashrc and ~/.bash_aliases and ~/.bash_profile by reading all the other forums here but none of them worked.  I tried adding alias such as:  alias ll = 'ls -l'   as a test I tried adding them in /.bashrc and /.bash_aliases but each time when I open up my terminal it'll give me an error saying ll is not a command or something but finally adding into /.bash_profile wouldn't give me such error messages.   What I wanted to add as alias is a something like this:  alias ws = '~/Apps/Webstorm/bin/webstorm.sh   but when I run ws in terminal it says:     ws: command not found   but if I just run:  ~/Apps/Webstorm/bin/webstorm.sh   directly it'll run the program.   What am I doing wrong here?

[Reviewers: note that the question was completely rewritten after the close votes.]  I recently found how I can define aliases for bash in the ~/.bashrc.  But since I tried that, I see the followig messages eveery time I open a terminal.  I added some bash aliases to my I was trying to create shortcuts using alias but I unsuccessful and somehow managed to get the message below every time I open up a new terminal.  bash: alias: UIC: not found bash: alias: =: not found bash: alias: sudo openvpn --config ~/vpn/UIC-alopez78.ovpn: not found bash: alias: mat: not found bash: alias: =: not found bash: alias: cd /home/alexisblopez/MATLAB/R2014a/bin/: not found bash: alias: lab: not found bash: alias: =: not found bash: alias: ./matlab: not found ~$    Its's confusing; it does not say error, but because my aliases do not work, I think I did something wrong with them - I don't know what!


My manuscript was sent to the reviewers of an Elsevier journal around 10 days ago. Today, I logged into EES and saw that the status has changed to Required Reviews Completed. I couldn’t believe it. My impression is that my manuscript is likely to have been rejected by the reviewers. Am I right about this?

I submitted by math paper to an Elsevier journal around 6 months ago. Today I logged into EES and saw that the status changed to "Required Reviews Completed" about 10 days ago. Is this good news or bad news ? Does it mean my paper is rejected and the Editor is basically preparing the rejection letter :( ?


This appears to be a bug in StackOverflow and on other StackExchange sites. I only so far tested with Firefox:   Edit a question or answer, or add a comment, save it Go to another page in the same tab Hit back in your browser You will now see the status from before your edit.   The same is true for up-/downvotes, comment votes, comments by others, edits or new answers by others (even the "there is a new answer" will re-appear).  And it can be observed in the top-left under Recent inbox messages and Recent achievements. If they had a notification and in the following page you clicked that away, after clicking back they are back again.  (It gets even weirder if you go further back in history, i.e. if you edit/comment a post, see a new message, go to another post, go further the previous post and so forth a few times: then hitting the back-button a few times you will literally see all earlier versions of your post)  I assume the browser takes the page from the local cache and the AJAX-updated parts are not in that cache. But it is often confusing behavior. Not sure it is trivial to resolve though.  Edit: the  and this behavior appears to have either gotten worse or was silently fixed for a while and now has returned. So I propose to keep it open for a while.

Vote on a question or add as a favourite. Click a link. Press the back button. The vote isn't visible (but has still been recorded).   Chrome v6.0.472.63


I'm connected to the internet using wired connection and I have an external   TP-LINK wifi adapter. I want to bridge connection from wired to wifi adapter,  then to my iPhone. How can I do this?

I have Ubuntu 12.04 on a HP 430 notebook and this has a single wired internet connection and I would like to share this with a LG Optimus One with Android 2.3.3. I followed  instructions and created a hotspot as shown below, but UbuntuHost is not visible on the LG Optimus One when I enable the Wifi on it.  To summarize, I want my Laptop with an internet connection to act as a WiFi router and access the internet from other devices (LG Optimus One with Android in this case).  What additional steps have to be done?


I'm using a full 2GB USB. Now it is automatically write-protected. I can't delete, add file or format the USB. I always safely remove before removing it. I have tried both editing regedit and diskpart as instructions on the internet. I have also scan it with a trusted antivirus. Please help me. I'm thinking of a person blocking my USB for money :(. Thanks for your help. P/s: the drive's type is currently FAT.

When I plug in my USB flash drive, it shows up on my computer as write-protected or read-only. I am unable to transfer data to it, nor can I modify or delete any files already stored on it. I also cannot repartition or reformat the drive using Windows Disk Management, DiskPart, GParted, or other tools. The drive does not have a write-protect switch.  Why did this happen and what can I do about it? Is there a way to remove the write protection?  (Note that this can happen with some memory cards, too, as they often use controllers similar to those used in flash drives. In some cases, the system may report that the drive or card was formatted successfully even though it was never actually formatted; the original data reappears when the device is reinserted.)     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


I wanted to know the use of having multiple domain controllers for one domain And some more questions related to it are:  If there are multiple domain controllers can computer information in one domain controller visible to others? If there are two computers having a saame domain name  shown as xyz in control panel is there a possibility of them to be in a different domain?  PS:I am new to AD and could not find straight forward answer.

This is a  about Active Directory Domain Services (AD DS).         I find myself explaining some of what I assume is common knowledge about it almost daily. This question will, hopefully, serve as a canonical question and answer for most basic Active Directory questions. If you feel that you can improve the answer to this question, please edit away.


I have seen a few tips regarding the placement of periods before or after the closing parenthesis, but none of them solves my issue. A general rule of thumb-if the words inside the parentheses form a complete sentence, then period before closing it, otherwise period after closing it. However I am writing a sentence in the introduction part of a paper and the following options seem to be there   <,> denote the generalised inner product (see Section IV). <,> denote the generalised inner product (see Section IV.) <,> denote the generalised inner product (see Section IV.).   Which one among them is correct? A double period seems superfluous while placing it either inside or outside seem not to do justice to the whole sentence. Are there different conventions for British, American or Australian systems?

Where should the period go when using parentheses? For example:     In sentence one, I use this example (which has a parenthesis at the end.)   Should the period be inside, or outside of the parentheses? What about if the entire sentence is a parenthetical (as below)?     (Where does the terminal punctuation go here?)   Is there a hard and fast rule?


I have a table of contents as follows:  \documentclass{report} \begin{document} \tableofcontents \clearpage \chapter{TEST} \section{Introduction} \section{Test section one} \subsection{Test subsection} \subsection{Test subsection} \subsubsection{Test subsubsection} \subsection{Test subsection} \end{document}   I want to appear statement "Chapter 1: TEST" instead of "1 TEST" in the list of contents. Can you help?

I'm attempting to modify the Table of Contents in my document. Currently, chapter one in my document is listed as   1   Introduction   What I would like to see is  Chapter 1   Introduction   Seems like an easy enough thing to ask for, but can't seem to find a good way to do this. Any feedback would be most appreciative.


I have a node application in development in a ubuntu server through SSH connection, I'm using bitvise ssh client, and running node server.js through its GUI terminal.  But then when I exit the ssh client, the server terminal is closed remotely, how can I keep it open? I'm not sure if the question is related to this specific client or to SSH in general.

I python script called scrape.py. As the name suggests it is a web crawler and I want it to run continuously on my Linux machine even after I log out and end the ssh session. I read a lot around here and there were many suggestions of using nohup python scrape.py &. This worked well but the script execution stopped as soon as I logged out. I also explored the supervisor application but I don't have root permissions so it fails too. Can you suggest me a way to solve this problem? Thank you.


I have a Pen-drive of 8GB, I have 2 partitions on it, one of 15MB and another of the remaining (7GB+).   I know that Windows only recognizes the first partition, is there any way to mount the second partition on Windows.

I've got a USB stick with multiple Partitions on it (FAT32 (active), FAT32, Ext2, but that's another story) and it seems like that my Windows XP can only mount the first partition of the stick. If I try to mount the second one using the volume manager it tells me that I need to make it active and reboot...is it really that limited or am I just missing something here?  Partitions:   FAT32, System Rescue CD, bootable and active FAT32, some tools ext2, some data (I know that I need extra drivers, etc., but that's not asked here)


I'm reading Michael Pollan's book 'How to Change Your Mind', which is largely about psychedelic mushrooms. In discussing the biology of the mushrooms, he writes:  'Even if psilocybin in mushrooms began as 'an accident of a metabolic pathway', the fact that it wasn't discarded during the course of the species' evolution suggests it must have offered some benefit.'  I'm wondering if this is actually true. In general, I'm wondering if it is true that traits that do not confer advantage will eventually be weeded out.   Being ignorant of the finer points of evolution/natural selection, I can make arguments both ways. On the one hand, it seems that the intense competition would make investing any resources at all in a trait that was not beneficial a totally losing proposition. Therefore no traits that weren't positively adaptive would survive. On the other hand, there seem to be all kinds of traits that are 'neutral' in fitness terms but which survive anyway. E.g. coccyx, male nipples, appendix, whale legs, etc.   I am not talking about information encoded in the genome, which can be present but not expressed. I am talking about phenotypes, i.e. traits that get expressed in interactions with the environment, such as the psilocybin chemicals in these mushrooms. (Though I suppose unexpressed genetic info could never be selected for or against by natural selection by definition.)  So to put a very fine point on my question: Is it possible/likely that psilocybin mushrooms produce a chemical that happens to engender hallucinations, not because doing so is adaptive, but just incidentally? So that this property would be something like the redness of blood, i.e. not adaptive in itself but just a matter of happenstance?

If a trait would be advantageous to an organism then why hasn't it evolved yet?  Conversely, if a trait is not advantageous or mildly disadvantageous, why does it exist?  In other words why does evolution not make the organism more "perfect"?    This is a general question that would be applicable for any kind of trait. Please keep the answers precise and scientific.   Read this meta post for more information:


I learned static method today, and I am confused about how values change inside the static method.  When I write static method like this   public class test{ public static int printInt(int t,int n){ System.out.println(t); t= t + n; return n; } }   and call it in main  public class Method { public static int i; public static int m; public static void main(String[] args){     i = 5;     m = 6;      test.printInt(i,m);     System.out.println(i); } }   the t do not change as I suppose to. If the static method only make change into values that you return?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I've got following classes.  interface ICommand {. . .}   class ShutdownCommand : ICommand { . . .}  class Message<T> where T : ICommand { . . .}  class Communicator {     void Send(Message<ICommand> a_msg) { . . .} }   When I call following code, I get an error that there's no possible conversion from the type Message<ShutdownCommand> to the Message<ICommand>. It's not intuitive for me since ShutdownCommand inherits from ICommand.  var message = new Message<ShutdownCommand>(); m_communicator.SendCommand(message);   I know I can solve such problem with adding non-generic interface for a Message class and use it as parameter type in Send() method. Regardless it could be fixed in the way I described above... I'm curious why there's no possible conversion if from the code above arises conversion should be possible.

I didn't attend PDC 2008, but I heard some news that C# 4.0 is announced to support Generic covariance and contra-variance. That is, List<string> can be assigned to List<object>. How could that be?  In Jon Skeet's book C# in Depth, it is explained why C# generics doesn't support covariance and contra-variance. It is mainly for writing secure code. Now, C# 4.0 changed to support them. Would it bring chaos?  Anybody know the details about C# 4.0 can give some explanation?


I am using Firefox version 36.0.4 which has HTML 5 video. How can I stop it from autoloading videos in YouTube. For example, when I got a YouTube page, videos will immediately start playing. Also, When I watch a video on YouTube, after it is done, somehow YouTube decides to play ANOTHER video which I did not pick and then start to automatically play it. I find this extremely annoying. How can I block this behavior?  Please note that solutions from  don't work because they are about Flash videos which isn't the case here

I have a couple of videos open on Firefox. As I refer to them often, I prefer to keep them as a tab rather than as a bookmark. However, every time I reboot Firefox, they start to play. Can I have them come up but not start to play until I select them to start? Thanks.


I have a set of markdown files to be passed to jekyll project , need to find the encoding format of them i.e UTF-8 with BOM or UTF-8 without BOM or ANSI using a program or a API .   if i pass the location of the files , the files have to be listed,read and the encoding should be produced as result .  Is there any Code or API for it ?   i have already tried the sr.CurrentEncoding for stream reader as mentioned in  but the result varies with the result from a notepad++ result .  in notepad++ , the file encoding is shown as utf-8 , but from the program , the result is ANSII .   but i should get same result from both ways , so where the problem has occurred?

In our application, we receive text files (.txt, .csv, etc.) from diverse sources. When reading, these files sometimes contain garbage, because the files where created in a different/unknown codepage.  Is there a way to (automatically) detect the codepage of a text file?   The detectEncodingFromByteOrderMarks, on the StreamReader constructor, works for UTF8  and other unicode marked files, but I'm looking for a way to detect code pages, like ibm850, windows1252.     Thanks for your answers, this is what I've done.  The files we receive are from end-users, they do not have a clue about codepages. The receivers are also end-users, by now this is what they know about codepages: Codepages exist, and are annoying.  Solution:    Open the received file in Notepad, look at a garbled piece of text. If somebody is called François or something, with your human intelligence you can guess this. I've created a small app that the user can use to open the file with, and enter a text that user knows it will appear in the file, when the correct codepage is used.  Loop through all codepages, and display the ones that give a solution with the user provided text.  If more as one codepage pops up, ask the user to specify more text.


I originally only had Ubuntu 14.04.4 on my notebook, but as I sometimes also need windows I wanted to make a dualboot. So I booted Ubuntu from my USB stick, repartitioned my HDD and installed Windows 7 on the second partition.   The problem is that now it automatically boots into windows without giving me the option to choose between Linux and windows.  The notebook is a msi GT628.  I already looked at  post and  post but as I am a helpless greenhorn when it comes to linux (or computers in general) they went way over my head.  Thanks!

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


While browsing the list of unanswered questions over on Arqade, I came across this little gem:    Clicking on  revealed that there were no edits or answers from anyone.  You can still view this live on , and I imagine it will stay there until someone edits or answers the question.  Steps to reproduce:   Find a question on the home page Post an answer so abysmal that it is immediately deleted Go back to the home page, and find the original question in the list Notice that your user name is still alive and well in the recently modified spot!   , and maybe this is behavior is intentional, but it appears to be a (slight) bug in how thread modifications are shown on dashboards.  (As noted in comments, if the user was deleted, the Community user should replace their user card. The user shown here is unregistered, and their account has not been deleted.)

How can this user , reputation 3, show in  as having "modified 7 hours ago", but on the modified thread, , not show at all?  This user also has two medals, which is somewhat puzzling.