I am a newbie to python and api queries. However, I am learning python automation in the process. Request your kind help here. I have a SonarQube API call through which I fetch some metrics or values as a JSON response on my browser. I read that curl or through requests module in python, we would be able to download the response into a variable or file. How much ever I try, I am not able to do through a program. Right now, I am hard coding it in a variable and proceeded with my next steps. Can someone help me here. Query I use: https://sonar.com:9000/sonar/api/measures/component?component=abcdef&branch=test&metricKeys=ncloc  I get JSON response like this on the browser:   "component": {     "id": "AXK4GYajYOT4RM44Ji",     "key": "abcdef",     "name": "test",     "qualifier": "TRK",     "measures": [       {         "metric": "ncloc",         "value": "100000"       }     ],     "branch": "test"   } }  My intention is to store all of this in a python variable.

What is the quickest way to HTTP GET in Python if I know the content will be a string? I am searching the documentation for a quick one-liner like:  contents = url.get("http://example.com/foo/bar")   But all I can find using Google are httplib and urllib - and I am unable to find a shortcut in those libraries.  Does standard Python 2.5 have a shortcut in some form as above, or should I write a function url_get?   I would prefer not to capture the output of shelling out to wget or curl.


How can we find with how many ways we can choose three subsets $A_1, A_2, A_3$ of $\{1,2,3, \dots, 9\}$ such that $A_1 \cap A_2 \cap A_3= \varnothing$ ? (their pairwise intersection can be non-empty)  Can you give me a hint?

I believe that this is a pretty simple question in terms of combinatorics.  Assuming we have the following set $\{ {1,2,3...n} \}$  In how many ways can we choose 3 subsets (A,B,C) such that the intersection between all them is empty?   $ A \cap B \cap C = \emptyset $  Well, what I have so far is the following:  For A we have $ 2^n $ options (where n is the size of the set) Then, for B, the remaining options are exactly $ 2^{n-|A|} $ since we can choose only from subsets who does not have elements in common with A. And finaly, for C, since we already have an empty intersection, we can choose whatever subset we want and get the expected result $ \emptyset $.  But for some reason it feels like the numbers are too big. If we take for example the set {1,2}, then, according to my "formula", the number of options should be:  $ \binom{4}{1} * \binom{2}{1} * \binom{2}{1} = \frac{4!}{3!} * \frac{2!}{1!} *  \frac{2!}{1!} = 16 $  Does it make sense?


Obviously, I can use X^s or X_s to put a symbol s as superscript (X^s) or subscript (X_s) in front of another symbol X.  What about the case with s at the back of X? _s X or ^s X gives something like what I mean ($_s X$ and $^s X$) but they don't seem very nice as there is a space between symbols.

I am trying to put two subscripts at the left and right of a character. For example, something like:  _{t} p_{x}  where p is in the middle. How do you do this?


I am running Ubuntu 20.04. I'm getting this error while trying to upgrade to Pop!_OS. After this operation, 399 MB of additional disk space will be used. Do you want to continue? [Y/n] y Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 224343 files and directories currently installed.) Preparing to unpack .../pop-gnome-initial-setup_3.36.1~1612193315~20.04~43 67c76_amd64.deb ... Unpacking pop-gnome-initial-setup (3.36.1~1612193315~20.04~4367c76) ... dpkg: error processing archive /var/cache/apt/archives/pop-gnome-initial-s etup_3.36.1~1612193315~20.04~4367c76_amd64.deb (--unpack):  trying to overwrite '/usr/lib/gnome-initial-setup/vendor.conf', which is  also in package gnome-initial-setup 3.36.2-0ubuntu2 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/pop-gnome-initial-setup_3.36.1~1612193315~20.04~4 367c76_amd64.deb

For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.


I'm using Keras to build and train a recurrent neural network.  from keras.models import Sequential from keras.layers.core import Dense, Activation, Masking from keras.layers.recurrent import LSTM from keras.layers.normalization import BatchNormalization  #build and train model in_dimension = 3 hidden_neurons = 300 out_dimension = 2  model = Sequential() model.add(BatchNormalization(input_shape=((max_sequence_length, in_dimension))))  model.add(Masking([0,0,0], input_shape=(max_sequence_length, in_dimension))) model.add(LSTM(hidden_neurons, activation='softmax', return_sequences=True, input_shape=(max_sequence_length, in_dimension))) model.add(LSTM(hidden_neurons, activation='softmax', return_sequences=False)) model.add(Dense(out_dimension, activation='linear'))  model.compile(loss="categorical_crossentropy", optimizer="rmsprop") model.fit(padded_training_seqs, training_final_steps, nb_epoch=5, batch_size=1)   padded_training_seqs is an an array of sequences of [latitude, longitude, temperature], all padded to the same length with values of [0,0,0]. When I train this network, the first epoch gives me a loss of about 63, and increases after more epochs. This is causing a model.predict call later in the code to give values that are completely off of the training values. For example, most of the training values in each sequence is around [40, 40, 20], but the RNN outputs values consistently around [0.4, 0.5], which causes me to think something is wrong with the masking layer.   The training X (padded_training_seqs) data looks something like this (only much larger):   [ [[43.103, 27.092, 19.078], [43.496, 26.746, 19.198], [43.487, 27.363, 19.092], [44.107, 27.779, 18.487], [44.529, 27.888, 17.768]],  [[44.538, 27.901, 17.756], [44.663, 28.073, 17.524], [44.623, 27.83, 17.401], [44.68, 28.034, 17.601], [0,0,0]], [[47.236, 31.43, 13.905], [47.378, 31.148, 13.562], [0,0,0], [0,0,0], [0,0,0]] ]   and the training Y (training_final_steps) data looks like this:  [ [44.652, 39.649], [37.362, 54.106], [37.115, 57.66501] ]

I'm training a neural network but the training loss doesn't decrease. How can I fix this?  I'm not asking about overfitting or regularization. I'm asking about how to solve the problem where my network's performance doesn't improve on the training set.    This question is intentionally general so that other questions about how to train a neural network can be closed as a duplicate of this one, with the attitude that "if you give a man a fish you feed him for a day, but if you teach a man to fish, you can feed him for the rest of his life." See this Meta thread for a discussion:   If your neural network does not generalize well, see:


I have this statement:  Which I represent using the predicate P(n).  In order to prove this I have to provide a 'first' case which satisfies this expression. Which in this example is 4. Because every value greater than or equal to 4 will indeed support the statement. Then prove the fact for n+1... but I am really confused about how is the proof structure.  I need to write a proof... and in proofs the steps have to be justified, and choosing a random value of n = 4 won't be ok without its respective justification, so what could I put there?

Possible Duplicate:          Prove by induction that $n!>2^n$ for all integers $n\ge4$.  I know that I have to start from the basic step, which is to confirm the above for $n=4$, being $4!>2^4$, which equals to $24>16$.  How do I continue though. I do not know how to develop the next step.  Thank you.


It looks like the official stack exchange app has been abandoned, so I abandoned it as well. It lacks a ton of features,and is kinda crappy. However, I really miss push notifications and not having to navigate to each of the 7 sites I'm active in.   So my question is if there is an alternative to it (either unofficial or official)  I looked at  but all the apps listed there are not found in the play store. All the apps listed at the question no longer are in the play store (item not found at link)

I like using Stack Overflow (or any other Stack Exchange sites) and was wondering if there was an app I could install on my phone or other device that would allow me to use the site on-the-go or straight from my desktop.  Some systems to consider:   Windows 8 Android iPhone/iOS   What are some apps that I could install to my computer or phone to enhance my Stack Exchange experience?


Take any 37 integers from the set $\{1,2,3,...112\}$, then show that there will always exist two integers out of those 37 integers such that $(x-y)\in\{9,10,19\}$    Here is my approach: Let the set of 37 numbers chosen be S. If we include any natural number n in set S we cannot include $n\pm9, n\pm10, n\pm19$ in the set S, that is if all these values are still within the set $\{1,2,3,...,112\}$. I am unable to rigorously prove that we cannot chose 37 numbers with the previous condition.Can anybody please provide a rigorous proof for this.Thanks in advance

Question: Take any $37$ integers from the set {${1,2,…,112}$}. Show that there will always exist two integers $x,y$ out of those $37$ integers such that $ \mid x-y \mid \in \{9,10,19\}$. Approach: What have I done so far: Let $S=$ {${1,2,…,112}$} We partition the set into subsets $S_i$ of the form $\{x, x+9, x+19\}$. Then the difference of any two elements is in $\{9, 10, 19 \}$, which is easy to see. The following partitions are made (for $x=1, 2, \cdots , 9$): $$\{1, 10, 20 \}, \{2, 11, 21 \}, \cdots, \{9, 18, 28\}$$ Then next we choose $x=29$ to maintain the disjoint sets essential for our proof. This gives the disjoint sets $$ \{29, 38, 48\}, \cdots, \{37, 46, 56 \} $$ and similarly $$\{85, 94, 104 \}, \cdots, \{93, 102, 112 \}$$ However as the quick reader may see that the numbers $\{19, 47, 75, 103\}$ do not occur in any set. However, I decide to do a case by case analysis of the situations. Name this set as $X$. Suppose, initially, that out of the $37$ integers in our selection, none belong to $X$. Then it follows from Dirichlet's box principle that at least two elements are from the same set (i.e. from one of the subsets that we partitioned $S$ into) then the claim is valid. Now suppose that one element from $X$ is in our selection, say $19$ then if at least one of $9, 28, 29, 38$ is in our selection, then the claim is valid. Suppose none of these are present, and we are deficit in four integers. We  can now select any four integers from the remaining numbers and the box principle guarantees that at least two are from the same set. For, even if all $3$ other elements of $X$ are now present, there is one empty slot which can be filled using the other subsets from where we already have at least one element in our choice of $37$ numbers. I hope this is comprehensible because my combinatorics proof writing abilities are horrible. I am preparing for Olympiads and also for being a good Mathematician in general. Thank you for the help :) Edit: It seems I didn't enter my main question, apologies. Is my solution correct?


I currently have a dual boot with Ubuntu LTS and Windows 7 on different partitions and want to remove the dual boot. The thing is, I don't have free space on my hard disk and I am currently unable to arrange for external backup media. So what I want to do is to just delete the Windows specific folders in the "C drive" and leave my data as it is. And then manually tell grub to forget about Windows and the dual boot. I will delete Windows stuff on the partition but I don't know how to configure grub. I don't have any backup media available that's why I asked this as a separate question. I just wanted to know whether this approach is reasonable and needed help on modifying grub.  Also, I have 32 bit Ubuntu currently installed, and my system does support 64 bit. So how can I migrate to 64 bit without losing any data and programs? Isn't it possible to just use the same username and password and data would be restored?

