I got a laptop(64-bit) with ubuntu installed on it.It has 320GB hard disk,but only one drive is there of all 320gb in which ubuntu is installed.I want to partition this single drive on which ubuntu is installed, into 2 partitions so that i can install win8 also.  So i want to shrink the drive in which ubuntu is installed without formating it,so that i  can create another partition from it

I'm planing to install ubuntu 12.10 in a dell inspiron 17 laptop as the unique operating system.  I would like to know how to partition the drive in  order to have my data separate from the operating system. is it better to do it in the installation or I could go with the default and then use gparted to do the job?  where can I find some tutorials on this?  I'm finding lots of things with dual boot, but I'm not interested on that.


I am trying to export a super simple animation, and it always outputs a blank screen for the video.     I have looked at all the question on this topic, and they don't seem to help me.   What am I doing wrong?   Edit: Here is my file:

A scene I made is not rendering, at all. This grey screen stays the same and nothing changes.  Here are my settings:  [


I know how to do it for one string:  for (int i = 0; i < string.length(); i++){     char c = string.charAt(i);         }   but when I have something like a String [][] how it works?

I have an array in the form of 'int[][]' that represents the co-ordinates of a small grid. Each co-ordinate has been assigned its own value. eg array[0][4] = 28......  I have two questions. Firstly, how do I iterate through all the stored values. Secondly, I want to be able to input a value and have its specific co-ordinates in the grid returned. What would be the best way to approach this?  Thank you for any help!


I am making a program in Python 3.5 which will run different functions when you enter different inputs:  commandList = ["test1", "test2", "test3"] def test1():     print("TEST 1 FUNCTION") def test2():     print("TEST 2 FUNCTION") def test3():     print("TEST 3 FUNCTION") while True:     userRaw = input(">:")     user = userRaw.lower()     for x in range(len(commandList)):         if user == commandList[x]:             # Needs to run function which has the same name as the string 'user'             # E.g. if user = 'test1' then function test1() is run.   What would I need to enter after the if statement (where the comments are)?  I have tried doing something like this, but it has not worked:  commandList = ["test1", "test2", "test3"] def function(test1):     print("TEST 1 FUNCTION") def function(test2):     print("TEST 2 FUNCTION") def function(test3):     print("TEST 3 FUNCTION") while True:     userRaw = input(">:")     user = userRaw.lower()     for x in range(len(commandList)):         if user == commandList[x]:             function(user)   I am trying to avoid a lots of if statements as I aim to make my code easily scalable (quickly add new functions).

What is the best way to go about calling a function given a string with the function's name in a Python program.  For example, let's say that I have a module foo, and I have a string whose content is "bar". What is the best way to call foo.bar()?  I need to get the return value of the function, which is why I don't just use eval. I figured out how to do it by using eval to define a temp function that returns the result of that function call, but I'm hoping that there is a more elegant way to do this.


What is the difference between  echo "Hello " ; echo "world"   and  echo "Hello " && echo "world"   Both seems to run the two commands after each other.

I often see tutorials online that connect various commands with different symbols. For example:  command1 |  command2 command1 &  command2 command1 || command2     command1 && command2   Others seem to be connecting commands to files:  command1  > file1 command1  >> file1   What are these things? What are they called? What do they do? Are there more of them?    .


For a long time, I have been convinced that the use of the word am without the word I either before or after it is incorrect. For instance, saying Am going all by itself.    However, I recently ran a search on it to try and clear up the confusion, but that has left me even more confused than I was to begin with!

I want to know firstly if it's grammatically correct to start a declarative sentence with "Am". For example:     Am excited about the game today.   Secondly, if it is grammatically incorrect, then I wanted to ask how much "head room" there is for the above usage. I can't think of an example now, nor find one here at english.stackexchange. However I imagine there are usages of the english language that grammatically are illegal, yet have somehow become accepted as colloquial or idiomatic perhaps.


I have Asus GL552VX with Corei7 6700hq, 16Gb RAM and 128 Gb SSD.  I tried with both Ubuntu 16.10 and 16.04.  I create bootable USB with Rufus.  And the installation stop at the loading screen forever.... ( so sad )  Does anyone know what is the issue?  And which version of ubuntu can be installed on my machine ?  Thank

I have ASUS Rog GL 552 VW Dh71 laptop .   I am not able to install Ubuntu or any Linux on my machine. I tried installation with Ubuntu 14.04, 15.10 and 16.04 beta 2 with no success.  My screen goes black after pressing install Ubuntu on grub in 16.04 and I receive error messages   nouveau E[ PIBUS] [000:01:00.0] HUB:0x6013d4 0x00005700 (0x1c 408200) nouveau E[ DRM]failed to idle channel 0xccc0001 [DRM]   in 14.04 and 15.10, what should I do ?


I am reading Nonnegative Matrix Factorization(NMF) and encounter following sentences:     Although the functions $||V - W H||^2$ are convex in W only or H only, they are not convex in both variables together   Can someone explain why it's not convex in both variables together? Thanks.

Supposing $\mathbf{X}\in\mathbb{R}_+^{m\times n}$, $\mathbf{Y}\in\mathbb{R}_+^{m\times r}$, $\mathbf{W}\in\mathbb{R}_+^{r\times n}$, the non-negative matrix factorization problem is defined as: $$\min_{\mathbf{Y},\mathbf{W}}\left\|\mathbf{X}-\mathbf{Y}\mathbf{W}\right\|_F^2$$  Why is this problem non-convex?


I am writing a lightweight class to deal with csv format files. One of the functions is sum which is getting the sum of a specific column. It receives a numeric type as parameter and returns the sum of that type. So I write it in template style. I did it like this:  #define IS_NUMERIC_VALUE (  std::is_same<T,int>::value || std::is_same<T,long>::value || std::is_same<T,double>::value || std::is_same<T,float>::value || std::is_same<T,size_t>::value ) template < class T, class = typename std::enable_if< IS_NUMERIC_VALUE >::type >  int sum(T& get_sum);  template < class T, class >  int sum(T& get_sum) {     int iRet {1};     //doing sth here     return iRet; }   It works well but when I was trying to move the implementation part to a .cpp file, I got an error of undefined symbol xxx. I can't put it in one file because I have many other similar ones. What is the problem?

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I have seen some similar answers, but I can't find something specific for this case.  I have a list of tuples:  [(5, 0), (3, 1), (3, 2), (5, 3), (6, 4)]  What I want is to remove tuples from this list only when first element of tuple has occurred previously in the list and the tuple which remains should have the smallest second element.  So the output should look like this:  [(5, 0), (3, 1), (6, 4)]

Is there a built-in that removes duplicates from list in Python, whilst preserving order? I know that I can use a set to remove duplicates, but that destroys the original order. I also know that I can roll my own like this:  def uniq(input):   output = []   for x in input:     if x not in output:       output.append(x)   return output   (Thanks to  for that .)  But I'd like to avail myself of a built-in or a more Pythonic idiom if possible.  Related question:


Maybe an example will help.  $F(x,y)= x^2 + y^2$.  Now the gradient would look like $<2x , 2y > or  2xi + 2yj$ where $i$ and $j$ are unit vectors of the $x$ and $y$ axis.  This vector field spans every quadrant.  The gradient is sort of a place holder to build a vector field.    Certainly it does not point in one direction so in what sense is it pointing in the maximum direction? The maximum direction of what?    If you don't mind a little extra question on the side, but relevant, since it was the source of my original confusion.  Is directional derivative is a dot product with the gradient and a unit vector pointing in any direction you choose but if the angle between the gradient and the unit vector is 0 , the cosine is 1 so that means that unit vector was pointing in the direction of the gradient ?   Since the directional derivative is a number only  of what utility is it other than this observation ? I may be missing the boat on directional derivative.

I am trying to really understand why the gradient of a function gives the direction of steepest ascent intuitively.  Assuming that the function is differentiable at the point in question, a) I had a look at a few resources online and also looked at this   , a popular question on this stackexchange site. The accepted answer basically says that we multiply the gradient with an arbitrary vector and then say that the product is maximum when the vector points in the same direction as the gradient? This to me really does not answer the question, but it has 31 upvotes so can someone please point out what I am obviously missing?  b) Does the gradient of a function tell us a way to reach the maxima or minima? if yes, then how and which one - maxima or minima or both? Edit: I read the gradient descent algorithm and that answers this part of my question.  c) Since gradient is a feature of the function at some particular point - am I right in assuming that it can only point to the local maxima or minima?


I'd like to come up with a probabilistic argument to evaluate the following limit: $$\lim_{n\to\infty} e^{-n} \sum_{k = 0}^n \frac{n^k}{k!}$$  The reason is that, if $X \sim \mathrm{Poisson}(n)$, the limit translates to $$\lim_{n\to\infty} F_X(n)$$ where $F_X$ is the cumulative distribution function of $X$. I know that it can be expressed by resorting to the gamma function and its incomplete counterpart, but I don't think I'll be able to evaluate the limit if I substitute that expression.  Is there a simpler probabilistic argument in this case? In the meantime, I confirmed the limit indeed exists, and it's $1/2$:    import scipy as sp, matplotlib.pyplot as plt  F_X = lambda n: (sp.stats.distributions.poisson.rvs(n, size=100000) <= n).mean() ns = np.logspace(0, 6, 30) fig, ax = plt.subplots(figsize=(10, 6)) ax.semilogx(ns, list(map(F_X, ns)), marker='o') ax.set_xlabel('$n$', fontsize=16) ax.set_ylabel('$F_X$', fontsize=16)

I'm supposed to calculate: $$\lim_{n\to\infty} e^{-n} \sum_{k=0}^{n} \frac{n^k}{k!}$$ By using WolframAlpha, I might guess that the limit is $\frac{1}{2}$, which is a pretty interesting and nice result. I wonder in which ways we may approach it.


I accidentally shot in jpg and I have some way too warm photos. What can I do with them?

