What is accept rate? Why doesn't accept rate always appear? How is the accept rate calculated? What does "accepting an answer" mean? How do I do it?   Related:

My feature request (or anti-feature-request perhaps) is the following: Let's stop displaying a user's accept rate.  For those of you who know "Fawlty Towers", the whole issue of a visible accept rate and our behavior towards it starts to feel like .   We generally seem to agree that harassing a user about it is not appropriate and that our decision to answer a question should not depend on it, yet we display it in varying terrorist-threat-levels of color. Yes dear users, please don't pay any attention to the brightly orange colored percentage you see there. And whatever you do, don't bring it up.  But as long as you're displaying the accept rate, people will comment on it, criticize users for it and possibly reconsider answering because of it. And while I'm of the opinion that a low accept rate should not stop you from answering (we're here to make the internet better after all) and that the possible reputation gain (or lack thereof) should not factor in either, I can't blame users for considering it. It's in their face after all. And we're only people.   So let's take the issue off the table. Or at least partially. Information about a user's acceptance behavior can still always be gathered from the profile. But at least that would be less in-your-face.   "But it helps me to see if a user is a help vampire!" I'm still wondering if those are of the sparkly variety as well, but I digress. So what? If the question is bad, downvote it. Evaluate a question on its individual value. There is no need to take a user's history into account. There might be a correlation between the quality of a question and a user's accept rate, but there doesn't have to be. And if there is, the bigger problem is the question's quality.  "Exactly! A user with a low accept rate might indicate there's a problem!" I'm not arguing we should get rid of the accept-rate value within SO/SE. After all, this Q&A works based on up and downvotes, as well as the acceptance of an answer. But why not use it behind the scenes to (very occasionally) nudge the user with a statement like:      "You have received several answers to your questions, yet have not accepted an answer as correct or helpful in a while. You might want to evaluate them and where possible ".    After all, in the various questions with regards to comments on low accept rates, if any comments are encouraged at all, then they are of this soft variety. So why not let the system take care of that?  I feel this would take the whole issue of accept rate off the table, while still providing the user with the information he might have missed or needs. (As a bonus, it would reduce the frequency with which the topic is brought up here on Meta) And those users who would ignore this information are most likely not convinced by a displayed percentage either.


I had a marriage in my family just 1 day before UK visa appointment. I gave my fingerprints with mehndi on. Is it going to create problems at airport while biometric? I do not have idea. Please help.

I have plans to travel to the UK. This is the first time I will be going abroad. It would be a two week trip.  My question is, if I put mehndi or henna on my hands before I go, is it going to create any problem for me?   I wouldn't have put it on but my sister's wedding is just two days before I leave for the UK.


I'm an experienced dev, but new to WordPress. I'm following along with a course on udemy and they suggested I encapsulate my plugin functions in a class to help avoid namespace conflicts. However, inside one of my action hooks (not sure that's the right term), I try to call add_menu_page() to add some menu items to the admin sidebar and I can't figure out how to reference my function. If I just give it the name of the function inside my class "testing_options_page", then WP can't find the function. If I try to wrap it in an array to declare the class name and the function like I did with the add_action() call, then the WP code horks because it doesn't expect an array for that param array('kenny_plugin6', 'testing_options_page').  How can I reference the function inside the class when calling the add_menu_page() function?  Side question: Is wrapping my code in a class going to be more pain that its worth?   add_action( 'admin_menu', array( 'kenny_plugin6', 'add_menu_items' ) );  class kenny_plugin6 {    function add_menu_items() {       add_menu_page( 'Browser Tab Title', 'Menu Item Title', 'manage_options',              'testing_menu_page', 'testing_options_page', '', '25' );       add_submenu_page( 'testing_menu_page', 'Test Links', 'Test Title', 'manage_options',              'get_test_links' );     }     function testing_options_page() {       ?>
Testing Options

Put more stuff here
       <?php    }     function get_test_links() {       ?>
Test Links

 Put more stuff here.
       <?php    } }

I'm not sure if I have done this correctly.  As I understand it:  if I have a class foo and a static method bar I can register that as the callback by passing the array array("foo","bar") as the function name.  If I have an instance of a class in $foo and want to call the method bar I pass the array array($foo,'bar').  If I need to register an action inside the class itself would it work with array($this,'bar')?


In the code given below I want to replace all occurrences of "<a url>" with "link", but gsub isn't recognizing the repeated occurrences:   stringx<- " word1 word1 word1 <a url> /n word word word <a url> word  word word <a url> abcd"    gsub('<{1}.* *>', "link", stringx )   Output: " word1 word1 word1 link abcd"  Desired output: " word1 word1 word1 link word word word link word word word link abcd"  I don't understand what I'm doing wrong Thanks!

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 need to prove that if G is a simple graph on n vertices such that $\delta(G) \ge \lfloor n/2\rfloor$, then $G$ is connected (Where $\delta(G)$ represents the minumum degrees in $G$).  To prove this I want to show that for every vertex $u,v \in V(G)$ (where V represents the vertex set of our graph $G$) there exists a $u,v$-path in $G$.  So far I have:  Let $u,v \in V(G)$. If $u$ and $v$ are adjacent, there exists a path from $u$ to $v$ consisting of a single edge.  How do I prove this for greater lengths? Any hints would be appreciated.

Does any proof exist that a simple graph with $n$ vertices such that the least vertex degree is $\geq \frac{n-1}{2}$ is a connected graph? (i.e. does such a proof have a name?)


I'm going to name my new business, I got an idea from another company called "ZZZ Men Supply"  and come up with "XXX Gentlemen Supply" for my business. Since the word Gentlemen slightly longer I want to use the abbreviation for it, which one is better: "XXX Gent Supply", "XXX Gent's Supply" or "XXX Gents Supply"?  Thanks

I've been living in Ireland for almost a year now and I start noticing they use the word "mens" a lot. I can see it used in:   Shops, to denote the area where you can find men's clothes In sport, when they talk about "mens team".    My guess is just that they are lazy about the use of quotes, so that mens should actually be men's. However, there may be some rule I'm not aware of. So, is "mens" only limited to Irish English? When I'm allowed to use it?


Sometimes (e.g. in ) the same question appears twice in the side column - once as a linked question, then again as related. A bug?

The Linked and Related sections sometimes contain a link to same same question.  See for example , where one of the Linked questions is same as the first of the Related questions.  I think that this is redundant and duplicate links should be removed from Related section.


Because I am using Google Forms to collect data the source of data is not what I want so I need to create a tab and transform the data.  Here is an example of the Google Sheets (Exported from Google Forms):  Group Leader    Groupmate  Gender  Groupmate  Gender  Groupmate  Gender Leader 1        John       M       Mary       F       Linda      F Leader 2        KK         F       Johanna    F Leader 3        Rick       M   As you can see each row has a different number of Groupmates. I would like to transform the table into:  Group Leader    Groupmate  Gender Leader 1        John       M      Leader 1        Mary       F Leader 1        Linda      F Leader 2        KK         F Leader 2        Johanna    F Leader 3        Rick       M   I believe Groupmate name is sort of unique so I think it is possible to merge several columns and then lookup the leader name by index-match.


suppose we have the free field lagrangian: $$L=-\frac{1}{4}F_{\mu \nu} ^2$$ then its just $$L=-\frac{1}{4}(\partial_\mu A_\nu -\partial_\nu A_\mu)^2$$ what I don't understand is how its equal to: $$L=-\frac{1}{2}(\partial_\mu A_\nu)^2 +\frac{1}{2}(\partial_\mu A_\mu)^2$$  I appreciate any help. Thank you.

The electromagnetic field tensor is given by $F_{\mu \nu} = \partial_{\mu}A_{\nu} - \partial_{\nu}A_{\mu}$, and it appears in the Lagrangian as  $$L = -\frac{1}{4}F_{\mu\nu}^2 - A_{\mu}J_{\mu}.$$ Schwartz's QFT textbook says that (chapter 8, page 116) $$F_{\mu\nu}^2 = 2(\partial_{\mu}A_{\nu})^2 - 2(\partial_{\mu}A_{\mu})^2,$$ but I do not see how that is correct.   The first step of the expansion gives $F_{\mu\nu}^2 = (\partial_{\mu}A_{\nu})^2 - \partial_{\mu}A_{\nu}\partial_{\nu}A_{\mu} - \partial_{\nu}A_{\mu}\partial_{\mu}A_{\nu} + (\partial_{\nu}A_{\mu})^2$, and I see that the first and last term add up to produce $2(\partial_{\mu}A_{\nu})^2$. However, the second term $\partial_{\mu}A_{\nu}\partial_{\nu}A_{\mu}$ when expanded has a term like $\partial_{0}A_{1}\partial_{1}A_{0}$, and I don't see how this is present in $(\partial_{\mu}A_{\mu})^2 = (\partial_{0}A_{0} + \partial_{1}A_{1} + \partial_{2}A_{2} + \partial_{3}A_{3})^2$.


I saw this product from a question, but got deleted. $$\prod_{k=1}^{n-1}2\sin\frac{k\pi}{n}$$ Naturally, I was curious, and evaluated this in mathematica, which suprisingly turns out to be: $$\prod_{k=1}^{n-1}2\sin\frac{k\pi}{n}=n\tag{1}$$ From this , we have: $$\prod_{k=1}^{n-1}\sin\frac{k\pi}{n}=\frac n{2^{n-1}}$$ My question is how is $(1)$ evaluated?

Using $\text{n}^{\text{th}}$ root of unity  $$\large\left(e^{\frac{2ki\pi}{n}}\right)^{n} = 1$$  Prove that   $$\prod_{k=1}^{n-1}\sin\frac{k \pi}{n} = \frac{n}{2^{n-1}}$$


If we have a general object and we have multiple forces acting on it at several points.    Assuming we know the center of mass, mass and moment of inertia of the object:   Will the object rotate only around the center of mass or do i need to consider the torques around other points? can the object rotate and translate at the same time? I mean can we just sum the forces at the center and the torques around it; and then calculate the linear and angular movement separately.

If a sphere has a torque vector coming out of it at point A, would the sphere rotate about its center or the axis of the torque vector?


I have a list of 22000 strings like abc.wav . I want to take out a specific character from it in python like a character which is before .wav from all the files. How to do that in python ?

Is there a function to extract the extension from a filename?


I installed Ubuntu 13.04 but an annoying error has been bothering me. I formatted my PC to get rid of it, but about 2 hours after the fresh install, it came back.  The thing is that the title bar of any window, at the upper-left side, where the "close, minimize and maximize" buttons are, disappears when the mouse cursor is set over them. This disables the possibility of using them when the windows is maximized (full screen) but not when it's not. But it is very annoying.  The second screenshot may help show what I'm trying to say (notice the cursor and what happens when I try to click the close button on any window)    This is the problem:      I'm aware that there is a , but the thing is that the solution in that post involves using Unity2D, which was removed in Ubuntu 13.04  I hope there's a way to fix it.

When I maximise a window and hover my mouse where the window controls should be, they do not appear however if I hover my mouse over the file menu bar, they do appear but as soon as I move my mouse back, it disappears as if my mouse was elsewhere. This is only on maximised windows and I'm using Ubuntu 13.04.  Mouse over menu:   Mouse over window controls:


How would we calculate the dipole moment of a charge combination (of 3 or more charges) whose magnitudes are different but net charge is zero? As a special case, what if the net charge is not zero? How would we calculate the dipole moment then?

Here is a question I came across in a book:      Three point charges $-q$,$-q$ and $2q$ are placed on the vertices of an equilateral triangle of side length $d$ units.What is the dipole moment of the combination?   I had learnt that the dipole moment is defined for 2 point charges only with equal magnitudes but opposite character.I am in a bit of a fix regarding what the author means by that phrase in bold.Thank you in advance!  Edit:I just noticed theoretical physics has been merged here;I sincerely apologise if the question is unbearably stupid.


I'm sorry Dave, I'm afraid I cant let you watch hulu. -- hal I I tried to watch a video on hulu.com. Just as I thought it might play, I got a message saying I need to install hal, and do some other non-sense. So I went to  and tried what it suggested. sudo apt-get install hal  which then stated, that is not a package. so I looked for libhal, and hal, and did not find it.   I installed Adobe Flash from source, so I have the panel, where I was able to complete the other required steps.. but Im stuck on the package requirement for hal.   What do other Ubuntu Users do to play hulu? Is there an HTML5 player I should know about? Is the package hal worth tacking down and installing?

When I went to watch some only episodes of star trek on Amazon Prime, the player would get stuck on updating. I followed the instructions  and doing so actually worked for 3 seconds. It was the oddest thing. Clearly the video was playing and I saw 3 seconds of the episode, but a message came up saying I needed to update my flash player. I tried loading videos over and over again, but no success, not even the 3 seconds. Here is the error message:  Sorry we were unable to stream this video. This is likely because your Flash Player needs to be updated.   I am running Ubuntu 13.04 Raring Ringtail, Firefox 20, and adobe flash-player 11,2,202,280. Apparently Adobe isn't going to make newer versions of flash available for Linux, only security updates.   So has anyone been able to play prime instant videos, and if so, under what circumstances? Is there perhaps an alternative implementation of the flash plugin I can use? Or is the cause of my problem something different altogether?    Problem probably has to do with the version of flash being used. If anyone has gotten Prime to work with an my current version of flash or an open-source/free implementation of it, please do tell. Or if anyone can get videos on amazon to play with any other parameters aside from changing my browser to chrome, please tell me.  This also affects  and other services that employ DRM through Flash.    What hasn't worked:   Using Chrome which has the newest version of flash via ppapi. Amazon Prime strictly prohibits it. Using Chromium has the same issue as using firefox Trying to install Adobe Flash 11,2,202,275. Is not compatible with raring libraries(?).


I wanted to download the latest version of nodejs(v10.15.3) but installing with the terminal states "v10.15.2" as the latest which is giving me issues.  Anyway I downloaded the file "node-v10.15.3.tar.gz" from the official node.js website. The problem is I don't know how I install this version of node in my machine after I downloaded and extracted the file.  There isn't an apparent installation file and the readme.md file tells me to look at a file "BUILDING.MD" which I did not find in that folder.

I have downloaded tar.gz files. But I don't know how to install it. How do I install this kind of file?


When I compile my schematic, I get some errors in the compile window. When I double click them it zooms in on them and highlights them with a mask. How do I get rid of that mask?

I can't work out why Altium is doing this, or how to undo it, or how to make it stop doing it.  It happens when I use the 'Find Similar Objects... ' option; all of objects that it hasn't found are faded out and I can no longer select them.  Anyone know how to fix this?  Additionally, if anyone knows how to change, en masse, the components' footprint library to 'Any' through the SCH inspector, that'd be really helpful too.


Are the following conditional expressions / commands do same in bash scripting for string comparison?  if [[ "str1" == "str2" ]] if [[ "str1" = "str2" ]] if [ "str1" == "str2" ] if [ "str1" = "str2" ]

I am a little bit confused on what do these operators do differently when used in bash (brackets, double brackets, parenthesis and double parenthesis).  [[ , [ , ( , ((   I have seen people use them on if statements like this :  if [[condition]]  if [condition]  if ((condition))  if (condition)


I installed Windows 7 first then partitioned 30gb in ext4 and installed Ubuntu 64bit and it asked for reboot. I unplugged USB stick installer and hold on a while. It didn't reboot so I power off and booted. It defaultly went to Ubuntu login screen and did not show dual boot option. Any suggestion would be great.. Is that I need to reformat my is of Linux or any workaround.

I sent this to boot.repair@gmail.com, still no response thought I could get a faster solution here.  I am running Windows 7 64-bit and Ubuntu 12.04 LTS on separate partitions.  The message is sent is:  Boot-Repair URL:    Originally I was unable to access Ubuntu after a windows update (Ubuntu was installed using wubi). Rather than logging into Ubuntu from the Windows 7 Bootloader, it lead to the grub> command prompt.  No matter what I did here, it would not log me into linux.  As a result I uninstalled Ubuntu from the Add/Remove Programs application in Windows 7.  I then re-installed Ubuntu 12.04 LTS using a liveCD-USB.  This time however, I created a partition.  I then restarted and got the GRUB bootloader which loads Ubuntu 12.04 LTS with no problems, however when I select windows (listed as "Windows 7 (loader)"), it just refreshes the grub bootloader instead of loading Windows 7.  I then used the Windows 7 repair disk to run bootrec/fixmbr and bootrec/fixboot.  This led to no bootloader coming up when I started my computer.  Instead I got a blank black screen with a flashing white cursor.  I went on to do a bootrec/buildbcd and bootrec/scanos.  These did nothing to change the situation.  When I ran bootrec/scanos it said that no Windows 7 installations were present.  After this I decided to reinstall WIndows 7 only for this to do nothing to change the situation.  Afterwards I did a boot-repair in which I began to get the GRUB bootloader, which would load ubuntu 12.04 LTS, but still would not load Windows 7.  I also did a sudo update-grub which recognized Windows 7 as being installed, but still didn't fix the issue of loading Windows 7.  While running Ubuntu I have no problem accessing my WIndows 7 partition which is formatted as NTFS.  It shows all the files and folders reflecting that the re-install did take place, and it also shows all of my old applications and folders in the Windows.old folder.  I am completely stuck at this point and have no clue what I should do next.  Any help you can offer me will be greatly appreciate.  Thank You  --gap


This is a question I came across in an old midterm and I'm not sure how to do it. Any help is appreciated.  $$2^n = C(n,0) + C(n,1) + \cdots + C(n,n).$$ Prove this statement is true for all $n \ge 0$ by induction.

I want to know if I can get some help with this proof. I tried, but I just cannot seem to get $2^{k}$. It states that,     For $k \in \mathbb{Z}_{\ge 0}$, $$\sum^{k}_{m=0}\binom{k}{m} = 2^k$$   Thank You.


Suppose that there exists two kinds of stars. The probability that a given volume contains $j$ stars of the first kind is $p(j; a)$, and the probability that it contains $k$ stars of the second kind is $p(k; b)$; the two events are assumed to be independent. Prove that the probability that the volume contains a total of $n$ stars is $p(n; a+b)$.   $p(j; a)$ is the Poisson distribution with parameter $a$. First, we have ${n \choose j}$ compositions of two stars. Therefore, this problem is reduced to finding $\sum_{j=0}^n {n \choose j} p(j; a) p(n-j;b)$. This is equal to $e^{-a-b} \sum_{j=0}^n {n \choose j} a^{j}b^{n-j} / (j! (n-j)!)$. I know that $\sum_{j=0}^n {n \choose j} a^j b^{n-j} = (a+b)^n$, and I found that $\sum_{j=0}^n {n \choose j} a^{j}b^{n-j} / (j! (n-j)!) = \frac1{n!}\sum_{j=0}^n {n \choose j}^2a^{j} b^{n-j}$. I wish that $\sum_{j=0}^n {n \choose j}^2a^{j} b^{n-j} = (a+b)^n$, but I think that this is not true.   I would appreciate if you give some hint.

$X \sim \mathcal{P}( \lambda) $ and $Y \sim \mathcal{P}( \mu)$ meaning that $X$ and $Y$ are Poisson distributions. What is the probability distribution law of $X + Y$. I know it is $X+Y \sim \mathcal{P}( \lambda + \mu)$ but I don't understand how to derive it.


There is a minimum amount of characters one can comment in each comment. That is obviously to discourage short unnecessary conversational remarks. But if a user name is long enough, we can comment anything to that user. Should there be a fixed number of characters the system will assume how long user names are in the comments, so things can be more consistent and fair? Like if a user has only 3 characters for a name, users who want to address that user will have to write longer than necessary comments, while users with 14 characters or more can get blank comments. This did not answer my question:  because I don't get my comments auto-stripped.

Comments must be at least 15 characters long, which is supposed to make comments like "..." impossible to submit. This works fine, however, there is a way around this, by using comment replies, even "fake" ones e.g. "@somelongname ...". Can the system strip the comment reply part (e.g. "@somelongname") before performing the minimum characters check?


Prove that the sum to n terms of the Sequence:  $1^2/(1×3),2^2/(3×5),3^2/(5×7),...$ is $  n(n+1)/2(2n+1).$  Im having trouble with this question, firstly ive begun by stating that p(n) denotes the statement.  Then to prove that p(1) holds where $n = 1$ $n(n+1)2(2n+1).$ = 1/3 and $1^2/1*3$ = $1/3$ therefore true  Now i know I have to show $n=k$ and therefore $n=k+1$ but how can i do this? I'm very tired so clear instruction would be great.

Prove that the sum to $n$ terms of a sequence:  $$\frac{1^2}{1\times 3}+\frac{2^2}{3\times 5}+\frac{3^2}{5\times 7}+\cdots $$ is  $$ \frac{n(n+1)}{2(2n+1)} $$


Is the evolution a very prolonged progress, or are we going to witness further evolution of the human species?  If so, in which direction? Are there any widely predicted changes for humans?

I would like to know if evolution is continuing to happen in modern humans, assuming things like existence of the nuclear family structure, fidelity to one partner, etc. It seems to me the answer would be NO because evolution depends on differential reproductive rates, but in the modern world, all male humans have roughly 2.5 (or whatever the number) kids. Add in the process of culturally modified selection pressure, and it seems to me that even an "unfit" male would end up having a couple of offspring. The fittest male (or female) is no better off than his or her contemporaries because of this "leveling" effect.   However, the impression I get from the popular science media is that scientists think evolution is continuing to happen. I would like to know what the actual scientific consensus is, and why. Thanks.


Question: Find the value of $$\lim_{n\to\infty}\sum_{k=1}^n \dfrac{1\cdot 3\cdot 5\cdots (2k-1)}{3\cdot 6\cdot 9\cdots 3k}~.$$  My work: Let $~~a_n=\dfrac{1\cdot 3\cdot 5\cdots (2k-1)}{3\cdot 6\cdot 9\cdots 3k}=\dfrac{1\cdot 2\cdot 3\cdots 2k}{3^k(1\cdot 2\cdot 3\cdots k)\cdot 2^k(1\cdot 2\cdot 3\cdots k)}=\dfrac{(2k)!}{6^k\cdot(k~!)^2}~.$ Hence our problem becomes $$L=\lim_{n\to\infty}~\sum_{k=1}^n \dfrac{1\cdot 3\cdot 5\cdots (2k-1)}{3\cdot 6\cdot 9\cdots 3k}~=\lim_{n\to\infty}~\sum_{k=1}^n\dfrac{(2k)!}{6^k\cdot(k~!)^2}=\lim_{n\to\infty}~\sum_{k=1}^n \binom {2k}k \dfrac{1}{6^k}.$$ Now we know that , then $$L=\lim_{n\to\infty}~\left[-1+\sum_{k=0}^n \binom {2k}k \left(\dfrac{1}{6}\right)^k\right]=-1+\lim_{n\to\infty}\sum_{k=0}^n \binom {2k}k \left(\dfrac{1}{6}\right)^{k}=-1+\left(1-\frac 46\right)^{-1/2}=~\sqrt 3 -1~.$$ Is the whole process described here is okay now ? Special thanks to @Integrand & Z Ahmed

I need to find the values of $a$ and $n$ in the following  $$ (1 + ax)^n  = \sum_{i=0}^\infty \binom{2i}{i}x^i$$  How can I compare things and show that $a=-4$ and $n = -{1 \over 2}$. It's easy to expand $1 \over \sqrt{1 -4x}$ see that it's valid but I'm looking other way around.


I have a project that requires me to use an electrolytic-capacitor with this specification: 10 uF 16V. I want to know if its possible to use a 10 uF 50V capacitor instead. Thanks for your anticipated response guys.

I have always believed that it was ok to replace a capacitor with a slightly higher voltage rated one. eg 16v with 25v.Going higher than this would risk the capacitance value being out at the working voltage. However I just read the following quote from this       Electrolytic capacitors are non-ferroelectric with a very low dielectric constant. Their capacitance is derived from a very high surface area and nanometer thick dielectric layers. Their capacitance is not a function of applied voltage.‐Design Solutions For DC Bias In Multilayer Ceramic Capacitors (August 2010 Electronic Engineering Times)   So does this rule not apply to aluminum electrolytics? Eg will I have no issues replacing an electrolytic 25v 100uf with a 50v 100uf assuming both are low esr, similar footprint and good quailty?


lets say I loose the acdc adapter of a device, like a laptop or a wireless router, how do you know that another adapter will work with my device? my assumption is that I have to match the same voltage and the amperes have to be equal or higher than the missing adapter. But I heard of people that just used an adapter that fit in the device and even with very different voltage specification the device worked, were they lying?.  And another thing: does some adapters just rectify the input making not suitable for other devices that require constant current?  I hope I am asking this in the right page, if not I'm sorry.

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


I decided  was off topic, so I voted to close. The problem is that I closed it as off topic and I thought it would be better suited on English Language & Usage.  However, I couldn't choose that (English Language & Usage) in the pop-up.   I think there should be a "more" link in the bottom of the pop-up when someone wants to close a question as off-topic so it could be migrated to a site not already listed. If a site in the "more" section would already have a vote to get the question migrated to there, it would be listed without the need to click "more".  Is there a reason this is not yet implemented?    * except perhaps beta sites

When someone votes to close an off topic question, Stack Overflow shows a list of five affiliated sites that could be appropriate for that question, namely:   Meta Stack Overflow Server Fault Super User     Shouldn’t this list be more comprehensive and include all affiliated sites? For instance, (La)TeX questions on Stack Overflow should be redirected to .


How do you get$$ {X_i}+{X_j}{\sim}Binom(m,{p_i}+{p_j}) \\ from \\f(x_i,x_j)={m!\over{x_i!x_j!(m-x_i-x_j)!}}(p_i)^{x_i}(p_j)^{x_j}(1-p_i-p_j)^{m-x_i-x_j}\large? $$  $ My \; best \; try:$ The only thing I thought of was manipulating the formula  to  $f(x_i,x_j)=({m \choose x_i+x_j}(p_i+p_j)^{x_i+x_j}(1-(p_i+p_j)^{m-(x_i+x_j)})({ {x_i+x_j}\choose{x_i}}({p_i\over p_i+p_j})^{x_i}(1-{p_i\over p_i+p_j})^{(x_i+x_j)-x_i})=f(x_i+x_j)f(x_i|x_{k\neq i,j}) \\ with \\ f(x_i+x_j)\sim Binom(m,x_i+x_j) \; and \; f(x_i|x_{k\neq i,j}) \sim Binom(x_i+x_j,({p_i \over p_i+p_j})) \\$   Though I feel like this is wrong and I need something more to show the distribution for $X_i+X_j$

Let X and Y have a trinomial distribution with join probability function:  $ f(x,y) = \frac{n!}{x!y!(n-x-y)!}p^x q^y (1-p-q)^{n-x-y}; x=0,1,...n, y=0,1,...n$  Let $T=X+Y$  I can't seem to figure out where to go exactly. Here's where I am at:  $\sum_{x=0}^{n} \frac{n!}{x!y!(n-x-y)!}p^x q^y (1-p-q)^{n-x-y}\mbox{ substitute in Y=T-X}$ $\sum_{x=0}^{n} \frac{n!}{x!(t-x)!(n-t)!}p^x q^{t-x} (1-p-q)^{n-t}$   I think I could I figure out the algebra.. if I could just see what to do with the summation. I know I have to involve a t somewhere, but I'm not sure. Maybe somebody could just show me how to set up my summation correctly with the substitution?


I want that a label in HTML has a max width of like 100px and if this label has a text that is longer than 100px it gets cut off. A perfect result would be a cut and some points ".." at the end.  I have:  <label> This is some long text on my website </label>   Desired result would be something like:  This is some lo..  Is this possible with CSS alone? For a start it would be okay if it only gets cut at the end. Thank you in advance!  I tried to set the width to 100px in CSS but that only changes the size of e.g. the backgroundcolor of the label and not the text.

Let's say I have a string "I like big butts and I cannot lie" and I cut it with overflow:hidden, so it displays something like this:     I like big butts and I cann   cutting off the text. Is it possible to display this like this:     I like big butts and I cann...   using CSS?


One day I was observing a lizard walking on walls as easily as we walk on horizontal surfaces. I got curious to know the physics behind this but I couldn't get to any useful conclusion. I tried to Google it but all the hypothesis like lizards create vacuum while they walk or they secrete some sort of chemical (and few others) were rejected due to some or the other reason, so I thought maybe here I could get some help on the subject.

Pretty simple question, but not an obvious answer at least not to me.  I mean you can't just place a dead fly on the wall and expect it to stay there, he will fall off due to gravity.  At first I thought it maybe friction, but that would require a normal force (i.e. perpendicular to the wall), and then I remembered spiders, geckos etc, they like to walk around on the ceiling.    How is it possible?  What kind of forces are involved?  Would these creatures still be able to do it on a hypothetical surface which was perfectly flat?


Here is the question I refer to   I am not the author of the question, it is just we face same problem. I was given a differential equation $y'= x^2 + y^2$. Letting $y(x)=\frac{-f(x)}{f(x)}$ gives us \begin{equation}f''+x^2f=0\end{equation} This is where I got stuck. The answer in the question stated that the ODE can be transformed to ODE of Bessel kind. However, I am not sure on how to do this since the ODE does not actually has form   $$x^2\frac{d^2y}{dx^2} + x\frac{dy}{dx}+(x^2-v^2)y = 0$$ which is a Bessel Equation. Any help appreciated.

I have been following the thread " Convert Airy's Equation $y''-xy=0$  to Bessel equation $$t^2u''+tu'+(t^2-c^2)u$$ " but I can't join the dots to a solve similar equation $y''+x^2y=0$ so as to obtain a solution of the form $$\sqrt x\left(AJ_\frac{1}{4}+BJ_{-\frac{1}{4}}\right)$$ I actually get an equation that looks this way $$t^2\frac{du}{dt}+t\frac{du}{dt}+(t^2+\frac{5}{64})u$$ The above equation can not yield the desired solution. Please help me to clearly see this. Thank you.


Ships of Star Wars all have artificial gravity even when within other gravitational fields. Some ships weaponize gravity to pull others out of hyperspace. Technology has clearly progressed to a point where organisms understand and can alter gravity at will. Is there ever any canon discussion of how they are able to do this? If there isn't current canon I'm also interested in Legends information on the development or implementation of gravity-altering technology. I'm thinking Ender in Exile esque, where Card explains how fractional lightspeed travel and instantaneous communication occurs to a relative degree of specificity--obviously not with real science, but with believable theories.

Inspired by the question , how does gravity work on the Millennium Falcon and other ships its size? The passengers are not strapped in and regularly move around just easily as they would on a planet with Earth's gravity.   The answer for the Death Star refers to gravity often being "coreward" (presumably taking advantage of the natural gravity an object of such substantial mass would have), but that doesn't apply for a small ship. So how is gravity accomplished?


I am fairly new to networking i have a simple query on how I can work out the network, broadcast, first usable, last usable and the subnet mask for the IP in the title for 9 subnets.

My DSL/WiFi router provided by my ISP has an internal IP address of 10.0.0.138, the addresses provided by DHCP are in the format of 10.0.0.xxx.  Now, I want to start using static IP addresses on my local network, and I don't know what to provide for the subnet mask.  What is a subnet mask?  Should I be using 255.255.255.0 or 255.0.0.0 as my subnet mask? What is the difference?


I came across a reg ex for email validation:  ^[^@]+([@]{1})[0-9a-zA-Z\\._-]+([\\.]{1})[a-zA-Z0-9\\._-]+$   This is a pattern which i found in a standard Adobe Day CQ email validation code. I have a problem with the last matching group [a-zA-Z0-9\\._-]+ where it allows multiple occurrences of digits as well which allows me to enter as a valid input someone@else.9. Can somebody please help me understand why do we need a digit value in the last matching group.  Any help is appreciated. Please guide me what else regex can be used to validate a standard day to day email input.

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


I am trying to remember a story I heard a long time ago. The setting was that there is a huge ship floating around with some sort of creatures. And this ship sails time and stays a few moments ahead of our present moment. These creatures literally with their tools and materials build the entire universe as it should look like a few moments later. And they continue to do that constantly as they move down the timeline with us following right behind them by a few moments.  The story also explained that this is why sometimes completely inexplicable things happen such as when you lose your keys and they turn up somewhere completely different. It's because some builder didn't pay attention to detail.

Does anyone know a SF TV short story in which there were blue men who helped "stage" our world- at least the parts we saw, on a minute by minute basis.  So, at each minute, everyone would be in the "world" that was built for that minute, then they would go on to the next "minute world".  The blue men were in the future minutes building most of reality, but only the parts that would be looked at at that minute (to save work, I think - why build something that will not every be "used")  And they were in the past tearing down all the previously lived minutes.  It was kind of a behind the scenes look at why when you set your keys down and come back to them, they aren't there. Then you look again a few minutes later and they are there. The reason in the show was that the blue men building that minute forgot to include your keys, but the next group got it right.  Years later, my wife and I still refer back to that show, so I would like to find out what it was and see if I can find a copy somewhere.  .


I am very new to blender and am really excited to have found this amazing world of Blender and all of its beautiful people and possibilities. I am trying to capture an image of my projects to record and share progress. Can I export a simple jpeg or something similar? Or do I need to take a screenshot? And can that be done within Blender?   Thanks for your time And Answers... and possibly a better solution to my query.

I know that by default I can render the viewport and everithing that is in the viewport to be the same as in the render. But, when comparing 3DS Max to Blender, I have certain limitations. In Blender I can render the view-port with vertices/edges/faces to be shown, to be selected, but not the reflections, shadows and such.  Is there a way to render the viewport in Blender as it is in 3DS Max?  Here's how I can do it in 3DS Max:  Viewport look    Render result of the viewport    Here is how I can do it in Blender:  Viewport look:      Render result of the viewport


My PreCalculus teacher recently reviewed the properties of limits with us before our test and stated that any real number divided by infinity equals zero. This got me thinking and I asked them whether a complex number (i.e. $3+2i$ or $-4i$) divided by infinity would equal zero.   This completely stumped them and I was unable to get an answer. After doing some theoretical calculation, knowing that $i=\sqrt{-1}$, I calculated that a complex number such as $\frac{5i}{\infty}=0$ since  $$\frac{5}{\infty}\cdot \frac{\sqrt{-1}}{\infty} = 0\cdot 0 = 0,$$  using properties utilized with real numbers that would state that $\frac{5x}{\infty} = 0$ since $$\frac{5}{\infty}\cdot \frac{x}{\infty} = 0\cdot 0 = 0.$$ Is this theoretical calculation correct or is there more to the concept than this?

Okay, I'm not much of a mathematician (I'm an 8th grader in Algebra I), but I have a question about something that's been bugging me.  I know that $0.999 \cdots$ (repeating) = $1$. So wouldn't $1 - \frac{1}{\infty} = 1$ as well? Because $\frac{1}{\infty} $ would be infinitely close to $0$, perhaps as $1^{-\infty}$?  So $1 - 1^{-\infty}$, or $\frac{1}{\infty}$ would be equivalent to $0.999 \cdots$? Or am I missing something? Is infinity something that can even be used in this sort of mathematics?


First off - I just came up with this idea - It's a spitball - Feel free to contribute (good and bad thoughts).  Reformed idea: Let the questioner mark their thought difficulty, and upvoting and downvoting affect that difficulty - any thoughts?    Idea Some way to separate beginner questions from more advanced questions, or show the level of the programmer's experience in a specific area, to help answer-givers find questions they could help with.  I think it would put in perspective how to better answer questions.  Related ideas for this: Maybe another rating tool for people to vote if they can't solve it (provided they have experience in the particular subject) or something.

It might be useful to add a drop down field "Difficulty" for questions. With a very limited set of options, say:   Beginner Advanced Expert   This way, users could easily judge if they can answer a specific question (depending on their experience in the topic) and how much time it will probably take.  Beginners usually know they are new so they can easily select Beginner. Those with some experience just select Advanced and those working on a topic for years may chose Expert. I think it's not very difficult to judge halfway correctly.  And the difficulty rating does not have to be very precise anyway, it's more a rough estimate by the asking person.  As an addition, rep gained on this topic can be multiplied with a difficulty factor. This would solve the problem of lots of rep for often-viewed and easy to answer questions and few rep for less-viewed, difficult questions.  Update  Thank you so far for the answers. I clearly underestimated the fact that some users are going to always chose Expert difficulty.  Maybe readers voting on the difficulty would be a workaround. Of course, we cannot use the rep factor then, for the same reason.  This kind of voting would obviously introduce a whole new set of issues, since we could vote on both content and difficulty (I'm almost positive this kind of proposal existed before?).


I'm connected to a wifi spot with my android, but i'd like to connect with my laptop aswell. I don't want to root my phone (warranty and stuffs) nor reset the router, as it has complex settings on it. I tried recovering the password from /data/misc/wifi/wpa_supplicant.conf using adb, but i get an error, which sent me on a rabbithole of solutions until i met a dead end. I'll post the steps i followed bellow, i would like someone to tell me if i goofed on any step.  (I wanted to post images, but i need 10 reputation, sorry)  So i enter on adb and i check if my device is recognized using     >adb devices    Everything seems fine, i proceed to try to pull out the config file with     >adb pull /data/misc/wifi/wpa_supplicant.conf c:/wpa_supplicant.conf   At this step i get this message:      failed to copy from "...." to "..." : permission denied.   So i searched for a solution for this and i found that i have to use "adb root" to restart adb with root permissions. I try it, but i get this message.     adb can't run as root on production builds.   So again, i went down the rabbit hole, and i found someone else with the same problem, who says that solved it using ">adb shell" and then "$ su". I'm getting tired, but i try it, i go to shell, and everything seems fine i get into shell@android with no problem, now i only need to access as su, but as i try i get this message:     system/bin/sh: su: not found   Now this may or may not have to do with this (i'm a noob), but if i used "adb devices" while on shell, or right after exiting it, no devices would appear listed, even if i checked before doing all the above.  I'm very noob at this and i'm sure i'm messing up somewhere, but i can't find where and its getting late. I've spent 2 hours aready looking for solutions and every step deeper i get, less results i get because any of the above solutions worked for other people. Does anybody have any idea on how to access that damned file without rooting my phone?  (I can use my phone as router usb while i'm connected to the wifi, but i'd rather have the freedom of knowing the password, as i'm going to stay here for the whole summer)

I have an Android phone which is connected to a secured Wi-Fi hotspot.  How can I find out the password of the hotspot from the phone?


when I use apt-get install on kubuntu-desktop ,I get an error like this:     E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource   temporarily unavailable) E: Unable to lock the download directory   Why did this happene and how can I solve it? Thank you!

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


How can I prove that the following function is bounded?  $$f(x) = \frac{1-x^2}{4 + x^2},$$  And I wonder if the following 2 hints may help?  Hints:   $(x + 1)^2 \geq 0.$ $(x - 1)^2 \geq 0.$   thanks!

How can I prove that this function is bounded using the given 2 hints? $$f(x) = \frac{x}{x^2 + 1},$$  Hints:   $(x + 1)^2 \geq 0.$ $(x - 1)^2 \geq 0.$   thanks!


I would like to know what is the difference. Currently I am learning this stuff and it seems to me like these are just the same:  delegate void X();  X instanceOfX;  instanceOfX = delegate() { code };  instanceOfX = () => { code };   Also if the lambda are newer, should I just use lambda and forget on anonymous methods?

Once it is compiled, is there a difference between:  delegate { x = 0; }   and  () => { x = 0 }   ?


When the status code is useless, is there anyway to construct a pipeline based on output from stdout? I'd prefer the answer not address the use-case but the question in the scope of shell scripting. What I'm trying to do is find the most-specific package available in the repository by guessing the name based on country and language codes. Take for instance this,  $PACKAGE1=hunspell-en-zz $PACKAGE2=hunspell-en  The first guess is more appropriate but it may not exist. In this case, I want to return hunspell-en ($PACKAGE2) because the first option hunspell-en-zz ($PACKAGE1) does not exist. pipelines of apt-cache The command apt-cache returns success (which is defined by shell as exit-code zero) whenever the command is able to run (from the docs of apt-cache)  apt-cache returns zero on normal operation, decimal 100 on error.  That makes using the command in a pipeline more difficult. Normally, I expect the package-search equivalent of a 404 to result in an error (as would happen with curl or wget). I want to search to see if a package exists, and if not fall back to another package if it exists. This returns nothing, as the first command returns success (so the rhs in the || never runs) apt-cache search hunspell-en-zz || apt-cache search hunspell-en  apt-cache search with two arguments This returns nothing, as apt-cache ANDs its arguments, apt-cache search hunspell-en-zz hunspell-en  From the docs of apt-cache  Separate arguments can be used to specify multiple search patterns that are and'ed together.  So as one of those arguments clearly doesn't exist, this returns nothing. The question What is the shell idiom to handle conventions like those found in apt-cache where the return code is useless for the task? And success is determined only by the presence of output on STDOUT? Similar to    they both stemming from the same problem. The chosen answer there mentions find -z which sadly isn't applicable solution here and is use-case specific. There is no mention of an idiom or constructing a pipeline without using null-termination (not an option on apt-cache)

How can I test whether a command's output is an empty string while not   interfering with buffering?  Example:  command | ??? if [ $? = 0 ] && [ -n "$output_from_command"]; then    ...   I want the output from the code above to be the same as when running command.


So my class has this question, which is:     Probably it can be anyone (who/whom) is qualified, perhaps even Mr Capp.   (Found on page 112 in Grammar for Writing Workbook.)   I personally put who, because the way I'd phrase that into a sentence is like such:       He/She is qualified for the job.     However, my fellow students say because it's a product of a preposition it should be phrased like:       The one qualified for the job is him/her.   Any help would be useful.

I can never figure out whether I should use who and whom. Most people use who for both colloquially, but some people say this is not correct.  What’s the rule for using who and whom correctly?


I would like to know what the rule is, if there is one, behind the use of commas after all sequence words except then. I have seen "then" written both with a comma and without one, but I remember reading somewhere that you never put a comma after the word "then". is this true?  Examples:   -First, we went to the movies. Then we ate dinner. Finally, we went home.  -Outline your paragraph. Then write your thesis statement.

I am no native speaker and always confused about the comma in introductory phrases, in particular in prepositional phrases. Is there any hard rule when a comma must be set? If I make a google search for certain phrases, I often find both variants. Typical examples where I am not sure whether a comma must be set are:        First[ly][,] I must phone mother   In this case[,] we must...   For simple problems[,] the algorithm...   From Lemma 1.2[,] we obtain...   For a typical user[,] the algorithm...   In our theory[,] we...   A dark line on the horizon[,] the mountain range we were headed for seemed somehow not as threatening as when we had started out on the trip.   Avidly reading her novel[,] Jane did not notice that her stop was approaching.   To be sure[,] it is not easy to see a solution.   When you get to Rome[,] give me a ring.


I'm developing a 2D windows phone game. The game should look the same on every windows phone device. But I have no idea what to do so that my game looks great on every display resolution. How can I do that? What is the best/easiest way?  I don't like letterboxing. So I tried scaling the sprites but that looks blurry(very bad).  My sprites are all in PNG format. I created them in Inkscape.

I'm working on a simple 2D game. I've finished the mobile phone version.  However, my boss wants the game to works on his RT. I'm doing the "conversion" but my buttons are in the wrong places, because I hard-coded the screen size, like this:   texture = game.Content.Load<Texture2D>("StartScreen");  mainFrame = new Rectangle(0, 0, game.GraphicsDevice.Viewport.Width, game.GraphicsDevice.Viewport.Height);   // button definitions  startbrect = new Rectangle(300, 258, 88, 88);  startbtext = game.Content.Load<Texture2D>("bplay");   In this example, mainframe is fine, but startbrect isn't, because I defined the size to match a Windows phone's screen. How can I handle responsive design when all Windows 8 phones' screens are different? Is there a formula or macro to calculate each time the good size?


What are Application Pages, Site Pages and Content Pages

There are lots places in msdn sharepoint forums and blogs where these terms are used and I am confused between them. Can anybody clarify?


I do not quite see why there is the weird restriction of only one bounty at a time. In fact there have been times when I've had a bounty out and then wanted to place another on a question. If bounties are suppose to be encouraged, then why this random limitation?

To celebrate the , I was just preparing for a shopping spree - for example, I need a good YAML parser for a project I'm working on, and thought I'd add a bounty to  to find out whether anything new has come up since then - only to discover that after starting my first bounty, I can't start any more! Then I saw that the new small print has this to say:  Users may only have one active question bounty at any given time.  This is new, isn't it? It didn't use to be this way. Why is this? Is there a good reason for it? I'm disappointed about this. It imposes an arbitrary and unnecessary limitation and takes away a good bit of my initial enthusiasm for what I thought is now a really great system. Can this please be lifted or at least increased to three or five?  Update: @ccomet and @Jon Seigel make some good points about how an unlimited number of bounties would favour high rep users. While I don't fully agree, I can see their point. I still feel at least three simultaneous bounties would be a fair level. Alternatively, apply the limit on bounties for other people's questions only - that would solve the problem of high-rep users setting the agenda, while everybody can continue to put bounties on their own questions as they like.


I have set the computer to notify me of new releases. Recently, it asked if I wanted to upgrade of which I said yes.  The process of upgrading online to 17.10 started and I could see the activities from the screen. After some time, it just stopped.  I gave it time but then realized that it had stopped, so I restarted it.  Even after restarting again and again what I get is as captured in the image. I've tried restarting from previous kernels and all stops as shown on the image.  What went wrong and what can I do to complete the upgrade? My intention was once through with 17.10 was to upgrade to 18.04. Thanks in advance.    Progress so far;  Problem partially solved after following the first answer > askubuntu.com/questions/641642/machine-does-not-start – @George Kostov and in the thread there is a suggetion by  @Sergiy Kolodyazhnyy which is to run startx. Opened virtual terminal CNTR+ALT+F2 then simply typing startx desktop loads. All my folders and files are intact. My woes are not over yet because after restarting, it stops as it was doing previously and again I have to open virtual terminal and run startx. How shall I load starx automatically?

What happened  I was working on my laptop while it upgraded from 15.10 to 16.04 (which I admit was a mistake) when suddenly the Unity overlay disappeared and the only thing on screen was the Firefox browser window. I switched to a new terminal, logged in and tried to run sudo service lightdm restart but instead of restarting correctly, the screen started turning on and off repeatedly, which freaked me out, so I physically turned off the PC.  Long story short: I forced a shutdown halfway through the Ubuntu upgrade.  Ever since, any attempts of logging in normally have been met with a solid black screen and the idle whirring of the CPU fan.  What I have tried  I have tried the recovery mode boot up, but no luck (The log does greet "Welcome to Ubuntu 16.04 LTS!"). I tried out each option that seemed useful:   dpkg goes through the packages as advertised, but strangely enough it always locks up on some Braille package until I do Ctrl+C, at which moment it spouts some error messages and then I think throws me into the normal boot. failsafeX results in a similar situation to the normal boot: a black void. fsck says the single partition I have is a-ok. grub seems to get a bunch of stuff. Don't know if it searches locally or fetches from the internet. network didn't work I think.   I tried following  but couldn't do the sudo part because the filesystem was mounted as readonly. So I ran fsck which mounts as RW and tried again.   This time, after running apt-get autoremove it went through many packages (Setting up foobar (X.Y.ZubuntuN) ...), sometimes installing packages, which I assume is the usual behavior. One thing to note though is it kept getting stuck several times, so I had to Ctrl+C it out of processing the current package. It finally ended on "Processing was halted because there were too many errors.".  While  seems to mention some of the graphics problems I've been experiencing... I have Intel HD Graphics, not Nvidia. I'll keep looking into it.


(Found one  - but this causes Windows 10 to hang).  I've been doing some machine learning and CUDA testing recently - Whenever I max my graphics card out for a while, I see a few random issues (slow framerates in various hardware accelerated apps) that gets quite annoying.  Rebooting works fine - but, when doing this workload, I have so many apps open, it again is quite annoying.  Going to Device Manager, right clicking disable, then enabling works - but, it causes my multi monitor configuration to be lost and I have to reposition everything.  Maybe my Cuda scripts aren't perfect or similar, but, I don't see why it is doing what it is doing when I am finished.  Is there any safe/quick/official way to restart the state or a driver of a graphics card whilst the system is running, without losing multiple desktop config?

I'm suffering from the dreaded . The problem is intermittent and can be "solved" by putting the computer to sleep or restarting it. I hope simply restarting the graphics drivers will remove the symptoms of the problem.  would seem to indicate that restarting the graphics drivers is possible in Windows 7. My question is: how?


I was perusing through thesis and came across the following formatting (as shown in the picture attached) where there is a line separating the figure and its caption.  I really like this formatting, but have no idea how to actually reproduce it. I am currently using the following preamble,  \documentclass[12pt]{article} \usepackage{graphicx} \usepackage[margin=1 in]{geometry} \usepackage{amsmath,amsfonts,amsthm,amssymb} \begin{document} ... \end{document}   Any help would be appreciated.

I need to add a coloured line before my caption; this is what I used:  \usepackage[labelfont=bf]{caption}  \DeclareCaptionFormat{myformat}{\hrulefill #1  #2 #3} \captionsetup[figure]{format=myformat}   but the figure turns out to be line this:    and not a horinzontal line which what I want  2) I want the line to be coloured RGB [152 204 204] with thickness about the same as \top rule. Can anyone show me how to do this?


Hello I have a server in kimsufi 2gb RAM and 500gb storage but the query with php mysql is very slowly   I have change innodb buffer pool size to 500M but i have error too many connections, i add max connection to 500   Why my server is slowly and have many connection (with buffer 500M, if i have buffer 2M i dont have error too many connection) ?  Thanks for your help  My.cnf :  [client] port            = 3306 socket          = /var/run/mysqld/mysqld.sock     [mysqld_safe] socket          = /var/run/mysqld/mysqld.sock nice            = 0   innodb_buffer_pool_size=2M innodb_additional_mem_pool_size=500K innodb_log_buffer_size=500K innodb_thread_concurrency=2   [mysqld] local-infile=0 # # * Basic Settings # user            = mysql pid-file        = /var/run/mysqld/mysqld.pid socket          = /var/run/mysqld/mysqld.sock port            = 3306 basedir         = /usr datadir         = /var/lib/mysql tmpdir          = /tmp lc-messages-dir = /usr/share/mysql skip-external-locking<br> key_buffer              = 16M max_allowed_packet      = 16M thread_stack            = 192K thread_cache_size       = 8 # This replaces the startup script and checks MyISAM tables if needed # the first time they are touched myisam-recover          = BACKUP #max_connections        = 500 max_user_connections    = 0 #table_cache            = 64 #thread_concurrency     = 10 # # * Query Cache Configuration # query_cache_limit       = 16M query_cache_size        = 1M # # * Logging and Replication # # Both location gets rotated by the cronjob. # Be aware that this log type is a performance killer. # As of 5.1 you can enable the log at runtime! general_log_file        = /var/log/mysql/mysql.log general_log             = 1 # # Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf. # # Here you can see queries with especially long duration #log_slow_queries       = /var/log/mysql/mysql-slow.log #long_query_time = 2 #log-queries-not-using-indexes # # The following can be used as easy to replay backup logs or for replication. # note: if you are setting up a replication slave, see README.Debian about #       other settings you may need to change. #server-id              = 1 #log_bin                        = /var/log/mysql/mysql-bin.log expire_logs_days        = 10 max_binlog_size         = 100M #binlog_do_db           = include_database_name #binlog_ignore_db       = include_database_name # # * InnoDB # # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. # Read the manual for more InnoDB related options. There are many! # # * Security Features # # Read the manual, too, if you want chroot! # chroot = /var/lib/mysql/ # # For generating SSL certificates I recommend the OpenSSL GUI "tinyca". # # ssl-ca=/etc/mysql/cacert.pem # ssl-cert=/etc/mysql/server-cert.pem # ssl-key=/etc/mysql/server-key.pem   #innodb_buffer_pool_size=500M #innodb_additional_mem_pool_size=500K #innodb_log_buffer_size=500K #innodb_thread_concurrency=2 [mysqldump] quick quote-names max_allowed_packet      = 16M   [mysql] #no-auto-rehash # faster start of mysql but no tab completition   [isamchk] key_buffer              = 16M   # # * IMPORTANT: Additional settings that can override those from this file! #   The files must end with '.cnf', otherwise they'll be ignored. # !includedir /etc/mysql/conf.d/

I have server in Kimsufi with 2gb RAM but my server is very slow , with simple hosting in ovh it responds quickly ...  With pingdom.com test i have for   server: 10 sec  and simple hosting: 2sec  is there a problem in my mysql configuration ? I dont need change query limit for 2gb (2000M) ?  my.cnf  innodb_buffer_pool_size=2M innodb_additional_mem_pool_size=500K innodb_log_buffer_size=500K innodb_thread_concurrency=2  key_buffer              = 16M max_allowed_packet      = 16M thread_stack            = 192K thread_cache_size       = 8  query_cache_limit       = 1M query_cache_size        = 16M  innodb_buffer_pool_size=2M innodb_additional_mem_pool_size=500K innodb_log_buffer_size=500K innodb_thread_concurrency=2 [mysqldump] quick quote-names max_allowed_packet      = 16M  [mysql] #no-auto-rehash # faster start of mysql but no tab completition  [isamchk] key_buffer              = 16M


I want to remove the last 3 characters of the string if the string has the same prefix and suffix. eg: the string is "systemsys", it should print system. Few inputs I am trying : incgoogleinc. Not working for this input  import java.util.*; public class Main {     public  static void main(String[] args) {     Scanner s = new Scanner(System.in);     String str = s.nextLine();     if(str.length() > 3) {      if (str.startsWith(str.substring(0, 3)) == (str.substring(str.length()-3, str.length()-1))) {         System.out.println(str.substring(0, str.length()-3));         } else {         System.out.println(str); }}}   Not working for different inputs : mictestingmic, comwebsitecom

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


usually the tasks look like  $$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$  or  $$\sum_{i=0}^n i^2 = i_1^2 + i_2^2 + i_3^2+...+i_n^2$$  But for the following task I have this form:  $$\left(\sum_{k=1}^n k\right)^2 = \sum_{k=1}^nk^3 $$  First I am a little confused by how I approach this. Do I transform them into a complete term like in the first example? Or can I do it by just using the sums themselves? And how should I treat the square of the sum best?  The first step is pretty straight forward creating the base case. But as soon as I get into doing the "Induction Step" I am getting stuck and not sure how to proceed.  I am looking to know best practice for this case.  Edit: This question is a little different, since it is expected to proove this only by using complete induction using the sum notation.

How can I prove that     $$1^3+ 2^3 + \cdots + n^3 = \left(\frac{n(n+1)}{2}\right)^2$$    for all $n \in \mathbb{N}$? I am looking for a proof using mathematical induction.  Thanks


Find topological spaces $X$ and $Y$ and a function $f:X\to Y$ which is not continuous, but which has the property that $f(x_n)\to f(x)$ in $Y$ whenever $x_n\to x$ in $X$  I know this is true if $X$ is metrizable, so I want a counterexample when $X$ is not metrizable.

Can you give me an example of a function which is sequentially continuous but not continuous? (I know that in first-countable spaces this is equivalent, but what about in spaces without this condition?)  Thank you :)


I have this line of code in my driver program.  System.out.println("The questions you missed were:" + exam1.questionsMissed());   and this method is supposed to output the questions missed throughout a test of twenty questions. totalIncorrect() returns the number of missed questions.  public int[] questionsMissed() {   int[] missed = new int[totalIncorrect()];   int i = 0;   int x = 0;   do   {      if (correct[i] != student[i])      {         missed[x] = i;         i++;         x++;      }      else      {         i++;      }   }while (i < 20);    return missed;   when i try to call on this method to output the missed questions i get something like   []@9e0bc08   usually a different combo of letters and numbers everytime. Can anyone help me resolve this issue ive been stumped on it for hours  first time actually posting to stack overflow so sorry if anything is difficult to understand

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I am doing these kinds of revision on my own. And I have read some of the similar posts here and learned some techniques in doing it. However, when I was doing this question, I have trouble figuring out the divisibility of $5$. For 13, it is obvious that $n^{13} \equiv n( \text{mod} 13)$. For 7, factorize as $n(n^6 + 1)(n^6-1)$. The second parenthesis is divisible by $7$ by the same theorem. For 3, further factorization becomes $n(n^6+1)(n^2-1)(n^4+n^2+1)=(n^6+1)(n^3-n)(n^4+n^2+1)$. The middle part is divisible by $3$. For 2, when n is odd, the outcome is even; when n is even, the outcome is even.  However, for 5, I am trying to find something like $n^5-n$ or $n^4-1$ in the factorization process. But I can't find it. My careless mistake?? Or this has a special method to duel with. Thank you.

Show that $2730\mid n^{13}-n,\;\;\forall n\in\mathbb{N}$   I tried, $2730=13\cdot5\cdot7\cdot3\cdot2$  We have $13\mid n^{13}-n$, by Fermat's Little Theorem.  We have $2\mid n^{13}-n$, by if $n$ even then $n^{13}-n$ too is even; if $n$ is odd $n^{13}-n$ is odd.  And the numbers $5$ and $7$, how to proceed?


I recently recorded a session with my dad. I stopped the recording after the session ended (with the setting set to save to Desktop), clicked the icon that appeared on the lower right corner to open the file, and played back a few minutes to make sure it worked. I then clicked Share to send it via AirDrop to my computer, which did not work; the status remained "cancelled" despite my efforts. I assumed I'd be able to access it through my phone by sending it through a third app, so I pressed cancel on the AirDrop pop-up window. The entire screen recording closed and (apparently) vanished forever after the action. I'm extremely frustrated because I can't seem to locate this video.


I've been trying to solve this problem for hours now.  I successfully installed Drush locally and it works fine when I'm using it within XAMPP's htdocs folder. However, I want to move the Drupal folder to a virtual host outside htdocs. When I run drush inside the new folder, it says:  $ drush status  PHP Warning:  pcntl_exec(): Error has occurred: (errno 13) Permission denied in phar:///usr/local/bin/drush/includes/startup.inc on line 359  Warning: pcntl_exec(): Error has occurred: (errno 13) Permission denied in phar:///usr/local/bin/drush/includes/startup.inc on line 359 Error has occurred executing the Drush script found at /Users/ivan/drush (errno 13) Permission denied   Tried to change folder owner to admin group, chmod -R 777 - nothing worked. I am running on OS X 10.11.6 and XAMPP 5.6.12.  Thank you for any help.

Per   # Download latest stable release using the code below or browse to github.com/drush-ops/drush/releases. php -r "readfile('http://files.drush.org/drush.phar');" > drush # Or use our upcoming release: php -r "readfile('http://files.drush.org/drush-unstable.phar');" > drush  # Test your install. php drush core-status  # Make `drush` executable as a command from anywhere. Destination can be anywhere on $PATH. chmod +x drush sudo mv drush /usr/local/bin  # Optional. Enrich the bash startup file with completion and aliases. drush init   So I try it but get the following error:  [Michael@devserver ~]$ php -r "readfile('http://files.drush.org/drush.phar');" > drush [Michael@devserver ~]$ php drush core-status PHP Warning:  pcntl_exec(): Error has occurred: (errno 13) Permission denied in phar:///home/Michael/drush/includes/startup.inc on line 359  Warning: pcntl_exec(): Error has occurred: (errno 13) Permission denied in phar:///home/Michael/drush/includes/startup.inc on line 359 Error has occurred executing the Drush script found at /home/Michael/drush (errno 13) Permission denied [Michael@devserver ~]   So then I try running it as root.  [Michael@devserver ~]$ su - Password: [root@devserver ~]# php /home/Michael/drush core-status  PHP configuration      :  /etc/php.ini  PHP OS                 :  Linux  Drush script           :  /home/Michael/drush  Drush version          :  8.1.2  Drush temp directory   :  /tmp  Drush configuration    :  Drush alias files      :  [root@devserver ~]#   So, all is good, and I just need to install it as root?  Any way I can install it as a normal user?  Thanks


If there are multiple questions asking essentially the same /similar, which of them should be kept and which should be marked as duplicate?  Do we have a guideline for this?   I was under the impression that the first question or the best question should be the one to be retained (not closed).

I have seen this many times, a question is being asked because a previous, duplicate question was asked and answered a few years ago and has no longer relevant answers.  The  is to edit the old question, or add new answers to it, but it is not always happening.  I was wondering, should I still mark it as duplicate and vote to close it? Or just leave it as is?


I've stopped using my tablet several years ago out of frustration. Ever since Kit Kat/4.4.4 everything has slowed to a near unusable crawl. I tried rectifying this by flashing it with a SlimRoms OS (SlimKat) but it only improves things moderately and some applications, like YouTube, crash often.   I'm looking to see if maybe Jelly Bean runs better, but so far I've had no luck with it. The Samsung downgraded firmware just puts it into a boot loop and I cannot find a compatible SlimRom, Lineage OS, or Cyanogenmod. Does anyone know if one exists?

There are several reasons to be looking for a ROM:   Upgrading or downgrading your stock ROM Looking for firmware from a different region/language Flashing a custom ROM for different features, removing bloat, etc.   But where can one find ROMs in the first place?  What sites are likely to have the ROM I need?  ; please add to the wiki answer instead of posting separate answers.  See also:


I'm looking at purchasing an ASUS Q504 laptop. I want to dual boot either W10 or Ubuntu Mate. The question is will new generation machines allow this? I recall installing mint on my wifes W8 laptop and needed to change to legacy boot. Is there any good way to tell which laptops will install, or is this just like a regular Dual boot install?   Mike -

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I have a game on Ubuntu Software Center. It costs 5 $. But I only get 4$. Ok. But, when my 2nd buyer bought, instead of having 8$, I had 7.20$. Now, I got a third buyer and I have 10.40$ instaed of 12$. Why????

I've just created an account to submit an application to the Ubuntu Software Centre and the agreement says: "You are responsible for determining applicable taxes in connection with distributing your App, and you shall pay applicable taxes to the applicable tax authorities.".  Does this mean that Canonical doesn't collect tax (especially VAT in the EU) and it's my responsibility to do it?   Also, am I wrong to assume that the price listed by the USC is the same for both people who pay taxes and for those who don't need to pay them?


I've noticed when in Zoom meetings, all audio playing on my computer, even to audio outputs which Zoom isn't using, gets distorted and becomes monophonic. I often want to listen to high quality music while on a Zoom, and having everything sounds essentially like a phone call does not help anything. Any idea what could be causing this, and if it's possible to get around? I was thinking Zoom might be enabling some sort of communications mode but I couldn't find any information on that. Obviously, enabling original sound and changing settings within the Zoom application hasn't done anything.

Ever since I purchased the AirPods (1st Generation), they demonstrate extremely poor quality while activating the AirPod mic, whilst they are connected to a Mac. When activating the mic to record audio, it seems that both the recording quality AND audio playback quality severely drops to a substandard level (Mono 8.0 kHz).  For example, if I invoke Siri on the Mac, whatever is being said and recorded by me, AND the Siri/Mac/AirPod audio  response will be in poor quality. After the recording is done, audio playback quality usually goes back to normal1. Any mic audio recorded to a file will however be in the poor quality; which is why I interpret the issue to affect both recording and playback qualities.  The issue appears to be identical to the one discussed in this Apple Support Forum . The thread offers possible explanations but no definitive solution or suggested course of action.  I have this issue with several Macs of various recent models. I don't have this problem when using the AirPods with an iPhone.  I have tried resetting the Mac Bluetooth interface, tried resetting the AirPods, and so forth.    FYI: Using the macOS native application Audio MIDI Setup, I attempted to observe what's happening when AirPod recording is activated. Output quality drops from the standard 2 ch 24-bit Integer 44.1 kHz → 1 ch 16-bit Integer 8.0 kHz.      1It has happened that the Mac got permanently stuck in low quality until system reboot, or even whenever the AirPods were connected afterwards. I had to attempt AirPod unpair/re-pair, and even a charging case reset to fix the latter situation.


I have been in this long-term game where the group has been in a semi-railroaded adventure. However, there has been something that has been bugging me for a while.  The game-master has this person following us who is the father of the gods. He resurrects us when we get a party wipe or gives us quests, which made him appear as a typical NPC at first; however, as the game progressed, the guy has started appearing everywhere, watching us fight and occasionally mocking us while flaunting his powers that cannot be explained by the book (like stopping time for everyone except him and the group while also disabling all of the group's spells).  It has reached a point where several players along with me are disturbed by this character appearing everywhere and mocking us, or getting mad at us saying we owe him for doing something he was against and then sending us to the next quest with us having no choice but to obey him or risk his wrath. All the while, the game-master constantly states that we are free to follow any lead we want.  I am planning to talk to the game-master and ask him to dial back with that character a bit or something similar. I am afraid that he will take it as a personal insult, as he seems to really associate with the character; the character says what he (the GM) wants to say to the party, and speaks and acts the same way he does.   How can I talk to the GM and tell him my problem with his character without actually offending him?

My GM has created a Mary-Sue-type NPC. She is a demigod with thousands of years of experience, and was once an enemy, but is now an ally of the party, though really of only a few favourite players. She is literally undefeatable, and I actually mean literally, not figuratively. Any attempts to defeat her will be vetoed.  To compound the problem, she is also pretty much a jerk, though to the GM's credit he has actually given some attempt to give her a heart of gold. The invulnerability and jerkishness don't combine well, e.g. a nother player character tried to become friends with her and make up for previous grudges—denied and his head is being used as a football.  This situation will only be worsened by the problem that our next game will be in the same setting, except that our new characters will be nerfed, due to the fact that our whole group agrees our last characters were too OP.  The Mary Sue, of course, will stay on the same power level.  This is making the game quite a bit less fun for me, though I don't know about the other players. It is quite seriously ruining it, due to the fact that she has an extremely short fuse and will kill anyone who annoys her.  What can I do to persuade the GM to make her less powerful/obnoxious? Please help!


It all started when I changed my AMD graphic cards to GTX.   So I have a problem with Ubuntu, it happened before but I managed to install it through LEGACY version but not UEFI (With nomodeset only that way).   So now I need to install Ubuntu UEFI, because I want dual-boot Ubuntu/Windows.   Again, when I press in the menu "Install UBUNTU" my both monitors (both connected to GPU one is DP and other is VGA) just goes OFF SIGNAL and I can't do a thing just force OFF computer by pressing and holding power button.     My PC (if it helps):    GTX 970 I5-4430  8GB RAM h81m-k   ALSO, I've tried to turning off Secure Boot and Fast Boot.   Thanks for answers!   P.S. Main OS is Windows 10  AFTER FIX (SORRY FOR DUPLICATE)  So after I install ubuntu, when I press RESTART NOW after installation, my computer restarts, but when I select UBUNTU in a boot menu, it just goes to sleep, NO SIGNAL again, is it possible to set nomodeset before it goes to Sleep while booting into OS ? I hope you guys understood the question.    NOTE: I deleted Windows 10. So it's only ubuntu on my SSD.

When I hit e this is what I see   where do I place nomodeset


I have a Samsung Galaxy Folder 2 and trying to have it boot when the charging cable plugs in. The phone is not rooted (and probably not going to) and doesn't have fastboot (instead it has ODIN mode). Is there anyway to make it happen or rooting it is the only way? Thanks,

Is it possible to automatically power on the device once the charger is connected given that the device is initially turned off?


See bottom of question for edits elaborating on original question  A SATA hard drive suffered mechanical failure (a little while after percussive shock) and OSX declared it unreadable despite correctly ascertaining it's existence and storage capacity (see links below).  Testdisk software, and presumably all other recovery software does not recognise it.  How does one manually recover, byte-by-byte if necessary, the contents of such a hard drive using (physical) tools other than a PC?  Message on plugging in HDD with SATA cable:    Result of initializing anyway:    First Aid does nothing despite returning an 'operation successful' message.  Responses to questions:  @Aganju yes it is still spinning, the HDD vibrates slightly when plugged into a computer. @fixer1234 I believe my question differs in that   The freezer trick is noted as a last resort but  (a biased source I admit but it makes the same argument as other sites) There are new software solutions suggested here, which I will elaborate on ASAP   I am having trouble discerning whether it is spindle/controller/flash memory from the linked question's only answer to mechanical failure.  @davidgo Ddrescue is available for OSX... however, taking your suggestion to put the drive directly into a computer (I have the original laptop which due to insurance has a new drive - I am not attached to this laptop or it's new drive) - presumably I would need to boot a Linux OS (any OS?) from a USB drive?

What steps can I take to try to recover lost or inaccessible data from any storage device?  Answers:   This applies to any computer storage device, e.g. internal/external hard drives, USB sticks, flash memory. The most important thing is to STOP using it, any type of I/O can ruin your chances of a recovery.     We have separate questions covering common problems with USB flash drives in greater detail:


If $A$ and $B$ are $n\times n$ matrices, with $A$ nonsingular prove that $AB$ and $BA$ have the same set of eigenvalues.  Can we begin with $ABX_1=\lambda_1X_1$, somehow show by manipulation that $BAX_1=\lambda_1X_2$?

a.) Let A and B be $n$ x $n$ matrices. Prove that the matrix products   $AB$  and $BA$ have the same eigenvalues.      b.) Prove that every eigenvalue of a matrix A is also an eigenvalue of   its transpose $A^T$. Also, prove that if v is an eigenvector of A with   eigenvalue $\lambda$ and w is an eigenvector of $A^T$ with a different   eigenvalue $\mu \ne \lambda$, then v and w are orthogonal vectors with   respect to the dot product.   For a, I know that if their eigenvalues are the same then their eigenvectors must relate too.    For the first part of b, is it similar to proving that the $det(A) =det (A^T)$? And, I do not know how to do the second part.


I tried to load base map from OpenLayers, but it doesn't work at all. QGIS popped up an error message showed below. What I noticed the slash foreword different way. I guess something wrong with the connect to Python.   How can I re-set it?     An error has occurred while executing Python code:       Traceback (most recent call last):   File    "C:/Users/.qgis2/python/plugins\openlayers_plugin\weblayers\weblayer.py"      ......      Python version:      2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]      Python path:   ['C:/PROGRA~1/QGISPI~1/apps/qgis/./python/plugins\processing',       ......

I've been using QGIS for a while but since using QGIS 2 the OpenLayers plugin doesn't work for me on my home PC. However, I have installed the same version at my workplace with success. I have looked through other posts, and tried setting the CRS and allowing on the fly but it doesn't work for me.  Can anyone offer any other guidance?   I have also tried uninstall/ re-install.  Error code below:     An error has occurred while executing Python code:      Traceback (most recent call last):     File "C:\Users\Lee/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py", line 48, in addLayer       self.plugin.addLayer(self)     File "C:\Users\Lee/.qgis2/python/plugins\openlayers_plugin\openlayers_plugin.py", line 194, in addLayer       layer = OpenlayersLayer(self.iface, self.__coordRSGoogle, self.olLayerTypeRegistry)     File "C:\Users\Lee/.qgis2/python/plugins\openlayers_plugin\openlayers_layer.py", line 64, in __init       self.page = OLWebPage()     File "C:\Users\Lee/.qgis2/python/plugins\openlayers_plugin\openlayers_layer.py", line 38, in init       proxy = getProxy()     File "C:\Users\Lee/.qgis2/python/plugins\openlayers_plugin\tools_network.py", line 42, in getProxy       proxy.setPort(settings.value("/proxyPort", 10, type=int))   TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2      Python version:   2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]      QGIS version:   2.0.1-Dufour Dufour, d94c044      Python path: ['C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\processing', 'C:\Users\Lee\.qgis2\python\plugins\GeoCoding', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python', 'C:\Users\Lee/.qgis2/python', 'C:\Users\Lee/.qgis2/python/plugins', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins', 'C:\PROGRA~1\QGISDU~1\bin\python27.zip', 'C:\PROGRA~1\QGISDU~1\apps\Python27\DLLs', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\plat-win', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\lib-tk', 'C:\PROGRA~1\QGISDU~1\bin', 'C:\PROGRA~1\QGISDU~1\apps\Python27', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\six-1.3.0-py2.7.egg', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg', 'C:\PROGRA~1\QGISDU~1\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg', 'C:\Users\Lee\.qgis2\python\plugins\mmqgis/forms', 'C:\PROGRA~1\QGISDU~1\apps\qgis\python\plugins\fTools\tools']


I've been told many times that, when carrying an independent t-test, I have to determine whether my dependent variable (DP) is normally distributed on boths levels of my independent variable (IV).  On the other hand, I know that the independent t-test (and many other statistic test) is based on the General Linear Model (GLM):  Y = b0 + b1*X + e   Where Y is my DV (continuous) and X my IV (coded for example has -1 and +1). As far as I know, the GLM requires, among other things, that the errors are normally distributed. It doesn't say anything about the distribution of the IV or DV.  If my assumptions are correct, then why are we asked to check if our variables are normally distributed?  Also, assume I have a large sample.

This issue seems to rear its ugly head all the time, and I'm trying to decapitate it for my own understanding of statistics (and sanity!).   The assumptions of general linear models (t-test, ANOVA, regression etc.) include the "assumption of normality", but I have found this is rarely described clearly.   I often come across statistics textbooks / manuals / etc. simply stating that the "assumption of normality" applies to each group (i.e., categorical X variables), and we should we examining departures from normality for each group.   Questions:     does the assumption refer to the values of Y or the residuals of Y?  for a particular group, is it possible to have a strongly non-normal distribution of Y values (e.g., skewed) BUT an approximately (or at least more normal) distribution of residuals of Y?   Other sources describe that the assumption pertains to the residuals of the model (in cases where there are groups, e.g. t-tests / ANOVA), and we should be examining departures of normality of these residuals (i.e., only one Q-Q plot/test to run).  does normality of residuals for the model imply normality of residuals for the groups? In other words, should we just examine the model residuals (contrary to instructions in many texts)?  To put this in a context, consider this hypothetical example:   I want to compare tree height (Y) between two populations (X).   In one population the distribution of Y is strongly right-skewed (i.e., most trees short, very few tall), while the other is virtually normal  Height is higher overall in the normally distributed population (suggesting there may be a 'real' difference). Transformation of the data does not substantially improve the distribution of the first    population.  Firstly, is it valid to compare the groups given the radically different height distributions? How do I approach the "assumption of normality" here? Recall height in one population is not normally distributed. Do I examine residuals for both populations separately OR residuals for the model (t-test)?     Please refer to questions by number in replies, experience has shown me people get lost or sidetracked easily (especially me!). Keep in mind I am not a statistician; though I have a reasonably conceptual (i.e., not technical!) understanding of statistics.  P.S., I have searched the archives and read the following threads which have not cemented my understanding:


I have some text parented to the camera to show how many lives the player has.  In the viewport, it looks like this:  But in the game, it looks like this:   How can I fix this?  Thank you.

I want to change the color of some text in my game. I've tried adding materials, but whenever I press P to play the game, the text stays the same white color. Any ideas?


I was asked, what I thought was a simple question, until I thought about it.  "Is there ever a need for using Me. (VB.Net) or this. (C#) - when referring to properties belonging to the same scope?"  i.e. There are some legacy projects we work on and a co-worker was using class properties via Me.[Property] - I noticed this and explained that he can simply access the property directly (remove the Me.).  (VB.Net) Public Property Name() As String Me.Name = "My Name" vs. Name = "My Name"  (C#) public string Name{ get; set; } this.Name = "My Name"; vs. Name = "My Name";   I was wondering though, is there a reason (other than passing the entire class / object, which I believe is a different topic) that you would ever need to call Me. or this.  Or is it simply legacy code left in place that causes no harm (has no positive or negative effect)?

I was curious about how other people use the this keyword. I tend to use it in constructors, but I may also use it throughout the class in other methods. Some examples:  In a constructor:  public Light(Vector v) {     this.dir = new Vector(v); }   Elsewhere  public void SomeMethod() {     Vector vec = new Vector();     double d = (vec * vec) - (this.radius * this.radius); }


Express in gamma/beta functions and find n's that intergral converges.  $\int_{0}^{\pi/2}\tan^n x \ dx$  i am stuck a little bit

I need help solving this integral: for which values of the parameter $p$ is this improper integral convergent?  $$\int_{0}^{\pi/2}\tan^{p}(x) \; dx$$  Thanks a lot!


Can any cookies collect my entire browsing history when they're dropped? I use CCleaner to remove all cookies after I close browser, exceptions are the sites I have accounts.

When I visit a website it sometimes puts cookies on my browser. Usually cookies keep track of browsing info from that particular site. If I don't delete those cookies and browse other websites, will the cookies be able to know which site I am browsing? Also, can any website read browsing history which is saved by browsers? Can any website know about my browsing history by help of cookies, browsing histories saved by browsers, or by any scripting language e.g. javascript?


I'll be basically doing programming and stuff.

I read many places that the rule of thumb for swap space is to double the amount of physical RAM. However, 32 GB does seem a LOT. Do I need that much? Do I need it at all with this high amount of physical RAM?


Can anyone tell me please where does the gap come from?   Thanks and sorry if the question is not exactly relevant, I just didn't know where else to ask.

Below is a visual proof (!) that $32.5 = 31.5$. How could that be?    (As noted in a comment and answer, this is known as .)


I know that huge means very large. However, I have heard from my English friends that huge cannot be used instead of very large in some situations. What are some examples where huge cannot be used instead of very large or very big?

What is the difference between huge and big?  For example:        He made a huge difference to the team.   He made a big difference to the team.      Is there a difference in meaning?


I have a problem with outputting HTML in PHP. I read the values from a MySQL database, wich is utf8_bin encoded.  When i have a normal HTML document, it outputs the letters Č, Š and Ž completely normal. But, when i read the values from the database, these characters look like this: �  I used a solution that i found on stack:   header('Content-Type: text/html; charset=ISO-8859-1');   And it worked... But only for the php part, the HTML was now the one that was causing me the problems.   You can check the site if you would like to see the code:   Currently it is set as it was, before implementing the previous solution.  Any ideas?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I just confused myself trying explain "infinity" to my daughter.  Infinity and a half is infinity. Check.  Half of infinity is infinity. Check.  Infinity minus half infinity is...what?  I get that $\infty-\infty$ is indeterminate, but Inf*(1-0.5) is obviously infinity. So I guess factoring out infinities is a no-go. That's fine. What about taking the limit?  $$\lim_{x\to\infty} x - 0.5x=\infty$$  Is that right? If it is, why is that not equivalent to $\infty-0.5\infty$?

I would say $\infty - \infty=0$ because even though $\infty$ is an undetermined number, $\infty = \infty$. So $\infty-\infty=0$.


How do I upgrade OpenSSL using Ubuntu's repository?  I see the USN at   and the package here   but I can't find instructions on how to use that to upgrade my OpenSSL version.  The standard update commands don't upgrade my version of ssl:  sudo apt-get update sudo apt-get dist-upgrade  openssl OpenSSL> version OpenSSL 1.0.1 14 Mar 2012   How do I get the latest version from the repository?  Edit:  dpkg --list openssl  ||/ Name                      Version                   Description +++-=========================-=========================-================================================================== ii  openssl                   1.0.1-4ubuntu5.12         Secure Socket Layer (SSL) binary and related cryptographic tools   aptitude show libssl1.0.0  Package: libssl1.0.0               State: installed Automatically installed: no Multi-Arch: same Version: 1.0.1-4ubuntu5.12 Priority: required Section: libs Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: amd64 Uncompressed Size: 2,991 k Depends: libc6 (>= 2.14), zlib1g (>= 1:1.1.4), debconf (>= 0.5) | debconf-2.0 PreDepends: multiarch-support Breaks: openssh-client (< 1:5.9p1-4), openssh-client (< 1:5.9p1-4), openssh-server (< 1:5.9p1-4), openssh-server (< 1:5.9p1-4),         libssl1.0.0 (!= 1.0.1-4ubuntu5.12) Replaces: libssl1.0.0 (< 1.0.1-4ubuntu5.12) Description: SSL shared libraries  libssl and libcrypto shared libraries needed by programs like apache-ssl, telnet-ssl and openssh.    It is part of the OpenSSL implementation of SSL.

This is a  about understanding and remediating the Heartbleed security issue.   What exactly is CVE-2014-0160 AKA "Heartbleed"? What is the cause, what OSs and versions of OpenSSL are vulnerable, what are the symptoms, are there any methods to detect a successful exploit?   How can I check to see if my system is affected? How can this vulnerability be mitigated? Should I be concerned that my keys or other private data have been compromised? What other side effects should I be concerned about?


I just put a 50 reputation bounty and selected Award an existing answer but it won't let me award the existing answer for 24 hours.  Because the answer is there, how come I can't award it immediately?  Perhaps this is a bug?

Possible Duplicate:          I set an incentive bounty on  (before the new bounty system was announced). Once a qualifying answer had been posted, I clicked to start the bounty, and was confronted with the new bounty system. I selected that I'd like to reward an existing answer, but it's still making me wait 24 hours before I can award it!  For this specific bounty type, can the waiting period be waived?


Tried to put 5 smashed garlic cloves in boiling water in a hope to get the spanich flavoured but failed. Spanich was being steamed in that vessel.  I intend to steam cook mushrooms, spanich, green onions, and cauliflower.  What is the way to infuse strong garlic, ginger, and black pepper flavours in them?

I'm a newbie cook from to prepare the nightly dinner for my wife and I. I usually have a meat and stream or boil sweet potato, corn, Brussels sprouts, asparagus or broccolini.  It occurred to me that I was adding a little bit of butter and salt to everything that I cooked. I know if I bake something I could add rosemary etc, but how can I season / flavour food different steaming / boiling? Adding herbs to the water??


I am facing the problem that I want to join the attributes from one specific column of ALL intersecting features from my join layer to my target layer in case of an intersection (1:n relationship) using QGIS. I can´t find any option to do so having wasted all week on this problem. I am looking for a strategy, concatenating the desired attributes of my join layer in a column of my target layer.  Do you know if there is any way to do so without having to do too much scripting?

Does anyone know if it's possible to do a 'one to many' spatial join based on distance in QGIS?  The "Join Attributes By Location" under ->Vector->Data Management Tools is very limited...  Just to be clear, below is how it's done in ArcGIS.


I'm not understanding why the below are equal, can someone please explain?  Thanks!  $$\frac1{(1-x)^5}=\sum_{n\geq0}{n+4\choose 4}x^n$$

Can someone please explain to me how is $$\dfrac1{(1-x)^5}=\sum_{n\geq0}{n+4\choose4}x^n$$  Thanks!