I want to keep Ubuntu but remove Windows.


Draw a sphere with radius with TikZ. According to the figure

Is there like a library that has default geometric figures like the ones shown below. Am not acquainted yet with 3D diagrams in TikZ.


It seems that the top half of my mesh might be inverted somehow. It has a weird shadow on it. Not sure what this problem is called. I'm new to Blender. Any advice on how to fix this?

While rendering a mesh with smooth shading on, I get a dark region/shadow on certain faces. The effect is more evident when smooth shading is applied to a mesh containing ngons, with the ngons turning black when rendered.   The blackening effect is visible in the viewport too.  How can I solve this problem?


It is given in the book 'Introduction to Number Theory' by 'William W. Adams, Larry Joel Goldstein' as Q. 17 in sec. 2.4 (titled: Unique Factorization) exercise:  Prove that $n^{34}-9$ is never prime for any $n$.  If $n$ is prime, then any power of it wouldn't be a prime. But, what is the significance of subtracting $9$ from $n^{34}$ is not clear.

For what positive integer values of $n$ where $n^{34}-9$ is a prime.  I am not getting how to approach this one.  Any help will be truly appreciated.


I have an integral  $$\int_0^1 \int_0^1\sqrt{x^2+y^2}\ dxdy $$  and its result is $\approx0.765...$  I convert it to polar coordinates and get  $$\int_a^b \int_c^dr\ drd\phi $$  But how can I compute $a,b,c,d$?

I want to evaluate the integral $\int_{0}^{1}\int_{0}^{1}\sqrt{x^{2}+y^{2}}dxdy$ using the substitution $x=r\cos\theta$ and $y=r\sin\theta$ where the Jacobian is given as $|J(r, \theta)|=r$ and thus $dxdy=rdrd\theta$.  I need to set the range for $r$ and $\theta$. For $\theta$, it seems obvious that it ranges from $0$ to $\frac{\pi}{2}$ to cover all parts of the rectangle. But I am confused with the range for $r$. Would it be OK to set minimum $r$ as $0$ and maximum $r$ as $\sqrt{2}$, which is the diagonal of the square domain? I think I am confused with the fundamentals of integration.


A friend suggested me a rather tricky problem, namely find the $100^{th}$ derivative of  $$ f(x)=\frac{x^2+1}{x^3-x}. $$ I have computed the zeroth derivative $$ \frac{x^2+1}{x^3-x} $$ and the first derivative $$ \frac{2x(x^3-x)-(3x^2-1)(x^2+1)}{(x^3-x)^2}=\frac{1-x^4-4x^2}{(x^3-x)^2} $$ but I don't see any obvious structure.

I am reading a collection of problems by the Russian mathematician Vladimir Arnol'd, titled A Mathematical Trivium. I am taking a stab at this one:     Calculate the $100$th derivative of the function $$\frac{x^2 + 1}{x^3 - x}.$$   The derivative is non-trivial (in the sense that I computed it for a few rounds, and it only became more assertive). My first thought was to let  $$f(x) = x^2 + 1, \text{ } g(x) = \frac{1}{x^3 - x}$$  and apply the Leibnitz rule for products,  $$fg^{(n)}(x) = \sum_{k=0}^n {n\choose k} f^{(n-k)}(x)g^{(k)}(x) .$$  Since $f$ is vanishing after the third differentiation, we get  $$fg^{(100)}(x) = {100 \choose 2}f^{(2)}g^{(98)} + {100 \choose 1}f^{(1)}g^{(99)} {100 \choose 0}f^{(0)}g^{(100)} \\= 9900g^{(98)} + 200xg^{(99)} + (x^2 + 1)g^{(100)}$$  This would be great if we could compute the last few derivatives of $g$. Indeed, we can boil this down: notice that  $$g(x) = h(x)i(x)j(x), \hspace{4mm} h(x) = \frac{1}{x-1}, \text{  } i(x) = \frac{1}{x}, \text{  } j(x) = \frac{1}{x+1};$$  further, $h, i,$ and $j$ have friendly behavior under repeated differentation, e.g. $h^{(n)}(x) = \frac{(-1)^n n!}{(x-1)^{n + 1}}$.  So overall, it is possible to use Leibnitz again to beat a lengthy derivative out of this function, (namely,  $$g^{(n)}(x) = \sum_{k=0}^n {n \choose k} h^{(n-k)}(x) \Bigl(\sum_{l=0}^k {k \choose l} i^{(k-l)}(x) j^{(l)}(x)\Bigr)$$  with the details filled in).   However, this is really pretty far from computing the derivative.    So, my question: does anyone know how to either improve the above argument, or generate a new one, which can resolve the problem?


I have four columns. All columns are varchar fields. Three of them are independent and distinct fields having many to many relation between them and the fourth one is dependent on the combination of first three. so for all the combinations of three columns there is different value for the fourth column. Now I want a design for data like this. Any help is appreciated.

I'm noob in database. So don't mind if its a silly question.This is used in my application and is the first one. I need a database design for it.    value 4 is dependent on the other value 1,2&3. even if one of the value changes the combination changes and the fourth value is affected. Each of the value 1,value 2,value 3 are independent on each other. Many-to-many relation between value 1,value 2 and value 2,value 3. value 4 is not derived or computed but a distinct value for all the combinations. So how can I design a database for it?


Say I have a page with a main image of a product at the top and several related product images at bottom. When I google the main product, the google search results also show up the main product image and also the related product images, claiming to be the main product. Is there a way I can stop google from crawling certain images on the page, by adding a tag to the images I don't want google to crawl, like a no-crawl?

A website I'm working on has a team section. Every team member has a dedicated site. On the site's bottom of each team member three other team members are displayed randomly.  What happens here is that search engines index all four images. When I enter the name a specific team member into a search engine I get all four images as results. I want to show only the main image on top. So, how can I prevent search engines from indexing the three images at the bottom?


When pressing Ctrl-Alt-T in Ubuntu 18.04, a new terminal instance is opened. Is there a way to tweak the shortcut so if a terminal instance is already opened, then it just gets focused and a new tab is opened?  I'm tired of having 100 terminals opened because of my Ctrl-Alt-T habit.  I'm using hyper terminal, but something working with gnome-terminal would be a good start!

I have the habit of opening a terminal using the "Open terminal here" command in folders. This causes a few terminals to remain open while I don't really use them anymore, or I get confused which terminal was serving which purpose.  I know I can label terminal tabs and such, but can I force a new terminal that is being openened, to become a new tab in a terminal screen (if there is one open already?) This way I always have them tabbed in a single terminal.  EDIT Okay, so it's been a while and my linux mojo has improved a lot. So the current solution to this situation for me has been using tmux. It's a little more advanced than regular terminals and tabs but once I got the hang of it (about an hour of trying) I'm very pleased with the way of going about things.   First of all, I made sure that whenever I opened a terminal using ctrl-alt-t, it would open tmux by default. This can be achieved by adding the following line in your .bashrc file after all the aliases:  [[ $TERM != "screen" ]] && exec 'tmux   Now everytime you spawn a terminal using ctrl-alt-t you will be presented with a tmux.  To make sure you only have one terminal open at the same time I did the following:  First of all, you can reattach a session in tmux by running tmux attach -d. This will disconnect all other clients connected to this session. This works fine if you are the only person using the sessions.  But, if you don't have a session running it will say it did not find any sessions. Ergo, you need something like if(nosession) { tmux } else { tmux attach -d }. To do this create of append to your ~/.tmux.conf file the following line:  #if run as "tmux attach", create a session if one does not already exist new-session -n $HOST   (Thanks to )  In my .bashrc file, I changed the line added previously to the following:  [[ $TERM != "screen" ]] && exec 'tmux attach -d'   What this does is detach all other clients from the tmux session. When you do this, all other terminals close. They close because this line also makes sure that when you open a terminal (ctrl-alt-t), it immediatly starts a tmux session.  Ergo, attach -d kills the other sessions. So this is the closest fix I could get and I'm rather happy with it! :)  The only thing I would still like is that when I press ctrl-alt-t it opens up my current session and also creates a new window. I haven't figured that out yet so feel free to help!


Being this direct (saying directly to other people) is easy when you know there is no need to play games with them or to impress them.   This sentence is in a paragraph that says you should talk directly to other people (especially women). Can "play games" in this sentence mean "deceive other people"? Or does it has another meaning?

I find this expression strange because it's clearly widely used, but seems sort of "unofficial", the "official" version, meaning the one described in dictionaries and grammar books, being playing games with, not on.  Both expressions seem to be current and valid, according to Google Books. I'm just not entirely clear on the context and the usage.  My understanding is that playing games with implies some sort of tricky, mischievous behavior, which may or may not be intentionally malicious, like office politics or standing someone up on a date ("Jane didn't show up...again. Is she playing games with me?"), while playing games on implies a form of studied deception. ("The ad said that the comic book was in mint condition but there are barely noticeable tears... are they trying to play a game on me?")


I need to find the sum of this series: $1+\frac 12 + \frac 13 + \cdots + \frac 1{50}$   Please help me find the sum of this series.

How to find the sum of the following series? $$1 + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \dots + \frac{1}{n}$$ This is a harmonic progression. So, is the following formula correct? $\frac{(number ~of ~terms)^2}{sum~ of~ all ~the~ denominators}$ $\Rightarrow $ if $\frac{1}{A} + \frac{1}{B} +\frac{1}{C}$ are in H.P. Therefore the sum of the series can be written as : $\Rightarrow \frac{(3)^3}{(A+B+C)}$ Is this correct? Please suggest.


Strangest thing...*:  $$\tan^2 10^\circ+\tan^2 50^\circ+\tan^2 70^\circ=9\tag{1}$$  The trick, as always, is how to prove it.   My idea was to add a "missing" tangent and analyze a similar expression:  $$\tan^2 10^\circ+\tan^2 30^\circ+\tan^2 50^\circ+\tan^2 70^\circ$$  ...and then to attack this sum pairwise (first and the last term, second and third). Despite the fact that I got the same angle ($80^\circ$) here and there, I got pretty much nowhere with this approach.   The other interesting fact is that (1) can be rewritten as:  $$\cot^2 20^\circ+\cot^2 40^\circ+\cot^2 80^\circ\tag{1}$$  ...and now the angles are in nice geometric progression. That's the vector of attack that I'm trying to exploit now, but maybe you can entertain youself a little bit too.  *Borrowed from "Usual suspects"