A friend of mine accidentally shot a load of photos with the white-balance on his camera set to "Tungsten". Is there an easy way to correct the resultant colour cast with Photoshop?


My partner recently got refused a U.K. visitor visa thinking that he has not got access to these funds even though he provided bank statements dated back to 6 months, an employment letter, a salary letter which are all in his name so I’m not really understanding what more evidence he can provide to get approved in his net application

Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application?


There is already a question about , but how much should I tip?

In Bavaria, I paid for my drink, I asked her for "Ruckgeld", but only got the integer part of the money back, the rest of it, she kept it for tip! I looked her in the eye and she understood that I wasn't happy with that "initiative", but wouldn't blink an eye!  My company advised me to let it go, mentioning that if I was going to ask for the change, she would swear.  Notice how she didn't return me the correct amount back and then stare at me, demanding for tip, but she would decide for me!  Since, I will be around for a week or so, I was thinking of paying the exact amount of money next time. Will I get in an uncomfortable situation of having the waiter stare at me, demanding a tip? In other words, is tipping mandatory in Germany?    PS: Having experienced the tipping-cruelty in USA, and having tipped generously waiters across the Mediterranean for their supreme behavior, this Saturday night came as a shock, since I had the impression that this awful habit was only a USA-thing (you know, just like the fake audience laughing they have in USA TV series :) ).


I am using the report document class and would like to define the following behaviour when using the chapter command:  Normally it makes the chapter the following way:  \chapter{Theory}      Chapter 1 Theory   I would like to make it look the following:     1 Theory   I know this sounds a lot like just using an article and sections but I want to use sections and subsections in my chapters.

Using \chapter I get:     Chapter 1. The meaning of this novel   Chapter 2. The plot of this novel   Chapter 3. The moral of this novel   I want to get instead:     1. The meaning of this novel   2. The plot of this novel   3. The moral of this novel


Rutherford's model of atom was ruled out because it failed in explaining stability of an atom. Since any particle that is accelerating continuously emit radiation. And in case of an atom eventually electrons fall into the nucleus. Bohr said that they revolve in stable orbits around the nucleus. Still they're in uniform circular motion right? Why don't they radiate energy and fall into the nucleus?

We, as high school students have been taught that-because Bohr's model of an atom assigns specific orbits for electrons-that it is better than Rutherford's model. But what Rutherford failed to explain was why electrons don't emit EM waves & fall into the nucleus. I don't see how the introduction of 'atomic orbitals' overcame this defect. Can't it still radiate EM waves?


Why the following is not correct? : $$\lim_{n \to \infty} (1+\frac1n)^n = \lim_{n \to \infty} (1+\frac1n) \lim_{n \to \infty} (1+\frac1n) \dots \lim_{n \to \infty} (1+\frac1n) = 1 \times 1 \times \dots 1 = 1.$$ I guess that the problem (as usual) lies in infinity, but if so how? I checked all the theorems in Fitzpatrick's book of Calculus, nothing prevents to do the limits infinitely many times (esp. for a convergent one)!

On Wikipedia, it says that $\lim_{n\to\infty}(1+\frac{1}{n})^n = e$ :     It [e] is approximately equal to 2.71828,[1] and is the limit of (1 + 1/n)n as n approaches infinity, ... ()   When I evaluate $(1+\frac{1}{n})^n$ for $n = 10^8$, I get approximately $2.718281798347$ which indeed is pretty close to $e$.  But when I try to "solve" the limit using the laws of limits, I get  $$\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^n = \left(\lim_{n\to\infty}\left(1+\frac{1}{n}\right)\right)^n$$  because of the power law  $$ = \left(\lim_{n\to\infty}(1)+\lim_{n\to\infty}\left(\frac{1}{n}\right)\right)^n$$  because of the addition law  $$=\left(1+0\right)^n = 1$$  but that would mean that $e=1$, which is obviously not true.  What am I missing / doing wrong?  Thanks in advance.


I've a problem recently with my PC. The RAM usage is always almost 100% no matter how many apps it's running. The problem appears these days and before nothing was wrong.  I'm using windows 10, my ram is the HyperX 8 GB 2133 MHz DDR4 (HX421C14FB/8) and my MOBO is the MSI Gaming M3 (MS-7978).  Task manager screenshots while only google chrome (to write this question) was open but it's the same when there is no app running:

I have 16GB of system RAM. On startup with no applications open except the task-manager Windows is using about 3gb of RAM. I looked in the processes tab, but nothing seems to be out of the ordinary. How can I find out why my Windows is using so much RAM.    all processes from all users      Reading from the poolmon it seems that my wireless broadcom driver is using about 0.4GB of of RAM. Even if I remove  it would still be using  2.6GB on start-up, which is still too much.      After reinstalling the wireless driver associated with the memory leak. I have a new screenshot and would like to confirm that it was indeed a memory leak.


Why does the table have two identical statistics? The first is a consequence of the nonclustered index, the second is created by the server. The histograms are exactly the same. Only diference is that second one(auto created) is created five minutes after first one. The index consists of one field of type guid. Statistics for INDEX 'IX_LogEvents_Guid'.                         Updated                            Rows                    Rows Sampled                           Steps                         Density              Average Key Length                    String Index     Mar 18 2021  1:54AM                        24349284                        24349284                             188                               1                        34.71614                             YES                                                        24349284                               0                   All Density                  Average Length                         Columns                 4.495376E-08                        34.71614                          acGUID               Histogram Steps                 RANGE_HI_KEY                      RANGE_ROWS                         EQ_ROWS             DISTINCT_RANGE_ROWS                  AVG_RANGE_ROWS                                                           0                         2104204

Info  My question relates to a moderately big table (~40GB data space) that is a heap (Unfortunately, I am not allowed to add a clustered index to the table by the application owners)  An auto created statistic on an Identity column (ID) was created, but is empty.    Auto create stats & auto update stats are on Modifications have happened in the table There are other (auto created) statistics that are getting updated There is another statistic on the same column created by an index (duplicate) Build: 12.0.5546   The duplicate statistic is getting updated:   The actual question  To my understanding, all stats could be used and modifications are tracked, even if there are two statistics on exactly the same columns (duplicates), so why does this statistic remain empty?  Stats Info    DB stat info    Table Size    Column Information where the statistic is created on    [ID] [int] IDENTITY(1,1) NOT NULL   Identity column  select * from sys.stats   where name like '%_WA_Sys_0000000A_6B7099F3%';    Auto created  Getting some info on another statistic  select * From sys.dm_db_stats_properties (1802541555, 3)       In comparison with my empty stat:    Stats + Histogram from "generate scripts":  /****** Object:  Statistic [_WA_Sys_0000000A_6B7099F3]    Script Date: 2/1/2019 10:18:19 AM ******/      CREATE STATISTICS [_WA_Sys_0000000A_6B7099F3] ON [dbo].[table]([ID]) WITH STATS_STREAM = 0x01000000010000000000000000000000EC03686B0000000040000000000000000000000000000000380348063800000004000A00000000000000000000000000   When creating a copy of the stats, no data is inside  CREATE STATISTICS [_WA_Sys_0000000A_6B7099F3_TEST] ON [dbo].[table]([ID]) WITH STATS_STREAM = 0x01000000010000000000000000000000EC03686B0000000040000000000000000000000000000000380348063800000004000A00000000000000000000000000     When manually updating the stat they do get updated.   UPDATE STATISTICS [dbo].[Table]([_WA_Sys_0000000A_6B7099F3_TEST])


The question rooted from the comment of J.R. on  He edited my answer making 'a doubt' 'doubts'. In the comment it's mentioned that if I'm suspicious about something, generally it's expressed in a plural way. But in my answer, I had only one doubt that she meets someone which is out of my knowledge.  Now the question:   If I'm suspicious about only one thing, do I have a doubt? or doubts?  Note: In India, as I said there in my comment, it's quite clear. I have a doubt if I have a doubt and I have doubts if I have them many. In fact, I have many doubts is also common. In my dialect, I'm clear and pretty sure about it but posting this question to learn further.

To my (British) ear, it never sounds correct to say you have a doubt about something.  I expect that doubt to be pluralised, even if there's only one specific thing that I'm doubtful of, in one specific way, so I would always say "I have doubts about something".  Answers to  say that using doubt as a synonym for question is "Indian English". That seems to be the case in  which starts with "I have a doubt on my construction", because the OP really is saying "I have a question" (which he goes on to actually ask). Okay, it should have been a question/doubt about something, not on, but I'm not concerned with that detail here.  But in  the OP says "...there is a doubt that can I use [some construction]". In that case it's not easy to see how the word doubt can be replaced with question.  I don't have a problem with, for example, , because there I interpret it as doubt=uncertainty (a state of mind, syntactically equivalent to words like happiness, agitation, sorrow, etc.). But you certainly can't "have a happiness about something". So my question is...     Is it acceptable today to use singular noun doubt in any contexts where it means something other than state of mental uncertainty? If so, what are those contexts?


//import java.util.Arrays; import java.util.*;  public class Solution {     public static void main(String args[]) {         Scanner sc = new Scanner(System.in);         int size = sc.nextInt();         int arr[] = new int[size];         int u=0;         for (int i = 0; i < size; i++) {            u=sc.nextInt();             arr[i] = u;         }         System.out.println(arr);         int pos = 0, neg = 0, zero = 0;         for (int i:arr) {             if (i > 0) {                 pos += 1;             } else if (i == 0) {                 zero += 1;             } else {                 neg += 1;             }         }         System.out.println(pos / size);         System.out.println(neg / size);         System.out.println(zero / size);     } }  this was my code to print the ratio of positive negative and zero's present in my array but in the print statement where i am printing the array, it is showing this [I@7cc355be

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]


Please let me know how to remove certain repositories in Ubuntu 11.04. I am getting the following errors while updating.  sudo apt-get update  Err http://ppa.launchpad.net natty/main Sources                                      404  Not Found Err http://ppa.launchpad.net natty/main i386 Packages                                404  Not Found ......  E: Some index files failed to download. They have been ignored, or old ones used instead.