I need help proving the following identity.  $\tan^210^\circ+\tan^250^\circ+\tan^270^\circ=9$.  I am not sure if it is even true.


I would like to clean up some folders. So I want to delete all folders which are empty or only contain other folders...  First I tried   find . -type d -delete   but this lists the subfolders after the parents, so I would have to execute it multiple times.  So I tried using tac and pipes  find . -type d | tac | xargs rmdir   This one fails on whitespaces, etc, so I need a masking - now I am stuck...

How can I remove all empty directories in a subtree? I used something like  find . -type d -exec rmdir {} 2>/dev/null \;   but I needs to be run multiple times in order to remove directories containing empty directories only. Moreover, it's quite slow, especially under cygwin.


I understand the big bang to have (at least mathematically) started our universe at a virtually precise moment and within a virtually infinitesimal volume. Yet some of the light from that moment/volume reached us in the distant past, some is reaching us now, and more will reach us in the distant future (expanding particle horizon).   That seems strange to me.   I am thinking that maybe the big bang really is sort of the limiting case of the event horizon approaching $0$ distance from us. That is, if time began at the big bang ($t=0$ at the moment of the big bang), then at any $t>0$, there is a finite event horizon (albeit very tiny for $t \approx 0$) and, if object A is closer to it than object B, then object A's light will reach us later than object B (and object A will reach the particle horizon later than object B). But, at $t=0$, the actual big bang, I think all this breaks down. However, perhaps we can talk about  how and when we receive light emitted as $ t \to 0$, and interpret light "emitted at the big bang" in that way?    Or maybe there is some kind of quantum uncertainty regarding the moment of the big bang, so that the event horizon was never (with no uncertainty) exactly $0$ distance from us? Then, at $t=0$, we have a non-trivially uncertain event horizon.   In any case, talking about "light emitted at (or during, if you prefer) the big bang" sounds problematic.

TV documentaries invariably show the Big Bang as an exploding ball of fire expanding outwards. Did the Big Bang really explode outwards from a point like this? If not, what did happen?


I got the GRUB menu, chose Advance, but in that menu, I don't see the recovery mode option. I only have two different options on the Linux version. Please help, as I forgot my password, and need to access the terminal to restart the Samba file sharing service for my Ubuntu server.

I want to boot Ubuntu into recovery mode but there is no grub menu entry allowing me to do so. I pressed e and now I am able to edit boot options. It looks like that:  setparams 'Ubuntu , with Linux 3.6.0-26-generic'  recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='(hd0,msdos5)' search --no-floppy --fs-uuid --set=root <uuid> linux /boot/vmlinuz-3.5.0-26-generic root=<uuid> ro ipv6.disable=1 quirt splash $vt_handoff initrd /boot/initrd.img-3.5.0-26-generic   The  documentation says:     Boot to the recovery mode even if it is not listed on the menu:         Remove existing kernel options from the linux line and add single      But this sentence doesn't make any sense, maybe the wiki page is broken somehow. How to modify the boot menu to boot directly into recovery mode?  Note: I don't have access to grub config or anything else, only the boot menu edit page is available.


I can get the element like this $("#name") but I'm not sure how to get the actual value.

I can get the element like this $("#txtEmail") but I'm not sure how to get the actual value.


I'm learning from Griffiths' book "Quantum Mechanics". In quantum mechanics, a particle has a variety of accessible energy states. Then is the energy of the particle always conserved? Energy states are decided randomly, this makes me think energy would not be conserved. I got some alternative ideas:   Average value of energy is conserved. Energy is statistically conserved, but there are fluctuations. Few particles effect each other, so the energy loss of one particle is compensated by another particle. Therefore energy is always conserved and there is no fluctuation.

I'd appreciate a bit of clarification on how conservation of energy works in QM.  The infinite square well has a set of stationary states, each corresponding to one of the discrete energy levels of the well. A particle in a particular state can be represented as a sum of these stationary states. The expectation value of the Hamiltonian, < H > , of this particle does not change with time. The state however (by virtue of being a sum of multiple stationary states) has a non-zero energy-uncertainty.  Measuring the energy of the particle collapeses its wavefunction into one of the stationary states with a corresponding energy value.  This bothers me. While  < H >  is constant, the "actual" energy of the particle (upon measurement) could vary greatly. This seems like a violation of energy conservation. [And while I've posited this question in terms of the infinite well, any wavefunction composed of non-degenerate stationary states seems like a violation to me]  So, is the particle entangled with some other particle (through whatever process put it in the well in the first place) such that the net energy in some larger system is constant? Or is energy only conserved is larger systems (which are compromised of so many particles as to approach  < H > )? Or what am I misunderstanding?


Wheel Diameter: 64cm/25 inch what does this mean? I'm thinking of buying a new bike. but Ive never heard of 25 in wheels. Or is the 64cm a 700c. I've only had 26 in up till now and my knowledge in the cm is next to none. can anyone help me please?

Would someone explain wheel sizes.  If I am not mistaken, the wheels on my Trek 520 touring bike are 700C. There are no markings, and of course, no documentation of any kind. I assume 700 means 700mm, so 700 / 25.4 = 27.56 inches.  If I measure the rim however, its diameter is approximately 25.1 inches.  If I buy Continental tires, the size is 28 inch, but I have to buy 27 inch Bontrager tubes.  To make matters worse, per this link, tires come in sizes of 26, 27, and 28 inch, and size 700.     How can I determine my wheel size, and are these various sizes interchangable. Also, is the 'C' suffix important, and what does it mean?  Of course the tires are marked, but I am under the impression (per the dealers comments) that Continental marks their tires differently than everyone else. Also, the tire markings don't help for ordering a new wheel.   With so many tire sizes available, how can I know if I am using the correct size.  After reading the various answers here, I should explain that my confusion on this matter stemmed from the fact that I used to work as an auto mechanic. In the auto industry, car tires are based on wheel size, 13", 14", 15" etc, and there is no possible way to mount a 15" tire on a 13" rim for example.  So when I saw all these different tire sizes, I assumed they all required a different wheel size, but in fact, there is essentially just one wheel diameter for my type of bike, which they refer to as 700C, which is actually 622mm.   I also initially assumed that the C referred to the wheel's width, but that isn't true either. The C is apparently just antiquated terminology.  So at least in theory, I can mount a 26", 27" 28" or 29" tire on my 700C (622mm) rim. I just need to verify the width of the tire is suitable my wheel width, which is what Sheldon Brown's article explains.  Also, I measured my Continental tires, which are marked as 28 inch. They actually measure 27 inches (fully inflated), which must be why my dealer calls their sizing non standard.


I need a zoom lens ASAP for high school baseball. (And then hopefully in 2020 college baseball.) This is only to take pictures of my son — for now high school and travel baseball.  I have older Canon Rebel EOS XSI 450D. I think I bought it in 2007/2008.   The lens I have now (which my dad recommended) just doesn’t cut it.  It is a Canon EF 75-300mm lens (without a stabilizer).   Many of the pictures that I have taken during the day of sports (baseball, lacrosse and soccer) are blurry but usable. But the pictures at night are ALL BLURRY!  And I have tried every setting.   I don’t know if I need to upgrade my camera because it is not  powerful/advanced enough, or what lens would work with the Canon Rebel EOS XSi 450D that I already own?  Maybe price-wise it is better to upgrade to a better camera and lens? But a $1000 lens by itself even refurbished isn’t in the budget.  I don’t know if any of these camera lenses would work. I have read some of them don’t work at night for sports photos.  I am so confused. 🤯   EF-S 18-55mm f/3.5-5.6 IS STM lens features the optics, AF and image stabilization. Canon - EF 75-300mm f/4-5.6 III USM Telephoto Zoom Lens - Multi 70-200 f/2.8 (IT IS VERY $$$!)   Or none of the above?  Can anyone recommend any lens that could get me through at least Highschool baseball season? And remember I really cannot use a flash.   Thank you in advance for any advice and suggestions you can provide!

I would like to get into sports photography, and would probably want a better telephoto lens so I can get better close up shots.  What other factors should I keep in mind as I make my choice? Does IS (or VR) matter?  What is a good focal length?  I'll probably be shooting mostly little league baseball/softball, church softball leagues, and kids soccer.


I have installed Deepin DE on Ubuntu using following commands.  sudo add-apt-repository ppa:ubuntudde-dev/stable sudo apt-get install ubuntudde-dde   After rebooting the system still I see the GNOME DE? What am I missing here?

I've installed another desktop environment which I would like to try. I am not sure how to switch to it.  Is there still a button on the log in screen that will switch desktop environments? This same question for previous versions of ubuntu yields screenshots of this button. But I cannot find any button on the log in screen that does this.  So, in ubuntu 19.10, does there exist a button to switch desktop environments? If so, where is it? If not, what is an alternative method to switch desktop environments after I've already installed one?  ██████@████-linux:~$ ls /usr/share/xsessions gnome-flashback-compiz.desktop    ubuntu.desktop gnome-flashback-metacity.desktop   The gear icon does not show up for me, as the answers indicate it should.    Solved. I was not logged out properly. I locked the screen thinking that was logging out. Logging out properly fixed the issue.


Let $X$ be a random variable with values in $\mathbb Z_{\geq0}$. Show that $E[X]=\sum_{k=0}^\infty P[X>k]$.   The question is taken from Introduction to Probability Models, 10th Ed. (Ross, pg. 91).  Attempt. Let $X=\sum_{k=1}^\infty X_k$, with  \begin{equation}X_k=\begin{cases}1 & \text{when }X\leq k \\ 0 & \text{when }X>k\end{cases}\end{equation}  Since $E[X_k]=P[X\leq k]$,  $$E[X]=\sum_{k=1}^\infty E[X_k]=\sum_{k=1}^\infty P[X\leq k]=\sum_{k=1}^\infty \left(1-P[X>k]\right)$$  And at this point I'm at a loss as to how I should obtain the result.  Attempt 2. Following drhab's help, I reformulated the definition of $X$ in terms of $X_k$. Using the same $X_k$ (for brevity of this post), let $X=\sum_{k=0}^\infty(1-X_k)$. Then  $$E[X]=\sum_{k=0}^\infty E[1-X_k]=\sum_{k=0}^\infty(E[1]-E[X_k])=\sum_{k=0}^\infty(1-P[X\leq k])=\sum_{k=0}^\infty P[X>k]$$  I believe this is correct now.