I've added many PPAs using the add-apt-repository command. Is there a simple way to remove these PPAs? I've checked in /etc/apt/sources.list for the appropriate deb lines but they aren't there.   This is on a server system so a command line solution would be great!


I imported a .3ds file from skethup and in the preview it shows it with the texture, but when I put it in the scene it shows it without the texture.

I'm using Unity 4 and trying to import a SketchUp Model into Unity and other Engines - but I can't get it to import correctly. Can anyone help me out?


$\sum_{n=0}^{\infty}a_n$ diverges in the regular term but is Cesaro summable     Prove $a_n/n\to 0$ when $n\to \infty$   We used the definition of the Cesaro sum and obtained:  $\lim_{N\to \infty}\frac{1}{N+1}\sum_{n=0}^{N}S_n$=$\lim_{N\to \infty}\frac{1}{N+1}\left (  \sum_{n=0}^{N-1}S_n+\sum_{k=0}^{N}a_k\right )$=$\sum_{n=0}^{N-1}\frac{S_n}{N+1}$$+\sum_{k=0}^{N}\frac{a_k}{N+1}$=$L$  but from here we're kind of stuck  *($S_n$ is the partial sums of $a_n$)

Theorem.  If $\sum_{n=1}^{\infty}c_{n}$ is Cesaro summable, then $c_{n}/n$ tends to $0$.  How to prove it?


I'd like to randomly select a line after a given number of lines. For example here's my input:  8 blue 8 red 8 yellow 8 orange 3 pink 3 white 3 cyan 3 purple 1 magenta 1 black 1 green 1 brown   and with random selection a line from every four lines, my output would be:  8 orange 3 pink 1 green   The best I've come up with is:  awk '!(NR%4){a=NR+4};NR<=a|"shuf -n 1"'   but it doesn't work.

I have a file formatted like this:  train/t/temple/east_asia/00000025.jpg 94 train/t/temple/east_asia/00000865.jpg 94 ... train/s/swamp/00000560.jpg 92 train/s/swamp/00000935.jpg 92 .... train/m/mountain/00000428.jpg 68 train/m/mountain/00000126.jpg 68   The last number is the class number. I have 50 different classes, and each class has 1,000 lines. I would like to take a random sample of size N from each class, and store the result in another text file.