Let $X$ be a discrete random variable whose range is $0,1,2,3,\ldots$. Prove that $$ {\rm E}[X]=\sum_{k=0}^\infty P(X>k). $$  How to prove this? I tried a bit but unable to post due to formatting issue. Can anyone help?


I'm looking for a phrase you would use when you have made a fix to something but you are not sure what the problem is in the first place.  For example I pushed out a software fix today to address a problem but I was unable to find out what the problem was. What would you call that fix?  Thanks  Jonathan

I'm looking for a phrase to describe fixing the relatively minor problems of something with addressing a larger underlying problem. One example would be if a house had a bug infestation and someone simply covered any holes the bugs were coming through instead of dealing with the infestation itself. Or similarly, patching up a hole each time it appeared in worn-out clothing.   I thought the term was spot-fixing, but looking online, this seems to be associated with illegal sport fixing.   edit: To clarify, I'm looking for a phrase to describe each of the individual fixes made. in other words, something that would fit in the blank here: "He made another __ by duct-taping the crack in the wall". Or similarly "patching the hole was another ___ but the shirt needed to be replaced".


I am not sure whether to use singular or plural forms of the verb in the following example sentence:     The age and weight of the person is/are known.   Thanks for any advice.

Please help me to choose the right verb.     Its inside and outside is/are the same.   If you would please explain your answer a bit.


This is a HP 15-BS576TX laptop which comes with Realtek RTL8723DE Wireless/Bluetooth module. I honestly cannot find a way to bring up the Bluetooth despite, the firmware are all available. The RTL8723DE firmware is recently available in kernel linux-firmware.git tree and I have copied it to the /lib/firmware/rtl_bt directory too.   The error is, it is asking for rtl8723b_config.bin file which is not available. Also, the bluetooth part of this laptop is detected as RTL8723B as per the kernel log. The reply from the firmware maintainer was: "Not all devices need the config file - rtl8723be does not."  lsusb -v -d 0bda:b009   :~# rfkill list all 0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 4: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   The dmesg relevant parts:  # dmesg  |grep -i bluetooth [   11.325095] Bluetooth: Core ver 2.22 [   11.325111] Bluetooth: HCI device and connection manager initialized [   11.325113] Bluetooth: HCI socket layer initialized [   11.325115] Bluetooth: L2CAP socket layer initialized [   11.325118] Bluetooth: SCO socket layer initialized [   11.414774] Bluetooth: hci0: rtl: examining hci_ver=08 hci_rev=000d lmp_ver=08 lmp_subver=8723 [   11.414775] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin [   11.466838] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2 [   11.466840] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin [   11.478765] Bluetooth: hci0: rom_version status=0 version=2 [   11.478767] Bluetooth: hci0: didn't find patch for chip id 2 [   21.410553] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   21.410555] Bluetooth: BNEP filters: protocol multicast [   21.410557] Bluetooth: BNEP socket layer initialized   I have rtl8723D firmware in the directory and still, the kernel is detecting the device as RTL8723B and I cannot bring it up.  hci0:   Type: Primary  Bus: USB     BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0     DOWN      RX bytes:63 acl:0 sco:0 events:6 errors:0     TX bytes:18 acl:0 sco:0 commands:6 errors:0     Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00     Packet type: DM1 DH1 HV1      Link policy:      Link mode: SLAVE ACCEPT   When I tried,   hciconfig hci0 up  Can't init device hci0: Invalid argument (22)  tail -f /var/log/kern.log shows this:  Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.853960] Bluetooth: hci0: rtl: examining hci_ver=08 hci_rev=000d lmp_ver=08 lmp_subver=8723 Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.853970] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.854019] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2 Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.854024] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.855913] Bluetooth: hci0: rom_version status=0 version=2 Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.855920] Bluetooth: hci0: didn't find patch for chip id 2   And this is how the /lib/firmware/rtl_bt looks like. It has latest firmware for RTL8723D also copied into the directory:  rtl8192ee_fw.bin rtl8192eu_fw.bin rtl8723a_fw.bin rtl8723b_fw.bin rtl8723d_config.bin rtl8723d_fw.bin rtl8761a_fw.bin rtl8812ae_fw.bin rtl8821a_fw.bin rtl8821c_config.bin rtl8821c_fw.bin rtl8822b_config.bin rtl8822b_fw.bin   What is wrong, I cannot figure out. System detects the Bluetooth hardware as RTL8723B, while the wireless module is definitely RTL8723DE as written in the back of the laptop. The driver maintainer commented that the Bluetooth part of RTL8723B and RTL8723D are similar. So, What is the right thing to try? Is there a way to load the rtl8723d firmware and config file instead of rtl8723b firmware, will it fix the problem.

The wireless drivers for the RTL8723DE appeared for downloading and the module is now usable for Wi-Fi.   See   But the bluetooth part of it is yet not supported on Ubuntu. How this can be fixed?  lsusb shows  Bus 001 Device 003: ID 0bda:b009 Realtek Semiconductor Corp.    And usb-devices | awk '/0bda/' RS=  T:  Bus=01 Lev=02 Prnt=02 Port=03 Cnt=01 Dev#=  3 Spd=12  MxCh= 0 D:  Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1 P:  Vendor=0bda ProdID=b009 Rev=02.00 S:  Manufacturer=Realtek S:  Product=802.11n WLAN Adapter S:  SerialNumber=00e04c000001 C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb


I understand that simultaneously cross-posting on multiple SE sites is .  What about simultaneously cross-posting to two SE sites in a different language?  e.g., a user posts their question to both Stack Overflow and Stack Overflow en español?  In other words, the poster posts an English-language version of the question on Stack Overflow and at the same time posts a Spanish-language version of the question on Stack Overflow en español?  Is that allowed?  (No, I'm not trying to advocate for allowing it.  I just honestly want to know what the actual policy is.  For instance, I saw one user argue that it should be allowed .  Is there a statement of our policy anywhere?  Is it site-dependent?)

Somehow related (but not exactly) to   Let's suppose I have a question in the following manner:     How do to x with y   Now, let's say a user is proficient with more than one language, in the current case, English and Portuguese (as of the time of writing, they are the public SO). Would it be wrong to crosspost on both SO and wait for anyone to answer?  Note that this is different than the linked question in the following way: we aren't purposely flooding a new SO with already asked questions by translation. Rather, we're allowing for good-written answers to appear, in different languages, at a natural pace.


I've searched the forums here at dba.se and other places on the Net and haven't found a specific answer.  I know this question looks similar to many, but the ones that I've found only address how to shrink a log file, which I already know how to perform.  I happen to be in one of those unique positions that a log shrink is necessary.  My specific question is:    When I perform a log shrink on the primary in a mirrored set, do I then failover and perform a log shrink on the "new" primary?    Or does this somehow replicate the changes to the secondary, making the manually failover unnecessary?

This is a followup question to  about why I couldn't shrink the log file on the principal database.  To make a long story short, I setup database mirroring but forgot to make sure the job that backed up the transaction log was running again, and the transaction log grew to almost 60GB.   Since mirroring was set up, this size increase was duplicated on the mirrored server, and eventually took up all the disk space and made the mirror database unusable.  Per  about transaction log maintenance on a mirror database, you can't back up the log on the mirror, but when asked specifically in  about how to shrink an overgrown log file on a mirror database, a  was left that      One way to do this would be to failover to the mirrored database and   do the shrink there. Thoroughly test this out in a non-production   environment to ensure it has the behavior you want/expect.   This seems to suggest that there might be other ways to shrink the log file on a mirror, and this method might not necessarily be safe to do on a production server.  Is there a way to safely shrink the transaction log file on a database mirror?


When referencing a table with \autoref{}, instead of the table's correct reference I always get Table 1.2. This is quite strange, because clicking in the reference sends me to the correct table on the pdf.  Here's a sample table:  \begin{table}[ht] \centering     \begin{tabular}{c c c c c c}     \hline     Region & Facebook & Twitter & Google+ & Instagram & Pintrest \\     \hline     North America         & 55\% & 24\% & 17\% & 12\% & 16\% \\     Middle East \& Africa & 52\% & 28\% & 31\% & 10\% & 8\% \\     South America         & 51\% & 25\% & 24\% & 11\% & 6\% \\     Asia-Pacific (APAC)   & 48\% & 27\% & 26\% & 8\% & 5\% \\     Europe                & 43\% & 18\% & 16\% & 6\% & 3\% \\     \hline      \end{tabular} \label{table:social-share-by-region} \caption{Social network share by region, excluding China\cite{InstagramIsTheFastestGrowingSocialSiteGlobally}} \end{table}   I reference it as usually:  \autoref{table:social-share-by-region}   What could be wrong?  Edit: forgot to mention; this sample table is Table 1.6, the reference (as indicated) shows Table 1.2  Edit: just tried it; \ref{table:social-share-by-region} is still 1.2...

\documentclass{article} \usepackage{algorithm}  \begin{document} \setcounter{section}{54} \section{A section with no label} \begin{algorithm} \label{myalg} \caption{An algorithm with the label `myalg'.} \end{algorithm} Reference to myalg: \ref{myalg}. \end{document}   With this code, the reference givens 55 (the section number); if I move the label after the caption command, I get the correct reference (1).  Why should this be the case? I find it confusing: when thinking about an algorithm as an environment, you expect to be able to label it right after you began it. At the very least I would expect some kind of error or "??" to appear, rather than the previous environment or reference-able entity being used.


Warlock-sorcerer, can you convert your warlock slots (that you regain with short rests) into sorcery points?  Is there a cap to your current sorcery points?

I'm planning on multi-classing in Warlock as a Sorcerer in 5e. I'd like to be able to use my Warlock spell slots from Pact Magic (that I regain on a short rest) to gain sorcery points.  I'm inclined to believe the answer to this question is "Yes", because the Font of Magic feature does not specify that the slots expended need be Sorcerer spell slots or even Spellcasting spell slots. Although it does seem to be RAW, I find it hard to believe that this was RAI, because it essentially copies the Sorcerer capstone with three levels in Warlock. Does anyone know if there's an official ruling as to whether or not this is allowed?  Here's the relevant rule:     Converting a Spell Slot to Sorcery Points. As a bonus action on your turn, you can expend one spell slot and gain a number of sorcery points equal to the slot’s level.


# ps -ef | grep gre root     15067 63614  0 11:03 pts/0    00:00:00 grep --color=auto gre   Another example  # ps -ef | grep sshd root      1186     1  0 Jul26 ?        00:00:00 /usr/sbin/sshd -D root     15439 63614  0 11:05 pts/0    00:00:00 grep --color=auto sshd   How can I stop the grep command being found by itself and not returned as a field?

When I  search for some process that doesn't exist, e.g.  $ ps aux | grep fnord                           wayne    15745  0.0  0.0  13580   928 pts/6    S+   03:58   0:00 grep fnord   Obviously I don't care about grep - that makes as much sense as searching for the ps process!  How can I prevent grep from showing up in the results?


I'm trying to submit an article to a journal with an automated system that requires a list of references in plain text. Is there some way of automatically converting my bbl file into plain text (something that I can just copy and paste into a text box, without ligatures etc)?

How can I generate a text-file (without any formatting) of the references used in a tex file?  This is needed quite often when submitting scientific papers to journals, because they want a separate list of the bibliography. However, if I turn the pdf file to a docx document, there is the problem that "ff" and "fi" in the text is not copied properly, so that a lot of manual corrections would be needed.  Does anyone know of a way to get the list of references either from the latex file or the pdf document?


The number of open close votes just reached over 100k and I've never seen it go down before. I tried a number of those, but a lot are about subjects I don't understand (for me that would eg be python, or .net). I cant rate those properly because most of the time I cant really understand what it is about.  My idea would be to make with the same principle as Stack Overflow has with the [Questions]  tab, the subjects with preferred tags get displayed. Those same tags could be used for close-reviewing, because I would actually be able to review them which makes it a lot more interesting than keep clicking skip.  Any thoughts about his?  (ps, first post on meta, not sure whether I did this correct)  edit: This account only has 1 point at the moment, my Stack Overflow account is more active.    Edit after a comment: I've just noticed the filter. While this does about the same as I was thinking about, this is a passive method. My suggestion would be automatically filter on preferred tags

I am a little puzzled over this subject. Why does the number of items in the  is always increasing?  Compared to "suggested edits" - there are fewer items in the close votes queue (less than a 1M  close items vs. over 2M  items in the suggested edits).  So why can't we handle the closed votes reviews?  My observation: While reviewing a suggested edit does not require specific understanding of the post itself (a good assesment can be made based on style and formating), this is not the case for close votes: these reviews require an understanding of the post's subject.  My proposal: It would be nice if when I go to review closed votes the system will automatically filter the posts for me based on my active tags. This way I will be more efficient in reviewing and more encouraged to review more.  EDIT: An after thought (after reading proposed answer and comments): It might be that filtering is not exactly what is required, but rather prioritizing the queue per reiviewer. Each reiviewer will be given posts to review that are "similar" to his active badges with higher probability.  Update: Following , I believe it is highly important to have no backlog at the close votes reviews: This backlog actually makes closing questions on SO quite a random event, leaving many low-quality questions open spamming SO. Is there an effective way to draw the attention of SE team/moderators to this burning issue?


I've noticed that the quality of pictures on my DSLR is considerably higher than the quality of video. This got me thinking that if one could continuously shoot at high FPS, it should be possible to shoot "videos" of extremely high quality. Obviously you'd need to capture the sound separately, but it shouldn't be a problem. However my own cheap camera can do a 10-shot burst at most and as far as I know most DSLRs have similar restriction.  Is there a DSLR on the market which can do high-speed bursts for an unlimited (or considerable) amount of time?

Why do high resolution cameras shoot stills at high resolutions, but only typically shoot video at 1080p which is about 2 megapixels?  For example I have a Sony-NEX 6 which can shoot stills at 16 megapixels but only 1080p by 1920p video.  Also how do digital cameras separate the frames in video if the lens shutter never closes?  And if you can shoot video at 30 fps or 60 fps then why can't cameras have a continuous drives at 30 to 60 fps?


I am trying to fit an ARMA model to a time series of a power spectral density values that I have calculated.  Here is the plot of the data:   with corresponding autocorrelation and partial autocorrelation plots    I am fairly new to time series analysis but the way I am interpreting it is as follows:  The slowly varying ACF (it hits zero around lag 55) indicates non stationarity initially, but since there are significant spikes in the PACF for the first few lags, this indicates that the PACF may explain the behaviour of the ACF and we in fact need more AR terms. In this case there seem to be significant AR lags in the first 5 and so this would suggest a possible ARMA(5,0) model?  However I have also read that the amount of MA terms you need correspond to the first lag outside of the confidence interval where each following lag decay to 0 - hence might I need an ARMA(5,1) model?  As a third problem to my the data looks like it may be somewhat periodic, if this is the case how do you go about fitting an ARMA model?

Following are acf and pacf plots of a monthly data series. The second plot is acf with ci.type='ma':    The persistence of high values in acf plot probably represent a long term positive trend. The question is if this represent seasonal variation?  I tried to see different sites on this topic but I am not sure if these plots show seasonality.           Edit: following is the graph for lag upto 60:     Following are plots of diff(my_series):     And upto lag 60:     Edit: This data is from:  Here the contributors did not consider acf and pacf plot of original or differenced series worth mentioning (so it must not be important). Only acf/pacf plots of residuals was referred to in a couple of places.


I am trying to obtain the ID (primary key with auto increment) of the last inserted data. But my query seems to be empty after using SCOPE_IDENTITY(), while the entries are inserted correctly into the database. What is causing the problem? Thank you! QSqlQuery query; query.prepare("INSERT INTO list (file) VALUES (?); SELECT SCOPE_IDENTITY()"); query.addBindValue(file); qDebug() << query.exec(); qDebug() << query.first(); query.value(0).toInt();  Console Output:  true false QSqlQuery::value: not positioned on a valid record

What is the equivalent of SQLServer function  in mySQL?


I have some doubts about using ing-verb in the following case:     Such data structures don't allow insretion/inserting/to insert any   kind of objects.   Is it considered grammatically correct to say that in all three ways? I'm not sure about ing-verb because I didn't find that we can use it in that way. For instance, .

Some verbs are followed by ing, e.g. I enjoy swimming. We can't say I enjoy to swim. Likewise, some verbs are followed by to, e.g. I decided to make a plan.   Which particular verbs are followed by ing and to? Can you please provide a list for that?  Moreover, which verbs can be followed by both without having the meaning changed?


What is the difference between  and ? These two effects explains interaction of photon with electron. Why in photoelectric effect whole energy of photon is used up and in Compton photon gets reflected with some energy?

Say a photon hits some atom.  What determines whether there will be a photoelectric effect (photon is absorbed, electron is released) or whether there will be a Compton scattering (the photon is  scattered at some angle, and the electron is released with another direction)?


Explain why a correlation between two variables does not necessarily imply that one variable causes the other to vary as it does. Give an example.

Correlation does not imply causation, as there could be many explanations for the correlation. But does causation imply correlation? Intuitively, I would think that the presence of causation means there is necessarily some correlation. But my intuition has not always served me well in statistics. Does causation imply correlation?


Let's define $\rho=1.1010010001\dots$ which can be expressed by: $$\rho=\frac{1}{10^{0}}\underbrace{+\frac{1}{10^{1}}}_{\text{power}+1}\underbrace{+\frac{1}{10^{3}}}_{\text{power}+2}\underbrace{+\frac{1}{10^{6}}}_{\text{power}+3}\underbrace{+\frac{1}{10^{10}}}_{\text{power}+4}+\dots$$ That is to say: $$\rho=\sum_{i=0}^{\infty}10^{-i(i+1)/2}$$ Can we express $\rho$ in a simple form? I think it's not a rational but I don't know how to prove it, any ideas? Thanks.

Does anyone know if this number is algebraic or transcendental, and why?  $$\sum\limits_{n = 1}^\infty  {10}^{ - n(n + 1)/2}  = 0.1010010001000010000010000001 \ldots $$


What are the differences between the following function declaration formats? When is it more correct to use which?  From a beginner's perspective, and a high level (non-deep) point of view, they all three appear to work the same - hence it makes things feel confusing and demands the question.  1.  const counter1 = function(num) {     var x = 0;     while (x < num) {         console.log(x);         x ++;     };     return 0; };   2.  function counter2(num) {     var x = 0;     while (x < num) {         console.log(x);         x ++;     };     return 0; };   3.  const counter3 = (num) => {     var x = 0;     while (x < num) {         console.log(x);         x ++;     };     return 0; };   All of them appear to behave the same.

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


This question was marked as a duplicate: This question already has an answer here:  but I don't see that it is.  I had previously looked at that question, and even tried some of the suggested remedies. But my issue is not with the display (which seems to be the subject of that question) but with the printing. Perhaps I am missing something about the way in which pdf graphics are handled.  Original message:   I am writing a document that has a number of images produced via Inkscape (0.91) and included in my latex document (I'm using TeXshop on a Mac OS 11.5) as pdf files via \includegraphics. These render just fine on screen, but don't print well using various printers; you can see the issue already from printing to a pdf file.   The issue is that regions that have shading or blurring (two effects you can produce in Inkscape) don't print at all.  At the bottom is an example; you can find the graphics file at .  If you want to see the native Inkscape .svg version, it's there too:   Any suggestions on how to handle this? Thanks!  \documentclass[11pt]{amsart} \usepackage{graphicx} \begin{document} \begin{figure}[htb] \centering \includegraphics[scale=1]{concordance2} \end{figure} \end{document}

I'm using pdflatex, and use \includegraphics to include content of figures from PDF. PDF are exported from InkScape.  \begin{figure} [!h]     \centering     \includegraphics[height=3cm]{fig/SUSAN.pdf} \end{figure}   Included PDF or source SVG has same colors. Green has always RGB value (0, 255, 0). Problem occurs when I include this files from LaTeX. In output PDF on some pages colorspace is darker. Even same image on other page has different colourity.  My PDF  . As you can see on page 7 (11 in PDF) USAN areas are bright green, but then on page 5 (9 in PDF) are green points on corners more darker.


I am trying to generate a permutation of list in python with recursion.  import copy  def perm(seq):     if len(seq) == 1:         return seq     else:         nseq = perm(seq[1:])         return zip_letter(seq[0], nseq)   def zip_letter(c, seq):     lis = []     for i in range(len(seq)+1):         seq.insert(i, c)         lis.append(copy.deepcopy(seq))         seq.pop(i)     return lis  print perm(['a', 'b', 'c'])   The output is  [['a', ['b', 'c'], ['c', 'b']], [['b', 'c'], 'a', ['c', 'b']], [['b', 'c'], ['c', 'b'], 'a']]  which seems fine, but not in correctly inserted format. what am i missing?

How do you generate all the permutations of a list in Python, independently of the type of elements in that list?  For example:  permutations([]) []  permutations([1]) [1]  permutations([1, 2]) [1, 2] [2, 1]  permutations([1, 2, 3]) [1, 2, 3] [1, 3, 2] [2, 1, 3] [2, 3, 1] [3, 1, 2] [3, 2, 1]


What are the circumstances in which any can be used with a singular and with a plural?        Do you have any car?   Do you have any cars?      For example, commenters have indicated both     You cannot use any with a countable singular. You can use it with a plural, or with a mass noun — “do you have any milk,” for example.’        "You don't have a Ford. You don't have a VW. You don't have a Chrysler. Do you have any car?" is perfectly reasonable.   Clearly the rules are quite complex.

I always thought with "any" I should use the plural, but on the internet I can find both:   It can be found in any book. It can be found in any books Do you have any books? It can be said in any language.  This can be understood by anyone.  It has been used in any form.   So, what's correct?  Is there any rule?


What are the reasons for StackOverflowError Exception and whether it is checked or unchecked exception?

What is a StackOverflowError, what causes it, and how should I deal with them?


Before I start be easy on me I am not a stats person - I am  just on the quest for information :-)  I was tasked to generate many graphs for someone who wanted to see if the data presented with a bell shape curve vs a graph with > 1 peak - this was no biggie but silly me I thought maybe it would be easier to run the data thru some stats package like R that would flag the populations that need to be looked at with a graph. The quest has led me to  reading Shapiro-Wilk, Anderson–Darling test etc but various people with more knowledge than I still pointed to the graphing of data as the only way to verify Normal Distribution.  So my question is is there any Statistics method I can run the following data thru to flag the data for further investigation instead of graphs ?? Instead of Counts of Patients by days should I just look at full list of DaysInHospital  Thanks     Data is plotted with a graph per disease with the data plotted   x-axis - Days in Hosiptal   y-axis - Cnt of Patients     DiseasePopulation #1  ( DaysinHospital,Cnt of Patients) = {(1,1),(2,1),(3,3),(4,6),(5,2),(6,1),(7,1),(8,1)}   DiseasePopulation #2  ( DaysinHospital,Cnt of Patients) = {(1,1),(2,1),(3,1),(4,2),(5,6),(6,3),(7,1),(8,1)}

I have a large dataset (500000 data, V1 column include all the data).  x <- read.csv("mydata.csv", header=F) hist(x)   Which gives:    Looking at the data, I believe it is not a normal distribution. As a further check, I constructed a qqplot:  x_norm <- (x$V1 - mean(x$V1))/sd(x$V1) qqnorm(x_norm); abline(0, 1)   which gave:    To check the goodness of fit of x$V1 (rawdata) to a normal distribution, I used:  rnorm <- rnorm(500000, mean(x$V1), sd(x$V1)) cc <- cbind(rnorm, x$V1) g <- goodfit(cc, method="MinChisq") summary(g)           Goodness-of-fit test for poisson distribution               X^2 df      P(> X^2) Pearson 914.5227 17 1.679266e-183 Warning message: In summary.goodfit(g) : Chi-squared approximation may be incorrect   With plot(g) giving:    Does this seem correct? Can I confidently conclude my dataset X$V1 is or is not a normal distribution?  Based on the above analysis, what other distribution should I test?


I want to test whether the mean in two samples are different. I don't know their variance and estimate them from the sample. When should I use the Welch-Satterthwaite approximation to the degrees of freedom for the test statistic?

It seems like when the assumption of homogeneity of variance is met that the results from a Welch adjusted t-test and a standard t-test are approximately the same.  Why not simply always use the Welch adjusted t?


Reading package lists... Error! E: Write error - write (9: Bad file descriptor) E: The package lists or status file could not be parsed or opened. david@david-Inspiron-N5110:~$

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


I have a server and host multiple clients websites there as vhosts. My Lamp-version is very outdated from 2008 and for a new project and want to have a newer one without changing my old websites, because they will break on update of the newer php-version. Is it posisible to configure a vhost on that system with another Lamp-version or a newer php-version?  System: Debian  Webserver: Apache 2

I have read this topic:   There, the issue is handling two different generations of PHP (PHP 4 vs PHP 5), but what I need is to make all but one of my server accounts work under 5.3 and just a single domain under 5.2.  I cannot make this through Apache models, and the answer from  does not apply since in my case I can't use a different port - this is a regular website  on the same server.


I would want "program.deb" to be pre-installed to a Ubuntu Live CD.

I would like to customize Ubuntu live CD by installing some additional packages. I have followed   but it doesn't seems to work. Can anyone provide clear instructions?   Note: I do not prefer Remastersys, manual way will be appreciated.  Customization  Packages that I want to install:   Thunderbird    Samba    SSH       Changes that I need:   Remove Games menu from the Application menu Firefox shortcut on Desktop Radiance as the default Theme Different default Ubuntu Wallpaper   Configuration file changes   I want the panel to be placed at the bottom I want to paste my Samba configuration file instead of default Samba configuration I have few Firefox shortcuts and folders I would like to show that in Desktop Also it will be nice if you say me how to change the icon sets   Recent Updates   I have customized Ubuntu 10.10 with Firefox shortcuts and few folders on desktops. Everything went smooth. But the installer gets crashes after choosing the timezone. How do i fix this issue? Also setting wallpaper affects the login screen. The wallpaper which i set is displayed on the login screen also. I just want the default one for the login screen.


I am trying to run several tasks at the same time and I came across an issue I can't seem to be able to understand nor solve.  I used to have a function like this :  private void async DoThings(int index, bool b) {     await SomeAsynchronousTasks();     var item = items[index];     item.DoSomeProcessing();     if(b)         AVolatileList[index] = item; //volatile or not, it does not work     else         AnotherVolatileList[index] = item; }   That I wanted to call in a for loop using Task.Run(). However I could not find a way to send parameters to this Action<int, bool> and everyone recommends using lambdas in similar cases:  for(int index = 0; index < MAX; index++) { //let's say that MAX equals 400      bool b = CheckSomething();     Task.Run(async () => {         await SomeAsynchronousTasks();         var item = items[index]; //here, index is always evaluated at 400         item.DoSomeProcessing();         if(b)             AVolatileList[index] = item; //volatile or not, it does not work         else             AnotherVolatileList[index] = item;     } }   I thought using local variables in lambdas would "capture" their values but it looks like it does not; it will always take the value of index as if the value would be captured at the end of the for loop. The index variable is evaluated at 400 in the lambda at each iteration so of course I get an IndexOutOfRangeException 400 times (items.Count is actually MAX).  I am really not sure about what is happening here (though I am really curious about it) and I don't know how to do what I am trying to achieve either. Any hints are welcome!

I met an interesting issue about C#. I have code like below.  List<Func<int>> actions = new List<Func<int>>();  int variable = 0; while (variable < 5) {     actions.Add(() => variable * 2);     ++ variable; }  foreach (var act in actions) {     Console.WriteLine(act.Invoke()); }   I expect it to output 0, 2, 4, 6, 8. However, it actually outputs five 10s.  It seems that it is due to all actions referring to one captured variable. As a result, when they get invoked, they all have same output.  Is there a way to work round this limit to have each action instance have its own captured variable?


How do I get the min timestamp value of the same Id number with its corresponding Value using SQL?  Would anybody help me with this problem? (Please see attached image below)  Sample Table    Sample Table of what should be the result

I have a query which selects a max value over all the values of in a datetime column (dtimesent).  select dtimesent, max(ResponseTime) AS maxtime FROM allrequests  where Request like '%Requestsa%' group by dtimesent   I need to get the value of the request colmn for each max response time in each group by. Is there any easy way to do this?  There can be multiple rows per dtimesent value so I can't just include the request column in the group by,  Many thanks,


Questions which have been migrated and then closed as duplicates count as "rejected" in the migration stats even though they aren't marked as rejected on the posts themselves.  Specifically, in the  page on , I see this:    But of the three questions migrated from Movies & TV in the last 90 days, the two  were  were closed as duplicates and so the migrations weren't rejected. The migration stats page on M&TV bears this out:    TL;DR: questions migrated and then dupe-closed show as "rejected" in the target site's stats even though they aren't.

Apparently, as a result of  it appears that Yannis and myself see different statistics when going to the programmers.SE.com migration stats tool and the stackoverflow.com tool respectively.    :        while I see:        Why are the rejection rates so radically different?  Which is correct?  (Or am I simply misinterpreting the data somehow and these are representing different statistics)


Presently my RAM is 2GB. I heard that in linux we can get extra memory to RAM from the harddisk by using swap partition. What is the procedure for that?   here in the pics i'm giving my system info.

I did not create a swap partition during Ubuntu installation.  Later, I freed up some space and made a swap partition.  Now after each boot up, I am manually opening gparted to right-click the swap partition to turn on the 'swapon' option.  How can I automatically enable the swap partition at boot?  Also, if I had not created the swap partition, what are my other options?


There are some data type is float, for example        24.0, 34.0, 35.6, 33.2, 44.0   I want      24.0, 34.0, 44.0    change into      24,34,44.   35.6 and 33.2 do not change.  how could I do that?

I'm looking for a  way to convert numbers to string format, dropping any redundant '.0'   The input data is a mix of floats and strings. Desired output:  0   --> '0'  0.0 --> '0'  0.1 --> '0.1'  1.0 --> '1'  I've come up with the following generator expression, but I wonder if there's a faster way:  (str(i).rstrip('.0') if i else '0' for i in lst)   The truth check is there to prevent 0 from becoming an empty string.  EDIT: The more or less acceptable solution I have for now is this:  ('%d'%i if i == int(i) else '%s'%i for i in lst)   It just seems strange that there is no elegant way to handle this (fairly straightforward) case in python.


I can't tell if I suck at Googling or am mixing up a bunch of things... My friend loaned me an audiobook a few years ago and I remember   There are parallel stories in multiple times ("fractured tandem" narrative) Sentient pigs are some characters One guy works for some ultra/ultimates(?) (post-humans of some kind)   he has a little ship and is supposed to scout worlds finds structures on some alien planet girlfriend kept hostage in some strange contraption his name is that of some religion in another time(?)    It's a part of some series.

Planet where giant manned machines travel in convoy across surface, tracking some astronomical phenomenon and a girl runs away from her family to find someone (her brother?) who's travelling on one of these machine "caravans". There are elite experts on board who know how to identify the celestial target, whatever it is, can't remember. The machines follow specific routes and someone on board has to be scanning the sky at all times in case the phenomenon appears. Any ideas? Cheers  Fred


Good morning  I have one table (longtable) and there is two columns. In 2nd column I use the tool itemize. When I do it I have gaps between rows but I don't want to have any gaps, picture below.   Thanks for help.  \documentclass[10pt,a6paper]{book} \usepackage[utf8]{inputenc} \usepackage[main=english,slovak]{babel} \usepackage[cm]{fullpage} \usepackage[a6paper, top=10mm, left=10mm, right=10mm, bottom=10mm,foot=5mm,marginparsep=0mm,showframe]{geometry} %showframe \usepackage{tipa} \usepackage{tabularx,booktabs} \usepackage{multirow} \usepackage{rotating} \usepackage{graphicx} \usepackage{array} \usepackage{color} \usepackage[dvipsnames]{xcolor} \usepackage{longtable} \usepackage{lscape}  \usepackage{enumitem} \usepackage{tabularx,booktabs} \usepackage{enumitem} \usepackage{mathtools} \pagenumbering{alph} \pagenumbering{Roman}  \usepackage{ textcomp } \usepackage{ marvosym } \usepackage{fontawesome} \usepackage{tfrupee} \usepackage{stackengine} \def\yenrule{\rule{1.3ex}{.1ex}} \def\textyen{\renewcommand\stacktype{L}\stackon[.4ex]{\stackon[.65ex]{Y}{\yenrule}}{\yenrule}} \usepackage{textcomp}  \begin{document} \catcode`\-=12 \sloppy  {\small\setlist[itemize]{nosep , label=--, wide = 0pt, labelsep=.25em, leftmargin=*} \begin{longtable}{p{3cm}p{3cm}}   \toprule   sometext      & \setlist{nosep,topsep=0sp,label=--} \vspace{-\baselineskip}                   \begin{itemize}                     \item[-] some long text                    \end{itemize}\\      sometext      & \setlist{nosep,topsep=0sp,label=--} \vspace{-\baselineskip}                   \begin{itemize}                     \item[-] some long text                   \end{itemize}\\   sometext      & \setlist{nosep,topsep=0sp,label=--} \vspace{-\baselineskip}                   \begin{itemize}                     \item[-] some long text                   \end{itemize}\\                    sometext      & \setlist{nosep,topsep=0sp,label=--} \vspace{-\baselineskip}                   \begin{itemize}                     \item[-] some long text                   \end{itemize}\\                    \toprule \end{longtable}}  \end{document}

Good afternoon  I would like to change gap between two rows (the picture below) in longtable because it doesn't look very nice and I want to save a place. I don't know how to do it.   Thanks for help.   \documentclass[10pt,a6paper]{book}  \usepackage[utf8]{inputenc} \usepackage[main=english,slovak]{babel} \usepackage[cm]{fullpage} \usepackage[a6paper, top=10mm, left=10mm, right=10mm,     bottom=10mm,foot=5mm,marginparsep=0mm,showframe]{geometry} %showframe \usepackage{tipa} \usepackage{tabularx,booktabs} \usepackage{multirow} \usepackage{rotating} \usepackage{graphicx} \usepackage{array} \usepackage{color} \usepackage[dvipsnames]{xcolor} \usepackage{longtable} \usepackage{lscape}  \usepackage{enumitem} \usepackage{tabularx,booktabs} \usepackage{enumitem} \usepackage{mathtools}  \begin{document} \catcode`\-=12 \sloppy  {\small  \begin{longtable}{llp{5cm}}   \toprule   {\sffamily some text}   & \textsl{some text}  &                                             \setlist{nosep,topsep=0sp,label=--}                             \vspace{-\baselineskip}                             \begin{itemize}                               \item[-] some text                               \item[-] some text                               \item[-] some text                             \end{itemize}\\ {\sffamily some text}   & \textsl{some text}  &                                             \setlist{nosep,topsep=0sp,label=--}                             \vspace{-\baselineskip}                             \begin{itemize}                               \item[-] some text                               \item[-] some text                               \item[-] some text                             \end{itemize}\\   \toprule \end{longtable}} \end{document}


How do I find the remainder when $11^{2013}$ is divided by $61$?  Brute force?  Without a calculator?  How did people do that?

How am I suppose to find the remainder when $11^{2013}$ is divided by $61$?


According to  the fly speed can only be used for flying, and otherwise swimming speed is equivalent to half of normal speed. However beholders have a normal speed of 0ft, and flying speed of 20ft. Can a beholder swim? If so, would its swimming speed be equal to half of its flying speed? I was trying to Google this question but it doesn't appear to normally be a problem, and couldn't find any answers for it.

I will soon run the  adventure with my group of players. Two of their characters have flying familiars (an owl and a pseudodragon).  Is there something in the rules that states that a familiar (flying or otherwise) can't be used in water?  There isn't any rule change or anything about underwater fighting and exploration. The party is able to breathe underwater thanks to an NPC that casts water breathing.


I installed Ubuntu 14.04LTS on my Windows 8.1 primary drive and after installation completed, the other partition containing my personal files does not mount. It comes up with an error that windows did not shut down properly and the only mount option is read-only. I also must say that last time i turned off my Windows, it was not responding and I shut it down manually by pressing power button. What should I do Now?  I mentioned that i installed ubuntu on windows primary partition, that means the windows is removed right now and only the windows loader partition is remained. so there is no windows to sign in and fix the errors!

I have dual booted ubuntu 13.10 and windows 8.1 in my laptop. Earlier my window partition(C drive)  and other NTFS partition was accessible from ubuntu.  Now its giving me this error and not mounting:  Error mounting /dev/sda3 at /media/waqar/120ABDC90ABDAA5D: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda3" "/media/waqar/120ABDC90ABDAA5D"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda3': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   C drive(window partition) is giving this error:  Error mounting /dev/sda2 at /media/waqar/BAD4D962D4D92185: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda2" "/media/waqar/BAD4D962D4D92185"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda2': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   I have restarted my system, booted in windows and then again shut down the system properly but its continuously giving me the same error.   Any help?


I (actually, a very unfortunate friend of mine)   can no longer create new folders from the Windows Explorer program. (It is important to note that mkdir and friends still work.) I have no idea how this came to be, but my friend denies any system-wide changes around the time it started.  How might I go about adding it back in as it would normally be?  (Note also that other context menu options remain—the 'new folder' one simply is not among them.)

I have this problem on two of my new laptops and can't seem to find a decent workable solution elsewhere in forum land. The problem is that on my Windows 7 Professional machines the right mouse button doesn't show the New Folder option and elsewhere as well (via Explorer) I'm unable to create new folders.   I'll be happy to get this tiny problem resolved and declare that Windows 7 is almost perfect! Thanks to all of you in advance for your contribution!  PS: None of the Vista solutions seem to work here!      Tried NewFolderFix.reg, didn't work - "Not all data was succesfully written to the registry. Some keys are open by the system or other processes."  Converted FolderFix.reg to .inf file and that worked.  Don't recall the problem appearing after an update.  MS answer to the explore process hanging (KB 972685) was to install the latest Visual C++ Update (vcredist.exe).  Nope. That didn't help either.  I haven't touched Silverlight since installation when Windows 7 hit the shelves. I tortured the RC installation before that, and never had problems there either.    UPDATE-  Logged back into Administrator account, still missing from there. Spent a bit more time looking instead of just fixing. Just yto make sure, logged back into my user account - still OK there.  Turns out the entries in HKCR\CLSID were the culprit here. Reg file wouldn't take again (as above) but inf file fixed it. This key was unable to be entered from regfile, or altered or deleted in Regedit (Permissions).   Don't quite understand why a common key in HKCR needed to be entered separately for each user.   Here is the file I used to fix it. Just copy into notepad, save as newfolderfix.inf, rt-click and select Install  ================================================================  [Version]  Signature=$Windows NT$  [DefaultInstall]  AddReg     =REGEntries.AddReg  [REGEntries.AddReg]  HKCR,"%String0%",,0x0,"CLSID_ExecuteFolder"  HKCR,"%String0%\InProcServer32",,0x0,"ExplorerFrame.dll"  HKCR,"%String0%\InProcServer32","ThreadingModel",0x0,"Apartment"   [Strings]  String0 = "CLSID\{11dbb47c-a525-400b-9e80-a54615a090c0}"  =============================================================   Thanks to others who helped point me in the right direction.


Note: I'm asking about using a Infrared Blocking ND filter,  not a regular ND filter.  I'm plan to use a Canon SX60 super-zoom bridge camera.   All it has is an Electronic View Finder and Live View, so I'd be safe as far as my eyesight.  I ran across a recommendation that this would work, but I can't find the recommendation now so I'm concerned if it will damage my camera.  Thanks for any recommendations. -Neil

Will a 10-stop ND filter (Big Stopper) allow me to photograph a solar eclipse?  I read in another post here that solar filters are around 14-stops - presumably I would need around this strength even for an eclipse, as it's related to the peak brightness, not the size of the sun. Stacking a 10-stop and a 4-stop ND should result in a solar filter, even if it has significant vignetting?


So I am making a script that adds two numbers (decimal numbers) together, which I have encountered a problem.    I made the script, it turns out pretty good:  0.1 + 0.5  //0.6 0.2 + 0.3  //0.5   But soon I see:  0.1 + 0.2  //0.30000000000000004 0.01 + 0.06  //0.06999999999999999   And it does not look right to me. I know it is a shortcoming of using float point with finite bits, but I can't find a way to fix that.  Math.ceil   //No Math.floor  //No .slice      //No   UPDATE  Is it possible to multiply the numbers by 1000 first, then add them then divide it by 1000?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


In chapter 8.2.3 of Schwartz' textbook "Quantum Field Theory and the Standard Model", the author states the following,      Finally, we expect from representation theory that there should only be two polarizations for a massless spin-1 particle, so the spin-0 and the longitudinal mode should somehow decouple from the physical system.    How does "representation theory" tells us about the polarizations of a massless spin-1 particle? Could someone please explain this statement?

Gauge bosons are represented by $A_{\mu}$, where $\mu = 0,1,2,3$. So in general there are 4 degrees of freedom. But in reality, a photon (gauge boson) has two degrees of freedom (two polarization states).   So, when someone asks about on-shell and off-shell degrees of freedom, I thought they are 2 and 4. But I read that the off-shell d.of. are 3.   And my question is how to see this?


I have tests which show the following xUnit.net output:  [xUnit.net 00:00:07.1166826]       Expected: HashSet<License> [Comp.Licensing.Web.Model.License [5d8104ef-f707-4a40-9d68-463bf9f8b0f9], Comp.Licensing.Web.Model.License [d586fc23-bba6-474c-82a2-226484d7fb81]] [xUnit.net 00:00:07.1172482]       Actual:   HashSet<License> [Comp.Licensing.Web.Model.License [d586fc23-bba6-474c-82a2-226484d7fb81], Comp.Licensing.Web.Model.License [5d8104ef-f707-4a40-9d68-463bf9f8b0f9]]   What I don't understand is why this test is failing, and seemingly the reason is that the HashSet is out of order.  Specifically, it appear that the Actual is exactly the same as the **Expected.  Actual:  HashSet<L> [Stuff [abc], Stuff [123]]   Expected:  HashSet<L> [Stuff [123], Stuff [abc]]   On the doc for , it says      A set is a collection that contains no duplicate elements, and whose elements are in no particular order.   Are my tests being run by something that's not using the same equality check for HashSet?

I'm new to TDD and xUnit so I want to test my method that looks something like:   List<T> DeleteElements<T>(this List<T> a, List<T> b);   Is there any Assert method that I can use ? I think something like this would be nice  List<int> values = new List<int>() { 1, 2, 3 }; List<int> expected = new List<int>() { 1 }; List<int> actual = values.DeleteElements(new List<int>() { 2, 3 });  Assert.Exact(expected, actual);   Is there something like this ?


How would you prove this combinatorial idenetity algebraically without induction?  $$\sum_{k=0}^n { x+k \choose k} = { x+n+1\choose n }$$  Thanks.

After reading , the most popular answer use the identity $$\sum_{t=0}^n \binom{t}{k} = \binom{n+1}{k+1}.$$  What's the name of this identity? Is it the identity of the  modified.  How can we prove it? I tried by induction, but without success. Can we also prove it algebraically?  Thanks for your help.    EDIT 01 : This identity is known as the  because, on Pascal's triangle, when the addends represented in the summation and the sum itself are highlighted, a hockey-stick shape is revealed.


I try to use wp_editor() in content that was loaded with ajax, but none of the required files and some other configuration script not loaded :  The structure of ajax is something like this:  function get_test_page(){    include( TEMPLATEPATH . '/page.php' );    die( main() ); } add_action( 'wp_ajax_nopriv_get_test_page', 'get_test_page' ); add_action( 'wp_ajax_get_test_page', 'get_test_page' );   page.php :  function main(){     wp_editor('','unique_id'); }   Editor is loaded but needed files is not loaded.   http://.../wp-includes/js/tinymce/wp-tinymce.php http://.../wp-includes/js/tinymce/skins/lightgray/skin.min.css http://.../wp-admin/load-scripts.php?c=1&amp;load%5B%5D=...mce-view,imgareaselect,image-edit,word-count,editor,quicktags,wplink,thick... http://.../wp-includes/js/tinymce/langs/{}.js    Some related post but doesn't help me :

Does anyone know how o load wp_editor via AJAX in WordPress?  My markup and editor is getting loaded properly but editor controls are not getting loaded properly, it may be because Javascript is not running in AJAX call.  Any help would be appreciated.


I want to share my snapshot world with my friends, but I can't find the file itself. Where is it so I can send it to them?

I want to copy/modify/delete a Minecraft world. Where can I find my saves folder?


If $A$ and $B$ are complex parameters. Apparently the semi-axes should be |A| and |B|, and the orientation should be $\frac{1}{2}$arg(A)+arg(B). I rewrote the original expression as |A|$e^{at}$$e^{it}$+|B|$e^{bt}e^{-it}$ where a and b are the arguments of the parameters A and B. I then used Euler's formula and tried to rearrange using every trig formula I could find, to get the equation $z=e^{i\frac{a+b}{2}}(|A|cos(t)+i|B|sin(t))$ with no success...any help would be much appreciated!

Why does the complex equation $z=Ae^{it}+Be^{-it}$ represent an ellipse?, with $A,B \in \mathbb C$  How can it be described?


I am new to the camera game. I have a 2 year old and a 7 month old, and would like to invest in a camera for capturing memories. I would like a camera that:   Can capture fast moving kids Photographs well in low light (our house is very dim) preferably with a tilting 180 screen for taking selfies a viewfinder   My main debate is between a digital compact and a mirrorless. I don't know much about mirrorless cameras, except that they are highly recommended these days. Do I always need to carry around the lenses for a mirrorless? Will it work without the attachable lense? Will it zoom without a lense? How do I know when to change to a different size lense?  Thank you, Samantha

What would be a reason for one to pick the compact (whatever it'd be P&S or something more advanced) over mirrorless compact system camera  ?  Right now market is quite confusing — we have huge market of tiny-sensor compacts, we have mirrorless that use sensors in a size of these from P&S cameras (Nikon 1 being notable example), we have compacts with sensors bigger than most popular mirrorless system (Canon G1X vs m4/3), we have lot of APS-C sensor mirrorless which are matched by some of the compacts (Fuji X100 being most notable example, but even Leica has its X2),  and to make it even more confusing — Sony released RX1 with full frame sensor, beating crap out of every mirrorless on a market.  So what are your arguments to pick compact over a mirrorless?  Why are they better, what's the reason behind logic of companies like Fujifilm which at the same time offers P&S and X-mount mirrorless using same sensor size?


I saw the trailer for a movie Elysium, and it reminded me of a book I read as a kid.  It was about how Earth was poor but had a giant population, and the space stations were rich and had better technologies, but low population due to dimensional constraints. Then some guys on Earth try to develop an advanced ship and somebody remarks how even though an average Earth citizen is poor, there is a billion of them and if you take 1 dollar from each you now have a billion dollars at your disposal.  I tried various google searches but to no avail. Perhaps it was an Asimov short story? I looked through his works but none seem to match.

As a kid I was greatly influenced by a book where a girl (I believe her name was Marlena) lived in a ship orbiting an alien planet.  The ship was intended to colonize the planet but the humans had encountered difficulty.  People on the surface early on had gone incurably mad.  The planet was covered with single cell organism, but no other life.  Other than the "bacteria" it was sterile.    The girl, along with most of the colonists, was still living on the orbiting ship for the foreseeable future.  The girl had an uncanny knack of reading people's minds by noting minute changes in behavior and body language, kind of like Sherlock Holmes' famous observations.  Eventually she got a chance to go to the surface, and found the planet trying to communicate with her.  In one memorable scene the swirls in the water of a stream formed a face and started trying to call her name, "Eeeena, Aaleeena, Aarleena, Marlena!"  It turns out that the single celled organisms on the planet comprised a hive mind which had tried to communicate telepathically with previous humans by altering their brains slightly, causing the madness.  The girls's brain was different, however, constantly modifying and changing itself so that it was not damaged by the hive mind's attempts to communicate with it.


I would like to allow an email service to be a valid sender for my domain. This service has dedicated a single IP for my account.   Instead of:  v=spf1 ip4:1.2.3.4 -all   Will the following behave the same assuming I have a host record corresponding to the IP address?  v=spf1 include:service.domain.com -all   *edited to correct -all syntax

This is a  about setting up .     I have an office with many computers that share a single external ip (I'm unsure if the address is static or dynamic). Each computer connects to our mail server via IMAP using outlook. Email is sent and received by those computers, and some users send and receive email on their mobile phones as well.  I am using  to generate an SPF record and I'm unsure about some of the fields in the wizard, specifically:   Enter any other domains who may send or relay mail for this domain Enter any IP addresses in CIDR format for netblocks that originate or relay mail for this domain Enter any other hosts which can send or relay mail for this domain How stringent should SPF-aware MTA's treat this?   the first few questions i'm fairly certain about... hope i have given enough info.


I need help with this command:  /setblock 262 73 -253 command_block[facing=east,conditional=false]{Command:"/execute if block 258 73 -254 chest{Items:[{id:"minecraft:tripwire_hook"}]}"} replace  Could someone fix this for me? I have tried for hours and can't get it to work. It's supposed to place a command block with the command /execute if block 258 73 -254 chest{Items:[{id:"minecraft:tripwire_hook"}]}, but it just won't work. It needs to be facing east, with its conditional set to false. I did that, but it still won't work.    Note: my Minecraft version is 1.14.2

I need help with a specific command that I am using in a new game that I am creating inside of Minecraft. The command is:  /give @p sign 1 0 {BlockEntityTag:{Text1:"{"text":" [MF2]","color":"gold","clickEvent": {"action":"run_command","value":"tellraw @a [""{"text":"[MF2]  ","color":"gold"},{"selector":"@p","color":"dark_aqua"},{"text":" is now an admin of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"},display: {Name:"Custom Sign"}}   If I take out the /tellraw command then the command works fine, but I need the command in there to announce to the game that a new admin has joined.  With the tellraw command, the error message is the following:  Data tag parsing failed: Unexpected token 't' at: text":" [MF2]","color":"gold","clickEvent":{"action":"run_command","value":"tellraw @a [""{"text":"[MF2] ","color":"gold"}, {"selector":"@p","color":"dark_aqua"},{"text":" is now an admin  of the server!","color":"white"}]"}}",Text3:"{"text":"Click to join Admin","color":"dark_aqua","clickEvent": {"action":"run_command","value":"scoreboard teams join admin @p"}}"   If anyone knows how to fix this, please let me know.


I'm trying to add a couple of textures to my scene. One on the sphere and one on the plane in the background. Top right viewing window is 'render' by the way.  I've assigned the texture in edit mode for both.   I've read every tutorial for this I can find and they either end at 'click assign' or go on to talk about options i simply dont have (presumably old version of blender?).  Can anyone tell me what my missing step is here.   (edit:) I assigned the textures by going into 'edit mode' instead of object mode. Clicked on the 'material' button on the right (in picture). Clicked on color and selected 'image texture', chose my png file. The Preview displays correctly (pictured). Clicked on 'Assign' (in between the material lists and the preview). As you can see in the render window, the rectangle plane is showing as black and the sphere is a solid grey instead of their textures.   (edit2:) moonboots got it. i hadnt unwrapped the objects. a instruction suspiciously missing from all the tutorials i read. if anyone else stumbles on this you go into edit mode > mesh > uv unwrap > unwrap.

Because I am pretty new to blender I watched the tutorial  from BlenderCookie.com.  I loaded  onto a sphere but then in all views the texture is just some kind of blurry with no details.