I am using the DataTable library. On each page I am displaying 10 rows total. I have 10 records(rows). I have one checkbox button. If I click the 'checkall' button it has to select the 1st page of 10 rows. I then go to the second page and click the 'checkall' button. It has to select the 2nd page of 10 rows.  In total 20 rows has to be checked. However my code is not working like this. Can anyone tell me what is wrong here?    <button type="button" id="selectAll"> Select All </button>	   var baseURL = '<?php echo $this->config->item('base_url'); ?>'; $(document).ready(function() {   var allComments = $('#comment-table').DataTable( {     "bStateSave": true,     "processing": true,     "serverSide": true,     "searching": false,     "ordering": false,     "ajax":  {     "url": baseURL+"Comments/ajaxHandler",     "type": "POST",     "data": function(d) {       d.method='getAllComments';       $.extend(d, generateField($('#comment-table')));     }   },     "columns": [       { "data": 'comment' },       { "data": 'username' },       // { "data": 'status' },       { "data": 'assignedTo' },       //{ "data": 'userCategory' },       { "data": 'orgName' },       { "data": 'commentDate' },       { "data": 'lastUpdateOn' },       { "data": 'commentCount' },       {         "data":   "actions",         "orderable":false       }     ],     "order": [[1, 'asc']]   });    $('#select-all').on('click', function(e) {     e.preventDefault();     $(".sub_chk").prop('checked', $(this).is(':checked'));     }); });      I tried like below code   $(document).ready(function () {         $('body').on('click', '#selectAll', function () {            if ($(this).hasClass('allChecked')) {               $('input[type="checkbox"]', '#example').prop('checked', false);            } else {             $('input[type="checkbox"]', '#example').prop('checked', true);             }             $(this).toggleClass('allChecked');           })      });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


$$\sum _{i=1}^n\left(-1\right)^{i+1}\:\binom{n}{i}\:\frac{1}{i}=1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}$$ Can someone give me a hint on how to give the proof, I am stuck when I am proving it for p(n+1):  $$1+\frac{1}{2}+\frac{1}{3}+...+\frac{1}{n}+\left(-1\right)^{n+2}\cdot \frac{1}{n+1}$$  is there a handy way to get rid of the $-1$?  $\sum \:_{i=1}^{n+1}\left(-1\right)^{i+1}\:\binom{n+1}{i}\:\frac{1}{i}=\sum \:_{i=1}^{n+1}\left(-1\right)^{i+1}\:\left[\binom{n}{i}+\binom{n}{i-1}\right] \frac{1}{i}=\sum \:\:_{i=1}^{n+1}\left(-1\right)^{i+1}\binom{n}{i}\frac{1}{i}+\binom{n+1}{i} \frac{1}{n}$

Find the value of $\sum_0^n \binom{n}{k} (-1)^k \frac{1}{k+1}$.  Writing out several terms, I think the answer is $1/(n+1)$, but I'm struggling to prove this. I would greatly appreciate it if someone could show how to prove this.


Recently I bought the New Nintendo 2DS XL in Switzerland together with 2 games.  I just realized that the games are French/German edition.  Now, I have to go back to Italy, does this means that I can only play German/French games with this console?  The region lock is also for the Swiss version of the console?  Many many thanks

If I purchase a 2DS from Japan, will I be able to play American games on it?


Consider the recursive relation $ a_0=1, \ a_1=1 \ \ and \ \ a_{n+1}=a_n+a_{n-1} $.   Assuming that $ \ \ a=\lim |\frac{a_n}{a_{n+1}}| \ $ exists , find the limit $ \ a \ $.  Answer:  $ \ \ a=\lim |\frac{a_n}{a_{n+1}}|=\lim |\frac{a_n}{a_{n}+a_{n-1}}| $ , (since $a_{n+1}=a_n+a_{n-1}) ,   $  or, $ a=\lim |\frac{\frac{a_n}{a_{n-1}}}{\frac{a_n} {a_{n-1}}+1}| $   or, $ a=\frac{\lim|\frac{a_n}{a_{n-1}}|}{\lim|\frac{a_n}{a_{n-1}}+1|}=\frac{a}{\lim|\frac{a_n}{a_{n-1}}+1|}$ ,  (Since $ \lim |a_n /a_{n-1}|=\lim |a_{n+1}/a_n| $ ) .   Or, $ \lim|\frac{a_n}{a_{n-1}}+1|=1 $   But I can't proceed furher . Any help is really ppreciating .

I have read in a book that the limit of the ratio of consequent Fibonacci numbers is the golden ratio. However, it was just mentioned thus not justified. So, my question is how would you derive the following limit: $$\lim_{x\to\infty}{\frac{F_n}{F_{n+1}}}=?$$ Where $F_n$ is the nth Fibonacci number?


I can run a command from my terminal. Think as in : Terminal # ls -l -> output etc. If I want to run a script I can drag it into the terminal or specify it's location like, /usr/script and run it.  But here is my question: Is it possible and how can I run a command script by simply clicking on it on my desktop? I already set it to be opened by the terminal application but when I click it it does not run.  The command I want to run is nwipe.  This is my script:  .#!bin/bash  sudo nwipe   (ignore the dot in front of #).  PS nwipe does not run without sudo.  Ubuntu Xenial 16.04

I was wondering how to make a clickable terminal shortcut for my desktop using the command easytether connect.  I don't want to have to open/close the terminal every time I wish to connect to the Internet through my phone.  I've tried updating my gnome-panel but I can only make a new directory on my desktop.


I often walk around my house at night with the lights turned off and one night I noticed that looking straight at an object with very little light available made the object disappear from sight but if I directed my visual else where I could clearly see the object in my peripheral

So, I am not sure I can reproduce it via images, but the steps are:  1) At night, open a window and have a look at the surface of the earth  2) Suppose there's an object that reflects a tiny amount of light  3) When you actually try to focus your eyes at this object, you either don't see anything (depends on the amount of light it reflects) or you can hardly see it  4) When you focus your eyes on something that is 3-10 metres away, you can easily see this object with your ambient vision. Not the details, but it seems that it reflects more light.   Why does it happen?


I am interested to know if in written formal language this is reads better than that is  She goes to the library every Friday, and that is/this is her weekly respite.  Also, I often come across expressions like  That /This is (the reason) why  If I use 'this' rather than 'that' in a written text, does it raise the level of the language, or does it not make any difference?

Learning and using English I'm always confused about what word to use for referring to things that have been described by me a few sentences earlier: "that" or "this".   Confusion comes from the fact that only the equivalent of "this" is always used in my native language for such referring. But I've noticed that in English for such referring "that" is used as often as "this" (or maybe even more often).  Some examples for illustrating (just tried to google something appropriate to convey my idea better):     We assess local... the demographics of the local population. What are the natural traffic drivers in the area. Things like cinemas and pubs and retail and office and all that type of things and we now put together a bit of a matrix and actually give a weighted score to each of the things we know help our business. That helps us decide in a more scientific fashion.   or:     The problem of Cervantes' origin became after that into a tough matter. Some experts believed that the Cervantes from Alcázar, in the times of the Lepanto Battle, was in the age of a child, more concerned about gathering nests and that type of things than about fighting as a soldier.   and for "this":     I believe lot of people who involved fishery industries in Mexico Gulf are suffering now but as for economic issues, U.S government and other countries will support them and give an utmost response to it. Important thing is that we learn from this mistake and make sure this type of things will never happen in the future and protect nature environment thus we have to take this technology to get energy from water very seriously. I really hope this technology will be available and used for everybody as soon as possible.   Is there a rule describing proper usage of these words in cases like this? (or should I have written "..in cases like that"?)


I recently built a device which needs to be charged using a standard 12v adapter and a certain number of amperes. I was told the adapter needed to be at least 3A to charge the device. So my question is can I use any number of amperes as long as it's greater than 3A, for instance a 12v 5A adapter? I just need to know if using more amperes than the needed amount is fine, or if it can be harmful at all. Thank you

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'm trying to make a 2d game (rpg top down), and I've got no 2d artists help me out making 2d characters and textures, but I have one who can make 3d stuff (using Blender and 3d Max), I was wondering if there's a way to make these 3d models look 2d so I can capture some poses to make a sprite sheet.  Is it possible to make 3d models look 2d?  Edit: Here are examples   Sly Crooper (Playstation 2 Game)   Legend Of Zelda Wind Waker:   I wish for sucha similar art.

I am interested in everything related to this kind of effect (modeling, game engine, animation). What sort of stuff is needed?  Here are some sample images of what I mean:


I have setup MMS agent for my mongoD instances on AWS. MMS Agent is on a separate t1.micro instance. It all works fine however, every time I reboot the server I have to run sudo nohup python agent.py > agent.log 2>&1 & to start the service!!  How can I add this to service so with every reboot MMS Agent starts too!

I have a couple webservers sitting behind a loadbalancer, and i found "watcher.py" here:   I chose this script for several reasons: recursive through folders, lots of triggering options  Anyways, I will be using this to sync web content between load balanced servers. Is there a way to ensure that this script will run at bootup?


"I took you for a girl with brains" Is this sentence right?  Technically and scientificically. Cause humans have only 1brain I presume.

My simplistic thinking is that each person has one brain, so why do we say "blow someone's brains out"?


I'm working on a project that refers to optics. the question says when a laser beam is aimed to a wire ( perpendicular to the surface ), a circle of light then will be seen on a the surface. I somehow know its explanation, but there's something I need to know. Dose Diffraction happen in this phenomenon?  Thanks in advance!

So, when I point a laser at a piece of wire (pointed at a specific angle), a circle of light appears on a wall behind it (see image below). I am trying to see why this happens and if there are any readings on this. Could anyone give some tips on what I should search for or any references?   ()  So this is a problem for a physics tournament, but I haven't tried it myself yet. However I have found a video depicting what I mean.


Where can I determine what apps make the incredible size of backup?    As you can see there is almost 30GB free space, but I cannot perform a backup because there is not enough space on iCloud. Why?  Using iOS 11, iPhone 6S Plus 128GB  Under Manage Storage > Backup there is following screen:    My question is different to the marked one as duplicated, because:   I have 50GB storage on iCloud including 30 gb free space using iOS 11 my problem IS NOT about why backup still have 5GB, but why there is no space, even when backup is 20gb (what is rather impossible).

Just like everyone else, I get the notification that my iCloud is full and no backup can be made. iOS gives me the suggestion to upgrade my storage on my iCloud account. Because I only want to store my settings, phone numbers and other 'light' stuff, I see no reason to upgrade. I think a few gigabytes should be more than plenty to backup my device(s).  What is taking all the space on my iCloud?  First I checked on my Mac - OS X Mavericks  On OS X I have checked the following in 'System Preferences' -> 'iCloud':   Backup 4.44 GB Documents 550.7 MB Mail 5 MB     Okay, my major storage exists of the type 'Backup'. I Guess these are the backups from my iPad and iPhone, but System prefs gives me no further clue. Lets look at my iPhone  I got out my iPhone - iOS 8.4  I go to 'Settings' -> 'iCloud':   iCloud Drive ON Photos ON   iCloud Photo Library OFF My Photo Stream OFF iCloud Photo Sharing ON  Mail OFF Contacts, Calendars, Reminders, Safari, Notes, Passbook ON Backup, Keychain, Find My iPhone ON     Then I go to 'Settings' -> 'iCloud' -> 'Storage':   Total storage 5.0 GB Available 15.9 MB     I go to 'Settings' -> 'iCloud' -> 'Storage' -> 'Manage Storage':     LAST BACKUP FAILED      An additional 5 GB of storage is required. To   continue backing up this iPhone do one of the following:         Change your backup options   Delete some data   Buy more storage      Also, it gives me the following use of my data:  Backups:   iPhone backup of 4.3 GB iPad backup of 137.4 MB   Documents & Data:   Some documents with a total of 534.6 MB     Okay, so all my storage goes to 'Backups'. Lets select the iPhone backup (and here is where I get lost...)  'Settings' -> 'iCloud' -> 'Storage' -> 'Manage Storage' -> 'iPhone Backup':     BACKUP OPTIONS      Choose the data you want to back up.   An additional 5.0GB is required to back up   this iPhone   Next Backup Size 5.0 GB ⚠   Photo Library 2.3 GB OFF WhatsApp 550 MB OFF Keynote 238 MB OFF     There is no space requiring stuff to backup and still is it taking 5.0GB... What does my phone want to backup that takes 5.0 GB of space? Is there a way to visualise this? I only want to backup some settings and contacts, no major stuff...  How can I backup my stuff with the default 5 GB?


after update, unity is gone. Only wallpaper en desktop icons is showing. I've tried several suggestions, but I struggle to open terminal with the keys cntrl+alt+t. Nothing happens. What else can I do to restore everything back? I'm running ubuntu 12.04 lts. I realise that this may look like a duplicate. But I don't know what else to do.

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


Unlike British English and other varieties, American English does not double the letter "l" in words such as "traveled", "canceled", etc. However, it does with the word "controlled". Is there any logical explanation for this contradiction?

Possible Duplicate:          Is there any guidance on the usage of doubled consonants, particularly L, in British versus US English? For example 'Travelled' v. 'Traveled', 'Cancelled' v. 'Canceled', but then 'Enrolment' v. 'Enrollment'. Then there's 'Travelling' v. 'Traveling' etc.  In each case I've put what I consider to be the British standard first.  Just wondering if there's any consistency, for example 'in present and past participles ending in L the British usage is to add a second L'?


Is there any way to set factional scaling in ubuntu 20.04 to 110% instead of 125% or 150%? Because 100% is too small and 125% is too large for me. Thanks.

Just got a Lenovo Thinkpad, installed Ubuntu 20.04, and below are the screenshots of my full screen when checking the display scale options for   100% scale: as you may see, the font/symbols are insanely tiny  200% scale: still pretty small, hence I had to roll with 300% (which is on a larger side, but there's no option for fractional scaling at 250%, it's only available between 100 and 200)    Does anyone know why that is happening? Why is scale of 100% looking so tiny as opposed to being a reasonable option as usual? Is it likely to be a Lenovo issue rather than Ubuntu 20.04? I'd used Ubuntu 16.04 & 18.04 on Dell before (not 20.04 though), and it was never an issue. Or maybe it's due to resolution?


I have tried the Ctrl+Alt+H shortcut and in the first picture everything is supposed to render. Any help is appreciated and if there is any need for clarification I will answer as soon as possible.  Here is the render view for reference

A scene I made is not rendering, at all. This grey screen stays the same and nothing changes.  Here are my settings:  [


As the title suggests I'am trying to re-install Andriod but their are several criteria that are preventing me  1. the Android operating system boots but upon passing the lock screen, all core processes such as launcher crashes meaning i'm unable to change settings (Even though sometimes I'm able to change the settings it just reverts back upon Reboot and the settings don't even work properly)  2. ADB does not detect the device (assuming because of USB Debugging)  3. Tried Android safe-mode it does pretty much the same thing as normal mode   4. Tried a factory reset but it just reboots and shows the Android recovery options instead of erasing   I'am currently out of options Please help   Thanks in advance

I occasionally perform such a reinstall on my Windows PC. I repartition my hard drive, format the partitions, and then install Windows on a blank partition. Can this be done on an Android smartphone? (I have an unlocked Sony Xperia S.)


I evaluated the following integral: $$I=\int_{0}^{\frac{\pi}{2}} \frac{\mathrm{d}x}{\sin^8x+\cos^8x}$$ My Method: Divide up and down by $\cos^8x$ and substitute $t=\tan x$, so the integral converts to $$I=\int_{0}^{\infty}\frac{(1+t^2)^3}{1+t^8}\mathrm{d}t$$ I evaluated this integral by substituting $t^8=u$ and using the general result $\displaystyle \int_{0}^{\infty}\frac{u^{n-1}}{1+u}\mathrm{d}u=\frac{\pi}{\sin n\pi}$ this can be evaluated easily. However, I wanted to generalise this integral $$I(m)=\int_{0}^{\frac{\pi}{2}}\frac{\mathrm{d}x}{\sin^mx+\cos^mx}$$But the above method doesn't apply to any value of $m$. So what should be the approach for the above integral? We also know that $I(0)=\dfrac{\pi}{4}$, so maybe we could make a recurrence relation or perhaps, feynmann's technique...

Is      $$\int \frac{1}{\sin^nx +\cos^mx}dx, \qquad m,n \in \mathbb Z$$   Always expressible as a combination of elementary functions?


Im just a beginner in particle physics. As I have understand, electrons are considered as a point particle whose spin has nothing to do with original rotation around own axis but an intrinsic quantum number. But muon can be considered as a heavy electron that decays into electron.can we say muon actually rotates around itself in external magnetic field? Or it is also a point like particle? How can I know?

I often hear about subatomic particles having a property called "spin" but also that it doesn't actually relate to spinning about an axis like you would think. Which particles have spin? What does spin mean if not an actual spinning motion?


My server is undergoing a ddos attack with the traffic in my apache logs appearing like:  ip address - - [11/Apr/2013:01:01:04 -0600] "POST / HTTP/1.1" 416 31 "-" "Microsoft Internet Explorer" ip address - - [11/Apr/2013:01:01:05 -0600] "POST / HTTP/1.1" 416 31 "-" "Microsoft Internet Explorer" ip address - - [11/Apr/2013:01:01:05 -0600] "POST / HTTP/1.1" 416 31 "-" "Microsoft Internet Explorer" ip address - - [11/Apr/2013:01:01:05 -0600] "POST / HTTP/1.1" 416 31 "-" "Microsoft Internet Explorer" ip address - - [11/Apr/2013:01:01:05 -0600] "POST / HTTP/1.1" 416 31 "-" "Microsoft Internet Explorer" ip address - - [11/Apr/2013:01:01:05 -0600] "POST / HTTP/1.1" 416 31 "-" "Microsoft Internet Explorer"   How can I block this with IP Tables?  I am using:  -A INPUT -p tcp --dport 80 -m state --state NEW -m limit --limit 50/minute --limit-burst 200 -j DROP   but that doesn't appear to be doing anything.  I think i need something along this line though.  thank you

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


This sentence sounds uncomfortable but I believe it to be correct. For background I posted a simple picture with the caption "This is my wife and me" and the grammar nazi's pounced. I am having trouble figuring out if it should me "this is my wife and I" as they have proclaimed. Would we be the object or subject of this sentence to help identify if I should use "I" or "me"

I was told the correct usage is for example: "My wife and me" but I hear often "I and my wife" or "my wife and I". Google gives 34M results for "My wife and I" and 909K results for "My wife and me" Which is the correct form and why? It occurred to me that maybe it could depend on the rest of the phrase? (subject or object)  "My wife and I are eating an apple" "You can see my wife and me in this picture"


Ever since I installed Ubuntu Desktop 16.10 Gnome(previously I had 15.10), I have been annoyed with the fact that whenever I try to add an SSH key or import a GPG key using terminal a GUI popup box pops up asking for the passphrase.  With SSH, I work around this issue by starting a new agent on the terminal and then trying to add the key. And finally, it asks me for the passphrase in TTY or not a GUI.   With GPG I just started learning it, so not sure how to workaround.  Is there a way I can disable this and make them ask for the passphrase in TTY when accessed from TTY?  I have read the answers in  question and but it is about ubuntu 12.04 and the top two answers didn't work for me.

How to disable the keyring for SSH and GPG ?  I would like to keep the keyring for the wifi and other stuff. I'm using Ubuntu 12.04.


I have installed Ubuntu system at an SS disk and I have a lot of files that need also another (mechanical) disk. I wish users to access a common  depository partition with identical relative path from their home directories. I hoped that it can be achieved by mounting that common partition at each user login (). Is it possible at all,  without necessity for each user to mount it manually? How to run such a mounting at login? Thanks!

I have a /data folder (actually a partition) for all data that should be accessible by all users (in this case family members). We all have individual user accounts and are often all logged in at any time on this one PC.  How can I set up permissions so that we all retain access to files there no matter who creates them, including new folders? If I create a folder it gets my user and group, so nobody else can write to it.


My grandson’s name is Cavan. Siri constantly replaces it with Kevin. I have manually corrected it every single time but Siri isn’t learning. How do I teach him who I’m talking about? I don’t know any Kevins.

Siri doesn't pronounce my name correctly. I tried editing the phonetic spelling as it says on many sites, but it doesn't fix the problem. How do I fix this problem?


I finished the 1st year and I didn't know how to get to the dark characters and unlock them and I have only learned 2 spells. Can I go back into the 1st year and get them if so how can I do that and where do I find the dark characters?

What is the quickest way to get a Dark Wizard?   I have not completed the main quest, but would like to start going through free play to start working toward my 100%.  What is the earliest point in the story I need to be and how do I get my first Dark Wizard?


Why can't there be (or is there?) a way to gain credence from one's reputation on one site to be able to do something on another (SE vs. SO)?  As someone who has long consumed StackExchange, StackOverflow, SuperUser, but only within the past few years posted questions or answers, I am confused and frustrated by the whole reputation thing.  I understand why reputation exists, but it is frustrating to want to upvote, comment, answer, or whatever, and be told you are not allowed because you don't have sufficient reputation.  If I had some new original questions I needed to ask, then I could gain reputation, but "the system" seems to think I am unworthy or clueless to be able to contribute or assess.  Finally I had enough rep (small by most standards) to be able to vote, and maybe even comment(?) on StackOverflow, based on technical questions.  But when I went to Stack Exchange for a question on OS X stuff, I have to start over with 1 rep.  Seems a bit like a slap in the face, particularly since (so far as I know) some questions could appear either place.  Yes, I have ready folks talking about exchanging bounty and how it is more difficult to earn rep on SE than SO, and I don't claim to know all about bounty and the ins and outs of types of rep.  But I do know that I feel as if I have to start over in each meeting place for technical questions, and it is a disincentive (for me) to be involved.  I realize not all (maybe nobody) will agree with my sentiment, but since I only have 1 rep, I guess folks' downvotes won't hurt me, right?

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


I'm fairly new to bash scripting. I'm trying to create a directory with a timestamp and then cd into the directory. I'm able to create a directory and can cd into it the directory with one command.   mkdir "build" && cd "build"  I can create the directory with data then cd into it.  mkdir date '+%m%d%y' && cd date '+%m%d%y' I am able to create this dir and cd into it with one command.  Here is my bash script:  #!/bin/bash  # mkdir $(date +%F) && cd $(date +%F)   mkdir build_`date '+%m%d%y'` && cd build_`date '+%m%d%y'`   I need to create the directory with build_date '+%m%d%y' in the title then cd into that folder. I've looked online but am unable to come up with a solution.  Thank you.

I'm trying to write a small script to change the current directory to my project directory:  #!/bin/bash cd /home/tree/projects/java   I saved this file as proj, added execute permission with chmod, and copied it to /usr/bin. When I call it by: proj, it does nothing. What am I doing wrong?


If i am the first coauthor of the paper, is it possible to change the order of names on the paper in my resume and show my name on the first place?

My Name is among tens of authors of a paper on global health.     For the purpose of my CV update, I need to show my name without showing the names of all authors of the paper.    My preferred style is JAMA, which shows the names of the first 3 authors followed by 'et al'.  Would the following format be appropriate, at least for my CV, when My Name is published in the middle of a long authors' list ?    First Author, Co-Author, My Name, et al   If so, will this (customized) format ever cause any confusion for any group of audience?


How do I do an upgrade to 12.10 using the iso downloaded from the ubuntu web site? I do not want to do a clean install as I do not want to loose my settings. I am afraid that clicking "UPGRADE TO 12.10" in update manager will upgrade the OS and all the packages and that this will take all my monthly data from my contract which is just 3gig a month.

I'm using Ubuntu 10.04 now and want to Upgrade to Ubuntu 11.04. The problem is my net connection is very slow and I can not do a network upgrade from the "Updates Manager".  So, is there a way that I can download the Ubuntu upgrade as an bootable CD image and upgrade from it?


I have a question regarding the interpretation of the different matrices produced by singular value decomposition.  Suppose a mxn matrix $A$ containing n images of m pixels. So each column of this matrix when reshaped is an image. The images are actually wavelets transformations but that bears no relevance to the question. Furthermore, the first k columns of $A$ are images of dogs and the remaining columns are images of cats. So I have something like this:  wavelet_dc = np.hstack((wavelet_dogs, wavelet_cats)) U, S, V = svd(wavelet_dc, full_matrices=False)   What is the interpretation for U, S and V? I know we can build the original image based on a sum such as $A = \sum_{i} u_{i}s_{i}v^{T}_{i}$ in which $u_{i}$ and $v_{i}$ are column vectors of U and V, respectively. I also know that $S$ determines the most important modes of the original matrix and that the columns of U are the features associated to those modes. However, what role does V play in this matrix? I'd like to know how to think about V in practical applications (that is, more than as a rotation in the geometric interpretation of SVD)  Furthermore, suppose I plot V in the following way:  plot(V[0:40, 0], 'o-', markersize=3)     Since V is a nxn matrix, I don't know how to interpret it, but I think this code is actually taking the first 40 rows and the first column of V. As I understand V as:  $$V = \begin{pmatrix}v_{1}^{T} \\v_{2}^{T} \\\vdots \\v_{n}^{T}\end{pmatrix}$$  I think the plot is referring to the first component of the 40 vectors $v_{1} ... v_{40}$ but what does it mean? In the Coursera class "Computational Methods for Data Analysis", this is described as the dogs for the first mode and V[0:40, 1] would be the dogs for the second mode, and so on. You can see the notes , figure 159, page 388. This is assuming of course, that at least the first 40 columns of $A$ contained images of dogs. In the class, they also plot V[80:120, 0] because their matrix $A$ actually has the first 80 columns representing images of dogs and the last 80 columns representing images of cats, so V[80:120, 0] is plotting the first 40 images of cats.  UPDATE:  According to the video lectures, W8_L21_P3-Features: , they seem to interpret V[0:40, x] as the projection of the first 40 dogs onto the modes. Well, V has dimensions nxn which is the number of images, however, I wouldn't interpret it as "dogs". In any case, I think such projections shouldn't be V[0:40, 0] but V[0, 0:40] because these are the first 40 components of the vector $v_{1}^{T}$ that multiplies the first mode $s_{0}$. However, please let me know if I made a mistake.

Principal component analysis (PCA) is usually explained via an eigen-decomposition of the covariance matrix. However, it can also be performed via singular value decomposition (SVD) of the data matrix $\mathbf X$. How does it work? What is the connection between these two approaches? What is the relationship between SVD and PCA?  Or in other words, how to use SVD of the data matrix to perform dimensionality reduction?


This question is probably asked over and over again, but I cannot come up with keywords that can clearly describe this question to a search engine.  One of my friends has this fill-in-the-blank question on their test:     "Why has student spending become a greater concern over the last few years? Because there is a trend of ____ use."   The correct answer is "credit card use," but my friend got it wrong for using the plural form and writing down "credit cards use," and my friend is curious as to why this is wrong. I cannot remember a quantitative grammar rule that defines this other than that my language intuition tells me it is wrong. Can anyone give a quantitative explanation?

So I was taught that you should almost always use singular form of an adjective instead of plural form. But recently, I've seen people using plural form and it sounds quite weird and I don't know if it is correct.  For example,   "Salary tax" instead of "Salaries tax" "Office supplies" instead of "Offices supplies" "Product demo" instead of "Product demo"   In the above cases, the word "Salary" is used as an adjective to describe the type of "tax", so it will be in singular form. But I saw people using salaries tax and not sure if it is grammatical.  So my question is if there are any general rules on how to use the singular/plural form of an adjective?


I just watched this  on memory management in Python. In it, the presenter used the following code example (at about the 4:15 mark):  x = 300 y = 300   In this case, we have two names (x and y), each pointing at a value of 300. How did Python, when executing the y = 300 line, know that it didn't need to allocate memory but rather increase the reference count, since memory for that value had already been allocated (through x)? Is the interpreter comparing values on each instantiation? If so, how does it keep track of the values it already knows about (I would assume it would do so using a dict)?  Suppose I introduced a new variable:  z = 100 + 200   Would z end up simply increasing the reference count to 300 once more?  When I try the following in my REPL (Python 3.6, Windows 7 x64), I get differing memory locations, which further confuses me (though, to be fair, she says not to try this in a REPL):  >>> x = 300 >>> y = 300 >>> print(id(x)) 31191600 >>> print(id(y)) 31191648

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?


I am looking for a command options for grep to  find files with the occurences of foo and bar.  Grepping with  grep -r -e foo -e bar .   shows files which have only foo or only bar and files which have foo and bar.  Is it possible with grep to find only files which have both foo and bar (and display the lines that match either foo or bar or both in those files only)?  Example:  echo foo > file1 echo bar > file2 (echo foo;echo;echo bar) >file3 echo barfoo > file4   the grep cmd:  grepcmd -r -e foo -e bar . ./file3:foo ./file3:bar ./file4:barfoo

I'm looking for a way to search files where two word instances exist in the same file.  I've been using the following to perform my searches up to this point:  find . -exec grep -l "FIND ME" {} \;   The problem I'm running into is that if there isn't exactly one space that between "FIND" and "ME", the search result does not yield the file.  How do I adapt the former search string where both words "FIND" and "ME exist in a file as opposed to "FIND ME"?  I'm using AIX.


I have a division with a label as below in code, and I would like to know the complete width of the label by javascript, but the label seems to collapse automatically to fit within the division. So if I measure the label width, it is the 100px of the division.  <div style="width: 100px; overflow: hidden; background-color: lime;">     <label id="getMyWidthLabel" style="background-color: cyan;">         Some text which is longer than the div's 100 pixels.     </label> </div>   Now if I would place an width on the label like style="width: 200px", I get the preferenced look (no collapsion, but the label is not measurable anymore.  What css or javascript do i need and why?  EDIT: I would like to measure the width of the label as seen here:    But because it stands in a division, it automatically breaks and I can't measure the full width anymore:

I'd like to use JavaScript to calculate the width of a string. Is this possible without having to use a monospace typeface?  If it's not built-in, my only idea is to create a table of widths for each character, but this is pretty unreasonable especially supporting  and different type sizes (and all browsers for that matter).


I am a Nigerian. I live in Croatia and my wife, a Croatia citizen, lives and works in Germany. Recently I was caught with my expired passport by Slovenia police while going to Austria to renew my passport and they issued me six months ban from Slovenia and now I want to apply for a German family reunion visa to join my wife in Germany. Will the ban affect my family reunion visa?

Am I able to apply for a marriage visa in Germany after being banned for 5 yrs?? Do I have a chance to enter Germany if I get married in my country?   I am banned for 5 years after being accused of false documents and working illegally. There is no proof but the decision was made after I refused to meet the police.


I want to make it so my email script will go to the inbox instead of the spam box. How can I fix this?  Here is my code   $q_ry = array(); $q_ry = "SELECT `my_email` FROM `members`"; $adresses = array(); $adresses = mysql_query($q_ry);  while ($u = mysql_fetch_array($adresses))  {     if (!mail($u['my_email'],"Reunited City Newsletter",$_POST['email'],"From: no-reply@reunited-city.com"))      {         echo "Email not sent to" . $u['my_email'] . "!
";     } }  echo "Mass email sent successfully!";   I can post the complete code if needed.. Thank you

This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology.  Of late, some of the emails I send out programmatically have started being shuffled into people's spam folder automatically and I'm wondering what I can do about it.  This is despite the fact that these particular emails are not ones that humans would mark as spam, specifically, they are emails that contain license keys that people have paid good money for, so I don't think they're going to consider them spam  I figure this is a big topic in which I am essentially an ignorant simpleton.


I wish I could trust the packages I am supposedly downloading from Ubuntu servers are exactly what I think they are. But ...  ... Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [94,5 kB] Hit:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:10 http://archive.ubuntu.com/ubuntu xenial-backports InRelease ...   It's all clear text and unauthenticated traffic.  Why isn't Ubuntu using HTTPS by default when accessing software repositories? Which reasons can there be to keep this situation?

Are repository updates secure?  As a bear of little brain from the developer side, I cannot understand why the repository list is http://security.ubuntu.com and the other http(unsecured) sites listed in /etc/apt/sources.list.  Without a certificate chain match this appears as "ask any responder for a list of packages to update" instead of "ask the ubuntu.com site..."  Can any network choose to spoof the update sites, and is this a common practice to provide a locally cached and vetted copy?


I've seen some answers on graphicdesign.stackexchange.com where people have made small recordings of how they navigate menus to show someone where a particular item is located. These are usually animated gifs and not videos.   What software is being used to create these?  What is this type of video called? It isn't an animated gif because animations aren't being used. Someone recorded a small section of their screen and uploaded the recording as a gif.  Here is an example:

Recently, I have come across this screen recording from a Google blog:      Notice how the mouse pointer moves in straight lines and perfectly accelerated and decelerated. Also, note the zooming in and out.  To me, it looks like all mouse actions were captured, restricted to essentials (mouse clicks), then interpolated (straight motion between clicks), and then replayed and the screen captured.  What tools are available to create screen recordings such as these?


I am trying to find out what files/folders are using most space on the filesystem  df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda3        94G   85G  4.4G  96% / tmpfs            16G  7.9G  7.9G  50% /dev/shm /dev/sda1       477M   82M  370M  19% /boot   I install ncdu to see what is taking space but i still couldn't find out what takes most of the space  1.9 GiB [##        ] /var     1.2 GiB [#         ] /usr   372.8 MiB [          ] /lib   129.7 MiB [          ] /tmp    79.3 MiB [          ] /boot    74.8 MiB [          ] /root    28.6 MiB [          ] /etc    18.4 MiB [          ] /lib64    18.1 MiB [          ] /opt    10.8 MiB [          ] /sbin   Edit  I did delete some big log file before posting this thread.I found it strange that it was showing much difference on df -h .On @Pavel Šimerda suggestion i did a soft reboot and here is the output  Filesystem      Size  Used Avail Use% Mounted on /dev/sda3        94G  3.9G   85G   5% / tmpfs            16G  236M   16G   2% /dev/shm /dev/sda1       477M   86M  366M  20% /boot   Why was a reboot needed in this case ?

I'm looking for a linux alternative to . I would like to know what is taking up space on my hard drives.  A program that works on console and doesn't require a UI is preferred .


Suppose $g : [0,1] \to \mathbb R$ is bounded and measurable and $$\int_{0}^{1} f(x)g(x) dx=0$$ whenever $f$ is continuous and $$\int_{0}^{1} f(x) dx=0$$. Prove that $g$ is equal to a constant a.e.  I know for every measurable function g there is a continuous h in a compact support such that $$\int_{0}^{1}\mid(x)-h(x)\mid dx =0$$.I got stuck to go further.

Let $\,f:[a,b] \rightarrow  \Bbb R $ be  continuous  and  $\int_a^b f(x)g(x)\,dx=0$, whenever $g:[a,b] \rightarrow  \Bbb R $ is  continuous and $\int_a^b g(x)\,dx=0$.  Show that $f$ is a constant function.  I tried a bunch of things including the mid-point integral theorem(?) but to no avail. I'd appreciate an explanation of a solution because I really don't see where to go with this one..


It seems after about 5 minutes an inactive ssh session is terminated. The server is Ubuntu. How can I change this?

I use an SSH tunnel from work to go around various idotic firewalls (it's ok with my boss :)). The problem is, after a while the ssh connection usually hangs, and the tunnel is broken.  If I could at least monitor the tunnel automatically, I could restart the tunnel when it hangs, but I haven't even figured a way of doing that.  Bonus points for the one who can tell me how to prevent my ssh connection from hanging, of course!


I've been asked by a client to compile LiDAR files (currently in GeoTiff format) into a LAS dataset.   Is this possible within QGIS?   I have downloaded LAStools, but I'm still fairly new to LiDAR so I'm not sure what all the tools do!  I know this is possible in ArcGIS, but I don't currently have access to the software. I see a lot of questions already asked concerning opening LAS files in QGIS, but here I am wanting to convert TIFFs into LAS format.  I don't have the raw data - I only have asc files from which I've made the GeoTiffs from.

I am looking for a solution to convert either from ESRI shapefile format to LAS or from a common raster format to LAS. I have access to following software:   ArcGIS 10.2 for Desktop (arcinfo with spatial analyst and 3d analyst extensions), Global Mapper, LASTools (unlicensed), QGIS 2.8, Whitebox GAT.   I have the functionality in the LASTools shp2las.exe tool, but as I do not have a licence it can only handle 2 million points before it adds XYZ noise.  Due to the large volume of data I am working with, it is impractical to cut it into thousands of smaller pieces in order to process with tiles under 2 million points.  There was the potential of a workaround using the text2las tool, but outputs from this tool are also unacceptable due to a stepping/contouring effect. Despite efforts to ensure no rounding or truncation of input data occurs during transformation.  Is there a way through open source or free software to successfully convert between these formats?   Or am I looking at buying a licence for FME or LASTools or some other software?


$('#save').on('click',function(){   $('#form').jqxValidator('validate'); });   How can I prevent user from click button twice on server side?

I need to prevent accidental clicks in the Save button when a node is being saved.  I found this   which does exactly this. But the problem is that it uses javascript (jquery). Then if the user disable javascript this module is useless.  My problem is that in my website the user get points when creating nodes, so I have to prevent this in a more secure way.  How can I do this?   What do you think of these ideas?:  1) Maybe I would forbid the node being saved more than one time    programmatically instead of disabling the Save button.   2) Or better: I would allow the user to just save a new node every 5 minutes.


I have changed my Apple ID (email and password) on my computer.  However, my iPhone 5 still shows the old email address which is grey so I can't change it. I don't remember the password for that email address so can't log on and can't delete it. How do I recover the password ?

My Granddaughter has lost/forgotten her ID and passwords for her iPad. When the iPad powers on, it goes straight to an iCloud password request and I cannot get past it.  I have installed iTunes on my laptop but it fails to connect to the server (error 310).  I installed iCloud control panel and tried a restore but that failed because of "Find my iPad" was active, which I cannot turn off because of the original password problem!  This is driving me crazy. I just want to reset everything now so that I can hand it back to her. Can anyone help?


I am living in Canada and it is the sad time of the year where I have to stop riding and store my bicycle for the winter. This summer I acquired a full carbon bike and I want to make sure it stays intact until the next summer.   Considering that the temperatures can drop to -30°C, is it bad if my bike is stored in a shed?

What kind of maintenance should I do before putting my bike into storage for the winter?  Are there any special considerations for storing it?  Does temperature matter?  If it's hanging on the wall from the rim all winter long, will that affect the shape of my rims?  Any other winter storage advice would be nice to hear.


I write $\zeta(s)$ for $\Re(s)>1$ as:     $\zeta(s) = \prod_{p} (1-p^{-s})^{-1}$   Using this I can show that the Riemann zeta function has no zero for $\Re(s)>1$. I'm however not sure about the next step. I would like to use the zero product property, but I know it doesn't necessary hold for infinite products. How do I handle this situation?

I think that all the zeros of the Riemann-Zeta function ${\zeta}( z ) = \frac{1}{1-2^{1-z}} \sum_{n = 0}^{\infty} \frac{1}{2^{n+1}} \sum_{k = 0}^{n} (-1)^k \binom{n}{k} (k+1)^{-z}$  have real part smaller than 1, but I don't know how to prove it. If Re(z) > 1 than  ${\zeta}( z ) = \sum_{n = 1}^{\infty} \left( \frac{1}{n} \right)^z$


I've been reading many documentations on Linux containers. I also tried it out the  and the  .  Wikipedia says      it is an operating system–level virtualization.   Linuxcontainers.org says     LXC is a userspace interface for the Linux kernel containment features.   I cant get it clear.   Is LXC just a user interface and there is some other kernel module that provides the container features. Or is LXC something that gets patched to the kernel when package is installed and it also provides user space utilities. While trying it out on CentOS, installation lxc package was not required although it is available in the repositories. On CentOS, without installing lxc the libvirt daemon is able to connect to lxc:///  using the libvirt command utilies. So is there a lxc module already in the kernel? But I didnt find any with lsmod . BUT, which is that module in the kernel, that provides containerization?

It's tricky trying to stay within the good graces of Red Hat and still plan for system longevity...   I've been a proponent of  for over a year. My initial installations were based on information gleaned from online tutorials, like  and . This centered around the lxc-create, lxc-start|stop and lxc-destroy commands and modifying existing .  This works well and is happily running in production. However, I am bringing up some additional systems and decided to check Red Hat's current documentation regarding containers in EL6. I was surprised to see their official stance on this.   In , Red Hat describes LXC as a Technology Preview and .  Yet Oracle  in its Unbreakable Linux.  There appears to be some missing functionality in the libvirt method, but my initial approach with lxc-* commands was a bit of a manual process... I can't quite tell what's right or the "accepted" means of managing containers on EL6.   What's the conventional wisdom regarding LXC and RHEL-like systems today?  How are you implementing them in your organization?  Are there any advantages to one approach versus the other(s)? Can these coexist?


Is there a maximum / minimum possible value for the CSS z-index property?  Do different browsers have different maximum / minimum accepted values?  How will browsers handle a high / low value?  I thought I read somewhere once about a max z-index value. Maybe I'm wrong.  Thanks in advance!

I have a div in my HTML page. I am showing this div based on some condition, but the div is displaying behind the HTML element where I pointed the mouse cursor.  I have tried all values for z-index from 0 - 999999. Can anyone tell me why this is happening?  Is there any minimum or maximum value of Z-INDEX property of CSS?    .divClass {      position: absolute;       left: 25px;       top: 25px;       width: 320px;      height: 300px;       z-index: 1000;  }

            <asp:HyperLink ID="lnkProgram" runat="server"></asp:HyperLink>

            Some Data

     I am showing and hiding the div with .divClass onclick via the <asp:hyperlink> using jQuery.


I'm having some trouble with the following proof: $$\sum^k_{a=0} {{n}\choose{a}}{{m}\choose{k-a}} = {{n+m}\choose{k}}$$  I'm trying to prove this to learn a couple of things about the Pascal's triangle. I don't know where to start on the proof. I have tried expanding both sides using the binomial coefficient property but have had no luck.

How can we prove that     $$\sum_{k=0}^{n}\binom{R}{k}\binom{M}{n-k}=\binom{R+M}{n}?$$   (Presumptive) Source: Theoretical Exercise 8, Ch 1, A First Course in Probability, 8th ed by Sheldon Ross.


Here's my HTML:

   I want to make it centered vertically and horizontally. The image is only centered horizontally, as shown on the screenshot below:   My CSS looks like this:  .overlay {    background: #e9e9e9;    display: none;    position: absolute;    top: 0;    right: 0;    bottom: 0;    left: 0;    opacity: .5; }  #loading {    text-align: center; }  #loading img {    display: table-cell;    margin: 0 auto; }   What should I do to make it centered vertically? Thanks in advance.

I have a div 200 x 200 px. I want to place a 50 x 50 px image right in the middle of the div.   How can it be done?  I am able to get it centered horizontally by using text-align: center for the div. But vertical alignment is the issue..


I am currently working on my first java project and have jumped into using spring/hibernate.  I have created a of API's which is used to perform CRUD operations on a database. I thought it would be a good idea to write the current time an item is added to the database.   To do this this I created a new column in the database & updated the entity I am using to write to it, with a new javafield called "timestamp" & mapped it to the database column.  I then used (or tried to) the below code to have the system set the timestamp as the item is written into the db as I am doing something similar to ensure the id is set to 0 before it auto increments.   for (Downloads tempDownload : theDownloads) {              // display the download               tempDownload.setId(0);              tempDownload.setTimestamp(System.currentTimeMillis());              System.out.println(tempDownload);              // save to the database               downloadsService.saveProduct(tempDownload);     }      However when the item is written to the db the timestamp is written as 0. if I remove the   tempDownload.setTimestamp(System.currentTimeMillis());   then I am able to set the time via json by manually passing it in with the payload. Is there another way to go about this, or a step I could be missing?  Kind regards,  Danny

For a certain Hibernate entity we have a requirement to store its creation time and the last time it was updated.  How would you design this?   What data types would you use in the database (assuming MySQL, possibly in a different timezone that the JVM)?  Will the data types be timezone-aware? What data types would you use in Java (Date, Calendar, long, ...)? Whom would you make responsible for setting the timestamps—the database, the ORM framework (Hibernate), or the application programmer? What annotations would you use for the mapping (e.g. @Temporal)?   I'm not only looking for a working solution, but for a safe and well-designed solution.


I went through the website for Tilix and came across a very beautiful shell prompt in one of the images on the website. I want to know if that is just for show(a gimmick) or is it actually possible to have such a prompt...    This question is not similar to other question as it does not mention any software in it. It is not a normal prompt configuration. It is at best an attempt to get software recommendation.    or  do not cover the scope of this question as I did not know that a software such as powerline existed but did know that simple modifications to PS1 does not give the output desired in other words understanding PS1 references does not solve the problem mentioned above

The default PS1 variable on my machine (Kubuntu 13.10) is this:  \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$   I'm looking for a reference for how the $PS1 variable works that, at a minimum, allows me to understand the above PS1 variable.


I was reading about the derivation of  in  website when I came across this step:  Substituting from  Schrödinger's equation (137) and simplifying, we obtain $$\frac{d\langle p\rangle}{dt}=\int_{-\infty}^{\infty}\left[-\frac{\hbar^2}{2m}\frac{\partial}{\partial x}\left(\frac{\partial\psi^*}{\partial x}\frac{\partial\psi}{\partial x}\right)+V(x)\frac{\partial|\psi|^2}{\partial x}\right]dx=\int_{-\infty}^{\infty}V(x)\frac{\partial|\psi|^2}{\partial x}dx$$  What I cannot understand is how the first term $$\frac{\hbar^2}{2m} \frac{d\psi^*}{dt}  \frac{d\psi}{dx}$$ between the limits $x=\infty$ and $x=-\infty$ reduces to zero. I know $\psi$ and $\psi^*$ go to $0$ as $x$ goes to infinity but why does this term reduce to zero?

I came across a problem in Griffiths where the derivative of the wave function (with respect to position in one dimension) evaluated at $\pm\infty$ is zero. Why is this? Is it true for any function that evaluates to zero at $\pm\infty$ or is there a special constraint on the wave function that I am forgetting?


I am trying to understand the relationship of a p-value vs Type 1 error rate. My understanding of one interpretation of a p-value is the following: "the p-value tells us the probability of making a type 1 error, conditional on the fact that the null hypothesis is true and we do indeed decide to reject the null hypothesis".   Is this a correct interpretation or not? I am getting confused because I am reading from some sources which are claiming that p-value is NOT the same thing as a type 1 error. For example, see the following sources:     From this source there is the following quote: P = 0.05 does not mean there is a 5% chance of a Type I error (i.e. false positive).    There is also "A Dirty Dozen: Twelve P-Value Misconceptions" (Goodman 2008)  which claims something similar.  Can anyone clarify my confusion?  Thank you!  Vincent

I recently came across the paper . The author raised a few common misconceptions regarding hypothesis testing and p-values, about which I have two specific questions:   The p-value is technically $P({\rm observation}|H_{0})$, which, as pointed out by the paper, generally does not tell us anything about $P(H_{0}|{\rm observation})$, unless we happen to know the marginal distributions, which is rarely the case in "everyday" hypothesis testing. When we obtain a small p-value and "reject the null hypothesis," what exactly is the probabilistic statement that we are making, since we cannot say anything about $P(H_{0}|{\rm observation})$? The second question relates to a particular statement from page 6(652) of the paper:      Since the p-value, or range of p-values indicated by stars, is not set a priori, it is not the long-run probability of making a Type I error but is typically treated as such.   Can anyone help to explain what is meant by this statement?


How do I make the FaceTime.app sound output louder on my MacBook?  It's too quiet for me to hear what the people on the other end are saying. Way quieter relative to every other app I use (YouTube in Safari, Discord calls, Microsoft Teams calls, etc.)  macOS Catalina 10.15, FaceTime 5.0

Some videos on websites have the sound volume so low that even with all sound settings at maximum levels it's hard to listen.  I'm looking for an app that would allow me to boost the Mac's volume. Something similar to VLC volume controls.  I already looked at Audio Hijack, but it has way too much features for what I'm looking for. Anything free of charge would be a plus. :)


I'm hoping to measure the current draw to my ESP8266 with a scope and a shunt resistor. I think a 1ohm resistor might drop the voltage too much, so I'm thinking to use a 0.5ohm (or even a 0.1ohm) instead.   However, most 0.5ohm (and 0.1ohm) resistors tend to have at least 1W, 2W power ratings.  Are there issues with using resistors that have power ratings much higher than required?

(Apologies upfront if this question seems too vague, I'm trying to formulate the problem statement as I ask this)  I'm thinking about circuit assembly in a high component variability / low MOQ environment, from the standpoint of passive components. Assuming identical footprints, I'd like to be able to substitute:  Resistors   tighter % tolerance for looser higher wattage for lower   Capacitors   Higher voltage for lower   What I'm getting at is - if I'm prototyping lots of different designs, parts inventory management becomes a substantial issue. If I could aggregate by component value, and use the same parts where possible, inventory requirements go down, likely enough to offset the potentially higher cost of the individual items.  Does an approach like this work, or would I break designs by doing this? If this works, what other components can I try to standardize?


char label[] = "Single"; char *labelPtr; labelPtr = label; cout<<labelPtr;; return 0;   The ouput with the above code is Single. I'am confused about the output.   As far as my understanding labelPtr should contain the address of label[0]. So shouldn't the output be equivalent to &label[0]?

I'm using C++ to understand how exactly pointers work. I have this piece of code using arrays, which I'm using just to understand how the equivalent works with pointers.  int main() {         int arr[10] = {1,2,3};         char arr2[10] = {'c','i','a','o','\0'};     cout << arr << endl;     cout << arr2 << endl; }   However when I run this, arr outputs the address of the first element of the array of ints (as expected) but arr2 doesn't output the address of the first element of the array of chars; it actually prints "ciao".  What is it that I'm missing or that I haven't learned yet about this?


Are stackoverflow pages ( such as Questions, main pages of a posted question, profile page) auto-update?    If so, what is the update interval?

We have deployed a new feature that hopefully help with keeping you instantly updated as new questions and answers are posted.  All sites except for Stack Overflow have a new activity indicator on the homepage which will show when new posts are asked or answered.    We have also enabled updates on the questions page for the newest and active tabs for all sites except Stack Overflow.  If you open a browser to these tabs you will receive instant notifications when new questions are asked or answered.    Stack Overflow has a massive amount of activity so we have decided to limit this feature to tags only.  Both the "newest" and "active" tab will have updates after first selecting a tag or tag combination.    We recently added support for new answers and comments:        Now for the gotchas - in order to use this feature you must have a browser that supports web sockets.  See:   for a list of browsers that currently support web sockets.  UPDATE  As a few have mentioned below we are now experimenting with updating comment counts, votes on a post, and your reputation score.


How to find  line startwith and replace in linux.   file:/usr/test.pl  startswith:   "abc.xyz" => "0"  replace:   "abc.xyz" => "1"    Note before: "abc.xyz" three spaces  I achieved using python script    newlines = [] with open ('/usr/test.pl', 'r') as f:     for line in f:         if "\"abc.xyz\" => \"0\"" in line         newlines.append("   \"abc.xyz\" => \"1\",\n")     else:             newlines.append(line) with open ('/usr/test.pl', 'w') as f:     for line in newlines:         f.write(line)   Same how to achieve in bashscript or sed command.

I would like to update a large number of C++ source files with an extra include directive before any existing #includes. For this sort of task, I normally use a small bash script with sed to re-write the file.   How do I get sed to replace just the first occurrence of a string in a file rather than replacing every occurrence?  If I use  sed s/#include/#include "newfile.h"\n#include/   it replaces all #includes.   Alternative suggestions to achieve the same thing are also welcome.


I want to know something about why certain operating system makers chose CR vs LF vs CRLF in the present, particularly the usage of CRLF in Windows. Where would be the best place to ask this?

Is there a general discussion section for curious questions? Or are we simply left to swallow such curiosity because the results of it may or may not benefit a big crowd? Sample question There's an idiom, "It costs a moon". As of now NASA hasn't revealed if the Moon has precious elements. This brings some curious thoughts to me... What if the Moon has precious metals, gas, etc.? Does anyone own the moon or other planets in our solar system? Like Americans? Russians, Germans, Japanese, Chinese or British? Are there any constitutions that refrain anyone from such access or ownership to solar elements (either research wise or commercial wise)?


I messed up something in ubuntu and then tried doing a reinstalling but it gave an error saying bootloader not installed , this also messed up the grub which booted into a cli type interface . then i deleted the following partitions -> ubuntu , swap , efi . Now even tho there are no ubuntu partitions left ubuntu shows up in boot manager I have a ssd+hdd in my laptop. Windows is on the ssd and i installed ubuntu on a partition of the hdd.

See this   I have this on my Lenovo s205 too.   Is there some way to remove "ubuntu" from the menu? I don't even have it installed anymore.


Well, I want to install ubuntu but do not know how, I want to install using a Pendrive without dual boot, in the right manner, I've seen videos but only show how to install Ubuntu on the Pendrive and do not show what I do after this. thanks in advance.

I would like to see a full how-to guide on how to install Ubuntu.


Is it possible to generate {!Community_Url} dynamically in the apex and then pass it on to VF email template? Does the link created programatically have the encrypted key to take the user to the password set screen and log them to the community?

I am using  Salesforce Community and I have network Id of the community but I don't know how can I get Base URL of my community. Any one know how can I get my community base URL using its id in apex as a internal user.  Is there any other way in which salesforce internal user can get the base URL of all his community in the apex also i don't find any object in which Community Base URL is stored. I checked network sObject but it only store community path prefix not the complete URL so how can i get the base URL for my community?


With babel in use and main=english, nonetheless biblatex together with babel is erroneously naming the bibliography "Bibliografia". This happens with both the default back-end biber (shown here) and with option backend=bibtex. Is this a bug? (Of course a workaround is to use: \printbibliography[title=Bibliography].) This does not occur when babel is not used. \RequirePackage{filecontents} \begin{filecontents}{mybib.bib} @article{foo1999,   title={Title},   author={Doe, John},   journal={International Journal of Nonsense},   year={1999} } \end{filecontents}  \documentclass{article} \usepackage[russian,french,ngerman,polish,main=english]{babel} \usepackage{biblatex} \addbibresource{mybib.bib}  \begin{document}  See this book: \cite{foo1999}  \printbibliography  \end{document}

This is really a "beware" posting rather than a question, although I provide the work-around that has appeared elsewhere. The new "feature": Babel Version 3.49, dated 2020/10/03, used with an option main=[mainlanguage] breaks things such as the language used for "Figure" with LaTeX generally, "Proof" with amstheorem, "References" for printbibliography with biblatex/biber or bibtex, and "Index" from \makeindex and \printindex. Example: \RequirePackage{filecontents} \begin{filecontents}{mybib.bib} @article{foo1999,   title={Title},   author={Doe, John},   journal={International Journal of Nonsense},   year={1999} } \end{filecontents}  \documentclass{article}  \usepackage[russian,french,ngerman,polish,main=english]{babel}  \usepackage{amsthm} \newtheorem{thm}{Theorem} \usepackage{biblatex} \addbibresource{mybib.bib} \usepackage{imakeidx} \makeindex  \begin{document}  \begin{thm}\index{arithmetic} $2+2 = 4$. \end{thm}  \begin{proof} $2+2 = 2+(1+1) = (2+1) + 1 = 3 + 1 = 4$. \end{proof}  \begin{figure}[h!] \centering \framebox[2in][c]{\rule{0pt}{2in}} \caption{Look at this!} \end{figure}  See this book: \cite{foo1999}  \printbibliography \nopagebreak \printindex  \end{document}   Cure for the feature:" Just replace main=english from the babel option list with english (or similarly, whatever the main language is, put it last in the list). In the docs for Babel 3.49, see the Note at the bottom of page 6, and the discussion preceding it. Related:


All that can do is [to] make us disappointed.   Is the "to" required for the above sentence?

Which is more natural?     The easiest thing to do is to call for a taxi   or     The easiest thing to do is call for a taxi   And what do you call this to in grammar terms if any?